ChangeLog-2003-10-25 740 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663
  1. === Safari-111 ===
  2. 2003-10-24 Richard Williamson <rjw@apple.com>
  3. Fixed 3425358. Don't try to create page cache for pages that
  4. have a nil view().
  5. Reviewed by Hyatt.
  6. * kwq/WebCoreBridge.mm:
  7. (-[WebCoreBridge saveDocumentToPageCache]):
  8. 2003-10-24 David Hyatt <hyatt@apple.com>
  9. Fix for 3133375, the minwidth computation for pres is wrong. There were a couple of bugs here.
  10. One is that pres only should have a breakable character if they contain a newline. Otherwise they're
  11. treated essentially like nowrap. The other was that m_beginMinWidth and m_endMinWidth needed to be
  12. set to the maxwidth of the first line and the maxwidth of the last line respectively for pres instead of
  13. being only the first and last words.
  14. Reviewed by mjs
  15. * khtml/rendering/render_text.cpp:
  16. (RenderText::calcMinMaxWidth):
  17. 2003-10-24 David Hyatt <hyatt@apple.com>
  18. Two fixes to the computation of min/max width for text runs.
  19. (1) Make sure that pre runs don't add in word-spacing to the last word on a line (e.g., when a newline explicitly
  20. breaks a pre).
  21. (2) Fix a bug where breakable characters weren't getting factored into minwidth properly. When a word got broken
  22. because of a breakable character, we were treating the breakable character like a space, and not including its
  23. width as part of the minimum width of the text run.
  24. Reviewed by john
  25. * khtml/rendering/render_text.cpp:
  26. (RenderText::calcMinMaxWidth):
  27. 2003-10-23 David Hyatt <hyatt@apple.com>
  28. This patch fixes the pseudo-elements ::first-line and ::first-letter to inherit styles properly. More
  29. specifically it does the following:
  30. (1) Implements caching of pseudo-styles once computed off the style() which originated the pseudo-style.
  31. The old code did this, and this was a regression from my previous patch.
  32. (2) Fixes first-letter checking so that it happens at layout time rather than during render object
  33. construction time, since that makes first-letter more dynamic and causes it to be discovered in cases
  34. where it was being missed before. This fixes the front page of meyerweb.com.
  35. (3) Make first-letter inherit from first-line like it's supposed to, and also make first-line styles
  36. cross blocks and inherit properly from enclosing containers.
  37. (4) Make first-letter changes cause a detach/attach to fire just as when the display changes. I generalized
  38. the notion of needing to detach on a style change by making it a new kind of hint in dom_nodeimpl's style
  39. diff function.
  40. (5) Fixed isBlockFlow to return true for inline-blocks.
  41. Reviewed by john
  42. * khtml/rendering/render_block.cpp:
  43. (khtml::RenderBlock::addChildToFlow):
  44. (khtml::RenderBlock::layoutBlock):
  45. (khtml::RenderBlock::getFirstLineBox):
  46. (khtml::RenderBlock::firstLineBlock):
  47. (khtml::RenderBlock::updateFirstLetter):
  48. * khtml/rendering/render_block.h:
  49. (khtml::RenderBlock::isBlockFlow):
  50. * khtml/rendering/render_line.cpp:
  51. (InlineFlowBox::paintBackgroundAndBorder):
  52. * khtml/rendering/render_list.cpp:
  53. (RenderListItem::setStyle):
  54. * khtml/rendering/render_object.cpp:
  55. (RenderObject::RenderObject):
  56. (RenderObject::firstLineBlock):
  57. (RenderObject::updateFirstLetter):
  58. (RenderObject::dump):
  59. (RenderObject::setStyle):
  60. (RenderObject::recalcMinMaxWidths):
  61. (RenderObject::style):
  62. (RenderObject::getPseudoStyle):
  63. * khtml/rendering/render_object.h:
  64. (khtml::RenderObject::overhangingContents):
  65. * khtml/rendering/render_style.cpp:
  66. (pseudoBit):
  67. * khtml/rendering/render_style.h:
  68. (khtml::RenderStyle::):
  69. * khtml/rendering/render_table.cpp:
  70. (RenderTable::firstLineBlock):
  71. (RenderTable::updateFirstLetter):
  72. * khtml/rendering/render_table.h:
  73. * khtml/rendering/render_text.cpp:
  74. (RenderText::paintObject):
  75. (RenderText::htmlFont):
  76. * khtml/xml/dom_elementimpl.cpp:
  77. (ElementImpl::recalcStyle):
  78. * khtml/xml/dom_nodeimpl.cpp:
  79. (NodeImpl::diff):
  80. * khtml/xml/dom_nodeimpl.h:
  81. (DOM::NodeImpl::):
  82. 2003-10-23 Ken Kocienda <kocienda@apple.com>
  83. Reviewed by David
  84. Fix for these bugs:
  85. <rdar://problem/3171929>: Safari picks a different button in a
  86. form when you hit return if the first button has no name
  87. <rdar://problem/3200386>: investigate which button is activated
  88. when hitting return in form text input fields
  89. HTML spec says that buttons must have names to be considered
  90. successful. However, other browsers do not impose this constraint.
  91. Therefore, we behave differently, and can use different buttons than
  92. the author intended.
  93. * khtml/html/html_formimpl.cpp:
  94. (HTMLButtonElementImpl::isSuccessfulSubmitButton)
  95. (HTMLInputElementImpl::isSuccessfulSubmitButton)
  96. 2003-10-22 David Hyatt <hyatt@apple.com>
  97. Fix for 3460726, the user agent string was returning nil.
  98. Fix for 3386544, empty documents did not get a layout, and so they looked white. Also fixed the positioning
  99. of widgets to account for border/padding in updateWidgetPositions.
  100. Fix for espn.com crasher, 3458143, caused by layout object not being properly cleared when layouts were
  101. unscheduled.
  102. Reviewed by darin
  103. * khtml/khtmlview.cpp:
  104. * khtml/rendering/render_canvas.cpp:
  105. (RenderCanvas::RenderCanvas):
  106. * khtml/rendering/render_replaced.cpp:
  107. (RenderWidget::updateWidgetPositions):
  108. * kwq/KWQKHTMLPart.mm:
  109. (KWQKHTMLPart::userAgent):
  110. 2003-10-22 Maciej Stachowiak <mjs@apple.com>
  111. Reviewed by
  112. - fixed 3460664 - Exception handlers not properly removed
  113. * kwq/KWQKHTMLPart.mm:
  114. (KWQKHTMLPart::mouseMoved): Don't return from exception block
  115. (KWQKHTMLPart::khtmlMouseReleaseEvent): Add exception blocking (whoops)
  116. 2003-10-22 John Sullivan <sullivan@apple.com>
  117. - fixed 3460652 -- REGRESSION (100-110+): Can't tab out of a
  118. frameset page
  119. Reviewed by Darin (actually he made the change on my machine)
  120. * khtml/html/html_baseimpl.cpp:
  121. (HTMLFrameSetElementImpl::defaultEventHandler):
  122. only set defaultHandled for the one event that we actually
  123. handle (mouse event to resize frame borders); this was always
  124. being set, hence preventing key events from being used elsewhere.
  125. 2003-10-22 Richard Williamson <rjw@apple.com>
  126. Fixed 3454067. RenderText's repaint wasn't called because of recent changes to de-virtualize repaint. Modified getAbsoluteRepaintRect() to return containing block's getAbsoluteRepaintRect().
  127. Also removed the long standing +1 from QFontMetrics::height().
  128. Reviewed by Hyatt.
  129. * khtml/rendering/render_text.cpp:
  130. (RenderText::getAbsoluteRepaintRect):
  131. * khtml/rendering/render_text.h:
  132. * kwq/KWQFontMetrics.mm:
  133. (QFontMetrics::height):
  134. 2003-10-22 David Hyatt <hyatt@apple.com>
  135. Fix visibility to be done when widgets are added or when styles are set rather than at paint time. Fixes
  136. the ads painting on top of content at tvguide.com.
  137. Reviewed by cblu
  138. * khtml/rendering/render_replaced.cpp:
  139. (RenderWidget::setQWidget):
  140. (RenderWidget::setStyle):
  141. (RenderWidget::paintObject):
  142. * kwq/KWQWidget.h:
  143. * kwq/KWQWidget.mm:
  144. (QWidget::QWidget):
  145. (QWidget::show):
  146. (QWidget::hide):
  147. 2003-10-21 Maciej Stachowiak <mjs@apple.com>
  148. Reviewed by Dave.
  149. Finished exception blocking changes, so now I can finally say:
  150. - fixed 3137084 - Many non-reproducible crashers in ContextImp::mark / ScopeChain::mark
  151. - fixed 3308848 - nil-deref in KHTMLView::topLevelWidget
  152. - fixed 3311511 - nil deref inside KJS::Screen
  153. - fixed 3397422 - 7B51: Safari crashed in KJS::ObjectImp::mark()
  154. - fixed 3408373 - Panther7B58 : Safari Crashed in KJS::ObjectImp::mark
  155. - fixed 3409307 - 7B55: safari crashed in KJS::Interpreter::globalExec() (idle, nothing particular going on)
  156. - fixed 3410160 - 7B60 Safari crashed in KHTMLPart::parentPart called from JS while in the background
  157. - fixed 3413224 - unrepro crash in KJS::Window::mark
  158. - fixed 3419940 - unrepro crash in KJS::Collector::allocate trying to access http://www.lindyinthepalms.com
  159. - fixed 3420123 - Panther7B66: Safari crashed while going to http://www.tangents.co.uk/index2.html
  160. - fixed 3423225 - Safari crash in vtable for KWQMapImpl (vtable for KWQMapImpl + 8).
  161. - fixed 3437190 - nil-deref on quit in calling marked() from ScopeChain::mark()
  162. * WebCore.pbproj/project.pbxproj:
  163. * kwq/KWQFontMetrics.mm:
  164. * kwq/KWQPainter.mm:
  165. (QPainter::drawPixmap):
  166. (QPainter::drawTiledPixmap):
  167. (QPainter::_updateRenderer):
  168. * kwq/WebCoreTextRenderer.h:
  169. 2003-10-21 David Hyatt <hyatt@apple.com>
  170. http://placenamehere.com/safari/fixedbgtest.html is now fixed with a patch from the KHTML trunk.
  171. Fixed backgrounds repeated when they weren't supposed to.
  172. * khtml/rendering/render_box.cpp:
  173. (RenderBox::paintBackgroundExtended):
  174. 2003-10-21 David Hyatt <hyatt@apple.com>
  175. Change pseudo-element style resolution to be lazy and to not occur until the style is actually asked
  176. for by the front end render objects. Also fix first-letter to inherit properly from first-line styles.
  177. Reviewed by mjs
  178. * khtml/css/cssstyleselector.cpp:
  179. (khtml::CSSStyleSelector::initForStyleResolve):
  180. (khtml::CSSStyleSelector::styleForElement):
  181. (khtml::CSSStyleSelector::pseudoStyleForElement):
  182. (khtml::CSSStyleSelector::checkSelector):
  183. (khtml::CSSStyleSelector::checkOneSelector):
  184. * khtml/css/cssstyleselector.h:
  185. * khtml/rendering/render_block.cpp:
  186. (khtml::RenderBlock::addChildToFlow):
  187. * khtml/rendering/render_container.cpp:
  188. (RenderContainer::updatePseudoChild):
  189. * khtml/rendering/render_object.cpp:
  190. (RenderObject::setStyle):
  191. (RenderObject::createInlineBox):
  192. (RenderObject::style):
  193. (RenderObject::getPseudoStyle):
  194. * khtml/rendering/render_object.h:
  195. * khtml/rendering/render_style.cpp:
  196. (pseudoBit):
  197. (RenderStyle::hasPseudoStyle):
  198. (RenderStyle::setHasPseudoStyle):
  199. (RenderStyle::getPseudoStyle):
  200. (RenderStyle::addPseudoStyle):
  201. * khtml/rendering/render_style.h:
  202. (khtml::RenderStyle::NonInheritedFlags::operator==):
  203. (khtml::RenderStyle::setBitDefaults):
  204. * khtml/rendering/render_text.cpp:
  205. (InlineTextBox::paintSelection):
  206. (RenderText::paintObject):
  207. (RenderText::htmlFont):
  208. 2003-10-21 Maciej Stachowiak <mjs@apple.com>
  209. Reviewed by Dave.
  210. More exception blocking.
  211. * kwq/KWQKHTMLPart.mm:
  212. (KWQKHTMLPart::~KWQKHTMLPart):
  213. (KWQKHTMLPart::generateFrameName):
  214. (KWQKHTMLPart::openURL):
  215. (KWQKHTMLPart::openURLRequest):
  216. (regExpForLabels):
  217. (KWQKHTMLPart::clearRecordedFormValues):
  218. (KWQKHTMLPart::recordFormValue):
  219. (KWQKHTMLPart::submitForm):
  220. (KHTMLPart::frameDetached):
  221. (KWQKHTMLPart::urlSelected):
  222. (KWQKHTMLPart::createPart):
  223. (KWQKHTMLPart::setTitle):
  224. (KWQKHTMLPart::setStatusBarText):
  225. (KWQKHTMLPart::scheduleClose):
  226. (KWQKHTMLPart::unfocusWindow):
  227. (KWQKHTMLPart::jumpToSelection):
  228. (KWQKHTMLPart::redirectionTimerStartedOrStopped):
  229. (KWQKHTMLPart::userAgent):
  230. (KWQKHTMLPart::mimeTypeForFileName):
  231. (KWQKHTMLPart::nextKeyView):
  232. (KWQKHTMLPart::currentEventIsMouseDownInWidget):
  233. (KWQKHTMLPart::openURLFromPageCache):
  234. (KWQKHTMLPart::saveDocumentState):
  235. (KWQKHTMLPart::restoreDocumentState):
  236. (KWQKHTMLPart::requestedURLString):
  237. (KWQKHTMLPart::incomingReferrer):
  238. (KWQKHTMLPart::runJavaScriptAlert):
  239. (KWQKHTMLPart::runJavaScriptConfirm):
  240. (KWQKHTMLPart::runJavaScriptPrompt):
  241. (KWQKHTMLPart::createEmptyDocument):
  242. (KWQKHTMLPart::keyEvent):
  243. (KWQKHTMLPart::khtmlMousePressEvent):
  244. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  245. (KWQKHTMLPart::lastEventIsMouseUp):
  246. (findViewInSubviews):
  247. (KWQKHTMLPart::khtmlMouseMoveEvent):
  248. (KWQKHTMLPart::passSubframeEventToSubframe):
  249. (KWQKHTMLPart::buttonForCurrentEvent):
  250. (KWQKHTMLPart::stateForCurrentEvent):
  251. (KWQKHTMLPart::mouseDown):
  252. (KWQKHTMLPart::mouseDragged):
  253. (KWQKHTMLPart::mouseUp):
  254. (KWQKHTMLPart::sendFakeEventsAfterWidgetTracking):
  255. (KWQKHTMLPart::mouseMoved):
  256. (KWQKHTMLPart::sendContextMenuEvent):
  257. (fileWrapperForElement):
  258. (KWQKHTMLPart::attributedString):
  259. (KWQKHTMLPart::keyboardUIMode):
  260. 2003-10-21 Chris Blumenberg <cblu@apple.com>
  261. Fixed: <rdar://problem/3176170>: OBJECT tag with no or empty TYPE is mishandled
  262. Reviewed by rjw.
  263. * kwq/KWQKHTMLPart.mm:
  264. (KWQKHTMLPart::createPart): call renamed frameRequiredForMIMEType:URL:
  265. * kwq/WebCoreBridge.h: renamed frameRequiredForMIMEType: to frameRequiredForMIMEType:URL:
  266. 2003-10-20 David Hyatt <hyatt@apple.com>
  267. Fix generated content (before/after) so that it no longer has any restrictions on it. CSS2.1 lifted
  268. restrictions preventing the floating/positioning of generated content.
  269. Reviewed by rjw
  270. * khtml/css/cssstyleselector.cpp:
  271. (khtml::CSSStyleSelector::adjustRenderStyle):
  272. * khtml/rendering/render_container.cpp:
  273. (RenderContainer::updatePseudoChild):
  274. 2003-10-20 Ken Kocienda <kocienda@apple.com>
  275. Reviewed by David
  276. * khtml/dom/dom2_events.cpp:
  277. (UIEvent::keyCode): Change over to use ascii value for key code.
  278. (UIEvent::which): Ditto.
  279. (KeyboardEvent::KeyboardEvent): New key event class which
  280. tracks the DOM Level 3 spec more closely.
  281. (KeyboardEvent::operator = ): New function.
  282. (KeyboardEvent::~KeyboardEvent): New function.
  283. (KeyboardEvent::ctrlKey): New function.
  284. (KeyboardEvent::shiftKey): New function.
  285. (KeyboardEvent::altKey): New function.
  286. (KeyboardEvent::metaKey): New function.
  287. (KeyboardEvent::altGraphKey): New function.
  288. (KeyboardEvent::initKeyboardEvent): New function.
  289. * khtml/dom/dom2_events.h: Ditto.
  290. * khtml/html/html_formimpl.cpp:
  291. (HTMLGenericFormElementImpl::defaultEventHandler): Use key
  292. identifiers to test which key was pressed, instead of removed keyVal().
  293. (HTMLInputElementImpl::defaultEventHandler): Ditto.
  294. (HTMLSelectElementImpl::defaultEventHandler): Ditto.
  295. * khtml/html/html_inlineimpl.cpp:
  296. (HTMLAnchorElementImpl::defaultEventHandler): Change casts to match new
  297. class name. Use key identifiers to test which key was pressed,
  298. instead of removed keyVal(). Use new modifier accessors.
  299. * khtml/xml/dom2_eventsimpl.cpp:
  300. (EventImpl::typeToId): Some reorganization of the constants in the
  301. switch statements. Name change for these to remove the KHTML_ prefix
  302. from the key up and key down events will happen soon.
  303. (EventImpl::idToType): Ditto.
  304. (KeyboardEventImpl::KeyboardEventImpl): New key event class which
  305. tracks the DOM Level 3 spec more closely.
  306. (KeyboardEventImpl::~KeyboardEventImpl): Ditto.
  307. (KeyboardEventImpl::initKeyboardEvent): Ditto.
  308. * khtml/xml/dom2_eventsimpl.h:
  309. (DOM::EventImpl::): Some reorganization of the constants in the
  310. switch statements. Name change for these to remove the KHTML_ prefix
  311. from the key up and key down events will happen soon.
  312. (DOM::KeyboardEventImpl::keyIdentifier): New function.
  313. (DOM::KeyboardEventImpl::keyLocation): New function.
  314. (DOM::KeyboardEventImpl::ctrlKey): New function.
  315. (DOM::KeyboardEventImpl::shiftKey): New function.
  316. (DOM::KeyboardEventImpl::altKey): New function.
  317. (DOM::KeyboardEventImpl::metaKey): New function.
  318. (DOM::KeyboardEventImpl::altGraphKey): New function.
  319. (DOM::KeyboardEventImpl::qKeyEvent): New function.
  320. * khtml/xml/dom_docimpl.cpp:
  321. (DocumentImpl::createEvent): Now can create keyboard events.
  322. * khtml/xml/dom_nodeimpl.cpp:
  323. (NodeImpl::dispatchKeyEvent): Class name changes.
  324. * kwq/KWQEvent.h: Added QString identifier member.
  325. * kwq/KWQEvent.mm:
  326. (hexDigit): Added helper.
  327. (identifierForKeyText): Added new function to map keys to DOM
  328. key identifiers as listed in the DOM spec.
  329. (QKeyEvent::identifier): Added accessor.
  330. * kwq/KWQKHTMLPart.mm:
  331. (KWQKHTMLPart::stateForCurrentEvent): Added check to see if
  332. a key press is on one of the numeric keypad keys.
  333. * kwq/KWQLogging.h: Added log constant for DOM events.
  334. * kwq/KWQLogging.m: Ditto
  335. 2003-10-20 David Hyatt <hyatt@apple.com>
  336. Make first-letter and before/after work with text transforms.
  337. Reviewed by mjs
  338. * khtml/rendering/render_block.cpp:
  339. (khtml::RenderBlock::addChildToFlow):
  340. * khtml/rendering/render_container.cpp:
  341. (RenderContainer::updatePseudoChild):
  342. * khtml/rendering/render_text.cpp:
  343. (RenderText::setStyle):
  344. (RenderText::isTextFragment):
  345. (RenderText::originalString):
  346. (RenderText::setText):
  347. (m_generatedContentStr):
  348. (m_start):
  349. (RenderTextFragment::~RenderTextFragment):
  350. (RenderTextFragment::isTextFragment):
  351. (RenderTextFragment::originalString):
  352. * khtml/rendering/render_text.h:
  353. (khtml::RenderTextFragment::start):
  354. (khtml::RenderTextFragment::end):
  355. (khtml::RenderTextFragment::contentString):
  356. * khtml/xml/dom_nodeimpl.h:
  357. (DOM::NodeImpl::setRenderer):
  358. 2003-10-19 David Hyatt <hyatt@apple.com>
  359. Remove the "flow-around-floats" hack for lists. Other browsers don't do this.
  360. Reviewed by darin
  361. * khtml/css/quirks.css:
  362. 2003-10-19 David Hyatt <hyatt@apple.com>
  363. Fix for a regression/crash on tivocommunity.com caused by faulty border-collapse code in the collapsedRightBorder
  364. case. I forgot to deal with colspans.
  365. Reviewed by darin
  366. * khtml/rendering/render_table.cpp:
  367. (RenderTable::cellRight):
  368. (RenderTableCell::collapsedRightBorder):
  369. 2003-10-19 David Hyatt <hyatt@apple.com>
  370. Patch from KHTML trunk that makes textareas work properly even when they have no render objects.
  371. * khtml/html/html_formimpl.cpp:
  372. (HTMLTextAreaElementImpl::encoding):
  373. (HTMLTextAreaElementImpl::value):
  374. 2003-10-18 Darin Adler <darin@apple.com>
  375. Reviewed by Maciej.
  376. - fixed 3454444 -- contents of mailto form shows up in Mail title instead of body (IE sends mail directly)
  377. * kwq/KWQKURL.mm: (KURL::parse): Changed non-hierarchical code to consider everything
  378. after a question mark as a query, just the way the hierarchical code does. This makes
  379. the code that constructs the mailto URL work properly.
  380. 2003-10-18 David Hyatt <hyatt@apple.com>
  381. Fix the intrinsic minmax width computation for blocks and XUL boxes to actually check fixed min/max CSS widths.
  382. Reviewed by darin
  383. * khtml/rendering/render_block.cpp:
  384. (khtml::RenderBlock::calcMinMaxWidth):
  385. * khtml/rendering/render_flexbox.cpp:
  386. (khtml::RenderFlexibleBox::calcMinMaxWidth):
  387. 2003-10-18 David Hyatt <hyatt@apple.com>
  388. Change the names of the border-spacing properties to border-horizontal-spacing and border-vertical-spacing.
  389. * khtml/css/cssparser.cpp:
  390. (CSSParser::parseValue):
  391. * khtml/css/cssproperties.c:
  392. (findProp):
  393. * khtml/css/cssproperties.h:
  394. * khtml/css/cssproperties.in:
  395. * khtml/css/cssstyleselector.cpp:
  396. (khtml::CSSStyleSelector::applyRule):
  397. 2003-10-18 David Hyatt <hyatt@apple.com>
  398. Fix for diveintomark className parsing bug. class="bigblue blue" would fail to match a rule with .blue.
  399. The bug was in the selector matching code for class attributes.
  400. Also fixing a minmax width bug for blocks on the mozilla.org Web site. XUL boxes had the same bug as
  401. well.
  402. Reviewed by darin
  403. * khtml/css/cssstyleselector.cpp:
  404. (khtml::CSSStyleSelector::checkOneSelector):
  405. * khtml/rendering/render_block.cpp:
  406. (khtml::RenderBlock::calcMinMaxWidth):
  407. * khtml/rendering/render_flexbox.cpp:
  408. (khtml::RenderFlexibleBox::calcMinMaxWidth):
  409. 2003-10-18 David Hyatt <hyatt@apple.com>
  410. Fix for 3443502, generated content sometimes doesn't generate. The bug is caused by an
  411. uninitialized variable. m_isContinuation needed to be set to false in the RenderInline
  412. constructor.
  413. * khtml/rendering/render_inline.cpp:
  414. (m_isContinuation):
  415. 2003-10-17 Darin Adler <darin@apple.com>
  416. Reviewed by Maciej.
  417. - make text areas set the base writing direction based on the direction in the CSS style
  418. * kwq/KWQTextArea.h: Added setBaseWritingDirection method.
  419. * kwq/KWQTextArea.mm:
  420. (-[KWQTextArea _createTextView]): Use _KWQ_setTypingParagraphStyle.
  421. (-[KWQTextArea setWordWrap:]): Use _KWQ_setTypingParagraphStyle.
  422. (-[KWQTextArea setBaseWritingDirection:]): Added. New method that sets the base writing
  423. direction in both the style of the text and the typing attributes.
  424. (-[NSTextView _KWQ_typingParagraphStyle]): Added. Helper method to make setBaseWritingDirection:
  425. a little less gigantic.
  426. (-[NSTextView _KWQ_setTypingParagraphStyle:]): Ditto.
  427. (-[NSTextStorage _KWQ_setBaseWritingDirection:]): Ditto.
  428. * kwq/KWQTextEdit.mm: (QTextEdit::setAlignment): Set both alignment and base writing direction.
  429. 2003-10-17 David Hyatt <hyatt@apple.com>
  430. Implement horizontal and vertical border-spacing. Allow them to be specified individually.
  431. Reviewed by mjs
  432. ------
  433. Fix the calcWidth method of tables to account for horizontal margins properly.
  434. Reviewed by john
  435. ------
  436. Implement border collapsing in tables.
  437. Reviewed by kocienda
  438. * khtml/css/cssparser.cpp:
  439. (CSSParser::parseValue):
  440. * khtml/css/cssproperties.c:
  441. (hash_prop):
  442. (findProp):
  443. * khtml/css/cssproperties.h:
  444. * khtml/css/cssproperties.in:
  445. * khtml/css/cssstyleselector.cpp:
  446. (khtml::CSSStyleSelector::applyRule):
  447. * khtml/css/cssvalues.c:
  448. * khtml/css/cssvalues.h:
  449. * khtml/css/cssvalues.in:
  450. * khtml/rendering/bidi.cpp:
  451. (khtml::RenderBlock::layoutInlineChildren):
  452. * khtml/rendering/render_box.cpp:
  453. (RenderBox::paintBoxDecorations):
  454. * khtml/rendering/render_form.cpp:
  455. (RenderFieldset::paintBorderMinusLegend):
  456. * khtml/rendering/render_object.cpp:
  457. (RenderObject::paintBorder):
  458. (RenderObject::collectBorders):
  459. * khtml/rendering/render_object.h:
  460. * khtml/rendering/render_style.cpp:
  461. (StyleInheritedData::StyleInheritedData):
  462. (StyleInheritedData::operator==):
  463. (RenderStyle::diff):
  464. * khtml/rendering/render_style.h:
  465. (khtml::):
  466. (khtml::CollapsedBorderValue::precedence):
  467. (khtml::CollapsedBorderValue::width):
  468. (khtml::CollapsedBorderValue::style):
  469. (khtml::CollapsedBorderValue::exists):
  470. (khtml::CollapsedBorderValue::color):
  471. (khtml::CollapsedBorderValue::isTransparent):
  472. (khtml::CollapsedBorderValue::operator==):
  473. (khtml::RenderStyle::borderLeft):
  474. (khtml::RenderStyle::borderRight):
  475. (khtml::RenderStyle::borderTop):
  476. (khtml::RenderStyle::borderBottom):
  477. (khtml::RenderStyle::horizontalBorderSpacing):
  478. (khtml::RenderStyle::verticalBorderSpacing):
  479. (khtml::RenderStyle::setHorizontalBorderSpacing):
  480. (khtml::RenderStyle::setVerticalBorderSpacing):
  481. * khtml/rendering/render_table.cpp:
  482. (RenderTable::RenderTable):
  483. (RenderTable::setStyle):
  484. (RenderTable::calcWidth):
  485. (RenderTable::paint):
  486. (RenderTable::borderLeft):
  487. (RenderTable::borderRight):
  488. (RenderTable::borderTop):
  489. (RenderTable::borderBottom):
  490. (RenderTable::cellAbove):
  491. (RenderTable::cellBelow):
  492. (RenderTable::cellLeft):
  493. (RenderTable::cellRight):
  494. (RenderTableSection::setCellWidths):
  495. (RenderTableSection::calcRowHeight):
  496. (RenderTableSection::layoutRows):
  497. (compareBorders):
  498. (RenderTableCell::collapsedLeftBorder):
  499. (RenderTableCell::collapsedRightBorder):
  500. (RenderTableCell::collapsedTopBorder):
  501. (RenderTableCell::collapsedBottomBorder):
  502. (RenderTableCell::borderLeft):
  503. (RenderTableCell::borderRight):
  504. (RenderTableCell::borderTop):
  505. (RenderTableCell::borderBottom):
  506. (collapsedBorderStyle):
  507. (CollapsedBorder::CollapsedBorder):
  508. (CollapsedBorders:::count):
  509. (CollapsedBorders::addBorder):
  510. (CollapsedBorders::nextBorder):
  511. (addBorderStyle):
  512. (RenderTableCell::collectBorders):
  513. (RenderTableCell::paintCollapsedBorder):
  514. (RenderTableCell::paintObject):
  515. (RenderTableCell::paintBoxDecorations):
  516. * khtml/rendering/render_table.h:
  517. (khtml::RenderTable::hBorderSpacing):
  518. (khtml::RenderTable::vBorderSpacing):
  519. (khtml::RenderTable::bordersPaddingAndSpacing):
  520. (khtml::RenderTable::currentBorderStyle):
  521. * khtml/rendering/table_layout.cpp:
  522. (FixedTableLayout::layout):
  523. (AutoTableLayout::calcEffectiveWidth):
  524. (AutoTableLayout::layout):
  525. 2003-10-16 Maciej Stachowiak <mjs@apple.com>
  526. Reviewed by John.
  527. More exception blocking.
  528. * kwq/KWQFont.mm:
  529. (QFont::isFixedPitch):
  530. (QFont::getNSFont):
  531. * kwq/KWQKJobClasses.mm:
  532. (KIO::TransferJob::~TransferJob):
  533. * kwq/KWQLoader.mm:
  534. (KWQServeRequest):
  535. (KWQCheckIfReloading):
  536. (KWQCheckCacheObjectStatus):
  537. (KWQRetainResponse):
  538. (KWQReleaseResponse):
  539. (KWQResponseMIMEType):
  540. === Safari-110 ===
  541. 2003-10-16 Darin Adler <darin@apple.com>
  542. Reviewed by vicki.
  543. - fix buildit build failure
  544. * kwq/KWQScrollView.mm:
  545. (QScrollView::resizeContents):
  546. 2003-10-15 Darin Adler <darin@apple.com>
  547. Reviewed by Ken.
  548. - change "volatile X * volatile" to "X * volatile" in cases where the
  549. pointer needs to be volatile but the object pointed to do does not
  550. * kwq/KWQKConfigBase.mm: (KConfig::readEntry):
  551. * kwq/KWQKCursor.mm: (+[NSCursor _WebCore_cursorWithName:hotSpot:]):
  552. * kwq/KWQKLocale.mm:
  553. (inputElementAltText):
  554. (resetButtonDefaultLabel):
  555. (searchableIndexIntroduction):
  556. (submitButtonDefaultLabel):
  557. (KLocale::language):
  558. * kwq/KWQLineEdit.mm: (QLineEdit::text):
  559. * kwq/KWQScrollView.mm:
  560. (QScrollView::setContentsPos):
  561. (QScrollView::addChild):
  562. (QScrollView::updateContents):
  563. (QScrollView::contentsToViewport):
  564. (QScrollView::viewportToContents):
  565. (QScrollView::getDocumentView):
  566. * kwq/KWQTextEdit.mm:
  567. (QTextEdit::text):
  568. (QTextEdit::textWithHardLineBreaks):
  569. * kwq/KWQWidget.mm: (QWidget::getOuterView):
  570. Removed the excess volatiles and excess casts that go with them.
  571. * kwq/KWQKCookieJar.mm: (KWQKCookieJar::cookie): Do the same, but also
  572. remove an unnecessary nil check that is the same as QString::fromNSString's
  573. default behavior.
  574. 2003-10-15 Maciej Stachowiak <mjs@apple.com>
  575. Reviewed by Dave.
  576. More objc-exception-blocking excitement.
  577. * kwq/KWQKConfigBase.mm:
  578. (KConfig::readEntry):
  579. (KConfig::readNumEntry):
  580. (RefreshPlugins):
  581. * kwq/KWQKCursor.mm:
  582. (+[NSCursor _WebCore_cursorWithName:hotSpot:]):
  583. * kwq/KWQKJavaAppletWidget.mm:
  584. (KJavaAppletWidget::showApplet):
  585. * kwq/KWQKLocale.mm:
  586. (inputElementAltText):
  587. (resetButtonDefaultLabel):
  588. (searchableIndexIntroduction):
  589. (submitButtonDefaultLabel):
  590. (KLocale::language):
  591. * kwq/KWQRegion.mm:
  592. (QRegion::QRegion):
  593. 2003-10-14 David Hyatt <hyatt@apple.com>
  594. Fix an obvious little typo with smallCaps inheritance. Richard reviewed.
  595. Also merge in Dirk's patch to fix a crasher caused by an obvious deref mistake.
  596. Reviewed by rjw and nobody
  597. * khtml/css/cssstyleselector.cpp:
  598. (khtml::convertToLength):
  599. (khtml::CSSStyleSelector::applyRule):
  600. 2003-10-14 Ken Kocienda <kocienda@apple.com>
  601. Reviewed by Hyatt
  602. * khtml/dom/dom_misc.h: Declared TristateFlag enum used to implement
  603. inheritance behavior for inheritable attributes like designMode.
  604. * khtml/dom/html_document.cpp:
  605. (HTMLDocument::designMode): Added getter.
  606. (HTMLDocument::setDesignMode): Added setter.
  607. * khtml/dom/html_document.h: Added declarations for designMode getter and setter.
  608. * khtml/dom/html_element.cpp:
  609. (HTMLElement::isContentEditable): Added convenience.
  610. (HTMLElement::contentEditable): Added getter.
  611. (HTMLElement::setContentEditable): Added setter.
  612. * khtml/dom/html_element.h: Added declarations for contentEditable accessors.
  613. * khtml/ecma/kjs_html.cpp: Added js support for contentEditable and designMode.
  614. (KJS::HTMLDocument::tryGet)
  615. (KJS::HTMLDocument::putValue)
  616. (KJS::HTMLElement::getValueProperty)
  617. (KJS::HTMLElement::putValue)
  618. * khtml/ecma/kjs_html.h:
  619. (KJS::HTMLDocument::): Added DesignMode to attribuute enum.
  620. (KJS::HTMLElement::): Added ContentEditable to attribute enum.
  621. * khtml/html/html_documentimpl.cpp:
  622. (HTMLDocumentImpl::designMode): Added getter.
  623. (HTMLDocumentImpl::setDesignMode): Added setter.
  624. * khtml/html/html_documentimpl.h: Declared designMode accessors.
  625. * khtml/html/html_elementimpl.cpp:
  626. (HTMLElementImpl::HTMLElementImpl):
  627. (HTMLElementImpl::parseAttribute): Added support for contentEditable.
  628. (HTMLElementImpl::isContentEditable): Added. Implements inheritance feature
  629. for this attribute.
  630. (HTMLElementImpl::contentEditable): Getter for contentEditable attribute.
  631. (HTMLElementImpl::setContentEditable): Setter for contentEditable attribute.
  632. * khtml/html/html_elementimpl.h:
  633. * khtml/khtml_part.cpp:
  634. (KHTMLPart::setEditMode): Added.
  635. (KHTMLPart::editMode): Added. Implements inheritance behavior for
  636. attribute.
  637. (KHTMLPart::inEditMode): Helper that calls on editMode function.
  638. (KHTMLPart::parentPart): Made const.
  639. * khtml/khtml_part.h: Rolled in a couple of typo fixes. Added
  640. declarations for the changes made in the implementation file.
  641. * khtml/khtmlpart_p.h:
  642. (KHTMLPartPrivate::KHTMLPartPrivate): Declared editMode flag.
  643. Also added support for editMode flag in initializers and copy function.
  644. * khtml/misc/htmlattrs.in: Added contentEditable as an attribute name.
  645. 2003-10-13 David Hyatt <hyatt@apple.com>
  646. Fix for a small-caps rendering error when used in conjunction with ::first-line. Always update
  647. the Font variable even when QFonts are the same, since small-caps is not stored in QFonts.
  648. Reviewed by rjw
  649. * khtml/rendering/render_text.cpp:
  650. (RenderText::paintObject):
  651. 2003-10-13 Richard Williamson (Home0 <rjw@apple.com>
  652. Updated layout tests actuals to reflect implementation of small-caps style.
  653. * layout-tests/css1/font_properties/font-expected.txt:
  654. * layout-tests/css1/font_properties/font_variant-expected.txt:
  655. * layout-tests/css1/pseudo/firstline-expected.txt:
  656. * layout-tests/css1/pseudo/multiple_pseudo_elements-expected.txt:
  657. 2003-10-13 Richard Williamson <rjw@apple.com>
  658. Added support for small-caps.
  659. Reviewed by John.
  660. * khtml/rendering/font.h:
  661. (khtml::Font::isSmallCaps):
  662. * khtml/rendering/render_text.cpp:
  663. (RenderText::shouldUseMonospaceCache):
  664. 2003-10-12 Darin Adler <darin@apple.com>
  665. * layout-tests/fast/js/date-parse-test.html: Fixed a couple of silly mistakes.
  666. * kwq/character-sets.txt: New version of file from www.iana.org. No substantive change.
  667. Also, now that we don't use MIB numbers any more, I could leave out our one local change,
  668. the MIB number we added for ISO-10646-J-1.
  669. 2003-10-10 David Hyatt <hyatt@apple.com>
  670. Beginning of work on border collapsing. This patch makes sure that cell spacing between cells is
  671. ignored and that padding on tables is ignored. This ensures that there is no space between cells
  672. or between the edges of cells and the border of the table itself.
  673. Reviewed by john
  674. * khtml/rendering/render_style.h:
  675. (khtml::RenderStyle::setBitDefaults):
  676. * khtml/rendering/render_table.cpp:
  677. (RenderTable::setStyle):
  678. (RenderTable::layout):
  679. * khtml/rendering/render_table.h:
  680. (khtml::RenderTable::collapseBorders):
  681. (khtml::RenderTable::bordersPaddingAndSpacing):
  682. 2003-10-10 David Hyatt <hyatt@apple.com>
  683. Fix for table regression 3449444, as well as a patch to support padding on tables and to stop
  684. honoring borders on row groups (both of which are correct for the "separate" border model).
  685. * khtml/rendering/render_table.cpp:
  686. (RenderTable::layout):
  687. (RenderTableSection::calcRowHeight):
  688. (RenderTableSection::layoutRows):
  689. * khtml/rendering/render_table.h:
  690. (khtml::RenderTable::bordersPaddingAndSpacing):
  691. * khtml/rendering/table_layout.cpp:
  692. (FixedTableLayout::calcMinMaxWidth):
  693. (FixedTableLayout::layout):
  694. (AutoTableLayout::calcMinMaxWidth):
  695. (AutoTableLayout::layout):
  696. Reviewed by darin
  697. 2003-10-10 David Hyatt <hyatt@apple.com>
  698. Patch to move the widgets during layout instead of at paint time.
  699. Reviewed by darin
  700. * khtml/khtmlview.cpp:
  701. * khtml/rendering/render_canvas.cpp:
  702. (RenderCanvas::repaintViewRectangle):
  703. * khtml/rendering/render_form.cpp:
  704. (RenderFormElement::baselinePosition):
  705. (RenderFormElement::layout):
  706. * khtml/rendering/render_object.cpp:
  707. (RenderObject::updateWidgetPositions):
  708. * khtml/rendering/render_object.h:
  709. * khtml/rendering/render_replaced.cpp:
  710. (RenderWidget::layout):
  711. (RenderWidget::updateWidgetPositions):
  712. * khtml/rendering/render_replaced.h:
  713. * kwq/KWQCheckBox.h:
  714. * kwq/KWQCheckBox.mm:
  715. (QCheckBox::baselinePosition):
  716. * kwq/KWQComboBox.h:
  717. * kwq/KWQComboBox.mm:
  718. (QComboBox::baselinePosition):
  719. * kwq/KWQFileButton.h:
  720. * kwq/KWQFileButton.mm:
  721. (KWQFileButton::baselinePosition):
  722. * kwq/KWQLineEdit.h:
  723. * kwq/KWQLineEdit.mm:
  724. (QLineEdit::baselinePosition):
  725. * kwq/KWQPushButton.h:
  726. * kwq/KWQPushButton.mm:
  727. (QPushButton::baselinePosition):
  728. * kwq/KWQRadioButton.h:
  729. * kwq/KWQRadioButton.mm:
  730. (QRadioButton::baselinePosition):
  731. * kwq/KWQWidget.h:
  732. * kwq/KWQWidget.mm:
  733. (QWidget::baselinePosition):
  734. (QWidget::setFrameGeometry):
  735. * kwq/WebCoreBridge.h:
  736. * kwq/WebCoreBridge.mm:
  737. 2003-10-10 David Hyatt <hyatt@apple.com>
  738. Make sure the i-beam cursor is only forced if you have a selection.
  739. Reviewed by John
  740. * khtml/khtmlview.cpp
  741. 2003-10-10 Ken Kocienda <kocienda@apple.com>
  742. Reviewed by John
  743. Fix for this bug:
  744. <rdar://problem/3440703>: Textarea form controls do not respect disabled attribute
  745. * khtml/rendering/render_form.cpp:
  746. (RenderTextArea::updateFromElement): Check for disabled attribute.
  747. * kwq/KWQTextArea.h:
  748. * kwq/KWQTextArea.mm:
  749. (-[KWQTextArea setEnabled:]): Added.
  750. (-[KWQTextArea isEnabled]): Added.
  751. (-[KWQTextArea drawRect:]): Draws a disabled-looking bezel when disabled.
  752. (-[KWQTextAreaTextView becomeFirstResponder]): Return NO if disabled.
  753. (-[KWQTextAreaTextView mouseDown:]): Block events if disabled.
  754. (-[KWQTextAreaTextView keyDown:]): Ditto.
  755. (-[KWQTextAreaTextView keyUp:]): Ditto.
  756. (-[KWQTextAreaTextView setEnabled:]): Added. Pass value through to editable
  757. attribute on text view.
  758. (-[KWQTextAreaTextView isEnabled]): Added.
  759. (-[KWQTextAreaTextView drawRect:]): Set the text color to a disabled color
  760. when disabled.
  761. * kwq/KWQTextEdit.h:
  762. * kwq/KWQTextEdit.mm:
  763. (QTextEdit::isDisabled): Added.
  764. (QTextEdit::setDisabled): Added.
  765. 2003-10-10 Maciej Stachowiak <mjs@apple.com>
  766. - fixed 3449405 - REGRESSION: reproducible crash changing focus w/ button on page, e.g. on www.aa.com
  767. More fallout from the exception blocking.
  768. * kwq/KWQButton.mm:
  769. (QButton::focusPolicy): Don't return from exception block (caught
  770. by Darin).
  771. 2003-10-09 Darin Adler <darin@apple.com>
  772. Reviewed by Maciej.
  773. - fixed 3449280 -- REGRESSION: crash copying a selection that ends in a <br>
  774. * khtml/rendering/render_br.h: Add checkSelectionPointIgnoringContinuations.
  775. * khtml/rendering/render_br.cpp: (RenderBR::checkSelectionPointIgnoringContinuations):
  776. Override to never return an offset of 1. We can't use a character offset because the
  777. DOM doesn't know that we're implemented as a text object. So an offset of 1 turns into
  778. "after this element".
  779. 2003-10-09 Maciej Stachowiak <mjs@apple.com>
  780. - fixed crash I just added.
  781. * kwq/KWQWidget.mm:
  782. (QWidget::setCursor): Move BLOCK_NS_EXCEPTIONS macros so
  783. you don't `break' out of the blocking code.
  784. 2003-10-09 Maciej Stachowiak <mjs@apple.com>
  785. Reviewed by Ken.
  786. More Cocoa exception blocking work.
  787. * kwq/KWQFrame.mm:
  788. (QFrame::setFrameStyle):
  789. * kwq/KWQLineEdit.mm:
  790. (QLineEdit::QLineEdit):
  791. (QLineEdit::~QLineEdit):
  792. (QLineEdit::setEchoMode):
  793. (QLineEdit::setFont):
  794. (QLineEdit::setText):
  795. (QLineEdit::text):
  796. (QLineEdit::isReadOnly):
  797. (QLineEdit::setReadOnly):
  798. (QLineEdit::maxLength):
  799. (QLineEdit::selectAll):
  800. (QLineEdit::edited):
  801. (QLineEdit::setEdited):
  802. (QLineEdit::sizeForCharacterWidth):
  803. (QLineEdit::baselinePosition):
  804. (QLineEdit::setAlignment):
  805. * kwq/KWQListBox.mm:
  806. (QListBox::QListBox):
  807. (QListBox::~QListBox):
  808. (QListBox::count):
  809. (QListBox::clear):
  810. (QListBox::setSelectionMode):
  811. (QListBox::insertItem):
  812. (QListBox::insertGroupLabel):
  813. (QListBox::endBatchInsert):
  814. (QListBox::setSelected):
  815. (QListBox::isSelected):
  816. (QListBox::setEnabled):
  817. (QListBox::sizeForNumberOfLines):
  818. (QListBox::focusPolicy):
  819. * kwq/KWQPushButton.mm:
  820. (QPushButton::QPushButton):
  821. (QPushButton::sizeHint):
  822. (QPushButton::baselinePosition):
  823. (QPushButton::dimensions):
  824. * kwq/KWQRadioButton.mm:
  825. (QRadioButton::QRadioButton):
  826. (QRadioButton::setChecked):
  827. (QRadioButton::isChecked):
  828. (QRadioButton::dimensions):
  829. * kwq/KWQScrollBar.mm:
  830. (-[KWQScrollBar initWithQScrollBar:]):
  831. (:m_valueChanged):
  832. (QScrollBar::~QScrollBar):
  833. (QScrollBar::setValue):
  834. (QScrollBar::setKnobProportion):
  835. (QScrollBar::scrollbarHit):
  836. * kwq/KWQScrollView.mm:
  837. (QScrollView::visibleWidth):
  838. (QScrollView::visibleHeight):
  839. (QScrollView::contentsWidth):
  840. (QScrollView::contentsHeight):
  841. (QScrollView::contentsX):
  842. (QScrollView::contentsY):
  843. (QScrollView::setContentsPos):
  844. (QScrollView::setVScrollBarMode):
  845. (QScrollView::setHScrollBarMode):
  846. (QScrollView::setScrollBarsMode):
  847. (QScrollView::vScrollBarMode):
  848. (QScrollView::hScrollBarMode):
  849. (QScrollView::hasVerticalScrollBar):
  850. (QScrollView::hasHorizontalScrollBar):
  851. (QScrollView::suppressScrollBars):
  852. (QScrollView::addChild):
  853. (QScrollView::removeChild):
  854. (QScrollView::resizeContents):
  855. (QScrollView::updateContents):
  856. (QScrollView::contentsToViewport):
  857. (QScrollView::viewportToContents):
  858. (QScrollView::setStaticBackground):
  859. (QScrollView::ensureVisible):
  860. (QScrollView::getDocumentView):
  861. * kwq/KWQTextEdit.mm:
  862. (QTextEdit::QTextEdit):
  863. (QTextEdit::setText):
  864. (QTextEdit::text):
  865. (QTextEdit::textWithHardLineBreaks):
  866. (QTextEdit::getCursorPosition):
  867. (QTextEdit::setCursorPosition):
  868. (QTextEdit::wordWrap):
  869. (QTextEdit::setWordWrap):
  870. (QTextEdit::isReadOnly):
  871. (QTextEdit::setReadOnly):
  872. (QTextEdit::selectAll):
  873. (QTextEdit::setFont):
  874. (QTextEdit::setAlignment):
  875. (QTextEdit::sizeWithColumnsAndRows):
  876. * kwq/KWQWidget.mm:
  877. (QWidget::QWidget):
  878. (QWidget::~QWidget):
  879. (QWidget::setActiveWindow):
  880. (QWidget::setEnabled):
  881. (QWidget::isEnabled):
  882. (QWidget::frameGeometry):
  883. (QWidget::hasFocus):
  884. (QWidget::setFocus):
  885. (QWidget::focusPolicy):
  886. (QWidget::isVisible):
  887. (QWidget::setCursor):
  888. (QWidget::cursor):
  889. (QWidget::setFrameGeometry):
  890. (QWidget::mapFromGlobal):
  891. (QWidget::setView):
  892. (QWidget::getOuterView):
  893. (QWidget::lockDrawingFocus):
  894. (QWidget::unlockDrawingFocus):
  895. (QWidget::disableFlushDrawing):
  896. (QWidget::enableFlushDrawing):
  897. (QWidget::setDrawingAlpha):
  898. (QWidget::paint):
  899. (QWidget::sendConsumedMouseUp):
  900. 2003-10-09 David Hyatt <hyatt@apple.com>
  901. Stop printing extra spaces before list items. Fixes ordered lists with list-style-position: inside.
  902. Reviewed by mjs
  903. * khtml/rendering/render_list.cpp:
  904. 2003-10-09 David Hyatt <hyatt@apple.com>
  905. Make definition of kMin and kMax match the KHTML trunk. Someone still needs to eliminate uses of QMIN
  906. and QMAX from the code.
  907. * kwq/KWQDef.h:
  908. (kMin):
  909. (kMax):
  910. 2003-10-09 Chris Blumenberg <cblu@apple.com>
  911. Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari
  912. Reviewed by rjw.
  913. * khtml/ecma/kjs_navigator.cpp:
  914. (PluginBase::refresh): new
  915. (PluginsFunc::tryCall): call refresh
  916. * kwq/KWQKConfigBase.h:
  917. * kwq/KWQKConfigBase.mm:
  918. (RefreshPlugins): new
  919. * kwq/WebCoreViewFactory.h:
  920. === Safari-109 ===
  921. 2003-10-08 David Hyatt <hyatt@apple.com>
  922. Fix for 3436723, the shrink-to-fit algorithm for positioned elements did not match
  923. the algorithm specified in section 10.3.7 of the CSS2.1 specification. The min-width
  924. of the element was not being taken into account like it should have been.
  925. Reviewed by mjs
  926. * khtml/rendering/render_box.cpp:
  927. (RenderBox::calcAbsoluteHorizontal):
  928. 2003-10-08 David Hyatt <hyatt@apple.com>
  929. Implement min/max width and min/max height support for replaced elements.
  930. Reviewed by ken
  931. * khtml/rendering/render_box.cpp:
  932. (RenderBox::calcReplacedWidth):
  933. (RenderBox::calcReplacedWidthUsing):
  934. (RenderBox::calcReplacedHeight):
  935. (RenderBox::calcReplacedHeightUsing):
  936. (RenderBox::availableHeight):
  937. (RenderBox::availableHeightUsing):
  938. * khtml/rendering/render_box.h:
  939. 2003-10-08 Maciej Stachowiak <mjs@apple.com>
  940. Fix development build.
  941. * kwq/KWQExceptions.h: Correct assertion args.
  942. 2003-10-08 Maciej Stachowiak <mjs@apple.com>
  943. Reviewed by Ken.
  944. Start on blocking Cocoa exceptions when calling ObjC from C++ to
  945. avoid unreproducible crashes when this happens.
  946. * kwq/KWQExceptions.h: Added. Helper macros for exception blocking.
  947. * WebCore.pbproj/project.pbxproj: Add new header
  948. In all these files, block exceptions when calling ObjC from C++,
  949. or explain why not.
  950. * kwq/KWQAccObjectCache.mm:
  951. * kwq/KWQApplication.mm:
  952. * kwq/KWQButton.mm:
  953. (QButton::QButton):
  954. (QButton::~QButton):
  955. (QButton::setText):
  956. (QButton::text):
  957. (QButton::clicked):
  958. (QButton::simulateClick):
  959. (QButton::setFont):
  960. (QButton::focusPolicy):
  961. * kwq/KWQCheckBox.mm:
  962. (QCheckBox::QCheckBox):
  963. (QCheckBox::setChecked):
  964. (QCheckBox::isChecked):
  965. (QCheckBox::dimensions):
  966. * kwq/KWQColor.mm:
  967. * kwq/KWQComboBox.mm:
  968. (QComboBox::QComboBox):
  969. (QComboBox::~QComboBox):
  970. (QComboBox::insertItem):
  971. (QComboBox::sizeHint):
  972. (QComboBox::setCurrentItem):
  973. (QComboBox::updateCurrentItem):
  974. (QComboBox::setFont):
  975. (QComboBox::dimensions):
  976. * kwq/KWQCursor.mm:
  977. * kwq/KWQFile.mm:
  978. * kwq/KWQFileButton.mm:
  979. (KWQFileButton::KWQFileButton):
  980. (KWQFileButton::~KWQFileButton):
  981. (KWQFileButton::setFilename):
  982. (KWQFileButton::sizeForCharacterWidth):
  983. (KWQFileButton::frameGeometry):
  984. (KWQFileButton::setFrameGeometry):
  985. (KWQFileButton::baselinePosition):
  986. (KWQFileButton::filenameChanged):
  987. * kwq/KWQKCookieJar.mm:
  988. (KWQKCookieJar::cookie):
  989. (KWQKCookieJar::setCookie):
  990. (KWQKCookieJar::cookieEnabled):
  991. * kwq/KWQKHTMLPartBrowserExtension.mm:
  992. (KHTMLPartBrowserExtension::createNewWindow):
  993. (KHTMLPartBrowserExtension::setIconURL):
  994. (KHTMLPartBrowserExtension::setTypedIconURL):
  995. * kwq/KWQKHistoryProvider.mm:
  996. (KParts::HistoryProvider::contains):
  997. * kwq/KWQKPartsBrowserInterface.mm:
  998. (KParts::BrowserInterface::callMethod):
  999. * kwq/KWQKStandardDirs.mm:
  1000. * kwq/KWQKURL.mm:
  1001. * kwq/KWQKWinModule.mm:
  1002. (KWinModule::workArea):
  1003. * kwq/KWQObject.mm:
  1004. * kwq/KWQString.mm:
  1005. (QString::getNSString):
  1006. * kwq/KWQTimer.mm:
  1007. * kwq/KWQWindowWidget.mm:
  1008. 2003-10-07 David Hyatt <hyatt@apple.com>
  1009. Fix for link dragging regression in the titles of links. More accessibility
  1010. improvements.
  1011. Reviewed by darin
  1012. * khtml/khtml_part.cpp:
  1013. (KHTMLPart::text):
  1014. * kwq/KWQAccObject.mm:
  1015. (-[KWQAccObject role]):
  1016. (-[KWQAccObject roleDescription]):
  1017. (-[KWQAccObject helpText]):
  1018. (-[KWQAccObject textUnderElement]):
  1019. (-[KWQAccObject value]):
  1020. (-[KWQAccObject title]):
  1021. (-[KWQAccObject accessibilityIsIgnored]):
  1022. (-[KWQAccObject accessibilityAttributeValue:]):
  1023. * kwq/WebCoreBridge.mm:
  1024. (-[WebCoreBridge elementAtPoint:]):
  1025. 2003-10-07 Ken Kocienda <kocienda@apple.com>
  1026. Reviewed by Darin
  1027. Fix for these bugs:
  1028. <rdar://problem/3443296>: REGRESSION: pop-up menu gets focus, but once it has
  1029. focus doesn't work right
  1030. <rdar://problem/3444873>: Select widgets that use list views do not take part in tab order
  1031. <rdar://problem/3446306>: Text area form widgets do not accept DOM focus correctly
  1032. <rdar://problem/3446323>: Using keyboard to work popup button select form
  1033. widget causes a crash
  1034. The intention of this patch is to add keyboard navigation support for
  1035. HTML form select widgets. This includes the two visual representations
  1036. for these widgets: popup buttons and lists. Many keyboard, focus, and
  1037. tabbing fixes are included in this work, as indicated below.
  1038. * khtml/html/html_formimpl.cpp:
  1039. (HTMLSelectElementImpl::defaultEventHandler): Added. Submit form when
  1040. return or enter key is pressed when focused on a select widget.
  1041. * khtml/html/html_formimpl.h: Make HTMLSelectElementImpl a friend class
  1042. of HTMLInputElementImpl. This is done so that an HTMLSelectElementImpl
  1043. can call the private method which simulates a form submit.
  1044. Also add declaration of defaultEventHandler function.
  1045. * kwq/KWQButton.h: Clean up focusPolicy declaration.
  1046. * kwq/KWQComboBox.h: Add focusPolicy declaration.
  1047. * kwq/KWQComboBox.mm:
  1048. (QComboBox::focusPolicy): Added. Widget will focus if full keyboard
  1049. access is on.
  1050. (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]): Now
  1051. calls sendFakeEventsAfterWidgetTracking instead of
  1052. doFakeMouseUpAfterWidgetTracking now that name has changed.
  1053. (-[KWQPopUpButton becomeFirstResponder]): Added. Needed for setting
  1054. focus correctly.
  1055. (-[KWQPopUpButton resignFirstResponder]): Ditto.
  1056. (-[KWQPopUpButton nextKeyView]): Added. Makes tabbing work correctly
  1057. for this widget.
  1058. (-[KWQPopUpButton previousKeyView]): Ditto.
  1059. (-[KWQPopUpButton nextValidKeyView]): Ditto.
  1060. (-[KWQPopUpButton previousValidKeyView]): Ditto.
  1061. * kwq/KWQKHTMLPart.h: Change name of doFakeMouseUpAfterWidgetTracking
  1062. to sendFakeEventsAfterWidgetTracking now that it handles key events
  1063. as well.
  1064. * kwq/KWQKHTMLPart.mm:
  1065. (KWQKHTMLPart::sendFakeEventsAfterWidgetTracking): Name change as
  1066. noted above. Also handles sending simulated key up events.
  1067. * kwq/KWQLineEdit.h:
  1068. (QLineEdit::checksDescendantsForFocus): Added. This is a big
  1069. part of the fiz for <rdar://problem/3446306>.
  1070. * kwq/KWQListBox.h:
  1071. (QListBox::checksDescendantsForFocus): Ditto. Yes for this widget.
  1072. * kwq/KWQListBox.mm:
  1073. (QListBox::focusPolicy): Added. Widget will focus if full keyboard
  1074. access is on.
  1075. (-[KWQListBoxScrollView becomeFirstResponder]): Added. Needed for setting
  1076. focus correctly. This sets the focus to its document view.
  1077. (-[KWQTableView becomeFirstResponder]): Added. Needed for setting
  1078. focus correctly.
  1079. (-[KWQTableView resignFirstResponder]): Added. Needed for setting
  1080. focus correctly.
  1081. (-[KWQTableView nextKeyView]): Added. Makes tabbing work correctly
  1082. for this widget.
  1083. (-[KWQTableView previousKeyView]): Ditto.
  1084. (-[KWQTableView nextValidKeyView]): Ditto.
  1085. (-[KWQTableView previousValidKeyView]): Ditto.
  1086. (-[KWQTableView _KWQ_setKeyboardFocusRingNeedsDisplay]): Added.
  1087. * kwq/KWQTextArea.mm:
  1088. (-[KWQTextAreaTextView becomeFirstResponder]): Other part of fix for
  1089. <rdar://problem/3446306>. The recursion guards were bad and wrong.
  1090. The checksDescendantsForFocus improvement prevents the erroneous
  1091. recursion from happening.
  1092. * kwq/KWQTextEdit.h:
  1093. (QTextEdit::checksDescendantsForFocus): Added. Yes for this widget.
  1094. * kwq/KWQWidget.h:
  1095. (QWidget::checksDescendantsForFocus): Added. No by default.
  1096. * kwq/KWQWidget.mm:
  1097. (QWidget::hasFocus): Now uses checksDescendantsForFocus to perform
  1098. proper checks for views that may have a subview which is first
  1099. responder.
  1100. 2003-10-07 David Hyatt <hyatt@apple.com>
  1101. Fix for 3363421, event handlers could be triggered for content outside an overflow:hidden
  1102. area. The layer checks that test for intersection/point containment need to only include
  1103. layers with overhanging floats if the element is overflow:visible.
  1104. Fix for 3366801, assignment to scrollLeft/Top of an overflow:hidden layer makes the layer
  1105. disappear. overflow:hidden blocks actually were never computing their scroll dimensions,
  1106. and so had bogus answers for those values.
  1107. Fix for 3366686, no reliable scrollHeight/Width reporting for overflow:hidden or
  1108. overflow:visible elements. The former was caused by the same bug as 3366801. The
  1109. latter was just me using the wrong method (clientWidth/Height instead of
  1110. overflowWidth/Height).
  1111. This patch also tightens the assignment to scrollLeft/Top to not do anything if you don't
  1112. have an overflow value other than visible.
  1113. Reviewed by darin
  1114. * khtml/ecma/kjs_dom.cpp:
  1115. (DOMNode::putValue):
  1116. * khtml/rendering/render_block.cpp:
  1117. (khtml::RenderBlock::layoutBlock):
  1118. * khtml/rendering/render_flexbox.cpp:
  1119. (khtml::RenderFlexibleBox::layoutBlock):
  1120. * khtml/rendering/render_layer.cpp:
  1121. (RenderLayer::RenderLayer):
  1122. (RenderLayer::scrollToOffset):
  1123. (RenderLayer::scrollWidth):
  1124. (RenderLayer::scrollHeight):
  1125. (RenderLayer::computeScrollDimensions):
  1126. (RenderLayer::updateScrollInfoAfterLayout):
  1127. (RenderLayer::intersectsDamageRect):
  1128. (RenderLayer::containsPoint):
  1129. * khtml/rendering/render_layer.h:
  1130. * khtml/rendering/render_object.cpp:
  1131. (RenderObject::scrollWidth):
  1132. (RenderObject::scrollHeight):
  1133. * khtml/rendering/render_object.h:
  1134. 2003-10-07 Darin Adler <darin@apple.com>
  1135. Reviewed by Chris.
  1136. - fixed some exceptions I was seeing with my recent text change
  1137. * khtml/khtml_part.cpp:
  1138. (KHTMLPart::text): Return an empty string for a null range rather than raising an exception.
  1139. (KHTMLPart::selection): Return a null range rather than raising an exception if there is
  1140. no selection.
  1141. 2003-10-07 Darin Adler <darin@apple.com>
  1142. Reviewed by Dave.
  1143. - removed code that mutates \n into a space so we can pass more W3C DOM Level 1 Core tests
  1144. * khtml/rendering/bidi.cpp:
  1145. (khtml::addRun): Treat \n as a space.
  1146. (khtml::RenderBlock::computeHorizontalPositionsForLine): Treat \n as a space.
  1147. (khtml::RenderBlock::findNextLineBreak): Treat \n outside <pre> as a space.
  1148. Removed code that mutates the \n into a space.
  1149. * khtml/rendering/render_text.cpp:
  1150. (RenderText::trimmedMinMaxWidth): Treat \n outside <pre> as a space.
  1151. (RenderText::calcMinMaxWidth): Treat \n outside <pre> as a space.
  1152. Removed code that mutates the \n into a space.
  1153. (RenderText::position): Detect a <br> with isBR instead of assuming a 1-character
  1154. string with a \n in it is a <br>.
  1155. 2003-10-06 David Hyatt <hyatt@apple.com>
  1156. Several fixes preparing for the incremental repainting patch to be enabled.
  1157. (1) Make layers update their positions after layout instead of during layout or
  1158. during painting.
  1159. (2) Fix a regression from the overflow:hidden body quirk landing. Make sure repaint()
  1160. understands that quirk exists and avoids clipping when it shouldn't.
  1161. (3) Fix a regression from the scrollbar improvements. The vertical scrollbar repainted
  1162. on every layout.
  1163. (4) Make sure outside list bullets are repainted when a list item needs to repaint.
  1164. (5) A whole bunch of INCREMENTAL_REPAINTING code that isn't turned on yet.
  1165. Reviewed by kocienda
  1166. * khtml/khtmlview.cpp:
  1167. (KHTMLViewPrivate::KHTMLViewPrivate):
  1168. (KHTMLViewPrivate::reset):
  1169. (KHTMLView::resetScrollBars):
  1170. (KHTMLView::needsFullRepaint):
  1171. * khtml/khtmlview.h:
  1172. * khtml/rendering/bidi.cpp:
  1173. (khtml::RenderBlock::layoutInlineChildren):
  1174. * khtml/rendering/render_block.cpp:
  1175. (khtml::RenderBlock::layoutBlock):
  1176. (khtml::RenderBlock::layoutBlockChildren):
  1177. (khtml::RenderBlock::getAbsoluteRepaintRectIncludingFloats):
  1178. (khtml::RenderBlock::repaintFloatingDescendants):
  1179. (khtml::RenderBlock::repaintObjectsBeforeLayout):
  1180. * khtml/rendering/render_block.h:
  1181. * khtml/rendering/render_box.cpp:
  1182. (RenderBox::computeAbsoluteRepaintRect):
  1183. (RenderBox::repaintDuringLayoutIfMoved):
  1184. * khtml/rendering/render_box.h:
  1185. * khtml/rendering/render_canvas.cpp:
  1186. (RenderCanvas::layout):
  1187. * khtml/rendering/render_canvas.h:
  1188. (khtml::RenderCanvas::hasOverhangingFloats):
  1189. * khtml/rendering/render_flexbox.cpp:
  1190. (khtml::RenderFlexibleBox::layoutBlock):
  1191. (khtml::RenderFlexibleBox::layoutHorizontalBox):
  1192. (khtml::RenderFlexibleBox::layoutVerticalBox):
  1193. (khtml::RenderFlexibleBox::placeChild):
  1194. * khtml/rendering/render_flexbox.h:
  1195. * khtml/rendering/render_flow.cpp:
  1196. (RenderFlow::getAbsoluteRepaintRect):
  1197. * khtml/rendering/render_image.cpp:
  1198. (RenderImage::setPixmap):
  1199. (RenderImage::layout):
  1200. * khtml/rendering/render_layer.cpp:
  1201. (RenderLayer::RenderLayer):
  1202. (RenderLayer::computeRepaintRects):
  1203. (RenderLayer::updateLayerPositions):
  1204. (RenderLayer::updateLayerPosition):
  1205. (RenderLayer::checkScrollbarsAfterLayout):
  1206. (RenderLayer::paintLayer):
  1207. (RenderLayer::calculateClipRects):
  1208. (RenderLayer::calculateRects):
  1209. * khtml/rendering/render_layer.h:
  1210. (khtml::RenderLayer::relativePositionOffset):
  1211. * khtml/rendering/render_list.cpp:
  1212. (RenderListItem::getAbsoluteRepaintRect):
  1213. * khtml/rendering/render_list.h:
  1214. (khtml::RenderListMarker::listImage):
  1215. * khtml/rendering/render_object.cpp:
  1216. (RenderObject::repaint):
  1217. (RenderObject::repaintRectangle):
  1218. (RenderObject::repaintAfterLayoutIfNeeded):
  1219. (RenderObject::repaintDuringLayoutIfMoved):
  1220. (RenderObject::repaintFloatingDescendants):
  1221. (RenderObject::checkForRepaintDuringLayout):
  1222. (RenderObject::repaintObjectsBeforeLayout):
  1223. (RenderObject::getAbsoluteRepaintRectIncludingFloats):
  1224. (RenderObject::container):
  1225. * khtml/rendering/render_object.h:
  1226. * khtml/rendering/render_table.cpp:
  1227. (RenderTable::layout):
  1228. * kwq/KWQKHTMLPart.mm:
  1229. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  1230. 2003-10-06 Darin Adler <darin@apple.com>
  1231. Reviewed by Ken.
  1232. - preparation for the upcoming whitespace patch; refactored some of the code that extracts text
  1233. * khtml/khtml_part.h: Added text() member function.
  1234. * khtml/khtml_part.cpp:
  1235. (KHTMLPart::text): Added. Refactored from selectedText; takes a DOM::Range as a parameter.
  1236. Also added code to change newlines to spaces when extracting text from the DOM.
  1237. (KHTMLPart::selectedText): Now calls text().
  1238. (KHTMLPart::selection): Removed stray declaration.
  1239. * kwq/KWQAccObject.mm: (-[KWQAccObject value]): Changed to call KHTMLPart::text.
  1240. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Changed to call KHTMLPart::text
  1241. instead of doing it ourselves.
  1242. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::attributedString): Added code to change change '\n'
  1243. newlines to spaces when extracting text from the DOM.
  1244. 2003-10-05 Maciej Stachowiak <mjs@apple.com>
  1245. Reviewed by Ken.
  1246. - fixed 3444255 - REGRESSION: www.aa.com crashes (innerHTML)
  1247. * khtml/html/html_elementimpl.cpp:
  1248. (HTMLElementImpl::createContextualFragment): Keep the fragment
  1249. ref'd since the tokenizer will ref and deref it. Then turn
  1250. TreeShared's evil against itself to get the fragment back in the
  1251. floating 0-ref state.
  1252. * khtml/html/html_elementimpl.h: Remove stray whitespace.
  1253. * khtml/html/htmlparser.cpp:
  1254. (KHTMLParser::KHTMLParser): Initialize current to 0 in the other
  1255. constructor too.
  1256. 2003-10-06 Darin Adler <darin@apple.com>
  1257. * khtml/ecma/kjs_css.lut.h:
  1258. * khtml/ecma/kjs_dom.lut.h:
  1259. * khtml/ecma/kjs_events.lut.h:
  1260. * khtml/ecma/kjs_html.lut.h:
  1261. * khtml/ecma/kjs_navigator.lut.h:
  1262. * khtml/ecma/kjs_range.lut.h:
  1263. * khtml/ecma/kjs_traversal.lut.h:
  1264. * khtml/ecma/kjs_views.lut.h:
  1265. * khtml/ecma/kjs_window.lut.h:
  1266. Regenerated, without stray semicolon.
  1267. 2003-10-03 Darin Adler <darin@apple.com>
  1268. - updated layout tests for recent WebTextRenderer changes
  1269. * layout-tests/apple-only/base/www.cnn.com/index-expected.txt:
  1270. * layout-tests/apple-only/base/www.sun.com/index-expected.txt:
  1271. * layout-tests/css1/font_properties/font_weight-expected.txt:
  1272. 2003-10-03 Chris Blumenberg <cblu@apple.com>
  1273. Removed eastCursor.tiff because it was added by mistake.
  1274. * Resources/eastCursor.tiff: Removed.
  1275. * WebCore.pbproj/project.pbxproj:
  1276. 2003-10-03 Maciej Stachowiak <mjs@apple.com>
  1277. Reviewed by Richard.
  1278. - fixed 3398420 - crash when creating a new document.body object in <body>
  1279. Also included David Faure's improvement to throw an exception.
  1280. * khtml/html/html_documentimpl.cpp:
  1281. (HTMLDocumentImpl::setBody): Don't remove the body when null is passed in,
  1282. as this means type error at the higher level, so throw an exception.
  1283. * khtml/html/htmlparser.cpp:
  1284. (KHTMLParser::KHTMLParser): Initialize current to 0.
  1285. (KHTMLParser::setCurrent): Ref new current and deref old; we need to
  1286. keep it ref'd because script execution could drop the current node on the
  1287. floor.
  1288. (KHTMLParser::reset): Use setCurrent.
  1289. (KHTMLParser::insertNode): Likewise.
  1290. (KHTMLParser::reopenResidualStyleTags): Likewise.
  1291. (KHTMLParser::popOneBlock): Likewise.
  1292. (KHTMLParser::finished): Likewise.
  1293. * khtml/html/htmlparser.h: Prototype setCurrent.
  1294. 2003-10-03 Chris Blumenberg <cblu@apple.com>
  1295. Ran compress-tiffs on new cursor images.
  1296. * Resources/eastCursor.tiff:
  1297. * Resources/eastResizeCursor.tiff:
  1298. * Resources/helpCursor.tiff:
  1299. * Resources/moveCursor.tiff:
  1300. * Resources/northEastResizeCursor.tiff:
  1301. * Resources/northResizeCursor.tiff:
  1302. * Resources/northWestResizeCursor.tiff:
  1303. * Resources/southEastResizeCursor.tiff:
  1304. * Resources/southResizeCursor.tiff:
  1305. * Resources/southWestResizeCursor.tiff:
  1306. * Resources/waitCursor.tiff:
  1307. * Resources/westResizeCursor.tiff:
  1308. 2003-10-03 Ken Kocienda <kocienda@apple.com>
  1309. Reviewed by Darin, with much help from Maciej and Hyatt
  1310. Fix for these bugs:
  1311. <rdar://problem/3441321>: Form buttons do not respond to key events when focused
  1312. <rdar://problem/3441060>: Form buttons do not scroll to view when focused
  1313. * khtml/html/html_formimpl.cpp:
  1314. (HTMLInputElementImpl::simulateMouseClickForEvent): Added helper to simulate
  1315. mouse clicks in elements. Used to trigger button actions in response to
  1316. keyboard events.
  1317. (HTMLInputElementImpl::defaultEventHandler): Improved handler to process
  1318. key press events for radio, checkbox, image, reset, and submit buttons.
  1319. * khtml/html/html_formimpl.h: Added simulateMouseClickForEvent function.
  1320. * khtml/xml/dom2_eventsimpl.h:
  1321. (DOM::EventImpl::isKeyboardEvent): Added type check virtual function.
  1322. (DOM::KeyEventImpl::isKeyboardEvent): Ditto.
  1323. * kwq/KWQButton.h:
  1324. * kwq/KWQButton.mm:
  1325. (-[KWQButton simulateClick]): New method. This makes AppKit do a
  1326. button click programatically for button types. For <input type=image>,
  1327. we just simulate a the click in the DOM since there is no real "clickable"
  1328. AppKit widget.
  1329. (-[KWQButton becomeFirstResponder]): Fixes the button scroll to visible when
  1330. focused issue.
  1331. (-[KWQButton resignFirstResponder]): Correctly give up focus when user clicks
  1332. into the page body when a button has the focus.
  1333. (QButton::simulateClick): QWidget bridge to the KWQButton simulateClick
  1334. method.
  1335. 2003-10-03 David Hyatt <hyatt@apple.com>
  1336. Removing redundant layouts and adding a few !needsLayout and !normalChildNeedsLayout
  1337. checks to prevent extra layouts.
  1338. Also, fixing the recalcStyle changed() bottleneck to go through view's layout and to
  1339. not do a full repaint. The layout method will then do the right thing (full repaint
  1340. without INCREMENTAL_REPAINTING turned on, the precise repainting needed otherwise).
  1341. Reviewed by darin
  1342. * khtml/html/html_tableimpl.cpp:
  1343. (HTMLTableElementImpl::parseAttribute):
  1344. * khtml/rendering/render_block.cpp:
  1345. * khtml/rendering/render_container.cpp:
  1346. (RenderContainer::appendChildNode):
  1347. (RenderContainer::insertChildNode):
  1348. * khtml/xml/dom_docimpl.cpp:
  1349. (DocumentImpl::recalcStyle):
  1350. 2003-10-02 David Hyatt <hyatt@apple.com>
  1351. Remove the speed hit from using the UC break locators by not using them when
  1352. checking if the current character is &nbsp; and by also using a global text
  1353. break locator object.
  1354. Reviewed by rjw
  1355. * khtml/rendering/break_lines.cpp:
  1356. === Safari-108 ===
  1357. 2003-10-02 Maciej Stachowiak <mjs@apple.com>
  1358. Reviewed by Darin.
  1359. - fixed 3398622 - Crash when JavaScript changes display style
  1360. This was a problem with one of the many global variables in
  1361. bidi.cpp, last, having a stale value from the last layout that
  1362. pointed to a dead node. I fixed this by refactoring the code to
  1363. put most of the global variables in a struct allocated on the
  1364. stack, and pass around a reference to the struct. Seems much
  1365. cleaner (if somewhat wordier) this way. There are still more
  1366. global variables to kill here.
  1367. * khtml/rendering/bidi.cpp:
  1368. (khtml::BidiIterator::BidiIterator):
  1369. (khtml::BidiStatus::BidiStatus):
  1370. (khtml::BidiInfo::BidiInfo):
  1371. (khtml::Bidinext):
  1372. (khtml::first):
  1373. (khtml::BidiIterator::increment):
  1374. (khtml::checkMidpoints):
  1375. (khtml::appendRunsForObject):
  1376. (khtml::appendRun):
  1377. (khtml::embed):
  1378. (khtml::RenderBlock::computeHorizontalPositionsForLine):
  1379. (khtml::RenderBlock::bidiReorderLine):
  1380. (khtml::buildCompactRuns):
  1381. (khtml::RenderBlock::layoutInlineChildren):
  1382. (khtml::RenderBlock::findNextLineBreak):
  1383. * khtml/rendering/bidi.h:
  1384. * khtml/rendering/render_block.h:
  1385. 2003-10-02 David Hyatt <hyatt@apple.com>
  1386. Work on exposing elements to the Acc API. This patch gets us to the point where text
  1387. under the mouse is voiced.
  1388. Reviewed by darin
  1389. * kwq/KWQAccObject.h:
  1390. * kwq/KWQAccObject.mm:
  1391. (-[KWQAccObject initWithRenderer:]):
  1392. (-[KWQAccObject parentObject]):
  1393. (-[KWQAccObject parentObjectUnignored]):
  1394. (-[KWQAccObject addChildrenToArray:]):
  1395. (-[KWQAccObject role]):
  1396. (-[KWQAccObject roleDescription]):
  1397. (-[KWQAccObject value]):
  1398. (-[KWQAccObject title]):
  1399. (-[KWQAccObject position]):
  1400. (-[KWQAccObject size]):
  1401. (-[KWQAccObject accessibilityIsIgnored]):
  1402. (-[KWQAccObject accessibilityAttributeNames]):
  1403. (-[KWQAccObject accessibilityActionNames]):
  1404. (-[KWQAccObject accessibilityIsAttributeSettable:]):
  1405. (-[KWQAccObject accessibilityAttributeValue:]):
  1406. (-[KWQAccObject accessibilityHitTest:]):
  1407. * kwq/KWQAccObjectCache.mm:
  1408. (KWQAccObjectCache::accObject):
  1409. (KWQAccObjectCache::setAccObject):
  1410. (KWQAccObjectCache::removeAccObject):
  1411. * kwq/WebCoreBridge.h:
  1412. * kwq/WebCoreBridge.mm:
  1413. (-[WebCoreBridge accessibilityTree]):
  1414. 2003-10-02 Darin Adler <darin@apple.com>
  1415. Reviewed by Ken.
  1416. * kwq/KWQRenderTreeDebug.cpp: (quoteAndEscapeNonPrintables): Since our text rendering renders
  1417. non-breaking spaces the same as spaces, dump them as spaces. Do the same with newlines since
  1418. I am about to change our text rendering to do the same with newlines.
  1419. * layout-tests: Updated test results.
  1420. 2003-10-01 David Hyatt <hyatt@apple.com>
  1421. Avoid doing extra work when tearing down the document by checking to see if
  1422. we're in the destruction of the document.
  1423. Reviewed by darin
  1424. * khtml/rendering/render_block.cpp:
  1425. * khtml/rendering/render_container.cpp:
  1426. (RenderContainer::removeChildNode):
  1427. 2003-10-01 Richard Williamson <rjw@apple.com>
  1428. Fixed 3438441. Pass extra info up to WebKit about load type, specifically is a load is triggered by JS running in an onLoad handler.
  1429. Reviewed by Ken.
  1430. * khtml/ecma/kjs_binding.h:
  1431. * kwq/KWQKHTMLPart.mm:
  1432. (KWQKHTMLPart::openURL):
  1433. (KWQKHTMLPart::openURLRequest):
  1434. (KWQKHTMLPart::submitForm):
  1435. (KWQKHTMLPart::urlSelected):
  1436. * kwq/KWQKHTMLPartBrowserExtension.mm:
  1437. (KHTMLPartBrowserExtension::createNewWindow):
  1438. * kwq/WebCoreBridge.h:
  1439. * kwq/WebCoreBridge.mm:
  1440. (-[WebCoreBridge saveDocumentToPageCache]):
  1441. Nothing changed. Tweaked spacing.
  1442. 2003-10-01 Chris Blumenberg <cblu@apple.com>
  1443. <rdar://problem/2942589>: CSS cursors are not implemented
  1444. Reviewed by Dave.
  1445. * Resources/eastCursor.tiff: Added.
  1446. * Resources/eastResizeCursor.tiff: Added.
  1447. * Resources/helpCursor.tiff: Added.
  1448. * Resources/moveCursor.tiff: Added.
  1449. * Resources/northEastResizeCursor.tiff: Added.
  1450. * Resources/northResizeCursor.tiff: Added.
  1451. * Resources/northWestResizeCursor.tiff: Added.
  1452. * Resources/southEastResizeCursor.tiff: Added.
  1453. * Resources/southResizeCursor.tiff: Added.
  1454. * Resources/southWestResizeCursor.tiff: Added.
  1455. * Resources/waitCursor.tiff: Added.
  1456. * Resources/westResizeCursor.tiff: Added.
  1457. * WebCore.pbproj/project.pbxproj:
  1458. * khtml/css/cssparser.cpp: special-case the hand cursor to mean pointer
  1459. (CSSParser::parseValue):
  1460. * khtml/css/cssvalues.c: generated changes
  1461. (hash_val):
  1462. (findValue):
  1463. * khtml/css/cssvalues.h: generated changes
  1464. * khtml/css/cssvalues.in: removed the progress cursor from the list because it was messing up the mapping
  1465. * khtml/khtmlview.cpp: call new cursor methods
  1466. * kwq/KWQKCursor.h:
  1467. * kwq/KWQKCursor.mm:
  1468. (+[NSCursor _WebCore_cursorWithName:hotSpot:]): new, loads and caches cursors
  1469. (KCursor::crossCursor): get the AppKit cross hair cursor
  1470. (KCursor::handCursor): call _WebCore_cursorWithName:hotSpot:
  1471. (KCursor::sizeAllCursor): ditto
  1472. (KCursor::waitCursor): ditto
  1473. (KCursor::whatsThisCursor): ditto
  1474. (KCursor::eastResizeCursor): new, call _WebCore_cursorWithName:hotSpot:
  1475. (KCursor::northResizeCursor): ditto
  1476. (KCursor::northEastResizeCursor): ditto
  1477. (KCursor::northWestResizeCursor): ditto
  1478. (KCursor::southResizeCursor): ditto
  1479. (KCursor::southEastResizeCursor): ditto
  1480. (KCursor::southWestResizeCursor): ditto
  1481. (KCursor::westResizeCursor): ditto
  1482. 2003-10-01 David Hyatt <hyatt@apple.com>
  1483. Clean up our detach model so that you can always get to a document, even for
  1484. anonymous content. Also stubbing out and adding the accessibility objects.
  1485. Reviewed by darin, mjs, john
  1486. * ChangeLog:
  1487. * WebCore.pbproj/project.pbxproj:
  1488. * khtml/rendering/render_block.cpp:
  1489. * khtml/rendering/render_box.cpp:
  1490. (RenderBox::detach):
  1491. * khtml/rendering/render_box.h:
  1492. * khtml/rendering/render_canvas.cpp:
  1493. (RenderCanvas::RenderCanvas):
  1494. * khtml/rendering/render_container.cpp:
  1495. (RenderContainer::detach):
  1496. (RenderContainer::addChild):
  1497. (RenderContainer::updatePseudoChild):
  1498. (RenderContainer::insertChildNode):
  1499. (RenderContainer::removeLeftoverAnonymousBoxes):
  1500. * khtml/rendering/render_container.h:
  1501. * khtml/rendering/render_flow.cpp:
  1502. (RenderFlow::createAnonymousFlow):
  1503. (RenderFlow::deleteLineBoxes):
  1504. (RenderFlow::detach):
  1505. * khtml/rendering/render_flow.h:
  1506. * khtml/rendering/render_form.cpp:
  1507. (RenderTextArea::detach):
  1508. * khtml/rendering/render_form.h:
  1509. * khtml/rendering/render_image.cpp:
  1510. (RenderImage::RenderImage):
  1511. (RenderImage::detach):
  1512. * khtml/rendering/render_image.h:
  1513. * khtml/rendering/render_inline.cpp:
  1514. (RenderInline::addChildToFlow):
  1515. (RenderInline::splitFlow):
  1516. (RenderInline::renderName):
  1517. * khtml/rendering/render_list.cpp:
  1518. (RenderListItem::setStyle):
  1519. (RenderListItem::detach):
  1520. (RenderListItem::updateMarkerLocation):
  1521. (RenderListMarker::RenderListMarker):
  1522. * khtml/rendering/render_list.h:
  1523. * khtml/rendering/render_object.cpp:
  1524. (RenderObject::RenderObject):
  1525. (RenderObject::information):
  1526. (RenderObject::dump):
  1527. (RenderObject::createAnonymousBlock):
  1528. (RenderObject::remove):
  1529. (RenderObject::detach):
  1530. * khtml/rendering/render_object.h:
  1531. * khtml/rendering/render_replaced.cpp:
  1532. (RenderWidget::detach):
  1533. * khtml/rendering/render_replaced.h:
  1534. * khtml/rendering/render_table.cpp:
  1535. (RenderTable::addChild):
  1536. (RenderTableSection::detach):
  1537. (RenderTableSection::addChild):
  1538. (RenderTableRow::detach):
  1539. (RenderTableRow::addChild):
  1540. (RenderTableCell::detach):
  1541. * khtml/rendering/render_table.h:
  1542. * khtml/rendering/render_text.cpp:
  1543. (RenderText::detach):
  1544. (RenderText::deleteRuns):
  1545. * khtml/rendering/render_text.h:
  1546. * khtml/xml/dom_docimpl.cpp:
  1547. (DocumentImpl::DocumentImpl):
  1548. (DocumentImpl::~DocumentImpl):
  1549. (DocumentImpl::detach):
  1550. (DocumentImpl::getOrCreateAccObjectCache):
  1551. * khtml/xml/dom_docimpl.h:
  1552. * khtml/xml/dom_nodeimpl.cpp:
  1553. (NodeImpl::detach):
  1554. * kwq/KWQAccObject.h: Added.
  1555. * kwq/KWQAccObject.mm: Added.
  1556. (-[KWQAccObject x]):
  1557. (-[KWQAccObject y]):
  1558. (-[KWQAccObject width]):
  1559. (-[KWQAccObject height]):
  1560. (-[KWQAccObject detached]):
  1561. (-[KWQAccObject detach]):
  1562. (-[KWQAccObject data]):
  1563. (-[KWQAccObject setData:]):
  1564. (-[KWQAccObject firstChild]):
  1565. (-[KWQAccObject lastChild]):
  1566. (-[KWQAccObject previousSibling]):
  1567. (-[KWQAccObject nextSibling]):
  1568. (-[KWQAccObject parentObject]):
  1569. * kwq/KWQAccObjectCache.h: Added.
  1570. * kwq/KWQAccObjectCache.mm: Added.
  1571. (KWQAccObjectCache::KWQAccObjectCache):
  1572. (KWQAccObjectCache::~KWQAccObjectCache):
  1573. (KWQAccObjectCache::accObject):
  1574. (KWQAccObjectCache::setAccObject):
  1575. (KWQAccObjectCache::removeAccObject):
  1576. (KWQAccObjectCache::detach):
  1577. * layout-tests/css1/pseudo/firstletter-expected.txt:
  1578. * layout-tests/css1/pseudo/multiple_pseudo_elements-expected.txt:
  1579. * layout-tests/fast/css-generated-content/002-expected.txt:
  1580. * layout-tests/fast/css-generated-content/004-expected.txt:
  1581. * layout-tests/fast/css-generated-content/005-expected.txt:
  1582. * layout-tests/fast/css-generated-content/006-expected.txt:
  1583. * layout-tests/fast/selectors/039-expected.txt:
  1584. * layout-tests/fast/selectors/039b-expected.txt:
  1585. * layout-tests/fast/selectors/041-expected.txt:
  1586. * layout-tests/fast/selectors/042-expected.txt:
  1587. * layout-tests/fast/selectors/166a-expected.txt:
  1588. * layout-tests/fast/selectors/168-expected.txt:
  1589. * layout-tests/fast/selectors/168a-expected.txt:
  1590. * layout-tests/fast/selectors/169-expected.txt:
  1591. * layout-tests/fast/selectors/169a-expected.txt:
  1592. * layout-tests/fast/text/firstline/002-expected.txt:
  1593. * layout-tests/fast/text/firstline/003-expected.txt:
  1594. 2003-10-01 David Hyatt <hyatt@apple.com>
  1595. Fix for 3163840, the images are mispositioned on the DHTML menus at the top of
  1596. www.aa.com (and in many other places). We needed to support returning the right
  1597. value from hasProperty and tryGet for 'cssFloat'.
  1598. This patch also adds support for getting/setting our custom CSS properties (-khtml-*)
  1599. and just factors the code a bit better for all the special values.
  1600. Reviewed by darin
  1601. * khtml/ecma/kjs_css.cpp:
  1602. (cssPropertyName):
  1603. (DOMCSSStyleDeclaration::hasProperty):
  1604. (DOMCSSStyleDeclaration::tryGet):
  1605. (DOMCSSStyleDeclaration::tryPut):
  1606. 2003-10-01 Darin Adler <darin@apple.com>
  1607. Reviewed by Dave.
  1608. - fixed 3437309 -- REGRESSION (100-107): Javascript menu doesn't work at www.aa.com
  1609. * khtml/xml/dom_elementimpl.cpp: (ElementImpl::removeAttribute): Restored the old behavior
  1610. for removeAttribute and removeAttributeNS; these don't give NOT_FOUND_ERR. But keep the
  1611. NOT_FOUND_ERR for removeAttributeNode and removedNamedItem.
  1612. 2003-10-01 Ken Kocienda <kocienda@apple.com>
  1613. Reviewed by me
  1614. * kwq/KWQWidget.mm:
  1615. (QWidget::focusPolicy): Improved comment.
  1616. 2003-10-01 Ken Kocienda <kocienda@apple.com>
  1617. Reviewed by Maciej
  1618. Fix for these bugs:
  1619. <rdar://problem/3439736>: WebCore form button widgets do not accept focus
  1620. <rdar://problem/3440770>: WebCore form button widgets do not take part in tabbing order
  1621. * kwq/KWQButton.h: Add focusPolicy function declaration.
  1622. * kwq/KWQButton.mm:
  1623. (-[KWQButton nextKeyView]): Add tabbing support for buttons.
  1624. (-[KWQButton previousKeyView]): Ditto
  1625. (-[KWQButton nextValidKeyView]): Ditto
  1626. (-[KWQButton previousValidKeyView]): Ditto
  1627. (QButton::focusPolicy): Add focusPolicy implementation. This calls through
  1628. to the recently-added accessor for full keyboard access to help in the
  1629. determination for focus policy. For now, full keyboard access must be
  1630. turned on for buttons to receive focus.
  1631. * kwq/KWQTextEdit.h: Remove focusPolicy specialization from this class. The
  1632. implementation in QWidget now serves this class well.
  1633. * kwq/KWQTextEdit.mm: Ditto
  1634. * kwq/KWQWidget.h: Added isEnabled function. Small, unrelated cleanup to
  1635. move the no-implementation setFocusPolicy() and setFocusProxy() functions
  1636. fully into the header file.
  1637. * kwq/KWQWidget.mm:
  1638. (QWidget::isEnabled): Added. Calls through to the Cocoa view to retrieve
  1639. this information.
  1640. (QWidget::focusPolicy): Much improved focus policy function is now more
  1641. general in stipulating the conditions for focus policy, and will work for
  1642. more widgets.
  1643. 2003-10-01 David Hyatt <hyatt@apple.com>
  1644. Fix for 3440804, broken scrollbars in downloads window. Make Auto be the default
  1645. value in the enum, so that all scrollviews will be automatically initialized to be
  1646. auto.
  1647. Reviewed by cblu
  1648. * kwq/KWQScrollView.h:
  1649. * kwq/WebCoreFrameView.h:
  1650. 2003-09-30 Ken Kocienda <kocienda@apple.com>
  1651. Reviewed by me
  1652. * WebCore.pbproj/project.pbxproj: Made WebCoreKeyboardAccess.h a private header.
  1653. 2003-09-30 Ken Kocienda <kocienda@apple.com>
  1654. Reviewed by Maciej
  1655. Fix for this bug:
  1656. <rdar://problem/3439688>: WebKit needs to retrieve full keyboard access preference
  1657. * WebCore.pbproj/project.pbxproj:
  1658. * kwq/KWQKHTMLPart.h: Declare keyboardUIMode accessor.
  1659. * kwq/KWQKHTMLPart.mm:
  1660. (KWQKHTMLPart::keyboardUIMode): Implement keyboardUIMode accessor (calls through the bridge).
  1661. * kwq/WebCoreBridge.h: Declare the bridge accessor.
  1662. * kwq/WebCoreKeyboardAccess.h: Added. Header defines keyboard UI mode constants.
  1663. 2003-09-30 Maciej Stachowiak <mjs@apple.com>
  1664. Reviewed by Ken.
  1665. - fixed 3375281 - Keyboard event handlers not fired if focus not in form field
  1666. - fixed 3242927 - KeyPressed Event in Javascript don't work
  1667. - fixed 3375353 - keyboard event.target not updated when blurring from form items
  1668. - fixed 3183754 - returning false from key press handlers does not prevent typing or form submission
  1669. * khtml/xml/dom_nodeimpl.cpp:
  1670. (NodeImpl::dispatchKeyEvent): Force false when defaultHandled instead of
  1671. based on a weird rule appropriate for KDE but not for us.
  1672. * kwq/KWQKHTMLPart.mm:
  1673. (KWQKHTMLPart::keyEvent): If there's no focus node, give the event
  1674. to the body element instead of giving up. Also, reverse
  1675. expectedsense of return value dispatchKeyEvent, since it returns
  1676. true if it *didn't* swallow the event. And finally, let the key press
  1677. event as well as the key down event for the initial NSKeyDown block
  1678. default handling.
  1679. * kwq/KWQListBox.mm:
  1680. (-[KWQTableView keyDown:]): Respect return value from interceptKeyEvent:
  1681. (-[KWQTableView keyUp:]): ditto
  1682. * kwq/KWQTextArea.mm:
  1683. (-[KWQTextAreaTextView keyDown:]): ditto
  1684. (-[KWQTextAreaTextView keyUp:]): ditto
  1685. * kwq/KWQTextField.mm:
  1686. (-[KWQTextField textView:shouldHandleEvent:]): ditto
  1687. 2003-09-30 David Hyatt <hyatt@apple.com>
  1688. Improvements to layout transitions and scrollbar appearance/disappearance.
  1689. Also implementing a fix for 3264346, overflow applied to body should apply to
  1690. the document's scrollers.
  1691. Reviewed by darin
  1692. * khtml/html/html_baseimpl.cpp:
  1693. (HTMLFrameElementImpl::parseAttribute):
  1694. * khtml/khtmlview.cpp:
  1695. (KHTMLView::KHTMLView):
  1696. (KHTMLView::~KHTMLView):
  1697. (KHTMLView::resetScrollBars):
  1698. (KHTMLView::clear):
  1699. (KHTMLView::initScrollBars):
  1700. (KHTMLView::applyBodyScrollQuirk):
  1701. (KHTMLView::inLayout):
  1702. * khtml/khtmlview.h:
  1703. * khtml/rendering/render_block.cpp:
  1704. * khtml/rendering/render_block.h:
  1705. * khtml/rendering/render_canvas.cpp:
  1706. (RenderCanvas::layout):
  1707. * khtml/rendering/render_form.cpp:
  1708. (TextAreaWidget::TextAreaWidget):
  1709. * khtml/rendering/render_frames.cpp:
  1710. (RenderFrame::slotViewCleared):
  1711. (RenderPartObject::slotViewCleared):
  1712. * khtml/rendering/render_list.cpp:
  1713. (RenderListMarker::calcMinMaxWidth):
  1714. * khtml/rendering/render_object.cpp:
  1715. (RenderObject::repaint):
  1716. (RenderObject::repaintRectangle):
  1717. * khtml/xml/dom_docimpl.cpp:
  1718. (DocumentImpl::setInPageCache):
  1719. * kwq/KWQKHTMLPart.mm:
  1720. (KWQKHTMLPart::createPart):
  1721. * kwq/KWQRenderTreeDebug.cpp:
  1722. (write):
  1723. (externalRepresentation):
  1724. * kwq/KWQScrollView.h:
  1725. * kwq/KWQScrollView.mm:
  1726. (QScrollView::setVScrollBarMode):
  1727. (QScrollView::setHScrollBarMode):
  1728. (QScrollView::setScrollBarsMode):
  1729. (QScrollView::vScrollBarMode):
  1730. (QScrollView::hScrollBarMode):
  1731. (QScrollView::hasVerticalScrollBar):
  1732. (QScrollView::hasHorizontalScrollBar):
  1733. (QScrollView::suppressScrollBars):
  1734. * kwq/WebCoreBridge.mm:
  1735. (-[WebCoreBridge installInFrame:]):
  1736. * kwq/WebCoreFrameView.h:
  1737. 2003-09-30 David Hyatt <hyatt@apple.com>
  1738. Fix for 3437260, nil deref of the render style because it hasn't been set yet.
  1739. Fallout from my incremental repainting landing.
  1740. Reviewed by darin
  1741. * khtml/rendering/render_replaced.cpp:
  1742. (RenderWidget::setQWidget):
  1743. 2003-09-29 David Hyatt <hyatt@apple.com>
  1744. Fix for 3438479, tables expand on every layout when a cell has percentage height
  1745. children.
  1746. Reviewed by darin
  1747. * khtml/rendering/render_table.cpp:
  1748. (RenderTableSection::calcRowHeight):
  1749. (RenderTableRow::layout):
  1750. 2003-09-29 Chris Blumenberg <cblu@apple.com>
  1751. Fixed: <rdar://problem/3332460>: nil-deref in khtml::RenderWidget::eventFilter with onchange handler
  1752. Reviewed by darin.
  1753. * kwq/KWQTextField.mm:
  1754. (-[KWQTextField controlTextDidEndEditing:]): call setHasFocus:NO last so we have the widget that lets us get to the bridge and lets us call controlTextDidEndEditing
  1755. 2003-09-29 David Hyatt <hyatt@apple.com>
  1756. Fix for 3425053, text past the bottom of a positioned table doesn't repaint.
  1757. 3426847 is the same bug. Both are fixed by ensuring that calcHeight doesn't actually
  1758. do anything other than margin computation and position determination for positioned
  1759. elements. In reality, for weird edge cases like implying the height via explicit top and
  1760. bottom properties, we'll still be wrong.
  1761. Reviewed by darin
  1762. * ChangeLog:
  1763. * khtml/rendering/render_table.cpp:
  1764. (RenderTable::layout):
  1765. 2003-09-29 David Hyatt <hyatt@apple.com>
  1766. Make sure that timeouts updateRendering after they execute the scheduled timer
  1767. action.
  1768. Also fixing 3429455, maxwidth of pres miscomputed when two blank lines occur at
  1769. the end of a pre text run.
  1770. Reviewed by darin, mjs (setTimeout fix), darin (pre fix)
  1771. * khtml/ecma/kjs_window.cpp:
  1772. (ScheduledAction::execute):
  1773. * khtml/rendering/render_text.cpp:
  1774. (RenderText::trimmedMinMaxWidth):
  1775. (RenderText::calcMinMaxWidth):
  1776. 2003-09-29 Darin Adler <darin@apple.com>
  1777. Reviewed by John.
  1778. - fixed 3437292 -- Safari uses wrong characters for &and; and &or; entities
  1779. * khtml/html/kentities.gperf: Corrected values for &and; and &or; entities.
  1780. Checked all the rest against a list on the W3C site, and those are the only two that were wrong.
  1781. * khtml/html/kentities.c: Regnenerated.
  1782. 2003-09-26 Ken Kocienda <kocienda@apple.com>
  1783. Reviewed by John
  1784. Fix for this bug:
  1785. <rdar://problem/3435532>: REGRESSION: tabbing to textareas causes infinite recursion
  1786. Add recursion guards to the becomeFirstResponder method, otherwise calling
  1787. eventFilter with a FocusIn event will cause the infinite recursion
  1788. described in the bug.
  1789. * kwq/KWQTextArea.mm:
  1790. (-[KWQTextAreaTextView becomeFirstResponder]):
  1791. 2003-09-25 Maciej Stachowiak <mjs@apple.com>
  1792. Reviewed by John.
  1793. * khtml/ecma/kjs_window.cpp:
  1794. (Window::installTimeout): Variant that takes a function and args.
  1795. (WindowFunc::tryCall): If the argument is a function, call the
  1796. function variant of installTimeout instead of pointlessly passing
  1797. the string. Also, correctly implement the code to pass extra args
  1798. along.
  1799. * khtml/ecma/kjs_window.h:
  1800. 2003-09-25 Maciej Stachowiak <mjs@apple.com>
  1801. Roll out build system change since it did not actually work. :-(
  1802. * WebCore.pbproj/project.pbxproj:
  1803. 2003-09-25 David Hyatt <hyatt@apple.com>
  1804. Landing the new repainting code. This code eliminates many redundant layouts, makes
  1805. layout scheduling work properly when called from WebKit, cleans up relpositioned inlines
  1806. that act as containing blocks for absolute positioned children, and eliminates the
  1807. repaint timer.
  1808. Reviewed by kocienda
  1809. * khtml/html/html_documentimpl.cpp:
  1810. (HTMLDocumentImpl::close):
  1811. * khtml/khtmlview.cpp:
  1812. (KHTMLView::KHTMLView):
  1813. * khtml/khtmlview.h:
  1814. * khtml/rendering/render_block.cpp:
  1815. * khtml/rendering/render_block.h:
  1816. * khtml/rendering/render_box.cpp:
  1817. (RenderBox::setStyle):
  1818. (RenderBox::setPixmap):
  1819. (RenderBox::getAbsoluteRepaintRect):
  1820. (RenderBox::computeAbsoluteRepaintRect):
  1821. (RenderBox::repaintIfMoved):
  1822. (RenderBox::calcAbsoluteHorizontal):
  1823. (RenderBox::calcAbsoluteVertical):
  1824. * khtml/rendering/render_box.h:
  1825. * khtml/rendering/render_canvas.cpp:
  1826. (RenderCanvas::layout):
  1827. (RenderCanvas::repaintViewRectangle):
  1828. (RenderCanvas::getAbsoluteRepaintRect):
  1829. (RenderCanvas::computeAbsoluteRepaintRect):
  1830. * khtml/rendering/render_canvas.h:
  1831. * khtml/rendering/render_container.cpp:
  1832. (RenderContainer::addChild):
  1833. (RenderContainer::removeChildNode):
  1834. (RenderContainer::removeChild):
  1835. (RenderContainer::appendChildNode):
  1836. (RenderContainer::insertChildNode):
  1837. * khtml/rendering/render_flexbox.cpp:
  1838. * khtml/rendering/render_flow.cpp:
  1839. (RenderFlow::getAbsoluteRepaintRect):
  1840. * khtml/rendering/render_flow.h:
  1841. * khtml/rendering/render_image.cpp:
  1842. (RenderImage::setPixmap):
  1843. (RenderImage::layout):
  1844. * khtml/rendering/render_inline.cpp:
  1845. (RenderInline::addChildToFlow):
  1846. * khtml/rendering/render_layer.cpp:
  1847. (RenderLayer::convertToLayerCoords):
  1848. * khtml/rendering/render_list.cpp:
  1849. (RenderListMarker::setPixmap):
  1850. * khtml/rendering/render_object.cpp:
  1851. (RenderObject::RenderObject):
  1852. (RenderObject::setNeedsLayout):
  1853. (RenderObject::setChildNeedsLayout):
  1854. (RenderObject::markContainingBlocksForLayout):
  1855. (RenderObject::containingBlock):
  1856. (RenderObject::repaint):
  1857. (RenderObject::repaintRectangle):
  1858. (RenderObject::repaintAfterLayoutIfNeeded):
  1859. (RenderObject::repaintIfMoved):
  1860. (RenderObject::repaintPositionedAndFloatingDescendants):
  1861. (RenderObject::getAbsoluteRepaintRect):
  1862. (RenderObject::getAbsoluteRepaintRectIncludingDescendants):
  1863. (RenderObject::computeAbsoluteRepaintRect):
  1864. (RenderObject::setStyle):
  1865. (RenderObject::container):
  1866. (RenderObject::detach):
  1867. (RenderObject::scheduleRelayout):
  1868. * khtml/rendering/render_object.h:
  1869. * khtml/rendering/render_style.cpp:
  1870. (RenderStyle::diff):
  1871. * khtml/rendering/render_table.cpp:
  1872. (RenderTable::layout):
  1873. (RenderTableRow::getAbsoluteRepaintRect):
  1874. (RenderTableCell::computeAbsoluteRepaintRect):
  1875. * khtml/rendering/render_table.h:
  1876. * khtml/xml/dom_nodeimpl.cpp:
  1877. (NodeBaseImpl::insertBefore):
  1878. (NodeBaseImpl::replaceChild):
  1879. (NodeBaseImpl::appendChild):
  1880. * kwq/KWQKHTMLPart.mm:
  1881. (KWQKHTMLPart::clearTimers):
  1882. * kwq/KWQRenderTreeDebug.cpp:
  1883. (write):
  1884. (externalRepresentation):
  1885. * kwq/KWQRenderTreeDebug.h:
  1886. 2003-09-25 Maciej Stachowiak <mjs@apple.com>
  1887. Reviewed by Darin.
  1888. * WebCore.pbproj/project.pbxproj: Don't hack install name. Instead
  1889. of embedding into Safari, embed into WebKit as sub-umbrella.
  1890. === Safari-107 ===
  1891. 2003-09-25 Darin Adler <darin@apple.com>
  1892. - rolled out change to fix 3390850 because it caused a performance regression
  1893. * khtml/misc/decoder.cpp: (Decoder::decode): Rolled out change.
  1894. 2003-09-25 Ken Kocienda <kocienda@apple.com>
  1895. Reviewed by Dave
  1896. Name change: TextRun is now InlineTextBox. Some related names
  1897. have been changed as well. There should be no change in
  1898. behavior as a result of this patch.
  1899. * khtml/khtml_part.cpp:
  1900. (KHTMLPart::selectedText):
  1901. (firstRunAt):
  1902. (lastRunAt):
  1903. (startAndEndLineNodesIncludingNode):
  1904. * khtml/rendering/bidi.cpp:
  1905. * khtml/rendering/render_flow.cpp:
  1906. (RenderFlow::paintLineBoxDecorations):
  1907. * khtml/rendering/render_line.cpp:
  1908. (InlineFlowBox::placeBoxesHorizontally):
  1909. (InlineFlowBox::placeBoxesVertically):
  1910. * khtml/rendering/render_line.h:
  1911. * khtml/rendering/render_text.cpp:
  1912. (InlineTextBox::detach):
  1913. (throw):
  1914. (InlineTextBox::operator delete):
  1915. (InlineTextBox::paintSelection):
  1916. (InlineTextBox::paintDecoration):
  1917. (InlineTextBox::checkSelectionPoint):
  1918. (InlineTextBoxArray::InlineTextBoxArray):
  1919. (InlineTextBoxArray::compareItems):
  1920. (InlineTextBoxArray::findFirstMatching):
  1921. (RenderText::deleteRuns):
  1922. (RenderText::findNextInlineTextBox):
  1923. (RenderText::nodeAtPoint):
  1924. (RenderText::checkSelectionPointIgnoringContinuations):
  1925. (RenderText::cursorPos):
  1926. (RenderText::posOfChar):
  1927. (RenderText::paintObject):
  1928. (RenderText::createInlineBox):
  1929. (RenderText::position):
  1930. (RenderText::width):
  1931. * khtml/rendering/render_text.h:
  1932. * kwq/KWQKHTMLPart.mm:
  1933. (KWQKHTMLPart::attributedString):
  1934. * kwq/KWQRenderTreeDebug.cpp:
  1935. (writeTextRun):
  1936. (write):
  1937. 2003-09-25 Darin Adler <darin@apple.com>
  1938. Added a new layout test.
  1939. * layout-tests/fast/forms/form-element-geometry-expected.txt: Added.
  1940. * layout-tests/fast/forms/form-element-geometry.html: Added.
  1941. 2003-09-24 Darin Adler <darin@apple.com>
  1942. * layout-tests/fast/table/003-expected.txt: Updated for textarea width change.
  1943. 2003-09-24 David Hyatt <hyatt@apple.com>
  1944. Fix for 3429646, <img src="blah"<img src="foo"> should show up as two images.
  1945. Reviewed by darin
  1946. * khtml/html/htmlparser.cpp:
  1947. (KHTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  1948. * khtml/html/htmltokenizer.cpp:
  1949. (HTMLTokenizer::parseTag):
  1950. 2003-09-24 Darin Adler <darin@apple.com>
  1951. Reviewed by Dave.
  1952. - fixed a recent regression, and ...
  1953. - fixed 3386544 -- ARCH: <object>s don't support transclusion like <iframe>s do
  1954. * khtml/khtml_part.cpp: (KHTMLPart::childFrame): Added back a cast I should
  1955. not have removed to fix the function.
  1956. 2003-09-24 David Hyatt <hyatt@apple.com>
  1957. Fix for 3430612, crash on about:blank in updateHoverActiveState. Just missing
  1958. a null-check. Also remove a hover optimization that was bogus.
  1959. Reviewed by darin
  1960. * khtml/rendering/render_layer.cpp:
  1961. (RenderLayer::updateHoverActiveState):
  1962. 2003-09-24 Richard Williamson <rjw@apple.com>
  1963. Fixed 3420736. Clear renderer caches when get an ATS font changed notification. This fix may be moot depending on progress toward fixing 2695906.
  1964. * kwq/WebCoreBridge.h:
  1965. * kwq/WebCoreBridge.mm:
  1966. (+[WebCoreBridge updateAllViews]):
  1967. 2003-09-24 Darin Adler <darin@apple.com>
  1968. - a new test for JavaScript date parsing
  1969. * layout-tests/fast/js/date-parse-test-expected.txt: Added.
  1970. * layout-tests/fast/js/date-parse-test.html: Added.
  1971. 2003-09-24 Darin Adler <darin@apple.com>
  1972. Reviewed by Ken.
  1973. - fixed ownerElement for documents in HTML objects (helpful for some work Dave is doing)
  1974. * khtml/khtml_part.h: Change name of frame function to childFrame for clarity.
  1975. * khtml/khtml_part.cpp:
  1976. (KHTMLPart::slotChildStarted): Call the frame function by its new name, childFrame.
  1977. (KHTMLPart::slotChildCompleted): Ditto.
  1978. (KHTMLPart::slotChildURLRequest): Ditto.
  1979. (KHTMLPart::childFrame): Change name from frame to childFrame for clarity, and make it work
  1980. for parts inside HTML objects, not just normal frames and iframes. The change in behavior is
  1981. the actual fix. Note that for the three callers above, it's an error to call this when the
  1982. result would be 0, so there's no harm in doing the extra search of HTML objects in those cases.
  1983. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::ownerElement): Call the frame function by its new
  1984. name, childFrame. This is the caller that will benefit most from the change in behavior.
  1985. * kwq/KWQKHTMLPart.h: Remove childFrameForPart function, which is superseded by the
  1986. childFrame function now.
  1987. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::nextKeyViewInFrameHierarchy): Use childFrame instead
  1988. of childFrameForPart.
  1989. 2003-09-23 Darin Adler <darin@apple.com>
  1990. Reviewed by Ken.
  1991. - fixed 3390850 -- Shift_JIS in meta tag ignored because <img> tag in JavaScript comes first (vintagecomp.com)
  1992. * khtml/misc/decoder.cpp: (Decoder::decode): Don't let tags inside a script make us think we're in the body.
  1993. Later we can enhance this even more.
  1994. 2003-09-22 Darin Adler <darin@apple.com>
  1995. Reviewed by Ken.
  1996. - fixed 3292723 -- onBlur() getting called twice on <input type=text>
  1997. * khtml/rendering/render_replaced.cpp: (RenderWidget::eventFilter):
  1998. Call setFocusNode(0) instead of explicitly sending a blur event, otherwise
  1999. setFocusNode will send a second blur event later.
  2000. 2003-09-22 Darin Adler <darin@apple.com>
  2001. - fixed 3391837 -- we list ISO-8859-8-E as visual ordering for Hebrew; it's "explicit ordering", not supported
  2002. * kwq/mac-encodings.txt: Removed ISO-8859-8-E.
  2003. * kwq/KWQCharsetData.c: Regenerated.
  2004. 2003-09-22 Darin Adler <darin@apple.com>
  2005. * kwq/KWQTextEdit.mm: (QTextEdit::sizeWithColumnsAndRows): Made it compile.
  2006. 2003-09-22 Darin Adler <darin@apple.com>
  2007. Reviewed by Maciej.
  2008. - fixed 3306041 -- Airborne tracking number field too narrow, tracking doesn't work (textare col property)
  2009. * khtml/rendering/render_form.cpp: (RenderTextArea::calcMinMaxWidth): Call the QTextEdit
  2010. to ask it what size, rather than trying to compute it. This is the same thing we do with
  2011. other widgets, I just hadn't done textarea yet.
  2012. * kwq/KWQTextEdit.h: Added sizeWithColumnsAndRows function.
  2013. * kwq/KWQTextEdit.mm: (QTextEdit::sizeWithColumnsAndRows): Added. Calls through to the
  2014. KWQTextArea object.
  2015. * kwq/KWQTextArea.h: Added sizeWithColumns:rows: method.
  2016. * kwq/KWQTextArea.mm:
  2017. (-[KWQTextArea _createTextView]): Make consistent with other callers of the size mapping methods
  2018. by using [self class] instead of NSScrollView, and getting hasHorizontalScroller and
  2019. hasVerticalScroller from the view.
  2020. (-[KWQTextArea setFrame:]): Make consistent with other callers of the size mapping methods
  2021. by using [self class] instead of NSScrollView.
  2022. (-[KWQTextArea sizeWithColumns:rows:]): Added. Starts by computing the width and height of the
  2023. columns specified, using a canonical width of a "0" character. Then converts that to a container
  2024. size by adding line fragment padding. Then converts that into the text view size by adding the
  2025. text container inset. Then converts that into the scroll view size by calling frameSizeForContentSize:.
  2026. 2003-09-22 Darin Adler <darin@apple.com>
  2027. * WebCore.pbproj/project.pbxproj: Rename Mixed build style to OptimizedWithSymbols.
  2028. 2003-09-22 Darin Adler <darin@apple.com>
  2029. Reviewed by Ken.
  2030. - research determined we were using nothing defined in config.h, so I got rid of it
  2031. * Makefile.am: Removed rules to generate config.h.
  2032. * config.h: Removed.
  2033. * WebCore.pbproj/project.pbxproj: Removed define of HAVE_CONFIG_H.
  2034. * WebCorePrefix.h: Removed include of <config.h>.
  2035. * ForwardingHeaders/config.h: Emptied this file out. Can't remove this because there are
  2036. some includes of <config.h> without HAVE_CONFIG_H wrappers.
  2037. 2003-09-21 Darin Adler <darin@apple.com>
  2038. Reviewed by Dave.
  2039. - fixed 3106411 -- show title attribute for page elements in tooltip on mouseover (important for PeopleSoft)
  2040. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Set the value of a new element dictionary
  2041. key, WebCoreElementTitleKey. This gives the title for an element, walking up the DOM tree as necessary
  2042. to find it. It's used for tool tips at the WebKit level.
  2043. * kwq/WebCoreBridge.h: Added WebCoreElementTitleKey and WebCorePageCacheStateKey.
  2044. * WebCore.exp: Added all the constants from WebCoreBridge.h; these should be exported even though they
  2045. are not being used at the moment because the "WebCore and WebKit use the same constant keys" hack we
  2046. are doing at the WebKit level means we can just use the WebKit keys on the WebKit side.
  2047. * WebCore-combined.exp: Regenerated.
  2048. 2003-09-20 Darin Adler <darin@apple.com>
  2049. Reviewed by Dave.
  2050. - fixed 3328481 -- selection in select element list box does not scroll into view when set programatically
  2051. * kwq/KWQListBox.mm: (QListBox::setSelected): Scroll newly-selected item into view.
  2052. 2003-09-20 Darin Adler <darin@apple.com>
  2053. Reviewed by Dave.
  2054. - fixed 3429384 -- REGRESSION (89-90): nil-deref in KHTMLPart::write() (cheshiremotorcyclesalvage.com)
  2055. * khtml/khtml_part.cpp: (KHTMLPart::write): Add a nil check.
  2056. 2003-09-20 Darin Adler <darin@apple.com>
  2057. Reviewed by Dave.
  2058. - more fixes for the W3C DOM tests
  2059. * khtml/dom/dom_doc.cpp: (Document::createAttributeNS): Check that the attribute name
  2060. is valid and throw INVALID_CHARACTER_ERR if not.
  2061. * khtml/dom/dom_element.cpp:
  2062. (Element::removeAttributeNode): Get the attribute name properly. The old code would always
  2063. get a 0, so this function would always fail.
  2064. (Element::setAttributeNS): Check that the attribute name is valid and throw
  2065. INVALID_CHARACTER_ERR if not.
  2066. (Element::setAttributeNodeNS): Remove redundant exception checks that are also done by
  2067. setNamedItem in the implementation. I had to change the implementation of one, so I decided
  2068. it was better not to have any duplication.
  2069. * khtml/xml/dom_docimpl.h: Added isValidName function.
  2070. * khtml/xml/dom_docimpl.cpp:
  2071. (DocumentImpl::createHTMLElement): Check that the attribute name is valid and throw
  2072. INVALID_CHARACTER_ERR if not.
  2073. (DocumentImpl::isValidName): Added. Used to check for valid names.
  2074. * khtml/xml/dom_elementimpl.cpp:
  2075. (NamedAttrMapImpl::setNamedItem): Don't do the document check until after checking for
  2076. the "replace self" case. Otherwise we raise a spurious "in use" exception.
  2077. (NamedAttrMapImpl::addAttribute): Point the new attribute at the element.
  2078. 2003-09-19 Maciej Stachowiak <mjs@apple.com>
  2079. Reviewed by Darin.
  2080. Roll out old fix for 3410980 and do a new better fix.
  2081. * khtml/html/html_documentimpl.cpp:
  2082. (HTMLDocumentImpl::close):
  2083. * khtml/khtml_part.h:
  2084. * kwq/KWQKHTMLPart.mm:
  2085. * kwq/WebCoreBridge.h:
  2086. 2003-09-19 Darin Adler <darin@apple.com>
  2087. Reviewed by Dave.
  2088. - update layout tests for Dave's change
  2089. * layout-tests/apple-only/base/www.excite.com/index-expected.txt:
  2090. * layout-tests/fast/block/positioning/051-expected.txt:
  2091. * layout-tests/fast/overflow/003-expected.txt:
  2092. - fixed 3426272 -- sites that use text-shadow cause leaks (QPainter::setShadow)
  2093. * kwq/KWQPainter.mm: (QPainter::setShadow): Release the color space and color.
  2094. - fixed some errors that caused failures in the W3C DOM suite
  2095. * khtml/ecma/kjs_binding.cpp:
  2096. (DOMObject::get): Put "code" in the error object.
  2097. (DOMObject::put): Put "code" in the error object.
  2098. (DOMFunction::get): Put "code" in the error object.
  2099. * khtml/ecma/kjs_dom.cpp: (DOMCharacterDataProtoFunc::tryCall):
  2100. Add checks for negative count values. Not clear whether this change is
  2101. really great, but it helps us pass W3C DOM tests and clearly won't affect
  2102. normal pages in any bad way.
  2103. * khtml/xml/dom_elementimpl.cpp:
  2104. (AttrImpl::AttrImpl): Set m_specified to true. Since we never set up the
  2105. attributes from the DTD anyway, this is fine for now. If we ever go crazy
  2106. and implement that, then the bit field is sitting here waiting for us.
  2107. (NamedAttrMapImpl::removeNamedItem): The comment from KHTML says they
  2108. don't raise the not found exception because "the DOM 2 spec doesn't say
  2109. you should". But the DOM Level 1 specification clearly does, and the W3C
  2110. DOM Level 1 Core test requires it, so I'm putting it in.
  2111. * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::checkAddChild): Typo; this was
  2112. returning the wrong error code in the "wrong document" case.
  2113. * khtml/xml/dom_stringimpl.cpp:
  2114. (DOMStringImpl::remove): Fix overflow case.
  2115. (DOMStringImpl::substring): Fix overflow case.
  2116. 2003-09-19 David Hyatt <hyatt@apple.com>
  2117. Fix for 3401409, fix negative z-index. This code actually substantially
  2118. reworks layers to be more efficient in both painting and event handling.
  2119. It also fixes bugs with clipping as well as with negative z-indices.
  2120. Reviewed by kocienda
  2121. * khtml/css/cssstyleselector.cpp:
  2122. * khtml/rendering/render_block.cpp:
  2123. * khtml/rendering/render_block.h:
  2124. * khtml/rendering/render_box.cpp:
  2125. (RenderBox::setStyle):
  2126. (RenderBox::repaintRectangle):
  2127. * khtml/rendering/render_box.h:
  2128. * khtml/rendering/render_frames.cpp:
  2129. (RenderFrameSet::nodeAtPoint):
  2130. * khtml/rendering/render_frames.h:
  2131. * khtml/rendering/render_image.cpp:
  2132. (RenderImage::nodeAtPoint):
  2133. * khtml/rendering/render_image.h:
  2134. * khtml/rendering/render_inline.cpp:
  2135. (RenderInline::nodeAtPoint):
  2136. * khtml/rendering/render_inline.h:
  2137. * khtml/rendering/render_layer.cpp:
  2138. (RenderLayer::RenderLayer):
  2139. (RenderLayer::~RenderLayer):
  2140. (RenderLayer::updateLayerPosition):
  2141. (RenderLayer::stackingContext):
  2142. (RenderLayer::enclosingPositionedAncestor):
  2143. (RenderLayer::transparentAncestor):
  2144. (RenderLayer::addChild):
  2145. (RenderLayer::removeChild):
  2146. (RenderLayer::convertToLayerCoords):
  2147. (RenderLayer::checkScrollbarsAfterLayout):
  2148. (RenderLayer::paintScrollbars):
  2149. (RenderLayer::paint):
  2150. (setClip):
  2151. (restoreClip):
  2152. (RenderLayer::paintLayer):
  2153. (RenderLayer::nodeAtPoint):
  2154. (RenderLayer::nodeAtPointForLayer):
  2155. (RenderLayer::calculateClipRects):
  2156. (RenderLayer::calculateRects):
  2157. (RenderLayer::intersectsDamageRect):
  2158. (RenderLayer::containsPoint):
  2159. (hoverAncestor):
  2160. (commonAncestor):
  2161. (RenderLayer::updateHoverActiveState):
  2162. (sortByZOrder):
  2163. (RenderLayer::dirtyZOrderLists):
  2164. (RenderLayer::updateZOrderLists):
  2165. (RenderLayer::collectLayers):
  2166. * khtml/rendering/render_layer.h:
  2167. * khtml/rendering/render_object.cpp:
  2168. (RenderObject::setStyle):
  2169. (RenderObject::document):
  2170. (RenderObject::renderArena):
  2171. (RenderObject::nodeAtPoint):
  2172. * khtml/rendering/render_object.h:
  2173. * khtml/rendering/render_text.cpp:
  2174. (RenderText::nodeAtPoint):
  2175. * khtml/rendering/render_text.h:
  2176. * khtml/xml/dom_docimpl.cpp:
  2177. (DocumentImpl::DocumentImpl):
  2178. (DocumentImpl::~DocumentImpl):
  2179. (DocumentImpl::recalcStyleSelector):
  2180. (DocumentImpl::setHoverNode):
  2181. * khtml/xml/dom_docimpl.h:
  2182. * kwq/KWQKHTMLPart.mm:
  2183. (KWQKHTMLPart::paint):
  2184. (KWQKHTMLPart::paintSelectionOnly):
  2185. (KWQKHTMLPart::adjustPageHeight):
  2186. * kwq/KWQRect.h:
  2187. * kwq/KWQRenderTreeDebug.cpp:
  2188. (write):
  2189. (writeLayers):
  2190. (externalRepresentation):
  2191. 2003-09-19 Darin Adler <darin@apple.com>
  2192. Reviewed by Dave.
  2193. * layout-tests: Updated for my mini-controls change.
  2194. 2003-09-19 Darin Adler <darin@apple.com>
  2195. Reviewed by Dave.
  2196. - do the prep work for the mini controls feature; Dave will finish this
  2197. * khtml/rendering/render_form.cpp: (RenderFormElement::updateFromElement):
  2198. Tell the widget about the font size. Our widgets use the font size to
  2199. decide whether to use Aqua normal, small, or mini.
  2200. * kwq/KWQButton.h: Add setFont.
  2201. * kwq/KWQButton.mm:
  2202. (QButton::setFont): Set control size based on font.
  2203. (KWQNSControlSizeForFont): Determine control size given a font. Dave is going
  2204. to tweak this later.
  2205. * kwq/KWQCheckBox.h: Add dimensions function for metrics for each control size.
  2206. * kwq/KWQCheckBox.mm:
  2207. (QCheckBox::sizeHint): Use dimensions.
  2208. (QCheckBox::frameGeometry): Use dimensions.
  2209. (QCheckBox::setFrameGeometry): Use dimensions.
  2210. (QCheckBox::baselinePosition): Use dimensions.
  2211. (QCheckBox::dimensions): Added. Has newly tweaked values for all dimensions for
  2212. all three control sizes.
  2213. * kwq/KWQComboBox.h: Add setFont and dimensions.
  2214. * kwq/KWQComboBox.mm:
  2215. (QComboBox::sizeHint): Use dimensions.
  2216. (QComboBox::frameGeometry): Use dimensions.
  2217. (QComboBox::setFrameGeometry): Use dimensions.
  2218. (QComboBox::baselinePosition): Use dimensions.
  2219. (QComboBox::setFont): Use dimensions.
  2220. (QComboBox::dimensions): Added. Has newly tweaked values for all dimensions for
  2221. all three control sizes.
  2222. * kwq/KWQFileButton.mm: (KWQFileButton::baselinePosition): Change to adapt to
  2223. flipped version of file button NSControl.
  2224. * kwq/KWQPushButton.h: Add dimensions function for metrics for each control size.
  2225. * kwq/KWQPushButton.mm:
  2226. (QPushButton::sizeHint): Use dimensions.
  2227. (QPushButton::frameGeometry): Use dimensions.
  2228. (QPushButton::setFrameGeometry): Use dimensions.
  2229. (QPushButton::baselinePosition): Use dimensions.
  2230. (QPushButton::dimensions): Added. Has newly tweaked values for all dimensions for
  2231. all three control sizes.
  2232. * kwq/KWQRadioButton.h: Add dimensions function for metrics for each control size.
  2233. * kwq/KWQRadioButton.mm:
  2234. (QRadioButton::sizeHint): Use dimensions.
  2235. (QRadioButton::frameGeometry): Use dimensions.
  2236. (QRadioButton::setFrameGeometry): Use dimensions.
  2237. (QRadioButton::baselinePosition): Use dimensions.
  2238. (QRadioButton::dimensions): Added. Has newly tweaked values for all dimensions for
  2239. all three control sizes.
  2240. 2003-09-19 Maciej Stachowiak <mjs@apple.com>
  2241. Reviewed by Darin.
  2242. - fixed 3410980 - FileMaker: going forward with an empty forward list makes a frame come out blank sometimes
  2243. * khtml/html/html_documentimpl.cpp:
  2244. (HTMLDocumentImpl::close): Remove redundant check removed.
  2245. * khtml/khtml_part.h:
  2246. * kwq/KWQKHTMLPart.h:
  2247. * kwq/KWQKHTMLPart.mm:
  2248. (KWQKHTMLPart::scheduleHistoryNavigation): Only call the base class
  2249. method to actually schedule when it's possible to go back or forward
  2250. that number of steps.
  2251. * kwq/WebCoreBridge.h:
  2252. 2003-09-17 John Sullivan <sullivan@apple.com>
  2253. - WebCore part of fix for 3157018 -- Would like option to
  2254. not print backgrounds
  2255. Reviewed by Darin
  2256. * kwq/KWQKHTMLSettings.h:
  2257. add _shouldPrintBackgrounds field and accessors
  2258. * kwq/WebCoreSettings.h:
  2259. add shouldPrintBackgrounds field and accessors
  2260. * kwq/WebCoreSettings.mm:
  2261. (-[WebCoreSettings setShouldPrintBackgrounds:]):
  2262. new method, passes value to KHTMLSettings
  2263. (-[WebCoreSettings shouldPrintBackgrounds]):
  2264. new method
  2265. * kwq/WebCoreBridge.mm:
  2266. (-[WebCoreBridge styleSheetForPrinting]):
  2267. new method, returns a style sheet that has backgrounds
  2268. turned off if preference is set that way.
  2269. (-[WebCoreBridge reapplyStylesForDeviceType:]):
  2270. if printing, set the printStyleSheet to the one we
  2271. created based on the preferences. (KHTML has always
  2272. had support for a special printStyleSheet, but it was
  2273. only being used in !APPLE_CHANGES code.)
  2274. * khtml/rendering/render_style.h:
  2275. add shouldCorrectTextColor boolean field and accessors
  2276. * khtml/xml/dom_docimpl.cpp:
  2277. (DocumentImpl::recalcStyle):
  2278. tell style to correct text colors if backgrounds aren't being printed
  2279. * khtml/rendering/render_text.cpp:
  2280. (TextRun::paintSelection):
  2281. added comment
  2282. (simpleDifferenceBetweenColors):
  2283. new function, computes a quick measure of difference
  2284. between colors
  2285. (correctedTextColor):
  2286. if text and background colors are too similar, returns
  2287. lightened or darkened text color
  2288. (RenderText::paintObject):
  2289. if style says to correct text colors, call correctedTextColor
  2290. 2003-09-17 Darin Adler <darin@apple.com>
  2291. Reviewed by Ken.
  2292. - fixed 3423404 -- REGRESSION: Japanese page appears blank due to unexpected kTECPartialCharErr
  2293. * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertOneChunkUsingTEC): In the case where we're already
  2294. going from the small buffer back to the large one, treat kTECPartialCharErr the same as noErr.
  2295. Otherwise we'll get confused and drop the contents of the big buffer.
  2296. (KWQTextDecoder::convert): Improve the debugging code a bit (still turned off).
  2297. === WebCore-105 ===
  2298. 2003-09-15 Ken as Darin <darin@apple.com>
  2299. Reviewed by Darin and Don.
  2300. - fixed 3419957 -- REGRESSION: lines drawn across multiple columns at washingtonpost.com
  2301. * khtml/rendering/render_box.cpp: (RenderBox::calcWidth): Always use the width of the line
  2302. rather than the width of the containing block for "flow around floats" blocks (<hr>).
  2303. This undoes half of the change made to fix bug 3384609.
  2304. 2003-09-15 Darin Adler <darin@apple.com>
  2305. Reviewed by Ken and Don.
  2306. - fixed 3417604 -- REGRESSION: dragging scroll thumb causes textarea contents to vanish
  2307. * kwq/KWQTextArea.mm: (-[KWQTextArea initWithFrame:]): Deallocated cached graphics state for
  2308. the text view as well as for the clip view.
  2309. 2003-09-13 Darin Adler <darin@apple.com>
  2310. Reviewed by Maciej.
  2311. - fixed 3420547 -- REGRESSION: repro crash in khtml::RenderBlock::findNextLineBreak (wisdomtips.com)
  2312. * khtml/rendering/render_block.cpp: (RenderBlock::addChildToFlow): Exclude BR elements when looking for
  2313. an element to process first-letter style.
  2314. 2003-09-13 Darin Adler <darin@apple.com>
  2315. * layout-tests/fast/frames/empty-frame-src-expected.txt: Updated test results that changed
  2316. due to the change in our handling of frame borders.
  2317. === WebCore-104 ===
  2318. 2003-09-12 Richard Williamson <rjw@apple.com>
  2319. Fixed 3420097. Pass flag up to WebKit indicating that redirects are being cancelled during a pending load.
  2320. Reviewed by Darin.
  2321. * khtml/khtml_part.cpp:
  2322. (KHTMLPart::cancelRedirection):
  2323. * khtml/khtml_part.h:
  2324. * khtml/khtmlpart_p.h:
  2325. * kwq/KWQKHTMLPart.mm:
  2326. (KWQKHTMLPart::provisionalLoadStarted):
  2327. (KWQKHTMLPart::redirectionTimerStartedOrStopped):
  2328. * kwq/WebCoreBridge.h:
  2329. === WebCore-103 ===
  2330. 2003-09-12 Maciej Stachowiak <mjs@apple.com>
  2331. Reviewed by Darin.
  2332. * khtml/css/html4.css: Use the same hardcoded default size for
  2333. OBJECT and EMBED tags as for IFRAME.
  2334. 2003-09-12 Darin Adler <darin@apple.com>
  2335. Reviewed by Ken.
  2336. - fixed 3403223 -- <input type=file> with initial value causes exception, bad results afterwards, when submitted
  2337. * kwq/KWQFile.mm: (QFile::QFile): Don't pass an empty string to fileSystemRepresentation,
  2338. because that will cause an exception.
  2339. === WebCore-101 ===
  2340. 2003-09-11 Richard Williamson <rjw@apple.com>
  2341. Fixed 3406671. Added a private method for Mail to get selection
  2342. rect.
  2343. Fixed 3417688. Don't allow https page into page cache.
  2344. Reviewed by Darin.
  2345. * kwq/KWQFrame.h:
  2346. * kwq/KWQFrame.mm:
  2347. (QFrame::setFrameStyle):
  2348. (QFrame::frameWidth):
  2349. * kwq/KWQKHTMLPart.mm:
  2350. (KWQKHTMLPart::canCachePage):
  2351. * kwq/WebCoreBridge.h:
  2352. * kwq/WebCoreBridge.mm:
  2353. (-[WebCoreBridge selectionRect]):
  2354. (-[WebCoreBridge visibleSelectionRect]):
  2355. (-[WebCoreBridge selectionImage]):
  2356. (-[WebCoreBridge adjustViewSize]):
  2357. === Safari-100 ===
  2358. 2003-09-09 Darin Adler <darin@apple.com>
  2359. Reviewed by Chris.
  2360. - fixed 3373654 -- REGRESSION: Yahoo chat applet reloads over and over due to "baseURL" param name conflict
  2361. After some research by the Java team, we discovered that there was no need to
  2362. pass in baseURL at all This patch gets rid of that by only passingindividual specified
  2363. arguments, rather than passing all the arguments, as applet parameters.
  2364. * khtml/rendering/render_applet.cpp: (RenderApplet::processArguments): Remove the
  2365. call to KJavaApplet::processArguments, because we only want the individual arguments.
  2366. * kwq/KWQKJavaAppletWidget.h: Implement setAppletClass, setAppletName, setArchives, and
  2367. setCodeBase. Remove processArguments.
  2368. * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::setParameter): Lowercase all the
  2369. parameters as we put them in the dictionary, since this is the semantics required by Java.
  2370. === Safari-99 ===
  2371. 2003-09-07 Darin Adler <darin@apple.com>
  2372. Reviewed by Maciej.
  2373. - fixed 3411827 -- REGRESSION: text drawing after text-shadow does not respect smoothing style (asahi.com)
  2374. * kwq/KWQPainter.mm: (QPainter::clearShadow): Call CGContextSetShadowWithColor with a color of NULL,
  2375. which actually clears the shadow, rather than CGContextSetShadow, which sets a black shadow (even
  2376. if it is zero pixels in size).
  2377. === Safari-98 ===
  2378. 2003-09-05 Ken Kocienda <kocienda@apple.com>
  2379. Reviewed by Darin
  2380. Fix for this bug:
  2381. <rdar://problem/3226083>: REGRESSION (Panther): white box
  2382. overlaying select lists at nvidia.com drivers page
  2383. * kwq/KWQListBox.mm:
  2384. (QListBox::QListBox): Re-add releaseGState fix that Darin
  2385. added, but then removed. It turns out that we do need
  2386. this workaround in place to get proper drawing.
  2387. Fix for this bug:
  2388. <rdar://problem/3310943>: REGRESSION (Panther): textareas
  2389. in forms sometimes draw blank (bugreporter)
  2390. * kwq/KWQTextArea.mm:
  2391. (-[KWQTextArea initWithFrame:]): Same fix as above.
  2392. 2003-09-05 Maciej Stachowiak <mjs@apple.com>
  2393. Reviewed by Darin.
  2394. - fixed - REGRESSION (85-92): Javascript on page isn't triggered by typed characters (onKeyUp)
  2395. (This actually also requires an AppKit fix to be a full fix.)
  2396. * kwq/KWQListBox.mm:
  2397. (-[KWQTableView keyDown:]): Added. Send event through DOM.
  2398. (-[KWQTableView keyUp:]): Likewise.
  2399. (-[KWQTableView becomeFirstResponder]): Added. Report focus change
  2400. to DOM.
  2401. * kwq/KWQTextArea.mm:
  2402. (-[KWQTextAreaTextView keyUp:]): Added. Send event through DOM.
  2403. * kwq/KWQTextField.mm:
  2404. (-[KWQTextField textView:shouldHandleEvent:]): Pass NSKeyUp events too
  2405. (not going to work until we get an AppKit fix).
  2406. 2003-09-04 John Sullivan <sullivan@apple.com>
  2407. - fixed 3399880 -- Repro crash when filling out a form to
  2408. download Macromedia software. I managed to check in this
  2409. ChangeLog comment a few days ago without actually checking
  2410. in the changed file, weird.
  2411. Reviewed by Chris
  2412. * kwq/WebCoreBridge.mm:
  2413. (-[WebCoreBridge elementForView:]):
  2414. check for nil widget before dereferencing
  2415. 2003-09-04 David Hyatt <hyatt@apple.com>
  2416. Fix for 3408630, leak of child frame parts caused by a missing deref when frames
  2417. get detached from their parent frame list.
  2418. Reviewed by mjs
  2419. * kwq/KWQKHTMLPart.mm:
  2420. (KHTMLPart::frameDetached):
  2421. 2003-09-04 Darin Adler <darin@apple.com>
  2422. * layout-tests/apple-only/base/www.msn.com/index-expected.txt: Update for residual style fix.
  2423. * layout-tests/fast/invalid/003-expected.txt: Update for residual style fix.
  2424. 2003-09-04 Darin Adler <darin@apple.com>
  2425. * kwq/KWQRenderTreeDebug.cpp: (write): Fix clip rectangle computation.
  2426. * layout-tests: Update test results.
  2427. === Safari-97 ===
  2428. 2003-09-03 Maciej Stachowiak <mjs@apple.com>
  2429. Reviewed by Darin.
  2430. * khtml/khtml_part.cpp:
  2431. (KHTMLPart::clear): Un-ifdef cleanup of frames, and add similar
  2432. cleanup for objects. Replace delete with deref.
  2433. * kwq/KWQKHTMLPart.mm:
  2434. (KWQKHTMLPart::createPart): Add an extra ref to KHTMLParts since
  2435. both the bridge and the parent part want to deref.
  2436. 2003-09-03 David Hyatt <hyatt@apple.com>
  2437. Fix for 3404398, leak in residual style code. The code that built up the
  2438. residualStyleStack was messed up and discarded tags.
  2439. Reviewed by mjs
  2440. * khtml/html/htmlparser.cpp:
  2441. (KHTMLParser::popBlock):
  2442. 2003-09-02 Ken Kocienda <kocienda@apple.com>
  2443. Reviewed by Darin
  2444. Fix for this bug:
  2445. <rdar://problem/3399169>: 4 leaks of DOMString objects (Mail)
  2446. Remove circular reference between AttributeImpl and AttrImpl objects.
  2447. This was causing the leak.
  2448. * khtml/xml/dom_elementimpl.cpp:
  2449. (AttributeImpl::allocateImpl):
  2450. 2003-09-02 David Hyatt <hyatt@apple.com>
  2451. Fix for 3359408, DirWS should not be used when collapsing/stripping spaces,
  2452. since only ASCII spaces are supposed to be collapsed/stripped.
  2453. Reviewed by mjs
  2454. * khtml/rendering/bidi.cpp:
  2455. 2003-09-02 Darin Adler <darin@apple.com>
  2456. Reviewed by John.
  2457. - fixed 3403388 -- decoder mishandles pages which fill the decoding buffer (mainly ISO-2022-JP)
  2458. * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertUsingTEC): Keep decoding, passing in no additional bytes,
  2459. until we get noErr, don't ever stop after a kTECOutputBufferFullStatus error.
  2460. 2003-09-02 David Hyatt <hyatt@apple.com>
  2461. Fix for 3404452, paint errors on mezzoblue.com's links list. There was a simple
  2462. math error in the invalidation rect computation.
  2463. Reviewed by mjs
  2464. * khtml/rendering/render_flow.cpp:
  2465. (RenderFlow::repaint):
  2466. 2003-09-01 John Sullivan <sullivan@apple.com>
  2467. - WebCore part of fix for 3402489 -- REGRESSION (7B48-7B55): Some
  2468. printed web pages are too small (width is half a page)
  2469. This was a regression caused by the fix for 3378810.
  2470. Reviewed by Maciej
  2471. * kwq/WebCoreBridge.h:
  2472. add adjustingViewSize flag to forceLayout and forceLayoutForPageWidth:
  2473. * kwq/WebCoreBridge.mm:
  2474. (-[WebCoreBridge forceLayoutAdjustingViewSize:]):
  2475. respect new flag while we are set up for printing.
  2476. (-[WebCoreBridge forceLayoutForPageWidth:adjustingViewSize:]):
  2477. ditto
  2478. (-[WebCoreBridge adjustFrames:]):
  2479. pass NO for new flag here
  2480. 2003-09-01 John Sullivan <sullivan@apple.com>
  2481. * kwq/KWQPainter.mm:
  2482. (QPainter::drawLine):
  2483. Removed the ERROR that warns of the CG memory trashing bug, now
  2484. that we are enough builds away from it that it is (almost?) never
  2485. reported anymore.
  2486. === Safari-96 ===
  2487. 2003-08-29 Maciej Stachowiak <mjs@apple.com>
  2488. Reviewed by Ken.
  2489. - fixed 3397775 21 leaks from CSS parser running PLT
  2490. * khtml/css/css_ruleimpl.cpp:
  2491. (CSSMediaRuleImpl::~CSSMediaRuleImpl): Clear the parent for all contained
  2492. rules.
  2493. (CSSMediaRuleImpl::append): Call insertRule.
  2494. (CSSMediaRuleImpl::insertRule): set parent of the rule to this media rule.
  2495. (CSSRuleListImpl::append): Call insertRule to cover all the relevant
  2496. additional handling, instead of adding straight to the list.
  2497. * khtml/css/css_ruleimpl.h:
  2498. 2003-08-29 John Sullivan <sullivan@apple.com>
  2499. - fixed 3399880 -- Repro crash when filling out a form to
  2500. download Macromedia software
  2501. Reviewed by Chris
  2502. * kwq/WebCoreBridge.mm:
  2503. (-[WebCoreBridge elementForView:]):
  2504. check for nil widget before dereferencing
  2505. 2003-08-28 David Hyatt <hyatt@apple.com>
  2506. Fix for 3381377, fix the calcBlockMinMaxWidth function to not use the
  2507. renderobject's computed margins except when it has to. This makes
  2508. table cells with align=right not mess up and fixes margin problems
  2509. in general with floated elements and table cells.
  2510. Since XUL boxes also use a similar function and since it had a similar
  2511. error, vertical XUL boxes have been patched as well.
  2512. Reviewed by gramps
  2513. * khtml/rendering/render_block.cpp:
  2514. * khtml/rendering/render_flexbox.cpp:
  2515. 2003-08-28 David Hyatt <hyatt@apple.com>
  2516. Fix for 3398463, a regression caused by an unintended line movement.
  2517. <br/> was no longer being treated just like <br> in HTML.
  2518. Reviewed by gramps
  2519. * khtml/html/htmltokenizer.cpp:
  2520. (HTMLTokenizer::parseTag):
  2521. === Safari-95 ===
  2522. 2003-08-27 Richard Williamson <rjw@apple.com>
  2523. Fixed 3359408. DON'T treat unicode whitespace as whitespace when collapsing spaces.
  2524. Reviewed by David Hyatt.
  2525. * khtml/rendering/bidi.cpp:
  2526. * khtml/rendering/render_text.cpp:
  2527. (RenderText::trimmedMinMaxWidth):
  2528. (RenderText::calcMinMaxWidth):
  2529. (RenderText::containsOnlyWhitespace):
  2530. * khtml/xml/dom_stringimpl.cpp:
  2531. 2003-08-27 David Hyatt <hyatt@apple.com>
  2532. Fix for 3396962, hang on quote.com. Fieldsets with display:inline should be treated
  2533. like inline-blocks. This matches WinIE's behavior.
  2534. Reviewed by mjs
  2535. * khtml/rendering/render_form.cpp:
  2536. (RenderFieldset::setStyle):
  2537. * khtml/rendering/render_form.h:
  2538. 2003-08-26 Darin Adler <darin@apple.com>
  2539. Reviewed by Maciej.
  2540. - follow-on to fix for 3310943 -- REGRESSION (Panther): textareas in forms sometimes draw blank (bugreporter)
  2541. * kwq/KWQListBox.mm: (QListBox::QListBox): Remove call to releaseGState. This was here to
  2542. work around a problem we thought was an AppKit bug, but it turns out it was caused by
  2543. NSView hackery in WebKit. We now do the WebKit part in a way that does not create the problem.
  2544. 2003-08-26 Darin Adler <darin@apple.com>
  2545. Reviewed by Maciej.
  2546. - fixed 3031562 -- most forms don't work in certain configurations because of a bug in KWQVariant
  2547. * kwq/KWQVariant.mm: (QVariant::QVariant): Set the b element of the union, not the d element,
  2548. in the constructor for bool.
  2549. 2003-08-26 David Hyatt <hyatt@apple.com>
  2550. Fix for 3395950, better support for self-collapsing blocks. Make them obey
  2551. clear properly and also change the definition of self-collapsing to match
  2552. the CSS2.1 specification.
  2553. Reviewed by gramps
  2554. * khtml/rendering/render_block.cpp:
  2555. * khtml/rendering/render_block.h:
  2556. 2003-08-26 David Hyatt <hyatt@apple.com>
  2557. Fix for 3335175, www.calstone.com renders as blank. The fix is to deliberately
  2558. introduce an error into our HTML parsing code that causes us to honor self-closing
  2559. XML-style <script/> tags. This matches Mozilla and Opera behavior (both of them
  2560. have this bug), but it does not match WinIE.
  2561. Reviewed by mjs
  2562. * khtml/html/htmltokenizer.cpp:
  2563. 2003-08-26 David Hyatt <hyatt@apple.com>
  2564. Fix for 3286229, popup menu misplaced. <form> needs to be allowed as a child of
  2565. <h1>-<h6> tags. All other browsers allow this.
  2566. Reviewed by darin
  2567. * khtml/html/dtd.cpp:
  2568. 2003-08-26 Darin Adler <darin@apple.com>
  2569. Reviewed by Maciej.
  2570. - re-fixed 3366542 -- filename with non-ASCII name left out of Content-Disposition for <input type=file>
  2571. * khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::formData): Added missing # sign.
  2572. 2003-08-26 David Hyatt <hyatt@apple.com>
  2573. Fix for 3394107, make sure the display mutation code doesn't mutate objects with
  2574. display: none set.
  2575. Reviewed by darin
  2576. * khtml/css/cssstyleselector.cpp:
  2577. 2003-08-22 David Hyatt <hyatt@apple.com>
  2578. Fix for 3388363, copying a word in a list item copied too much. The code that checked
  2579. for the bullet would add in too much text sometimes.
  2580. Reviewed by john
  2581. * kwq/KWQKHTMLPart.mm:
  2582. (isTextFirstInListItem):
  2583. (KWQKHTMLPart::attributedString):
  2584. 2003-08-21 Darin Adler <darin@apple.com>
  2585. * Makefile.am: Work around DLCFN issue to prevent constant churn of config.h.
  2586. * config.h: Regenerated without DLCFN.
  2587. 2003-08-21 Darin Adler <darin@apple.com>
  2588. * khtml/khtmlview.h: Formatting tweak.
  2589. 2003-08-21 Chris Blumenberg <cblu@apple.com>
  2590. Fixed: <rdar://problem/3386673>: a particular fidelity.com "Log in" link does nothing because of cross-domain JavaScript rules
  2591. Reviewed by mjs.
  2592. * config.h:
  2593. * khtml/ecma/kjs_window.cpp:
  2594. (Window::get): allow other frames to get the location object
  2595. (Window::isSafeScript): added JS logging
  2596. (Location::get): don't allow other frames to access location attributes
  2597. (LocationFunc::tryCall): don't allow other frames to call functions on the location object
  2598. 2003-08-21 Richard Williamson <rjw@apple.com>
  2599. Fixed 3378810. Avoid resizing frame from drawRect: when printing. This will corrupt the graphics context.
  2600. Reviewed by Hyatt.
  2601. * khtml/khtmlview.cpp:
  2602. (KHTMLView::adjustViewSize):
  2603. * khtml/khtmlview.h:
  2604. * khtml/rendering/render_canvas.cpp:
  2605. (RenderCanvas::layout):
  2606. * kwq/KWQScrollView.mm:
  2607. (QScrollView::resizeContents):
  2608. * kwq/WebCoreBridge.h:
  2609. * kwq/WebCoreBridge.mm:
  2610. (-[WebCoreBridge adjustViewSize]):
  2611. === Safari-94 ===
  2612. 2003-08-21 David Hyatt <hyatt@apple.com>
  2613. Fix for 3387302, floats weren't being allowed to be relatively positioned. The
  2614. fix is trivial. Stop making floating/relpositiion setting an if/else and just make
  2615. it two ifs.
  2616. Reviewed by darin
  2617. * khtml/rendering/render_box.cpp:
  2618. (RenderBox::setStyle):
  2619. 2003-08-21 David Hyatt <hyatt@apple.com>
  2620. Fix for 3384635, breakable unicode characters that were preceded by multiple spaces
  2621. accidentally added in those spaces to their widths.
  2622. Reviewed by rjw and gramps
  2623. * khtml/rendering/bidi.cpp:
  2624. 2003-08-20 David Hyatt <hyatt@apple.com>
  2625. Fix for 3384609. Objects that want to dodge floats should fill the line width instead
  2626. of the containing block width only if their widths are auto. If widths are specified
  2627. explicitly, then ccontaining block width should be honored.
  2628. Reviewed by john
  2629. * khtml/rendering/render_box.cpp:
  2630. (RenderBox::calcWidth):
  2631. * khtml/rendering/render_table.cpp:
  2632. (RenderTable::calcWidth):
  2633. 2003-08-20 Richard Williamson <rjw@apple.com>
  2634. UCFindTextBreak will report false if we have a sequence of 0xa0 0x20 (nbsp, sp), so we explicity check for that case. Filed 3386852 to track this problem, meanwhile added a work-around. This problem was revealed after adding the fix for 3242508.
  2635. Reviewed by Dave.
  2636. * khtml/rendering/break_lines.cpp:
  2637. 2003-08-20 Darin Adler <darin@apple.com>
  2638. Reviewed by John.
  2639. - fixed 3248069 -- Safari does not support ISO Latin 10 (ISO-8859-16, romanian) coding.
  2640. * kwq/mac-encodings.txt: Added ISO-8859-16, which maps to ISO Latin-10.
  2641. * kwq/KWQCharsetData.c: Regenerated.
  2642. * kwq/KWQCharsets.mm: Add definition of kCFStringEncodingISOLatin10, since this encoding
  2643. is currently only in TextCommon.h, not in CFStringEncodingExt.h.
  2644. 2003-08-20 Maciej Stachowiak <mjs@apple.com>
  2645. Reviewed by Richard.
  2646. - fixed 3384963 - REGRESSION: assertion in copyPathRemovingDots, crash parsing URL in snippet editor
  2647. * kwq/KWQKURL.mm:
  2648. (copyPathRemovingDots): It's OK if the path is entirely empty.
  2649. 2003-08-20 David Hyatt <hyatt@apple.com>
  2650. Fix for 3385211, <td>s should ignore the float property in quirks mode. This
  2651. patch cleans up the adjustments of <td>s and <table>s and moves the code into
  2652. the style selector (instead of cluttering up the rendering code).
  2653. Fix for 3385476, generated content not built correctly. All generated content
  2654. should be placed inside a containing object that actually gets the pseudo-style.
  2655. Reviewed by rjw
  2656. * ChangeLog:
  2657. * khtml/css/cssstyleselector.cpp:
  2658. * khtml/css/cssstyleselector.h:
  2659. * khtml/rendering/render_container.cpp:
  2660. (RenderContainer::updatePseudoChild):
  2661. * khtml/rendering/render_object.cpp:
  2662. (RenderObject::createObject):
  2663. 2003-08-20 Maciej Stachowiak <mjs@apple.com>
  2664. Reviewed by Richard.
  2665. - fixed 3292036 - albertsons.com world leak of 2 WebDataSource and 2 WebHTMLRepresentation objects
  2666. * kwq/KWQKHTMLPart.mm:
  2667. (KWQKHTMLPart::canCachePage): Test for parentPart() even if there
  2668. is no document.
  2669. 2003-08-20 Richard Williamson <rjw@apple.com>
  2670. Fixed 3242508. Japanese (and other non latin1 scripts) line breaking incorrect when mixed with latin1.
  2671. Reviewed by Dave.
  2672. * khtml/rendering/break_lines.cpp:
  2673. Checkin fix for earlier bug that was already approved!
  2674. * kwq/KWQKHTMLPart.mm:
  2675. (KWQKHTMLPart::attributedString):
  2676. 2003-08-19 David Hyatt <hyatt@apple.com>
  2677. Fixes for 3380766 and 3381867. One is a table bug with amazon.com where colspans
  2678. were losing percentage width values. The other is a bug where floats aren't dirtying
  2679. objects into which they intrude when doing layout.
  2680. Reviewed by darin
  2681. * khtml/rendering/render_block.cpp:
  2682. * khtml/rendering/table_layout.cpp:
  2683. (AutoTableLayout::calcEffectiveWidth):
  2684. 2003-08-19 Chris Blumenberg <cblu@apple.com>
  2685. Fixed: <rdar://problem/3379336>: flash on front page of http://www.westportmotorsports.com is broken
  2686. Reviewed by darin.
  2687. * khtml/rendering/render_frames.cpp:
  2688. (RenderPartObject::updateWidget): Ignore the PARAM tags and only use attributes inside the OBJECT tag when the EMBED tag is omitted.
  2689. 2003-08-19 Darin Adler <darin@apple.com>
  2690. Reviewed by Dave.
  2691. - fixed 3343681 -- clicking on a disabled submit button submits the form!
  2692. This turned out to be a problem with code in dispatchGenericEvent that sent
  2693. DOMActivate events even when the form element was disabled.
  2694. * khtml/xml/dom_nodeimpl.h: Add virtual disabled() member function.
  2695. * khtml/xml/dom_nodeimpl.cpp:
  2696. (NodeImpl::dispatchGenericEvent): Don't send DOM activate events for disabled elements.
  2697. (NodeImpl::handleLocalEvents): Don't send mouse events for disabled elements. But we do
  2698. want those events to pass through the bubble and capture phases, just avoid triggering
  2699. any listeners on this node itself.
  2700. (NodeImpl::disabled): Added default implementation that returns false.
  2701. * khtml/html/html_formimpl.h: Removed the disabled() function's inline implementation
  2702. since it's now virtual and it's not helpful to inline virtual functions.
  2703. * khtml/html/html_formimpl.cpp:
  2704. (HTMLGenericFormElementImpl::disabled): Moved this method into the .cpp file since it's
  2705. now virtual and it's not helpful to inline virtual functions.
  2706. 2003-08-18 Darin Adler <darin@apple.com>
  2707. Reviewed by John.
  2708. - fixed 3380411 -- Unicode supplementary characters cut in half in text control with maxlength set
  2709. * kwq/KWQTextField.mm:
  2710. (-[KWQTextField setMaximumLength:]): Enforce maximum length based on number of composed character
  2711. sequences rather than on number of UTF-16 values. This helps with both surrogate pairs (the supplementary
  2712. characters mentioned in the bug report) and composed character sequences.
  2713. (-[KWQTextField setStringValue:]): Ditto.
  2714. (-[KWQTextFieldFormatter isPartialStringValid:newEditingString:errorDescription:]): Ditto.
  2715. (-[NSString _KWQ_numComposedCharacterSequences]): Added. Computes the length of a string in terms of
  2716. number of composed character sequences.
  2717. (-[NSString _KWQ_truncateToNumComposedCharacterSequences:]): Added. Truncates a string in terms of
  2718. number of composed character sequences.
  2719. 2003-08-18 Darin Adler <darin@apple.com>
  2720. Reviewed by Maciej.
  2721. - fixed 3299893 -- oncontextmenu support
  2722. * kwq/WebCoreBridge.h: Added sendContextMenuEvent: method.
  2723. * kwq/WebCoreBridge.mm: (-[WebCoreBridge sendContextMenuEvent:]): Added.
  2724. Calls sendContextMenuEvent on the part.
  2725. * kwq/KWQKHTMLPart.h: Added sendContextMenuEvent member function.
  2726. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::sendContextMenuEvent): Added. Sets up
  2727. a suitable mouse event and calls dispatchMouseEvent for CONTEXTMENU_EVENT.
  2728. * khtml/ecma/kjs_dom.cpp: Added oncontextmenu to DOMNode's list of properties.
  2729. (DOMNode::getValueProperty): Added case for OnContextMenu.
  2730. (DOMNode::putValue): Added case for OnContextMenu.
  2731. * khtml/ecma/kjs_dom.h: Added constant for OnContextMenu.
  2732. * khtml/html/html_elementimpl.cpp: (HTMLElementImpl::parseAttribute):
  2733. Added case for ATTR_ONCONTEXTMENU.
  2734. * khtml/misc/htmlattrs.in: Added oncontextmenu.
  2735. * khtml/xml/dom2_eventsimpl.cpp:
  2736. (EventImpl::typeToId): Added case for CONTEXTMENU_EVENT.
  2737. (EventImpl::idToType): Added case for CONTEXTMENU_EVENT.
  2738. * khtml/xml/dom2_eventsimpl.h: Added CONTEXTMENU_EVENT.
  2739. * khtml/ecma/kjs_dom.lut.h: Regenerated.
  2740. * khtml/misc/htmlattrs.c: Regenerated.
  2741. * khtml/misc/htmlattrs.h: Regenerated.
  2742. 2003-08-18 Darin Adler <darin@apple.com>
  2743. Reviewed by Maciej.
  2744. - fixed 3381295 -- regular expression matches for text with UTF-16 surrogates will give incorrect results
  2745. * kwq/KWQRegExp.mm: (QRegExp::match): Removed local copy of convertCharacterOffsetsToUTF8ByteOffsets
  2746. and its reverse. Instead use convertUTF16OffsetsToUTF8Offsets and its reverse, now available from
  2747. <JavaScriptCore/ustring.h>.
  2748. - added test for the URI encoding and decoding functions in JavaScriptCore
  2749. * layout-tests/fast/js/global/encode-URI-test-expected.txt: Added.
  2750. * layout-tests/fast/js/global/encode-URI-test.html: Added.
  2751. 2003-08-15 Chris Blumenberg <cblu@apple.com>
  2752. Fixed: <rdar://problem/3380418>: Ignore specified string encoding when constructing file, mailto and help URLs
  2753. Reviewed by mjs, darin.
  2754. * kwq/KWQKURL.mm:
  2755. (KURL::KURL): store the URL string as UTF-8 when the URL is file, mailto and help.
  2756. 2003-08-17 Darin Adler <darin@apple.com>
  2757. Reviewed by Maciej.
  2758. - fixed 3366542 -- filename with non-ASCII name left out of Content-Disposition for <input type=file>
  2759. * khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::formData):
  2760. Do the &-encoding thing on the filename. This is what Gecko does.
  2761. 2003-08-14 Maciej Stachowiak <mjs@apple.com>
  2762. Fixed by Darin, reviewed by me (and originally figured out by John).
  2763. - fixed 3375592 - New Yahoo Maps doesn't work right
  2764. * kwq/KWQTextCodec.mm:
  2765. (KWQTextDecoder::convertUTF16): Don't pass through null characters.
  2766. (KWQTextDecoder::appendOmittingNullsAndBOMs): Ditto.
  2767. (KWQTextDecoder::convertUsingTEC): Ditto.
  2768. === Safari-93 ===
  2769. 2003-08-14 Vicki Murley <vicki@apple.com>
  2770. Reviewed by John.
  2771. * WebCore.pbproj/project.pbxproj: deleted WebCore.order from the project.
  2772. 2003-08-14 Vicki Murley <vicki@apple.com>
  2773. Reviewed by John.
  2774. * WebCore.order: Removed. We now point to the WebCore order file in /AppleInternal/OrderFiles.
  2775. * WebCore.pbproj/project.pbxproj: change sectorder flag to point to /AppleInternal/OrderFiles/WebCore.order
  2776. 2003-08-14 Ken Kocienda <kocienda@apple.com>
  2777. Reviewed by Darin
  2778. Fix for this bug:
  2779. <rdar://problem/3095893>: Image Capture: "Build web page" doesn't work with Japanese folder name.
  2780. * kwq/KWQKURL.mm:
  2781. (KURL::getNSURL): Try UTF-8 first and fallback to ISO Latin-1 when creating an NSURL.
  2782. This will handle the two-byte character in file name case mentioned in the bug.
  2783. 2003-08-14 Darin Adler <darin@apple.com>
  2784. Reviewed by Ken.
  2785. - fixed 3375270 -- writing to frame parent from a button press crashes in viewportMousePressEvent
  2786. The fix turned out to be to ref the view around handling events in the view, since processing
  2787. the event could cause the view and part to go away. Since the view refs the part, ref'ing just
  2788. the view seems to work perfectly.
  2789. * kwq/KWQKHTMLPart.mm: Fixed namespace access to use "using" instead of explicit namespaces.
  2790. (KWQKHTMLPart::setView): Not-entirely-related cleanup. Use the "ref before deref" idiom here.
  2791. (KWQKHTMLPart::sendResizeEvent): Ref the KHTMLView while sending the resize event.
  2792. (KWQKHTMLPart::mouseDown): Ref the KHTMLView while sending the viewport mouse down event.
  2793. (KWQKHTMLPart::mouseDragged): Ref the KHTMLView while sending the viewport mouse dragged event.
  2794. (KWQKHTMLPart::mouseUp): Ref the KHTMLView while sending the viewport mouse up or double click event.
  2795. (KWQKHTMLPart::mouseMoved): Ref the KHTMLView while sending the viewport mouse moved event.
  2796. 2003-08-13 David Hyatt <hyatt@apple.com>
  2797. Fix for 3372896, spaces left at ends of lines. Patch the selection code
  2798. to be smarter about detecting ends of lines and adding in spaces.
  2799. Reviewed by gramps
  2800. * khtml/khtml_part.cpp:
  2801. (KHTMLPart::selectedText):
  2802. * kwq/KWQKHTMLPart.mm:
  2803. (KWQKHTMLPart::attributedString):
  2804. 2003-08-12 Maciej Stachowiak <mjs@apple.com>
  2805. Reviewed by Ken Kocienda.
  2806. - fixed 3365242 - non-repro abort in HTMLTokenizer at ajc.com
  2807. * khtml/khtml_part.cpp:
  2808. (KHTMLPart::write): ref the part around actually processing the
  2809. data, since a script could cause the part to go away.
  2810. 2003-08-12 David Hyatt <hyatt@apple.com>
  2811. Fix for 3262190, <li> bullets in mail were overly massive. The bezier path the
  2812. painter stroked was not setting the line width from QPen's width, so it ended up
  2813. just using the current line width instead (which happened to be much larger in
  2814. Mail).
  2815. Reviewed by darin
  2816. * kwq/KWQPainter.mm:
  2817. (QPainter::drawEllipse):
  2818. (QPainter::drawArc):
  2819. (QPainter::_drawPoints):
  2820. 2003-08-12 John Sullivan <sullivan@apple.com>
  2821. - fixed 3370614 -- REGRESSION (81-85): partial inline input from Japanese
  2822. input method can disappear
  2823. Reviewed by Hyatt
  2824. * khtml/rendering/render_form.cpp:
  2825. (RenderLineEdit::updateFromElement):
  2826. call w->text() before element()->value(), because w->text() has a side
  2827. effect of updating element()->value() in the inline input case
  2828. (RenderTextArea::updateFromElement):
  2829. same for text areas
  2830. 2003-08-12 David Hyatt <hyatt@apple.com>
  2831. Fix for 3374566, list bullets don't display if list-style-type is none but a list-style-image
  2832. is specified. The spec says list-style-type: none does not apply to list-style-image,
  2833. and this fixes Microsoft's list bullet on their security pages.
  2834. Reviewed by john
  2835. * khtml/rendering/render_list.cpp:
  2836. (RenderListItem::setStyle):
  2837. 2003-08-12 Darin Adler <darin@apple.com>
  2838. Reviewed by Ken.
  2839. - fixed 3226083 -- REGRESSION (Panther): white box overlaying select lists at nvidia.com drivers page
  2840. * kwq/KWQListBox.mm: (QListBox::QListBox): Call releaseGState on the clip view
  2841. that we make for the list box. This prevents the incorrect graphics state caching
  2842. that causes the problem, although it's not entirely clear why this is necessary.
  2843. This may ultimately turn out to be an AppKit bug, and if so we can roll out this change
  2844. when the AppKit itself is fixed.
  2845. 2003-08-12 David Hyatt <hyatt@apple.com>
  2846. Fix for 3373462, XML shows up as blank because the root is inline. The fix is
  2847. to just disallow inline roots.
  2848. Reviewed by kocienda
  2849. * khtml/css/cssstyleselector.cpp:
  2850. 2003-08-11 David Hyatt <hyatt@apple.com>
  2851. Fix for 3349142, blocks inside inlines with generated content cause the generated
  2852. content to get all screwed up, especially if you try to print. This patch fixes
  2853. generated content to be continuation-aware (and vice versa), so that the content
  2854. behaves correctly when inlines get split.
  2855. Reviewed by darin
  2856. * khtml/rendering/render_block.cpp:
  2857. * khtml/rendering/render_container.cpp:
  2858. (RenderContainer::updatePseudoChild):
  2859. * khtml/rendering/render_container.h:
  2860. * khtml/rendering/render_flow.cpp:
  2861. (RenderFlow::addChild):
  2862. * khtml/rendering/render_inline.cpp:
  2863. (RenderInline::isInlineContinuation):
  2864. (RenderInline::addChildToFlow):
  2865. (RenderInline::cloneInline):
  2866. (RenderInline::splitInlines):
  2867. * khtml/rendering/render_inline.h:
  2868. * khtml/rendering/render_object.cpp:
  2869. (RenderObject::continuation):
  2870. (RenderObject::isInlineContinuation):
  2871. * khtml/rendering/render_object.h:
  2872. 2003-08-11 Darin Adler <darin@apple.com>
  2873. * kwq/KWQKHTMLPart.h: Fixed some small typo-ish strangenesses.
  2874. 2003-08-08 David Hyatt <hyatt@apple.com>
  2875. Fix for 3368672, don't allow frames and framesets to be positioned or relpositioned.
  2876. Reviewed by darin
  2877. * ChangeLog:
  2878. * khtml/rendering/render_box.cpp:
  2879. (RenderBox::setStyle):
  2880. * khtml/rendering/render_object.cpp:
  2881. (RenderObject::requiresLayer):
  2882. * khtml/rendering/render_object.h:
  2883. 2003-08-07 David Hyatt <hyatt@apple.com>
  2884. Fix for 3368463, assert/crash on libraries.uc.edu page. A stylesheet was making
  2885. a <p> a table-column, which is totally nonsensical. Since this isn't supported in
  2886. WinIE, it just got ignored. The fix I chose matches what Mozilla does, which is
  2887. to not allow table-column renderobjects to have children.
  2888. Fix for 3364412, FM pro file that happens to use a <col> element crashes. Make sure
  2889. to patch bidiiterator to have a null check for this bizarre case. Technically <col>
  2890. should never have been a table-column, since it's not in the HTML namespace, but
  2891. that fix will have to wait until we get @namespace support in CSS.
  2892. Reviewed by john
  2893. * ChangeLog:
  2894. * khtml/rendering/bidi.cpp
  2895. * khtml/rendering/render_table.cpp:
  2896. (RenderTableCol::canHaveChildren):
  2897. * khtml/rendering/render_table.h:
  2898. 2003-08-05 Dave Hyatt <hyatt@apple.com>
  2899. Fix for 3370654. Make sure the max width computation for blocks with inline children actually
  2900. ignores non-pre text runs that consist entirely of whitespace.
  2901. Reviewed by mjs
  2902. * khtml/rendering/render_block.cpp:
  2903. * khtml/rendering/render_text.cpp:
  2904. (RenderText::trimmedMinMaxWidth):
  2905. * khtml/rendering/render_text.h:
  2906. 2003-08-08 John Sullivan <sullivan@apple.com>
  2907. - fixed 3362481 -- REGRESSION (89-90): clicking in a field causes
  2908. page to move; esp. bad if the field moves out from under the mouse
  2909. Reviewed by Darin
  2910. * kwq/KWQKHTMLPart.h:
  2911. * kwq/KWQKHTMLPart.mm:
  2912. (KWQKHTMLPart::currentEventIsMouseDownInWidget):
  2913. new method
  2914. * kwq/KWQTextArea.mm:
  2915. (-[KWQTextAreaTextView becomeFirstResponder]):
  2916. only scroll to reveal if currentEventIsMouseDownInWidget is false
  2917. * kwq/KWQTextField.mm:
  2918. (-[KWQTextField setHasFocus:]):
  2919. ditto
  2920. === WebCore-92.1 ===
  2921. 2003-08-07 Darin Adler <darin@apple.com>
  2922. Reviewed by John Sullivan.
  2923. - fixed 3366234 -- repro crash in CSS parser: function that can't be parsed (www.bi-flugplatz-magdeburg.de)
  2924. * khtml/css/parser.y: Allocate a Function object for the "can't parse function" case, since
  2925. the other code involved cannot handle 0 for the function.
  2926. * khtml/css/parser.cpp: Regenerated.
  2927. === Safari-92 ===
  2928. 2003-08-07 Ken Kocienda <kocienda@apple.com>
  2929. Reviewed by Darin
  2930. Fix for this bug:
  2931. <rdar://problem/3367434>: newly-added KURL assertion failing reproducibly for JavaScript URL (www.thai.com)
  2932. The assertion is correct. The issue was in calling the function
  2933. with bad input. Non-hierarchical URLs should not have their "path"
  2934. elements submitted to a function that will replace dots.
  2935. The fix is to avoid calling this function with such non-hierarchical
  2936. URLs.
  2937. * kwq/KWQKURL.mm:
  2938. (KURL::parse)
  2939. 2003-08-07 Ken Kocienda <kocienda@apple.com>
  2940. Reviewed by Maciej
  2941. There was a bug in this code that caused a relative URL that was
  2942. being resolved against an empty base URL to process incorrectly.
  2943. The bug is that the resolution was being done twice. The first
  2944. time was correct handling of this case, but then the code did
  2945. not return at this point, and instead proceeded on through the
  2946. code path that is used to handle resolution of a relative URL
  2947. against a non-empty base. This double processing is clearly
  2948. wrong, and we found this bug as the result of the recent addition
  2949. of an assertion in some related code.
  2950. * kwq/KWQKURL.mm:
  2951. (KURL::KURL)
  2952. 2003-08-06 Darin Adler <darin@apple.com>
  2953. Reviewed by Richard.
  2954. - fixed 3347114 -- remove vestiges of posing, including init routine, from WebKit
  2955. * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView keyDown:]): Remove check for old
  2956. versions of AppKit that let the WebKit posing handle key down events.
  2957. * kwq/KWQTextField.mm: Removed fieldEditorDidMouseDown: methods.
  2958. * WebCore.pbproj/project.pbxproj: Removed WebCoreFirstResponderChanges.h.
  2959. * kwq/WebCoreFirstResponderChanges.h: Removed.
  2960. 2003-08-06 Richard Williamson <rjw@apple.com>
  2961. Fixed development build problem. WebCore.exp needed a newline at EOF.
  2962. * WebCore-combined.exp:
  2963. 2003-08-06 Richard Williamson <rjw@apple.com>
  2964. Fixed 3348630. Pick up about 1% by moving implementation of _unicodeDirection to WebCore and inlining.
  2965. Reviewed by Ken.
  2966. * WebCore-combined.exp:
  2967. * WebCore.exp:
  2968. * WebCore.pbproj/project.pbxproj:
  2969. * kwq/KWQString.h:
  2970. * kwq/WebCoreUnicode.cpp:
  2971. * kwq/WebCoreUnicode.h:
  2972. 2003-08-06 John Sullivan <sullivan@apple.com>
  2973. - fixed 3366587 -- Mail quits instantly (no crashlog) trying
  2974. to reply to a particular message
  2975. Reviewed by Richard
  2976. * kwq/KWQKHTMLPart.mm:
  2977. (KWQKHTMLPart::attributedString):
  2978. Return nil immediately if startNode is nil.
  2979. 2003-08-06 Maciej Stachowiak <mjs@apple.com>
  2980. Reviewed by Chris Blumenberg.
  2981. - fixed 3366173 - crash in DOM::DomShared::ref loading www.berkheiser.net
  2982. * khtml/ecma/kjs_html.cpp:
  2983. (Image::putValue): Check for NULL before refing, because we set
  2984. onLoadListener with a function that returns NULL if passed a value
  2985. that's not a function.
  2986. 2003-08-06 Maciej Stachowiak <mjs@apple.com>
  2987. Reviewed by Darin and Dave.
  2988. - fixed 3364433 - repro crash in khtml::RenderBlock::nodeAtPoint
  2989. * khtml/rendering/render_object.cpp:
  2990. (RenderObject::removeFromObjectLists): When finding the right
  2991. parent block to remove a float from, don't stop at floating or
  2992. positioned elements. They could well have floats in their
  2993. m_floatingObjects list due to overhang, and failing to remove them
  2994. leads to crashes.
  2995. 2003-08-05 Maciej Stachowiak <mjs@apple.com>
  2996. Reviewed by John.
  2997. * kwq/KWQPainter.mm:
  2998. (QPainter::drawLine): Print a warning in debug builds when drawing
  2999. a dashed line. Also, revert accidental commenting of lines that
  3000. set the dash style.
  3001. 2003-08-04 Dave Hyatt <hyatt@apple.com>
  3002. Fix for 3127909, copied text matched the document source instead of the
  3003. rendered HTML. This patch makes sure that the TextRuns are walked instead
  3004. of just blindly pulling the text out of the DOM node.
  3005. Reviewed by rjw
  3006. * khtml/khtml_part.cpp:
  3007. (KHTMLPart::selectedText):
  3008. * kwq/KWQKHTMLPart.mm:
  3009. (KWQKHTMLPart::attributedString):
  3010. 2003-08-05 Maciej Stachowiak <mjs@apple.com>
  3011. Reviewed by Darin and Dave.
  3012. - fixed 3363557 - REGRESSION (90-91): float:left element inside position:absolute element positioned wrong
  3013. * khtml/rendering/render_block.cpp:
  3014. (RenderBlock::calcInlineMinMaxWidth): Remove attempt to break line
  3015. after flaot that follows a non-float. Removing this code fixes the
  3016. regression and leaves pepboys and the meyerweb matrix theme
  3017. working properly. Also, I could not find any evidence in the CSS2
  3018. spec that what this code is trying to do is right.
  3019. 2003-08-05 Ken Kocienda <kocienda@apple.com>
  3020. Reviewed by John
  3021. Fix for this bug:
  3022. <rdar://problem/3364251>: Modify KURL to call improved NSURL creation API
  3023. * kwq/KWQKURL.mm:
  3024. (KURL::getNSURL): Modify to use CFURLCreateAbsoluteURLWithBytes to create
  3025. the NSURL.
  3026. 2003-08-05 Ken Kocienda <kocienda@apple.com>
  3027. Reviewed by Maciej
  3028. In KWQKURL.mm, we copy the contents of a URL path from a source buffer
  3029. to a destination buffer. In the loop, we often access dst[-1]. It was
  3030. not entirely clear that this did not underrun the buffer. Upon further
  3031. inspection, it seems clear that it does not, but this small change
  3032. makes this more clear, and adds an assertion that all is well with
  3033. regard to indexing into the dst buffer.
  3034. * kwq/KWQKURL.mm:
  3035. (copyPathRemovingDots)
  3036. 2003-08-01 Richard Williamson <rjw@apple.com>
  3037. Fixed 3095376. Implemented correct selection behavior for rtl scripts.
  3038. We still use our Arabic and Hebrew layout scheme.
  3039. Fixed 3360487. Implemented selection of ATSU rendered code.
  3040. Fixed 3360242. Return nil from _bodyBackgroundColor when no
  3041. background color specified. This was requested by Doug D.
  3042. Reviewed by Maciej.
  3043. * khtml/rendering/font.cpp:
  3044. (Font::drawHighlightForText):
  3045. * khtml/rendering/font.h:
  3046. * khtml/rendering/render_text.cpp:
  3047. (TextRun::paintSelection):
  3048. * kwq/KWQFontMetrics.mm:
  3049. (QFontMetrics::checkSelectionPoint):
  3050. * kwq/KWQKHTMLPart.mm:
  3051. (KWQKHTMLPart::bodyBackgroundColor):
  3052. * kwq/KWQPainter.h:
  3053. * kwq/KWQPainter.mm:
  3054. (QPainter::drawHighlightForText):
  3055. * kwq/WebCoreTextRenderer.h:
  3056. 2003-08-01 Maciej Stachowiak <mjs@apple.com>
  3057. Reviewed by John.
  3058. - fixed 3265419 - homepage preview doesn't show Images with names longer than 17 chars
  3059. * khtml/xml/dom_nodeimpl.cpp:
  3060. (NodeImpl::recursive_toHTML):
  3061. 2003-08-01 Maciej Stachowiak <mjs@apple.com>
  3062. Reviewed by Darin.
  3063. - fixed 3339255 - REGRESSION (73-85): javascript failure at gia.apple.com
  3064. I fixed this by making sure to cancel any pending redirects before
  3065. telling the bridge to load a URL. We don't want a race between
  3066. getting back a response and the redirect timer.
  3067. * kwq/WebCoreBridge.h:
  3068. * kwq/WebCoreBridge.mm:
  3069. (-[WebCoreBridge provisionalLoadStarted]): New method - call equivalent part method.
  3070. We count on the other side of the bridge to call this once it knows a load will
  3071. really happen (not cancelled by policy, etc).
  3072. * kwq/KWQKHTMLPart.h:
  3073. * kwq/KWQKHTMLPart.mm:
  3074. (KWQKHTMLPart::provisionalLoadStarted): cancel pending redirects.
  3075. === Safari-91 ===
  3076. 2003-07-31 Dave Hyatt <hyatt@apple.com>
  3077. Fix for 3347286, hang on pepboys.com. Text-indent had numerous bugs that
  3078. resulted in an infinite loop because some incorrect values were being compared.
  3079. This patch changes floats to ignore text-indent when positioning themselves
  3080. (as they should).
  3081. The maxwidth computation also didn't deal properly with text-indent, applying it
  3082. multiple times instead of once, and also only applying it for text and not for
  3083. inline replaced elements (images, form controls, etc.).
  3084. With these changes pepboys.com renders correctly. This patch also conveniently fixes
  3085. the last rendering error on meyerweb's Matrix stylesheet.
  3086. Reviewed by darin
  3087. * khtml/rendering/render_block.cpp:
  3088. * khtml/rendering/render_block.h:
  3089. 2003-07-31 Richard Williamson <rjw@apple.com>
  3090. Fixed 3359152. SPI to get the background color for a frame.
  3091. Reviewed by hyatt.
  3092. * kwq/KWQKHTMLPart.h:
  3093. * kwq/KWQKHTMLPart.mm:
  3094. (KWQKHTMLPart::bodyBackgroundColor):
  3095. * kwq/WebCoreBridge.h:
  3096. * kwq/WebCoreBridge.mm:
  3097. (-[WebCoreBridge bodyBackgroundColor]):
  3098. 2003-07-31 Dave Hyatt <hyatt@apple.com>
  3099. Fix for "The Matrix" stylesheet on meyerweb.com and for 26(!) of the
  3100. layout tests. Basically when laying out a line, you have a beginning, and end,
  3101. and midpoints in between that tell you what whitespace to skip over. It was
  3102. possible to end up with the last midpoint being a start point that was past the
  3103. end of the line, and in that case, we would sometimes not strip off the trailing
  3104. space at the end of the line like we should.
  3105. This patch adds a simple function to check for this condition. It strips off the
  3106. out-of-bounds midpoint, and then shaves off the trailing space from the previous
  3107. midpoint if it's necessary to do so.
  3108. Also fix the way spaces are counted so that we don't add in spaces for text that
  3109. is not part of any bidi runs.
  3110. Reviewed by john
  3111. * khtml/rendering/bidi.cpp:
  3112. 2003-07-30 Richard Williamson <rjw@apple.com>
  3113. Preparation for 3095376.
  3114. Reviewed by Maciej.
  3115. * WebCore-combined.exp:
  3116. * WebCore.exp:
  3117. * khtml/rendering/font.cpp:
  3118. (Font::checkSelectionPoint):
  3119. * khtml/rendering/font.h:
  3120. * khtml/rendering/render_text.cpp:
  3121. (TextRun::checkSelectionPoint):
  3122. * kwq/KWQFontMetrics.h:
  3123. * kwq/KWQFontMetrics.mm:
  3124. (QFontMetrics::width):
  3125. (QFontMetrics::floatWidth):
  3126. (QFontMetrics::floatCharacterWidths):
  3127. (QFontMetrics::checkSelectionPoint):
  3128. * kwq/KWQPainter.mm:
  3129. (QPainter::drawText):
  3130. * kwq/WebCoreTextRenderer.h:
  3131. * kwq/WebCoreTextRendererFactory.m:
  3132. (WebCoreInitializeTextRun):
  3133. (WebCoreInitializeEmptyTextStyle):
  3134. 2003-07-30 Dave Hyatt <hyatt@apple.com>
  3135. Fix for 3274144, floats in Help Viewer overlapped when they shouldn't have.
  3136. lineWidth was overflowing (and positionNewFloats was also sometimes not called
  3137. when it should have been).
  3138. Reviewed by darin
  3139. * khtml/rendering/bidi.cpp:
  3140. * khtml/rendering/render_block.cpp:
  3141. 2003-07-30 Dave Hyatt <hyatt@apple.com>
  3142. Add support for setting the text-shadow's color. This uses a new CG API,
  3143. so updating to a fairly recent Panther is required.
  3144. Reviewed by rjw
  3145. * khtml/css/cssparser.cpp:
  3146. (CSSParser::parseShadow):
  3147. * kwq/KWQPainter.mm:
  3148. (QPainter::setShadow):
  3149. 2003-07-30 John Sullivan <sullivan@apple.com>
  3150. - fixed 3346460 -- images > area (2048x2048) are compressed vertically
  3151. when displayed as src of img tag
  3152. Reviewed by Darin
  3153. * khtml/rendering/render_image.cpp:
  3154. (RenderImage::layout):
  3155. Just comment out the code that imposes a maximum image size (incorrectly);
  3156. maybe KDE folks want to make this work, but we don't need to try to
  3157. prevent large images.
  3158. 2003-07-30 John Sullivan <sullivan@apple.com>
  3159. - WebCore part of fix for 3284525 -- AutoFill fills in
  3160. only e-mail address field of New Account form on Apple Store Japan
  3161. There were two problems: the regex library being used by
  3162. KWQRegExp.mm didn't handle unicode at all, and the way we
  3163. were using word boundaries in our regular expressions didn't
  3164. work with Japanese.
  3165. Reviewed by Darin
  3166. * kwq/KWQKHTMLPart.mm:
  3167. (regExpForLabels):
  3168. Redid the way word boundaries are used; the old way didn't
  3169. work with PCRE, and also didn't work with Japanese.
  3170. * kwq/KWQRegExp.h:
  3171. removed treatStartAsStartOfInput parameter to match() that Trey had added;
  3172. it was being used incorrectly and was not necessary.
  3173. * kwq/KWQRegExp.mm:
  3174. (compareStringOffsets), (createSortedOffsetsArray),
  3175. (convertCharacterOffsetsToUTF8ByteOffsets),
  3176. (convertUTF8ByteOffsetsToCharacterOffsets):
  3177. Code copied from JavaScriptCore/regexp.cpp to convert between
  3178. byte and character offsets. Darin preferred that I copy these
  3179. methods rather than make them public in JavaScriptCore/regexp.h.
  3180. (QRegExp::KWQRegExpPrivate::compile):
  3181. converted from regex.h style to pcre.h style
  3182. (QRegExp::KWQRegExpPrivate::~KWQRegExpPrivate):
  3183. ditto
  3184. (QRegExp::match):
  3185. ditto
  3186. (QRegExp::search):
  3187. removed parameter to match()
  3188. (QRegExp::searchRev):
  3189. ditto
  3190. * kwq/KWQString.mm:
  3191. (QString::replace):
  3192. removed parameter to match()
  3193. 2003-07-30 Richard Williamson <rjw@apple.com>
  3194. Fixed 3349598. Deal gracefully with <li> items that
  3195. are not in a <ol> or <ul>, instead of crashing!
  3196. Reviewed by Ken.
  3197. * kwq/KWQKHTMLPart.mm:
  3198. (listParent):
  3199. (KWQKHTMLPart::attributedString):
  3200. 2003-07-29 Richard Williamson <rjw@apple.com>
  3201. Use the new KURL getNSURL() method to create an NSURL.
  3202. Reviewed by darin.
  3203. * kwq/KWQKHTMLPart.mm:
  3204. (KWQKHTMLPart::attributedString):
  3205. 2003-07-29 Darin Adler <darin@apple.com>
  3206. Reviewed by Dave.
  3207. - fixed 3311756 -- REGRESSION (76-77): radio buttons in different forms act as the same set
  3208. by rolling out old fix for 3158411 -- radio button groups are supposed to be per-form
  3209. The real bug at flyglobespan.com is what's fixed below.
  3210. * khtml/html/html_formimpl.h:
  3211. * khtml/html/html_formimpl.cpp:
  3212. (HTMLFormElementImpl::radioClicked):
  3213. (HTMLInputElementImpl::~HTMLInputElementImpl):
  3214. (HTMLInputElementImpl::setType):
  3215. (HTMLInputElementImpl::parseAttribute):
  3216. (HTMLInputElementImpl::attach):
  3217. (HTMLInputElementImpl::reset):
  3218. (HTMLInputElementImpl::setChecked):
  3219. (HTMLInputElementImpl::isEditable):
  3220. * khtml/xml/dom_docimpl.cpp:
  3221. * khtml/xml/dom_docimpl.h:
  3222. - fixed 3158411 -- re-opened form is one form in other browsers, multiple forms in Safari
  3223. (flyglobespan.com)
  3224. * khtml/html/htmlparser.cpp: (KHTMLParser::getElement): Don't open a form if we encounter
  3225. a form element inside another form.
  3226. 2003-07-29 John Sullivan <sullivan@apple.com>
  3227. - fixed 3346707 -- AutoFill does not fill in email address on
  3228. Apple Store new account page
  3229. Reviewed by Darin
  3230. * kwq/KWQRegExp.h:
  3231. * kwq/KWQRegExp.mm:
  3232. (QRegExp::searchRev):
  3233. This method (that Trey had added) used a placeholder 2nd parameter
  3234. that was always -1 and should have been ignored. But it was
  3235. being passed into QRegExp::match as the starting index, which
  3236. happened to work in many cases, but not if the byte of memory
  3237. before the string happened to be a null character. Fixed by
  3238. eliminating the placeholder parameter entirely.
  3239. 2003-07-28 Maciej Stachowiak <mjs@apple.com>
  3240. Reviewed by Richard.
  3241. - fixed 3343050 - nil-deref in saveInterpreterBuiltins running Sherlock via MallocDebug in Panther7B20
  3242. - fixed 3343942 - Safari crashes when clicking on link w/ JavaScript turned off
  3243. * kwq/KWQKHTMLPart.mm:
  3244. (KWQKHTMLPart::saveInterpreterBuiltins): Don't attempt to save
  3245. when JavaScript is off.
  3246. (KWQKHTMLPart::restoreInterpreterBuiltins): Don't attempt to restore
  3247. when JavaScript is off.
  3248. (KWQKHTMLPart::saveWindowProperties): Remove ERROR, since that
  3249. case is normal when JS is off.
  3250. (KWQKHTMLPart::saveLocationProperties): Remove ERROR, since that
  3251. case is normal when JS is off.
  3252. (KWQKHTMLPart::restoreWindowProperties): Remove ERROR, since that
  3253. case is normal when JS is off.
  3254. (KWQKHTMLPart::restoreLocationProperties): Remove ERROR, since that
  3255. case is normal when JS is off.
  3256. 2003-07-28 Dave Hyatt <hyatt@apple.com>
  3257. Fix build bustage on my buggy panther compiler.
  3258. Reviewed by darin
  3259. * kwq/KWQLineEdit.mm:
  3260. (QLineEdit::~QLineEdit):
  3261. 2003-07-28 Dave Hyatt <hyatt@apple.com>
  3262. Fix for 3343250, XML didn't know how to make implicit tbodies when starting new elements,
  3263. nor did it know to skip implicit elements when popping its element stack.
  3264. Reviewed by darin
  3265. * khtml/xml/xml_tokenizer.cpp:
  3266. (XMLHandler::startElement):
  3267. (XMLHandler::endElement):
  3268. 2003-07-25 Dave Hyatt <hyatt@apple.com>
  3269. Rename box and inline-box to -khtml-box and -khtml-inline-box.
  3270. Reviewed by john
  3271. * khtml/css/cssparser.cpp:
  3272. (CSSParser::parseValue):
  3273. * khtml/css/cssvalues.c:
  3274. (hash_val):
  3275. (findValue):
  3276. * khtml/css/cssvalues.h:
  3277. * khtml/css/cssvalues.in:
  3278. 2003-07-25 Dave Hyatt <hyatt@apple.com>
  3279. Fix for 3343529, inline blocks crashing Safari. There were lots of problems with
  3280. inlne-blocks. This code gets basic inline-blocks working properly (with no crashes).
  3281. Several functions have been patched to take an isRootLineBox parameter. This is used
  3282. to tell whether you're supposed to examine the root line box for a block or the block
  3283. itself. In the case of baselinePosition and lineHeight, it indicates whether the caller
  3284. wants to measure the outside or inside of the box.
  3285. The outside of an inline-block is like a replaced element (e.g., an image), but the
  3286. inside is like a block, e.g., you want measurements for
  3287. the line height and baseline position of a root line box for that block.
  3288. Similarly, createInlineBox has been patched in order to know whether you're making a
  3289. root inline box *inside* the inline-block or an inline box that *encompasses* the
  3290. inline-block element (like you'd do for an image).
  3291. A number of places had isInline() calls and needed to be patched to also check
  3292. isInlineBlockOrInlineTable(). How to treat the inline-block again basically depends
  3293. on whether the caller is looking at the outside of the block (in which case you're like
  3294. an inline replaced element) or the inside of the block (in which case you're just like
  3295. a block).
  3296. Reviewed by darin
  3297. * ChangeLog:
  3298. * khtml/rendering/bidi.cpp:
  3299. * khtml/rendering/render_block.cpp:
  3300. * khtml/rendering/render_block.h:
  3301. * khtml/rendering/render_box.cpp:
  3302. (RenderBox::calcWidth):
  3303. (RenderBox::calcHeight):
  3304. * khtml/rendering/render_flow.cpp:
  3305. (RenderFlow::createInlineBox):
  3306. * khtml/rendering/render_flow.h:
  3307. * khtml/rendering/render_form.cpp:
  3308. (RenderFormElement::baselinePosition):
  3309. (RenderButton::baselinePosition):
  3310. (RenderSubmitButton::baselinePosition):
  3311. (RenderSelect::baselinePosition):
  3312. * khtml/rendering/render_form.h:
  3313. * khtml/rendering/render_line.cpp:
  3314. (InlineFlowBox::verticallyAlignBoxes):
  3315. (InlineFlowBox::computeLogicalBoxHeights):
  3316. * khtml/rendering/render_list.cpp:
  3317. (RenderListMarker::lineHeight):
  3318. (RenderListMarker::baselinePosition):
  3319. * khtml/rendering/render_list.h:
  3320. * khtml/rendering/render_object.cpp:
  3321. (RenderObject::sizesToMaxWidth):
  3322. (RenderObject::getVerticalPosition):
  3323. (RenderObject::lineHeight):
  3324. (RenderObject::baselinePosition):
  3325. (RenderObject::createInlineBox):
  3326. * khtml/rendering/render_object.h:
  3327. * khtml/rendering/render_replaced.cpp:
  3328. (RenderReplaced::lineHeight):
  3329. (RenderReplaced::baselinePosition):
  3330. * khtml/rendering/render_replaced.h:
  3331. * khtml/rendering/render_table.cpp:
  3332. * khtml/rendering/render_table.h:
  3333. * khtml/rendering/render_text.cpp:
  3334. (RenderText::lineHeight):
  3335. (RenderText::baselinePosition):
  3336. (RenderText::createInlineBox):
  3337. * khtml/rendering/render_text.h:
  3338. 2003-07-25 Dave Hyatt <hyatt@apple.com>
  3339. Fix for 3343527, crash when attempting to access rules in the CSS OM.
  3340. Our KWQListImpl doesn't null check accesses, so anything out
  3341. of bounds would cause a crash.
  3342. Reviewed by mjs
  3343. * kwq/KWQListImpl.mm:
  3344. (KWQListImpl::at):
  3345. 2003-07-25 Maciej Stachowiak <mjs@apple.com>
  3346. Reviewed by Dave.
  3347. - fixed 3332460 - nil-deref in khtml::RenderWidget::eventFilter with onchange handler
  3348. * khtml/rendering/render_form.cpp:
  3349. (RenderTextArea::handleFocusOut): Check if we still have an
  3350. element. It could have gone away while handling an event that
  3351. replaced some or all of the document, and if we're gonna be
  3352. destroyed soon then there's no point doing this work anyway.
  3353. 2003-07-25 Maciej Stachowiak <mjs@apple.com>
  3354. Reviewed by Dave.
  3355. - fixed 3332460 - nil-deref in khtml::RenderWidget::eventFilter with onchange handler
  3356. * khtml/rendering/render_replaced.cpp:
  3357. (RenderWidget::eventFilter): We want to ref element() across this call, but it could get
  3358. unset, so store it in a local variable.
  3359. * kwq/KWQLineEdit.h:
  3360. * kwq/KWQLineEdit.mm:
  3361. (QLineEdit::~QLineEdit): invalidate our KWQTextField.
  3362. * kwq/KWQTextField.h:
  3363. * kwq/KWQTextField.mm:
  3364. (-[KWQTextField invalidate]): Set widget to NULL.
  3365. (-[KWQTextField action:]): Do nothing if widget is NULL.
  3366. (-[KWQTextField controlTextDidBeginEditing:]): Likewise.
  3367. (-[KWQTextField controlTextDidEndEditing:]): Likewise.
  3368. (-[KWQTextField controlTextDidChange:]): Likewise.
  3369. (-[KWQTextField control:textShouldBeginEditing:]): Likewise.
  3370. (-[KWQTextField control:textShouldEndEditing:]): Likewise.
  3371. (-[KWQTextField control:didFailToFormatString:errorDescription:]): Likewise.
  3372. (-[KWQTextField control:didFailToValidatePartialString:errorDescription:]): Likewise.
  3373. (-[KWQTextField control:isValidObject:]): Likewise.
  3374. (-[KWQTextField control:textView:doCommandBySelector:]): Likewise.
  3375. (-[KWQTextField stringValue]): Likewise.
  3376. (-[KWQTextField setStringValue:]): Likewise.
  3377. (-[KWQTextField setFont:]): Likewise.
  3378. (-[KWQTextField nextKeyView]): Likewise.
  3379. (-[KWQTextField previousKeyView]): Likewise.
  3380. (-[KWQTextField nextValidKeyView]): Likewise.
  3381. (-[KWQTextField previousValidKeyView]): Likewise.
  3382. (-[KWQTextField fieldEditorDidMouseDown:]): Likewise.
  3383. (-[KWQTextField textView:shouldHandleEvent:]): Likewise.
  3384. (-[KWQTextField textView:didHandleEvent:]): Likewise.
  3385. (-[KWQTextField setHasFocus:]): Likewise.
  3386. 2003-07-24 John Sullivan <sullivan@apple.com>
  3387. - fixed 3332622 -- Safari Abbreviates Attribute Names in EMBED tags
  3388. Reviewed by Richard
  3389. * khtml/html/htmltokenizer.h:
  3390. bumped fixed max length of attributes from 14 to 1024.
  3391. Theoretically they could be any arbitrary length, but it's
  3392. more risk than it's worth to rewrite the code that uses the
  3393. fixed-size buffer that is based on this value.
  3394. 2003-07-24 Dave Hyatt <hyatt@apple.com>
  3395. Change all uses of "konq-" in CSS to "khtml-".
  3396. Also rename the CSS3 properties that have either buggy or
  3397. incomplete implementations to "-khtml-property" for forward
  3398. compatibility (so that people don't have to worry about a buggy
  3399. Safari if/when they use the official property names).
  3400. Reviewed by john
  3401. * khtml/css/cssparser.cpp:
  3402. (CSSParser::parseRule):
  3403. (CSSParser::parseValue):
  3404. (CSSParser::parseDeclaration):
  3405. (CSSParser::parseFontFamily):
  3406. (CSSParser::parseShadow):
  3407. * khtml/css/cssproperties.c:
  3408. (hash_prop):
  3409. (findProp):
  3410. * khtml/css/cssproperties.h:
  3411. * khtml/css/cssproperties.in:
  3412. * khtml/css/cssstyleselector.cpp:
  3413. * khtml/css/cssvalues.c:
  3414. (hash_val):
  3415. (findValue):
  3416. * khtml/css/cssvalues.h:
  3417. * khtml/css/cssvalues.in:
  3418. * khtml/css/html4.css:
  3419. * khtml/css/parser.cpp:
  3420. * khtml/css/parser.h:
  3421. * khtml/css/parser.y:
  3422. * khtml/css/quirks.css:
  3423. * khtml/css/tokenizer.cpp:
  3424. * khtml/css/tokenizer.flex:
  3425. * khtml/html/html_blockimpl.cpp:
  3426. (HTMLDivElementImpl::parseAttribute):
  3427. (HTMLParagraphElementImpl::parseAttribute):
  3428. * khtml/html/html_elementimpl.cpp:
  3429. (HTMLElementImpl::addHTMLAlignment):
  3430. * khtml/html/html_inlineimpl.cpp:
  3431. (HTMLFontElementImpl::parseAttribute):
  3432. * khtml/html/html_tableimpl.cpp:
  3433. (HTMLTablePartElementImpl::parseAttribute):
  3434. (HTMLTableCellElementImpl::parseAttribute):
  3435. * khtml/rendering/bidi.cpp:
  3436. * khtml/rendering/render_block.cpp:
  3437. * khtml/rendering/render_box.cpp:
  3438. (RenderBox::calcHorizontalMargins):
  3439. * khtml/rendering/render_flexbox.cpp:
  3440. * khtml/rendering/render_style.h:
  3441. * khtml/rendering/render_table.cpp:
  3442. (RenderTableCell::setStyle):
  3443. === Safari-90 ===
  3444. 2003-07-23 Dave Hyatt <hyatt@apple.com>
  3445. Fix opacity to respect clipping.
  3446. Reviewed by rjw
  3447. * khtml/rendering/render_layer.cpp:
  3448. (RenderLayer::paint):
  3449. 2003-07-23 Darin Adler <darin@apple.com>
  3450. Reviewed by John.
  3451. - fixed 2/3 of 3279864 -- remove class_poseAs calls from WebKit (will also remove init routine)
  3452. * kwq/KWQTextArea.h: Add drawing state variable so we can tell the difference
  3453. between calls to draw the insertion point inside and calls to draw outside the
  3454. redraw machinery.
  3455. * kwq/KWQTextArea.mm:
  3456. (-[KWQTextArea displayRectIgnoringOpacity:]): Added. Set drawing flag while in here.
  3457. This is the method used by KWQWidget to draw.
  3458. (-[KWQTextArea textView:shouldDrawInsertionPointInRect:color:turnedOn:]): Added.
  3459. Calls setNeedsDisplay (the NSView version, not the NSTextView override) instead
  3460. of immediately drawing when asked to draw outside the normal redraw machinery.
  3461. (-[KWQTextAreaTextView keyDown:]): Call interceptKeyEvent before handling each
  3462. key down event.
  3463. * kwq/KWQTextField.h: Add drawing state variable so we can tell the difference
  3464. between calls to draw the insertion point inside and calls to draw outside the
  3465. redraw machinery.
  3466. * kwq/KWQTextField.mm:
  3467. (-[KWQTextField displayRectIgnoringOpacity:]): Added. Set drawing flag while in here.
  3468. This is the method used by KWQWidget to draw.
  3469. (-[KWQTextField textView:shouldDrawInsertionPointInRect:color:turnedOn:]): Added.
  3470. Calls setNeedsDisplay (the NSView version, not the NSTextView override) instead
  3471. of immediately drawing when asked to draw outside the normal redraw machinery.
  3472. (-[KWQTextField textView:shouldHandleEvent:]): Call interceptKeyEvent before
  3473. handling each key down event.
  3474. (-[KWQTextField textView:didHandleEvent:]): Call fieldEditorDidMouseDown: after
  3475. handling each mouse down event.
  3476. * kwq/KWQWidget.mm: (QWidget::paint): Add comment about dependency on
  3477. displayRectIgnoringOpacity: use in KWQTextArea and KWQTextField.
  3478. * kwq/WebCoreFirstResponderChanges.h: Added a comment about obsolescence.
  3479. - Xcode wanted to change this, because it now knows JavaScriptCore is a framework
  3480. * WebCore.pbproj/project.pbxproj: Munged by Xcode.
  3481. 2003-07-23 Dave Hyatt <hyatt@apple.com>
  3482. Fix for 3340885, invalid colors were being mapped to transparentColor,
  3483. thus causing invisible text!
  3484. Reviewed by kocienda
  3485. * khtml/css/cssparser.cpp:
  3486. (CSSParser::parseColorFromValue):
  3487. 2003-07-23 Richard Williamson <rjw@apple.com>
  3488. Fixed for 3259840. Use ATSU for scripts we don't handle internally,
  3489. i.e.: Syriac, Thaana, Devanagari, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayalam, Sinhala, Thai, Lao, Tibetan, Myanmar, Hangul Jamo, Khmer, Mongolian
  3490. Also fixed issues with our rendering of Arabic.
  3491. Changed the internal API to take WebCoreTextRun and WebCoreTextStyle
  3492. parameters instead of scads on individual parameters. Much cleaner.
  3493. Reviewed by Maciej.
  3494. * WebCore-combined.exp:
  3495. * WebCore.exp:
  3496. * kwq/KWQFontMetrics.mm:
  3497. (QFontMetrics::width):
  3498. (QFontMetrics::floatWidth):
  3499. (QFontMetrics::floatCharacterWidths):
  3500. * kwq/KWQPainter.mm:
  3501. (QPainter::drawText):
  3502. * kwq/WebCoreTextRenderer.h:
  3503. * kwq/WebCoreTextRendererFactory.m:
  3504. (WebCoreMakeTextRun):
  3505. (WebCoreMakeEmptyTextStyle):
  3506. 2003-07-23 Dave Hyatt <hyatt@apple.com>
  3507. Clean up the mess left by a couple of previous checkins. I had
  3508. patched computeLength and computeLengthFloat to take a CSSStyleSelector,
  3509. but then I came up with a simpler solution that didn't require that
  3510. the selector be passed in as an argument. I forgot, however, to revert
  3511. the functions back to their original forms. This patch does that.
  3512. Reviewed by john
  3513. * khtml/css/css_valueimpl.cpp:
  3514. (CSSPrimitiveValueImpl::computeLength):
  3515. (CSSPrimitiveValueImpl::computeLengthFloat):
  3516. * khtml/css/css_valueimpl.h:
  3517. * khtml/css/cssstyleselector.cpp:
  3518. 2003-07-23 Dave Hyatt <hyatt@apple.com>
  3519. Temporary hack to ensure that the layout tests will not all
  3520. be failures if/when the layout tests regression gets fixed.
  3521. Will remove once we can run the tests.
  3522. Reviewed by ken
  3523. * khtml/rendering/render_block.cpp:
  3524. 2003-07-22 Dave Hyatt <hyatt@apple.com>
  3525. Allow HTML and BODY to be any display type. This patch primarily eliminates the
  3526. RenderBody class and makes the code that deals with background propagation smart
  3527. enough to locate the correct renderers for the HTML and BODY elements (by crossing
  3528. back into the DOM tree).
  3529. Reviewed by darin
  3530. * ForwardingHeaders/rendering/render_body.h: Removed.
  3531. * WebCore.pbproj/project.pbxproj:
  3532. * khtml/html/html_baseimpl.cpp:
  3533. (HTMLBodyElementImpl::insertedIntoDocument):
  3534. * khtml/html/html_baseimpl.h:
  3535. * khtml/rendering/render_body.cpp: Removed.
  3536. * khtml/rendering/render_body.h: Removed.
  3537. * khtml/rendering/render_box.cpp:
  3538. (RenderBox::setStyle):
  3539. (RenderBox::paintRootBoxDecorations):
  3540. (RenderBox::paintBoxDecorations):
  3541. (RenderBox::repaint):
  3542. * khtml/rendering/render_inline.cpp:
  3543. (RenderInline::paintObject):
  3544. * khtml/rendering/render_inline.h:
  3545. * khtml/rendering/render_object.cpp:
  3546. (RenderObject::isBody):
  3547. * khtml/rendering/render_object.h:
  3548. * khtml/xml/dom_elementimpl.cpp:
  3549. (ElementImpl::createRenderer):
  3550. 2003-07-22 Darin Adler <darin@apple.com>
  3551. Reviewed by Maciej.
  3552. - fixed 3108604 -- add Shift JIS X0213 and HK-SCS to the Text Encoding menu
  3553. * kwq/mac-encodings.txt: Added "Shift_JIS_X0213-2000". Changed all non-HKSCS
  3554. Big5 encodings to use the DOS variant of Big5 as requested by Peter Edberg,
  3555. but left Big5-HKSCS alone.
  3556. * kwq/KWQCharsets.mm: Added kCFStringEncodingBig5_DOSVariant constant.
  3557. * kwq/KWQCharsetData.c: Regenerated.
  3558. - fixed 3100151 -- subframes without explicit charset settings should inherit from parent, not use default
  3559. * khtml/khtml_part.cpp: (KHTMLPart::write): Get the default encoding from the parent
  3560. part, if there is one.
  3561. 2003-07-22 Dave Hyatt <hyatt@apple.com>
  3562. Fix for 3293898, list bullets in ordered lists with an inside list
  3563. position were rendering as though they had a width of 0. This was
  3564. a bug in KWQFontMetrics, which needed to handle the case where a
  3565. length of -1 was passed in to the width method (in which case
  3566. you should use the length of the whole string).
  3567. Reviewed by john
  3568. * kwq/KWQFontMetrics.mm:
  3569. (QFontMetrics::width):
  3570. 2003-07-22 Dave Hyatt <hyatt@apple.com>
  3571. Fix for mozilla.org front page. This patch re-architects
  3572. align="left" and align="right" (for rtl and ltr directionality
  3573. respectively). The attributes are mapped to custom text-align
  3574. values, konq-left and konq-right, just as was done with the
  3575. center/middle attributes for alignment.
  3576. A number of "hack" style rules have been dropped from html4.css
  3577. and replaced with this C++ code that now works in the general
  3578. case for any children of align="left/right" divs and tds.
  3579. In addition, absmiddle support has been added for <td>s.
  3580. For RTL blocks, there is also a regression fix (this was probably
  3581. the #1 culprit for mangled placement of blocks in Hebrew Web
  3582. pages). The old code was doing byzantine math that happened to
  3583. work out. When I tried to simplify it before 1.0, I missed a spot
  3584. and basically broke margin handling on RTL blocks completely.
  3585. Reviewed by mjs
  3586. * khtml/css/cssparser.cpp:
  3587. (CSSParser::parseValue):
  3588. * khtml/css/cssvalues.c:
  3589. (hash_val):
  3590. (findValue):
  3591. * khtml/css/cssvalues.h:
  3592. * khtml/css/cssvalues.in:
  3593. * khtml/css/html4.css:
  3594. * khtml/html/html_blockimpl.cpp:
  3595. (HTMLDivElementImpl::parseAttribute):
  3596. (HTMLParagraphElementImpl::parseAttribute):
  3597. * khtml/html/html_tableimpl.cpp:
  3598. (HTMLTablePartElementImpl::parseAttribute):
  3599. * khtml/rendering/bidi.cpp:
  3600. * khtml/rendering/render_block.cpp:
  3601. * khtml/rendering/render_box.cpp:
  3602. (RenderBox::calcHorizontalMargins):
  3603. * khtml/rendering/render_style.h:
  3604. 2003-07-21 Dave Hyatt <hyatt@apple.com>
  3605. Fix for 3333557, crash on www.dremedia.com. markDescendants in RenderBlock
  3606. was not passing in its argument in the recursive step, so the float wasn't
  3607. getting properly cleared out of everyone's lists.
  3608. Reviewed by darin
  3609. * khtml/rendering/render_block.cpp:
  3610. 2003-07-21 Dave Hyatt <hyatt@apple.com>
  3611. Fix for 3182596, percentage height tables with cells that specify
  3612. tiny percentage heights used that height even if it was smaller
  3613. than the cell's minimum required height.
  3614. Reviewed by darin
  3615. * khtml/rendering/render_table.cpp:
  3616. (RenderTableSection::layoutRows):
  3617. 2003-07-21 Darin Adler <darin@apple.com>
  3618. Reviewed by Dave.
  3619. - fixed 3316867 -- tabbing to textarea below visible part of page doesn't scroll down
  3620. * kwq/KWQTextArea.mm: (-[KWQTextAreaTextView becomeFirstResponder]): Added call to
  3621. _KWQ_scrollFrameToVisible to match the one in KWQTextField.
  3622. 2003-07-21 Dave Hyatt <hyatt@apple.com>
  3623. Fix removeAttributeNode. This is David Faure's patch.
  3624. Reviewed by me
  3625. * khtml/xml/dom_elementimpl.cpp:
  3626. (NamedAttrMapImpl::removeAttribute):
  3627. 2003-07-21 Dave Hyatt <hyatt@apple.com>
  3628. Checking in David Faure's patch that fixes getElementsByTagName(*).
  3629. Reviewed by me
  3630. * khtml/xml/dom_nodeimpl.cpp:
  3631. (NodeBaseImpl::getElementsByTagNameNS):
  3632. (TagNodeListImpl::nodeMatches):
  3633. 2003-07-18 Dave Hyatt <hyatt@apple.com>
  3634. Enable domain() and setDomain() to work for all documents (XML
  3635. as well as HTML).
  3636. Implement onload for frames.
  3637. Reviewed by mjs
  3638. * khtml/ecma/kjs_window.cpp:
  3639. (Window::isSafeScript):
  3640. (WindowFunc::tryCall):
  3641. * khtml/html/html_baseimpl.cpp:
  3642. (HTMLFrameElementImpl::parseAttribute):
  3643. (HTMLIFrameElementImpl::parseAttribute):
  3644. * khtml/html/html_documentimpl.cpp:
  3645. * khtml/html/html_documentimpl.h:
  3646. * khtml/khtml_part.cpp:
  3647. (KHTMLPart::checkEmitLoadEvent):
  3648. * khtml/xml/dom_docimpl.cpp:
  3649. (DocumentImpl::domain):
  3650. (DocumentImpl::setDomain):
  3651. * khtml/xml/dom_docimpl.h:
  3652. * khtml/xml/dom_nodeimpl.cpp:
  3653. (NodeImpl::dispatchWindowEvent):
  3654. 2003-07-18 Dave Hyatt <hyatt@apple.com>
  3655. Fix for 3334082, XML documents can access HTML/XML docs in other
  3656. domains. The basic bug is that we made a change right before
  3657. 1.0 to allow a parent document to access a child frame's document
  3658. if the child frame had no document. What we didn't notice was
  3659. that the ptr was obtained from the part by asking for an HTML
  3660. document. For XML documents that failed the cast, we got back
  3661. null as well, which means that for non-HTML XML documents we
  3662. always return true from isSafeScript.
  3663. This patch makes sure our addition uses the raw xmlDoc pointer,
  3664. so that there are no mistakes, and it restores the code that
  3665. denies access when you aren't an HTML document.
  3666. (It is a separate bug that we just disallow cross-frame
  3667. communication in XML documents right now that I'll file as
  3668. a follow-up to this one.)
  3669. Reviewed by darin, rjw, mjs
  3670. * khtml/ecma/kjs_window.cpp:
  3671. (Window::isSafeScript):
  3672. 2003-07-15 Dave Hyatt <hyatt@apple.com>
  3673. Fix for 3300362, crash on myuhc.com. The residual style code
  3674. was messing up and inserting nodes in the wrong place (and also
  3675. updating the current member variable when it wasn't supposed to).
  3676. Fix for 3331793, nil deref because (astoundingly) someone was
  3677. using text-shadow and exposed a bug with the color handling
  3678. of the shadow.
  3679. Reviewed by darin
  3680. * khtml/html/htmlparser.cpp:
  3681. * khtml/html/htmlparser.h
  3682. (KHTMLParser::reopenResidualStyleTags):
  3683. (KHTMLParser::popBlock):
  3684. 2003-07-17 Maciej Stachowiak <mjs@apple.com>
  3685. Reviewed by John.
  3686. - fixed 3283076 - crash when doing 2nd query on the eBay channel (Sherlock) -- JavaScript locking issue?
  3687. I added a bit of minimal extra locking to WebCore to make sure
  3688. multithreaded apps that use WebKit on the main thread but do
  3689. JavaScript on other threads as well continue to work nicely.
  3690. * khtml/ecma/kjs_proxy.cpp:
  3691. (KJSProxyImpl::initScript): Lock interpreter around possible allocations or collections.
  3692. * khtml/ecma/kjs_window.cpp:
  3693. (Window::clear): Lock interpreter around possible allocations or collections.
  3694. 2003-07-17 Ken Kocienda <kocienda@apple.com>
  3695. Reviewed by John
  3696. * kwq/KWQKHTMLPart.mm:
  3697. (KWQKHTMLPart::createPart): Now uses NSURL instead of NSString
  3698. (KWQKHTMLPart::redirectionTimerStartedOrStopped): Ditto
  3699. (KWQKHTMLPart::userAgent): Ditto
  3700. * kwq/KWQKHTMLPartBrowserExtension.mm:
  3701. (KHTMLPartBrowserExtension::setIconURL): Ditto
  3702. (KHTMLPartBrowserExtension::setTypedIconURL): Ditto
  3703. * kwq/KWQKJavaAppletWidget.mm:
  3704. (KJavaAppletWidget::showApplet): Ditto
  3705. * kwq/KWQLoader.mm:
  3706. (KWQServeRequest): Ditto
  3707. (KWQCheckCacheObjectStatus): Ditto
  3708. * kwq/WebCoreBridge.h: Changed quite a number of methods to use NSURL
  3709. instead of NSString
  3710. * kwq/WebCoreBridge.mm:
  3711. (-[WebCoreBridge didNotOpenURL:]): Now uses NSURL instead of NSString
  3712. (-[WebCoreBridge scrollToAnchorWithURL:]): Ditto
  3713. (-[WebCoreBridge URL]): Ditto
  3714. 2003-07-17 Ken Kocienda <kocienda@apple.com>
  3715. Reviewed by Darin
  3716. * kwq/KWQKHTMLPart.h: _submittedFormURL is now a KURL, not a QString
  3717. * kwq/KWQKHTMLPart.mm:
  3718. (KWQKHTMLPart::openURL): Now uses NSURL in API instead of NSString
  3719. (KWQKHTMLPart::openURLRequest): Ditto
  3720. (KWQKHTMLPart::didNotOpenURL): Ditto
  3721. (KWQKHTMLPart::submitForm): Ditto. Plus update _submittedFormURL usages.
  3722. (KWQKHTMLPart::urlSelected): Ditto
  3723. (KWQKHTMLPart::setView): Ditto
  3724. * kwq/KWQKHTMLPartBrowserExtension.mm:
  3725. (KHTMLPartBrowserExtension::createNewWindow): Now uses NSURL in API instead of NSString
  3726. * kwq/KWQKURL.h: Added constructor that takes an NSURL
  3727. * kwq/KWQKURL.mm:
  3728. (KURL::KURL): Ditto.
  3729. * kwq/WebCoreBridge.h: Updated bridge APIs to use NSURL instead of NSString
  3730. in several places.
  3731. * kwq/WebCoreBridge.mm:
  3732. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): Ditto
  3733. 2003-07-16 Darin Adler <darin@apple.com>
  3734. Reviewed by John.
  3735. - cure problem where we keep competing to check in config.h with/without HAVE_FOUNDATION_SOURCSE
  3736. * Makefile.am: Remove the HAVE_FOUNDATION_SOURCES line.
  3737. * config.h: Check in without that line.
  3738. 2003-07-16 Vicki Murley <vicki@apple.com>
  3739. Reviewed by kocienda.
  3740. * kwq/KWQKHTMLPart.mm:
  3741. (KWQKHTMLPart::attributedString): set linkStartLocation to zero to fix deployment build
  3742. 2003-07-15 Ken Kocienda <kocienda@apple.com>
  3743. Reviewed by Richard
  3744. * kwq/KWQKURL.h:
  3745. * kwq/KWQKURL.mm:
  3746. (StringHasCaseInsensitivePrefix): Helper method for the new functions below
  3747. (StringByAddingPercentEscapes): Ditto
  3748. (URLStringByAddingPercentEscapes): Ditto
  3749. (KURL::getNSURL): Added convenience function to get an NSURL from a KURL
  3750. (KURL::getNSData): Added convenience function to get an NSData from a KURL
  3751. 2003-07-15 Richard Williamson <rjw@apple.com>
  3752. Fixed 3315951: Add support for <OL>, <UL> in attributed string conversion.
  3753. Fixed 3315952: Add support for <IMG> in attributed string conversion.
  3754. Fixed 3315953: Added support for <A> in attributed string conversion.
  3755. Reviewed by John (and earlier by Darin).
  3756. * khtml/rendering/render_list.h:
  3757. * kwq/KWQKHTMLPart.mm:
  3758. (fileWrapperForElement):
  3759. (listParent):
  3760. (inList):
  3761. (KWQKHTMLPart::attributedString):
  3762. 2003-07-14 Dave Hyatt <hyatt@apple.com>
  3763. Fix a problem where ems used for non-font values like width
  3764. and line-height would not zoom. (r=darin)
  3765. The rest is r=rjw.
  3766. An implementation of the CSS2 text-shadow property.
  3767. It uses a CoreGraphics API for drawing shadows
  3768. (via a custom API on QPainter) to paint the shadows.
  3769. At the moment there are two limitations in CG's API. The first
  3770. is that the shadow color cannot be set. This will be fixed for
  3771. Panther, and the code passes the color through in preparation
  3772. for this fix.
  3773. The second limitation is that CG only supports one shadow effect
  3774. and not multiple shadow effects. The parsing code on the CSS
  3775. side is set up to go ahead and parse all of the shadow effects,
  3776. but the code that makes use of shadows will simply look at the
  3777. first one for now. CG will not support multiple shadow effects
  3778. in the Panther time frame, so it will be a while before this
  3779. is revisited.
  3780. This patch also fixes a slew of bugs with colors in KHTML. When
  3781. we took the CSS parser and all of its associated code from Lars,
  3782. that code was using QRgb values that assumed RGBA (like the current
  3783. Qt toolkit uses). The code even made use of an "invalid color"
  3784. that wasn't really invalid (kind of like the z-index hack we refused
  3785. to take, i.e., unlikely but not invalid).
  3786. Our KWQColor implementation has been rewritten in this patch to
  3787. work the way the current Qt toolkit expects. That is, the top
  3788. eight bits actually do contain an alpha channel, and you can obtain
  3789. the alpha component using the qAlpha method and build a quadruple
  3790. using the qRgba method.
  3791. This patch adds support for rgba quadruples to CSS, so you can now
  3792. say, e.g.,color: rgba(255,0,0,0.5); in CSS.
  3793. * khtml/css/css_valueimpl.cpp:
  3794. (ShadowValueImpl::~ShadowValueImpl):
  3795. * khtml/css/css_valueimpl.h:
  3796. * khtml/css/cssparser.cpp:
  3797. (CSSParser::parseValue):
  3798. (parseColor):
  3799. (CSSParser::parseColor):
  3800. (CSSParser::parseColorFromValue):
  3801. (CSSParser::parseShadow):
  3802. * khtml/css/cssparser.h:
  3803. * khtml/css/cssstyleselector.cpp:
  3804. * khtml/misc/helper.h:
  3805. * khtml/rendering/render_line.cpp:
  3806. (InlineFlowBox::paintDecorations):
  3807. * khtml/rendering/render_style.cpp:
  3808. (StyleVisualData::StyleVisualData):
  3809. (opacity):
  3810. (flexibleBox):
  3811. (StyleCSS3NonInheritedData::operator==):
  3812. (textShadow):
  3813. (StyleCSS3InheritedData):
  3814. (StyleCSS3InheritedData::operator==):
  3815. (StyleCSS3InheritedData::shadowDataEquivalent):
  3816. (RenderStyle::RenderStyle):
  3817. (RenderStyle::inheritFrom):
  3818. (RenderStyle::operator==):
  3819. (RenderStyle::inheritedNotEqual):
  3820. (RenderStyle::diff):
  3821. (ContentData::clearContent):
  3822. (RenderStyle::setTextShadow):
  3823. (ShadowData::operator==):
  3824. * khtml/rendering/render_style.h:
  3825. * khtml/rendering/render_text.cpp:
  3826. (RenderText::paintObject):
  3827. * khtml/xml/dom_nodeimpl.cpp:
  3828. (NodeImpl::diff):
  3829. * kwq/KWQColor.h:
  3830. * kwq/KWQColor.mm:
  3831. (qRgb):
  3832. (qRgba):
  3833. (qAlpha):
  3834. (QColor::QColor):
  3835. (QColor::setNamedColor):
  3836. (QColor::getNSColor):
  3837. * kwq/KWQNamespace.h:
  3838. * kwq/KWQPainter.h:
  3839. * kwq/KWQPainter.mm:
  3840. (QPainter::drawRect):
  3841. (QPainter::drawLine):
  3842. (QPainter::_fillRect):
  3843. (QPainter::fillRect):
  3844. (QPainter::setShadow):
  3845. (QPainter::clearShadow):
  3846. 2003-07-14 Darin Adler <darin@apple.com>
  3847. Reviewed by Maciej.
  3848. - fixed 3244447 -- add KOI8-U charset support
  3849. - fixed 3327152 -- unicodeFFFE and unicodeFEFF are handled backwards by WebCore
  3850. - fixed 3327157 -- x-mac-ukrainian should be mapped to MacCyrillic
  3851. - fixed 3327160 -- shift-jis, shift_jis, x-sjis should be mapped to the DOS variant of Shift JIS
  3852. - fixed 3327162 -- most Simplified Chinese encoding choices should be mapped to the DOS variant of EUC-CN
  3853. - fixed 3327166 -- use DOS variant of EUC_KR
  3854. * kwq/KWQCharsets.mm: Added some defines so we could use encodings that don't
  3855. have any kCFStringEncoding constant in a header file.
  3856. * kwq/mac-encodings.txt: Change table entries in accordance with the above bug reports.
  3857. * kwq/KWQCharsetData.c: Regenerated.
  3858. - other changes, inspired by investigation of various bugs
  3859. * kwq/KWQButton.mm: (-[KWQButton sendConsumedMouseUpIfNeeded]): Make robust against cases where
  3860. sending the consumed mouse up event destroys the QButton.
  3861. * khtml/html/htmlparser.cpp:
  3862. (KHTMLParser::reopenResidualStyleTags): Rearrange code slightly for clarity, added comment.
  3863. (KHTMLParser::freeBlock): Removed unnecessary line of code.
  3864. 2003-07-14 Dave Hyatt <hyatt@apple.com>
  3865. Fix for 3294626, no scrollbar on ESPN. Fix lowestPosition to
  3866. always crawl into all children.
  3867. Reviewed by darin
  3868. * khtml/rendering/render_flow.cpp:
  3869. (RenderFlow::lowestPosition):
  3870. (RenderFlow::rightmostPosition):
  3871. 2003-07-11 Darin Adler <darin@apple.com>
  3872. Reviewed by Maciej.
  3873. - fixed 3132021 -- certain Japanese characters are misrendered because of incorrect partial-character handling
  3874. We didn't have code to handle kTECPartialCharErr.
  3875. * kwq/KWQTextCodec.mm:
  3876. (KWQTextDecoder::createTECConverter): Added. Broken out from convertUsingTEC.
  3877. (KWQTextDecoder::appendOmittingBOMs): Added. Broken out from convertUsingTEC.
  3878. (KWQTextDecoder::convertOneChunkUsingTEC): Added. Broken out from convertUsingTEC.
  3879. This also has much of the partially-decoded character handling.
  3880. (KWQTextDecoder::convertUsingTEC): Simplified by breaking into functions, and added
  3881. handling to use the same buffer we use for the other decoders to hold partially-decoded
  3882. characters.
  3883. (KWQTextDecoder::convert): Add a partial-character handling test mode where the decoder
  3884. is passed only a single byte at a time; controlled by an #if.
  3885. 2003-07-11 Dave Hyatt <hyatt@apple.com>
  3886. Fix for 3187101, before/after content not dynamic. This patch
  3887. compares the ContentData of the old style and the new style and
  3888. if they are different, it blows away and recreates the render
  3889. objects for the generated content. Otherwise it will dynamically
  3890. update the styles of the generated content render objects (which
  3891. should fix the printer/screen bug for rjw).
  3892. Note that createObject had an extra call to setStyle, which was
  3893. causing most objects to set the same style context on themselves
  3894. twice. This was exposed as I was fixing the above problem.
  3895. Reviewed by darin
  3896. * ChangeLog:
  3897. * khtml/rendering/render_container.cpp:
  3898. (RenderContainer::updatePseudoChild):
  3899. * khtml/rendering/render_object.cpp:
  3900. (RenderObject::createObject):
  3901. * khtml/rendering/render_style.cpp:
  3902. (RenderStyle::contentDataEquivalent):
  3903. * khtml/rendering/render_style.h:
  3904. 2003-07-11 Dave Hyatt <hyatt@apple.com>
  3905. Fix pseudostyles to inherit from the element's style that they are
  3906. specified for. This is incorrect both for ::first-line and
  3907. ::first-letter, but it is at least right for ::before and ::after.
  3908. Fix iframes and objects and embeds so that they will render borders
  3909. when borders are specified (as well as background images).
  3910. Patch iframes so that they correctly let the parent document's
  3911. background show through when the Web page inside the iframe has
  3912. no specified background. Also patched iframes to understand not
  3913. to blit in this case and to not blit when opacity has been specified
  3914. on the iframe.
  3915. Reviewed by darin
  3916. * khtml/css/cssstyleselector.cpp:
  3917. * khtml/khtmlview.h:
  3918. * khtml/rendering/render_box.cpp:
  3919. (RenderBox::paintRootBoxDecorations):
  3920. * khtml/rendering/render_canvas.cpp:
  3921. * khtml/rendering/render_form.cpp:
  3922. (RenderFormElement::setStyle):
  3923. * khtml/rendering/render_replaced.cpp:
  3924. (RenderReplaced::calcMinMaxWidth):
  3925. (RenderWidget::setStyle):
  3926. (RenderWidget::paintObject):
  3927. * kwq/KWQKHTMLPart.mm:
  3928. (KWQKHTMLPart::paint):
  3929. 2003-07-11 Darin Adler <darin@apple.com>
  3930. Reviewed by Ken.
  3931. - roll in change from KHTML to remove user and password from referrer
  3932. * khtml/khtml_part.cpp: (KHTMLPart::begin): Call setUser(""), setPass(""),
  3933. and setRef(""), then also set the referrer to "" if the protocol does not
  3934. start with http.
  3935. * kwq/WebCoreBridge.mm: (-[WebCoreBridge referrer]): Remove check to exclude
  3936. file URL referrers because KHTMLPart now excludes all non-http referrers.
  3937. * kwq/KWQKURL.h: Add setUser and setPass functions. Also sort by order within
  3938. the URL so it's clear no methods are omitted.
  3939. * kwq/KWQKURL.mm:
  3940. (KURL::setUser): Added. Adds or removes the username, adding or removing
  3941. delimiters as needed. For now only the remove part is compiled in.
  3942. (KURL::setPass): Added. Adds or removes a password, adding or removing
  3943. delimiters as needed. For now only the remove part is compiled in.
  3944. * kwq/KWQString.h: Add QSTRING_NULL macro to allow us to work around the fact
  3945. that there is no global QString::null object in KWQ without having to do a
  3946. relatively ineffecient conversion from a non-constant char * of 0 each time.
  3947. We can use this anywhere QString::null appears and perhaps get some small code
  3948. savings or performance boost.
  3949. - small cleanup
  3950. * kwq/KWQTextCodec.mm: (QTextCodec::fromUnicode): Remove unneeded checks that
  3951. repeat optimizations I already put in QString.
  3952. 2003-07-11 Darin Adler <darin@apple.com>
  3953. Reviewed by Dave.
  3954. - added a function Dave needs for various work he's doing that goes
  3955. from a document to the corresponding element in the parent document
  3956. * khtml/xml/dom_docimpl.h: Add ownerElement member function.
  3957. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::ownerElement):
  3958. Added. Gets to the parent part and finds the right element.
  3959. 2003-07-11 Dave Hyatt <hyatt@apple.com>
  3960. An initial implementation of the CSS opacity property. Seems
  3961. to work perfectly except for native widgetry (NSViews). Images,
  3962. text, borders, and underlines are all properly blended.
  3963. Reviewed by rjw
  3964. * config.h:
  3965. * khtml/css/cssparser.cpp:
  3966. (CSSParser::parseValue):
  3967. * khtml/css/cssproperties.c:
  3968. (hash_prop):
  3969. (findProp):
  3970. * khtml/css/cssproperties.h:
  3971. * khtml/css/cssproperties.in:
  3972. * khtml/css/cssstyleselector.cpp:
  3973. * khtml/rendering/render_block.h:
  3974. * khtml/rendering/render_box.cpp:
  3975. (RenderBox::setStyle):
  3976. (RenderBox::adjustZIndex):
  3977. * khtml/rendering/render_box.h:
  3978. * khtml/rendering/render_inline.h:
  3979. * khtml/rendering/render_layer.cpp:
  3980. (RenderLayer::transparentAncestor):
  3981. (RenderLayer::isTransparent):
  3982. (commonTransparentAncestor):
  3983. (RenderLayer::updateTransparentState):
  3984. (RenderLayer::beginTransparencyLayers):
  3985. (RenderLayer::endTransparencyLayers):
  3986. (RenderLayer::paint):
  3987. * khtml/rendering/render_layer.h:
  3988. * khtml/rendering/render_object.h:
  3989. * khtml/rendering/render_style.cpp:
  3990. (StyleVisualData::StyleVisualData):
  3991. (RenderStyle::diff):
  3992. * khtml/rendering/render_style.h:
  3993. * kwq/KWQPainter.h:
  3994. * kwq/KWQPainter.mm:
  3995. (QPainter::beginTransparencyLayer):
  3996. (QPainter::endTransparencyLayer):
  3997. 2003-07-11 Darin Adler <darin@apple.com>
  3998. Reviewed by Chris.
  3999. - fixed 3305391 -- repro crash in QPixmap::QPixmap after click in SVG using Adobe SVG plugin
  4000. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Remove code that tried to determine
  4001. if something is an image by looking at the node type. Instead look at the object in the render
  4002. tree and ask it if it's an image. Also use logic that exactly matches what RenderImage uses.
  4003. * kwq/KWQDOMNode.h: Remove unused isImage function.
  4004. * kwq/KWQDOMNode.cpp: Ditto.
  4005. 2003-07-11 Darin Adler <darin@apple.com>
  4006. Reviewed by Ken.
  4007. - fixed 3300220 -- repro crash in closeURL when choosing from popup menus on www.drivewire.com
  4008. * khtml/xml/dom_nodeimpl.cpp:
  4009. (NodeImpl::dispatchGenericEvent): Removed unused local variable. Since we update all documents,
  4010. there was no longer any need to keep that pointer around, but we still had this obsolete code.
  4011. This had nothing to do with the bug, just a related cleanup.
  4012. (NodeImpl::dispatchWindowEvent): Add check for nil. We ref the document pointer, but we don't
  4013. ref the document itself. So we do need to check for the case where the document went away.
  4014. 2003-07-10 Darin Adler <darin@apple.com>
  4015. Reviewed by Maciej.
  4016. - fixed 3217731 -- after going back to a page, forms are submitted with the wrong encoding (back/forward cache)
  4017. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::openURLFromPageCache): Put decoder from document into the part.
  4018. === Safari-89 ===
  4019. 2003-07-10 Maciej Stachowiak <mjs@apple.com>
  4020. Reviewed by Darin.
  4021. - fixed 3302021 - v74 and v85 hang with http://e-www.motorola.com/
  4022. - fixed a bug with saving and restoring location object properties
  4023. * kwq/KWQKHTMLPart.h:
  4024. * kwq/KWQKHTMLPart.mm:
  4025. (KWQKHTMLPart::saveLocationProperties): Save the location object's properties, not
  4026. the window's (!)
  4027. (KWQKHTMLPart::saveInterpreterBuiltins): New function to save builtin properties of
  4028. the interpeter.
  4029. (KWQKHTMLPart::restoreInterpreterBuiltins): Similarly to restore them.
  4030. (KWQKHTMLPart::openURLFromPageCache): Restore interpreter builtins too.
  4031. * kwq/KWQPageState.h:
  4032. * kwq/KWQPageState.mm:
  4033. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:interpreterBuiltins:]): Handle interpreter builtins.
  4034. (-[KWQPageState invalidate]): Likewise.
  4035. (-[KWQPageState dealloc]): Likewise.
  4036. (-[KWQPageState interpreterBuiltins]): New method.
  4037. * kwq/WebCoreBridge.mm:
  4038. (-[WebCoreBridge saveDocumentToPageCache]): Handle interpeter builtins.
  4039. 2003-07-10 Darin Adler <darin@apple.com>
  4040. Reviewed by Chris.
  4041. * config.h: Check in newly generated version which has changed due to changes
  4042. in configure.in.
  4043. 2003-07-10 Darin Adler <darin@apple.com>
  4044. Reviewed by Chris.
  4045. - fixed 3317693 -- REGRESSION: many web pages are rendering with wrong layout (columns in HelpViewer, etc.)
  4046. This is a workaround for the code generation bug in gcc that causes this problem with
  4047. gcc 3.3 in optimized builds. We can remove it once both we and B&I are using a newer
  4048. gcc with the fix. The bug number for the gcc problem is 3321716.
  4049. * khtml/rendering/render_box.cpp:
  4050. (workAroundBug3321716): Added. A function that does nothing and takes an integer parameter.
  4051. (RenderBox::setStyle): Add a couple of calls to workAroundBug3321716 in the right places.
  4052. 2003-07-09 Richard Williamson <rjw@apple.com>
  4053. Fixed 3141257. Animate multiple copies of the same
  4054. image on the same page.
  4055. Reviewed by hyatt.
  4056. * khtml/rendering/render_replaced.cpp:
  4057. (RenderReplaced::paint):
  4058. * kwq/KWQPixmap.mm:
  4059. (QPixmap::operator=):
  4060. * kwq/WebCoreImageRenderer.h:
  4061. 2003-07-08 Darin Adler <darin@apple.com>
  4062. Reviewed by John.
  4063. - removed Jaguar-specific code
  4064. * kwq/KWQComboBox.mm: Remove fudge factor used to move text down and work
  4065. around problem where pop-up menu text draws too high, bug 3030474.
  4066. * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertUsingTEC): Remove hack used
  4067. to work around the lack of TECSetBasicOptions in Jaguar, bug 3201405.
  4068. * config.h: The people with Foundation source trees slug it out with the people
  4069. without Foundation trees, as one line of this file changes back and forth.
  4070. 2003-07-08 Dave Hyatt <hyatt@apple.com>
  4071. Make sure that the contents width and height of the view are
  4072. used as the root height and width when a view exists. This
  4073. ensures that the root element background properly tiles over
  4074. the entire height of the document. (This used to be ensured
  4075. by growing the height of the <html> element, but that violates
  4076. the CSS2 spec.)
  4077. This fixes bugs 3317809, 3299789, and 3318066.
  4078. Reviewed by john
  4079. * khtml/rendering/render_box.cpp:
  4080. (RenderBox::paintRootBoxDecorations):
  4081. 2003-07-08 Chris Blumenberg <cblu@apple.com>
  4082. * WebCore.pbproj/project.pbxproj: Xcode-ified
  4083. * khtml/html/htmltokenizer.cpp:
  4084. (HTMLTokenizer::parseTag): fulfilled promise to Darin that I would add a comment about using tolower() instead of | 0x20
  4085. 2003-07-08 Chris Blumenberg <cblu@apple.com>
  4086. Fixed: <rdar://problem/3272398>: Safari strips/modifies underscores in EMBED tags
  4087. Reviewed by darin.
  4088. * khtml/html/htmltokenizer.cpp:
  4089. (HTMLTokenizer::parseTag): use tolower() to lowercase a char, don't use | 0x20 because that will cause chars like '_' to turn into junk
  4090. 2003-07-08 Dave Hyatt <hyatt@apple.com>
  4091. Implementation of inline-block and a prototype of the XUL
  4092. box model.
  4093. Fix for min-font size issues that prevented us from having
  4094. a min font size. The primary fix is to store the original
  4095. specified CSS size as a separate value (distinct from the
  4096. computed rendering size). This allows that size to be computed
  4097. without the application of integer rounding or zoom factors
  4098. or minimum font size corrections.
  4099. Fix for table crasher, bug #3296552.
  4100. Reviewed by john (table crasher, inline-block, XUL box model) and
  4101. darin (font size fixes).
  4102. * WebCore.pbproj/project.pbxproj:
  4103. * khtml/css/css_valueimpl.cpp:
  4104. (CSSPrimitiveValueImpl::computeLength):
  4105. (CSSPrimitiveValueImpl::computeLengthFloat):
  4106. * khtml/css/css_valueimpl.h:
  4107. * khtml/css/cssparser.cpp:
  4108. (CSSParser::parseValue):
  4109. * khtml/css/cssproperties.c:
  4110. (hash_prop):
  4111. (findProp):
  4112. * khtml/css/cssproperties.h:
  4113. * khtml/css/cssproperties.in:
  4114. * khtml/css/cssstyleselector.cpp:
  4115. * khtml/css/cssstyleselector.h:
  4116. * khtml/css/cssvalues.c:
  4117. (hash_val):
  4118. (findValue):
  4119. * khtml/css/cssvalues.h:
  4120. * khtml/css/cssvalues.in:
  4121. * khtml/khtml_part.cpp:
  4122. (KHTMLPart::setZoomFactor):
  4123. * khtml/khtmlview.cpp:
  4124. (KHTMLView::print):
  4125. * khtml/rendering/bidi.cpp:
  4126. * khtml/rendering/font.cpp:
  4127. (Font::update):
  4128. * khtml/rendering/font.h:
  4129. * khtml/rendering/render_block.cpp:
  4130. * khtml/rendering/render_block.h:
  4131. * khtml/rendering/render_box.cpp:
  4132. (RenderBox::setStyle):
  4133. (RenderBox::contentHeight):
  4134. (RenderBox::containingBlockWidth):
  4135. (RenderBox::calcWidth):
  4136. (RenderBox::calcHeight):
  4137. * khtml/rendering/render_container.cpp:
  4138. (RenderContainer::addChild):
  4139. * khtml/rendering/render_flexbox.cpp: Added.
  4140. * khtml/rendering/render_flexbox.h: Added.
  4141. * khtml/rendering/render_object.cpp:
  4142. (RenderObject::createObject):
  4143. (RenderObject::sizesToMaxWidth):
  4144. (RenderObject::handleDynamicFloatPositionChange):
  4145. * khtml/rendering/render_object.h:
  4146. * khtml/rendering/render_replaced.cpp:
  4147. (RenderReplaced::paint):
  4148. * khtml/rendering/render_style.cpp:
  4149. (StyleFlexibleBoxData::StyleFlexibleBoxData):
  4150. (StyleFlexibleBoxData::operator==):
  4151. (RenderStyle::RenderStyle):
  4152. (RenderStyle::operator==):
  4153. (RenderStyle::diff):
  4154. * khtml/rendering/render_style.h:
  4155. * khtml/rendering/table_layout.cpp:
  4156. (FixedTableLayout::calcWidthArray):
  4157. * khtml/xml/dom_docimpl.cpp:
  4158. (DocumentImpl::recalcStyle):
  4159. (DocumentImpl::attach):
  4160. 2003-07-07 Maciej Stachowiak <mjs@apple.com>
  4161. Reviewed by John.
  4162. - fixed 3295916 - b/c JavaScriptCore and WebCore are installing in wrong location, private headers are public
  4163. * WebCore.pbproj/project.pbxproj: Install in WebKit.framework/Versions/A/Frameworks.
  4164. === Safari-88 ===
  4165. 2003-07-03 John Sullivan <sullivan@apple.com>
  4166. - fixed 3167770 -- visited and unvisited link colors are too
  4167. close in default stylesheet
  4168. - fixed 3315344 -- default active link color should be red as
  4169. in other browsers
  4170. Reviewed by Hyatt
  4171. * khtml/css/html4.css:
  4172. Changed a:link and a:visited colors to match Mozilla
  4173. (a slightly lighter blue for link, and a purpley shade instead
  4174. of navy for visited). Also changed a:link:active and
  4175. a:visited:active to be red instead of black.
  4176. 2003-07-03 Darin Adler <darin@apple.com>
  4177. Reviewed by Ken.
  4178. * khtml/html/html_formimpl.cpp: (HTMLSelectElementImpl::parseAttribute):
  4179. Remove livepage.apple.com hack since the site has been changed.
  4180. 2003-07-02 Darin Adler <darin@apple.com>
  4181. Rolled out accidentally-checked-in changes.
  4182. * kwq/KWQCharsetData.c:
  4183. * kwq/KWQCharsets.mm:
  4184. * kwq/KWQTextArea.mm:
  4185. * kwq/mac-encodings.txt:
  4186. * kwq/make-charset-table.pl:
  4187. 2003-07-02 Darin Adler <darin@apple.com>
  4188. Reviewed by Ken.
  4189. - fixed 3299715 -- unrepro nil-deref in KHTMLPart::xmlDocImpl handling timer
  4190. * khtml/khtmlview.cpp: (KHTMLView::timerEvent): Add check for nil.
  4191. - fixed clean builds
  4192. * Makefile.am: Delete the config-timestamp.
  4193. - added some other nil checks (perhaps inspired by some other bug reports, I can't remember)
  4194. * khtml/html/html_inlineimpl.cpp: (HTMLAnchorElementImpl::defaultEventHandler):
  4195. Added a check for nil document or nil view.
  4196. * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::dispatchEvent): ref/deref view for safety.
  4197. 2003-07-02 Ken Kocienda <kocienda@apple.com>
  4198. Reviewed by David
  4199. Fix some more build problems with warnings being issued
  4200. when casting and calling methods.
  4201. * kwq/KWQScrollView.mm:
  4202. (QScrollView::addChild):
  4203. (QScrollView::resizeContents):
  4204. (QScrollView::repaintContents):
  4205. 2003-07-01 Ken Kocienda <kocienda@apple.com>
  4206. Reviewed by Darin
  4207. A host of changes to work around a compiler bug which issues
  4208. warnings when making objective-c method calls on objects that have
  4209. been typecast for the purpose of the call.
  4210. * WebCore.pbproj/project.pbxproj:
  4211. * kwq/KWQFileButton.mm:
  4212. (KWQFileButton::setFilename):
  4213. (KWQFileButton::sizeForCharacterWidth):
  4214. (KWQFileButton::frameGeometry):
  4215. (KWQFileButton::setFrameGeometry):
  4216. (KWQFileButton::baselinePosition):
  4217. (KWQFileButton::filenameChanged):
  4218. * kwq/KWQKHTMLPart.mm:
  4219. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  4220. * kwq/KWQLineEdit.mm:
  4221. (QLineEdit::setAlignment):
  4222. * kwq/KWQListBox.mm:
  4223. (QListBox::~QListBox):
  4224. (QListBox::clear):
  4225. (QListBox::setSelectionMode):
  4226. (QListBox::insertItem):
  4227. (QListBox::endBatchInsert):
  4228. (QListBox::setSelected):
  4229. (QListBox::isSelected):
  4230. (QListBox::sizeForNumberOfLines):
  4231. * kwq/KWQTextEdit.mm:
  4232. (QTextEdit::setAlignment):
  4233. * kwq/WebCoreBridge.mm:
  4234. (-[WebCoreBridge elementForView:]):
  4235. (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]):
  4236. (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]):
  4237. * kwq/WebCoreDOMDocument.mm:
  4238. (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
  4239. (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
  4240. (+[WebCoreDOMDocument documentWithImpl:DOM::]):
  4241. (-[WebCoreDOMDocument importNode::]):
  4242. * kwq/WebCoreDOMNode.mm:
  4243. (+[WebCoreDOMNode nodeWithImpl:DOM::]):
  4244. (-[WebCoreDOMNode insert:before:]):
  4245. (-[WebCoreDOMNode replace:child:]):
  4246. (-[WebCoreDOMNode removeChild:]):
  4247. (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
  4248. (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
  4249. (-[WebCoreDOMNamedNodeMap setNamedItem:]):
  4250. (+[WebCoreDOMAttr attrWithImpl:DOM::]):
  4251. (+[WebCoreDOMDocumentFragment documentFragmentWithImpl:DOM::]):
  4252. (+[WebCoreDOMElement elementWithImpl:DOM::]):
  4253. (+[WebCoreDOMEntityReference entityReferenceWithImpl:DOM::]):
  4254. (+[WebCoreDOMCharacterData commentWithImpl:DOM::]):
  4255. (+[WebCoreDOMComment commentWithImpl:DOM::]):
  4256. (+[WebCoreDOMText textWithImpl:DOM::]):
  4257. (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
  4258. (+[WebCoreDOMProcessingInstruction processingInstructionWithImpl:DOM::]):
  4259. 2003-06-30 Chris Blumenberg <cblu@apple.com>
  4260. Fixed: <rdar://problem/3310066>: All images use wrong map if page has image map of name ""
  4261. Reviewed by dave.
  4262. * config.h:
  4263. * khtml/html/html_documentimpl.cpp:
  4264. (HTMLDocumentImpl::getMap): return 0 if getMap is called with a NULL string instead of treating it like an empty string
  4265. 2003-06-30 John Sullivan <sullivan@apple.com>
  4266. - fixed gcc3.3 incompatibility
  4267. Reviewed by Darin
  4268. * kwq/KWQComboBox.mm:
  4269. (QComboBox::updateCurrentItem):
  4270. cast result of getView() in a local variable to work around
  4271. compiler bug where casting in a method call doesn't work (all other
  4272. callers of getView() in this file were already using a local
  4273. variable)
  4274. 2003-06-26 Chris Blumenberg <cblu@apple.com>
  4275. More changes to make WebKit and WebCore compile with gcc 3.3.
  4276. Reviewed by darin.
  4277. * kwq/WebCoreBridge.h:
  4278. 2003-06-26 Chris Blumenberg <cblu@apple.com>
  4279. Made WebCore compile with gcc 3.3.
  4280. Reviewed by darin.
  4281. * config.h:
  4282. * kwq/KWQLineEdit.mm:
  4283. (QLineEdit::selectAll):
  4284. (QLineEdit::setEdited):
  4285. * kwq/KWQString.h:
  4286. * kwq/KWQString.mm:
  4287. === Safari-85.1 ===
  4288. 2003-06-15 Vicki Murley <vicki@apple.com>
  4289. Reviewed by darin.
  4290. * WebCore.pbproj/project.pbxproj: remove SECTORDER_FLAGS variable, so that we don't use order file for our Panther submission
  4291. === Safari-85 ===
  4292. 2003-06-14 Chris Blumenberg <cblu@apple.com>
  4293. Fixed: <rdar://problem/3293367>: REGRESSION (83-84): nil-deref in addMetaData loading page in pop-up at live365.com
  4294. Reviewed by darin.
  4295. * kwq/WebCoreBridge.mm:
  4296. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): only call addMetaData if didOpenURL
  4297. 2003-06-13 Darin Adler <darin@apple.com>
  4298. Reviewed by Don.
  4299. - fixed 3293031 -- REGRESSION (83-84): extra entry in history when going to page that redirects (live365.com)
  4300. * khtml/khtmlpart_p.h: Initialize m_executingJavaScriptFormAction to false.
  4301. We had left it uninitialized when we fixed 3289047.
  4302. 2003-06-13 David Hyatt <hyatt@apple.com>
  4303. Fix for 3292630, misrendered page because of bad doctype. Add
  4304. this bad doctype to our list of quirky doctypes to fix the
  4305. problem, since the screwed up strict mode rendering is actually
  4306. correct.
  4307. Reviewed by john
  4308. * khtml/html/doctypes.cpp:
  4309. (findDoctypeEntry):
  4310. * khtml/html/doctypes.gperf:
  4311. 2003-06-13 Richard Williamson <rjw@apple.com>
  4312. Fixed 3282087. Don't use our <pre> optimizations
  4313. if text contains non-ascii, and consequently may
  4314. result in font substitution.
  4315. Reviewed by Darin.
  4316. * khtml/rendering/render_text.cpp:
  4317. (RenderText::RenderText):
  4318. (RenderText::allAscii):
  4319. (RenderText::shouldUseMonospaceCache):
  4320. * khtml/rendering/render_text.h:
  4321. 2003-06-13 Richard Williamson <rjw@apple.com>
  4322. Fixed 3291537.
  4323. Reviewed by John.
  4324. * kwq/KWQObject.mm:
  4325. (QObject::killTimer):
  4326. Only remove the timer is it hasn't fired (and is therefore valid).
  4327. It is NOT permissible to reference a timer's userInfo if it is invalid.
  4328. === Safari-84 ===
  4329. 2003-06-12 David Hyatt <hyatt@apple.com>
  4330. Fix for 3289113, body.scrollTop doesn't return the right
  4331. value. Fix scrollLeft and scrollTop for body tags to just
  4332. use the view's offset. This matches WinIE behavior.
  4333. Reviewed by john
  4334. * khtml/ecma/kjs_html.cpp:
  4335. (KJS::HTMLElement::getValueProperty):
  4336. (KJS::HTMLElement::putValue):
  4337. * khtml/ecma/kjs_html.h:
  4338. * khtml/ecma/kjs_html.lut.h:
  4339. 2003-06-12 Darin Adler <darin@apple.com>
  4340. Reviewed by John.
  4341. - fixed 3289405 -- repro crash in KWQPopUpButtonCell at umax.de
  4342. * kwq/KWQComboBox.mm: (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
  4343. Use the bridge that we got earlier in the function to find the right part. This is
  4344. simpler, and more reliable. The old way would run into trouble if the widget or
  4345. any of the other objects in the chain got destroyed during the event handling.
  4346. 2003-06-12 Darin Adler <darin@apple.com>
  4347. Fixed by Richard, reviewed by me.
  4348. - fixed 3289047 -- REGRESSION: can't go back after using form at attwireless.com
  4349. * khtml/khtmlpart_p.h: Add an "executing JavaScript form action" flag.
  4350. * kwq/WebCoreBridge.h: Add an "executing JavaScript form action" flag parameter to
  4351. the reportClientRedirectToURL method.
  4352. * khtml/khtml_part.cpp: (KHTMLPart::submitForm): In the JavaScript case, set a
  4353. flag to say we are executing a JavaScript form action.
  4354. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::redirectionTimerStartedOrStopped): Pass the
  4355. isJavaScriptFormAction state over the bridge.
  4356. 2003-06-11 David Hyatt <hyatt@apple.com>
  4357. Fix for 3288875, :after/:before content not getting destroyed
  4358. after printing on alistapart.com. Make the update method for
  4359. pseudos smart enough to destroy generated content when it is
  4360. no longer needed.
  4361. Reviewed by darin
  4362. * khtml/rendering/render_block.cpp:
  4363. (RenderBlock::setStyle);
  4364. * khtml/rendering/render_container.cpp:
  4365. (RenderContainer::updatePseudoChild):
  4366. * khtml/rendering/render_container.h:
  4367. * khtml/rendering/render_inline.cpp:
  4368. (RenderInline::setStyle):
  4369. 2003-06-11 David Hyatt <hyatt@apple.com>
  4370. Fix for 3288035, the wrong value was being filled in for
  4371. textfields. Fixed a bug in QString's assignment operator
  4372. that made empty strings become null strings upon assignment.
  4373. Also ensured that the form control never sets the value to
  4374. null but always uses empty instead.
  4375. Reviewed by john
  4376. * khtml/rendering/render_form.cpp:
  4377. (RenderLineEdit::slotTextChanged):
  4378. * kwq/KWQString.mm:
  4379. (QString::setLatin1):
  4380. 2003-06-10 David Hyatt <hyatt@apple.com>
  4381. Fix for 3287870, the <embed hidden=true> feature didn't work.
  4382. hidden should turn the embed into a plugin with a width and
  4383. height of 0.
  4384. Reviewed by gramps
  4385. * khtml/html/html_objectimpl.cpp:
  4386. (HTMLEmbedElementImpl::HTMLEmbedElementImpl):
  4387. (HTMLEmbedElementImpl::attach):
  4388. 2003-06-10 Darin Adler <darin@apple.com>
  4389. Reviewed by John.
  4390. - fixed 3285820 -- REGRESSION: iframe set up with innerHTML shows up empty (discovered at www.kbs.co.kr)
  4391. * kwq/KWQKHTMLPart.mm: (KHTMLPart::frameDetached): Remove the frame from the parent's
  4392. m_frames list so it's not accidentally reused, since our naming scheme gives frames in
  4393. the same place in the scheme of things the same name.
  4394. 2003-06-10 David Hyatt <hyatt@apple.com>
  4395. Fix for 3270813, crash in the code for the CSS content property.
  4396. When copying a DOMString, I missed a required ref.
  4397. Reviewed by darin
  4398. * khtml/rendering/render_style.cpp:
  4399. (RenderStyle::setContent):
  4400. 2003-06-10 Darin Adler <darin@apple.com>
  4401. Reviewed by John.
  4402. - fixed 3285120 -- crash in CSSParser::parseColor (originally seen with Panther Mail while indexing)
  4403. * khtml/css/parser.y: Moved DIMEN rule out of unary_term, needed because a term production
  4404. assumes that the values that come out of unary_term are all fValue, not string.
  4405. * khtml/css/parser.cpp: Regenerated.
  4406. 2003-06-10 Vicki Murley <vicki@apple.com>
  4407. Reviewed by john.
  4408. * WebCore.order: new order file for 1.0
  4409. 2003-06-10 Darin Adler <darin@apple.com>
  4410. Reviewed by Don.
  4411. - fixed 3286343 -- REGRESSION: crashing on pages with text area elements
  4412. * khtml/rendering/render_form.cpp: (RenderTextArea::detach):
  4413. Do cleanup in detach rather than in destructor.
  4414. * khtml/rendering/render_form.h: Remove destructor, add detach.
  4415. 2003-06-09 Richard Williamson <rjw@apple.com>
  4416. Fixed 3281761.
  4417. This was a real doozie. It boiled down to a frame
  4418. attempting to access a siblings window object when that
  4419. frame wasn't loaded and didn't have a document.
  4420. Reviewed by Dave.
  4421. * khtml/ecma/kjs_window.cpp:
  4422. (Window::get):
  4423. (Window::isSafeScript):
  4424. (FrameArray::get):
  4425. Made the isSafeScript more tolerant. Always allow JS to execute
  4426. if the active domain is nil (local). Also allow JS to execute
  4427. if the target part has no document yet.
  4428. * khtml/khtml_part.cpp:
  4429. (KHTMLPart::init):
  4430. (KHTMLPart::openURL):
  4431. (KHTMLPart::jScript):
  4432. (KHTMLPart::scheduleRedirection):
  4433. (KHTMLPart::findFrame):
  4434. Flag redirects during load so we can later avoid
  4435. cancelling the redirect when the document would otherwise
  4436. normally load.
  4437. * khtml/khtmlpart_p.h:
  4438. * kwq/WebCoreBridge.mm:
  4439. (-[WebCoreBridge addData:]):
  4440. Document may now be nil. Replace assert with conditional check.
  4441. 2003-06-09 John Sullivan <sullivan@apple.com>
  4442. - finished fixing crash in 3275675 -- REGRESSION: crash when replacing <div> which contains iframe (at www.kbs.co.kr)
  4443. Reviewed by Darin
  4444. * khtml/rendering/render_replaced.cpp:
  4445. (RenderWidget::resizeWidget):
  4446. check for nil element() before ref/deref'ing
  4447. 2003-06-09 Darin Adler <darin@apple.com>
  4448. Reviewed by John.
  4449. - first step in fixing 3275675 -- REGRESSION: crash when replacing <div> which contains iframe (at www.kbs.co.kr)
  4450. * khtml/rendering/render_object.h: Made m_node protected, so RenderWidget can zero it out.
  4451. * khtml/rendering/render_replaced.cpp: (RenderWidget::detach): Set m_node to 0 here.
  4452. RenderWidget does this strange thing of staying around after the DOM node is gone, but we need
  4453. to get rid of the dangling pointer to the DOM node.
  4454. * khtml/rendering/render_frames.cpp:
  4455. (RenderFrame::slotViewCleared): Do nothing if element() is 0, since we are on our way out anyway.
  4456. (RenderPartObject::slotViewCleared): Ditto.
  4457. 2003-06-09 John Sullivan <sullivan@apple.com>
  4458. - fixed 3284312 -- repro nil-deref in
  4459. khtml::RenderTable::cellAbove at pi.nersc.gov
  4460. Reviewed by Darin
  4461. * khtml/rendering/render_table.cpp:
  4462. (RenderTable::cellAbove):
  4463. When the section had 0 rows, we were trying to index the -1st
  4464. row. Fixed by falling into the "didn't find anything" case when
  4465. the row we're going to look in is < 0.
  4466. 2003-06-09 Darin Adler <darin@apple.com>
  4467. Reviewed by John.
  4468. - fixed 3277733 -- REGRESSION: \ in JavaScript mishandled when encoding is Japanese (istweb.apple.com)
  4469. This is the third time I've fixed handling of backslash and yen sign. Each time I fixed part
  4470. of the problem but either didn't fix the whole thing or caused a regression. This time I did
  4471. more experiments with other browsers, and I came to the conclusion that all other browsers keep
  4472. the backslash character internally unchanged, and only change to the yen sign when displaying
  4473. rather than decoding to the Unicode "yen sign" character. This makes the backslash character
  4474. different from any other, and requires special code, but it's the only way to match the other
  4475. browsers' behavior. This seems to work great; I retested all the backslash/yen bugs from the
  4476. past to make sure I didn't cause new regressions. The only loose end is the DOM API. It's not
  4477. clear whether the DOM API should return the strings with backslashes or with yen signs, but
  4478. we can probably ship 1.0 without getting that 100% right.
  4479. * kwq/KWQTextCodec.h: Added backslashAsCurrencySymbol() member function.
  4480. * kwq/KWQTextCodec.mm:
  4481. (QTextCodec::fromUnicode): Removed the old workaround for tilde problems, which is not needed
  4482. now that we are back to using "force ASCII" mode, so tildes are always tildes. Updated the comment
  4483. about the backslash hack to better reflect the new situation and change it to use the new
  4484. backslashAsCurrencySymbol() member function.
  4485. (QTextCodec::backslashAsCurrencySymbol): Added. Returns the yen sign for the encodings where
  4486. it's appropriate. Later might do the same thing with the won sign for Korean, depending on what
  4487. we discover as we research bug 3221037 (Korean currency symbol should replace backslash).
  4488. (KWQTextDecoder::convertUsingTEC): Add back the call to TECSetBasicOptions since we once-again
  4489. want to use force-ASCII mode; we turn backslashes into yen signs at a higher level now; internally
  4490. they are kept as backslashes.
  4491. * khtml/xml/dom_docimpl.h: Made setDecoder no longer be inline, and added a decoder member
  4492. function so callers could get the decoder (they need it to figure out what to do with
  4493. backslashes).
  4494. * khtml/xml/dom_docimpl.cpp:
  4495. (DocumentImpl::setDecoder): Made this no longer be an inline. Also made sure it derefs the
  4496. existing decoder. This probably does not happen in practice, but the old version would leak
  4497. if it was ever called twice on the same document.
  4498. * kwq/KWQString.mm: (QString::replace): Made sure that the case of replacing a character
  4499. with the same character has an early out, since that's now the common case with this
  4500. "map backslash to currency character if needed" feature.
  4501. * khtml/xml/dom_stringimpl.h: Made capitalize() const and added a new replace() member function.
  4502. * khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::replace): Implemented this new function
  4503. that replaces one character with another. Returns the existing string if there is no replacing
  4504. to do, otherwise makes a new one.
  4505. * khtml/rendering/render_object.h: Added backslashAsCurrencySymbol() member function.
  4506. * khtml/rendering/render_object.cpp: (RenderObject::backslashAsCurrencySymbol): Added.
  4507. Helper function so render objects have an easier time digging for the "do I need to turn
  4508. the backslashes into currency symbols" flag.
  4509. * kwq/KWQKHTMLPart.h: Added backslashAsCurrencySymbol() member function.
  4510. * kwq/KWQKHTMLPart.mm:
  4511. (KWQKHTMLPart::setTitle): Convert title to use yen sign.
  4512. (KWQKHTMLPart::setStatusBarText): Convert status bar text to use yen sign.
  4513. (KWQKHTMLPart::runJavaScriptAlert): Convert message text to use yen sign.
  4514. (KWQKHTMLPart::runJavaScriptConfirm): Convert message text to use yen sign.
  4515. (KWQKHTMLPart::runJavaScriptPrompt): Convert message text and default value to use yen sign,
  4516. convert result back from yen sign to backslash.
  4517. (KWQKHTMLPart::attributedString): Convert pieces of text to use yen sign when building up
  4518. the attributed text.
  4519. (KWQKHTMLPart::backslashAsCurrencySymbol): Added.
  4520. Helper function so render objects have an easier time digging for the "do I need to turn
  4521. the backslashes into currency symbols" flag.
  4522. * kwq/WebCoreBridge.mm:
  4523. (-[WebCoreBridge selectedString]): Convert text to use yen sign before returning to WebKit.
  4524. (-[WebCoreBridge elementAtPoint:]): Convert title and alt strings to use yen sign before
  4525. returning them to WebKit.
  4526. * khtml/rendering/render_form.cpp:
  4527. (RenderSubmitButton::rawText): Convert button label to use yen sign.
  4528. (RenderLineEdit::updateFromElement): Convert text for line edit to use yen sign.
  4529. (RenderLineEdit::slotTextChanged): Convert yen sign to backslash on the way in from line edit.
  4530. (RenderSelect::updateFromElement): Convert text for select items to use yen sign.
  4531. (RenderTextArea::updateFromElement): Convert text for text areas to use yen sign.
  4532. (RenderTextArea::text): Convert yen sign to backslash on the way in from text area.
  4533. * khtml/rendering/render_image.cpp:
  4534. (RenderImage::paintObject): Convert alt text to use yen sign before drawing it.
  4535. * khtml/rendering/render_text.cpp:
  4536. (RenderText::RenderText): Convert text to use yen sign before drawing it.
  4537. (RenderText::setText): Ditto.
  4538. - fix a problem that was bugging the shit out of me where we kept rebuilding config.h
  4539. * Makefile.am: Use the config-timestamp file to decide when to remake config.h so
  4540. we don't end up making it over and over again. Also don't bother to grep out NO_LICENSE
  4541. any more since that's long gone.
  4542. * .cvsignore: Ignore the config-timestamp file.
  4543. === Safari-83 ===
  4544. 2003-06-09 Darin Adler <darin@apple.com>
  4545. Reviewed by Dave.
  4546. - fixed 3280538 -- JavaScript infinite loop loading frame b/c scrollHeight is always zero (easons.ie)
  4547. * khtml/xml/dom_docimpl.h: Added updateLayout method.
  4548. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::updateLayout): Added. Code moved here
  4549. from KJS::Window::updateLayout so it can be shared. Named this updateLayout() to match
  4550. the name from KJS::Window.
  4551. * khtml/ecma/kjs_window.cpp: (Window::updateLayout): Call updateLayout()
  4552. instead of updateRendering(); the extra logic here was moved into updateLayout().
  4553. * khtml/ecma/kjs_dom.cpp: (DOMNode::getValueProperty): Ditto.
  4554. * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::getValueProperty): Call updateLayout()
  4555. on the document before computing the BodyScrollHeight or BodyScrollWidth, much as
  4556. we already do in kjs_dom.cpp for ScrollHeight and ScrollWidth and other properties.
  4557. 2003-06-05 David Hyatt <hyatt@apple.com>
  4558. Fix for crash on an XHTML frameset page. It was assuming
  4559. that all docs were HTML. The bug # is 3277973.
  4560. Reviewed by john
  4561. * kwq/KWQKHTMLPart.mm:
  4562. (KWQKHTMLPart::updatePolicyBaseURL):
  4563. (KWQKHTMLPart::setPolicyBaseURL):
  4564. 2003-06-05 David Hyatt <hyatt@apple.com>
  4565. Fix for 3281030, stylesheets can't be enabled properly via
  4566. script. Test case from Dirk. The fix is to make the setting
  4567. of the state happen independently of the attribute setting.
  4568. Reviewed by john
  4569. * khtml/dom/html_head.cpp:
  4570. (HTMLLinkElement::setDisabled):
  4571. * khtml/html/html_headimpl.cpp:
  4572. (HTMLLinkElementImpl::setDisabledState):
  4573. (HTMLLinkElementImpl::parseAttribute):
  4574. * khtml/html/html_headimpl.h:
  4575. 2003-06-05 Chris Blumenberg <cblu@apple.com>
  4576. Fixed: <rdar://problem/3268751>: REGRESSION: crash in KWQValueListImpl selecting connection speed at news.com
  4577. Reviewed by darin.
  4578. * kwq/KWQButton.mm:
  4579. (QButton::clicked): Don't call clicked if the button was destroyed inside of sendConsumedMouseUpIfNeeded.
  4580. 2003-06-05 Darin Adler <darin@apple.com>
  4581. Reviewed by John.
  4582. - fixed 3279206 -- REGRESSION: new page does not load after selecting item from list and hitting 'Go' button
  4583. * khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::encoding): Use value() in a couple of places
  4584. that were still directly using m_value.
  4585. 2003-06-05 Darin Adler <darin@apple.com>
  4586. Reviewed by John.
  4587. - fixed 3278079 -- REGRESSION: UTF-8 page claiming to be UTF-16 in XML header gives garbage characters
  4588. * khtml/misc/decoder.cpp: (Decoder::setEncoding): Add EncodingFromXMLHeader as one of the
  4589. types where we know the encoding is an 8-bit one. The reason this is a regression is that we
  4590. used to ignore the encoding in the XML header altogether.
  4591. 2003-06-04 John Sullivan <sullivan@apple.com>
  4592. - fixed 3279957 -- REGRESSION: assertion failure at launch in
  4593. Decoder::~Decoder() importing bookmarks
  4594. Richard actually wrote this fix.
  4595. Reviewed by me, Darin
  4596. * kwq/WebCoreEncodings.mm:
  4597. (+[WebCoreEncodings decodeData:]):
  4598. don't use stack-based decoder; use new instead.
  4599. 2003-06-04 David Hyatt <hyatt@apple.com>
  4600. Fix for 3273300, leaks in cssyyparse. Function forgot to delete
  4601. its args value list when destroyed.
  4602. Reviewed by gramps
  4603. * khtml/css/cssparser.h:
  4604. 2003-06-03 David Hyatt <hyatt@apple.com>
  4605. Fix for 3259647, crash when printing a table page. This is fixed
  4606. on the KDE KHTML trunk. The loop shouldn't be broken out of
  4607. when you have column elements so that all sections can recalc
  4608. their cell grids as needed.
  4609. Reviewed by kocienda
  4610. * khtml/rendering/render_table.cpp:
  4611. (RenderTable::recalcSections):
  4612. === Safari-82 ===
  4613. 2003-06-03 Richard Williamson <rjw@apple.com>
  4614. Fixed 3275565. Ref count the decoder.
  4615. Reviewed by Ken.
  4616. * khtml/khtml_part.cpp:
  4617. (KHTMLPart::clear):
  4618. * khtml/misc/decoder.cpp:
  4619. (Decoder::Decoder):
  4620. (Decoder::~Decoder):
  4621. * khtml/misc/decoder.h:
  4622. * khtml/xml/dom_docimpl.cpp:
  4623. (DocumentImpl::~DocumentImpl):
  4624. * khtml/xml/dom_docimpl.h:
  4625. 2003-06-02 David Hyatt <hyatt@apple.com>
  4626. Fix for 3276099. value() was wrong for radio buttons. Needed
  4627. to get it from the attribute since I was no longer caching
  4628. anything in m_value.
  4629. Reviewed by kocienda
  4630. * khtml/html/html_formimpl.cpp:
  4631. (HTMLInputElementImpl::value):
  4632. 2003-06-02 Ken Kocienda <kocienda@apple.com>
  4633. Code written by darin
  4634. Reviewed by me
  4635. Fix for this bug:
  4636. <rdar://problem/3272162>: repro crash in khtml::CachedImage::checkNotify() on particular page
  4637. * khtml/ecma/kjs_html.cpp:
  4638. (Image::putValue): ref onLoadListener when setting a value to onLoad
  4639. (Image::~Image): deref onLoadListener when destructing the image.
  4640. 2003-06-02 David Hyatt <hyatt@apple.com>
  4641. Fix for 3263679, color: # doesn't parse. Fix is to add an
  4642. error-handling case for # by itself to parser.y.
  4643. Reviewed by gramps/ken
  4644. * khtml/css/parser.cpp:
  4645. * khtml/css/parser.y:
  4646. === Safari-81 ===
  4647. 2003-06-02 Darin Adler <darin@apple.com>
  4648. Reviewed by Ken.
  4649. - fixed 3256787 -- HOMEPAGE:\000 characters being added by Safarin in Form submission,
  4650. causing an exception in property list parsing
  4651. * kwq/KWQTextCodec.mm: (QTextCodec::fromUnicode): Encode \ as 5C instead of 815F
  4652. when encoding Shift-JIS. This should make the Apple Store work again. The only thing
  4653. we lose is the ability to send an actual Shift-JIS backslash (815F), but I think that
  4654. is almost never needed. In other browsers you can't even type a backslash in Shift-JIS.
  4655. 2003-06-02 Ken Kocienda <kocienda@apple.com>
  4656. * config.h:
  4657. 2003-06-02 David Hyatt <hyatt@apple.com>
  4658. Fix for 3275136. Make sure that when the checked attribute
  4659. is set dynamically (something we were ignoring before my previous
  4660. patch) that we also properly update the radio button array in
  4661. the document.
  4662. Reviewed by gramps
  4663. * khtml/html/html_formimpl.cpp:
  4664. (HTMLInputElementImpl::parseAttribute):
  4665. (HTMLInputElementImpl::attach):
  4666. (HTMLInputElementImpl::reset):
  4667. 2003-05-30 Maciej Stachowiak <mjs@apple.com>
  4668. Reviewed by Chris.
  4669. - fixed 3169067 - PEOPLESOFT: left frame missing; frame RenderRoot height and width are both zero
  4670. * khtml/khtml_part.cpp: (KHTMLPart::gotoAnchor): Update layout before scrolling.
  4671. 2003-05-30 Maciej Stachowiak <mjs@apple.com>
  4672. Reviewed by Ken.
  4673. - fixed 3273544 - REGRESSION: Page disappears at http://www.urban-advantage.com/
  4674. * khtml/xml/dom_docimpl.cpp:
  4675. (DocumentImpl::getElementById): Return null when the ID is the
  4676. empty string. Otherwise we'll return the first element in the
  4677. document, usually the top-level HTML element, which is wrong and
  4678. does not match other browsers.
  4679. 2003-05-30 Richard Williamson <rjw@apple.com>
  4680. As part of some cleanup when fixing 3272516 changed use of
  4681. @"" for cache keys to NSString declarations.
  4682. Reviewed by Ken.
  4683. * kwq/WebCoreBridge.mm:
  4684. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
  4685. 2003-05-30 David Hyatt <hyatt@apple.com>
  4686. Fix for 3269129 and 3269220. setAttribute('value') didn't work
  4687. for inputs. Basically defaultValue and defaultChecked have never
  4688. worked. This patch fixes the problem by making sure that for both
  4689. value and checked you have a two-tier system where you look first
  4690. for the value as altered by the control (or by setting the DOM
  4691. property) and if that isn't set then you look at the default value.
  4692. This allows setAttribute (which changes the *default*) to work in
  4693. the cases where the control has not overridden the default
  4694. with a different value.
  4695. * khtml/html/html_formimpl.cpp:
  4696. (HTMLInputElementImpl::HTMLInputElementImpl):
  4697. (HTMLInputElementImpl::state):
  4698. (HTMLInputElementImpl::parseAttribute):
  4699. (HTMLInputElementImpl::attach):
  4700. (HTMLInputElementImpl::reset):
  4701. (HTMLInputElementImpl::setChecked):
  4702. (HTMLInputElementImpl::value):
  4703. (HTMLInputElementImpl::setValue):
  4704. (HTMLInputElementImpl::isCheckedRadioButtonForDocument):
  4705. * khtml/html/html_formimpl.h:
  4706. * khtml/rendering/render_form.cpp:
  4707. (RenderLineEdit::RenderLineEdit):
  4708. (RenderLineEdit::calcMinMaxWidth):
  4709. (RenderLineEdit::updateFromElement):
  4710. (RenderLineEdit::slotTextChanged):
  4711. * khtml/rendering/render_form.h:
  4712. 2003-05-30 Darin Adler <darin@apple.com>
  4713. Reviewed by John.
  4714. - added "sjis" as a synonym for "Shift_JIS"; this might fix 3235161,
  4715. HOMEPAGE: Publishing page with Japanese characters w/ Safari generates an error,
  4716. but I am currently unable to test the fix.
  4717. * kwq/mac-encodings.txt: Added sjis to the Shift_JIS line.
  4718. * kwq/KWQCharsetData.c: Regenerated.
  4719. 2003-05-29 David Hyatt <hyatt@apple.com>
  4720. Fix for 3263156, stack overflow at www.liceo.edu.mx. This
  4721. site nests about 500 bold tags, only closes some of them,
  4722. and then opens 500 more, etc.
  4723. The fix for this problem is to stop honoring tags in the parser
  4724. after you see 20 identical tags. We do this only for fontstyle HTML
  4725. tags.
  4726. Reviewed by john/darin
  4727. * khtml/html/htmlparser.cpp:
  4728. (KHTMLParser::getElement):
  4729. (KHTMLParser::allowNestedRedundantTag):
  4730. * khtml/html/htmlparser.h:
  4731. 2003-05-30 John Sullivan <sullivan@apple.com>
  4732. Reviewed by Chris
  4733. * khtml/rendering/break_lines.cpp:
  4734. Removed #ifdef/#else for which the two sides were identical
  4735. that I noticed in passing.
  4736. 2003-05-29 Maciej Stachowiak <mjs@apple.com>
  4737. Reviewed by Richard.
  4738. - fixed 3270373 - MALLORY: repro crash in +[KWQObjectTimerTarget stopDeferringTimers] while changing folder
  4739. * kwq/KWQObject.mm:
  4740. (QObject::killTimer): Remove the timer from the deferred list too - clients expect that a timer
  4741. will never be delivered after the object was killed.
  4742. (QObject::killTimers): Use killTimer on each timer for this object instead of trying
  4743. to be tricky.
  4744. (-[KWQObjectTimerTarget timerFired]): Don't add a timer to the deferred list more than once,
  4745. because there's no benefit in ganging up multiple firings while deferred, and it makes other
  4746. things simpler.
  4747. (+[KWQObjectTimerTarget stopDeferringTimers]): Make sure to remove the timer before firing it,
  4748. since it may also cancel itself, and we don't want to remove an extra timer in that case.
  4749. 2003-05-29 Richard Williamson <rjw@apple.com>
  4750. Support for the 'estimatedProgress' method on
  4751. WebView. Added bridge access to the number of pending or still
  4752. loading requests (from KHTML's perspective). This is used to
  4753. more accurately guess at the total remaining bytes to load.
  4754. Reviewed by Chris.
  4755. * kwq/KWQLoader.h:
  4756. * kwq/KWQLoader.mm:
  4757. (KWQServeRequest):
  4758. (KWQNumberOfPendingOrLoadingRequests):
  4759. * kwq/WebCoreBridge.h:
  4760. * kwq/WebCoreBridge.mm:
  4761. (-[WebCoreBridge numPendingOrLoadingRequests]):
  4762. 2003-05-29 Ken Kocienda <kocienda@apple.com>
  4763. Reviewed by Maciej
  4764. Fix for this bug:
  4765. <rdar://problem/3271697>: Search fails at travel site
  4766. * khtml/html/html_formimpl.cpp:
  4767. (HTMLFormElementImpl::parseAttribute): Allow form method to be set
  4768. to GET from javascript.
  4769. 2003-05-29 John Sullivan <sullivan@apple.com>
  4770. - fixed MIME type leaks that were most of 3272566
  4771. (several leaks after visiting amazon.com and emptying cache)
  4772. Reviewed by Darin
  4773. * kwq/KWQPixmap.mm:
  4774. (QPixmap::QPixmap):
  4775. (QPixmap::operator=):
  4776. fixed two leaks of MIME string
  4777. 2003-05-29 Darin Adler <darin@apple.com>
  4778. Reviewed by John.
  4779. - fixed 3269564 -- dynamically-created forms look right, but don't post values when submitted
  4780. * khtml/html/html_formimpl.h: Remove useless virtual setParent function.
  4781. Since the inherited setParent is not virtual, it does no good to make the subclass
  4782. override it with a virtual function.
  4783. * khtml/html/html_formimpl.cpp: Remove useless virtual setParent.
  4784. (HTMLGenericFormElementImpl::attach): Add code here, cribbed from setParent, to add
  4785. a new form element to the form it's in.
  4786. (HTMLButtonElementImpl::attach): A copy of the code is also needed here.
  4787. * WebCore.pbproj/project.pbxproj: Let Project Builder be Project Builder.
  4788. 2003-05-28 Maciej Stachowiak <mjs@apple.com>
  4789. Reviewed by Darin.
  4790. - fixed 3263157 - REGRESSION: tabbing into a secure password field shows contents
  4791. * kwq/KWQTextField.mm:
  4792. (-[KWQSecureTextField textDidEndEditing:]): Make sure to restore bullet mode if we
  4793. accidentally lose it.
  4794. 2003-05-27 Maciej Stachowiak <mjs@apple.com>
  4795. Rolled in fix from Safari-80~1-branch
  4796. 2003-05-27 Maciej Stachowiak <mjs@apple.com>
  4797. Reviewed by Darin.
  4798. * WebKit.pbproj/project.pbxproj: Removed no longer needed and harmful flag.
  4799. 2003-05-25 David Hyatt <hyatt@apple.com>
  4800. Fix for 3268589, static position miscomputed when the positioned object is the last item in its enclosing block and when its previous sibling is a text run that ends in a space. In this case we need to clear our trailingSpaceObject so that we don't mist
  4801. akenly ignore the positioned object when building up bidi runs.
  4802. Fix for 3260053, table-layout of inherit not supported. This
  4803. caused a crash. The fix is to just add in the support for the inherit
  4804. value to the style selector.
  4805. Reviewed by john
  4806. * khtml/rendering/bidi.cpp:
  4807. * khtml/css/cssstyleselector.cpp
  4808. 2003-05-26 John Sullivan <sullivan@apple.com>
  4809. - fixed 3262849 -- jump to nil in KWQKHTMLPart::searchForLabelsAboveCell
  4810. at techbargains.com
  4811. Reviewed by Dave
  4812. * kwq/KWQKHTMLPart.mm:
  4813. (KWQKHTMLPart::searchForLabelsAboveCell):
  4814. check for nil result of cellAboveRenderer->element()
  4815. 2003-05-23 David Hyatt <hyatt@apple.com>
  4816. Fix for 3229799, images missing on geocities page. Residual style
  4817. needs to understand when you reopen tags at a malformed table
  4818. content boundary and make sure the newly-reopened tags also know
  4819. they are malformed table content so that they get cleaned up
  4820. properly.
  4821. Reviewed by darin
  4822. * khtml/html/htmlparser.cpp:
  4823. (KHTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  4824. (KHTMLParser::reopenResidualStyleTags):
  4825. (KHTMLParser::popBlock):
  4826. * khtml/html/htmlparser.h:
  4827. 2003-05-22 David Hyatt <hyatt@apple.com>
  4828. Fix for 3248176, failed assertion on blizzard's world of warcraft
  4829. page. They dynamically changed the position of an element from
  4830. absolute to relative, and this element was inside an inline.
  4831. The setStyle() code has to be smart enough to split the inline
  4832. flow when the element is no longer absolute positioned.
  4833. This patch makes a splitFlow occur like it should and it also
  4834. cleans up anonymous block creation with a new helper function
  4835. on RenderObject, createAnonymousBlock.
  4836. Reviewed by darin
  4837. * khtml/rendering/render_block.cpp:
  4838. * khtml/rendering/render_inline.cpp:
  4839. (RenderInline::splitFlow):
  4840. * khtml/rendering/render_object.cpp:
  4841. (RenderObject::createAnonymousBlock):
  4842. (RenderObject::handleDynamicFloatPositionChange):
  4843. (RenderObject::setStyle):
  4844. * khtml/rendering/render_object.h:
  4845. 2003-05-22 David Hyatt <hyatt@apple.com>
  4846. Fix for 3259947. Can't add clippings on iht.com. The fix is
  4847. to make sure all DOM properties that relate to attributes return ""
  4848. and not "null" when the attribute isn't present or when the
  4849. DOMString is null.
  4850. Also patching the code for text-indent to make sure that floats
  4851. don't improperly consume text-indent. This fixes two of the issues
  4852. on diveintomark.
  4853. Reviewed by mjs
  4854. * khtml/ecma/kjs_html.cpp:
  4855. (KJS::HTMLDocument::tryGet):
  4856. (KJS::HTMLElement::getValueProperty):
  4857. 2003-05-22 David Hyatt <hyatt@apple.com>
  4858. Make sure the overflow clip rect clips out the scrollbars
  4859. so that child layers aren't able to draw on top of the
  4860. scrollbars.
  4861. Also fix scrollbars so that they are painted before the
  4862. overflow clip rect is applied (just as backgrounds and borders
  4863. are).
  4864. These two fixes make the divtest example from Yahoo (sent by Mark
  4865. Malone) work.
  4866. Reviewed by john
  4867. * khtml/rendering/render_box.cpp:
  4868. (RenderBox::getOverflowClipRect):
  4869. * khtml/rendering/render_layer.cpp:
  4870. (RenderLayer::paint):
  4871. 2003-05-22 Darin Adler <darin@apple.com>
  4872. Reviewed by John.
  4873. - fixed 3216039 -- calls to m_redirectionTimer.stop() do not always clear m_scheduledRedirection
  4874. * khtml/khtml_part.h: Added cancelRedirection().
  4875. * khtml/khtml_part.cpp:
  4876. (KHTMLPart::~KHTMLPart): Call cancelRedirection() instead of m_redirectionTimer.stop().
  4877. (KHTMLPart::restoreURL): Ditto.
  4878. (KHTMLPart::openURL): Ditto.
  4879. (KHTMLPart::closeURL): Ditto.
  4880. (KHTMLPart::cancelRedirection): Added. Sets m_scheduledRedirection to noRedirectionScheduled
  4881. and calls m_redirectionTimer.stop(), but is also safe to call after d is set to 0.
  4882. (KHTMLPart::restoreState): Call cancelRedirection() instead of m_redirectionTimer.stop().
  4883. * kwq/KWQKHTMLPart.mm:
  4884. (KWQKHTMLPart::openURLFromPageCache): Call cancelRedirection() instead of m_redirectionTimer.stop().
  4885. (KWQKHTMLPart::scrollToAnchor): Call cancelRedirection() instead of m_redirectionTimer.stop()
  4886. (and setting m_scheduledRedirection).
  4887. 2003-05-21 David Hyatt <hyatt@apple.com>
  4888. This patch deals with the main cause of regressions from
  4889. the minimum font size removal. Because we stored font sizes
  4890. as integers, we ended up flooring font sizes, and when percentages
  4891. were nested, the magnitude of error increased dramatically.
  4892. This patch changes FontDef to store a float size instead of an
  4893. integer size. The style system thus always computes a precise
  4894. floating point value for a font, with no error introduced and
  4895. only once it has that final computed value does it round to the
  4896. nearest pixel for the QFont.
  4897. This fixes 3265628, www.anandtech.com.
  4898. Reviewed by rjw
  4899. * khtml/css/css_valueimpl.cpp:
  4900. (CSSPrimitiveValueImpl::computeLengthFloat):
  4901. * khtml/css/cssstyleselector.cpp:
  4902. * khtml/rendering/font.cpp:
  4903. (Font::update):
  4904. * khtml/rendering/font.h:
  4905. * khtml/xml/dom_docimpl.cpp:
  4906. (DocumentImpl::recalcStyle):
  4907. 2003-05-21 David Hyatt <hyatt@apple.com>
  4908. Fix for 3257990, attributes in HTML should always be case-insensitive
  4909. when matching CSS attribute selectors. Instead of relying on
  4910. the strict mode check, I patched the code to use an isXMLDoc
  4911. bool instead.
  4912. Also fixing a problem where <pre>s are mistakenly justifying their
  4913. text when text-align: justify is set.
  4914. Reviewed by kocienda
  4915. * ChangeLog:
  4916. * khtml/css/cssstyleselector.cpp:
  4917. * khtml/css/cssstyleselector.h:
  4918. * khtml/rendering/bidi.cpp:
  4919. 2003-05-21 Vicki Murley <vicki@apple.com>
  4920. Reviewed by john
  4921. - fixed 3234553: Safari and its frameworks should link using order files
  4922. * WebCore.order: Added.
  4923. * WebCore.pbproj/project.pbxproj: set SECTORDER_FLAGS = -sectorder __TEXT __text WebCore.order
  4924. 2003-05-20 David Hyatt <hyatt@apple.com>
  4925. An implementation of fieldset and legend. This is based off
  4926. some KHTML trunk code, but only loosely. I had to rewrite
  4927. most of it in order to make fieldsets work properly with
  4928. padding and in order to match the fieldset style of other
  4929. browsers more closely.
  4930. This code also fixes HTML4 buttons so that they don't fill the
  4931. width of containing blocks. This has been a long-standing
  4932. bug. Since legends behave the same way as buttons and floats,
  4933. I made a new helper function, sizesToMaxWidth(), to denote an
  4934. element that just uses its max intrinsic width when sizing
  4935. instead of filling a containing block.
  4936. This patch also fixes z-index so it properly only applies to the
  4937. root and to positioned/relpositioned elements.
  4938. Reviewed by darin
  4939. * ChangeLog:
  4940. * ForwardingHeaders/rendering/render_block.h: Added.
  4941. * khtml/css/html4.css:
  4942. * khtml/html/html_formimpl.cpp:
  4943. (HTMLFieldSetElementImpl::HTMLFieldSetElementImpl):
  4944. (HTMLFieldSetElementImpl::attach):
  4945. (HTMLFieldSetElementImpl::createRenderer):
  4946. (HTMLLegendElementImpl::HTMLLegendElementImpl):
  4947. (HTMLLegendElementImpl::id):
  4948. (HTMLLegendElementImpl::attach):
  4949. (HTMLLegendElementImpl::createRenderer):
  4950. * khtml/html/html_formimpl.h:
  4951. * khtml/rendering/render_block.cpp:
  4952. * khtml/rendering/render_block.h:
  4953. * khtml/rendering/render_box.cpp:
  4954. (RenderBox::setStyle):
  4955. (RenderBox::calcWidthUsing):
  4956. * khtml/rendering/render_canvas.cpp:
  4957. * khtml/rendering/render_form.cpp:
  4958. (RenderFieldset::RenderFieldset):
  4959. (RenderFieldset::layoutLegend):
  4960. (RenderFieldset::findLegend):
  4961. (RenderFieldset::paintBoxDecorations):
  4962. (RenderFieldset::paintBorderMinusLegend):
  4963. (RenderLegend::RenderLegend):
  4964. * khtml/rendering/render_form.h:
  4965. * khtml/rendering/render_object.cpp:
  4966. (RenderObject::sizesToMaxWidth):
  4967. * khtml/rendering/render_object.h:
  4968. 2003-05-19 David Hyatt <hyatt@apple.com>
  4969. Fix for 3262890, logical font sizes (e.g., large) cannot be applied
  4970. to monospace tags like <pre> and <tt>. The fix adds a notion of
  4971. the current logicalSize in effect for a given FontDef so that
  4972. shifts in family as you go down the style tree result in an
  4973. auto-correction of the size.
  4974. Note that with the addition of this cached logicalSize property,
  4975. it will be possible to eliminate the two separate logical size
  4976. tables and implement the monospace table as a "zoom factor" applied
  4977. to the normal table (an idea long ago suggested by darin).
  4978. Reviewed by darin
  4979. * ChangeLog:
  4980. * khtml/css/cssstyleselector.cpp:
  4981. * khtml/rendering/font.h:
  4982. === Safari-80 ===
  4983. 2003-05-19 Maciej Stachowiak <mjs@apple.com>
  4984. - fixed 3261096 - Make WebKit an umbrella framework
  4985. * WebCore.pbproj/project.pbxproj: In a B&I build, compile as a
  4986. sub-umbrella of WebKit.
  4987. 2003-05-19 Ken Kocienda <kocienda@apple.com>
  4988. Reviewed by Darin
  4989. Fixed build problem with declaring MIMEType as a category
  4990. on NSObject. This method needs to be typed to return NSString.
  4991. * kwq/KWQLoader.mm
  4992. 2003-05-16 Maciej Stachowiak <mjs@apple.com>
  4993. Reviewed by Richard.
  4994. - fixed 3260940 - REGRESSION: reproducible crash freeing page cache item
  4995. - fixed 3241041 - REGRESSION: repro world leak of 1 JavaScript interpreter
  4996. The fix for these problems and probably other page cache wackiness
  4997. was to use a refcounting scheme for KHTMLView instead of counting
  4998. on the previous tricky ownership rules.
  4999. * khtml/khtmlview.cpp:
  5000. (KHTMLView::KHTMLView): Initialize _refCount to 1.
  5001. (KHTMLView::~KHTMLView): Assert that _refCount is 0, to make sure no one is deleting
  5002. views explicitly.
  5003. * khtml/khtmlview.h:
  5004. * khtml/rendering/render_frames.cpp:
  5005. (RenderPart::~RenderPart): If our view is a KHTMLView, deref it.
  5006. (RenderPart::setWidget): If the view is a KHTMLView, tell the superclass not to
  5007. delete it and ref it.
  5008. * khtml/rendering/render_frames.h:
  5009. * khtml/rendering/render_replaced.cpp:
  5010. (RenderWidget::RenderWidget): Initizlize m_deleteWidget to false.
  5011. (RenderWidget::~RenderWidget): Only delete widget if we're supposed to.
  5012. (RenderWidget::setQWidget): Add extra delegeWidget argument that says whether
  5013. to delete this widget when done - defaults to true.
  5014. * khtml/rendering/render_replaced.h:
  5015. * kwq/KWQKHTMLPart.h:
  5016. * kwq/KWQKHTMLPart.mm:
  5017. (KWQKHTMLPart::KWQKHTMLPart): Removed _ownsView boolean -- we'll always hang on
  5018. to a ref to it now.
  5019. (KWQKHTMLPart::~KWQKHTMLPart): Deref the view always instead of deleting it sometimes.
  5020. (KWQKHTMLPart::setView): deref the old view if not null. ref the new view if not null.
  5021. Drop tricky ownership rules.
  5022. (KWQKHTMLPart::openURLFromPageCache): Remove no longer applicable comment about the
  5023. importance of when setView is called.
  5024. * kwq/KWQPageState.mm:
  5025. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]): ref the
  5026. document's view.
  5027. (-[KWQPageState invalidate]): deref the document's view.
  5028. (-[KWQPageState dealloc]): deref the document's view instead of deleting it.
  5029. * kwq/WebCoreBridge.mm:
  5030. (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]): No more need
  5031. to pass weOwnIt argument to setView. Also, deref the view after passing it to the
  5032. KWQKHTMLView -- we own the initial ref since we allocated it.
  5033. (-[WebCoreBridge removeFromFrame]): No more need to pass weOwnIt argument to setView.
  5034. (-[WebCoreBridge installInFrame:]): Ditto.
  5035. 2003-05-16 Maciej Stachowiak <mjs@apple.com>
  5036. Reviewed by Ken.
  5037. - fixed 3256997 - reproducible world leak (of 1 JavaScript interpreter) using google images
  5038. This turned out to be a page cache bug, and nothing to do with
  5039. JavaScript. The part and view were also leaked.
  5040. * kwq/KWQKHTMLPart.mm:
  5041. (KWQKHTMLPart::openURLFromPageCache): Make sure to reset the view
  5042. before resetting the document, so that when we check if the
  5043. document is in the page cache to determine if we can delete the
  5044. old view, we'll be checking the old document instead of the new
  5045. one.
  5046. 2003-05-15 Maciej Stachowiak <mjs@apple.com>
  5047. Reviewed by Richard.
  5048. - fixed 3168588 - Can't click on links at Nike site (Image onload handler problem)
  5049. The fix was to implement the onload property for Image objects
  5050. (which are entirely different from <img> HTML elements).
  5051. * khtml/ecma/kjs_html.cpp:
  5052. (Image::getValueProperty): Implement access to onload attribte.
  5053. (Image::tryPut): Use putValue cause we're gonna use the hashtable now.
  5054. (Image::putValue): Moved guts of tryPut here. Implement setting of
  5055. onload attribute.
  5056. (Image::notifyFinished): Fire onload event if there is a listener.
  5057. (Image::Image): initialize onload listener to null.
  5058. * khtml/ecma/kjs_html.h:
  5059. * khtml/ecma/kjs_html.lut.h: Regenerated.
  5060. === Safari-79 ===
  5061. 2003-05-14 David Hyatt <hyatt@apple.com>
  5062. Fix for 3248193. Floats with layers paint twice. The fix
  5063. is to make sure floats are not painted during the float phase
  5064. if they also have a layer.
  5065. Reviewed by john
  5066. * khtml/rendering/render_block.cpp:
  5067. 2003-05-14 David Hyatt <hyatt@apple.com>
  5068. Fix for 3258389, min-width should take precedence over max-width.
  5069. I just had an "else" that shouldn't have been there, so that
  5070. min-width would get checked even if max-width was also checked.
  5071. Reviewed by kocienda
  5072. * khtml/rendering/render_box.cpp:
  5073. (RenderBox::calcWidth):
  5074. 2003-05-14 Maciej Stachowiak <mjs@apple.com>
  5075. Reviewed by Don.
  5076. - fixed 3257307 - REGRESSION: crash using onFocus="this.blur()"
  5077. * kwq/KWQTextField.mm:
  5078. (-[KWQTextField setHasFocus:]): Don't call
  5079. KWQKHTMLPart::setDocumentFocus(widget) to start with, it might
  5080. invoke a handler which could call blur(), and we don't want to do
  5081. the selection handling after that; futhermore, it will get called
  5082. anyway when we deliver the FocusIn event to the event
  5083. filter. Also, sometimes unfocusing in the middle of a focus can
  5084. leave us and AppKit in an inconsistent state; correct this. A
  5085. comment explains the details.
  5086. 2003-05-13 Maciej Stachowiak <mjs@apple.com>
  5087. Reviewed by John.
  5088. - fixed 3240129 - REGRESSION: www.ezprints.com navigation buttons don't show up (window.addEventListener)
  5089. The problem here was that event handlers set using
  5090. window.addEventListener were set as regular event handlers on the
  5091. document object instead of as window event handlers - and the load
  5092. event does not fire properly that way.
  5093. The fix was to add support for both HTML and non-HTML window event
  5094. handlers. The old window event methods supported only "HTML"
  5095. handlers, but were not named as such.
  5096. * khtml/ecma/kjs_window.cpp:
  5097. (Window::setListener): Use setHTMLWindowEventListener.
  5098. (Window::getListener): Use getHTMLWindowEventListener.
  5099. (WindowFunc::tryCall): use addWindowEventListener and removeWindowEventListener
  5100. on the DocumentImpl instead of addEventListener and removeEventListener on the
  5101. Document.
  5102. * khtml/html/html_baseimpl.cpp:
  5103. (HTMLBodyElementImpl::parseAttribute): Use setHTMLWindowEventListener
  5104. instead of the old setWindowEventListener.
  5105. * khtml/xml/dom_docimpl.cpp:
  5106. (DocumentImpl::defaultEventHandler): Don't stop after the first
  5107. window event handler - keep going, since there might now be more
  5108. than one for the same event.
  5109. (DocumentImpl::setHTMLWindowEventListener): Renamed from setWindowEventListener.
  5110. (DocumentImpl::getHTMLWindowEventListener): Renamed from getWindowEventListener.
  5111. (DocumentImpl::removeHTMLWindowEventListener): Renamed from removeWindowEventListener.
  5112. (DocumentImpl::addWindowEventListener): Implemented - support adding non-HTML window
  5113. event listeners, which, unlike html listeners, are nto exclusive - there may be more
  5114. than one.
  5115. (DocumentImpl::removeWindowEventListener): Implemented.
  5116. (DocumentImpl::hasWindowEventListener): Check if a window has any handler at all
  5117. for a prticular event.
  5118. * khtml/xml/dom_docimpl.h:
  5119. * khtml/xml/dom_nodeimpl.cpp:
  5120. (NodeImpl::addEventListener): Add ref/deref pair to protect against last ref of listener
  5121. going away on remove. Correct comment about the removal.
  5122. * kwq/KWQKHTMLPart.mm:
  5123. (KWQKHTMLPart::canCachePage): Check for an UNLOAD event handler
  5124. using hasWindowEventListener instead of getHTMLWindowEventListener, to
  5125. check for even addListener-style unload handlers.
  5126. 2003-05-13 David Hyatt <hyatt@apple.com>
  5127. Fix for 3222607. divs that specify a fixed width should have
  5128. their minwidths increased to that width. This is an issue
  5129. on diveintomark's list as well as a blocker for Benoit.
  5130. Reviewed by gramps
  5131. * khtml/rendering/render_block.cpp:
  5132. 2003-05-13 David Hyatt <hyatt@apple.com>
  5133. Fix for 3256376, absolute positioned content that had to be
  5134. scrolled into view would not respond to events. This is a
  5135. regression caused by fixing the size of the HTML element.
  5136. I stopped all of the updating of layer widths/heights in
  5137. setLayouted and in setWidth/Height of RenderBox and special-cased
  5138. the sizing of the RenderCanvas layer so that it always encloses
  5139. all content.
  5140. This patch also contains a fix for 3211915, left/top positions
  5141. not computed properly when auto or static. The patch adds
  5142. staticX/Y member variables to RenderBox that holds the cached
  5143. values that can then be used by positioned elements to determine
  5144. their correct positions in the flow. RenderStyles also now
  5145. remember both the original display of an element as well as
  5146. the mutated display (e.g., when an inline becomes a block
  5147. because of absolute positioning).
  5148. Reviewed by darin (canvas fix) and kocienda (left/top fix)
  5149. * khtml/css/cssstyleselector.cpp:
  5150. * khtml/rendering/bidi.cpp:
  5151. * khtml/rendering/render_block.cpp:
  5152. * khtml/rendering/render_box.cpp:
  5153. (RenderBox::RenderBox):
  5154. (RenderBox::position):
  5155. (RenderBox::setStaticX):
  5156. (RenderBox::setStaticY):
  5157. (RenderBox::calcAbsoluteHorizontal):
  5158. (RenderBox::calcAbsoluteVertical):
  5159. * khtml/rendering/render_box.h:
  5160. * khtml/rendering/render_canvas.cpp:
  5161. * khtml/rendering/render_flow.cpp:
  5162. (RenderFlow::createInlineBox):
  5163. * khtml/rendering/render_flow.h:
  5164. * khtml/rendering/render_layer.cpp:
  5165. (RenderLayer::updateLayerPosition):
  5166. * khtml/rendering/render_line.cpp:
  5167. (InlineFlowBox::placeBoxesHorizontally):
  5168. (InlineFlowBox::adjustMaxAscentAndDescent):
  5169. (InlineFlowBox::computeLogicalBoxHeights):
  5170. (InlineFlowBox::placeBoxesVertically):
  5171. (InlineFlowBox::shrinkBoxesWithNoTextChildren):
  5172. * khtml/rendering/render_object.cpp:
  5173. (RenderObject::hasStaticX):
  5174. (RenderObject::hasStaticY):
  5175. (RenderObject::setNeedsLayout):
  5176. (RenderObject::createInlineBox):
  5177. * khtml/rendering/render_object.h:
  5178. * khtml/rendering/render_style.cpp:
  5179. (RenderStyle::diff):
  5180. * khtml/rendering/render_style.h:
  5181. * khtml/rendering/render_text.cpp:
  5182. (RenderText::createInlineBox):
  5183. * khtml/rendering/render_text.h:
  5184. 2003-05-13 Richard Williamson <rjw@apple.com>
  5185. Fixed 3014661. We now display (a lame Lemay) image
  5186. when an image fails to load. We also display the
  5187. alt text if it fits within the image container
  5188. above the missing image icon. Alt text is also
  5189. now shown if image loading is disabled.
  5190. Reviewed by John.
  5191. * khtml/misc/loader.cpp:
  5192. (CachedImage::data):
  5193. (Cache::init):
  5194. * khtml/rendering/render_image.cpp:
  5195. (RenderImage::paintObject):
  5196. (RenderImage::reload):
  5197. * kwq/KWQPixmap.h:
  5198. * kwq/KWQPixmap.mm:
  5199. (KWQLoadPixmap):
  5200. (QPixmap::QPixmap):
  5201. (QPixmap::isNull):
  5202. * kwq/WebCoreImageRenderer.h:
  5203. * kwq/WebCoreImageRendererFactory.h:
  5204. 2003-05-12 Maciej Stachowiak <mjs@apple.com>
  5205. Reviewed by Darin.
  5206. - fixed 3254484 - Add a way to print JavaScript exceptions to the console via the debug menu
  5207. * khtml/ecma/kjs_proxy.cpp:
  5208. (KJSProxyImpl::evaluate): Pass the filename.
  5209. * kwq/WebCoreJavaScript.h:
  5210. * kwq/WebCoreJavaScript.mm:
  5211. (+[WebCoreJavaScript shouldPrintExceptions]): Call through to JavaScriptCore.
  5212. (+[WebCoreJavaScript setShouldPrintExceptions:]): Call through to JavaScriptCore.
  5213. * khtml/ecma/kjs_events.cpp:
  5214. (JSEventListener::handleEvent): Print exception if there is one.
  5215. * khtml/ecma/kjs_window.cpp:
  5216. (ScheduledAction::execute): Print exception in the function case.
  5217. 2003-05-13 Darin Adler <darin@apple.com>
  5218. Reviewed by Ken.
  5219. - fixed 3140822 -- relative URLs starting with query strings clobber path as the RFC says, but web says no
  5220. * kwq/KWQKURL.mm: (KURL::KURL): Add a case for queries (as with anchors) to match
  5221. the behavior of the web (albeit not the RFC).
  5222. 2003-05-13 Darin Adler <darin@apple.com>
  5223. Reviewed by Ken.
  5224. - fixed 3120355 -- importing IE favorites garbles non-ASCII characters (esp. bad for non-Roman languages)
  5225. * kwq/WebCoreEncodings.h: Added decodeData:, removed all other (unused) methods.
  5226. * kwq/WebCoreEncodings.mm: (+[WebCoreEncodings decodeData:]): Added. Calls the same
  5227. decoder used to decode web pages.
  5228. 2003-05-13 Darin Adler <darin@apple.com>
  5229. Reviewed by John.
  5230. - fixed 3228186 -- REGRESSION: crash walking parent tree at housingscc.org in DOM::StyleBaseImpl::stylesheet()
  5231. * khtml/xml/dom_elementimpl.cpp:
  5232. (ElementImpl::~ElementImpl): Unref the stylesheet with the style declaration in it
  5233. when destroying the element.
  5234. (ElementImpl::createDecl): Ref the stylesheet with the style declaration in it when
  5235. making a style element for this. If we don't we could end up with a style declaration
  5236. without a stylesheet, which can't be manipulated by the CSS parser.
  5237. * khtml/html/html_elementimpl.cpp: (HTMLElementImpl::removeCSSProperty): Since this
  5238. function has a side effect of changing the stylesheet for the style declaration, ref
  5239. the new stylesheet and unref the old one.
  5240. 2003-05-12 Richard Williamson <rjw@apple.com>
  5241. Fixed 3194614 and 3194751. We avoid creating and render objects
  5242. and loading any images if the document is in 'renderless' mode.
  5243. Also, we now unique instances of the ObjC DOM wrappers.
  5244. Reviewed by hyatt/darin.
  5245. * khtml/misc/loader.cpp:
  5246. * khtml/xml/dom_docimpl.cpp:
  5247. * khtml/xml/dom_docimpl.h:
  5248. * khtml/xml/dom_nodeimpl.cpp:
  5249. * kwq/KWQLoader.h:
  5250. * kwq/KWQLoader.mm:
  5251. * kwq/WebCoreBridge.h:
  5252. * kwq/WebCoreBridge.mm:
  5253. * kwq/WebCoreDOMNode.mm:
  5254. * kwq/WebDOMNode.h:
  5255. Pass the reported MIME type of an image up to WebKit when
  5256. creating an WebImageRenderer. This is useful to help speed up
  5257. the selection of an appropriate decoder.
  5258. Reviewed by darin.
  5259. * kwq/WebCoreImageRendererFactory.h:
  5260. * kwq/KWQPixmap.h:
  5261. * kwq/KWQPixmap.mm:
  5262. 2003-05-12 Darin Adler <darin@apple.com>
  5263. Reviewed by Richard.
  5264. - fixed 3240925 -- can't select or copy text from readonly INPUT elements
  5265. An AppKit peculiarity. Calling setEditable:NO will have a side effect of
  5266. doing setSelectable:NO unless you explicitly did setSelectable:YES.
  5267. * kwq/KWQLineEdit.mm:
  5268. (QLineEdit::QLineEdit): Call setSelectable:YES.
  5269. * kwq/KWQTextField.mm:
  5270. (-[KWQTextField setPasswordMode:]): When creating the password field, keep
  5271. the setSelectable state synchronized.
  5272. (-[KWQTextField setSelectable:]): If we already have a password field, be
  5273. sure to keep its selectable state the same as the main field.
  5274. 2003-05-12 Darin Adler <darin@apple.com>
  5275. Reviewed by John.
  5276. - fixed 3255281 -- REGRESSION: objc_error in key loop code, closing tab containing aintitcool.com page
  5277. * kwq/KWQTextField.mm:
  5278. (-[KWQSecureTextField nextKeyView]): Change back to using our own nextKeyView
  5279. implementation. By returning the nextKeyView from KWQTextField, we ended up making
  5280. AppKit very upset about the key view loop. This undoes a change I made last
  5281. Thursday, so the regression is very new and was never in a release.
  5282. (-[KWQSecureTextField previousKeyView]): More of the same.
  5283. (-[KWQSecureTextField nextValidKeyView]): Ditto.
  5284. (-[KWQSecureTextField previousValidKeyView]): Ditto.
  5285. 2003-05-11 David Hyatt <hyatt@apple.com>
  5286. The root element (HTML) tries to set itself to the lowest position
  5287. of the canvas, before the canvas has necessarily even determined
  5288. the correct lowest position. This creates a timing problem.
  5289. This code is legacy code anyyway, left over from before KHTML
  5290. understood about overflow. The HTML should not be resizing itself
  5291. to enclose positioned content or floats. They should just spill
  5292. out of the HTML object, so the fix is easy: kill the legacy code.
  5293. There's a second fix required as well, which is to make the canvas
  5294. avoid scanning its positioned objects list when computing its
  5295. lowest and rightmost position. Fixed positioned objects can't
  5296. be scrolled, so it's incorrect to show scrollbars because of
  5297. fixed positioned objects (since they are locked to the viewport).
  5298. Reviewed by darin/gramps
  5299. * khtml/rendering/render_block.cpp:
  5300. 2003-05-11 Darin Adler <darin@apple.com>
  5301. Reviewed by Dave.
  5302. - fixed 3242493 -- loop in khtml::RenderLayer::RenderZTreeNode at google cached copy of epower2go.biz page
  5303. * khtml/rendering/render_layer.cpp: (RenderLayer::RenderZTreeNode::detach):
  5304. Use an iterative algorithm rather than a recursive one to destroy the child
  5305. nodes at each level of the tree, so our recursion is O(depth of tree) rather
  5306. than O(size of tree).
  5307. 2003-05-10 David Hyatt <hyatt@apple.com>
  5308. Fix the misrendering at the top of cnn.com (the extra tearing
  5309. by the Google logo on the front page of cnn).
  5310. I am reducing the intrinsic margins of text fields down to 2px
  5311. to match buttons and selects.
  5312. This is easily sufficient distance to avoid focus ring overlap and
  5313. still looks nice, e.g., on www.google.com and amazon.com.
  5314. Reviewed by mjs
  5315. * khtml/rendering/render_form.h:
  5316. 2003-05-10 David Hyatt <hyatt@apple.com>
  5317. A refinement of our intrinsic margin rules for form controls.
  5318. Rather than always applying the intrinsic margin to form controls,
  5319. this patch makes the application conditional.
  5320. If the Web page explicitly specifies a width on a form control,
  5321. the form control will honor that precise pixel-width and will not
  5322. apply left/right intrinsic margins. If a Web page specifies margins
  5323. that the control should use, then the control will honor those
  5324. margins. The same rules apply for height and top/bottom margins.
  5325. Reviewed by mjs
  5326. * khtml/css/html4.css:
  5327. * khtml/rendering/render_box.cpp:
  5328. (RenderBox::calcReplacedWidth):
  5329. (RenderBox::calcReplacedHeight):
  5330. * khtml/rendering/render_form.cpp:
  5331. (RenderFormElement::addIntrinsicMarginsIfNeeded):
  5332. (RenderFormElement::setStyle):
  5333. * khtml/rendering/render_form.h:
  5334. 2003-05-10 Darin Adler <darin@apple.com>
  5335. Reviewed by Maciej.
  5336. - fixed 3206695 -- Safari puts all of the mailto form content in email subject line, should put content in body
  5337. The bug was caused by our KURL class not parsing the query out of the mailto URL properly.
  5338. * kwq/KWQKURL.h: Removed parameter from prettyURL, unused in KHTML.
  5339. * kwq/KWQKURL.mm:
  5340. (KURL::prettyURL): Removed parameter, unused in KHTML.
  5341. (KURL::parse): Parse queries even from non-hierarchical URLs. This fixes the bug.
  5342. * WebCore-tests.exp: Updated for parameter removed from prettyURL.
  5343. * WebCore-combined.exp: Regenerated.
  5344. 2003-05-09 Darin Adler <darin@apple.com>
  5345. Reviewed by Maciej.
  5346. - fixed 3131026 -- half-width yen character (x5C) shows up as a backslash
  5347. To fix this, I had to reverse our previous decoding approach for the characters
  5348. that are different in Shift-JIS and ASCII. Before, we would decode them as
  5349. ASCII, and so they would be wrong in web pages, but right in URLs. Now, I decode
  5350. them as Shift-JIS, so they are right for web pages. This does not break URLs,
  5351. though, because back in February we added code to re-encode characters for URLs
  5352. to fix bug 3124596. But there is a TEC bug we have to work around to make this
  5353. work right for the tilde character.
  5354. * kwq/KWQTextCodec.mm:
  5355. (QTextCodec::fromUnicode): Work around the TEC bug that prevents the tilde
  5356. character from surviving the round trip through the decoding process by explicitly
  5357. changing decoded tildes back to ASCII tildes.
  5358. (KWQTextDecoder::convertUsingTEC): Do not set kUnicodeForceASCIIRangeMask.
  5359. * kwq/KWQCString.h: Added replace call for use by new code. Some other
  5360. small improvements.
  5361. * kwq/KWQCString.mm:
  5362. (QCString::contains): Make this faster by not doing the case-insensitive
  5363. and case-sensitive cases both in the same loop.
  5364. (QCString::append): Changed the += calls to this name, and made the
  5365. += operator override call these.
  5366. (QCString::replace): Added.
  5367. * WebCore-tests.exp: Changed to export append calls.
  5368. * WebCore-combined.exp: Regenerated.
  5369. 2003-05-09 David Hyatt <hyatt@apple.com>
  5370. Finally get tables cutting the right properties off and letting
  5371. the right ones through in quirks mode. Font-family *is* inherited
  5372. through into tables in all other browsers. We have been doing this
  5373. wrong the whole time. Also ensure that font-style and font-variant
  5374. are reset.
  5375. Reviewed by darin
  5376. * khtml/css/quirks.css:
  5377. 2003-05-09 David Hyatt <hyatt@apple.com>
  5378. Always allow KONQ_TEXT as a valid value, and don't restrict its
  5379. use to lax CSS parsing. (We want our UA sheets to be parsed
  5380. strictly.)
  5381. Fixes bug 3224791, color inheritance not being properly cut off
  5382. in tables in quirks mode.
  5383. Reviewed by mjs and darin
  5384. * khtml/css/cssparser.cpp:
  5385. (CSSParser::parseValue):
  5386. 2003-05-09 David Hyatt <hyatt@apple.com>
  5387. Fix for 3253695, XML pages with <style>@import...</style> don't
  5388. render. The XML tokenizer is getting text in small chunks, and
  5389. so it tries to load the sheet multiple times. This fix patches
  5390. the stylesheet code to properly decrement the loading sheet
  5391. count when you abort a still-loading @import.
  5392. Reviewed by darin
  5393. * khtml/html/html_headimpl.cpp:
  5394. (HTMLStyleElementImpl::childrenChanged):
  5395. 2003-05-09 Darin Adler <darin@apple.com>
  5396. Reviewed by John.
  5397. - fixed 3191943 -- XML parsing error occurs when loading shift-JIS Japanese XML file
  5398. * khtml/misc/decoder.h: Add a new type of encoding, EncodingFromXMLHeader.
  5399. * khtml/misc/decoder.cpp:
  5400. (findXMLEncoding): Added.
  5401. (Decoder::decode): Call findXMLEncoding to extract the encoding from the XML header.
  5402. 2003-05-08 Darin Adler <darin@apple.com>
  5403. Reviewed by John and Ken.
  5404. - fixed 3253461 -- stylesheet-reading code does not support BOM
  5405. - fixed 3253359 -- XML parser does not allow UTF-8 BOM
  5406. * kwq/KWQTextCodec.mm:
  5407. (KWQTextDecoder::KWQTextDecoder): Initialize the new _littleEndian, _atStart,
  5408. and _numBufferedBytes fields, not the old _flags, _state, and _haveBufferedByte fields.
  5409. (KWQTextDecoder::convertUTF16): Moved the BOM-based endianness detection out of here;
  5410. now done in toUnicode. Switched to use the new multibyte buffer, even though we only
  5411. need one byte of it. Remove any BOM characters encountered within the text.
  5412. (KWQTextDecoder::convertUsingTEC): Remove any BOM characters encountered within the text.
  5413. (KWQTextDecoder::toUnicode): Do all the BOM detection at this level, including the
  5414. UTF-8 BOM as well as the UTF-16 BOM.
  5415. * khtml/misc/decoder.cpp: (Decoder::decode): Don't bother stripping the UTF-8 BOM.
  5416. The QTextCodec object handles that now.
  5417. * kwq/KWQXmlSimpleReader.mm: (QXmlSimpleReader::parse): Pass in the data in 16-bit character
  5418. form, and specify the encoding when creating the parser. Both expat and KHTML
  5419. want to do the decoding, so this is really just a way to get expat to back off.
  5420. 2003-05-08 David Hyatt <hyatt@apple.com>
  5421. Fix the definition of isRoot() so that it doesn't depend on
  5422. the object being in the render tree yet (and to avoid any
  5423. virtual function calls as well).
  5424. Make sure that requiresLayer() returns true if the object is
  5425. the root. This way the layer isn't destroyed when you e.g.,
  5426. hit Cmd+ to increase font size.
  5427. This fixes bug 3252496.
  5428. Reviewed by rjw
  5429. * khtml/rendering/render_block.cpp:
  5430. * khtml/rendering/render_box.cpp:
  5431. (RenderBox::setStyle):
  5432. * khtml/rendering/render_object.cpp:
  5433. (RenderObject::isRoot):
  5434. * khtml/rendering/render_object.h:
  5435. * khtml/xml/dom_elementimpl.cpp:
  5436. (ElementImpl::createRenderer):
  5437. 2003-05-08 David Hyatt <hyatt@apple.com>
  5438. Background-position-x and y should be length|percentage. Number
  5439. is not a valid option. Need to remove this so that the quirk will
  5440. kick in that translates numbers to pixels. Fixes an issue on
  5441. diveintomark's list.
  5442. Reviewed by darin
  5443. * khtml/css/cssparser.cpp:
  5444. (CSSParser::parseValue):
  5445. 2003-05-08 Darin Adler <darin@apple.com>
  5446. Reviewed by Dave.
  5447. - fixed part of the cause of 3251979 -- switching tabs hoses page layout
  5448. * kwq/WebCoreSettings.mm: (-[WebCoreSettings _updateAllViews]): Only update views that are
  5449. using this settings object. The old way would result in re-laying out all views every time
  5450. you created a new one.
  5451. 2003-05-08 Darin Adler <darin@apple.com>
  5452. Reviewed by Dave.
  5453. - fixed regression caused by my last check-in; need to use the KHTMLView layout function
  5454. * kwq/KWQWidget.mm: (QWidget::setFocus): Use KHTMLView's layout instead of RenderCanvas's.
  5455. - fixed 3251913 -- when form field has focus, dragging across text elsewhere does not select it
  5456. * khtml/xml/dom_docimpl.cpp:
  5457. (DocumentImpl::setSelection): Remove setFocusNode(0) call. Apparently not needed these days.
  5458. I tested and everything works fine without it, and its side effect was the bug above.
  5459. (DocumentImpl::setFocusNode): Remove clearSelection() call for similar reasons.
  5460. 2003-05-08 Darin Adler <darin@apple.com>
  5461. Reviewed by Maciej.
  5462. - fixed 3251985 -- REGRESSION: tabbing doesn't scroll text fields into view any more
  5463. * kwq/KWQTextField.h: Add a _hasFocus field, which prevents us from focusing
  5464. multiple times.
  5465. * kwq/KWQTextField.mm:
  5466. (+[KWQTextField initialize]): Set KWQTextFieldCell as the cell class. We need a cell
  5467. subclass to detect when editing begins.
  5468. (-[KWQTextField setPasswordMode:]): Don't pass a QLineEdit to the secure text field
  5469. when creating it. It's no longer needed.
  5470. (-[KWQTextField controlTextDidEndEditing:]): Call setHasFocus:NO, and do the actual
  5471. work in there.
  5472. (-[KWQTextField control:textShouldBeginEditing:]): Remove the work that was done in
  5473. here. This is only called when you actually start typing, so it's too late.
  5474. (-[KWQTextField becomeFirstResponder]): Keep the code to forward first responder to
  5475. the password field, but get rid of the rest, because this code path does not cover
  5476. all the ways to start editing.
  5477. (-[KWQTextField currentEditorForEitherField]): Moved this method inside the
  5478. KWQInternal category.
  5479. (-[KWQTextField selectedRange]): Ditto.
  5480. (-[KWQTextField setSelectedRange:]): Ditto.
  5481. (-[KWQTextField setHasFocus:]): Added. This method does all the work we want to do
  5482. when we get focus and when we relinquish focus, including scrolling to make the field
  5483. visible.
  5484. (-[KWQTextFieldCell editWithFrame:inView:editor:delegate:event:]):
  5485. Call setHasFocus:YES on the KWQTextField.
  5486. (-[KWQTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]): Ditto.
  5487. (+[KWQSecureTextField cellClass]): Use KWQSecureTextFieldCell as the cell class.
  5488. We need a cell subclass to detect when editing begins and we can't use the normal
  5489. technique because NSSecureTextField will raise an exception.
  5490. (-[KWQSecureTextField nextKeyView]): Simplified to just call through to KWQTextField.
  5491. (-[KWQSecureTextField previousKeyView]): Ditto.
  5492. (-[KWQSecureTextField nextValidKeyView]): Ditto.
  5493. (-[KWQSecureTextField previousValidKeyView]): Ditto.
  5494. (-[KWQSecureTextField widget]): Ditto.
  5495. (-[KWQSecureTextField fieldEditorDidMouseDown:]): Ditto.
  5496. (-[KWQSecureTextFieldCell editWithFrame:inView:editor:delegate:event:]):
  5497. Call setHasFocus:YES on the KWQTextField.
  5498. (-[KWQSecureTextFieldCell selectWithFrame:inView:editor:delegate:start:length:]): Ditto.
  5499. * kwq/KWQWidget.mm: (QWidget::setFocus): Do a layout before positioning the widget.
  5500. The code dealt with calls after a layout and before a draw, before, but not calls
  5501. before a layout.
  5502. 2003-05-08 David Hyatt <hyatt@apple.com>
  5503. Fix for a problem where positioned/floating children with
  5504. percentage width tables inside them don't expand to fill
  5505. the width of their containing block.
  5506. The way to solve this is to detect this
  5507. case and treat the block as though it has an infinite maxwidth.
  5508. Note that this is a quirk only, since doing this for real would
  5509. be crazy. We're basically just matching broken WinIE behavior.
  5510. Reviewed by kocienda
  5511. * khtml/rendering/render_block.cpp:
  5512. === Safari-78 ===
  5513. 2003-05-08 Darin Adler <darin@apple.com>
  5514. Reviewed by Ken.
  5515. - fixed 3174769 -- Safari doesn't ignore byte order mark at start of UTF-8 HTML document
  5516. * khtml/misc/decoder.cpp: (Decoder::decode): Added handling of the UTF-8 BOM
  5517. to the code that already handled the UTF-16 BOM.
  5518. 2003-05-06 David Hyatt <hyatt@apple.com>
  5519. The purpose of this patch is to unify XML and HTML documents' root
  5520. element handling. Instead of having a special RenderHTML object
  5521. for dealing with <html>, root element handling is now done in
  5522. base classes so that it works with XML documents as well.
  5523. The changes include:
  5524. * Rename RenderRoot to RenderCanvas to more accurately
  5525. reflect what this RenderObject represents in CSS2.
  5526. * Rename root() to canvas()
  5527. * Rename isHtml() to isRoot()
  5528. * Rename isRoot() to isCanvas().
  5529. * Eliminate RenderHTML and fold its functionality into base
  5530. classes (RenderBlock and RenderBox).
  5531. * isRoot() now means "are you the RenderObject for the root
  5532. element". All isHtml() callers now say isRoot() instead.
  5533. Reviewed by gramps
  5534. * ForwardingHeaders/rendering/render_canvas.h: Added.
  5535. * ForwardingHeaders/rendering/render_html.h: Removed.
  5536. * ForwardingHeaders/rendering/render_root.h: Removed.
  5537. * WebCore.pbproj/project.pbxproj:
  5538. * khtml/ecma/kjs_dom.cpp:
  5539. * khtml/ecma/kjs_window.cpp:
  5540. * khtml/html/html_baseimpl.cpp:
  5541. (HTMLHtmlElementImpl::id):
  5542. * khtml/html/html_baseimpl.h:
  5543. * khtml/khtmlview.cpp:
  5544. (KHTMLView::layout):
  5545. (KHTMLView::print):
  5546. (KHTMLView::slotPaletteChanged):
  5547. (KHTMLView::paint):
  5548. (KHTMLView::timerEvent):
  5549. * khtml/khtmlview.h:
  5550. * khtml/rendering/render_applet.cpp:
  5551. * khtml/rendering/render_block.cpp:
  5552. * khtml/rendering/render_block.h:
  5553. * khtml/rendering/render_body.cpp:
  5554. * khtml/rendering/render_box.cpp:
  5555. (RenderBox::setStyle):
  5556. (RenderBox::paintRootBoxDecorations):
  5557. (RenderBox::paintBoxDecorations):
  5558. (RenderBox::paintBackgroundExtended):
  5559. (RenderBox::containingBlockWidth):
  5560. (RenderBox::repaint):
  5561. (RenderBox::calcHeight):
  5562. (RenderBox::availableHeight):
  5563. (RenderBox::calcAbsoluteVertical):
  5564. * khtml/rendering/render_box.h:
  5565. * khtml/rendering/render_canvas.cpp: Added.
  5566. (RenderCanvas::RenderCanvas):
  5567. (RenderCanvas::~RenderCanvas):
  5568. (RenderCanvas::calcHeight):
  5569. (RenderCanvas::calcWidth):
  5570. (RenderCanvas::calcMinMaxWidth):
  5571. * khtml/rendering/render_canvas.h: Added.
  5572. * khtml/rendering/render_container.cpp:
  5573. (RenderContainer::removeChildNode):
  5574. * khtml/rendering/render_flow.cpp:
  5575. * khtml/rendering/render_frames.cpp:
  5576. (RenderFrameSet::layout):
  5577. (RenderFrameSet::userResize):
  5578. * khtml/rendering/render_html.cpp: Removed.
  5579. * khtml/rendering/render_html.h: Removed.
  5580. * khtml/rendering/render_image.cpp:
  5581. (RenderImage::paintObject):
  5582. * khtml/rendering/render_layer.cpp:
  5583. (RenderLayer::enclosingPositionedAncestor):
  5584. (RenderLayer::convertToLayerCoords):
  5585. (RenderLayer::constructZTree):
  5586. * khtml/rendering/render_layer.h:
  5587. * khtml/rendering/render_line.cpp:
  5588. * khtml/rendering/render_list.cpp:
  5589. (RenderListMarker::paintObject):
  5590. * khtml/rendering/render_object.cpp:
  5591. (RenderObject::containingBlock):
  5592. (RenderObject::canvas):
  5593. (RenderObject::container):
  5594. (RenderObject::removeFromObjectLists):
  5595. (RenderObject::detach):
  5596. (RenderObject::nodeAtPoint):
  5597. (RenderObject::scheduleRelayout):
  5598. * khtml/rendering/render_object.h:
  5599. * khtml/rendering/render_replaced.cpp:
  5600. * khtml/rendering/render_root.cpp: Removed.
  5601. * khtml/rendering/render_root.h: Removed.
  5602. * khtml/rendering/render_table.cpp:
  5603. (RenderTable::layout):
  5604. * khtml/rendering/render_text.cpp:
  5605. (RenderText::paintObject):
  5606. * khtml/rendering/table_layout.cpp:
  5607. (shouldScaleColumns):
  5608. * khtml/xml/dom_docimpl.cpp:
  5609. (DocumentImpl::attach):
  5610. (DocumentImpl::setSelection):
  5611. (DocumentImpl::clearSelection):
  5612. (DocumentImpl::prepareMouseEvent):
  5613. * khtml/xml/dom_elementimpl.cpp:
  5614. (ElementImpl::createRenderer):
  5615. * khtml/xml/dom_nodeimpl.cpp:
  5616. (NodeImpl::rendererIsNeeded):
  5617. * kwq/KWQKHTMLPart.mm:
  5618. (KWQKHTMLPart::adjustPageHeight):
  5619. (KWQKHTMLPart::forceLayoutForPageWidth):
  5620. (KWQKHTMLPart::selectionRect):
  5621. * kwq/WebCoreBridge.mm:
  5622. (-[WebCoreBridge _setupRootForPrinting:]):
  5623. 2003-05-07 Darin Adler <darin@apple.com>
  5624. Reviewed by John.
  5625. - fixed 3127927 -- web view should not use primary selection color when it's not first responder
  5626. * kwq/WebCoreBridge.h: Added usesInactiveTextBackgroundColor getter and setter.
  5627. * kwq/WebCoreBridge.mm:
  5628. (-[WebCoreBridge drawRect:]): Set the QPainter's usesInactiveTextBackgroundColor to match the
  5629. value from the part.
  5630. (-[WebCoreBridge selectionRect]): Fix nil-deref that happened in the no-KHTMLView case.
  5631. (-[WebCoreBridge setUsesInactiveTextBackgroundColor:]): Added.
  5632. (-[WebCoreBridge usesInactiveTextBackgroundColor]): Added.
  5633. * kwq/KWQKHTMLPart.h: Added usesInactiveTextBackgroundColor, including getter and setter.
  5634. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::KWQKHTMLPart): Initialize usesInactiveTextBackgroundColor.
  5635. * kwq/KWQPainter.h: Added setUsesInactiveTextBackgroundColor and made selectedTextBackgroundColor
  5636. a const member function, not a static one.
  5637. * kwq/KWQPainter.mm:
  5638. (QPainter::QPainter): Initialize _usesInactiveTextBackgroundColor to false.
  5639. (QPainter::selectedTextBackgroundColor): Return secondarySelectedControlColor instead of
  5640. selectedTextBackgroundColor if _usesInactiveTextBackgroundColor is true.
  5641. * khtml/rendering/render_text.cpp: (TextRun::paintSelection): Call selectedTextBackgroundColor
  5642. on the painter object; it's no longer a static member function.
  5643. * khtml/rendering/render_root.cpp: (RenderRoot::selectionRect): Fix nil-deref that happened
  5644. in the no-selection case.
  5645. 2003-05-07 Vicki Murley <vicki@apple.com>
  5646. Reviewed by darin.
  5647. - modify the Mixed build style to build optimized with symbols
  5648. * WebCore.pbproj/project.pbxproj: removed OPTIMIZATION_CFLAGS, use WebCore.exp
  5649. 2003-05-07 Darin Adler <darin@apple.com>
  5650. Reviewed by Ken.
  5651. - fixed 3109258 -- Unicode above U+FFFF not handled correctly when expressed as numeric entities
  5652. * khtml/html/htmltokenizer.cpp: (HTMLTokenizer::parseEntity): Keep track of the entity in
  5653. an unsigned integer that can hold 32 bits rather than a QChar. Convert to a pair of Unicode
  5654. surrogate code points if necessary.
  5655. * khtml/misc/stringit.h: Add a second pushed character, used for the case where we have a pair of
  5656. surrogate characters for a single numeric entity.
  5657. * khtml/html/htmltokenizer.h: Add missing DOM:: that was compiling only due to "using namespace DOM"
  5658. in stringit.h. Replace EntityChar with EntityUnicodeValue.
  5659. 2003-05-06 Darin Adler <darin@apple.com>
  5660. Reviewed by Chris.
  5661. - fixed 3211756 -- form field contents on the left instead of right on page in RtL language
  5662. * khtml/rendering/render_form.cpp:
  5663. (RenderLineEdit::updateFromElement): Call setAlignment based on the style's direction.
  5664. (RenderTextArea::updateFromElement): Ditto.
  5665. * kwq/KWQLineEdit.h: Added setAlignment.
  5666. * kwq/KWQLineEdit.mm: (QLineEdit::setAlignment): Added. Calls setAlignment on KWQTextField.
  5667. * kwq/KWQTextArea.h: Added setAlignment.
  5668. * kwq/KWQTextArea.mm: (-[KWQTextArea setAlignment:]): Added. Calls setAlignment on NSTextView.
  5669. * kwq/KWQTextEdit.h: Added setAlignment.
  5670. * kwq/KWQTextEdit.mm: (QTextEdit::setAlignment): Added. Calls setAlignment on KWQTextField.
  5671. * kwq/KWQTextField.mm: (-[KWQTextField setAlignment:]): Added. Call setAlignment on secure
  5672. text field too.
  5673. - fixed 3250538 -- on pages labeled "US-ASCII", non-ASCII chars are not decoded as Latin-1
  5674. as in other browsers
  5675. * kwq/KWQTextCodec.mm:
  5676. (effectiveEncoding): Added. Maps ISO Latin-1 and US-ASCII to Windows Latin-1.
  5677. (QTextCodec::fromUnicode): Use effectiveEncoding.
  5678. (KWQTextDecoder::convertUsingTEC): Use effectiveEncoding.
  5679. - other changes
  5680. * kwq/KWQCharsets.mm: (buildDictionaries): Make the first encoding in the file win for
  5681. purposes of deciding which name is used. I thought this was happening before, but actually
  5682. the last one was winning. Do this by using CFDictionaryAddValue, which does nothing if
  5683. there's already a dictionary entry, instead of CFDictionarySetValue, which replaces.
  5684. 2003-05-06 David Hyatt <hyatt@apple.com>
  5685. Make negative z-index content paint above the background of
  5686. the stacking context element that encloses it. This fixes
  5687. gettyimages.com and hotwired.com.
  5688. Reviewed by kocienda
  5689. * khtml/css/html4.css:
  5690. * khtml/rendering/render_block.cpp:
  5691. * khtml/rendering/render_inline.cpp:
  5692. (RenderInline::paintObject):
  5693. * khtml/rendering/render_layer.cpp:
  5694. (RenderLayer::paint):
  5695. (RenderLayer::nodeAtPoint):
  5696. (RenderLayer::RenderZTreeNode::constructLayerList):
  5697. * khtml/rendering/render_layer.h:
  5698. * khtml/rendering/render_object.h:
  5699. * khtml/rendering/render_root.cpp:
  5700. * khtml/rendering/render_table.cpp:
  5701. (RenderTable::paint):
  5702. * kwq/KWQRenderTreeDebug.cpp:
  5703. (write):
  5704. 2003-05-06 Maciej Stachowiak <mjs@apple.com>
  5705. Reviewed by Darin.
  5706. - fixed 3245048 - "Block Pop-Up Windows" can easily be bypassed using javascript: URLs
  5707. Closed the loophole by tracking what client redirects were
  5708. triggered by user actions, and making sure the script interpreter
  5709. knows.
  5710. * khtml/ecma/kjs_window.cpp:
  5711. (Window::put):
  5712. (WindowFunc::tryCall):
  5713. (Location::put):
  5714. (LocationFunc::tryCall):
  5715. * khtml/khtml_part.cpp:
  5716. (KHTMLPart::executeScript):
  5717. (KHTMLPart::clear):
  5718. (KHTMLPart::scheduleRedirection):
  5719. (KHTMLPart::slotRedirect):
  5720. (KHTMLPart::urlSelected):
  5721. * khtml/khtml_part.h:
  5722. * khtml/khtmlpart_p.h:
  5723. * kwq/WebCoreBridge.mm:
  5724. (-[WebCoreBridge stringByEvaluatingJavaScriptFromString:]):
  5725. 2003-05-06 Darin Adler <darin@apple.com>
  5726. Reviewed by Ken.
  5727. - used ObjectAlloc to find large numbers of allocations on startup and get rid of some
  5728. * kwq/KWQColor.mm: (QColor::getNSColor): Keep a cache of 32 colors instead of returning a new
  5729. one each time. Also use special cases for black and white.
  5730. 2003-05-05 Maciej Stachowiak <mjs@apple.com>
  5731. Reviewed by Dave.
  5732. - fixed 3241065 - popcap.com doesn't work in Safari, window.scrollBy fails to work in onLoad
  5733. Make sure to do a layout before accessing any window properties or
  5734. calling any window functions that require a layout to work
  5735. properly.
  5736. * khtml/ecma/kjs_window.cpp:
  5737. (Window::get):
  5738. (WindowFunc::tryCall):
  5739. (Window::updateLayout):
  5740. * khtml/ecma/kjs_window.h:
  5741. 2003-05-05 David Hyatt <hyatt@apple.com>
  5742. Fix for 3247722. Make sure the grammar accepts properties with
  5743. no values as declarations (albeit bad ones).
  5744. Reviewed by darin
  5745. * khtml/css/parser.cpp:
  5746. * khtml/css/parser.y:
  5747. 2003-05-05 David Hyatt <hyatt@apple.com>
  5748. Fix for 3248587. Refine the crash fix for generated image
  5749. content so that we still set the image's intrinsic width
  5750. and height properly.
  5751. Reviewed by john
  5752. * khtml/rendering/render_image.cpp:
  5753. (RenderImage::setPixmap):
  5754. 2003-05-04 David Hyatt <hyatt@apple.com>
  5755. When using the content property in CSS, you can string together
  5756. an intermixed list of strings and image URLs. The old code
  5757. only supported a single image URL, and if you tried to mix
  5758. text in with images, you ended up crashing.
  5759. The crash bug is 3248172. The fix is to maintain a list of
  5760. ContentData objects instead of just a single object and to
  5761. ensure that a whole list of generated content gets made (and
  5762. not just a single RenderObject).
  5763. Reviewed by john
  5764. * khtml/css/cssstyleselector.cpp:
  5765. (applyRule)
  5766. * khtml/rendering/render_container.cpp:
  5767. (RenderContainer::insertPseudoChild):
  5768. * khtml/rendering/render_image.cpp:
  5769. (RenderImage::setStyle):
  5770. (RenderImage::setContentObject):
  5771. (RenderImage::updateFromElement):
  5772. * khtml/rendering/render_image.h:
  5773. * khtml/rendering/render_style.cpp:
  5774. (RenderStyle::setContent):
  5775. (ContentData::clearContent):
  5776. * khtml/rendering/render_style.h:
  5777. 2003-05-05 Darin Adler <darin@apple.com>
  5778. Reviewed by John.
  5779. - fixed replaceOccurrencesOfString crash reported in bug 3247249 (not what the bug is about)
  5780. * kwq/KWQTextArea.mm: (-[KWQTextArea text]): Use the length of the replaced text.
  5781. 2003-05-04 Darin Adler <darin@apple.com>
  5782. Reviewed by John.
  5783. - fixed 3131534 -- "javascript:window.open()" leads to page not found error
  5784. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): For open() calls, if the
  5785. first parameter is not present, use "" instead of "undefined" as the URL.
  5786. - fixed 3244766 -- window.open() doesn't position window correctly along the y axis
  5787. * kwq/KWQKHTMLPartBrowserExtension.mm: (KHTMLPartBrowserExtension::createNewWindow):
  5788. Fixed the code that flips the y coordinate to take the window height into account.
  5789. 2003-05-03 David Hyatt <hyatt@apple.com>
  5790. Add smallCaps boolean to the string drawing and measuring
  5791. routines. WebCore should be done after this patch, with
  5792. the rest of the work being done entirely in WebKit.
  5793. Reviewed by darin
  5794. * khtml/rendering/font.cpp:
  5795. (Font::drawText):
  5796. (Font::floatWidth):
  5797. (Font::floatCharacterWidths):
  5798. (Font::width):
  5799. * kwq/KWQFontMetrics.h:
  5800. * kwq/KWQFontMetrics.mm:
  5801. (QFontMetrics::width):
  5802. (QFontMetrics::floatWidth):
  5803. (QFontMetrics::floatCharacterWidths):
  5804. * kwq/KWQPainter.h:
  5805. * kwq/KWQPainter.mm:
  5806. (QPainter::drawText):
  5807. * kwq/WebCoreTextRenderer.h:
  5808. 2003-05-03 David Hyatt <hyatt@apple.com>
  5809. Rename layouted to needsLayout. Add a layoutIfNeeded method
  5810. and start using it in places that do if (needsLayout()) layout();
  5811. Reviewed by kocienda
  5812. * khtml/ecma/kjs_dom.cpp:
  5813. (DOMNode::getValueProperty):
  5814. * khtml/html/html_baseimpl.cpp:
  5815. (HTMLFrameSetElementImpl::recalcStyle):
  5816. * khtml/html/html_documentimpl.cpp:
  5817. (HTMLDocumentImpl::close):
  5818. * khtml/html/html_imageimpl.cpp:
  5819. (HTMLImageElementImpl::width):
  5820. (HTMLImageElementImpl::height):
  5821. * khtml/html/html_tableimpl.cpp:
  5822. (HTMLTableElementImpl::parseAttribute):
  5823. * khtml/khtmlview.cpp:
  5824. (KHTMLView::layout):
  5825. (KHTMLView::print):
  5826. (KHTMLView::timerEvent):
  5827. * khtml/rendering/bidi.cpp:
  5828. * khtml/rendering/render_applet.cpp:
  5829. (RenderApplet::layout):
  5830. (RenderEmptyApplet::layout):
  5831. * khtml/rendering/render_block.cpp:
  5832. * khtml/rendering/render_box.cpp:
  5833. (RenderBox::close):
  5834. * khtml/rendering/render_container.cpp:
  5835. (RenderContainer::addChild):
  5836. (RenderContainer::removeChildNode):
  5837. (RenderContainer::removeChild):
  5838. (RenderContainer::appendChildNode):
  5839. (RenderContainer::insertChildNode):
  5840. (RenderContainer::layout):
  5841. * khtml/rendering/render_flow.h:
  5842. * khtml/rendering/render_form.cpp:
  5843. (RenderFormElement::layout):
  5844. (RenderSubmitButton::updateFromElement):
  5845. (RenderSelect::updateFromElement):
  5846. (RenderSelect::calcMinMaxWidth):
  5847. (RenderSelect::layout):
  5848. * khtml/rendering/render_frames.cpp:
  5849. (RenderFrameSet::layout):
  5850. (RenderFrameSet::positionFrames):
  5851. (RenderFrameSet::userResize):
  5852. (RenderFrameSet::canResize):
  5853. (RenderPart::setWidget):
  5854. (RenderPartObject::updateWidget):
  5855. (RenderPartObject::layout):
  5856. * khtml/rendering/render_image.cpp:
  5857. (RenderImage::setPixmap):
  5858. (RenderImage::layout):
  5859. * khtml/rendering/render_inline.cpp:
  5860. (RenderInline::addChildToFlow):
  5861. (RenderInline::splitInlines):
  5862. (RenderInline::splitFlow):
  5863. * khtml/rendering/render_layer.cpp:
  5864. (RenderLayer::checkScrollbarsAfterLayout):
  5865. * khtml/rendering/render_list.cpp:
  5866. (RenderListItem::layout):
  5867. (RenderListMarker::setStyle):
  5868. (RenderListMarker::layout):
  5869. (RenderListMarker::setPixmap):
  5870. * khtml/rendering/render_object.cpp:
  5871. (RenderObject::RenderObject):
  5872. (RenderObject::setNeedsLayout):
  5873. (RenderObject::information):
  5874. (RenderObject::dump):
  5875. (RenderObject::setStyle):
  5876. (RenderObject::invalidateLayout):
  5877. (RenderObject::detach):
  5878. * khtml/rendering/render_object.h:
  5879. * khtml/rendering/render_replaced.cpp:
  5880. (RenderReplaced::paint):
  5881. (RenderWidget::setQWidget):
  5882. (RenderWidget::layout):
  5883. * khtml/rendering/render_root.cpp:
  5884. * khtml/rendering/render_table.cpp:
  5885. (RenderTable::addChild):
  5886. (RenderTable::layout):
  5887. (RenderTable::paint):
  5888. (RenderTable::close):
  5889. (RenderTable::splitColumn):
  5890. (RenderTable::appendColumn):
  5891. (RenderTable::recalcSections):
  5892. (RenderTableSection::addChild):
  5893. (RenderTableSection::setCellWidths):
  5894. (RenderTableSection::layoutRows):
  5895. (RenderTableSection::recalcCells):
  5896. (RenderTableRow::addChild):
  5897. (RenderTableRow::layout):
  5898. (RenderTableCell::paint):
  5899. * khtml/rendering/render_text.cpp:
  5900. (RenderText::setText):
  5901. * khtml/xml/dom_docimpl.cpp:
  5902. (DocumentImpl::recalcStyle):
  5903. (DocumentImpl::updateStyleSelector):
  5904. * khtml/xml/dom_nodeimpl.cpp:
  5905. (NodeBaseImpl::insertBefore):
  5906. (NodeBaseImpl::replaceChild):
  5907. (NodeBaseImpl::appendChild):
  5908. * kwq/KWQKHTMLPart.mm:
  5909. (KWQKHTMLPart::forceLayoutForPageWidth):
  5910. * kwq/WebCoreBridge.mm:
  5911. (-[WebCoreBridge needsLayout]):
  5912. 2003-05-02 Maciej Stachowiak <mjs@apple.com>
  5913. Reviewed by Richard.
  5914. - reformatted method prototypes to match AppKit style
  5915. * kwq/WebCoreBridge.h:
  5916. * kwq/WebCoreDOMPrivate.h:
  5917. * kwq/WebCoreHistory.h:
  5918. * kwq/WebCoreResourceLoader.h:
  5919. * kwq/WebCoreTextRenderer.h:
  5920. * kwq/WebDOMDocument.h:
  5921. * kwq/WebDOMElement.h:
  5922. * kwq/WebDOMNode.h:
  5923. 2003-05-02 Maciej Stachowiak <mjs@apple.com>
  5924. Reviewed by Darin.
  5925. - fixed 2936175 - MALLORY: please implement onResize
  5926. * khtml/khtmlview.cpp:
  5927. (KHTMLView::resizeEvent): Put most of this in #if !APPLE_CHANGES,
  5928. since we already do the relayout and such on resize elswhere.
  5929. * kwq/KWQEvent.h: Add a minimal QResizeEvent.
  5930. * kwq/KWQKHTMLPart.h:
  5931. * kwq/KWQKHTMLPart.mm:
  5932. (KWQKHTMLPart::sendResizeEvent): Send it to the view.
  5933. * kwq/WebCoreBridge.h:
  5934. * kwq/WebCoreBridge.mm:
  5935. (-[WebCoreBridge sendResizeEvent]): Send it to the part.
  5936. 2003-05-02 David Hyatt <hyatt@apple.com>
  5937. Fix for 3184113, bottom margins didn't collapse with their children
  5938. like they were supposed to. The problem is fixed by separately
  5939. caching whether or not the top and bottom margins can collapse
  5940. with their kids instead of having one global canCollapse variable.
  5941. Reviewed by kocienda
  5942. * khtml/rendering/render_block.cpp:
  5943. 2003-05-02 Darin Adler <darin@apple.com>
  5944. Reviewed by John.
  5945. - fixed 3236383 -- http://www.xy.com/ exception, crash loading main page
  5946. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::scheduleClose): Change to use closeWindowSoon, so that
  5947. the delay is on the WebKit side so it can be tied to the WebView as a whole, not a particular bridge.
  5948. * kwq/WebCoreBridge.h: Replaced closeWindow with closeWindowSoon.
  5949. - rolled in a couple of harmless and eventually-possibly-useful changes inspired by changes
  5950. OmniGroup made in their copy of WebCore
  5951. * kwq/KWQListBox.mm: Make KWQTableView a KWQWidgetHolder.
  5952. (-[KWQTableView widget]): Return the widget.
  5953. * kwq/KWQScrollView.mm: (QScrollView::ensureVisible): First cut at implementing these.
  5954. 2003-05-02 David Hyatt <hyatt@apple.com>
  5955. Make sure that recalcSections always clears out the needSectionRecalc
  5956. boolean, even in the case where it finds column elements.
  5957. Fixes the assert outlined in bug 3237651.
  5958. Reviewed by john
  5959. * khtml/rendering/render_table.cpp:
  5960. (RenderTable::recalcSections):
  5961. 2003-05-01 David Hyatt <hyatt@apple.com>
  5962. Fix for 3226030, percentage height tables inside table cells
  5963. don't grow to fill the space inside the cell. There was
  5964. a missing edge case here for the case where the table was
  5965. nested inside a table cell.
  5966. Reviewed by darin
  5967. * khtml/rendering/render_table.cpp:
  5968. (RenderTable::layout):
  5969. 2003-05-01 David Hyatt <hyatt@apple.com>
  5970. Add a cycle check when importing stylesheets to prevent
  5971. infinite loops.
  5972. Reviewed by john
  5973. * khtml/css/css_ruleimpl.cpp:
  5974. (CSSImportRuleImpl::init):
  5975. 2003-05-01 David Hyatt <hyatt@apple.com>
  5976. Table rows don't know their precise dimensions, so repainting
  5977. them fails. For now, just make an invalidation of a table
  5978. row due to CSS changes invalidate the whole table.
  5979. This is what the old Safari table code used to do prior to the
  5980. new table code landing.
  5981. Fixes bug #3205092.
  5982. Reviewed by darin/john
  5983. * khtml/rendering/render_table.cpp:
  5984. (RenderTableRow::repaint):
  5985. * khtml/rendering/render_table.h:
  5986. 2003-05-01 David Hyatt <hyatt@apple.com>
  5987. Fix for 3232637, don't let generated parentless image content
  5988. try to do width/height/layout calculations. It will do this
  5989. all anyway, when it finally gets inserted into the rendering
  5990. tree.
  5991. Reviewed by john
  5992. * khtml/rendering/render_image.cpp:
  5993. (RenderImage::setPixmap):
  5994. 2003-05-01 David Hyatt <hyatt@apple.com>
  5995. Fix for 3239404, a crash caused because a block-level :after
  5996. element was being inserted as generated content inside an
  5997. inline element.
  5998. The fix is to mutate the display of the generated content to
  5999. be inline when the parent of the generated content is also
  6000. inline.
  6001. Section 12.1 of the CSS2 spec (at the very end of the spec)
  6002. covers this special case. Once we do the mutation it becomes
  6003. impossible for generated content to cause a splitFlow, and so
  6004. the crash is plugged.
  6005. Reviewed by john
  6006. * khtml/rendering/render_container.cpp:
  6007. (RenderContainer::insertPseudoChild):
  6008. 2003-05-01 David Hyatt <hyatt@apple.com>
  6009. Replace effectiveWidth and effectiveHeight with a
  6010. parameterized overflowWidth/Height, since this is much better
  6011. terminology.
  6012. Also fix event handling so that it no longer assumes (incorrectly)
  6013. that being inside the overflow rect of an object means you are
  6014. inside the object. Now there are two separate checks, with the
  6015. overflow check being used only to figure out if you should check
  6016. inside your kids.
  6017. Reviewed by darin
  6018. * khtml/rendering/render_block.cpp:
  6019. * khtml/rendering/render_block.h:
  6020. * khtml/rendering/render_box.cpp:
  6021. (RenderBox::repaint):
  6022. * khtml/rendering/render_flow.cpp:
  6023. (RenderFlow::repaint):
  6024. * khtml/rendering/render_object.cpp:
  6025. (RenderObject::nodeAtPoint):
  6026. * khtml/rendering/render_object.h:
  6027. * khtml/rendering/render_table.h:
  6028. === Safari-77 ===
  6029. 2003-04-30 David Hyatt <hyatt@apple.com>
  6030. Fix for 3244157, giantrobot.com misrenders with a lot of
  6031. vertical space. Overflow heights were being miscomputed for
  6032. overflow:auto blocks.
  6033. Reviewed by gramps
  6034. * khtml/rendering/render_block.cpp:
  6035. * khtml/rendering/render_block.h:
  6036. 2003-04-30 David Hyatt <hyatt@apple.com>
  6037. Fix for 3210725, invalid n/a selector treated as valid. This
  6038. fix also makes the CSS1 test on the test suite for forward-compatible
  6039. parsing completely pass (yay!), which was an issue on
  6040. diveintomark's list.
  6041. Reviewed by gramps
  6042. * khtml/css/parser.cpp:
  6043. * khtml/css/parser.y:
  6044. 2003-04-30 David Hyatt <hyatt@apple.com>
  6045. Fixes for 3227983 and 3224521, both bugs involving bad letter-spacing
  6046. property values. This fixes all Movable Type blogs that had this
  6047. error in their stylesheets.
  6048. Reviewed by gramps
  6049. * khtml/css/parser.cpp:
  6050. * khtml/css/parser.y:
  6051. 2003-04-30 Darin Adler <darin@apple.com>
  6052. Reviewed by Maciej.
  6053. - fixed 3233819 -- MALLORY: onChange handler being called on SELECT even if selected item does not change
  6054. * kwq/KWQComboBox.h: Added _currentItem variable, updateCurrentItem function, and replaced
  6055. activated function with itemSelected function.
  6056. * kwq/KWQComboBox.mm:
  6057. (QComboBox::QComboBox): Call updateCurrentItem so _currentItem is up to date.
  6058. (QComboBox::insertItem): Ditto.
  6059. (QComboBox::clear): Ditto.
  6060. (QComboBox::setCurrentItem): Ditto.
  6061. (QComboBox::updateCurrentItem): Added. Returns true if current item has changed since the last time
  6062. the function was called.
  6063. (QComboBox::itemSelected): Only send the activate method if updateCurrentItem returns true.
  6064. (-[KWQComboBoxAdapter action:]): Call itemSelected instead of calling activated directly.
  6065. 2003-04-29 David Hyatt <hyatt@apple.com>
  6066. Fix for the Adam Rice float/padding test on diveintomark's list
  6067. of bugs. We weren't adding in the parent's border/padding in
  6068. one case in the clearFloats function, which resulted in the
  6069. float being incorrectly positioned.
  6070. Reviewed by darin
  6071. * khtml/rendering/render_block.cpp:
  6072. 2003-04-29 David Hyatt <hyatt@apple.com>
  6073. This patch fixes the following bugs:
  6074. (1) 3186174 - padding-left improperly applied to list items.
  6075. The fix is in render_list.cpp and involves adding in the
  6076. list item's border and padding so that outside markers end up
  6077. outside the border box instead of just inside the padding box.
  6078. (2) 3239571 - a stray !important after a ; causes the CSS parser
  6079. to choke. This patch adds a rule to parser.y to deal with
  6080. !importants found in between property values and to just ignore
  6081. them.
  6082. (3) 3170647 - positioned boxes with auto widths ended up adding
  6083. in their border/padding twice! Make sure that when
  6084. calcAbsoluteHorizontal in render_box.cpp examines m_maxWidth that
  6085. it subtracts out the border and padding and looks at content width.
  6086. (4) 3186165 - Negative padding values were being incorrectly
  6087. honored by Safari. A patch to css_styleselector.cpp checks to
  6088. see if the value specified by the rule is negative, and if so
  6089. the rule is not applied.
  6090. (5) 3132172 - The clip property could not be accessed via script
  6091. because the cssText routine for CSS_RECT primitive values had
  6092. not been implemented. In css_valueimpl.cpp this code has now been
  6093. filled in.
  6094. Reviewed by mjs
  6095. * khtml/css/css_valueimpl.cpp:
  6096. (CSSPrimitiveValueImpl::cssText):
  6097. * khtml/css/cssstyleselector.cpp:
  6098. * khtml/css/parser.cpp:
  6099. * khtml/css/parser.y:
  6100. * khtml/rendering/render_box.cpp:
  6101. (RenderBox::calcAbsoluteHorizontal):
  6102. * khtml/rendering/render_list.cpp:
  6103. (RenderListMarker::paintObject):
  6104. 2003-04-29 David Hyatt <hyatt@apple.com>
  6105. Fix for 3226138, crash on canada.gc.ca. Make sure a failed
  6106. @media parse doesn't crash by adding a null check.
  6107. Reviewed by mjs
  6108. * khtml/css/parser.cpp:
  6109. * khtml/css/parser.y:
  6110. 2003-04-29 David Hyatt <hyatt@apple.com>
  6111. The remainder of the overflow:auto patch.
  6112. A minor table cell optimization has also been included.
  6113. Also fixing one of rjw's inline table bugs. Inline tables
  6114. didn't clear their minmaxwidth bool when contents inside them
  6115. changed size.
  6116. r=mjs/gramps on overflow:auto stuff
  6117. r=rjw on the table stuff
  6118. * khtml/html/html_tableimpl.cpp:
  6119. (HTMLTableElementImpl::parseAttribute):
  6120. * khtml/rendering/render_block.cpp:
  6121. * khtml/rendering/render_block.h:
  6122. * khtml/rendering/render_layer.cpp:
  6123. (RenderLayer::checkScrollbarsAfterLayout):
  6124. * khtml/rendering/render_object.cpp:
  6125. (RenderObject::nodeAtPoint):
  6126. * khtml/rendering/render_table.cpp:
  6127. (RenderTableCell::layout):
  6128. * khtml/rendering/render_table.h:
  6129. 2003-04-29 Darin Adler <darin@apple.com>
  6130. Reviewed by John.
  6131. - fixed 3234633 -- page with moderately deep tag nesting causes crash when closed (www.4strokenationals.com)
  6132. * khtml/xml/dom_nodeimpl.cpp: (NodeBaseImpl::~NodeBaseImpl): Avoid recursion by using a global
  6133. list of child nodes to destroy and only doing the actual destruction at the top level.
  6134. 2003-04-29 Darin Adler <darin@apple.com>
  6135. Mostly reviewed by Ken, some bits reviewed by John.
  6136. - fixed 3188781 -- eliminate globally initialized objects from WebCore
  6137. * kwq/KWQString.h: Change QChar::null to be a char constant, and QString::null to be a const char *.
  6138. In the cases where the code still compiles after these changes, everything works fine. A few cases
  6139. that didn't compile are fixed below.
  6140. * kwq/KWQString.mm: Remove QString::null.
  6141. (QString::mid): Return QString() instead of null.
  6142. * kwq/KWQChar.mm: Remove the definition of QChar::null.
  6143. * khtml/css/css_base.cpp: (CSSSelector::extractPseudoType): Use DOMString explicitly in one place
  6144. where the code said QString::null. The trick where QString::null is really a const char * does not
  6145. work in this case.
  6146. * khtml/khtml_part.cpp: (KHTMLPart::reparseConfiguration): Use QString() instead of QString::null
  6147. in one place. The trick where QString::null is really a const char * does not work in this case.
  6148. * kwq/KWQKHTMLSettings.h: Use QString() for settingsToCSS, the trick where QString::null is really
  6149. a const char * does not work in this case.
  6150. * khtml/rendering/render_list.cpp: (RenderListMarker::paintObject): Use an isEmpty check here instead
  6151. of comparing with QString::null. Not sure this change was strictly required, but it is simpler and
  6152. may also make the code slightly faster.
  6153. * kwq/KWQKFileDialog.h: Removed. This used QString::null in a way that is incompatible with the new
  6154. "0" hack, but was not used any more.
  6155. * kwq/KWQKFileDialog.mm: Removed.
  6156. * ForwardingHeaders/kfiledialog.h: Empty this out, since there is no KWQKFileDialog.h any more.
  6157. * WebCore.pbproj/project.pbxproj: Removed KWQKFileDialog.h and .mm.
  6158. * khtml/html/htmltokenizer.cpp: Change the commentStart global array to be an array of char instead
  6159. of QChar to avoid the static constructor; the code works fine with char anyway.
  6160. * khtml/html/html_formimpl.cpp: Change the global constants in this file to be char instead of QChar.
  6161. It works this way (and faster for KWQ), and avoids the static constructor.
  6162. * khtml/rendering/bidi.h: Change BidiIterator from a class with constructors into a plain struct.
  6163. The copy construct and assignment operator weren't needed anyway since they simply duplicated default
  6164. assignment, and if we have a constructor then we can't use it as a global object, since we want to
  6165. avoid static constructors. Do the same with BidiStatus, and also stop using bit fields. It's silly to
  6166. use bit fields for something when we have only one global instance of it; just makes extra code size
  6167. and saves a few bytes.
  6168. * khtml/rendering/bidi.cpp:
  6169. (BidiIterator::current): Move the non-breaking space global inside this function.
  6170. (appendRunsForObject): Initialize BidiIterator object using brace notation.
  6171. (buildCompactRuns): Initialize BidiIterator objects using brace notation and assignment.
  6172. (RenderBlock::layoutInlineChildren): Initialize BidiStatus fields separately. Initialize BidiIterator
  6173. objects using brace notation and assignment.
  6174. (RenderBlock::findNextLineBreak): Initialize BidiIterator objects using brace notation and assignment.
  6175. * khtml/rendering/render_frames.cpp: Removed an include of <iostream.h>. This pulled the entire
  6176. C++ I/O library in, with lots of static constructors. Elsewhere, we are careful not to use the C++
  6177. I/O library in WebCore except in Development versions. And this file didn't actually use the library,
  6178. just included the header.
  6179. * kwq/KWQNamespace.h: Remove all the color globals except for the ones used in KHTML: black, white,
  6180. darkGray, gray, and lightGray. And for those, make the globals RGB constants instead of QColor objects.
  6181. This gets rid of the global objects with constructors and works without any KHTML code changes.
  6182. * kwq/KWQColor.mm: Remove the definition of the QColor constants from the Qt class.
  6183. * kwq/KWQPainter.h: Add overloads for setPen and setBrush so they work with the "color" constants
  6184. from Qt that are now RGB constants rather than QColor objects.
  6185. * kwq/KWQPainter.mm:
  6186. (QPainter::setPen): Set style to solid line and width to 0 when the parameter is an RGB constant.
  6187. This is just like what you'd get if you constructed a QPen.
  6188. (QPainter::setBrush): Set style to solid pattern when the parameter is an RGB constant.
  6189. This is just like what you'd get if you constructed a QBrush.
  6190. * khtml/misc/loader.h: Change m_LRULists to be a global pointer instead of a global array, so
  6191. we don't have to statically construct LRUList objects.
  6192. * khtml/misc/loader.cpp: (Cache::getLRUListFor): Allocate the global array the first time we
  6193. pass through here.
  6194. 2003-04-29 Darin Adler <darin@apple.com>
  6195. Reviewed by Ken.
  6196. - fixed 3242460 -- crash in NSPopUpButtonCell at acheter-moins-cher.com
  6197. * kwq/KWQComboBox.mm: (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
  6198. Defer QObject timers too as well as loading while tracking a pop-up.
  6199. * kwq/KWQObject.h: Add defersTimers and setDefersTimers functions.
  6200. * kwq/KWQObject.mm:
  6201. (QObject::setDefersTimers): Added. When called with true starts deferring timers. When called
  6202. with false schedules a "delay 0" task to deliver all the timers and stop deferring them.
  6203. (-[KWQObjectTimerTarget sendTimerEvent]): Added. Contains guts of the old timerFired method.
  6204. (-[KWQObjectTimerTarget timerFired]): Puts timer on the deferred timers list or calls sendTimerEvent.
  6205. (+[KWQObjectTimerTarget stopDeferringTimers]): Remove timers items from the deferred timers list,
  6206. and makes them fire, then stops deferring timers.
  6207. * WebCore.pbproj/project.pbxproj: Reorder things a bit.
  6208. 2003-04-29 Darin Adler <darin@apple.com>
  6209. Reviewed by Ken.
  6210. - fixed 3230885 -- crash loading hixie test page in -[WebSubresourceClient connection:didReceiveData:]
  6211. * khtml/rendering/render_style.cpp: (RenderStyle::setContent):
  6212. Change code around so we don't deref the text object without checking
  6213. the contentType. Also fix the leak of a DOMStringImpl in the case
  6214. where we are asked to add a string, but the string pointer is 0.
  6215. 2003-04-28 Richard Williamson <rjw@apple.com>
  6216. API changes from final review meeting.
  6217. goBackOrForwardToItem: -> goToBackForwardItem:
  6218. drop "Window" from WebUIDelegate method names.
  6219. WebElementIsSelectedTextKey -> WebElementIsSelectedKey
  6220. Cross-frame searchFor on WebView now public.
  6221. Reviewed by Chris.
  6222. * kwq/WebCoreBridge.h:
  6223. * kwq/WebCoreBridge.mm:
  6224. 2003-04-28 Darin Adler <darin@apple.com>
  6225. Reviewed by John.
  6226. - re-fixed 3159076 -- turbotax.intuit.com forms have text fields instead of radio buttons
  6227. * khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::attach): Only set the type
  6228. if JavaScript hasn't set it explicitly already.
  6229. 2003-04-25 David Hyatt <hyatt@apple.com>
  6230. Part two of the overflow patch. This adds the scrollbars and
  6231. patches the layers code, but it doesn't yet turn on the
  6232. overflow:auto capability.
  6233. Reviewed by mjs/gramps
  6234. * ForwardingHeaders/qscrollbar.h: Added.
  6235. * WebCore.pbproj/project.pbxproj:
  6236. * khtml/ecma/kjs_dom.cpp:
  6237. (DOMNode::getValueProperty):
  6238. (DOMNode::putValue):
  6239. * khtml/ecma/kjs_dom.h:
  6240. * khtml/ecma/kjs_dom.lut.h:
  6241. * khtml/rendering/render_box.cpp:
  6242. (RenderBox::contentWidth):
  6243. (RenderBox::repaintRectangle):
  6244. (RenderBox::calcAbsoluteHorizontal):
  6245. (RenderBox::calcAbsoluteVertical):
  6246. (RenderBox::lowestPosition):
  6247. * khtml/rendering/render_layer.cpp:
  6248. (RenderScrollMediator::slotValueChanged):
  6249. (RenderLayer::RenderLayer):
  6250. (RenderLayer::~RenderLayer):
  6251. (RenderLayer::updateLayerPosition):
  6252. (RenderLayer::scrollOffset):
  6253. (RenderLayer::subtractScrollOffset):
  6254. (RenderLayer::scrollToOffset):
  6255. (RenderLayer::updateScrollPositionFromScrollbars):
  6256. (RenderLayer::setHasHorizontalScrollbar):
  6257. (RenderLayer::setHasVerticalScrollbar):
  6258. (RenderLayer::verticalScrollbarWidth):
  6259. (RenderLayer::horizontalScrollbarHeight):
  6260. (RenderLayer::moveScrollbarsAside):
  6261. (RenderLayer::positionScrollbars):
  6262. (RenderLayer::checkScrollbarsAfterLayout):
  6263. (RenderLayer::paintScrollbars):
  6264. (RenderLayer::paint):
  6265. (RenderLayer::nodeAtPoint):
  6266. * khtml/rendering/render_layer.h:
  6267. * khtml/rendering/render_object.cpp:
  6268. (RenderObject::clientWidth):
  6269. (RenderObject::clientHeight):
  6270. (RenderObject::scrollWidth):
  6271. (RenderObject::scrollHeight):
  6272. (RenderObject::nodeAtPoint):
  6273. * khtml/rendering/render_object.h:
  6274. * kwq/KWQKHTMLPart.h:
  6275. * kwq/KWQKHTMLPart.mm:
  6276. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  6277. * kwq/KWQNamespace.h:
  6278. * kwq/KWQScrollBar.h: Added.
  6279. * kwq/KWQScrollBar.mm: Added.
  6280. (-[KWQScrollBar initWithQScrollBar:]):
  6281. (-[KWQScrollBar scroll:]):
  6282. (:m_valueChanged):
  6283. (QScrollBar::~QScrollBar):
  6284. (QScrollBar::setValue):
  6285. (QScrollBar::setSteps):
  6286. (QScrollBar::setKnobProportion):
  6287. (QScrollBar::scrollbarHit):
  6288. (QScrollBar::valueChanged):
  6289. * kwq/KWQSlot.mm:
  6290. (KWQSlot::KWQSlot):
  6291. (KWQSlot::call):
  6292. 2003-04-24 David Hyatt <hyatt@apple.com>
  6293. Rename inQuirksMode to inCompatMode. Drop uses of it in
  6294. the render tree code in favor of style()->htmlHacks().
  6295. Remove dead code in the parser dealing with discarded attributes.
  6296. Optimize bidi run justification by adding a guard.
  6297. Fix :target to not match :root when no fragment ID is specified.
  6298. Reviewed by mjs/gramps
  6299. * khtml/css/cssstyleselector.cpp:
  6300. * khtml/html/html_baseimpl.cpp:
  6301. (HTMLBodyElementImpl::parseAttribute):
  6302. * khtml/html/html_headimpl.cpp:
  6303. (HTMLLinkElementImpl::setStyleSheet):
  6304. (HTMLStyleElementImpl::childrenChanged):
  6305. * khtml/html/html_tableimpl.cpp:
  6306. (HTMLTableElementImpl::createSharedCellDecls):
  6307. * khtml/html/htmlparser.cpp:
  6308. (KHTMLParser::~KHTMLParser):
  6309. (KHTMLParser::reset):
  6310. (KHTMLParser::parseToken):
  6311. (KHTMLParser::insertNode):
  6312. * khtml/html/htmlparser.h:
  6313. * khtml/html/htmltokenizer.cpp:
  6314. (HTMLTokenizer::parseTag):
  6315. * khtml/khtml_part.cpp:
  6316. (KHTMLPart::gotoAnchor):
  6317. * khtml/rendering/bidi.cpp:
  6318. * khtml/rendering/render_block.cpp:
  6319. * khtml/rendering/render_flow.cpp:
  6320. (RenderFlow::paintLineBoxDecorations):
  6321. (RenderFlow::repaint):
  6322. * khtml/rendering/render_inline.cpp:
  6323. * khtml/rendering/render_inline.h:
  6324. * khtml/rendering/render_list.cpp:
  6325. (getParentOfFirstLineBox):
  6326. * khtml/rendering/render_object.cpp:
  6327. (RenderObject::createObject):
  6328. * khtml/rendering/render_text.cpp:
  6329. (RenderText::paintObject):
  6330. * khtml/xml/dom_docimpl.cpp:
  6331. (DocumentImpl::DocumentImpl):
  6332. (DocumentImpl::recalcStyle):
  6333. (DocumentImpl::recalcStyleSelector):
  6334. * khtml/xml/dom_docimpl.h:
  6335. * khtml/xml/dom_elementimpl.cpp:
  6336. (ElementImpl::createDecl):
  6337. 2003-04-24 Darin Adler <darin@apple.com>
  6338. Reviewed by Chris.
  6339. - fixed 3210096 -- server identifies page as UTF-8, page identifies itself as windows-1252, server must win
  6340. - fixed 3105796 -- www.thai.com does not display with correct encoding (<body> tag in comment before <meta>)
  6341. * khtml/khtml_part.cpp:
  6342. (KHTMLPart::write): Pass in an EncodingType rather than just a boolean. This lets us tell
  6343. the difference between EncodingFromHTTPHeader (which wins out over an encoding in a meta tag)
  6344. and DefaultEncoding (which loses).
  6345. (KHTMLPart::setEncoding): Put ifdef around the whole function. We use our own version in
  6346. KWQKHTMLPart instead.
  6347. * khtml/misc/decoder.h: Defined an EncodingType and changed the parameter to setEncoding to take
  6348. it instead of force and 8-bit-only parameters. Store it in m_type and get rid of haveEncoding.
  6349. * khtml/misc/decoder.cpp:
  6350. (Decoder::Decoder): Set m_type to DefaultEncoding.
  6351. (Decoder::setEncoding): Take a type parameter, instead of force and 8-bit-only parameters.
  6352. Use "eight-bit-only" mode for EncodingFromMetaTag only. Fix code so we don't clobber an existing
  6353. codec if we can't find a new one in a simpler way. Store the type in m_type, rather than using
  6354. the confusing "haveEncoding" flag.
  6355. (skipComment): Added. Used to skip comments found in the <head> section.
  6356. (Decoder::decode): Moved the check for the UTF-16 BOM out and do that check even when we have
  6357. an encoding (although not if we have one the user chose). Update check so that we look for a meta
  6358. tag when we have nothing except a default encoding. This fixes the bug where we have an encoding
  6359. from an HTTP header; in that case we do not want to look at the meta tag. Improve performance a bit
  6360. by not constructing a string just so we can append the data. Merged the APPLE_CHANGES case a bit
  6361. with the original case better. Added code to skip comments; this fixes the thai.com issue. Improved
  6362. the code to handle data after the first buffer full. We now avoid putting data into a QString once
  6363. we are past the header. Extended an APPLE_CHANGES ifdef to exclude more code we don't need.
  6364. * kwq/KWQKHTMLPart.h: Added setEncoding and addData to replace slotData.
  6365. * kwq/KWQKHTMLPart.mm:
  6366. (KWQKHTMLPart::setEncoding): Added. Needs to be called only once and does the first-time work as
  6367. well as setting up the encoding for the page. In practice it is called before each time addData is.
  6368. (KWQKHTMLPart::addData): Added. Needs to be called for each run of data. Now just calls write(),
  6369. but does some assertions, which is why I have not removed it and changed the bridge to call write().
  6370. * kwq/WebCoreBridge.h: Replaced the old addData:withEncoding: and addData:withOverrideEncoding: with
  6371. setEncoding:userChosen: and addData:.
  6372. * kwq/WebCoreBridge.mm:
  6373. (-[WebCoreBridge setEncoding:userChosen:]): Call setEncoding on the part.
  6374. (-[WebCoreBridge addData:]): Call addData on the part.
  6375. 2003-04-24 Darin Adler <darin@apple.com>
  6376. Reviewed by John.
  6377. - improved the text encoding database
  6378. * kwq/mac-encodings.txt: Changed to a new format. Now the first encoding name in every list
  6379. is the "canonical" one and is in canonical case and punctuation (no longer requiring lowercase).
  6380. Since the first is the one that will be used outgoing to send to servers, it's good to have
  6381. that one in canonical form. All subsequent aliases in the list are now required to be all
  6382. lowercase and not use any punctuation. Since the comparison is done ignoring non-alphanumeric
  6383. characters, and ignoring case, this will have no effect on which encodings are recognized.
  6384. * kwq/make-charset-table.pl: Updated to enforce the new format rules.
  6385. * kwq/KWQCharsetData.c: Regenerated.
  6386. * khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::formData): Simplify the "change commas
  6387. to spaces" code in a way that lets us get rid of APPLE_CHANGES. Use the official "ISO-8859-1"
  6388. here instead of something almost, but not quite, like it.
  6389. * kwq/KWQKCharsets.mm: (KCharsets::codecForName): Use the official "ISO-8859-1" here instead
  6390. of the unofficial "latin1". Unimportant, but cleaner this way.
  6391. - preparation for some text encoding changes to fix some bugs
  6392. * kwq/KWQKHTMLSettings.h: Added an encoding value rather than always returning a hardcoded
  6393. value. Other minor cleanup.
  6394. * kwq/KWQKHTMLSettings.mm: Removed.
  6395. * WebCore.pbproj/project.pbxproj: Removed KWQKHTMLSettings.mm.
  6396. - other changes
  6397. * kwq/KWQKHTMLPart.h: Removed "using" statement. Headers must not pollute the namespace
  6398. by doing "using".
  6399. * khtml/khtml_part.cpp: Added a "using" here.
  6400. * kwq/KWQPageState.mm: Added a "using" here.
  6401. * kwq/KWQString.h: Added an append that takes a const char * and length for use by the decoder.
  6402. * kwq/KWQString.mm: (QString::append): Implemented it.
  6403. * kwq/WebCoreSettings.h: Added default text encoding field and methods.
  6404. * kwq/WebCoreSettings.mm:
  6405. (-[WebCoreSettings dealloc]): Release defaultTextEncoding.
  6406. (-[WebCoreSettings setDefaultTextEncoding:]): Added.
  6407. (-[WebCoreSettings defaultTextEncoding]): Added.
  6408. === Safari-75 ===
  6409. 2003-04-24 John Sullivan <sullivan@apple.com>
  6410. - fixed 3151501 -- Toggling "Check Spelling As You Type" in a
  6411. textarea should affect future textareas
  6412. Reviewed by Darin
  6413. * kwq/KWQTextArea.mm:
  6414. (+[KWQTextAreaTextView _setContinuousSpellCheckingEnabledForNewTextAreas:]):
  6415. new method, sets a static variable and an NSUserDefault
  6416. (+[KWQTextAreaTextView _isContinuousSpellCheckingEnabledForNewTextAreas]):
  6417. new method, checks a static variable, reading it from an NSUserDefault the
  6418. first time
  6419. (-[KWQTextAreaTextView initWithFrame:textContainer:]):
  6420. override designated initializer to set continuous spell checking if appropriate
  6421. (-[KWQTextAreaTextView setContinuousSpellCheckingEnabled:]):
  6422. call _setContinuousSpellCheckingEnabledForNewTextAreas in addition to
  6423. setting the value for this object
  6424. 2003-04-23 Darin Adler <darin@apple.com>
  6425. Reviewed by Ken.
  6426. - fixed 3237301 -- REGRESSION: text fields with size greater than maxlength are sized according to maxlength
  6427. * kwq/KWQLineEdit.mm: (QLineEdit::sizeForCharacterWidth): Override the maximum length
  6428. for this operation.
  6429. - fixed 3236961 -- setting innerHTML with input elements doesn't set up value properly
  6430. To fix this, I rolled in the changes from the trunk of KHTML development that get rid of
  6431. the init() function and do the work in either attach() or insertedIntoDocument() instead.
  6432. * khtml/html/html_baseimpl.h: Removed init overrides, added insertedIntoDocument override.
  6433. * khtml/html/html_baseimpl.cpp:
  6434. (HTMLBodyElementImpl::insertedIntoDocument): Moved HTMLBodyElementImpl::init code here.
  6435. (HTMLFrameElementImpl::attach): Moved HTMLFrameElementImpl::init code here.
  6436. (HTMLFrameSetElementImpl::attach): Moved HTMLFrameSetElementImpl::init code here.
  6437. * khtml/html/html_formimpl.h: Added m_inited flag, removed init overrides, removed unused
  6438. m_encCharset field.
  6439. * khtml/html/html_formimpl.cpp:
  6440. (HTMLFormElementImpl::formData): Removed code that set m_encCharset.
  6441. (HTMLFormElementImpl::setEnctype): Removed code that set m_encCharset.
  6442. (HTMLInputElementImpl::HTMLInputElementImpl): Initialize m_inited to false.
  6443. (HTMLInputElementImpl::attach): Moved HTMLInputElementImpl::init code here, guarded by
  6444. m_inited.
  6445. (HTMLSelectElementImpl::attach): Moved HTMLSelectElementImpl::init code here.
  6446. (HTMLTextAreaElementImpl::attach): Moved HTMLTextAreaElementImpl::init code here.
  6447. * khtml/xml/dom_nodeimpl.h: Removed init.
  6448. * khtml/xml/dom_nodeimpl.cpp: Removed init.
  6449. * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode): Removed calls to init.
  6450. * khtml/xml/xml_tokenizer.cpp:
  6451. (XMLHandler::startElement): Removed call to init.
  6452. (XMLHandler::startCDATA): Removed call to init.
  6453. (XMLHandler::exitText): Removed call to init.
  6454. 2003-04-22 Darin Adler <darin@apple.com>
  6455. Reviewed by Maciej.
  6456. - fixed 3158411 -- radio button groups are per-form in WebCore, per-page in other browsers (flyglobespan.com)
  6457. * khtml/html/html_formimpl.h: Removed radioClicked. Made setName virtual and make
  6458. HTMLInputElementImpl override it. Added isCheckedRadioButtonForDocument,
  6459. addCheckedRadioButtonToDocument, and removeCheckedRadioButtonFromDocument.
  6460. * khtml/html/html_formimpl.cpp:
  6461. (HTMLInputElementImpl::~HTMLInputElementImpl): Call removeCheckedRadioButtonFromDocument.
  6462. (HTMLInputElementImpl::setType): Call removeCheckedRadioButtonFromDocument before changing
  6463. the type and addCheckedRadioButtonToDocument after.
  6464. (HTMLInputElementImpl::parseAttribute): Call removeCheckedRadioButtonFromDocument before changing
  6465. ATTR_NAME and addCheckedRadioButtonToDocument after.
  6466. (HTMLInputElementImpl::setChecked): Call removeCheckedRadioButtonFromDocument before changing
  6467. the checked state and addCheckedRadioButtonToDocument after.
  6468. (HTMLInputElementImpl::setName): Call removeCheckedRadioButtonFromDocument before changing
  6469. the name and addCheckedRadioButtonToDocument after.
  6470. (HTMLInputElementImpl::isCheckedRadioButtonForDocument): Added. Checks if this element should
  6471. be the one known to the document.
  6472. (HTMLInputElementImpl::addCheckedRadioButtonToDocument): Call addCheckedRadioButton on the
  6473. document if isCheckedRadioButtonForDocument returns true.
  6474. (HTMLInputElementImpl::removeCheckedRadioButtonFromDocument): Call
  6475. removeCheckedRadioButtonFromDocument on the document if isCheckedRadioButtonForDocument
  6476. returns true.
  6477. * khtml/xml/dom_docimpl.h: Add addCheckedRadioButton, removeCheckedRadioButton, and
  6478. m_checkedRadioButtons.
  6479. * khtml/xml/dom_docimpl.cpp:
  6480. (DocumentImpl::addCheckedRadioButton): Uncheck the old radio button with this name, if any.
  6481. Store the new radio button in the "checked radio buttons" map.
  6482. (DocumentImpl::removeCheckedRadioButton): Remove the radio button from the map.
  6483. 2003-04-22 Darin Adler <darin@apple.com>
  6484. * khtml/html/html_formimpl.h: Remove radioClicked.
  6485. * khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::setChecked): When unchecking other
  6486. input elements with the same name, traverse the entire document, not just the form.
  6487. 2003-04-22 Darin Adler <darin@apple.com>
  6488. Reviewed by John.
  6489. - fixed 3144966 -- problems typing in form at http://www.mobile.att.net/messagecenter
  6490. The bug was that doing a focus would always select the entire contents of the field.
  6491. While this behavior does match Mozilla's behavior for text fields, it doesn't match
  6492. WinIE; we're going to imitate WinIE and not do it. Also fix the same issue for text areas.
  6493. * kwq/KWQTextField.h: Add lastSelectedRange field.
  6494. * kwq/KWQTextField.mm:
  6495. (-[KWQTextField initWithFrame:]): Initialize lastSelectedRange (to nothing).
  6496. (-[KWQTextField initWithQLineEdit:]): Use [self init] instead of [super init]. The same
  6497. thing, but you should never call [super xxx] where xxx is a non-designated initializer
  6498. of the superclass.
  6499. (-[KWQTextField currentEditorForEitherField]): Added. Returns the current editor of either
  6500. the text field or the secure text field.
  6501. (-[KWQTextField selectedRange]): Added.
  6502. (-[KWQTextField setSelectedRange:]): Added.
  6503. (-[KWQTextField controlTextDidEndEditing:]): Store the selected text range in the
  6504. lastSelectedRange variable, so it can be used later. Also move the code that sends the
  6505. FocusOut event here.
  6506. (-[KWQTextField control:textShouldBeginEditing:]): Do the "scroll frame into view" here
  6507. isntead of in becomeFirstResponder so it can be shared.
  6508. (-[KWQTextField control:textShouldEndEditing:]): Moved FocusOut to controlTextDidEndEditing:.
  6509. (-[KWQTextField didBecomeFirstResponder]): Added. Sets the selected range back to what it
  6510. was in textShouldEndEditing, but only if we are not tabbing into the field. If we don't set
  6511. the selected range, then we inherit the behavior from NSTextField, all text selected.
  6512. We can't do the selected range work in textDidEndEditing because that's called too early.
  6513. (-[KWQTextField becomeFirstResponder]): Call didBecomeFirstResponder.
  6514. (-[KWQSecureTextField currentEditorForSecureField]): Added. Factored out of selectText:.
  6515. (-[KWQSecureTextField selectText:]): Use currentEditorForSecureField for clarity.
  6516. (-[KWQSecureTextField becomeFirstResponder]): Call didBecomeFirstResponder.
  6517. * kwq/KWQTextArea.mm:
  6518. (-[KWQTextArea _createTextView]): Rearrange a bit.
  6519. (-[KWQTextArea setWordWrap:]): Ditto.
  6520. (-[KWQTextAreaTextView becomeFirstResponder]): Only do the selectAll: operation here
  6521. if we are tabbing into the field. Otherwise keep the selection from last time.
  6522. * khtml/rendering/render_form.cpp: (RenderTextArea::updateFromElement): Don't do the
  6523. whole "save cursor position, set text, restore cursor position" dance for the case
  6524. where the field already has the correct contents. Without this change, selections can be
  6525. collapsed to an insertion point at the start of the selection at seemingly random times.
  6526. * khtml/khtmlview.cpp: (KHTMLView::dispatchMouseEvent): Don't deselect the currently
  6527. focused node on mouse down. This created a symptom where a text field would lose
  6528. focus when you clicked on a button.
  6529. * kwq/KWQLineEdit.h: Remove unused frame() method.
  6530. * kwq/KWQLineEdit.mm: Remove unused, unimplemented frame() method.
  6531. 2003-04-21 Darin Adler <darin@apple.com>
  6532. Reviewed by Maciej.
  6533. - fixed bug 3159076 -- turbotax.intuit.com forms have text fields instead of radio buttons
  6534. * khtml/html/html_formimpl.cpp:
  6535. (HTMLInputElementImpl::setType): Implement; loosen rule about what type changes are allowed.
  6536. (HTMLInputElementImpl::parseAttribute): Call setType for ATTR_TYPE.
  6537. - unrelated tweak
  6538. * kwq/KWQSlot.mm: (KWQSlot::KWQSlot): Use a macro here to make it a little easier to add items.
  6539. 2003-04-21 Chris Blumenberg <cblu@apple.com>
  6540. Use renamed plug-in view methods.
  6541. Reviewed by john.
  6542. * kwq/KWQKHTMLPart.mm:
  6543. (KWQKHTMLPart::createPart):
  6544. * kwq/KWQKJavaAppletWidget.mm:
  6545. (KJavaAppletWidget::showApplet):
  6546. * kwq/WebCoreBridge.h:
  6547. 2003-04-18 Maciej Stachowiak <mjs@apple.com>
  6548. Reviewed by Darin.
  6549. - fixed 3191892 - Popup blocking prevents window.open with '_self' as target (superbitdvd.com)
  6550. * khtml/ecma/kjs_html.h:
  6551. * khtml/ecma/kjs_window.cpp:
  6552. (WindowFunc::tryCall): Don't apply popup blocking if the call
  6553. would open something in an existing frame (inlcuding the special
  6554. _self, _top and _parent frames.
  6555. 2003-04-18 David Hyatt <hyatt@apple.com>
  6556. Make sure display:table is not accidentally mutated to
  6557. display:block.
  6558. Reviewed by darin
  6559. * khtml/css/cssstyleselector.cpp:
  6560. 2003-04-18 Maciej Stachowiak <mjs@apple.com>
  6561. Reviewed by Darin.
  6562. - fixed 3081926 - bookmarklet to count and display mailto links fails
  6563. * khtml/ecma/kjs_html.cpp:
  6564. (KJS::HTMLElementFunction::tryCall): Implement custom toString JavaScript method
  6565. which calls the existing toString C++ custom method.
  6566. * khtml/ecma/kjs_html.h: Added AnchorToString.
  6567. * khtml/ecma/kjs_html.lut.h: Regenerated.
  6568. 2003-04-18 Chris Blumenberg <cblu@apple.com>
  6569. Fixed: 3172389 - Safari doesn't parse attributes within the OBJECT tag
  6570. Reviewed by dave.
  6571. * khtml/rendering/render_frames.cpp:
  6572. (RenderPartObject::updateWidget): add attributes from within the OBJECT tag to params, the list of attributes we pass to plug-ins. Don't override attributes that are already in params.
  6573. 2003-04-18 David Hyatt <hyatt@apple.com>
  6574. Make sure display:none is ignored and not accidentally mutated
  6575. to display:block.
  6576. Reviewed by darin
  6577. * khtml/css/cssstyleselector.cpp:
  6578. 2003-04-17 Darin Adler <darin@apple.com>
  6579. Reviewed by Maciej.
  6580. - fixed a bug caught by libgmalloc on Vicki's test machine
  6581. * khtml/xml/dom_docimpl.cpp:
  6582. (DocumentImpl::detach): Make sure we don't have a dangling paint device after
  6583. detaching from the KTHMLView.
  6584. (DocumentImpl::setPaintDevice): Allow a 0 parameter.
  6585. * kwq/WebCoreBridge.mm:
  6586. (nowPrinting): Handle the case of a 0 paint device.
  6587. 2003-04-15 David Hyatt <hyatt@apple.com>
  6588. Missed a piece of the renaming on lowestPosition/rightmostPosition.
  6589. This was already reviewed by darin. Just missed landing one file.
  6590. Reviewed by darin
  6591. * khtml/rendering/render_box.cpp:
  6592. (RenderBox::lowestPosition):
  6593. (RenderBox::rightmostPosition):
  6594. 2003-04-15 Trey Matteson <trey@apple.com>
  6595. 3210061 - Forms auto-fill ignores maxlength attribute
  6596. Reviewed by Maciej.
  6597. * kwq/KWQTextField.mm:
  6598. (-[KWQTextField setStringValue:]): We now trim down incoming values
  6599. to fit the maxlength criteria. Matches the way we enforce this constraint
  6600. when maxlength is set.
  6601. 2003-04-15 David Hyatt <hyatt@apple.com>
  6602. Fix 3227983 and 3229592, both the same bug involving a movable type
  6603. template:
  6604. letter-spacing: .none;
  6605. Fix is to make error-handling of exprs more generic.
  6606. Reviewed by darin
  6607. * khtml/css/parser.y:
  6608. 2003-04-15 Darin Adler <darin@apple.com>
  6609. Reviewed by Ken.
  6610. - fixed 3056913 -- please add Japanese auto-detect
  6611. * khtml/misc/decoder.cpp: (Decoder::decode): Turn on the auto-detect code if the
  6612. default encoding is one of the Japanese encodings. Also change things around so
  6613. the auto-detection process doesn't clobber the old chosen encoding if it does
  6614. not yield a result.
  6615. * kwq/KWQCharsets.h: Add a new IsJapanese encoding flag.
  6616. * kwq/KWQTextCodec.h: Add a new isJapanese() member function, used by the above.
  6617. * kwq/mac-encodings.txt: Add the IsJapanese flag to all Japanese encodings, and
  6618. add "jis7" as a synonym for ISO-2022-JP.
  6619. * kwq/make-charset-table.pl: Changed to allow flags even for unused encodings.
  6620. * kwq/KWQCharsetData.c: Regenerated.
  6621. 2003-04-15 David Hyatt <hyatt@apple.com>
  6622. Fix for 3220809, overflow values other than visible should not
  6623. affect the document's height (or document scrollbars). This
  6624. fixes squidfingers.com and briefcase.yahoo.com
  6625. Also laying a bunch of groundwork for overflow:auto and scroll
  6626. by adding them as supported values now.
  6627. Fixed overflow so that overflow objects now dodge floats and
  6628. don't let them intrude into their space.
  6629. Reviewed by darin
  6630. * khtml/css/cssstyleselector.cpp:
  6631. * khtml/rendering/render_block.cpp:
  6632. * khtml/rendering/render_block.h:
  6633. * khtml/rendering/render_box.cpp:
  6634. (RenderBox::containingBlockWidth):
  6635. (RenderBox::repaint):
  6636. (RenderBox::repaintRectangle):
  6637. (RenderBox::calcWidth):
  6638. (RenderBox::calcAbsoluteVertical):
  6639. (RenderBox::lowestPosition):
  6640. (RenderBox::rightmostPosition):
  6641. * khtml/rendering/render_box.h:
  6642. * khtml/rendering/render_flow.cpp:
  6643. (RenderFlow::repaint):
  6644. (RenderFlow::lowestPosition):
  6645. (RenderFlow::rightmostPosition):
  6646. * khtml/rendering/render_flow.h:
  6647. * khtml/rendering/render_layer.cpp:
  6648. (RenderLayer::updateLayerPosition):
  6649. (RenderLayer::convertToLayerCoords):
  6650. (RenderLayer::scrollOffset):
  6651. * khtml/rendering/render_layer.h:
  6652. * khtml/rendering/render_object.cpp:
  6653. (RenderObject::setLayouted):
  6654. (RenderObject::detach):
  6655. * khtml/rendering/render_object.h:
  6656. * khtml/rendering/render_style.h:
  6657. 2003-04-15 Trey Matteson <trey@apple.com>
  6658. 3229318 - no back entry created when searching at lonelyplanet.com
  6659. Reviewed by Darin.
  6660. * khtml/ecma/kjs_binding.cpp:
  6661. (ScriptInterpreter::wasRunByUserGesture): Treat blur/focus events as being
  6662. user gestures, since they probably were caused by something the user did.
  6663. This cues us to not lock history for navigations that are spawned by these events.
  6664. 2003-04-15 David Hyatt <hyatt@apple.com>
  6665. A collection of fixes.
  6666. (1) Don't lay out positioned elements so early in
  6667. layoutInlineChildren. They need to get a layout only after
  6668. all the normal flow kids have gotten a layout (and this happens
  6669. already in layoutPositionedObjects).
  6670. (2) Fix a mistake with overflow:hidden. I was applying the
  6671. overflow-clip for positioned elements only if you had defined
  6672. clip using the clip property. This makes iht.com look better
  6673. (although it still misrenders pretty badly due to some JS error
  6674. we hit in the source).
  6675. (3) Patch RenderText's height method to give more accurate
  6676. information. This affects all the layout tests. :)
  6677. Reviewed by darin
  6678. * khtml/rendering/bidi.cpp:
  6679. * khtml/rendering/render_layer.cpp:
  6680. (RenderLayer::constructZTree):
  6681. * khtml/rendering/render_text.cpp:
  6682. (RenderText::height):
  6683. 2003-04-14 Trey Matteson <trey@apple.com>
  6684. 3009051 - Find on Page stops (once) at end of page, should wrap automatically WebKit
  6685. 3051546 - Find on Page doesn't work for frameset pages
  6686. 3058437 - can have a selection in two frames at the same time (problem for finding in frames)
  6687. 3097498 - Find Previous continues to "Find Next" until end of paragraph
  6688. 3097507 - Find Next searches from previous find hit instead of current selection
  6689. And a commented out fix for:
  6690. 3121828 - scrollToVisible on find cuts off the left part of the view due to needless horiz. scroll
  6691. Various missing pieces are implemented to support better finding. The fix for
  6692. 3121828 is left out until 3228511 is dealt with.
  6693. Reviewed by Maciej.
  6694. * WebCore.pbproj/project.pbxproj:
  6695. * khtml/khtml_part.cpp:
  6696. (KHTMLPart::findTextBegin): Added args to allow starting a find at an arbitrary
  6697. places, such as the current selection.
  6698. (KHTMLPart::findTextNext): Implement reverse search - only the param was there.
  6699. Don't do lame scrolling selection to visible here, do better ourselves later.
  6700. * khtml/khtml_part.h:
  6701. * kwq/KWQKHTMLPart.h:
  6702. * kwq/KWQKHTMLPart.mm:
  6703. (KWQKHTMLPart::jumpToSelection): Make whole selection rect visible, and only scroll
  6704. anything if needed. ***Commented out in lieu of 3228511.
  6705. (KWQKHTMLPart::findString): Implement find starting at the right place relative to
  6706. the selection, forwards and backwards, and wraparound. This is just setup around
  6707. calling findTextNext. Also scroll the result to be visible.
  6708. * kwq/WebCoreBridge.h:
  6709. * kwq/WebCoreBridge.mm:
  6710. (-[WebCoreBridge deselectAll]): Call part instead of doc so its state isn't out of sync.
  6711. (-[WebCoreBridge searchFor:direction:caseSensitive:wrap:]): Pass extra wrap arg.
  6712. * kwq/WebCoreDOMNode.mm:
  6713. (+[WebCoreDOMNode nodeWithImpl:DOM::]):
  6714. Return a nil for a null element instead of croaking.
  6715. (-[WebCoreDOMNode initWithImpl:DOM::]): Ditto.
  6716. 2003-04-14 Maciej Stachowiak <mjs@apple.com>
  6717. Reviewed by Trey.
  6718. - fixed 3214900 - iBench JavaScript test times get progressively slower with each test run
  6719. The fix is to make sure to always cast NodeImpl * to DocumentImpl
  6720. *. Multiple inheritance means the pointer values need not be the
  6721. same.
  6722. * khtml/ecma/kjs_binding.cpp:
  6723. (ScriptInterpreter::getDOMObjectForDocument):
  6724. (ScriptInterpreter::putDOMObjectForDocument):
  6725. (ScriptInterpreter::deleteDOMObjectsForDocument):
  6726. (ScriptInterpreter::forgetDOMObjectsForDocument):
  6727. * khtml/ecma/kjs_binding.h:
  6728. * khtml/ecma/kjs_dom.cpp:
  6729. (KJS::getDOMNode):
  6730. 2003-04-11 David Hyatt <hyatt@apple.com>
  6731. Reviewed by darin
  6732. * ChangeLog:
  6733. * khtml/css/cssstyleselector.cpp:
  6734. * khtml/html/htmltokenizer.cpp:
  6735. (HTMLTokenizer::parseComment):
  6736. 2003-04-11 David Hyatt <hyatt@apple.com>
  6737. Refine the code that sets the display of floating and positioned
  6738. elements to block.
  6739. Reviewed by darin
  6740. * khtml/css/cssstyleselector.cpp:
  6741. 2003-04-14 Chris Blumenberg <cblu@apple.com>
  6742. Fixed build failure.
  6743. Reviewed by darin.
  6744. * khtml/rendering/render_table.cpp:
  6745. (RenderTable::cellAbove):
  6746. 2003-04-12 Chris Blumenberg <cblu@apple.com>
  6747. Fixed: 3162338 - Embedding SVG with <object type="image/svg+xml"> doesn't work
  6748. Whenever we encounter an OBJECT tag with a type that starts with "image/" we create a render image object instead of a render part object. The behavior is nice because this allows the render object to resize to the size of the image if no WIDTH and HEIGHT are supplied. For example, the image at the bottom of this page:
  6749. http://tantek.com/CSS/Examples/boxmodelhack.html
  6750. The problem is that we do this for image types that we can't handle and when there are plug-ins that *can* handle the types.
  6751. Reviewed by dave.
  6752. * khtml/html/html_objectimpl.cpp:
  6753. (HTMLObjectElementImpl::rendererIsNeeded): call canRenderImageType instead of serviceType.startsWith
  6754. (HTMLObjectElementImpl::createRenderer): call canRenderImageType instead of serviceType.startsWith
  6755. (HTMLObjectElementImpl::attach): call canRenderImageType instead of serviceType.startsWith
  6756. * kwq/KWQPixmap.h:
  6757. * kwq/KWQPixmap.mm:
  6758. (canRenderImageType): new, checks if the MIME type is supported by the image factory
  6759. * kwq/WebCoreImageRendererFactory.h: added supportedMIMETypes to the WebCoreImageRendererFactory protocol
  6760. 2003-04-13 Maciej Stachowiak <mjs@apple.com>
  6761. Reviewed by Trey.
  6762. - fixed 3165326 - javascript getSelection not implemented
  6763. * khtml/ecma/kjs_window.cpp:
  6764. (Window::get):
  6765. (WindowFunc::tryCall):
  6766. * khtml/ecma/kjs_window.h:
  6767. * khtml/ecma/kjs_window.lut.h:
  6768. 2003-04-13 Trey Matteson <trey@apple.com>
  6769. 3219720 - autofill mapping confused by tables, worse than MacIE (at store.apple.com)
  6770. If in scanning backwards we get to the end of a table row, we take a diversion
  6771. and scan the cell that is above the cell we started at.
  6772. Big improvement for store.apple.com.
  6773. Reviewed by Maciej
  6774. * khtml/rendering/render_table.cpp:
  6775. (RenderTable::cellAbove): New support routine to find the cell above another
  6776. * khtml/rendering/render_table.h:
  6777. * kwq/KWQKHTMLPart.h:
  6778. * kwq/KWQKHTMLPart.mm:
  6779. (KWQKHTMLPart::searchForLabelsAboveCell):
  6780. Get the cell above, scan its tree for matching text.
  6781. (KWQKHTMLPart::searchForLabelsBeforeElement):
  6782. Call above routine if we are working within a table
  6783. 2003-04-12 Chris Blumenberg <cblu@apple.com>
  6784. Fixed: 3188070 - 6I32 EMBED tag with no SRC attribute doesn't load the plugin
  6785. Reviewed by dave.
  6786. * khtml/khtml_part.cpp:
  6787. (KHTMLPart::requestObject): allow URL-less parts
  6788. 2003-04-11 Trey Matteson <trey@apple.com>
  6789. 3148002 - printing shouldn't depend on the size of the window
  6790. The basic strategy is copied from khtmlview's print method: We reset the width
  6791. of the document to the paper width minus margins, and relayout before paginating
  6792. and printing.
  6793. Reviewed by Richard.
  6794. * khtml/rendering/render_root.cpp:
  6795. (RenderRoot::layout): Always resize our view, even when doing a layout when in
  6796. printing mode. It's necessary to change the view size because we rely on the AppKit
  6797. built-in pagination, which operates using the view geometry.
  6798. * kwq/KWQKHTMLPart.h:
  6799. * kwq/KWQKHTMLPart.mm:
  6800. (KWQKHTMLPart::forceLayoutForPageWidth): New method to do a layout given a
  6801. specific width.
  6802. * kwq/WebCoreBridge.h:
  6803. * kwq/WebCoreBridge.mm:
  6804. (-[WebCoreBridge _setPrintingMode:]): Helper routine to take the RenderRoot in
  6805. and out of printing mode.
  6806. (-[WebCoreBridge forceLayout]): Turn printing mode on/off.
  6807. (-[WebCoreBridge forceLayoutForPageWidth:]): Turn printing mode on/off.
  6808. New glue routine to call part.
  6809. (-[WebCoreBridge drawRect:withPainter:]): Turn printing mode on/off.
  6810. (-[WebCoreBridge drawRect:]): Test paintDevice type instead of graphics context
  6811. to determine printing mode. The latter is still on when we are wrapping up the
  6812. job and want to be setting things back to normal.
  6813. (-[WebCoreBridge adjustFrames:]): Ditto.
  6814. (-[WebCoreBridge adjustPageHeightNew:top:bottom:limit:]): Turn printing mode on/off.
  6815. 2003-04-11 Darin Adler <darin@apple.com>
  6816. Reviewed by Richard.
  6817. - fixed 3225472 -- www.sina.com.cn uses A3A0 for full-width space; used to work in Simplified Chinese (Mac OS)
  6818. * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertUsingTEC): Work around the problem
  6819. in the Text Encoding Converter by changing all U+E5E5 to U+3000.
  6820. * kwq/KWQString.h: Added replace(QChar, QChar), since Qt has it and I need it.
  6821. * kwq/KWQString.mm:
  6822. (QString::find): Fixed a bug where we'd yield a FATAL and return -1 on deployment
  6823. if you searched for a non-ASCII character in a string that had ASCII valid and
  6824. not Unicode valid.
  6825. (QString::replace): Added replace(QChar, QChar).
  6826. === Safari-73 ===
  6827. 2003-04-10 Trey Matteson <trey@apple.com>
  6828. 3224973 - Safari sometimes stores data for AUTOCOMPLETE=OFF fields and password fields
  6829. New WC support function.
  6830. Reviewed by Darin.
  6831. * kwq/WebCoreBridge.h:
  6832. * kwq/WebCoreBridge.mm:
  6833. (-[WebCoreBridge elementWithName:inForm:]): Run through the form's elements
  6834. looking for a matching name.
  6835. === Safari-72 ===
  6836. 2003-04-10 Maciej Stachowiak <mjs@apple.com>
  6837. Reviewed by Darin and Ken.
  6838. - fixed 3223127 - REGRESSION: windows for PopCap games show scroll bars now, did not in Safari-60
  6839. * khtml/ecma/kjs_window.cpp:
  6840. (WindowFunc::tryCall): Re-add scrollbars property, but change it
  6841. to default to on even when other properties are specified (unlike
  6842. other window properties). This seems to match what Mac IE, Win IE
  6843. and Windows Mozilla do.
  6844. 2003-04-10 Darin Adler <darin@apple.com>
  6845. Reviewed by Trey.
  6846. - speed up startup by not loading the hand cursor until it's used
  6847. * khtml/khtml_part.cpp: (KHTMLPart::urlCursor): Use the hand cursor.
  6848. * khtml/khtmlpart_p.h: Don't store the hand cursor in a per-part global.
  6849. 2003-04-10 Darin Adler <darin@apple.com>
  6850. Reviewed by Maciej.
  6851. - fixed 3224077 -- REGRESSION: tables on MacNN forums messed up because we reject %% due to style parser
  6852. * khtml/css/tokenizer.flex: Add a + sign after the % in the percentage rule so we allow
  6853. any number of extra percent signs. This is a temporary hack.
  6854. * khtml/css/Makefile.am: Add make rules to build tokenizer.cpp so we don't have to do it by hand.
  6855. * khtml/css/maketokenizer: Added. Script used by the make rules.
  6856. * khtml/css/tokenizer.cpp: Regenerated. The only substantive change is in the state tables.
  6857. 2003-04-09 David Hyatt <hyatt@apple.com>
  6858. This first fix is a refinement of the patch I produced to fix <nobr>
  6859. on cnn.com recently. It wasn't quite good enough to plug the
  6860. regression on other sites. This fix just checks the object
  6861. we're currently breaking on (which is what I meant to do) and
  6862. not the last object examined (which will always just be the
  6863. previous object you looked at).
  6864. The code currently in the tree would work if you had two objects
  6865. like this:
  6866. [Normal Whitespace] [Nowrap Whitespace]
  6867. but not if you had three:
  6868. [Normal][Nowrap][Nowrap]
  6869. Since when you looked at the third object, |last| would be the
  6870. previous nowrap object and not the normal object. The line break
  6871. properly stays at the normal object as long as nowrap objects are
  6872. encountered, so this patch basically does what the original was
  6873. intended to do.
  6874. This fixes the line break problems on 1800flowers.com, a line break
  6875. problem on the bugzilla.mozilla.org layout test, a problem
  6876. on the zdnet layout test, and 3207196 a regression on livejournal.
  6877. The second fix in this patch is a simple reversal of
  6878. containsOnlyWhitespace. The method on RenderText was
  6879. backwards! No logical changes have been made... I just inverted
  6880. all the callers, and then I patched the method.
  6881. The third fix is to make images check for == normal instead of != nowrap
  6882. in a few places, thus preventing incorrect line break points from being
  6883. set up.
  6884. Reviewed by gramps
  6885. * khtml/rendering/bidi.cpp:
  6886. * khtml/rendering/render_text.cpp:
  6887. (RenderText::calcMinMaxWidth):
  6888. (RenderText::containsOnlyWhitespace):
  6889. 2003-04-09 Darin Adler <darin@apple.com>
  6890. Reviewed by Maciej.
  6891. - fixed 3223414 -- update text encoding menu and encoding names table
  6892. Made changes as suggested by Deborah Goldsmith and Peter Edberg from the International group.
  6893. * kwq/mac-encodings.txt:
  6894. Moved all Korean character sets that are not explicitly Macintosh from MacKorean to EUC_KR.
  6895. Moved Shift JIS character sets that are not explicitly Microsoft from DOSJapanese to ShiftJIS_X0213_00.
  6896. Moved cp949 from DOSKorean to EUC_KR (DOSKorean is not implemented in Jaguar).
  6897. Moved big5 character sets that are not explicitly Microsoft from DOSChineseTrad to Big5_HKSCS_1999.
  6898. Moved all gb2312-80 character sets from GB_2312_80 to GB_18030_2000.
  6899. Moved all gbk character sets from GBK_95 to GB_18030_2000.
  6900. Moved all euc-cn character sets from EUC_CN to GB_18030_2000.
  6901. * kwq/KWQCharsetData.c: Regenerated.
  6902. 2003-04-09 Darin Adler <darin@apple.com>
  6903. Reviewed by Richard.
  6904. - fixed 3223126 -- REGRESSION: exception BrowserWindow isDescendantOf:]: selector not recognized
  6905. * kwq/KWQWidget.mm: (QWidget::hasFocus): Add missing check of the class of the first
  6906. responder before calling an NSView method on it.
  6907. 2003-04-09 Darin Adler <darin@apple.com>
  6908. Reviewed by Maciej.
  6909. - fixed 3222708 -- REGRESSION: repro crash trying to read news at nttdocomo
  6910. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Make window.open do its location
  6911. change with scheduleRedirection like all the other JavaScript calls that change location.
  6912. 2003-04-08 Darin Adler <darin@apple.com>
  6913. Reviewed by Maciej.
  6914. - fixed 3221400 -- REGRESSION: password field with onfocus handler that does select causes focus/typing trouble
  6915. * kwq/KWQTextField.mm:
  6916. (-[KWQTextField selectText:]): Rearrange slightly.
  6917. (-[KWQTextField becomeFirstResponder]): Add code to make the secure field first responder
  6918. when in password mode. The old code did this indirectly through the call to setDocumentFocus,
  6919. which caused minor trouble.
  6920. (-[KWQSecureTextField selectText:]): Correct the current editor check to use a technique
  6921. that works even for the secure text field's editor (which does not get returned by currentEditor).
  6922. * kwq/KWQWidget.mm: (QWidget::hasFocus): Update the logic here so it works for the secure text
  6923. field and the secure text field's editor.
  6924. 2003-04-08 David Hyatt <hyatt@apple.com>
  6925. Fix for 3166374. Making the nudie blog work. My loop for
  6926. removing floating objects when they got deleted wasn't catching
  6927. all the cases.
  6928. Reviewed by darin
  6929. * khtml/rendering/render_object.cpp:
  6930. (RenderObject::removeFromObjectLists):
  6931. 2003-04-08 David Hyatt <hyatt@apple.com>
  6932. Fix for 3220979. Regression caused by changes to the CSS
  6933. parser's error handling. Fix is to narrow my original patch
  6934. to handle a specific subtype of error for properties.
  6935. Reviewed by darin
  6936. * khtml/css/parser.cpp:
  6937. * khtml/css/parser.y:
  6938. 2003-04-08 Richard Williamson <rjw@apple.com>
  6939. Fixed 3221353. Added check for nil part.
  6940. Reviewed by Darin.
  6941. * khtml/html/html_baseimpl.cpp:
  6942. (HTMLFrameElementImpl::detach):
  6943. 2003-04-07 Richard Williamson <rjw@apple.com>
  6944. Fix for 3220988. Cancel frame load if it's detached before
  6945. finished loading.
  6946. Reviewed by Maciej.
  6947. * khtml/html/html_baseimpl.cpp:
  6948. (HTMLFrameElementImpl::detach):
  6949. * khtml/khtml_part.h:
  6950. * kwq/KWQKHTMLPart.mm:
  6951. (KHTMLPart::frameDetached):
  6952. * kwq/WebCoreBridge.h:
  6953. 2003-04-07 David Hyatt <hyatt@apple.com>
  6954. Fix for 3220395. nearestFloatBottom() mistakenly returned 0
  6955. when it ran out of floats to return.
  6956. Reviewed by gramps
  6957. * khtml/rendering/render_block.cpp:
  6958. 2003-04-07 David Hyatt <hyatt@apple.com>
  6959. Fix for the scrollbar problem in 3220395. Does not yet fix
  6960. the overlap problem. lowest/rightmostPosition got broken by
  6961. the RenderFlow split. This patch makes sure that we still crawl
  6962. into inlines with overhangingContents.
  6963. Reviewed by darin
  6964. * khtml/rendering/render_block.cpp:
  6965. * khtml/rendering/render_flow.cpp:
  6966. (RenderFlow::lowestPosition):
  6967. (RenderFlow::rightmostPosition):
  6968. * khtml/rendering/render_flow.h:
  6969. 2003-04-07 David Hyatt <hyatt@apple.com>
  6970. * khtml/html/htmlparser.cpp:
  6971. (KHTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  6972. This is a patch to the parser to prevent residual
  6973. style from creating illegal constructs according to the DTD.
  6974. For now, it will just bail on performing the fixup if an
  6975. illegal construct would be created.
  6976. This fixes the regression #3219944.
  6977. Reviewed by darin
  6978. 2003-04-07 Darin Adler <darin@apple.com>
  6979. Reviewed by Dave.
  6980. - fixed 3220490 -- REGRESSION: MALLORY horiz scrollbar incorrectly appears with abs positioned content
  6981. * khtml/rendering/render_block.cpp: (RenderBlock::rightmostPosition):
  6982. Fix a place where I had xPos instead of yPos.
  6983. === Safari-71 ===
  6984. 2003-04-04 Darin Adler <darin@apple.com>
  6985. Reviewed by John and Richard.
  6986. - fixed 3218725 -- REGRESSION: reproducible crash in recalcStyle on reload
  6987. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::DocumentImpl): Initialize m_paintDevice to 0.
  6988. 2003-04-04 Darin Adler <darin@apple.com>
  6989. Reviewed by Dave.
  6990. - fixed 3125850 -- VIP: "search by goo" instead of "search by google" at livepage.apple.com
  6991. We decided not to fix the general problem right now, but just hack the site.
  6992. * khtml/html/html_formimpl.cpp: (HTMLSelectElementImpl::parseAttribute):
  6993. Just ignore the style set by livepage.apple.com, so we get a too-big
  6994. "Search by Google" rather than a cut off "Search by Goo".
  6995. 2003-04-04 David Hyatt <hyatt@apple.com>
  6996. Fix for the Search button cutoff on livepage.apple.com We
  6997. weren't honoring hspace/vspace on input elements.
  6998. Reviewed by darin
  6999. * khtml/html/html_formimpl.cpp:
  7000. (HTMLInputElementImpl::parseAttribute):
  7001. 2003-04-04 David Hyatt <hyatt@apple.com>
  7002. Fix for 3218085. Remove the bogus 2cm print rule for body in the
  7003. html4.css sheet.
  7004. Reviewed by darin/trey
  7005. * khtml/css/html4.css:
  7006. 2003-04-04 Darin Adler <darin@apple.com>
  7007. Reviewed by Ken.
  7008. - fixed 3217687 -- REGRESSION: printing uses widths from screen fonts, messing up layout
  7009. To get the style machinery working for me instead of against me, I had to introduce both
  7010. FontDef and QFont to the screen/printer font dichotomy. Just following that through took
  7011. care of the bugs we were seeing.
  7012. * khtml/rendering/font.h: Add a usePrinterFont field to FontDef (in APPLE_CHANGES).
  7013. * khtml/rendering/font.cpp: (Font::update): Set the new "printer font" field on the QFont
  7014. (in APPLE_CHANGES).
  7015. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyle): Set usePrinterFont field on the
  7016. document's fontDef (in APPLE_CHANGES).
  7017. * kwq/KWQFont.h: Add isPrinterFont, setter, getter.
  7018. * kwq/KWQFont.mm:
  7019. (QFont::QFont): Default isPrinterFont to false, copy when copying.
  7020. (QFont::operator=): Copy isPrinterFont.
  7021. (QFont::setPrinterFont): Added.
  7022. (QFont::operator==): Compare isPrinterFont.
  7023. * kwq/KWQFontMetrics.mm: Remove the _rendererUsesPrinterFont field and associated code.
  7024. This was only needed when the same QFont could be both printer and screen font, but now
  7025. the QFont itself is different.
  7026. * kwq/KWQPainter.mm: (QPainter::_updateRenderer): Remove textRendererUsesPrinterFont field
  7027. and associated code, for same reason as above.
  7028. * kwq/WebCoreBridge.mm: (-[WebCoreBridge reapplyStylesForDeviceType:]): Set the document's
  7029. paint device.
  7030. * kwq/WebCoreTextRendererFactory.h: Remove global setUsingPrinterFonts: and
  7031. usingPrinterFonts methods. We now handle this at the document level. Add a usingPrinterFont:
  7032. parameter to rendererWithFont:, which is now how KHTML tells the text rendering code which
  7033. kind to use.
  7034. * kwq/WebCoreTextRendererFactory.m: Removed KWQTextRendererFactoryUsingPrinterFonts.
  7035. (-[WebCoreTextRendererFactory rendererWithFont:usingPrinterFont:]): Added parameter.
  7036. - other changes
  7037. * kwq/KWQPaintDevice.h: Store the device type instead of using a virtual function.
  7038. * kwq/KWQPrinter.h: Set device type in constructor instead of overriding devType function.
  7039. * kwq/KWQPixmap.h: Changed destructor back to non-virtual (and entire class back to
  7040. non-polymorphic), now that QPaintDevice doesn't use virtual functions any more.
  7041. * kwq/KWQPaintDeviceMetrics.h: Remove unused width() and height().
  7042. * kwq/KWQPaintDeviceMetrics.mm: Ditto.
  7043. * WebCore.pbproj/project.pbxproj: Removed KWQTextRendererFactory.h.
  7044. * kwq/KWQTextRendererFactory.h: Removed.
  7045. 2003-04-03 Maciej Stachowiak <mjs@apple.com>
  7046. Reviewed by Trey.
  7047. - fixed 3031544 - can't login on secure paytrust page due to lack of onchange handler
  7048. * kwq/KWQTextField.mm:
  7049. (-[KWQTextField control:textShouldBeginEditing:]): Send FocusIn event
  7050. to event filter here.
  7051. (-[KWQTextField control:textShouldEndEditing:]): Send FocusOut event to
  7052. event filter here.
  7053. (-[KWQTextField fieldEditorDidBecomeFirstResponder]): Removed.
  7054. (-[KWQTextField fieldEditorDidResignFirstResponder]): Removed.
  7055. * kwq/WebCoreFirstResponderChanges.h: Removed first responder methods.
  7056. 2003-04-03 Trey Matteson <trey@apple.com>
  7057. 3067928 - printing should not break lines in half
  7058. 3217607 - when printing we should not draw the selection
  7059. We leverage the existing knowledge that a couple render object classes had
  7060. for adjusting pagination. Wrote 3217705 saying we should add similar
  7061. smarts to a few more places.
  7062. Reviewed by Darin.
  7063. * ForwardingHeaders/qprinter.h: Added.
  7064. * khtml/rendering/render_list.cpp:
  7065. (RenderListMarker::paintObject): Call our special setBestTruncatedAt instead
  7066. of khtml's setTruncatedAt.
  7067. * khtml/rendering/render_root.cpp:
  7068. (RenderRoot::setBestTruncatedAt): Accumulate the best pagination boundary.
  7069. * khtml/rendering/render_root.h:
  7070. * khtml/rendering/render_text.cpp:
  7071. (RenderText::paintObject): Call our special setBestTruncatedAt instead
  7072. of khtml's setTruncatedAt.
  7073. * kwq/KWQKHTMLPart.h:
  7074. * kwq/KWQKHTMLPart.mm:
  7075. (KWQKHTMLPart::paint): Don't draw the debugging red background when printing.
  7076. (KWQKHTMLPart::adjustPageHeight): The meat of the change. Make another
  7077. painting pass (with actual painting disabled) to get the pagination boundary
  7078. set as a side effect. Return result up to AppKit.
  7079. * kwq/KWQPaintDevice.h: devType() made virtual
  7080. * kwq/KWQPainter.h:
  7081. * kwq/KWQPainter.mm:
  7082. (QPainter::QPainter): New constructor for making a printing painter.
  7083. (QPainter::device): Return either the Screen or Printer device.
  7084. * kwq/KWQPixmap.h: Destructor needed to become virtual.
  7085. * kwq/KWQPrinter.h: Implement devType().
  7086. * kwq/WebCoreBridge.h:
  7087. * kwq/WebCoreBridge.mm:
  7088. (-[WebCoreBridge drawRect:]): Setup printer device in our painter if we're
  7089. not drawing to the screen.
  7090. (-[WebCoreBridge adjustFrames:]): Ditto.
  7091. (-[WebCoreBridge adjustPageHeightNew:top:bottom:limit:]): Forward to part.
  7092. 2003-04-03 Darin Adler <darin@apple.com>
  7093. Reviewed by John.
  7094. - fixed 3194468 -- ARCH: text zoom should scale line-height as well as font-size
  7095. * khtml/css/css_valueimpl.h:
  7096. * khtml/css/css_valueimpl.cpp: (CSSPrimitiveValueImpl::computeLength): Add a new version that does
  7097. a multiply before rounding. Also simplify the rounding code.
  7098. * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::applyRule): For line height, multiply by the
  7099. text zoom factor in cases where the height isn't already relative to the font size.
  7100. - other changes
  7101. * khtml/rendering/render_replaced.cpp: (RenderWidget::paintObject): Disable code to work around
  7102. X11 widget size limit. It can only do harm for us.
  7103. 2003-04-03 Darin Adler <darin@apple.com>
  7104. Reviewed by Ken.
  7105. - fixed bug 3216832 -- REGRESSION: scroll bar doesn't appear soon enough when shrinking excite.com horizontally
  7106. * khtml/rendering/table_layout.cpp: (AutoTableLayout::calcEffectiveWidth):
  7107. Fixed mistake where using the wrong variable led to the colspan distribution
  7108. loop terminating early, and not giving any additional width to the second column.
  7109. - fixed some navigator properties as discussed in the meeting yesterday (with Don, Dave, Mike Malone)
  7110. * khtml/ecma/kjs_navigator.cpp: (Navigator::getValueProperty):
  7111. Use the date 20030107 instead of 20021225 because people think it's less arbitrary.
  7112. Use "Apple Computer, Inc." as the vendor string.
  7113. 2003-04-02 David Hyatt <hyatt@apple.com>
  7114. Fix for 3216650. Needed an additional check when the disabled
  7115. attribute is changed on <link> elements for stylesheets to keep
  7116. the pending sheet count in sync.
  7117. Reviewed by gramps
  7118. * khtml/html/html_headimpl.cpp:
  7119. (HTMLLinkElementImpl::parseAttribute):
  7120. 2003-04-02 David Hyatt <hyatt@apple.com>
  7121. Fix for 3212011. Avoid applying a fixup to the minwidth
  7122. of overflow:hidden table cells, since we don't really have
  7123. an accurate width to compare against.
  7124. I filed followup bug 3216709 to deal with the fact that this
  7125. fixup has been disabled.
  7126. Reviewed by john
  7127. * khtml/rendering/render_block.cpp:
  7128. 2003-04-02 David Hyatt <hyatt@apple.com>
  7129. Do not assume all columns have a minwidth/maxwidth of 1px.
  7130. Instead give them a min/maxwidth of 0px, and only inflate to
  7131. 1px if a cell originates in the column.
  7132. This fixes the error on travelocity.com, where a large colspan
  7133. leads to the implicit creation of a new column that contains no
  7134. originating cells. That new column should be 0px wide, not
  7135. 1px.
  7136. The bug # is 3170592.
  7137. Reviewed by kocienda
  7138. * khtml/rendering/table_layout.cpp:
  7139. (AutoTableLayout::recalcColumn):
  7140. * khtml/rendering/table_layout.h:
  7141. 2003-04-01 David Hyatt <hyatt@apple.com>
  7142. Fix for excite.com. There are many bugs being fixed that all
  7143. contributed to the wideness of the table.
  7144. The bug # is 3200534
  7145. Reviewed by darin
  7146. * khtml/rendering/table_layout.cpp:
  7147. (shouldScaleColumns):
  7148. 2003-04-02 Darin Adler <darin@apple.com>
  7149. Reviewed by Dave.
  7150. - fixed 3213854 -- REGRESSION: can't click on a text field to select it
  7151. - fixed 3201477 -- friends links don't work on hyatt's blog
  7152. * khtml/rendering/render_object.cpp: (RenderObject::nodeAtPoint): Skip floating objects when
  7153. hit testing children.
  7154. * khtml/rendering/render_inline.cpp: (RenderInline::nodeAtPoint): Ditto.
  7155. 2003-04-01 Trey Matteson <trey@apple.com>
  7156. 3119711 - redirects to anchors leave window half-loaded (was SCClib.org is half loaded, half rendered)
  7157. The problem happened when an anchor nav was the last half of a client redirect.
  7158. We would never stop the redirect timer, and thus never post a clientRedirectCanceled
  7159. message up through the stack. This left the app thinking that it was in redirect
  7160. mode even when the whole navigation had finished, which makes it not clear the
  7161. progress bar.
  7162. Reviewed by Darin.
  7163. * kwq/KWQKHTMLPart.mm:
  7164. (KWQKHTMLPart::scrollToAnchor): Stop the redirect timer.
  7165. 2003-04-01 Maciej Stachowiak <mjs@apple.com>
  7166. Reviewed by Dave.
  7167. - fixed 3182103 - REGRESSION: one developer.apple.com page is so slow, it almost seems like a hang
  7168. * khtml/rendering/bidi.cpp:
  7169. (RenderBlock::findNextLineBreak): Avoid returning bad iterators
  7170. that point past the end of an object instead of to the start ot
  7171. the next one.
  7172. 2003-04-01 Darin Adler <darin@apple.com>
  7173. Reviewed by Maciej.
  7174. - fixed 3123709 -- redirect isn't followed at Apple's Dental Benefits provider
  7175. * khtml/dom/dom2_events.h: Added boolean "isWindowEvent" parameter.
  7176. * khtml/dom/dom2_events.cpp: (EventListener::handleEvent): Ignore boolean "isWindowEvent" parameter.
  7177. * khtml/ecma/kjs_events.h: Added boolean "isWindowEvent" parameter.
  7178. * khtml/ecma/kjs_events.cpp: (JSEventListener::handleEvent): Look at new "isWindowEvent" parameter,
  7179. and send the event to the window if it's true, rather than the current node, document, and form.
  7180. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::defaultEventHandler): Pass true for "isWindowEvent".
  7181. * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::handleLocalEvents): Pass false for "isWindowEvent".
  7182. 2003-04-01 Darin Adler <darin@apple.com>
  7183. Reviewed by John.
  7184. - fixed 3144287 -- CSS with media=print not used when printing
  7185. * kwq/KWQKHTMLPart.h: Added a setMediaType function, so the bridge can access
  7186. the KHTMLView::setMediaType function, which is private (KWQKHTMLPart is a friend).
  7187. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::setMediaType): Call setMediaType on the
  7188. KHTMLView.
  7189. * kwq/WebCoreBridge.h: Added a device type parameter to reapplyStyles.
  7190. * kwq/WebCoreBridge.mm: (-[WebCoreBridge reapplyStylesForDeviceType:]):
  7191. Call setMediaType with the appropriate media type for the passed in device type.
  7192. 2003-04-01 David Hyatt <hyatt@apple.com>
  7193. Table code fixes. Working to try to fix excite.com.
  7194. Reviewed by darin
  7195. * khtml/rendering/table_layout.cpp:
  7196. (shouldScaleColumns):
  7197. (AutoTableLayout::calcMinMaxWidth):
  7198. 2003-04-01 Darin Adler <darin@apple.com>
  7199. Reviewed by Dave.
  7200. - fixed 3213900 -- REGRESSION: crash in CSS parser at http://radioalice.com/
  7201. * khtml/css/cssparser.cpp: (CSSParser::parseColor): Add a missing check for nil.
  7202. 2003-04-01 Darin Adler <darin@apple.com>
  7203. Reviewed by Trey.
  7204. - fixed 3202542 -- REGRESSION: preinitialized password inputs do not show dots (affects mac.com)
  7205. * kwq/KWQTextField.mm: (-[KWQTextField setPasswordMode:]): Remove code that sets the string
  7206. value to "". This is not needed, and because a text changed signal is sent out it makes the
  7207. caller think the text was deleted intentionally. Added code to move the string from the current
  7208. field in use to the other field, so changing the password mode does not make the string go away.
  7209. The old code was fragile and depended on the order of operations.
  7210. 2003-03-31 Darin Adler <darin@apple.com>
  7211. * English.lproj/InfoPlist.strings: Changed "1.0 Beta" to "1.0 Beta 2".
  7212. * WebCore.pbproj/project.pbxproj: Changed "1.0 Beta" to "1.0 Beta 2".
  7213. 2003-03-31 David Hyatt <hyatt@apple.com>
  7214. Fixes for 3211862 and 3212750, add error-handling cases for
  7215. property values to the CSS parser so the whole sheet doesn't
  7216. get rejected.
  7217. Reviewed by darin
  7218. * khtml/css/parser.cpp:
  7219. * khtml/css/parser.y:
  7220. 2003-03-31 Darin Adler <darin@apple.com>
  7221. Reviewed by Chris.
  7222. - fixed 3213093 -- REGRESSION: crash accessing menu items right after launch with about:blank as homepage
  7223. * khtml/khtmlview.cpp: (KHTMLView::viewportMouseMoveEvent):
  7224. Another place needed a check for null.
  7225. 2003-03-31 David Hyatt <hyatt@apple.com>
  7226. Fix for 3211849. I accidentally removed a BORDER_COLOR case
  7227. from the switch when I removed the transparency check for
  7228. the shorthand. The case originally fell through to the case
  7229. below it, so a straight removal was wrong. I needed to add
  7230. it to the following set of case labels.
  7231. Reviewed by darin
  7232. * khtml/css/cssstyleselector.cpp:
  7233. 2003-03-31 David Hyatt <hyatt@apple.com>
  7234. First-letter can be floated. Make sure we mutate the display
  7235. to BLOCK so that we don't make an inline when we're floating.
  7236. Fixes bug 3186004.
  7237. Reviewed by darin
  7238. * khtml/rendering/render_block.cpp:
  7239. 2003-03-31 Darin Adler <darin@apple.com>
  7240. Reviewed by John.
  7241. - fixed 3213093 -- accessing menu items immediately after launch causes crash when about:blank is homepage
  7242. * khtml/khtmlview.cpp: (isSubmitImage): Add check for node of 0.
  7243. - fixed 3211461 -- crash in KWQListIteratorImpl tabbing through w3c test page
  7244. * kwq/KWQKHTMLPart.h: Added childFrameForPart function, better than KHTMLPart::frame because it works
  7245. for HTML frames inside objects as well as plain old HTML frames.
  7246. * kwq/KWQKHTMLPart.mm:
  7247. (KWQKHTMLPart::childFrameForPart): Like KHTMLPart::frame, but looks through m_objects too.
  7248. (KWQKHTMLPart::nextKeyViewInFrameHierarchy): Use childFrameForPart instead of frame function.
  7249. 2003-03-30 Maciej Stachowiak <mjs@apple.com>
  7250. Reviewed by Darin.
  7251. - fixed 3206524 - incyte.com "load properties" function does not work
  7252. * khtml/html/html_documentimpl.cpp:
  7253. (HTMLDocumentImpl::close): Make sure to clear the tokenizer before firing
  7254. the onLoad handler, otherwise document.write from inside an onLoad handler
  7255. will fail.
  7256. * khtml/xml/dom_docimpl.h:
  7257. * khtml/xml/dom_docimpl.cpp:
  7258. (DocumentImpl::close): Call closeInternal.
  7259. (DocumentImpl::closeInternal): New version of close that allows
  7260. bypassing the tokenizer null check, in case we already deleted the
  7261. tokenizer/
  7262. 2003-03-30 Maciej Stachowiak <mjs@apple.com>
  7263. Reviewed by Trey.
  7264. - fixed 3169064 - can't search at lonelyplanet.com; onSubmit handler fails due to problem addressing radio button
  7265. * khtml/ecma/kjs_dom.cpp:
  7266. (DOMNamedNodesCollection::tryGet): Allow lookup by id as well as
  7267. by integer index.
  7268. 2003-03-29 Maciej Stachowiak <mjs@apple.com>
  7269. Reviewed by Trey.
  7270. - fixed 3138427 - new window opened by javascript is too small for popcap.com game
  7271. * khtml/ecma/kjs_window.cpp:
  7272. (WindowFunc::tryCall): Be a bit more tolerant of misformatted attribute strings.
  7273. 2003-03-29 Maciej Stachowiak <mjs@apple.com>
  7274. Reviewed by Trey.
  7275. - fixed 3180786 - Can't log in to the LL Bean Web site
  7276. The problem on this site was misnested tags, leading to two FORM
  7277. elements that were nested. Both their onSubmit handlers fired, and
  7278. the outer one returned false. The fix was to avoid bubbling submit
  7279. events, since this can never be useful in a valid document and
  7280. because that is what other browsers seem to do, and what Win IE
  7281. documents.
  7282. * khtml/html/html_formimpl.cpp:
  7283. (HTMLFormElementImpl::prepareSubmit): Don't allow the submit event to bubble.
  7284. 2003-03-28 Maciej Stachowiak <mjs@apple.com>
  7285. Reviewed by Ken.
  7286. - improved on Darin's fix for 3211289 - REGRESSION: nil-deref in bridgeForWidget
  7287. * kwq/KWQKHTMLPart.mm:
  7288. (KWQKHTMLPart::bridgeForWidget): Special-case KHTMLView - this is
  7289. the only kind of widget in the program that's not a form control
  7290. (so nodeForWidget would return nil for it).
  7291. 2003-03-28 David Hyatt <hyatt@apple.com>
  7292. Fix a regression caused by my addition of nearestFloatBottom
  7293. to the code. I needed to make that a loop rather than just call
  7294. it once, since the nearestFloatBottom could be a bad position
  7295. for the next line.
  7296. This fixes the overlapping text problem at CNN: 3186593.
  7297. Reviewed by john
  7298. * khtml/rendering/bidi.cpp:
  7299. 2003-03-28 Darin Adler <darin@apple.com>
  7300. Reviewed by Ken.
  7301. - fixed 3191163 -- hang in QPtrListIterator at www.phiffer.com
  7302. - fixed 3183520 -- XML page has no vertical scrollbar
  7303. The hang was due to an exponential algorithm in lowest/rightmostPosition.
  7304. Fixed by making some simplifications to these functions, used only to determine the size
  7305. of the entire web page. While doing that I cleared some things up that made the XML
  7306. scroll bar problem go away too.
  7307. Note that www.phiffer.com still does not render right.
  7308. * khtml/rendering/render_block.cpp:
  7309. (RenderBlock::lowestPosition): Since this is always called on the whole tree, don't worry
  7310. about which parent deals with which child. Just make sure that every object is visited
  7311. exactly once.
  7312. (RenderBlock::rightmostPosition): Ditto.
  7313. * khtml/rendering/render_html.cpp: (RenderHtml::layout): Use the result from calling
  7314. lowestPosition on the root, since some floating/positioned objects hang off there, rather
  7315. than here. This seems consistent with the long term approach of doing more work in the root
  7316. and less in RenderHtml, since XML documents don't have a RenderHtml.
  7317. * khtml/rendering/render_root.cpp:
  7318. (RenderRoot::docHeight): Call lowestPosition() on self rather than on children. Now that
  7319. I understand the method, it's clear this is the correct way to do things.
  7320. (RenderRoot::docWidth): Ditto, but rightmostPosition().
  7321. - fixed 3211289 -- REGRESSION: nil-deref in bridgeForWidget
  7322. Maciej may have some ideas about how to fix this even better, but this
  7323. is better than just rolling his change out.
  7324. * kwq/KWQKHTMLPart.mm:
  7325. (KWQKHTMLPart::nextKeyViewForWidget): Added an assertion.
  7326. (KWQKHTMLPart::bridgeForWidget): Handle case where node is 0 by returning 0.
  7327. (KWQKHTMLPart::partForNode): Added an assertion.
  7328. (KWQKHTMLPart::nodeForWidget): Handle case where eventFilterObject is 0 by returning 0.
  7329. (KWQKHTMLPart::setDocumentFocus): Quietly do nothing if the node is 0.
  7330. (KWQKHTMLPart::clearDocumentFocus): Quietly do nothing if the node is 0.
  7331. 2003-03-27 David Hyatt <hyatt@apple.com>
  7332. A collection of fixes for tables.
  7333. (1) Fixed table layout should only be used if an explicit width
  7334. is specified on a table.
  7335. (2) width="0" and height="0" should be ignored on table cells!
  7336. (3) Fixed table layout wasn't spreading extra space over
  7337. columns.
  7338. Reviewed by mjs
  7339. * khtml/html/html_tableimpl.cpp:
  7340. (HTMLTableCellElementImpl::parseAttribute):
  7341. * khtml/rendering/render_table.cpp:
  7342. (RenderTable::setStyle):
  7343. * khtml/rendering/table_layout.cpp:
  7344. (FixedTableLayout::layout):
  7345. 2003-03-27 David Hyatt <hyatt@apple.com>
  7346. Fix for the top of directory.apple.com. Only use the fixed
  7347. width on the cell (with nowrap set) if it is *larger* than
  7348. our current minwidth.
  7349. Reviewed by darin
  7350. * khtml/rendering/render_table.cpp:
  7351. (RenderTableCell::calcMinMaxWidth):
  7352. 2003-03-27 David Hyatt <hyatt@apple.com>
  7353. Fix for 3166374. When a float is removed, crawl up and down the
  7354. tree looking for blocks that contain the float and dirty them all.
  7355. Reviewed by darin
  7356. * ChangeLog:
  7357. * khtml/rendering/render_block.cpp:
  7358. * khtml/rendering/render_block.h:
  7359. * khtml/rendering/render_object.cpp:
  7360. (RenderObject::markAllDescendantsWithFloatsForLayout):
  7361. (RenderObject::removeFromObjectLists):
  7362. * khtml/rendering/render_object.h:
  7363. 2003-03-27 Maciej Stachowiak <mjs@apple.com>
  7364. Reviewed by Darin.
  7365. - fixed 3192344 - nil-deref in KWin::info scrolling amazon while other shopping tabs load
  7366. - fixed 3098365 - Default window size changes as a result of popup windows
  7367. - fixed 3189291 - javascript window.close() closes window, not just originating tab
  7368. * kwq/KWQKHTMLPart.h:
  7369. * kwq/KWQKHTMLPart.mm:
  7370. (KWQKHTMLPart::scheduleClose): Close via the bridge, not the window directly.
  7371. (KWQKHTMLPart::bridgeForWidget): Take const QWidget * instead of QWidget *.
  7372. (KWQKHTMLPart::nodeForWidget): Likewise.
  7373. (KWQKHTMLPart::khtmlMousePressEvent): Deal with responder issues via bridge,
  7374. not window directly.
  7375. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Likewise.
  7376. (KWQKHTMLPart::mouseDown): Likewise.
  7377. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7378. (KHTMLPartBrowserExtension::createNewWindow): Set resizability via bridge,
  7379. not window directly.
  7380. * kwq/KWQTextArea.mm:
  7381. (-[KWQTextArea becomeFirstResponder]): Deal with bridge for first responder
  7382. issues, not window directly.
  7383. (-[KWQTextArea drawRect:]): Likewise.
  7384. (-[KWQTextAreaTextView insertTab:]): Likewise.
  7385. (-[KWQTextAreaTextView insertBacktab:]): Likewise.
  7386. (-[KWQTextAreaTextView shouldDrawInsertionPoint]): Likewise.
  7387. (-[KWQTextAreaTextView selectedTextAttributes]): Likewise.
  7388. * kwq/KWQWidget.mm:
  7389. (QWidget::setActiveWindow): Focus window via bridge.
  7390. (QWidget::hasFocus): Handle first responder issues via bridge.
  7391. (QWidget::setFocus): Likewise.
  7392. (QWidget::isVisible): Get window from bridge.
  7393. (QWidget::mapFromGlobal): Get window from bridge.
  7394. (QWidget::disableFlushDrawing): Add comment noting why it's OK
  7395. to get the window from the view instead of from the bridge here.
  7396. (QWidget::enableFlushDrawing): Likewise.
  7397. * kwq/KWQWindowWidget.mm:
  7398. (KWQWindowWidget::frameGeometry): Work through bridge, not window
  7399. directly.
  7400. (KWQWindowWidget::mapToGlobal): Likewise.
  7401. (KWQWindowWidget::setFrameGeometry): Likewise.
  7402. * kwq/WebCoreBridge.h:
  7403. 2003-03-27 David Hyatt <hyatt@apple.com>
  7404. This is just a long-standing screwup where I didn't port an old
  7405. table fix I made to Lars' new table code properly. The original
  7406. fix had this check in it.
  7407. The bug is 3171963 (cvs.com).
  7408. Reviewed by darin
  7409. * khtml/rendering/render_table.cpp:
  7410. (RenderTableSection::layoutRows):
  7411. 2003-03-27 Darin Adler <darin@apple.com>
  7412. Reviewed by Trey.
  7413. - fixed 3156509 -- Safari fills src="" frame with current contents of frameset instead of leaving it empty
  7414. The trick here is to always use "about:blank" when the frame URL is empty string.
  7415. If we pass the empty string elsewhere, it's going to get passed to completeURL and
  7416. turned into a reference to the current document, and we have to avoid doing that
  7417. ourselves explicitly too.
  7418. * khtml/html/html_baseimpl.cpp:
  7419. (HTMLFrameElementImpl::HTMLFrameElementImpl): Let the URL default to null rather
  7420. than "about:blank". We do want to treat the frame as "about:blank", but that's not
  7421. something people should see when inspecting the frame via the DOM.
  7422. (HTMLFrameElementImpl::isURLAllowed): Allow empty URLs explicitly, so we don't
  7423. call completeURL on them.
  7424. (HTMLFrameElementImpl::updateForNewURL): Map empty URLs to "about:blank" at this level.
  7425. (HTMLFrameElementImpl::attach): Do the same thing here. At some point we can share more
  7426. code between these two.
  7427. (HTMLFrameElementImpl::setLocation): Change this to call updateForNewURL. Not only does
  7428. this make us handle the empty URL case properly, it also gets the benefit of other things
  7429. we do in updateForNewURL, like handling the "isURLAllowed" rule, and properly handling
  7430. the case where we already have a suitable frame.
  7431. - other changes
  7432. * kwq/KWQKHTMLView.mm: Improved a comment.
  7433. === Safari-69 ===
  7434. 2003-03-26 Maciej Stachowiak <mjs@apple.com>
  7435. Reviewed by Chris.
  7436. - fix unitialized access.
  7437. * kwq/KWQKHTMLPart.mm:
  7438. (KWQKHTMLPart::KWQKHTMLPart):
  7439. 2003-03-26 Maciej Stachowiak <mjs@apple.com>
  7440. Reviewed by Trey.
  7441. Made progress towards better handling of window operations.
  7442. * khtml/ecma/kjs_window.cpp:
  7443. (Window::get): Replace a few part->widget() calls with part->view() -- just
  7444. as good for the real khtml, but easier to adapt to with KWQ.
  7445. (WindowFunc::tryCall): Likewise.
  7446. * khtml/khtmlview.h:
  7447. * kwq/KWQKHTMLPart.h:
  7448. * kwq/KWQKHTMLPart.mm:
  7449. (KWQKHTMLPart::~KWQKHTMLPart): Delete the window widget.
  7450. (KWQKHTMLPart::topLevelWidget): Return the window widget.
  7451. (KWQKHTMLPart::setBridge): Make a new window widget passing it the bridge.
  7452. * kwq/KWQKHTMLView.mm:
  7453. (KHTMLView::topLevelWidget): Moved here from KHTMLView; get the top level
  7454. widget from the part.
  7455. (KHTMLView::mapToGlobal): Moved here from KHTMLView; add a needed cast.
  7456. * kwq/KWQWidget.h:
  7457. * kwq/KWQWidget.mm: Remove all top level widget considerations.
  7458. * kwq/KWQWindowWidget.h:
  7459. * kwq/KWQWindowWidget.mm:
  7460. (KWQWindowWidget::KWQWindowWidget): Changed to work based on bridge, not window.
  7461. (KWQWindowWidget::~KWQWindowWidget): Ditto.
  7462. (KWQWindowWidget::frameGeometry): Ditto.
  7463. (KWQWindowWidget::mapToGlobal): Ditto.
  7464. (KWQWindowWidget::mapFromGlobal): Ditto.
  7465. (KWQWindowWidget::setFrameGeometry): Ditto.
  7466. Also:
  7467. * kwq/KWQKHTMLPart.cpp: Removed stuff that did not belong here.
  7468. * kwq/KWQKHTMLPart.mm:
  7469. (KWQKHTMLPart::selectionStartOffset): Moved here from KWQKHTMLPart.cpp
  7470. (KWQKHTMLPart::selectionEndOffset): Likewise.
  7471. (KWQKHTMLPart::selectionStart): Likewise.
  7472. (KWQKHTMLPart::selectionEnd): Likewise.
  7473. (KWQKHTMLPart::selectionRect): Likesie.
  7474. 2003-03-26 Darin Adler <darin@apple.com>
  7475. Reviewed by Trey.
  7476. - fixed a storage leak when running cvs-base
  7477. * khtml/rendering/render_list.h: Added _markerInstalledInParent.
  7478. * khtml/rendering/render_list.cpp:
  7479. (RenderListItem::setStyle): Set _markerInstalledInParent to false when
  7480. creating a new marker.
  7481. (RenderListItem::detach): Detach the marker if it's not not installed in the
  7482. parent yet.
  7483. (RenderListItem::updateMarkerLocation): Set _markerInstalledInParent to true
  7484. when installing the marker in a parent.
  7485. 2003-03-26 David Hyatt <hyatt@apple.com>
  7486. Make <label> use tag list 1. Fixes 3206063. Residual style
  7487. changes called this out.
  7488. Reviewed by darin
  7489. * khtml/html/dtd.cpp:
  7490. (DOM::checkChild):
  7491. 2003-03-26 Darin Adler <darin@apple.com>
  7492. Reviewed by Ken.
  7493. - fixed 3208468 -- REGRESSION: checkbox immediately unchecks the first time you check it
  7494. The stateChanged signal must be delivered before the mouse up event is handled.
  7495. * kwq/KWQButton.mm:
  7496. (-[KWQButton initWithQButton:]): Use [self init] instead of [super init]; no real difference,
  7497. just makes more logical sense.
  7498. (-[KWQButton action:]): Don't send the mouse up event here.
  7499. (-[KWQButton sendConsumedMouseUpIfNeeded]): Added. New method that sends the consumed mouse
  7500. up event.
  7501. (-[KWQButton mouseDown:]): Use a simplified scheme that uses only a single boolean to control
  7502. sending the consumed mouse up event. Call sendConsumedMouseUpIfNeeded to do the deed.
  7503. (QButton::clicked): Added comment to explain why it's important to send the consumed mouse
  7504. up event here. Added a call to the new sendConsumedMouseUpIfNeeded method, replacing the
  7505. code that was formerly in -[KWQButton action:].
  7506. 2003-03-25 David Hyatt <hyatt@apple.com>
  7507. Fix font-family parsing to match the spec (and other browsers).
  7508. This fixes bugs 3197584 and 3207760.
  7509. Also fix pseudos to be lower-cased. Fixes 3208303.
  7510. Reviewed by darin
  7511. * khtml/css/css_valueimpl.h:
  7512. * khtml/css/cssparser.cpp:
  7513. (CSSParser::parseFontFamily):
  7514. 2003-03-24 Trey Matteson <trey@apple.com>
  7515. Pass -seg_addr_table_filename <FILENAME> to ld. This makes our frameworks in
  7516. SYMROOT actually work for symbol resolution because they will have the correct
  7517. prebinding address. It also fixes obscure B&I problems with prebinding
  7518. reported by Matt Reda.
  7519. Note the reason all this is tricky for our projects is that we have a different
  7520. install location for Jaguar and Panther. The purpose of this arg is to declare
  7521. at link time our eventual location, which allows the prebinding address to be
  7522. found in /AppleInternal/Developer/seg_addr_table. We use a funky back-tick
  7523. expression within OTHER_LDFLAGS to get a conditional value depending on the
  7524. build train we are in.
  7525. This can all go away once we only build on Panther and don't embed the
  7526. frameworks inside the Safari.app wrapper.
  7527. In addition I fixed the OTHER_LDFLAGS settings in our build styles to be
  7528. additive instead of overriding, so we have the args we used for B&I in force
  7529. when building outside of B&I.
  7530. Reviewed by Maciej.
  7531. * WebCore.pbproj/project.pbxproj:
  7532. 2003-03-24 David Hyatt <hyatt@apple.com>
  7533. Clean up isInlineFlow. Add a couple of new methods that I'll
  7534. be converting code over to use (carefully) piece by piece in
  7535. future patches.
  7536. Reviewed by gramps
  7537. * khtml/rendering/render_block.h:
  7538. * khtml/rendering/render_flow.h:
  7539. * khtml/rendering/render_inline.h:
  7540. * khtml/rendering/render_object.cpp:
  7541. (RenderObject::setStyle):
  7542. * khtml/rendering/render_object.h:
  7543. 2003-03-24 Maciej Stachowiak <mjs@apple.com>
  7544. Reviewed by Richard.
  7545. - fixed 3083339 - significant top and side margin appended to new windows
  7546. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7547. (KHTMLPartBrowserExtension::createNewWindow): Account for distinction between
  7548. frame and content rect.
  7549. * kwq/KWQStyle.h: Return 0 for the appropriate style to avoid
  7550. adding extra padding when making a new window from JavaScript.
  7551. * kwq/WebCoreBridge.h: Prototype new methods.
  7552. 2003-03-24 David Hyatt <hyatt@apple.com>
  7553. Fix for crash on www.lnt.com. 3199929 is the bug number.
  7554. Blocks must have all their kids as inlines or all theirs kids
  7555. as blocks. Floats and positioned elements are special and
  7556. disregarded when this check occurs.
  7557. If a float or positioned element suddenly becomes a normal flow
  7558. element again, then the parent block might have to make its kids
  7559. all be non-inline or it might have to wrap a normal flow inline
  7560. with an anonymous block.
  7561. This patch fixed RenderObject's setStyle method to check for
  7562. this situation and to make the parent block fix itself up
  7563. appropriately.
  7564. Reviewed by darin
  7565. * khtml/rendering/render_object.cpp:
  7566. (RenderObject::setStyle):
  7567. 2003-03-24 David Hyatt <hyatt@apple.com>
  7568. ignore the float property on first-letter styles.
  7569. The bug # is 3186044.
  7570. Reviewed by darin
  7571. * khtml/css/parser.cpp:
  7572. * khtml/rendering/render_block.cpp:
  7573. 2003-03-24 David Hyatt <hyatt@apple.com>
  7574. Add error-handling case to deal with a common CSS malformation:
  7575. clip: rect( )
  7576. The bug is 3206171.
  7577. Reviewed by darin
  7578. * khtml/css/parser.cpp:
  7579. * khtml/css/parser.y:
  7580. 2003-03-22 Darin Adler <darin@apple.com>
  7581. Reviewed by John.
  7582. - fixed 3203869 -- Monaco 9 looks different in Safari than in TextEdit (uses outline instead of bitmap)
  7583. * kwq/KWQFontMetrics.mm: (QFontMetricsPrivate::getRenderer): Get a new renderer
  7584. if the one we have is wrong printer-vs-screen-wise. For speed, use a global
  7585. variable rather than methods.
  7586. * kwq/KWQPainter.mm: (QPainter::_updateRenderer): Get a new renderer if the
  7587. one we have is wrong printer-vs-screen-wise. For speed, use a global variable
  7588. rather than methods.
  7589. * kwq/KWQTextRendererFactory.h: Added. Exposes a global variable that tells whether we are
  7590. in global "using printer font" mode.
  7591. * kwq/WebCoreTextRendererFactory.h: Added setUsingPrinterFonts: and usingPrinterFonts methods.
  7592. * kwq/WebCoreTextRendererFactory.m:
  7593. (-[WebCoreTextRendererFactory setUsingPrinterFonts:]): Added. Sets global.
  7594. (-[WebCoreTextRendererFactory usingPrinterFonts]): Added. Returns value of global.
  7595. * WebCore.pbproj/project.pbxproj: Added KWQTextRendererFactory.h.
  7596. 2003-03-22 David Hyatt <hyatt@apple.com>
  7597. Fix the top of the gamespot.com page on the PLT. The
  7598. clear status for <br> should be ignored if/when we decide
  7599. to ignore the <br> because the previous line didn't break
  7600. cleanly.
  7601. Reviewed by gramps
  7602. * khtml/rendering/bidi.cpp:
  7603. 2003-03-22 David Hyatt <hyatt@apple.com>
  7604. Loosen up the DTD for <dl>, <dt>, and <dd> so that they can
  7605. occur anywhere in a document and be independent of one
  7606. another.
  7607. Reviewed by darin/gramps
  7608. * khtml/html/dtd.cpp:
  7609. (DOM::checkChild):
  7610. 2003-03-22 David Hyatt <hyatt@apple.com>
  7611. Bottom border/padding was incorrectly being used in float
  7612. computations. The fix is trivial... positioning of floats
  7613. occurs before you add in the bottom border/padding rather
  7614. than after.
  7615. Also implementing support for transparent borders and adding
  7616. code that understands how to draw more complex polys when
  7617. individual sides are transparent. This code existed for left
  7618. and right borders, but not for top and bottom borders.
  7619. These two fixes make the tantek demo found at:
  7620. http://www.tantek.com/map.html
  7621. work properly for the first time in Safari.
  7622. Reviewed by darin
  7623. * ChangeLog:
  7624. * khtml/css/cssparser.cpp:
  7625. (CSSParser::parseValue):
  7626. * khtml/css/cssstyleselector.cpp:
  7627. * khtml/rendering/bidi.cpp:
  7628. * khtml/rendering/render_object.cpp:
  7629. (RenderObject::paintBorder):
  7630. * khtml/rendering/render_style.h:
  7631. 2003-03-21 David Hyatt <hyatt@apple.com>
  7632. Fixes for all 4 macromedia rendering problems. They were all
  7633. related to buggy float handling.
  7634. The bugs are 3194998, 3195014, 3915155, 3204114.
  7635. This patch splits floats and positioned elements into two lists
  7636. instead of 1, and it also adds better logic for clearing out
  7637. floats when blocks move vertically.
  7638. Reviewed by darin
  7639. * khtml/rendering/bidi.cpp:
  7640. * khtml/rendering/render_block.cpp:
  7641. * khtml/rendering/render_block.h:
  7642. * khtml/rendering/render_container.cpp:
  7643. (RenderContainer::detach):
  7644. * khtml/rendering/render_flow.cpp:
  7645. (RenderFlow::addChildWithContinuation):
  7646. * khtml/rendering/render_inline.cpp:
  7647. (RenderInline::addChildToFlow):
  7648. (RenderInline::nodeAtPoint):
  7649. * khtml/rendering/render_object.cpp:
  7650. (RenderObject::setStyle):
  7651. (RenderObject::removeFromObjectLists):
  7652. (RenderObject::nodeAtPoint):
  7653. * khtml/rendering/render_object.h:
  7654. * khtml/rendering/render_root.cpp:
  7655. (RenderRoot::layout):
  7656. * khtml/rendering/render_table.cpp:
  7657. (RenderTable::layout):
  7658. 2003-03-21 Darin Adler <darin@apple.com>
  7659. Reviewed by John.
  7660. - fixed 3203212 -- nil-deref in khtml::CachedImage::isErrorImage at turbotax.com
  7661. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::removeImage): Remove all occurrences
  7662. of the image from the list. We don't try to prevent multiple occurrences from getting
  7663. in there. Also use removeRef instead of remove, for speed.
  7664. 2003-03-21 Darin Adler <darin@apple.com>
  7665. Reviewed by John.
  7666. - fixed 3204660 -- EUC decoding not used for japanese yahoo page
  7667. * khtml/misc/decoder.cpp: (Decoder::decode):
  7668. Do the search for charset= in a case-insensitive way. It's possible that other
  7669. browsers are case-insensitive, but also possible that it's just Japanese
  7670. auto-detect that papers over this problem there.
  7671. - other changes
  7672. * kwq/KWQString.mm: (QString::hash): Get rid of unnecessary code to avoid hashes of 0.
  7673. This is useful in the place in JavaScriptCore where we copied this from, but
  7674. it is not helpful here (slightly ugly and does slow things down a smidgen).
  7675. * kwq/WebCoreTextRendererFactory.m: Remove unused method.
  7676. 2003-03-20 David Hyatt <hyatt@apple.com>
  7677. Fix the color handling of link= attributes on <body> elements
  7678. to pass in the quirks mode so that lax parsing can take place.
  7679. Reviewed by rjw and john
  7680. * khtml/html/html_baseimpl.cpp:
  7681. (HTMLBodyElementImpl::parseAttribute):
  7682. 2003-03-20 Richard Williamson <rjw@apple.com>
  7683. Use "Item" consistently in the WebHistory and WebBackForwardList.
  7684. Change createSharedHistoryWithFile: to setSharedHistory:
  7685. Make the various page cache methods per WebBackForwardList instead of global.
  7686. Reviewed by gramps.
  7687. * kwq/KWQKHistoryProvider.mm:
  7688. * kwq/WebCoreHistory.h:
  7689. 2003-03-20 David Hyatt <hyatt@apple.com>
  7690. Always do residual style fixups in all three Safari rendering
  7691. modes.
  7692. Reviewed by darin
  7693. * khtml/html/htmlparser.cpp:
  7694. (KHTMLParser::popBlock):
  7695. === Safari-68 ===
  7696. 2003-03-19 David Hyatt <hyatt@apple.com>
  7697. Adding a few more tags to the list of ones to check for
  7698. residual style.
  7699. Reviewed by gramps
  7700. * khtml/html/htmlparser.cpp:
  7701. (KHTMLParser::isResidualStyleTag):
  7702. (KHTMLParser::isAffectedByResidualStyle):
  7703. 2003-03-19 David Hyatt <hyatt@apple.com>
  7704. Fix continuations so that they are smarter about reusing
  7705. anonymous blocks. Avoids deep nesting when it isn't
  7706. necessary.
  7707. A complete implementation of the residual style fixes. It
  7708. seems to fix all current outstanding bugs.
  7709. One of the bugs in the residual style list was caused by
  7710. font-weight not being reset to tables and is actually its
  7711. own problem. I fixed that by moving the quirks resets for
  7712. table elements into the quirks stylesheet (which should be
  7713. a speed boost).
  7714. <b><p>Foo</b> Goo</p>
  7715. Also fixed the huge XML failure issue that made us fail hundreds
  7716. of test cases. Attachment of text nodes was being done way too
  7717. early, before the text of the node had been determined. By moving
  7718. the attachment from enterText to exitText, the problem is solved.
  7719. Reviewed by darin (res. style fix 1) and gramps (rest of res. style fix and XML fix)
  7720. * khtml/css/quirks.css:
  7721. * khtml/html/html_tableimpl.cpp:
  7722. (HTMLTableElementImpl::attach):
  7723. * khtml/html/htmlparser.cpp:
  7724. (KHTMLParser::isResidualStyleTag):
  7725. (KHTMLParser::isAffectedByResidualStyle):
  7726. (KHTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  7727. (KHTMLParser::reopenResidualStyleTags):
  7728. (KHTMLParser::popBlock):
  7729. (KHTMLParser::popOneBlock):
  7730. * khtml/html/htmlparser.h:
  7731. * khtml/rendering/render_inline.cpp:
  7732. (RenderInline::splitFlow):
  7733. * khtml/xml/xml_tokenizer.cpp:
  7734. (XMLHandler::enterText):
  7735. (XMLHandler::exitText):
  7736. 2003-03-18 Darin Adler <darin@apple.com>
  7737. Reviewed by Ken.
  7738. - fixed 3197684 -- <textarea wrap="hard"> behaves incorrectly (bugzilla)
  7739. By doing the line breaking inside the KWQ class for textarea we can both remove
  7740. the broken lineOfCharAtIndex: method and avoid the n-squared algorithm KHTML uses to
  7741. insert hard line breaks.
  7742. * khtml/rendering/render_form.cpp: (RenderTextArea::text):
  7743. Call textWithHardLineBreaks on widget instead of trying to break lines here.
  7744. * kwq/KWQTextEdit.h: Added textWithHardLineBreaks member function. Made text member function
  7745. const. Got rid of text(int), paragraphs, paragraphLength, and lineOfChar member functions.
  7746. * kwq/KWQTextEdit.mm:
  7747. (QTextEdit::text): Made this const, and move code that transforms CRLF and CR into LF
  7748. inside KWQTextArea.
  7749. (QTextEdit::textWithHardLineBreaks): Added. Calls new textWithHardLineBreaks method.
  7750. * kwq/KWQTextArea.h: Added textWithHardLineBreaks method. Removed numLines, textForLine:,
  7751. paragrahs, paragraphLength:, textForParagraph:, and lineOfCharAtIndex: methods.
  7752. * kwq/KWQTextArea.mm:
  7753. (-[KWQTextArea initWithQTextEdit:]): Call [self init] for clarity instead of [super init].
  7754. In both cases, we end up calling [self initWithFrame:].
  7755. (-[KWQTextArea text]): Added logic for transforming CRLF and CR into LF here instead of at
  7756. the KWQTextEdit level.
  7757. (-[KWQTextArea textWithHardLineBreaks]): Added. This method uses the layout manager to extract
  7758. the characters for one line at a time, and put line breaks in between.
  7759. 2003-03-18 Maciej Stachowiak <mjs@apple.com>
  7760. Reviewed by Trey.
  7761. - fixed 3146407 - bring the window with the targeted frame to the front
  7762. * kwq/KWQKHTMLPartBrowserExtension.mm:
  7763. (KHTMLPartBrowserExtension::createNewWindow): If we use an existing frame,
  7764. focus it.
  7765. * kwq/WebCoreBridge.h: Prototype focusWindow method.
  7766. 2003-03-17 Trey Matteson <trey@apple.com>
  7767. Support for password saving in forms. Added elementIsPassword:,
  7768. nuked deadwood formIsLoginForm:.
  7769. Reviewed by Maciej.
  7770. * khtml/html/html_formimpl.cpp:
  7771. (HTMLFormElementImpl::submit): Pass forms data for login forms and
  7772. password fields to bridge. This case was skipped for security in
  7773. khtml's autocomplete, but we need this data to save passwords, and
  7774. we enforce policy at a higher level.
  7775. * khtml/html/html_formimpl.h:
  7776. * kwq/WebCoreBridge.h:
  7777. * kwq/WebCoreBridge.mm:
  7778. Nuked formIsLoginForm:.
  7779. (-[WebCoreBridge elementIsPassword:]): New utility.
  7780. 2003-03-18 Maciej Stachowiak <mjs@apple.com>
  7781. Reviewed by John.
  7782. - fixed 3119663 - document.lastModified returns the wrong date format
  7783. * kwq/WebCoreBridge.mm:
  7784. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
  7785. Instead of using NSDate's default date format, use the format that
  7786. IE and Gecko use.
  7787. 2003-03-18 Maciej Stachowiak <mjs@apple.com>
  7788. Reviewed by Darin.
  7789. * khtml/ecma/kjs_window.cpp:
  7790. (WindowFunc::tryCall): Fix build, use size instead of length.
  7791. 2003-03-18 Maciej Stachowiak <mjs@apple.com>
  7792. Reviewed by John.
  7793. - fixed 3080337 - default values seem to be "no" when third param of window.open is an empty string
  7794. * khtml/ecma/kjs_window.cpp:
  7795. (WindowFunc::tryCall): Treat empty string the same as missing for
  7796. third argument - leave all chrome on. Also remove support for
  7797. scrollbars= property
  7798. 2003-03-18 Darin Adler <darin@apple.com>
  7799. Reviewed by Maciej.
  7800. - fixed 3164522 -- text encoding conversion is done a chunk at a time with no state; won't work in some cases
  7801. - fixed 3164557 -- pages served with encoding UTF-16LE but no BOM character won't be decoded correctly
  7802. - fixed 3164569 -- pages without BOM that have a server-specified encoding of utf-16 will fail to decode
  7803. - fixed 3165002 -- can't open link with tilde (~) in page with Japanese encoding
  7804. - fixed 3181297 -- can't open link with backslash (\) in page with Japanese encoding (download at netscape.com)
  7805. - fixed 3182977 -- "unicode" encoding handled as UTF-16 rather than UTF-8 at www.delcom-eng.com
  7806. * khtml/misc/decoder.h: Add an optional "8-bit-only" parameter to the
  7807. setEncoding method.
  7808. * khtml/misc/decoder.cpp:
  7809. (Decoder::setEncoding): Add an "8-bit-only" parameter. Use the new
  7810. codeForNameEightBitOnly method when that parameter is true. Use the new
  7811. usesVisualOrdering constant rather than all the hardcoded logic here to
  7812. tell logical from visual Hebrew encodings.
  7813. (Decoder::decode): Pass true for "8-bit-only" when the encoding came out
  7814. of an HTML header, since we are already parsing the file by this point so
  7815. it makes no sense to use a non-8-bit encoding.
  7816. (Decoder::flush): Pass true for the "flush" parameter when calling the decoder.
  7817. * kwq/KWQCharsets.h: Add a new KWQEncodingFlags enum, and return a parameter of
  7818. that type (optionally) from KWQCFStringEncodingFromIANACharsetName.
  7819. * kwq/KWQCharsets.mm:
  7820. (buildDictionaries): Make the dictionaries lead to table entries so we can get
  7821. both the flags and the encoding.
  7822. (KWQCFStringEncodingFromIANACharsetName): Get the flags as well as the encoding.
  7823. (KWQCFStringEncodingToIANACharsetName): Use the new dictionary format.
  7824. (encodingNameHash): Removed special case for hash for 0. This was useful in
  7825. JavaScriptCore where this hash function came from, but it's not relevant for
  7826. a CF hash function.
  7827. * kwq/KWQTextCodec.h: Added codecForNameEightBitOnly function to QTextCodec. Added optional
  7828. KWQEncodingFlags parameter to QTextCodec constructor. Replaced isISOLatin1Hebrew with
  7829. usesVisualOrdering. Added == and hash functions to QTextCodec. Added virtual destructor to
  7830. QTextDecoder. Added optional "flush" boolean parameter to QTextDecoder's toUnicode function.
  7831. * kwq/KWQTextCodec.mm:
  7832. (codecForCFStringEncoding): Use both the encoding and the flags as a key for the dictionary
  7833. that holds QTextCodec objects.
  7834. (QTextCodec::codecForName): Pass flags through.
  7835. (QTextCodec::codecForNameEightBitOnly): Added. Maps kCFStringEncodingUnicode to
  7836. kCFStringEncodingUTF8.
  7837. (QTextCodec::codecForLocale): Pass noEncodingFlags.
  7838. (QTextCodec::makeDecoder): Pass flags to KWQTextDecoder constructor.
  7839. (QTextCodec::toUnicode): Pass true for the "flush" boolean parameter to KWQTextDecoder.
  7840. (operator==): Added. Compares both encoding and flags.
  7841. (QTextCodec::hash): Added. Computes a hash of encoding and flags.
  7842. (QTextCodecsEqual): Added. Calls operator==.
  7843. (QTextCodecHash): Added. Calls hash member function.
  7844. (QTextDecoder::~QTextDecoder): Added. Empty.
  7845. (KWQTextDecoder::KWQTextDecoder): Made this no longer inline.
  7846. (KWQTextDecoder::~KWQTextDecoder): Added. Cache the TEC object for use next time.
  7847. (KWQTextDecoder::convertUTF16): Use the flags to decide on big vs. little endian when the
  7848. page does not have a BOM marker that makes it unambiguous.
  7849. (KWQTextDecoder::convertUsingTEC): Added flush parameter. Changed code to reuse the same
  7850. converter for successive convert calls, and only flush when the flush parameter is passed.
  7851. Added code to set the kUnicodeForceASCIIRangeMask. Do it directly since we can't use
  7852. TECSetBasicOptions due to bug 3201405.
  7853. (KWQTextDecoder::toUnicode): Pass flush parameter through.
  7854. * kwq/mac-encodings.txt: Added new sections for "Unicode, bigEndian", "Unicode, littleEndian",
  7855. and "ISOLatinHebrew, visualOrdering". Also moved UTF-16 to "Unicode" from "UTF8" since we now
  7856. handle this with the "8-bit-only" mechanism.
  7857. * kwq/make-charset-table.pl: Updated script to support flags (after a comma), and made it a bit
  7858. more strict about what to do with ill-formed lines.
  7859. * kwq/KWQCharsetData.c: Regenerated.
  7860. - other changes
  7861. * kwq/KWQKHTMLPart.mm:
  7862. (KWQKHTMLPart::searchForLabelsBeforeElement): Take advantage of "using" and remove
  7863. unneeded namespace prefixes.
  7864. (KWQKHTMLPart::matchLabelsAgainstElement): Ditto.
  7865. (KWQKHTMLPart::pauseActions): Ditto.
  7866. (KWQKHTMLPart::resumeActions): Add check for nil to match pauseActions. Also take
  7867. advantage of "using" and remove unneeded namespace prefixes.
  7868. (KWQKHTMLPart::saveWindowProperties): Use ERROR instead of ASSERT for the nil case.
  7869. (KWQKHTMLPart::saveLocationProperties): Use ERROR instead of ASSERT for the nil case.
  7870. (KWQKHTMLPart::restoreWindowProperties): Use ERROR instead of ASSERT for the nil case.
  7871. (KWQKHTMLPart::restoreLocationProperties): Use ERROR instead of printf for the nil case.
  7872. (KWQKHTMLPart::openURLFromPageCache): Take advantage of "using" and remove
  7873. unneeded namespace prefixes.
  7874. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Ditto.
  7875. (KWQKHTMLPart::passSubframeEventToSubframe): Ditto.
  7876. 2003-03-16 Maciej Stachowiak <mjs@apple.com>
  7877. Reviewed by Trey.
  7878. - fixed 3196050 - Hang in www.janegoodall.org dynamic menus
  7879. * khtml/xml/dom_nodeimpl.cpp:
  7880. (NodeImpl::handleLocalEvents): Copy handlers before processing
  7881. them, so we don't go into an infinite loop if a handler adds or
  7882. removes handlers.
  7883. 2003-03-16 Trey Matteson <trey@apple.com>
  7884. 3198135 - need to fix our projects so SYMROOT is not stripped
  7885. Tweaked stripping options: B&I build does not COPY_PHASE_STRIP.
  7886. Deployment build still does.
  7887. We strip manually as part of the install that we do ourselves.
  7888. Reviewed by Maciej.
  7889. * WebCore.pbproj/project.pbxproj:
  7890. 2003-03-14 Richard Williamson <rjw@apple.com>
  7891. Fixed 3197162. The regression was introduced with the change
  7892. to preferences. The old settings API was used to 'reset' the jscript
  7893. other properties of the part. This effectively always disabled
  7894. javascript and prevented properties from being restored to the js
  7895. property maps.
  7896. Reviewed by trey.
  7897. * kwq/KWQKHTMLPart.mm:
  7898. (KWQKHTMLPart::saveWindowProperties):
  7899. (KWQKHTMLPart::saveLocationProperties):
  7900. (KWQKHTMLPart::restoreWindowProperties):
  7901. (KWQKHTMLPart::restoreLocationProperties):
  7902. (KWQKHTMLPart::openURLFromPageCache):
  7903. 2003-03-14 David Hyatt <hyatt@apple.com>
  7904. Make :target match the root element if no #fragment is specified in
  7905. the URL.
  7906. Reviewed by john
  7907. * khtml/css/cssstyleselector.cpp:
  7908. 2003-03-14 Maciej Stachowiak <mjs@apple.com>
  7909. - fixed 3190846 - REGRESSION: can't use Fidelity NetBenefits account
  7910. * khtml/html/html_baseimpl.cpp:
  7911. (HTMLFrameElementImpl::updateForNewURL): Treat javascript: URLs as
  7912. about:blank for now.
  7913. (HTMLFrameElementImpl::attach): Likewise.
  7914. * khtml/khtml_part.cpp:
  7915. (KHTMLPart::processObjectRequest): Make sure to send completed() signal
  7916. after signals are connectd in synchronous load case.
  7917. 2003-03-13 David Hyatt <hyatt@apple.com>
  7918. Fix for ew.com, hrweb and arstechnica forums. A <br> should
  7919. not create a nonempty line in the case where the previous line
  7920. didn't break cleanly. The fix is to have a new boolean that
  7921. tracks how the previous line broke and to have <br> check that
  7922. to figure out if it should set the line to be non-empty.
  7923. Reviewed by gramps
  7924. * khtml/rendering/bidi.cpp:
  7925. 2003-03-13 Maciej Stachowiak <mjs@apple.com>
  7926. Reviewed by Trey.
  7927. - fixed 3188209 - REGRESSION: onmouseup handlers not running for most form elements
  7928. * khtml/rendering/render_form.cpp:
  7929. (RenderLineEdit::RenderLineEdit): Connect to clicked signal.
  7930. (RenderFileButton::RenderFileButton): Likewise.
  7931. (RenderFileButton::slotClicked): Send clicked through DOM.
  7932. (RenderTextArea::RenderTextArea): Connect to clicked signal.
  7933. * khtml/rendering/render_replaced.cpp:
  7934. (RenderWidget::sendConsumedMouseUp): New method to send a
  7935. mouseUp event for this DOM element. Meant for up events consumed
  7936. by AppKit mouseDown: methods that use modal event loops.
  7937. * khtml/rendering/render_replaced.h:
  7938. * kwq/KWQButton.h:
  7939. * kwq/KWQButton.mm:
  7940. (-[KWQButton initWithQButton:]): Moved here from former adaptor class.
  7941. (-[KWQButton action:]): Make sure to send up before click.
  7942. (-[KWQButton mouseDown:]): Record that we are processing a mouse
  7943. event. If no click happened, send the missing up event.
  7944. (QButton::QButton): Use NSButton subclass instead of separate adaptor.
  7945. (QButton::~QButton): Likewise.
  7946. * kwq/KWQFileButton.h:
  7947. * kwq/KWQFileButton.mm:
  7948. (KWQFileButton::KWQFileButton): Initialize clicked signal.
  7949. (KWQFileButton::clicked): Emit clicked signal.
  7950. (-[KWQFileButtonAdapter initWithKWQFileButton:]): Observe Clicked notification too.
  7951. (-[KWQFileButtonAdapter clicked]): Send mouse up and click through DOM.
  7952. * kwq/KWQLineEdit.h:
  7953. * kwq/KWQLineEdit.mm:
  7954. (QLineEdit::QLineEdit): Initialize clicked signal.
  7955. (QLineEdit::clicked): Emit clicked signal.
  7956. * kwq/KWQListBox.mm:
  7957. (QListBox::QListBox): No longer use separate object as delegate and data source.
  7958. (QListBox::~QListBox): No more need to retrieve and release delegate.
  7959. (-[KWQTableView initWithListBox:items:]):
  7960. (-[KWQTableView mouseDown:]): Record that we are processing a mouse
  7961. event; if no click happens while processing, send the mouse up event
  7962. through the DOM.
  7963. (-[KWQTableView tableViewSelectionDidChange:]): If sending clicked
  7964. and processing a mouse event, send up first.
  7965. * kwq/KWQTextArea.mm:
  7966. (-[KWQTextAreaTextView mouseDown:]): Send up and click through DOM
  7967. after calling super.
  7968. * kwq/KWQTextEdit.h:
  7969. * kwq/KWQTextEdit.mm:
  7970. (QTextEdit::QTextEdit): Initialize clicked signal.
  7971. (QTextEdit::clicked): Emit clicked signal.
  7972. * kwq/KWQTextField.mm:
  7973. (-[KWQTextField setPasswordMode:]): initWithQLineEdit: instead of initWithQWidget:
  7974. (-[KWQTextField fieldEditorDidMouseDown:]): Send up and click through DOM.
  7975. (-[KWQSecureTextField initWithQLineEdit:]): Store QLineEdit*, not just QWidget*.
  7976. (-[KWQSecureTextField fieldEditorDidMouseDown:]): Send up and click through DOM.
  7977. * kwq/KWQWidget.h:
  7978. * kwq/KWQWidget.mm:
  7979. (QWidget::sendConsumedMouseUp): Common method for widgets to send
  7980. a mouseUp that has been consumed by mouseDown processing through
  7981. the DOM.
  7982. * kwq/WebCoreBridge.h:
  7983. * kwq/WebCoreFirstResponderChanges.h:
  7984. * kwq/WebCoreViewFactory.m:
  7985. * WebCore.exp: Export new string constant.
  7986. * WebCore-combined.exp: Regenerated.
  7987. 2003-03-13 Richard Williamson <rjw@apple.com>
  7988. First stage of the WebController -> WebView, WebView -> WebFrameView.
  7989. This change does the WebView -> WebFrameView part of the change. Also
  7990. changes WebController's inheritance. It now inherits from NSView.
  7991. Reviewed by Maciej.
  7992. * kwq/KWQKHTMLPart.mm:
  7993. (KWQKHTMLPart::nextKeyView):
  7994. * kwq/KWQScrollView.mm:
  7995. * kwq/KWQWidget.mm:
  7996. (QWidget::getOuterView):
  7997. * kwq/WebCoreBridge.h:
  7998. * kwq/WebCoreBridge.mm:
  7999. (-[WebCoreBridge nextKeyViewInsideWebFrameViews]):
  8000. (-[WebCoreBridge previousKeyViewInsideWebFrameViews]):
  8001. 2003-03-13 Darin Adler <darin@apple.com>
  8002. - remove mistaken inlining to fix build with newer versions of gcc
  8003. * khtml/rendering/render_object.cpp: (RenderObject::container):
  8004. Don't mark this inline.
  8005. 2003-03-13 David Hyatt <hyatt@apple.com>
  8006. This is a fix to stop creating textruns for the whitespace at the
  8007. end of a block. This is a major line layout bug that leads to the
  8008. height of the last line in a paragraph being wrong, especially when
  8009. <font> tags are used.
  8010. Example of the problem:
  8011. <div><nobr>foo</nobr> </div>
  8012. The whitespace between the </nobr> and the end of the </div> was
  8013. being counted when it should have been stripped. The problem was
  8014. an off-by-one error with the endpoint I set up. I used a position
  8015. of 0, which is inclusive, so I needed a new value that meant
  8016. "Stop on this object and don't include any of it." I'm using
  8017. UINT_MAX as this special value for the position.
  8018. Reviewed by john
  8019. * khtml/rendering/bidi.cpp:
  8020. * khtml/rendering/bidi.h:
  8021. 2003-03-13 Darin Adler <darin@apple.com>
  8022. Reviewed by Dave.
  8023. - fixed 3197728 -- REGRESSION: crash at http://transitive.com/company.htm
  8024. * khtml/rendering/bidi.cpp: (appendRun): Added an if statement to handle
  8025. the case where obj is 0; the while loop already handled that case.
  8026. - did the "no inlining workaround" needed for newer versions of gcc
  8027. * khtml/css/parser.y: Added #define __inline as we have elsewhere.
  8028. * khtml/css/parser.cpp: Regenerated.
  8029. 2003-03-13 David Hyatt <hyatt@apple.com>
  8030. Add color dumping and bgcolor dumping to the render dump tool.
  8031. Reviewed by darin
  8032. * kwq/KWQRenderTreeDebug.cpp:
  8033. (operator<<):
  8034. 2003-03-13 David Hyatt <hyatt@apple.com>
  8035. Fix for 3193407, crash in CSS parser on www.hixie.ch. Improved the grammar to
  8036. understand the CSS3 :not selector so that it wouldn't think of that case as an
  8037. error. Also patched the error handling case that crashed on :not anyway. Then
  8038. I went ahead and implemented :not (since it was trivial to add once the parser
  8039. was reading it in).
  8040. Also fixed the regression that the * selector didn't work. The new KHTML trunk moved
  8041. away from a tag value of -1 in order to do @namespace support. Since we aren't really ready
  8042. to take that code yet, I patched our parser.y to treat * like -1 instead of 0xffff.
  8043. Implemented support for a couple of new CSS3 selectors, :root and ::selection. Also :last-child and :only-child.
  8044. Fixed a trivial bug (demonstrated in the CSS3 test suite) with the matching of the ~= selector.
  8045. Reviewed by darin
  8046. * khtml/css/Makefile.am:
  8047. * khtml/css/css_base.cpp:
  8048. (CSSSelector::extractPseudoType):
  8049. * khtml/css/css_base.h:
  8050. * khtml/css/cssstyleselector.cpp:
  8051. * khtml/css/parser.cpp:
  8052. * khtml/css/parser.y:
  8053. * khtml/rendering/render_style.h:
  8054. * khtml/rendering/render_text.cpp:
  8055. (TextRun::paintSelection):
  8056. (RenderText::paintObject):
  8057. === Safari-67 ===
  8058. 2003-03-13 Darin Adler <darin@apple.com>
  8059. Reviewed by Maciej.
  8060. - fixed 3194451 -- Textarea COLS='40.0' displays with width of 0
  8061. * khtml/xml/dom_stringimpl.h: Changed toInt to not be inline any more.
  8062. It was already really too big for inline to be a good optimization.
  8063. * khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::toInt): Rewrote this to
  8064. find the valid characters at the start of the string, rather than strip
  8065. invalid characters from the end. The old code would strip non-digits from
  8066. the end, which doesn't help with a string like "40.0" or even "40 garbage3".
  8067. - fixed a bit of int/long sloppiness
  8068. * kwq/KWQString.mm:
  8069. (QString::toLong): Use LONG_MAX, not INT_MAX.
  8070. (QString::toULong): Use ULONG_MAX, not UINT_MAX.
  8071. 2003-03-12 Richard Williamson <rjw@apple.com>
  8072. Fixed leak of RenderRoot.
  8073. Reviewed by darin.
  8074. * kwq/KWQPageState.mm:
  8075. (-[KWQPageState invalidate]): Added comment.
  8076. (-[KWQPageState dealloc]): Ensure that the renderer is "re"set on
  8077. the document so it will be correctly cleaned up in detach.
  8078. 2003-03-12 David Hyatt <hyatt@apple.com>
  8079. Two fixes. The first is more help with macromedia. Floats could
  8080. get lost and not painted by the correct layer still. The new
  8081. code is more robust about checking if a layer crossing occurred
  8082. in the case where you want to addOverhangingFloats to a parent.
  8083. The second fix changes the priority of space allocation when
  8084. growing cells from their minwidths to their preferred widths.
  8085. The old code did fixed and then percent. The new code does
  8086. percent and then fixed.
  8087. Also when tables are overconstrained after growing cells to their
  8088. effective widths, instead of shrinking cells without regard for
  8089. their type, I implemented a shrink system that follows the same
  8090. priority (reversed) that was used when growing the cells originally.
  8091. Reviewed by darin
  8092. * khtml/rendering/render_block.cpp:
  8093. * khtml/rendering/table_layout.cpp:
  8094. (AutoTableLayout::layout):
  8095. 2003-03-12 Trey Matteson <trey@apple.com>
  8096. 3190784 REGRESSION: crash in KWQListIteratorImpl in form completion code at sonyericsson.com page
  8097. Don't crash on an input element with no enclosing form.
  8098. * kwq/WebCoreBridge.mm:
  8099. (-[WebCoreBridge formForElement:]): Gracefully bail on !form.
  8100. 2003-03-11 David Hyatt <hyatt@apple.com>
  8101. Fix for tantek's slides, this is an issue on diveintomark's
  8102. list as well. <style> was not honoring any media attributes
  8103. set on it, so print stylesheets were being applied to the screen,
  8104. etc.!
  8105. Reviewed by rjw
  8106. * khtml/html/html_headimpl.cpp:
  8107. (HTMLStyleElementImpl::childrenChanged):
  8108. * khtml/html/html_headimpl.h:
  8109. === Safari-66 ===
  8110. 2003-03-11 Darin Adler <darin@apple.com>
  8111. Reviewed by John.
  8112. - fixed 3166759 -- two fields both look like they have focus at webmail.iquest.net due to onblur
  8113. * kwq/KWQTextField.mm:
  8114. (-[KWQTextField selectText:]): Don't call -[NSTextField selectText:] in the case where we already
  8115. have an editor, because the NSTextField version will cause the field to relinquish first responder
  8116. and then take it back, which will send both onblur and onfocus.
  8117. (-[KWQSecureTextField selectText:]): Same fix for the secure text field.
  8118. 2003-03-11 David Hyatt <hyatt@apple.com>
  8119. Fix the 16000 pixel tall scrollbar on macromedia.com/software.
  8120. vertical-align position hints were being set to bad values.
  8121. Reviewed by mjs
  8122. * khtml/rendering/render_object.cpp:
  8123. (RenderObject::getVerticalPosition):
  8124. 2003-03-10 David Hyatt <hyatt@apple.com>
  8125. Fix for <pre> regression, bug #3193590, directory listings
  8126. busted.
  8127. Reviewed by gramps
  8128. * khtml/rendering/bidi.cpp:
  8129. 2003-03-10 Darin Adler <darin@apple.com>
  8130. Reviewed by Maciej.
  8131. - fixed 3010915 -- mouse wheel won't scroll the main document when you are over [i]frame
  8132. * kwq/WebCoreScrollView.h: Added.
  8133. * kwq/WebCoreScrollView.m: Added. Overrides scrollWheel to "do the right thing".
  8134. * WebCore.pbproj/project.pbxproj: Added WebCoreScrollView, and made it SPI so WebKit can use it.
  8135. * WebCore.exp: Exported WebCoreScrollView so WebKit can use it.
  8136. * WebCore-combined.exp: Regenerated.
  8137. * kwq/KWQListBox.mm: Made KWQListBoxScrollView a subclass of WebCoreScrollView instead of NSScrollView.
  8138. * kwq/KWQTextArea.h: Made KWQTextArea a subclass of WebCoreScrollView instead of NSScrollView.
  8139. - other changes
  8140. * kwq/KWQComboBox.mm: Make the workaround for the position of text in the pop-up
  8141. compile only when we build on Jaguar. That way a Jaguar-built Safari looks perfect on
  8142. Jaguar and a Panther built one looks perfect on Panther.
  8143. * kwq/KWQKHTMLPart.mm: Reformatted some method calls.
  8144. 2003-03-09 David Hyatt <hyatt@apple.com>
  8145. Fix compacts and run-ins to work a lot better than they did
  8146. before. I had some huge misunderstandings with how compact
  8147. worked that have now been clarified.
  8148. Reviewed by kocienda
  8149. * khtml/rendering/bidi.cpp:
  8150. * khtml/rendering/bidi.h:
  8151. * khtml/rendering/render_block.cpp:
  8152. * khtml/rendering/render_block.h:
  8153. * khtml/rendering/render_flow.cpp:
  8154. (RenderFlow::repaint):
  8155. * khtml/rendering/render_line.cpp:
  8156. (InlineFlowBox::placeBoxesHorizontally):
  8157. * khtml/rendering/render_object.cpp:
  8158. (RenderObject::nodeAtPoint):
  8159. * khtml/rendering/render_object.h:
  8160. 2003-03-08 David Hyatt <hyatt@apple.com>
  8161. Check in the patch I actually meant to land. Somehow what I landed
  8162. had removed a line that was supposed to be there.
  8163. * khtml/css/cssstyleselector.cpp:
  8164. 2003-03-07 Maciej Stachowiak <mjs@apple.com>
  8165. Reviewed by Trey.
  8166. * kwq/KWQKHTMLPart.mm:
  8167. (KWQKHTMLPart::submitForm): Fix form submission (was completely broken).
  8168. 2003-03-07 Maciej Stachowiak <mjs@apple.com>
  8169. Reviewed by Richard.
  8170. - fixed 3127705 - don't open new window on opt-click even if the link requests it
  8171. - fixed 3143971 - cmd-click should override the target="_blank" and target="_new" (important for tabs)
  8172. * kwq/KWQKHTMLPart.h:
  8173. * kwq/KWQKHTMLPart.mm:
  8174. (KWQKHTMLPart::openURL): Don't use findOrCreateFrameNamed, instead pass target along.
  8175. (KWQKHTMLPart::openURLRequest): Likewise.
  8176. (KWQKHTMLPart::submitForm): Likewise.
  8177. (KWQKHTMLPart::urlSelected): Likewise.
  8178. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8179. (KHTMLPartBrowserExtension::createNewWindow): Likewise.
  8180. * kwq/WebCoreBridge.h:
  8181. 2003-03-07 David Hyatt <hyatt@apple.com>
  8182. better fix for text-decoration issue on time.com.
  8183. Reviewed by mjs
  8184. * khtml/css/cssstyleselector.cpp:
  8185. * khtml/rendering/render_style.h:
  8186. 2003-03-07 David Hyatt <hyatt@apple.com>
  8187. Fix for time.com regression. Don't allow text-decoration to
  8188. apply to anchor elements with no href.
  8189. Reviewed by darin
  8190. * khtml/css/cssstyleselector.cpp:
  8191. 2003-03-07 David Hyatt <hyatt@apple.com>
  8192. Whoops. Fix regression causedb y previous checkin.
  8193. Reviewed by darin
  8194. * khtml/css/cssstyleselector.cpp:
  8195. 2003-03-07 David Hyatt <hyatt@apple.com>
  8196. Make the :hover:active behavior much more sophisticated
  8197. (and make it match WinIE, since that buggy browser is what
  8198. necessitates this hack).
  8199. Reviewed by darin
  8200. * khtml/css/cssstyleselector.cpp:
  8201. 2003-03-06 David Hyatt <hyatt@apple.com>
  8202. Fix for 3156125, regression on hiptop.com. Caused by better
  8203. nowrap handling perversely enough. Need another quirk from
  8204. Moz/WinIE to make this site behave.
  8205. Reviewed by darin
  8206. * khtml/rendering/render_table.cpp:
  8207. (RenderTableCell::calcMinMaxWidth):
  8208. (RenderTableCell::setStyle):
  8209. 2003-03-06 Darin Adler <darin@apple.com>
  8210. Reviewed by John.
  8211. - fixed 3191027 -- REGRESSION: KWQColor assert at aol.com front page
  8212. * kwq/KWQColor.mm: (qRgb): Clamp to [0,0xFF] instead of asserting.
  8213. 2003-03-06 Trey Matteson <trey@apple.com>
  8214. Refinement of routine that scans the DOM for field labels.
  8215. We skip nodes that have no renderer, or are invisible.
  8216. Reviewed by hyatt.
  8217. * kwq/KWQKHTMLPart.mm:
  8218. (KWQKHTMLPart::searchForLabelsBeforeElement): Added check.
  8219. 2003-03-06 David Hyatt <hyatt@apple.com>
  8220. Fix for 3190580, tables should reset line-height and white-space
  8221. in quirks mode.
  8222. Reviewed by trey and john
  8223. * khtml/css/quirks.css:
  8224. === Safari-65 ===
  8225. 2003-03-06 Darin Adler <darin@apple.com>
  8226. Reviewed by Don.
  8227. - fixed 3177862 -- REGRESSION: can't upload widget at www.konfabulator.com
  8228. * khtml/html/html_formimpl.cpp:
  8229. (fixUpfromUnicode): Add a call to fixLineBreaks here (and move this down below that function).
  8230. (HTMLFormElementImpl::formData): Remove the call to fixLineBreaks here, which was being used
  8231. on non-text form data, like files being uploaded.
  8232. 2003-03-05 Trey Matteson <trey@apple.com>
  8233. Autofill tweak. In field names, replace all digits with spaces before matching
  8234. labels against them. This turns the digits to word boundaries, so field names like
  8235. "address2" are matched by "address".
  8236. As part of this, I abandoned an earlier attempt to map Qt regexp syntax to Darwin's.
  8237. Now clients just have to use Darwin's.
  8238. Reviewed by Maciej.
  8239. * kwq/KWQKHTMLPart.mm:
  8240. (regExpForLabels):
  8241. (KWQKHTMLPart::matchLabelsAgainstElement): Replace digits with space.
  8242. * kwq/KWQRegExp.mm:
  8243. (QRegExp::KWQRegExpPrivate::compile): Don't try to support Qt syntax.
  8244. 2003-03-05 Darin Adler <darin@apple.com>
  8245. Reviewed by John.
  8246. - fixed 3189442 -- REGRESSION: utf-16-little-endian.html crashes making decoder
  8247. * kwq/KWQCharsets.mm: (encodingNameHash): Re-add tolower call to hash function to
  8248. match the equality function.
  8249. 2003-03-04 Trey Matteson <trey@apple.com>
  8250. New support for autofill. We provide a routine that scans backwards in the text
  8251. before a given element, looking for a match with a set of labels. In addition,
  8252. we provide for a similar match against the element's name.
  8253. To implement a few more methods in QRegExp API were implemented.
  8254. Reviewed by Maciej.
  8255. * kwq/KWQKHTMLPart.h:
  8256. * kwq/KWQKHTMLPart.mm:
  8257. (scanForForm): Remove redundant call to a helper function.
  8258. (regExpForLabels): Return a regexp used to search for the set of labels.
  8259. (KWQKHTMLPart::searchForLabelsBeforeElement): Walk the DOM to scan backwards
  8260. in the text before the element, apply regexp to the text we find.
  8261. (KWQKHTMLPart::matchLabelsAgainstElement): Get the element name, use regexp
  8262. to check it for any of the labels.
  8263. * kwq/KWQRegExp.h:
  8264. * kwq/KWQRegExp.mm:
  8265. (QRegExp::KWQRegExpPrivate::KWQRegExpPrivate): Init two new ivars.
  8266. (RegExpFromPattern): Massage a non-glob expression before handing to Darwin.
  8267. (QRegExp::KWQRegExpPrivate::compile): Call RegExpFromPattern.
  8268. (QRegExp::match): Set new ivars based on match result.
  8269. (QRegExp::search): New API, just call match.
  8270. (QRegExp::searchRev): New API, call match repeatedly to (weakly) simulate a
  8271. reverse search.
  8272. (QRegExp::pos): Return info from last result.
  8273. (QRegExp::matchedLength): Return info from last result.
  8274. * kwq/WebCoreBridge.h:
  8275. * kwq/WebCoreBridge.mm:
  8276. (-[WebCoreBridge searchForLabels:beforeElement:]): Call straight through to part.
  8277. (-[WebCoreBridge matchLabels:againstElement:]): Call straight through to part.
  8278. 2003-03-04 Darin Adler <darin@apple.com>
  8279. Reviewed by Maciej.
  8280. - got rid of some framework initialization (working on bug 3188781)
  8281. * khtml/khtml_part.cpp:
  8282. (KHTMLPart::setZoomFactor): Put some waitCursor use inside #if !APPLE_CHANGES.
  8283. (KHTMLPart::reparseConfiguration): Put some waitCursor use inside #if !APPLE_CHANGES.
  8284. * khtml/rendering/render_frames.cpp: (RenderFrameSet::userResize): Use KCursor cursors
  8285. instead of Qt cursors.
  8286. * kwq/KWQNamespace.h: Remove Qt cursors.
  8287. * kwq/KWQCursor.mm: Remove Qt cursors.
  8288. * kwq/KWQKCursor.h: Remove waitCursor.
  8289. * kwq/KWQKCursor.mm: Remove waitCursor.
  8290. 2003-03-04 Darin Adler <darin@apple.com>
  8291. Reviewed by John.
  8292. - fixed build rules for parser.cpp so we don't rebuild it every time
  8293. * khtml/css/Makefile.am: Changed target to parser.cpp, not parser.
  8294. - some QColor cleanup
  8295. * kwq/KWQColor.h: Removed the qRgba function, the unused KWQColor constructor
  8296. that takes a QString parameter, and made the KWQColor constructor that takes a
  8297. const char * parameter explicit.
  8298. * kwq/KWQColor.mm:
  8299. (QColor::QColor): Use findColor directly so we don't create and then destroy a QString.
  8300. (QColor::setNamedColor): Eliminated the unnecessary special case for empty string.
  8301. Get rid of the call to lower(), which is now handled by the caller. Got rid of the
  8302. "can't decipher this color" ERROR, which makes little sense now that non-named colors
  8303. (like hex ones) are handled at the KHTML level. Don't use setRgb to set the color,
  8304. since the RGB value in the gperf table is already in the correct format to just be
  8305. stored in QColor::color.
  8306. * khtml/misc/helper.h: Removed now-unused setNamedColor function. I'm sure this
  8307. same change exists on the KHTML trunk (since the CSS parser rewrite).
  8308. * khtml/misc/helper.cpp: More of the same.
  8309. * khtml/misc/loader.cpp: #if !APPLE_CHANGES the places that use qRgba to set
  8310. bgColor, which we don't use anyway.
  8311. 2003-03-03 Maciej Stachowiak <mjs@apple.com>
  8312. Reviewed by Richard.
  8313. - upgrade to new hash function in one spot that I missed:
  8314. * kwq/KWQString.mm:
  8315. (QString::hash): Use spiffy new hash algorithm.
  8316. 2003-03-01 Maciej Stachowiak <mjs@apple.com>
  8317. Reviewed by Darin.
  8318. - fixed 3163855 - Need control over certain potential dialogs/sheets
  8319. * khtml/rendering/render_form.cpp:
  8320. (RenderFileButton::RenderFileButton): Pass the part to KWQFileButton.
  8321. * kwq/KWQFileButton.h:
  8322. * kwq/KWQFileButton.mm:
  8323. (KWQFileButton::KWQFileButton): Go through the bridge for the view,
  8324. not the view factory.
  8325. * kwq/KWQKHTMLPart.h:
  8326. * kwq/KWQKHTMLPart.mm:
  8327. (KWQKHTMLPart::runJavaScriptAlert): Go through the bridge for the panel,
  8328. not the view factory.
  8329. (KWQKHTMLPart::runJavaScriptConfirm): Likewise.
  8330. (KWQKHTMLPart::runJavaScriptPrompt): Likewise.
  8331. * kwq/WebCoreViewFactory.h: Move methods from here...
  8332. * kwq/WebCoreBridge.h: ...to here.
  8333. 2003-03-02 Maciej Stachowiak <mjs@apple.com>
  8334. Reviewed by Trey.
  8335. Updated string hash function to match the new, improved one in
  8336. JavaScriptCore.
  8337. * kwq/KWQCharsets.mm:
  8338. (encodingNameHash):
  8339. 2003-03-03 Darin Adler <darin@apple.com>
  8340. Reviewed by Dave.
  8341. - fixed 3187518 -- REGRESSION: w3c css sample page crashes in cssyyparse
  8342. * khtml/css/parser.y: (selector): Added code to handle the case where simple_selector is 0.
  8343. * khtml/css/parser.cpp: Regenerated.
  8344. - fixed regression I introduced earlier today where ID anchors wouldn't work
  8345. * khtml/khtml_part.cpp: (KHTMLPart::gotoAnchor):
  8346. Check by ID first explicitly before using DOC_ANCHORS.
  8347. * WebCore.pbproj/project.pbxproj: Add parser.y to the project to make it easier to open it.
  8348. 2003-03-03 David Hyatt <hyatt@apple.com>
  8349. Fix for 3185852, crash when dynamically inserting rules because
  8350. of an unitialized parser variable.
  8351. Reviewed by darin
  8352. * khtml/css/css_ruleimpl.cpp:
  8353. (CSSMediaRuleImpl::insertRule):
  8354. * khtml/css/css_stylesheetimpl.cpp:
  8355. (CSSStyleSheetImpl::insertRule):
  8356. * khtml/css/cssparser.cpp:
  8357. (CSSParser::parseRule):
  8358. * khtml/css/cssparser.h:
  8359. 2003-03-03 David Hyatt <hyatt@apple.com>
  8360. Clean up dynamic ID/CLASS setting/removal. Make ID actually
  8361. work when set dynamically. Fixes bug 3173050.
  8362. Reviewed by john
  8363. * khtml/html/html_elementimpl.cpp:
  8364. (HTMLElementImpl::parseAttribute):
  8365. 2003-03-03 Darin Adler <darin@apple.com>
  8366. Reviewed by Dave.
  8367. - fixed 3154394 -- non-repro nil-dereference in DOM::HTMLFormElementImpl::submit
  8368. * khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::submit):
  8369. Add checks for nil like the other methods in this file have.
  8370. - fixed some types to remove a bit of unnecessary overhead
  8371. * khtml/ecma/kjs_window.h: Change types.
  8372. * khtml/ecma/kjs_window.cpp:
  8373. (Window::installTimeout): Change parameter to UString, not Identifier.
  8374. (WindowFunc::tryCall): Pass the UString, not Identifier.
  8375. (ScheduledAction::ScheduledAction): Change parameter to use const QString & to avoid
  8376. a bit of overhead.
  8377. (WindowQObject::installTimeout): Change parameter to UString, not Identifier.
  8378. 2003-03-03 David Hyatt <hyatt@apple.com>
  8379. I messed up when i merged Lars' quirks color patch for CSS with
  8380. my original patch. I'm now exactly matching Lars' patch, and this
  8381. now fixes bug 3181185.
  8382. Reviewed by darin
  8383. * khtml/css/cssparser.cpp:
  8384. (CSSParser::parseColor):
  8385. 2003-03-03 David Hyatt <hyatt@apple.com>
  8386. Fix for 3179084. Fix is to just dump our code so that the new
  8387. addHTMLColor code kicks in. This code is very close to WinIE
  8388. on more-colortests.html.
  8389. Reviewed by darin
  8390. * ChangeLog:
  8391. * kwq/KWQColor.mm:
  8392. (QColor::setNamedColor):
  8393. 2003-03-03 David Hyatt <hyatt@apple.com>
  8394. Fix for 3178361, <th> don't draw borders. Boneheaded mistake
  8395. on my part. Just forgot to include it along with <td> in the
  8396. CSS hack for sharing cell rules.
  8397. Reviewed by rjw
  8398. * khtml/css/cssstyleselector.cpp:
  8399. 2003-03-03 Richard Williamson <rjw@apple.com>
  8400. Fix build oops from last checkin to khtml/html/html_formimpl.cpp.
  8401. Reviewed by trey
  8402. * khtml/html/html_formimpl.cpp:
  8403. (encodeCString):
  8404. 2003-03-03 Darin Adler <darin@apple.com>
  8405. Reviewed by Dave.
  8406. - fixed 3183445 -- hang in QCString::length reloading page with lots of text in textarea
  8407. * khtml/html/html_formimpl.cpp: (encodeCString): Compute string length only once outside the loop
  8408. to avoid being O(n^2) in the size of the string.
  8409. 2003-03-03 Darin Adler <darin@apple.com>
  8410. Reviewed by Trey.
  8411. - fixed 3180364 -- infinite loop in JavaScript at www.vw.dk (due to document.anchors problem) leads to hang
  8412. The underlying problem was that our document.anchors had all the anchors in it.
  8413. But here's what the Gecko DOM reference documentation says about document.anchors:
  8414. "For reasons of backwards compatibility, the returned set of anchors only contains
  8415. those anchors created with the name attribute, not those created with the id attribute."
  8416. * khtml/html/html_miscimpl.cpp:
  8417. (HTMLCollectionImpl::calcLength): Include only A elements with NAME attributes in the DOC_ANCHORS case.
  8418. (HTMLCollectionImpl::getItem): Ditto.
  8419. (HTMLCollectionImpl::getNamedItem): Ditto.
  8420. 2003-03-02 Trey Matteson <trey@apple.com>
  8421. Use a KWQPopUpButton in place of NSPopUpButton. The only addition is that
  8422. it implements the KWQWidgetHolder protocol. This is needed in order to
  8423. auto set PopUps during autofill.
  8424. Reviewed by Maciej.
  8425. * kwq/KWQComboBox.mm:
  8426. (QComboBox::QComboBox): Make a KWQPopUpButton instead of NSPopUpButton.
  8427. (QComboBox::~QComboBox): trivial s/KWQPopUpButton/NSPopUpButton/
  8428. (QComboBox::insertItem): ditto
  8429. (QComboBox::sizeHint): ditto
  8430. (QComboBox::baselinePosition): ditto
  8431. (QComboBox::clear): ditto
  8432. (QComboBox::setCurrentItem): ditto
  8433. (QComboBox::currentItem): ditto
  8434. (-[KWQPopUpButtonCell widget]): Also implement KWQWidgetHolder
  8435. (-[KWQPopUpButton widget]): Implement KWQWidgetHolder by calling our cell.
  8436. 2003-02-28 Darin Adler <darin@apple.com>
  8437. * khtml/css/parser.y: Fixed bad check-in that broke the build in a subtle way.
  8438. * khtml/css/parser.cpp: Regenerated.
  8439. 2003-02-28 Trey Matteson <trey@apple.com>
  8440. More support for autofill, autocomplete.
  8441. Pass the form element along with the values to WK when submitting.
  8442. isLoginForm looks for a single plain text field along with password fields, so as not to match registration forms.
  8443. Added means to find the "current" form on a page.
  8444. Added means to return the whole set of controls on a form.
  8445. Reviewed by Darin.
  8446. * khtml/html/html_elementimpl.h:
  8447. Added isGenericFormElement().
  8448. * khtml/html/html_formimpl.cpp:
  8449. (HTMLFormElementImpl::isLoginForm): See above.
  8450. (HTMLFormElementImpl::submit): Also register form when registering values,
  8451. so it will be sent over bridge.
  8452. * kwq/KWQKHTMLPart.h: New ivar to save form along with form values to be submitted.
  8453. * kwq/KWQKHTMLPart.mm:
  8454. (KWQKHTMLPart::KWQKHTMLPart): Init _formAboutToBeSubmitted ivar.
  8455. (KWQKHTMLPart::~KWQKHTMLPart): Free _formAboutToBeSubmitted ivar.
  8456. (KWQKHTMLPart::openURL): Pass form to bridge along with values.
  8457. (KWQKHTMLPart::openURLRequest): Pass form to bridge along with values.
  8458. (scanForForm): Helper function to scan forward in the DOM for a form.
  8459. (KWQKHTMLPart::currentForm): Returns current form.
  8460. (KWQKHTMLPart::clearRecordedFormValues): Clear _formAboutToBeSubmitted.
  8461. (KWQKHTMLPart::recordFormValue): Record _formAboutToBeSubmitted too.
  8462. (KWQKHTMLPart::submitForm): Pass form to bridge along with values.
  8463. (KWQKHTMLPart::urlSelected): Pass form to bridge along with values.
  8464. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8465. (KHTMLPartBrowserExtension::createNewWindow): Pass form to bridge along with values.
  8466. * kwq/KWQTextField.mm:
  8467. (-[KWQTextField setStringValue:]):
  8468. Call textChanged so the changes actually make it to khtml.
  8469. * kwq/WebCoreBridge.h:
  8470. * kwq/WebCoreBridge.mm:
  8471. (viewForElement): New helper.
  8472. (formElementFromDOMElement): New helper.
  8473. (-[WebCoreBridge formIsLoginForm:]):
  8474. Changed API to operate on a form instead of a field.
  8475. (-[WebCoreBridge currentForm]): New method, described above.
  8476. (-[WebCoreBridge controlsInForm:]): New method, described above.
  8477. * kwq/WebCoreDOMNode.mm:
  8478. (-[WebCoreDOMNode isEqual:]):
  8479. Implement this to == compare the element we contain.
  8480. (-[WebCoreDOMNode hash]): Implement to hash element ptr we contain.
  8481. 2003-02-28 Maciej Stachowiak <mjs@apple.com>
  8482. Reviewed by Trey.
  8483. - fixed 3180170 - filepile.com does not work correctly
  8484. I fixed this by making referrer work correctly for targetted
  8485. cross-frame and cross-window links. It is still not working right
  8486. for JavaScript window.open though.
  8487. * khtml/ecma/kjs_window.cpp:
  8488. (WindowFunc::tryCall): Add some FIXMEs about not handling referrer right.
  8489. * kwq/KWQKHTMLPart.mm:
  8490. (KWQKHTMLPart::openURL): Pass referrer.
  8491. (KWQKHTMLPart::openURLRequest): Pass referrer.
  8492. (KWQKHTMLPart::submitForm): Pass referrer.
  8493. (KWQKHTMLPart::urlSelected): Pass referrer.
  8494. * kwq/KWQKHTMLPartBrowserExtension.mm:
  8495. (KHTMLPartBrowserExtension::createNewWindow): Pass referrer.
  8496. * kwq/WebCoreBridge.h: Ad referrer argument to loadURL:
  8497. 2003-02-28 David Hyatt <hyatt@apple.com>
  8498. Exclude <BR>s from the text-dec check. Really fixes 3185121.
  8499. Reviewed by john
  8500. * khtml/rendering/render_line.cpp:
  8501. (shouldDrawDecoration):
  8502. 2003-02-28 Darin Adler <darin@apple.com>
  8503. Reviewed by Dave.
  8504. - fixed some storage leaks; this code is still leaking when we run cvs-base
  8505. * khtml/css/parser.y:
  8506. (import): Use the new maybe_media_list (ported from KDE), and delete the
  8507. media list if the current item we are parsing is not a style sheet.
  8508. (maybe_media_list): Added. (ported from KDE).
  8509. (media_list): Added error case so we don't leak in that case (ported from KDE).
  8510. (media): Use media_list instead of media_list2 (ported from KDE).
  8511. (selector_list): Added error case so we don't leak in that case (ported from KDE).
  8512. (selector): Added error case so we don't leak in that case (ported from KDE).
  8513. (simple_selector): Added nil-checking (ported from KDE).
  8514. (element_name): Use 0xFFFF instead of -1 (ported from KDE).
  8515. (specifier_list): Added error case so we don't leak in that case (ported from KDE).
  8516. (declaration): Delete the expr if we don't use it because property is 0.
  8517. (expr): Added error case so we don't leak in that case (ported from KDE).
  8518. * khtml/css/cssparser.cpp:
  8519. (CSSParser::parseSheet): Delete the rule in case one was created.
  8520. (CSSParser::parseRule): Zero out the rule after extracting it to return.
  8521. (CSSParser::parseValue): Delete the rule in case one was created.
  8522. (CSSParser::parseDeclaration): Delete the rule in case one was created.
  8523. * khtml/css/parser.cpp: Regenerated.
  8524. 2003-02-28 David Hyatt <hyatt@apple.com>
  8525. Fix for text-dec regression, 3185121.
  8526. Reviewed by john
  8527. * khtml/rendering/render_line.cpp:
  8528. (shouldDrawDecoration):
  8529. === Safari-64 ===
  8530. === Safari-63 ===
  8531. 2003-02-26 David Hyatt <hyatt@apple.com>
  8532. Additional cleanup. Don't need the arg to be a reference param
  8533. any more.
  8534. Reviewed by mjs
  8535. * khtml/rendering/render_object.cpp:
  8536. (RenderObject::getTextDecorationColors):
  8537. * khtml/rendering/render_object.h:
  8538. 2003-02-26 Maciej Stachowiak <mjs@apple.com>
  8539. Reviewed by Dave.
  8540. - fixed reproducible hang at http://asp.eltonsoft.dk/cast/get.asp?cat=Quicktime
  8541. This was a set of mutually recursive frameset pages. This allows
  8542. the number of frames to grow huge, which kills both WebCore and
  8543. WebKit, so I added a hard limit of 200 total frames per page.
  8544. * khtml/html/html_baseimpl.cpp:
  8545. (HTMLFrameElementImpl::isURLAllowed):
  8546. (HTMLFrameElementImpl::attach):
  8547. (HTMLFrameElementImpl::detach):
  8548. (HTMLIFrameElementImpl::attach):
  8549. * khtml/html/html_baseimpl.h:
  8550. * khtml/khtml_part.cpp:
  8551. (KHTMLPart::init):
  8552. (KHTMLPart::incrementFrameCount):
  8553. (KHTMLPart::decrementFrameCount):
  8554. (KHTMLPart::topLevelFrameCount):
  8555. * khtml/khtml_part.h:
  8556. 2003-02-26 David Hyatt <hyatt@apple.com>
  8557. Fix numerous regressions with text-decoration in quirks mode and
  8558. also fixed a bug where text-decoration:none is not being honored
  8559. on links.
  8560. Reviewed by mjs
  8561. * khtml/css/cssstyleselector.cpp:
  8562. * khtml/rendering/render_object.cpp:
  8563. (RenderObject::getTextDecorationColors):
  8564. * khtml/rendering/render_object.h:
  8565. * khtml/rendering/render_text.cpp:
  8566. (TextRun::paintDecoration):
  8567. 2003-02-26 David Hyatt <hyatt@apple.com>
  8568. Fix for 3179109. containingBlock() had a big old bug in it.
  8569. For ABSOLUTE positioned elements, it would return inline relative
  8570. positioned parents (when it should only be returning blocks).
  8571. Reviewed by john
  8572. * khtml/rendering/render_object.cpp:
  8573. (RenderObject::containingBlock):
  8574. 2003-02-25 David Hyatt <hyatt@apple.com>
  8575. Fix for findNextLayer problems. There was nothing wrong with
  8576. findNextLayer per se... it was just getting called *way* more
  8577. often than it needed to be.
  8578. Fixes two bugs, 3159866 and 3168815.
  8579. Reviewed by darin
  8580. * khtml/rendering/render_container.cpp:
  8581. (RenderContainer::appendChildNode):
  8582. (RenderContainer::insertChildNode):
  8583. * khtml/rendering/render_object.cpp:
  8584. (addLayers):
  8585. (RenderObject::addLayers):
  8586. * khtml/rendering/render_object.h:
  8587. 2003-02-25 Darin Adler <darin@apple.com>
  8588. Reviewed by Trey.
  8589. - fixed 3177139 -- REGRESSION: tiny buttons with no text on dbaron test page
  8590. This is actually a shortcoming in XML support. The reason it seemed like a regression
  8591. is that this page was parsed as HTML before we had the XML support.
  8592. * khtml/xml/xml_tokenizer.cpp:
  8593. (XMLHandler::startElement): As the HTML tokenizer/parser does, call init() on all DOM
  8594. tree elements before calling attach(). The KHTML guys want to get rid of init(), but until
  8595. they do, we need the same thing here as in the HTML version.
  8596. (XMLHandler::startCDATA): Ditto.
  8597. (XMLHandler::enterText): Ditto.
  8598. * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode): Fix an obvious editing error that
  8599. would lead to a second attach.
  8600. 2003-02-25 David Hyatt <hyatt@apple.com>
  8601. Revert one of my optimizations. It was bogus. You can't use
  8602. the parsed value of "inherit."
  8603. Fixes versiontracker. Bug #3178204
  8604. Reviewed by mjs
  8605. * khtml/html/html_tableimpl.cpp:
  8606. (HTMLTableElementImpl::createSharedCellDecls):
  8607. 2003-02-25 David Hyatt <hyatt@apple.com>
  8608. reverseRuns was buggy and crashing. 3182658.
  8609. Reviewed by mjs
  8610. * khtml/rendering/bidi.cpp:
  8611. 2003-02-25 David Hyatt <hyatt@apple.com>
  8612. Regression caused by my inclusion of inline flows in the bidi
  8613. iteration. These flows are always empty and should be skipped
  8614. if found at the start of a line.
  8615. The bug # is 3175670.
  8616. * khtml/rendering/bidi.cpp:
  8617. 2003-02-25 David Hyatt <hyatt@apple.com>
  8618. Fix for bug 3166276. <tt> uses wrong font size inside a table.
  8619. Make sure logical font values like "medium" don't set the "size
  8620. specified" bit on the font, so that the generic family change
  8621. code will get activated.
  8622. Reviewed by darin
  8623. * khtml/css/cssstyleselector.cpp:
  8624. 2003-02-25 Darin Adler <darin@apple.com>
  8625. Reviewed by me, changes by Dave.
  8626. - fixed 3181790 -- REGRESSION: TextRun objects of length 0 or with just the character '\n' leak
  8627. * khtml/rendering/render_text.cpp: (RenderText::position): Destroy the passed-in
  8628. TextRun if it's the kind that's not needed, rather than just returning.
  8629. - fixed 3181794 -- REGRESSION: objects created by RenderObject::createInlineBox leak
  8630. * khtml/rendering/render_box.cpp: (RenderBox::position): Only do work for replaced
  8631. elements, and for those elements, destroy the passed-in InlineBox. Dave says this
  8632. is not the real solution, but it does plug the leak.
  8633. * khtml/rendering/render_flow.cpp: (RenderFlow::createInlineBox): Call through
  8634. to the inherited createInlineBox for all replaced elements. This code was making
  8635. the wrong kind of InlineBox for replaced elements.
  8636. - removed Id cvs magic string which causes big headaches in generated files
  8637. * khtml/css/parser.cpp: Removed Id cvs magic string.
  8638. * khtml/css/parser.y: Removed Id cvs magic string.
  8639. 2003-02-24 David Hyatt <hyatt@apple.com>
  8640. The new CSS1 parser, implementation of attr(), improvement of
  8641. the content property, impl of the :target selector, and new
  8642. dotted/dashed line drawing code for borders.
  8643. Reviewed by darin/gramps
  8644. * ForwardingHeaders/css/css_base.h: Added.
  8645. * WebCore.pbproj/project.pbxproj:
  8646. * khtml/css/Makefile.am:
  8647. * khtml/css/css_base.cpp: Added.
  8648. (StyleBaseImpl::checkLoaded):
  8649. (StyleBaseImpl::stylesheet):
  8650. (StyleBaseImpl::baseURL):
  8651. (StyleBaseImpl::setParsedValue):
  8652. (StyleListImpl::~StyleListImpl):
  8653. (CSSSelector::print):
  8654. (CSSSelector::specificity):
  8655. (CSSSelector::extractPseudoType):
  8656. (CSSSelector::operator == ):
  8657. (CSSSelector::selectorText):
  8658. * khtml/css/css_base.h: Added.
  8659. * khtml/css/css_ruleimpl.cpp:
  8660. (CSSRuleImpl::parentRule):
  8661. (CSSImportRuleImpl::CSSImportRuleImpl):
  8662. (CSSImportRuleImpl::~CSSImportRuleImpl):
  8663. (CSSImportRuleImpl::setStyleSheet):
  8664. (CSSImportRuleImpl::init):
  8665. (CSSMediaRuleImpl::CSSMediaRuleImpl):
  8666. (CSSMediaRuleImpl::append):
  8667. (CSSMediaRuleImpl::insertRule):
  8668. (CSSStyleRuleImpl::setDeclaration):
  8669. (CSSStyleRuleImpl::setNonCSSHints):
  8670. * khtml/css/css_ruleimpl.h:
  8671. * khtml/css/css_stylesheetimpl.cpp:
  8672. (CSSStyleSheetImpl::CSSStyleSheetImpl):
  8673. (CSSStyleSheetImpl::insertRule):
  8674. (CSSStyleSheetImpl::cssRules):
  8675. (CSSStyleSheetImpl::parseString):
  8676. (MediaListImpl::deleteMedium):
  8677. * khtml/css/css_stylesheetimpl.h:
  8678. * khtml/css/css_valueimpl.cpp:
  8679. (CSSStyleDeclarationImpl::getPropertyValue):
  8680. (CSSStyleDeclarationImpl::get4Values):
  8681. (CSSStyleDeclarationImpl::getShortHandValue):
  8682. (CSSStyleDeclarationImpl::getPropertyCSSValue):
  8683. (CSSStyleDeclarationImpl::removeProperty):
  8684. (CSSStyleDeclarationImpl::getPropertyPriority):
  8685. (CSSStyleDeclarationImpl::setProperty):
  8686. (CSSStyleDeclarationImpl::setLengthProperty):
  8687. (CSSPrimitiveValueImpl::CSSPrimitiveValueImpl):
  8688. (CSSPrimitiveValueImpl::cleanup):
  8689. (CSSPrimitiveValueImpl::computeLength):
  8690. (CSSPrimitiveValueImpl::computeLengthFloat):
  8691. (CSSPrimitiveValueImpl::setFloatValue):
  8692. (CSSPrimitiveValueImpl::cssText):
  8693. (FontFamilyValueImpl::FontFamilyValueImpl):
  8694. (FontValueImpl::FontValueImpl):
  8695. (FontValueImpl::~FontValueImpl):
  8696. * khtml/css/css_valueimpl.h:
  8697. * khtml/css/cssparser.cpp:
  8698. (qFatal):
  8699. (ValueList::ValueList):
  8700. (ValueList::~ValueList):
  8701. (ValueList::addValue):
  8702. (CSSParser::CSSParser):
  8703. (CSSParser::~CSSParser):
  8704. (CSSParser::parseSheet):
  8705. (CSSParser::parseRule):
  8706. (CSSParser::parseValue):
  8707. (CSSParser::parseDeclaration):
  8708. (CSSParser::addProperty):
  8709. (CSSParser::createStyleDeclaration):
  8710. (CSSParser::clearProperties):
  8711. (CSSParser::document):
  8712. (validUnit):
  8713. (CSSParser::parseShortHand):
  8714. (CSSParser::parse4Values):
  8715. (CSSParser::parseContent):
  8716. (CSSParser::parseShape):
  8717. (CSSParser::parseFont):
  8718. (CSSParser::parseFontFamily):
  8719. (parseColor):
  8720. (CSSParser::parseColor):
  8721. (yyerror):
  8722. (DOM::CSSParser::lex):
  8723. (toHex):
  8724. (DOM::CSSParser::text):
  8725. * khtml/css/cssparser.h:
  8726. * khtml/css/cssproperties.c:
  8727. (findProp):
  8728. * khtml/css/cssproperties.h:
  8729. * khtml/css/cssproperties.in:
  8730. * khtml/css/cssstyleselector.cpp:
  8731. * khtml/css/cssstyleselector.h:
  8732. * khtml/css/cssvalues.c:
  8733. (hash_val):
  8734. (findValue):
  8735. * khtml/css/cssvalues.h:
  8736. * khtml/css/cssvalues.in:
  8737. * khtml/css/html4.css:
  8738. * khtml/css/parser.cpp: Added.
  8739. (DOM::getPropertyID):
  8740. (getValueID):
  8741. (cssyyerror):
  8742. (cssyylex):
  8743. (__yy_memcpy):
  8744. * khtml/css/parser.h: Added.
  8745. * khtml/css/parser.y: Added.
  8746. * khtml/css/quirks.css: Added.
  8747. * khtml/css/tokenizer.cpp: Added.
  8748. * khtml/css/tokenizer.flex: Added.
  8749. * khtml/dom/css_value.h:
  8750. * khtml/dom/html_element.cpp:
  8751. * khtml/ecma/kjs_css.cpp:
  8752. * khtml/html/html_baseimpl.cpp:
  8753. (HTMLBodyElementImpl::parseAttribute):
  8754. * khtml/html/html_blockimpl.cpp:
  8755. (HTMLDivElementImpl::parseAttribute):
  8756. (HTMLHRElementImpl::attach):
  8757. (HTMLParagraphElementImpl::parseAttribute):
  8758. * khtml/html/html_elementimpl.cpp:
  8759. (isHexDigit):
  8760. (toHex):
  8761. (HTMLElementImpl::addHTMLColor):
  8762. * khtml/html/html_elementimpl.h:
  8763. * khtml/html/html_inlineimpl.cpp:
  8764. (HTMLFontElementImpl::parseAttribute):
  8765. * khtml/html/html_tableimpl.cpp:
  8766. (HTMLTableElementImpl::parseAttribute):
  8767. (HTMLTableElementImpl::attach):
  8768. (HTMLTablePartElementImpl::parseAttribute):
  8769. (HTMLTableCellElementImpl::parseAttribute):
  8770. * khtml/khtml_part.cpp:
  8771. (KHTMLPart::gotoAnchor):
  8772. * khtml/misc/helper.h:
  8773. * khtml/rendering/render_body.cpp:
  8774. (RenderBody::setStyle):
  8775. * khtml/rendering/render_list.cpp:
  8776. (RenderListMarker::lineHeight):
  8777. (RenderListMarker::baselinePosition):
  8778. * khtml/rendering/render_style.cpp:
  8779. (RenderStyle::setContent):
  8780. * khtml/rendering/render_style.h:
  8781. * khtml/xml/dom_docimpl.cpp:
  8782. (DocumentImpl::DocumentImpl):
  8783. (DocumentImpl::setFocusNode):
  8784. (DocumentImpl::setCSSTarget):
  8785. (DocumentImpl::getCSSTarget):
  8786. * khtml/xml/dom_docimpl.h:
  8787. * kwq/KWQChar.mm:
  8788. (QChar::upper):
  8789. * kwq/KWQColor.h:
  8790. * kwq/KWQKStandardDirs.mm:
  8791. (locate):
  8792. * kwq/KWQPainter.mm:
  8793. (QPainter::drawLine):
  8794. * kwq/KWQString.h:
  8795. 2003-02-24 Maciej Stachowiak <mjs@apple.com>
  8796. Reviewed by John.
  8797. - fixed 3167642 - crash in renderArena.
  8798. * khtml/html/html_documentimpl.h:
  8799. * khtml/html/html_documentimpl.cpp:
  8800. (HTMLDocumentImpl::HTMLDocumentImpl): Added new processingLoadEvent bool.
  8801. (HTMLDocumentImpl::close): Guard against re-entering the load event handler.
  8802. 2003-02-24 Darin Adler <darin@apple.com>
  8803. Reviewed by Ken.
  8804. - fixed 3179059 -- CSS1: capitalized letters should remain capitalized when
  8805. text-transform: capitalize is applied
  8806. * khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::capitalize): Capitalize the first
  8807. letters of words, but don't make any letters lowercase.
  8808. 2003-02-23 Darin Adler <darin@apple.com>
  8809. Reviewed by Maciej.
  8810. - fixed 3179181 -- KURL won't accept URLs with a query part and no / separating host name from path
  8811. * kwq/KWQKURL.mm: (KURL::parse): Allow any path segment end character to end the host part of a
  8812. URL, rather than allowing only a "/".
  8813. 2003-02-21 Maciej Stachowiak <mjs@apple.com>
  8814. Back out last change, mondo layout regressions.
  8815. * khtml/html/html_documentimpl.cpp:
  8816. (HTMLDocumentImpl::close):
  8817. 2003-02-21 Maciej Stachowiak <mjs@apple.com>
  8818. Reviewed by Dave.
  8819. - fixed 3167642 - crash in renderArena.
  8820. * khtml/html/html_documentimpl.cpp:
  8821. (HTMLDocumentImpl::close): Clear the tokenizer early to avoid
  8822. re-entering the onload handler - this was causing a massive
  8823. overload of frames which finally caused a crash.
  8824. 2003-02-21 Darin Adler <darin@apple.com>
  8825. Reviewed by Dave.
  8826. - fixed a problem that was causing layout tests to give inconsistent results
  8827. * kwq/KWQPixmap.mm:
  8828. (QPixmap::size): Handle case of nil image so we don't use the uninitialized
  8829. result of dispatching a method to a structure-returning function.
  8830. (QPixmap::rect): Ditto.
  8831. (QPixmap::width): Ditto.
  8832. (QPixmap::height): Ditto.
  8833. 2003-02-21 Darin Adler <darin@apple.com>
  8834. Reviewed by Maciej.
  8835. - Made it possible to run the layout tests in a Deployment version
  8836. * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation): Remove #ifndef NDEBUG.
  8837. * kwq/KWQRenderTreeDebug.h: Remove #ifndef NDEBUG.
  8838. * kwq/WebCoreBridge.mm: (-[WebCoreBridge renderTreeAsExternalRepresentation]):
  8839. Remove #ifndef NDEBUG.
  8840. 2003-02-21 Darin Adler <darin@apple.com>
  8841. * kwq/KWQRenderTreeDebug.cpp: (write): Add missing spaces in render
  8842. tree dump format.
  8843. 2003-02-20 Maciej Stachowiak <mjs@apple.com>
  8844. Revert Dave's patch to these files, since it turned out to cause
  8845. layout regressions.
  8846. * khtml/rendering/render_layer.cpp:
  8847. (RenderLayer::updateLayerPosition):
  8848. * khtml/rendering/render_object.cpp:
  8849. (RenderObject::setLayouted):
  8850. (RenderObject::container):
  8851. 2003-02-20 Maciej Stachowiak <mjs@apple.com>
  8852. Reviewed by Darin Adler.
  8853. - fixed 3173276 - hang in kjs string at iteslj.org page
  8854. * khtml/html/htmltokenizer.cpp:
  8855. (HTMLTokenizer::addPending): Leave whitespace unmolested inside
  8856. <script>, so that literal tabs in strings come through as tabs,
  8857. not spaces.
  8858. 2003-02-20 Darin Adler <darin@apple.com>
  8859. Reviewed by Trey.
  8860. - fixed 3177310 -- REGRESSION: "serif" mapped to "fixed"
  8861. Fixed a typo where the serif method was returning the fixed font name.
  8862. Also made this class use inlining for almost everything -- yields a miniscule
  8863. improvement in code size and speed, and increases brevity.
  8864. * kwq/KWQKHTMLSettings.h: Moved almost everything here.
  8865. * kwq/KWQKHTMLSettings.mm: Moved almost everything out of here.
  8866. 2003-02-19 David Hyatt <hyatt@apple.com>
  8867. Update layers to not fix their positions during setLayouted.
  8868. Inline container() within render_object.cpp so setLayouted can
  8869. use it inline.
  8870. Reviewed by mjs
  8871. * khtml/rendering/render_layer.cpp:
  8872. (RenderLayer::updateLayerPosition):
  8873. * khtml/rendering/render_object.cpp:
  8874. (RenderObject::setLayouted):
  8875. (RenderObject::container):
  8876. 2003-02-19 David Hyatt <hyatt@apple.com>
  8877. Just chain BidiRuns using an internal next ptr and dump the
  8878. use of QPtrList (which has to malloc internal nodes to wrap
  8879. each run).
  8880. Reviewed by darin (reverseRuns reviewed by mjs)
  8881. * khtml/rendering/bidi.cpp:
  8882. * khtml/rendering/bidi.h:
  8883. * khtml/rendering/render_block.h:
  8884. 2003-02-19 David Hyatt <hyatt@apple.com>
  8885. Make the BidiIterator midpoints use an array instead of a list.
  8886. Reviewed by kocienda
  8887. * khtml/rendering/bidi.h
  8888. * khtml/rendering/bidi.cpp:
  8889. * khtml/rendering/render_block.h:
  8890. 2003-02-18 Maciej Stachowiak <mjs@apple.com
  8891. Reviewed by Chris.
  8892. Merged changes from Safari-58-1-branch.
  8893. 2003-02-11 Maciej Stachowiak <mjs@apple.com>
  8894. Reviewed by Trey.
  8895. * WebCore.pbproj/project.pbxproj: Include /System/Library/PrivateFrameworks.
  8896. 2003-02-18 Trey Matteson <trey@apple.com>
  8897. 3171982 - REGRESSION: onClick handlers run twice when button pressed (DSLReports.com forums)
  8898. My earlier changes added the codepath by which we let khtmlview fully process
  8899. a mouse up after a widget has done it's tracking, which leads to the second
  8900. onClick call. Presumably that path does not exist in the native KDE case.
  8901. The change below reduces the impact of my hack, whereby instead of fully posting
  8902. a fake mouseup, we just note that the mouse has done up at the end of mousedown
  8903. handling, and clear the mousePressed state (state I also added).
  8904. Reviewed by Darin.
  8905. * khtml/khtmlview.cpp:
  8906. (KHTMLView::viewportMousePressEvent): Look for a current mouseUp at the end of
  8907. dispatching the mouse down.
  8908. * kwq/KWQKHTMLPart.h:
  8909. * kwq/KWQKHTMLPart.mm:
  8910. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  8911. Don't post a phony mouse up from here.
  8912. (KWQKHTMLPart::lastEventIsMouseUp):
  8913. Utility routine to test for mouseUp.
  8914. === Safari-62 ===
  8915. 2003-02-18 David Hyatt <hyatt@apple.com>
  8916. Fix for 3176102, bad table cell regression. I was adding in
  8917. random properties for cells. Eep.
  8918. Also patched table element to add in the inherit property using
  8919. CSS_VAL_INHERIT instead of the string "inherit" (faster).
  8920. Reviewed by gramps
  8921. * khtml/css/cssstyleselector.cpp:
  8922. * khtml/html/html_tableimpl.cpp
  8923. 2003-02-18 David Hyatt <hyatt@apple.com>
  8924. Fix for 3171795, dotted borders drawn incorrectly. Picked this
  8925. gem up from the KHTML trunk.
  8926. Reviewed by darin
  8927. * khtml/rendering/render_object.cpp:
  8928. (RenderObject::drawBorder):
  8929. 2003-02-17 Darin Adler <darin@apple.com>
  8930. Reviewed by Dave.
  8931. - fixed 3174332 -- REGRESSION: bad initial layout due to empty QFontMetrics
  8932. * khtml/rendering/render_html.cpp: (RenderHtml::setStyle):
  8933. Don't set the style's to display:BLOCK if it's display:NONE. This prevents
  8934. us from modifying the special FOUC style among other things.
  8935. - unrelated code cleanup
  8936. * khtml/html/html_baseimpl.cpp: Moved code around that was grouped badly.
  8937. 2003-02-17 David Hyatt <hyatt@apple.com>
  8938. Missed another "Almost Strict" spot.
  8939. Reviewed by kocienda
  8940. * khtml/xml/dom_docimpl.cpp:
  8941. (DocumentImpl::recalcStyle):
  8942. 2003-02-17 David Hyatt <hyatt@apple.com>
  8943. Fix for 3% improvement on cached cvs-base. Make cells share the
  8944. declarations set up by the table (add these decls to the table
  8945. once instead of to every cell).
  8946. Reviewed by darin
  8947. * khtml/css/cssstyleselector.cpp:
  8948. * khtml/css/cssstyleselector.h:
  8949. * khtml/html/html_tableimpl.cpp:
  8950. (HTMLTableElementImpl::HTMLTableElementImpl):
  8951. (HTMLTableElementImpl::~HTMLTableElementImpl):
  8952. (HTMLTableElementImpl::createSharedCellDecls):
  8953. (HTMLTableCellElementImpl::getAdditionalStyleDecls):
  8954. (HTMLTableCellElementImpl::attach):
  8955. * khtml/html/html_tableimpl.h:
  8956. * khtml/xml/dom_elementimpl.h:
  8957. 2003-02-17 Trey Matteson <trey@apple.com>
  8958. 2938062 Mouse cursor does not change to link cursor over non-button form submission controls
  8959. Reviewed by Darin
  8960. * khtml/khtmlview.cpp:
  8961. (isSubmitImage): Helper function to ID submit buttons with images.
  8962. (KHTMLView::viewportMouseMoveEvent): Set cursor for submit buttons with images.
  8963. * kwq/WebCoreBridge.mm:
  8964. (inputElementFromDOMElement): Simplify previously written casting goop.
  8965. 2003-02-16 David Hyatt <hyatt@apple.com>
  8966. Fix "Almost Strict" mode to not match @konq-quirks.
  8967. Reviewed by kocienda
  8968. * ChangeLog:
  8969. * khtml/xml/dom_docimpl.cpp:
  8970. (DocumentImpl::DocumentImpl):
  8971. (DocumentImpl::recalcStyleSelector):
  8972. 2003-02-16 David Hyatt <hyatt@apple.com>
  8973. Fix to make table cells within the same table use a shared style
  8974. decl object (owned by the table). This stops every cell in a table
  8975. from having the exact same values copied on the cell itself.
  8976. * khtml/css/cssstyleselector.cpp:
  8977. * khtml/css/cssstyleselector.h:
  8978. * khtml/html/html_tableimpl.cpp:
  8979. (HTMLTableElementImpl::HTMLTableElementImpl):
  8980. (HTMLTableElementImpl::~HTMLTableElementImpl):
  8981. (HTMLTableElementImpl::createSharedCellDecls):
  8982. (HTMLTableCellElementImpl::getAdditionalStyleDecls):
  8983. (HTMLTableCellElementImpl::attach):
  8984. * khtml/html/html_tableimpl.h:
  8985. * khtml/xml/dom_elementimpl.h:
  8986. 2003-02-14 David Hyatt <hyatt@apple.com>
  8987. Make the inline box model live. Borders/backgrounds and text
  8988. decorations have been rewritten.
  8989. Also fixed a bug with clip rects. They didn't include borders.
  8990. Reviewed by kocienda
  8991. * khtml/css/cssstyleselector.cpp:
  8992. * khtml/ecma/kjs_window.cpp:
  8993. (WindowFunc::tryCall):
  8994. * khtml/rendering/bidi.cpp:
  8995. * khtml/rendering/font.cpp:
  8996. * khtml/rendering/font.h:
  8997. * khtml/rendering/render_block.cpp:
  8998. * khtml/rendering/render_block.h:
  8999. * khtml/rendering/render_box.cpp:
  9000. (RenderBox::paintBackground):
  9001. (RenderBox::paintBackgroundExtended):
  9002. (RenderBox::getClipRect):
  9003. (RenderBox::position):
  9004. * khtml/rendering/render_box.h:
  9005. * khtml/rendering/render_flow.cpp:
  9006. (RenderFlow::createInlineBox):
  9007. (RenderFlow::paintLineBoxBackgroundBorder):
  9008. (RenderFlow::paintLineBoxDecorations):
  9009. (RenderFlow::repaint):
  9010. * khtml/rendering/render_flow.h:
  9011. * khtml/rendering/render_inline.cpp:
  9012. (RenderInline::paintObject):
  9013. (RenderInline::width):
  9014. (RenderInline::height):
  9015. (RenderInline::offsetLeft):
  9016. (RenderInline::offsetTop):
  9017. (RenderInline::nodeAtPoint):
  9018. * khtml/rendering/render_inline.h:
  9019. * khtml/rendering/render_line.cpp:
  9020. (InlineFlowBox::verticallyAlignBoxes):
  9021. (InlineFlowBox::computeLogicalBoxHeights):
  9022. (InlineFlowBox::placeBoxesVertically):
  9023. (InlineFlowBox::shrinkBoxesWithNoTextChildren):
  9024. (InlineFlowBox::paintBackgroundAndBorder):
  9025. (shouldDrawDecoration):
  9026. (InlineFlowBox::paintDecorations):
  9027. * khtml/rendering/render_line.h:
  9028. * khtml/rendering/render_object.cpp:
  9029. (RenderObject::setStyle):
  9030. (RenderObject::lineHeight):
  9031. (RenderObject::getTextDecorationColors):
  9032. * khtml/rendering/render_object.h:
  9033. * khtml/rendering/render_root.cpp:
  9034. (enclosingPositionedRect):
  9035. * khtml/rendering/render_style.cpp:
  9036. (StyleVisualData::StyleVisualData):
  9037. (StyleInheritedData::StyleInheritedData):
  9038. (StyleInheritedData::operator==):
  9039. (RenderStyle::diff):
  9040. * khtml/rendering/render_style.h:
  9041. * khtml/rendering/render_table.cpp:
  9042. (RenderTableCell::repaintRectangle):
  9043. * khtml/rendering/render_text.cpp:
  9044. (TextRun::paintDecoration):
  9045. (TextRun::checkSelectionPoint):
  9046. (RenderText::nodeAtPoint):
  9047. (RenderText::cursorPos):
  9048. (RenderText::absolutePosition):
  9049. (RenderText::paintObject):
  9050. (RenderText::paint):
  9051. (RenderText::position):
  9052. * khtml/rendering/render_text.h:
  9053. * kwq/KWQPainter.h:
  9054. * kwq/KWQPainter.mm:
  9055. (QPainter::drawLineForText):
  9056. * kwq/WebCoreTextRenderer.h:
  9057. 2003-02-13 Trey Matteson <trey@apple.com>
  9058. First checkin for working forms autocomplete.
  9059. This level has some new support routines.
  9060. Reviewed by Chris
  9061. * khtml/html/html_formimpl.cpp:
  9062. (HTMLFormElementImpl::isLoginForm): New, returns if a form is for login.
  9063. * khtml/html/html_formimpl.h:
  9064. * kwq/KWQDOMNode.cpp:
  9065. (idFromNode): New, helper routine to allow us to use the id() function from ObjC.
  9066. * kwq/KWQDOMNode.h:
  9067. * kwq/KWQTextArea.h: Adopt KWQWidgetHolder protocol.
  9068. * kwq/KWQTextArea.mm:
  9069. (-[KWQTextArea widget]): Adopt KWQWidgetHolder protocol.
  9070. (-[KWQTextAreaTextView widget]): Adopt KWQWidgetHolder protocol.
  9071. * kwq/KWQTextField.h: Adopt KWQWidgetHolder protocol.
  9072. * kwq/KWQTextField.mm:
  9073. (-[KWQTextField widget]): Adopt KWQWidgetHolder protocol.
  9074. (-[KWQSecureTextField widget]): Adopt KWQWidgetHolder protocol.
  9075. * kwq/KWQView.h: Define KWQWidgetHolder protocol
  9076. * kwq/KWQView.mm:
  9077. (-[KWQView widget]): Adopt KWQWidgetHolder protocol.
  9078. * kwq/WebCoreBridge.h:
  9079. * kwq/WebCoreBridge.mm:
  9080. (-[WebCoreBridge elementForView:]): New method.
  9081. (inputElementFromDOMElement): Common code for next two methods.
  9082. (-[WebCoreBridge elementIsInLoginForm:]): New method.
  9083. (-[WebCoreBridge elementDoesAutoComplete:]): New method.
  9084. 2003-02-13 Darin Adler <darin@apple.com>
  9085. Reviewed by Trey.
  9086. - fixed 3162806 -- REGRESSION: handle == h assertion when clicking headphone link at cnn.com
  9087. * khtml/ecma/kjs_window.cpp: (HistoryFunc::tryCall): Instead of trying to actually do the
  9088. history navigation here, call the new KHTMLPart::scheduleHistoryNavigation.
  9089. * khtml/khtml_part.cpp:
  9090. (KHTMLPart::init): Add a few more #if !APPLE_CHANGES so we can leave out more unused fields.
  9091. (KHTMLPart::openURL): Ditto.
  9092. (KHTMLPart::createJavaContext): Ditto.
  9093. (KHTMLPart::clear): Also initialize m_scheduledRedirection to noRedirectionScheduled.
  9094. (KHTMLPart::checkCompleted): Use m_scheduledRedirection rather than m_redirectURL to check
  9095. whether a redirection is already in progress.
  9096. (KHTMLPart::scheduleRedirection): Use m_scheduledRedirection rather than m_redirectURL to check
  9097. whether a redirection is already in progress, and set m_scheduledRedirection to redirectionScheduled.
  9098. (KHTMLPart::scheduleHistoryNavigation): Added. Does the same thing as scheduleRedirection,
  9099. but always uses a delay of 0, sets m_scheduledRedirection to historyNavigationScheduled, and
  9100. sets m_scheduledHistoryNavigationSteps.
  9101. (KHTMLPart::slotRedirect): Add an if statement that does the history navigation. The code is
  9102. moved here from HistoryFunc::tryCall. Also set m_scheduledRedirection to noRedirectionScheduled.
  9103. (KHTMLPart::urlSelected): Add a few more #if !APPLE_CHANGES so we can leave out more unused fields.
  9104. (KHTMLPart::requestObject): Ditto.
  9105. (KHTMLPart::submitForm): Ditto.
  9106. (KHTMLPart::slotParentCompleted): Use m_scheduledRedirection rather than m_redirectURL to check
  9107. whether a redirection is already in progress.
  9108. (KHTMLPart::setZoomFactor): Add a few more #if !APPLE_CHANGES so we can leave out more unused fields.
  9109. * khtml/khtml_part.h: Added scheduleHistoryNavigation.
  9110. * khtml/khtmlpart_p.h: Added RedirectionScheduled enum. Added more #if !APPLE_CHANGES to leave out
  9111. a bunch more fields we don't use. Added m_scheduledRedirection and m_scheduledHistoryNavigationSteps.
  9112. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::redirectionTimerStartedOrStopped): Check and don't do anything
  9113. if the timer was being used for history redirection.
  9114. * khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::close):
  9115. Check m_scheduledRedirection instead of m_redirectURL to figure out if there is a redirection
  9116. in progress. Not strictly necessary since we really don't care about the history case here,
  9117. but consistent with the rest.
  9118. 2003-02-13 Chris Blumenberg <cblu@apple.com>
  9119. Fixed WebKit typos found by Peter Wilson.
  9120. Reviewed by darin.
  9121. * kwq/KWQKHTMLPart.mm:
  9122. (KWQKHTMLPart::bridgeForFrameName): call findOrCreateFrameNamed
  9123. * kwq/WebCoreBridge.h: fixed method name for findOrCreateFrameNamed
  9124. 2003-02-12 Darin Adler <darin@apple.com>
  9125. Reviewed by Ken.
  9126. - fixed 3158484 -- after submission failure, submitting a second time doesn't work
  9127. * kwq/KWQKHTMLPart.h: Added didNotOpenURL method. Changed _formSubmittedFlag bool
  9128. into _submittedFormURL string.
  9129. * kwq/KWQKHTMLPart.mm:
  9130. (KWQKHTMLPart::KWQKHTMLPart): No need to initialize string.
  9131. (KWQKHTMLPart::didNotOpenURL): If the form we submitted failed, then forget about it.
  9132. (KWQKHTMLPart::submitForm): Only do the protection against multiple submissions if
  9133. the URL is the same.
  9134. (KWQKHTMLPart::setView): Nuke the submitted URL here where we used to nuke the flag.
  9135. * kwq/WebCoreBridge.h: Added didNotOpenURL: method to be called by WebKit.
  9136. * kwq/WebCoreBridge.mm: (-[WebCoreBridge didNotOpenURL:]): Forward the call to the part.
  9137. 2003-02-12 Darin Adler <darin@apple.com>
  9138. Reviewed by Trey.
  9139. - fixed 3162786 -- hang with large amounts of text in textarea
  9140. * kwq/KWQTextArea.mm: (-[KWQTextArea getCursorPositionAsIndex:inParagraph:]):
  9141. Rewrite to not use RangeOfParagraph to avoid n^2 algorithm. Also made small
  9142. changes to similar functions so they look similar, and got rid of an int/unsigned
  9143. mismatch in a case where the value is guaranteed to be positive.
  9144. 2003-02-11 Darin Adler <darin@apple.com>
  9145. Reviewed by Dave.
  9146. - fixed 3170403 -- nil-dereference in addEventListener
  9147. * khtml/ecma/kjs_dom.cpp: (DOMNodeProtoFunc::tryCall): Check getJSEventListener result for nil.
  9148. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Check getJSEventListener result for nil.
  9149. 2003-02-11 Trey Matteson <trey@apple.com>
  9150. Set -seg1addr in our build styles, but not for the B&I build.
  9151. This makes our SYMROOTS from B&I usable to determine symbols from crash
  9152. logs from the field.
  9153. Also nuked DeploymentFat build style.
  9154. Reviewed by Ken.
  9155. * WebCore.pbproj/project.pbxproj:
  9156. 2003-02-10 David Hyatt <hyatt@apple.com>
  9157. Inline box model landing, stage 1. Doesn't really change
  9158. much of anything visually yet. Just builds a bunch of boxes
  9159. and positions them, but those boxes aren't used yet.
  9160. Also fixing repaint() to understand not to dirty outside
  9161. overflow:hidden clipped ancestors.
  9162. Fixed two table bugs in table painting as well.
  9163. Reviewed by kocienda
  9164. * WebCore.pbproj/project.pbxproj:
  9165. * khtml/rendering/bidi.cpp:
  9166. * khtml/rendering/bidi.h:
  9167. * khtml/rendering/render_block.cpp:
  9168. * khtml/rendering/render_block.h:
  9169. * khtml/rendering/render_box.cpp:
  9170. (RenderBox::position):
  9171. (RenderBox::repaintRectangle):
  9172. * khtml/rendering/render_box.h:
  9173. * khtml/rendering/render_flow.cpp:
  9174. (RenderFlow::addChild):
  9175. (RenderFlow::deleteLineBoxes):
  9176. (RenderFlow::detach):
  9177. (RenderFlow::createInlineBox):
  9178. * khtml/rendering/render_flow.h:
  9179. * khtml/rendering/render_image.cpp:
  9180. (RenderImage::paintObject):
  9181. * khtml/rendering/render_inline.cpp:
  9182. * khtml/rendering/render_inline.h:
  9183. * khtml/rendering/render_line.cpp: Added.
  9184. (InlineBox::detach):
  9185. (throw):
  9186. (InlineBox::operator delete):
  9187. (InlineFlowBox::marginLeft):
  9188. (InlineFlowBox::marginRight):
  9189. (InlineFlowBox::marginBorderPaddingLeft):
  9190. (InlineFlowBox::marginBorderPaddingRight):
  9191. (InlineFlowBox::getFlowSpacingWidth):
  9192. (InlineFlowBox::nextOnLineExists):
  9193. (InlineFlowBox::prevOnLineExists):
  9194. (InlineFlowBox::onEndChain):
  9195. (InlineFlowBox::determineSpacingForFlowBoxes):
  9196. (InlineFlowBox::placeBoxesHorizontally):
  9197. (InlineFlowBox::verticallyAlignBoxes):
  9198. (InlineFlowBox::adjustMaxAscentAndDescent):
  9199. (InlineFlowBox::computeLogicalBoxHeights):
  9200. (InlineFlowBox::placeBoxesVertically):
  9201. * khtml/rendering/render_line.h: Added.
  9202. * khtml/rendering/render_object.cpp:
  9203. (RenderObject::createInlineBox):
  9204. * khtml/rendering/render_object.h:
  9205. * khtml/rendering/render_replaced.cpp:
  9206. * khtml/rendering/render_replaced.h:
  9207. * khtml/rendering/render_table.cpp:
  9208. (RenderTableSection::paint):
  9209. (RenderTableCell::repaintRectangle):
  9210. (RenderTableCell::paint):
  9211. * khtml/rendering/render_table.h:
  9212. * khtml/rendering/render_text.cpp:
  9213. (RenderText::nodeAtPoint):
  9214. (RenderText::paintObject):
  9215. (RenderText::height):
  9216. (RenderText::createInlineBox):
  9217. (RenderText::position):
  9218. (RenderText::width):
  9219. (RenderText::metrics):
  9220. * khtml/rendering/render_text.h:
  9221. * khtml/xml/dom_docimpl.h:
  9222. 2003-02-10 Darin Adler <darin@apple.com>
  9223. Reviewed by Richard.
  9224. - fixed 3124596 -- failures handling URLs with non-ASCII characters in them
  9225. * khtml/xml/dom_docimpl.h: Add an m_decoder field.
  9226. * khtml/xml/dom_docimpl.cpp:
  9227. (DocumentImpl::DocumentImpl): Initialize m_decoder to 0.
  9228. (DocumentImpl::completeURL): Pass the QTextCodec from m_decoder to KURL if present.
  9229. * khtml/khtml_part.cpp:
  9230. (KHTMLPart::begin): Set the decoder on the document when we make the document if we have a decoder.
  9231. (KHTMLPart::write): Set the decoder on the document when we make the decoder if we have a document.
  9232. (KHTMLPart::completeURL): Remove APPLE_CHANGES; we handle the encoding in the document.
  9233. * kwq/KWQKURL.h: Removed "encoding hint" parameters. Add a QTextCodec parameter to the
  9234. relative URL constructor, which is the one used when we deal with links on a page.
  9235. * kwq/KWQKURL.mm: (KURL::KURL): Decode the relative string based on the QTextCodec parameter.
  9236. * kwq/KWQString.h: Added isAllASCII, good for detecting when it's safe to use latin1()
  9237. or ascii() without worrying about character sets.
  9238. * kwq/KWQString.mm: (QString::isAllASCII): Added.
  9239. * WebCore-tests.exp: Updated for changes in KURL API.
  9240. * WebCore-combined.exp: Regenerated.
  9241. - other changes
  9242. * khtml/rendering/render_table.cpp: (RenderTableCell::setWidth): Add an assertion that will help
  9243. us notice future overflow issues.
  9244. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Rolled out the APPLE_CHANGES here that
  9245. were intended to cope with the lack of window.history, which we now have. While KHTML's rule may
  9246. not be the correct rule, this will now work as well in Safari as in Konqueror.
  9247. 2003-02-07 Darin Adler <darin@apple.com>
  9248. Reviewed by Maciej.
  9249. - fixed 3145899 -- tf1.fr page marked UTF-8 is being decoded as Latin-1 (due to <noscript> before <meta>)
  9250. * khtml/misc/decoder.cpp: (Decoder::decode): Add NOSCRIPT to the list of tags
  9251. that are allowed before META tags that specify character sets.
  9252. - fixed 3144214 -- treat Big5 as Windows CP 950 the same way TEC does
  9253. * kwq/mac-encodings.txt: Move Big5 names to kCFStringEncodingDOSChineseTrad
  9254. instead of kCFStringEncodingBig5.
  9255. * kwq/KWQCharsetData.c: Regenerated.
  9256. 2003-02-07 Richard Williamson <rjw@apple.com>
  9257. Changes to support per WebController preferences.
  9258. KHTMLPart now always accesses preferences from it's m_setting.
  9259. Changes made to WebPreferences pass to WebCoreSetting to KTMLSettings.
  9260. Added JavaScriptCanOpenWindowsAutomatically to KHTMLSettings.
  9261. Reviewed by Maciej and Ken.
  9262. * khtml/ecma/kjs_window.cpp:
  9263. (WindowFunc::tryCall):
  9264. * khtml/khtml_part.cpp:
  9265. (KHTMLPart::init):
  9266. (KHTMLPart::restoreURL):
  9267. (KHTMLPart::openURL):
  9268. (KHTMLPart::begin):
  9269. (KHTMLPart::reparseConfiguration):
  9270. * khtml/khtmlpart_p.h:
  9271. * kwq/KWQKConfigBase.h:
  9272. * kwq/KWQKConfigBase.mm:
  9273. (KConfig::readUnsignedNumEntry):
  9274. * kwq/KWQKHTMLPart.h:
  9275. * kwq/KWQKHTMLPart.mm:
  9276. (KWQKHTMLPart::setSettings):
  9277. * kwq/KWQKHTMLSettings.h:
  9278. * kwq/KWQKHTMLSettings.mm:
  9279. (KHTMLSettings::stdFontName):
  9280. (KHTMLSettings::fixedFontName):
  9281. (KHTMLSettings::serifFontName):
  9282. (KHTMLSettings::sansSerifFontName):
  9283. (KHTMLSettings::cursiveFontName):
  9284. (KHTMLSettings::fantasyFontName):
  9285. (KHTMLSettings::minFontSize):
  9286. (KHTMLSettings::mediumFontSize):
  9287. (KHTMLSettings::mediumFixedFontSize):
  9288. (KHTMLSettings::isJavaEnabled):
  9289. (KHTMLSettings::autoLoadImages):
  9290. (KHTMLSettings::isPluginsEnabled):
  9291. (KHTMLSettings::isJavaScriptEnabled):
  9292. (KHTMLSettings::JavaScriptCanOpenWindowsAutomatically):
  9293. (KHTMLSettings::userStyleSheet):
  9294. (KHTMLSettings::setStdFontName):
  9295. (KHTMLSettings::setFixedFontName):
  9296. (KHTMLSettings::setSerifFontName):
  9297. (KHTMLSettings::setSansSerifFontName):
  9298. (KHTMLSettings::setCursiveFontName):
  9299. (KHTMLSettings::setFantasyFontName):
  9300. (KHTMLSettings::setMinFontSize):
  9301. (KHTMLSettings::setMediumFontSize):
  9302. (KHTMLSettings::setMediumFixedFontSize):
  9303. (KHTMLSettings::setAutoLoadImages):
  9304. (KHTMLSettings::setIsJavaScriptEnabled):
  9305. (KHTMLSettings::setIsJavaEnabled):
  9306. (KHTMLSettings::setArePluginsEnabled):
  9307. (KHTMLSettings::setJavaScriptCanOpenWindowsAutomatically):
  9308. (KHTMLSettings::setUserStyleSheet):
  9309. * kwq/WebCoreBridge.h:
  9310. * kwq/WebCoreBridge.mm:
  9311. (-[WebCoreBridge init]):
  9312. (-[WebCoreBridge initializeSettings:]):
  9313. * kwq/WebCoreSettings.h:
  9314. * kwq/WebCoreSettings.mm:
  9315. (-[WebCoreSettings dealloc]):
  9316. (-[WebCoreSettings init]):
  9317. (-[WebCoreSettings setStandardFontFamily:]):
  9318. (-[WebCoreSettings setFixedFontFamily:]):
  9319. (-[WebCoreSettings setSerifFontFamily:]):
  9320. (-[WebCoreSettings setSansSerifFontFamily:]):
  9321. (-[WebCoreSettings setCursiveFontFamily:]):
  9322. (-[WebCoreSettings setFantasyFontFamily:]):
  9323. (-[WebCoreSettings setMinimumFontSize:]):
  9324. (-[WebCoreSettings setDefaultFontSize:]):
  9325. (-[WebCoreSettings setDefaultFixedFontSize:]):
  9326. (-[WebCoreSettings setJavaEnabled:]):
  9327. (-[WebCoreSettings setPluginsEnabled:]):
  9328. (-[WebCoreSettings setJavaScriptEnabled:]):
  9329. (-[WebCoreSettings setJavaScriptCanOpenWindowsAutomatically:]):
  9330. (-[WebCoreSettings setWillLoadImagesAutomatically:]):
  9331. (-[WebCoreSettings setUserStyleSheetLocation:]):
  9332. (-[WebCoreSettings userStyleSheetLocation]):
  9333. (-[WebCoreSettings settings]):
  9334. 2003-02-07 Darin Adler <darin@apple.com>
  9335. * khtml/rendering/render_table.h: Added copyright date.
  9336. * khtml/rendering/render_table.cpp: Added copyright date.
  9337. 2003-02-07 Darin Adler <darin@apple.com>
  9338. Reviewed by Dave.
  9339. - fixed 3165171 -- REGRESSION: images overlap text
  9340. * khtml/rendering/table_layout.cpp: (AutoTableLayout::calcEffectiveWidth):
  9341. Change to distribute space to the fixed columns first so the code to distribute to non-fixed columns does not
  9342. assume it can distribute more to the fixed columns than it really can.
  9343. 2003-02-07 Darin Adler <darin@apple.com>
  9344. Reviewed by Ken.
  9345. - fixed 3167025 -- REGRESSION: http://www.buypcdirect.com doesn't wrap correctly b/c of huge cell width value
  9346. * khtml/rendering/table_layout.h: Make the fields in the Layout structure used in table
  9347. width computations use int instead of short.
  9348. * khtml/rendering/table_layout.cpp:
  9349. (FixedTableLayout::calcMinMaxWidth): Make sure we don't overflow m_minWidth or m_maxWidth in case the
  9350. specified fixed width value is huge.
  9351. (FixedTableLayout::layout): Use ints for the calcWidth array instead of shorts.
  9352. (AutoTableLayout::calcMinMaxWidth): Clamp both maxWidth and minWidth to 0x7fff to match the other code in
  9353. this file, rather than using 10000.
  9354. 2003-02-06 Darin Adler <darin@apple.com>
  9355. Reviewed by Maciej.
  9356. - fixed 3140738 -- textarea contents are LF delimited instead of CRLF
  9357. * khtml/html/html_formimpl.cpp:
  9358. (encodeCString): Turn CR followed by something other than LF into CRLF.
  9359. (fixLineBreaks): Added. Turns stray CRs and LFs into CRLF.
  9360. (HTMLFormElementImpl::formData): Call fixLineBreaks on form data.
  9361. - fixed 3167235 -- REGRESSION: assert after clicking on a link on radioslack.com
  9362. * kwq/KWQTextCodec.mm: (KWQTextDecoder::toUnicode): Return the null string
  9363. if the passed in string pointer is NULL, rather than asserting.
  9364. 2003-02-06 David Hyatt <hyatt@apple.com>
  9365. Fix rollingstone regression.
  9366. Reviewed by mjs
  9367. * khtml/rendering/render_object.cpp:
  9368. (RenderObject::setLayouted):
  9369. 2003-02-06 Darin Adler <darin@apple.com>
  9370. Reviewed by Ken.
  9371. - fixed 3166693 -- REGRESSION: infinite recursion in makeFirstResponder while tabbing as page loaded
  9372. Because we now deliver blur events, we are triggering a handler on this page that changes focus.
  9373. It triggered an infinite loop because setFocus kept setting the focus back to a text field, which
  9374. then changed the focus to its editor. The fix was to make QWidget::setFocus smarter about editors.
  9375. * kwq/KWQTextField.mm: (-[KWQTextField becomeFirstResponder]): Don't do any changes in responder until
  9376. after calling KWQKHTMLPart::setDocumentFocus, since that can change focus away. If it does, return NO.
  9377. * kwq/KWQWidget.h: Add hasFocus, remove virtual from setFocus and clearFocus.
  9378. * kwq/KWQWidget.mm:
  9379. (QWidget::hasFocus): Added. Moved code to check if a particular view is first responder here.
  9380. Here's the bug fix too, check if the first responder is this widget's view's editor, and if so return true.
  9381. (QWidget::setFocus): Do nothing if this widget already has focus.
  9382. (QWidget::clearFocus): Do nothing if this widget does not have focus.
  9383. 2003-02-06 Darin Adler <darin@apple.com>
  9384. Reviewed by Dave.
  9385. - fixed 3161953 -- crash in KWQListImpl, DOM::CSSStyleSheetImpl::isLoading on XML page
  9386. The problem is that this page has some non-HTML elements, but the code was checking
  9387. only the element ID, not whether it is HTML or not. Also fixed the page's layout.
  9388. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector):
  9389. Check that the node is an HTML element before checking the ID in two places.
  9390. Without this, we cast the pointer to the wrong type and trash memory.
  9391. * khtml/rendering/render_root.cpp:
  9392. (RenderRoot::layout): Set all the children false here, not just firstChild.
  9393. (RenderRoot::docHeight): Take all the children's heights into account, not just firstChild.
  9394. (RenderRoot::docWidth): Take all the children's widths into account, not just firstChild.
  9395. 2003-02-06 Darin Adler <darin@apple.com>
  9396. Reviewed by Dave.
  9397. - fixed 3165295 -- Hang while triple clicking on page
  9398. Flaws in the continuation logic we added to checkSelectionPoint made it take
  9399. exponential time on pages with a lot of continuations.
  9400. * khtml/rendering/render_object.h: Make checkSelectionPoint non-virtual, and
  9401. added virtual checkSelectionPointIgnoringContinuations.
  9402. * khtml/rendering/render_object.cpp:
  9403. (RenderObject::checkSelectionPoint): Added. Does the inline continuation part of
  9404. the render object walking process, which we only want to do at the top level,
  9405. since otherwise we will see the same nodes multiple times. Also optimizes by only
  9406. looking at the inline continuations of inlines, not any continuations of a block.
  9407. (RenderObject::checkSelectionPointIgnoringContinuations): This is now the virtual
  9408. function that is overriden by RenderText. It is identical to the old version of
  9409. checkSelectionPoint, minus the continuation logic.
  9410. * khtml/rendering/render_text.h: Changed the name of checkSelectionPoint to
  9411. checkSelectionPointIgnoringContinuations.
  9412. * khtml/rendering/render_text.cpp: (RenderText::checkSelectionPointIgnoringContinuations):
  9413. Changed the name, and nothing else.
  9414. - fixed my build which was crashing on load
  9415. * WebCore.pbproj/project.pbxproj: Change seg1addr from 2200000 to 9000000.
  9416. 2003-02-05 Trey Matteson <trey@apple.com>
  9417. 3137647 - ad frames get their own history entries at channels.netscape.com
  9418. 3133844 - 2 items in back list at http://www.kiup-bank.com/personal/main01.html
  9419. The logic for deciding whether new entries are added to history is moved here
  9420. from WebKit. The advantage is that we can take specific action in each of the
  9421. relevant cases instead of the half-informed guessing WK was doing.
  9422. Here is what we now use for the lockHistory param to scheduleRedirect():
  9423. document.location = XXX - !userGesture
  9424. window.location = XXX - !userGesture
  9425. window.open - false
  9426. window.replace - true
  9427. window.reload - true
  9428. meta equiv http-refresh - delay <= 1
  9429. http-refresh - delay <= 1
  9430. Reviewed by Maciej, Darin.
  9431. * khtml/ecma/kjs_binding.cpp:
  9432. (ScriptInterpreter::wasRunByUserGesture): Rename of previous isWindowOpenAllowed(),
  9433. since we know use it for multiple purposes.
  9434. * khtml/ecma/kjs_binding.h:
  9435. * khtml/ecma/kjs_html.cpp:
  9436. (KJS::HTMLDocument::putValue): Assignment to document.location locks history
  9437. if not a result of a user gesture.
  9438. * khtml/ecma/kjs_window.cpp:
  9439. (Window::put): Assignment to window.location locks history
  9440. if not a result of a user gesture.
  9441. (WindowFunc::tryCall): Adopt rename to wasRunByUserGesture().
  9442. (Location::put): Assignment to window.location locks history
  9443. if not a result of a user gesture.
  9444. * khtml/khtml_part.cpp:
  9445. (KHTMLPart::receivedFirstData): http-refreshes lock history if the timeout<1
  9446. * khtml/xml/dom_docimpl.cpp:
  9447. (DocumentImpl::processHttpEquiv): http-refreshes lock history if the timeout<1
  9448. 2003-02-04 Trey Matteson <trey@apple.com>
  9449. Pass formValues up through the bridge at submit time.
  9450. Reviewed by Maciej
  9451. * khtml/html/html_formimpl.cpp:
  9452. (HTMLFormElementImpl::submit): Tell KWQPart about the form values, instead of
  9453. talking to the khtmlview.
  9454. * kwq/KWQKHTMLPart.h: New ivar to store formValues.
  9455. * kwq/KWQKHTMLPart.mm:
  9456. (KWQKHTMLPart::KWQKHTMLPart): Init ivar
  9457. (KWQKHTMLPart::~KWQKHTMLPart): Free ivar
  9458. (KWQKHTMLPart::openURL): Pass nil formValues
  9459. (KWQKHTMLPart::openURLRequest): Pass nil formValues
  9460. (KWQKHTMLPart::clearRecordedFormValues): Clear saved formValues
  9461. (KWQKHTMLPart::recordFormValue): Record a name/value
  9462. (KWQKHTMLPart::submitForm): Pass along recorded formValues
  9463. (KWQKHTMLPart::urlSelected): Pass nil formValues
  9464. * kwq/KWQKHTMLPartBrowserExtension.mm:
  9465. (KHTMLPartBrowserExtension::createNewWindow): Pass nil formValues
  9466. * kwq/WebCoreBridge.h: New params for formValues
  9467. 2003-02-05 Darin Adler <darin@apple.com>
  9468. Reviewed by Dave.
  9469. - fixed 3165682 -- REGRESSION: assertion failure in appendChildNode loading cnn.com
  9470. * khtml/rendering/render_table.cpp: (RenderTable::addChild):
  9471. Get rid of double-addChild introduced when I carelessly rolled in a change
  9472. from the KHTML guys.
  9473. 2003-02-05 David Hyatt <hyatt@apple.com>
  9474. Fix for 3164949. My fix to make form controls actually obey
  9475. display settings in CSS exposed a bug in the html4.css
  9476. stylesheet. SELECT had been set to be display: block, which
  9477. is of course just plain wrong.
  9478. Reviewed by darin
  9479. * khtml/css/html4.css:
  9480. 2003-02-05 Richard Williamson <rjw@apple.com>
  9481. Cleanup public WebHistory API, stage 1.
  9482. Reviewed by trey.
  9483. * kwq/KWQKHistoryProvider.mm:
  9484. * kwq/WebCoreHistory.h:
  9485. * kwq/WebCoreHistory.m:
  9486. (+[WebCoreHistory setHistoryProvider:]):
  9487. (+[WebCoreHistory historyProvider]):
  9488. 2003-02-04 Darin Adler <darin@apple.com>
  9489. Reviewed by Maciej.
  9490. - fixed 3164850 -- REGRESSION: query URLs are broken
  9491. Mea culpa. The KURL test in the Tests directory failed last time, but for
  9492. some reason I didn't notice that when I ran it, perhaps due to the other
  9493. failing tests.
  9494. * kwq/KWQKURL.mm: (appendEscapingBadChars): Don't escape '?' even though
  9495. it is in the "bad character" set, since this is a more-lenient definition
  9496. of bad character. Also fixed a buffer overrun bug in the '%'-sequence-preserving
  9497. code, which is a second way this function is lenient. We still get the speed
  9498. because most characters this routine processes are not bad characters.
  9499. (KURL::encode_string): Instead of calling appendEscapingBadChars, put in
  9500. a strict version of the escaping loop that does not tolerate pre-existing
  9501. '%' sequences or '?' characters.
  9502. 2003-02-04 Darin Adler <darin@apple.com>
  9503. Reviewed by Dave.
  9504. - rolled in table code fix from Dirk on the khtml-dev list
  9505. * khtml/rendering/render_table.cpp: (RenderTable::addChild):
  9506. Change return back to break.
  9507. 2003-02-04 Darin Adler <darin@apple.com>
  9508. Reviewed by Maciej.
  9509. - we say goodbye to "MIB numbers"
  9510. * khtml/misc/decoder.cpp:
  9511. (Decoder::Decoder): Get the Latin-1 codec using a name.
  9512. (Decoder::setEncoding): Detect the Hebrew encoding using isISOLatin1Hebrew()
  9513. instead of MIB number.
  9514. (Decoder::decode): Get the UCS-2 codec using a name. Redo APPLE_CHANGES so
  9515. we don't get the MIB-number-based workaround for a bug in QTextCodec that
  9516. KWQ doesn't have. Get the Latin-1 codec using a name.
  9517. * khtml/misc/loader.cpp:
  9518. (CachedCSSStyleSheet::CachedCSSStyleSheet): Get the Latin-1 codec using a name.
  9519. (CachedScript::CachedScript): Get the Latin-1 codec using a name.
  9520. * kwq/KWQCharsets.h: Remove the two MIB-related functions.
  9521. * kwq/KWQCharsets.mm: Remove the MIB number from the character set table struct.
  9522. Remove the MIB-related dictionary globals and functions.
  9523. (buildDictionaries): Remove code to set up the MIB-related dictionaries.
  9524. * kwq/KWQTextCodec.h: Remove codecForMib, mibEnum, and encoding member functions.
  9525. Add isISOLatin1Hebrew member function.
  9526. * kwq/KWQTextCodec.mm:
  9527. (QTextCodec::makeDecoder): Pass in the encoding when making KWQTextDecoder rather
  9528. than passing in the QTextCodec object.
  9529. (QTextCodec::toUnicode): Ditto.
  9530. (QTextCodec::isISOLatin1Hebrew): Return true for kCFStringEncodingISOLatinHebrew only.
  9531. (KWQTextDecoder::convertUsingTEC): Get encoding directly instead of from a QTextCodec.
  9532. (KWQTextDecoder::toUnicode): Ditto.
  9533. * kwq/make-charset-table.pl: Don't write out MIB numbers.
  9534. * kwq/KWQCharsetData.c: Regenerated.
  9535. * khtml/khtml_part.cpp: (KHTMLPart::completeURL):
  9536. Don't bother passing the MIB number to KURL. Soon, we'll have to
  9537. do something smart here, but we won't use MIB numbers.
  9538. * kwq/mac-encodings.txt: Added more 16-bit Unicode character set names.
  9539. Updated some comments.
  9540. 2003-02-04 David Hyatt <hyatt@apple.com>
  9541. Patch calcInlineMaxWidth to add in left/right margins/borders/padding
  9542. separately (since the inline could break across multiple lines).
  9543. Reviewed by darin
  9544. * khtml/rendering/render_block.cpp:
  9545. (RenderBlock::calcInlineMinMaxWidth):
  9546. 2003-02-04 Maciej Stachowiak <mjs@apple.com>
  9547. Reviewed by Darin.
  9548. * WebCore.pbproj/project.pbxproj: Updated to build the framework
  9549. standalone instead of embedded when doing a B&I build for Panther.
  9550. 2003-02-04 David Hyatt <hyatt@apple.com>
  9551. Patch #1: Compacts are supposed to use their maximum intrinsic width
  9552. when determining if they will fit. I was wrongly using the
  9553. minwidth (i.e., being too aggressive about trying to squeeze
  9554. the compact in there).
  9555. Also yanking the setMaxWidth/MinWidth setters, since I'm not
  9556. using them any more.
  9557. Reviewed by kocienda
  9558. Patch #2: Implement an iterator for min/max width calculations
  9559. of blocks with inline children. This iterator will include
  9560. inline flows twice (with a bool flag indicating whether you're at the
  9561. start or end of the flow).
  9562. Reviewed by darin
  9563. * khtml/rendering/render_block.cpp:
  9564. (RenderBlock::layoutBlockChildren):
  9565. * khtml/rendering/render_box.h:
  9566. * khtml/rendering/render_object.h:
  9567. 2003-02-04 Darin Adler <darin@apple.com>
  9568. Reviewed by Maciej.
  9569. - fixed 3142813 -- Safari displays a blank page when trying to open html file encoded in little-endian UTF-16
  9570. * kwq/KWQString.h: Remove fromStringWithEncoding and convertToQCString,
  9571. add append that takes a QChar * and length.
  9572. * kwq/KWQString.mm:
  9573. (QString::fromUtf8): Use QTextCodec instead of fromStringWithEncoding.
  9574. (QString::append): Implement by calling insert.
  9575. * kwq/KWQTextCodec.h: Added an encoding() member function to QTextCodec
  9576. and made QTextDecoder an abstract base class to pave the way for putting
  9577. more state in it to handle multibyte encodings.
  9578. * kwq/KWQTextCodec.mm: Add KWQTextDecoder, a concrete subclass of QTextDecoder.
  9579. (codecForCFStringEncoding): Moved the static inside this function for clarity.
  9580. (QTextCodec::makeDecoder): Make a KWQTextDecoder.
  9581. (QTextCodec::toUnicode): Make a KWQTextDecoder and use it do the decoding instead
  9582. of calling fromStringWithEncoding.
  9583. (KWQTextDecoder::convertUTF16): Added. Decodes Unicode, using the BOM to decide
  9584. whether it's little-endian or big-endian.
  9585. (KWQTextDecoder::convertUsingTEC): Added. Here's where the code from
  9586. QString::fromStringWithEncoding was moved. This needs to be changed to handle
  9587. state between multiple buffers passed in eventually, but not to fix this bug.
  9588. (KWQTextDecoder::toUnicode): Added. Calls convertUTF16 or convertUsingTEC.
  9589. * kwq/WebCoreBridge.mm: (+[WebCoreBridge stringWithData:textEncoding:]):
  9590. Use QTextCodec instead of fromStringWithEncoding.
  9591. * khtml/misc/decoder.cpp: (Decoder::decode): Rearranged the #if to make
  9592. things easier to read.
  9593. 2003-02-04 Darin Adler <darin@apple.com>
  9594. Reviewed by Trey.
  9595. - fixed 3150252 -- files with question marks in their names fail to upload as attachments
  9596. * khtml/html/html_formimpl.cpp:
  9597. (HTMLFormElementImpl::formData): Don't include a Content-Type header at all if we don't
  9598. have a MIME type to send. Matches other web browsers' behavior.
  9599. (HTMLInputElementImpl::encoding): Construct the URL using setPath rather than just passing
  9600. a filename to the KURL constructor.
  9601. (HTMLSelectElementImpl::state): Tweak #if formatting a bit.
  9602. (HTMLSelectElementImpl::restoreState): Improve comment a bit.
  9603. * kwq/KWQKURL.mm: Make ? be a "bad character". I checked carefully to be sure this does
  9604. not adversely affect any calls, including running our KURL tests.
  9605. (KURL::setPath): Encode the passed-in path. I determined this was correct both by looking
  9606. at all the call sites in KHTML code to see that they would want this behavior, and by noticing
  9607. that the path() getter decodes the path.
  9608. 2003-02-04 Ken Kocienda <kocienda@apple.com>
  9609. Reviewed by Darin
  9610. Radar 3142922 (file URLs should never be sent as referrers)
  9611. * kwq/WebCoreBridge.mm:
  9612. (-[WebCoreBridge referrer]): Check that the referrer does not start with
  9613. the prefix "file:". If it does, return nil.
  9614. 2003-02-03 David Hyatt <hyatt@apple.com>
  9615. Fix for 3163603, livepage.apple.com repaints entire page.
  9616. Reviewed by darin.
  9617. * khtml/rendering/render_object.cpp:
  9618. (RenderObject::setStyle):
  9619. 2003-02-03 Darin Adler <darin@apple.com>
  9620. Reviewed by Dave.
  9621. - fixed 3133902 -- leaked render objects from makeChildrenNonInline (4 after running cvs-base)
  9622. * khtml/rendering/render_block.cpp: (RenderBlock::removeChild):
  9623. Deatch the anonymous block after emptying it out.
  9624. 2003-02-03 David Hyatt <hyatt@apple.com>
  9625. Fix for livepage.apple.com crash. The bug # is
  9626. 3163508.
  9627. Reviewed by darin
  9628. * khtml/rendering/render_box.cpp:
  9629. (RenderBox::setPos):
  9630. 2003-02-03 David Hyatt <hyatt@apple.com>
  9631. Rename TextSlave to TextRun.
  9632. Reviewed by darin
  9633. * khtml/khtml_part.cpp:
  9634. (firstRunAt):
  9635. (lastRunAt):
  9636. (startAndEndLineNodesIncludingNode):
  9637. * khtml/rendering/bidi.cpp:
  9638. (RenderBlock::layoutInlineChildren):
  9639. * khtml/rendering/render_text.cpp:
  9640. (TextRun::detach):
  9641. (throw):
  9642. (TextRun::operator delete):
  9643. (TextRun::paintSelection):
  9644. (TextRun::paintDecoration):
  9645. (TextRun::paintBoxDecorations):
  9646. (TextRun::checkSelectionPoint):
  9647. (TextRunArray::TextRunArray):
  9648. (TextRunArray::compareItems):
  9649. (TextRunArray::findFirstMatching):
  9650. (RenderText::detach):
  9651. (RenderText::deleteRuns):
  9652. (RenderText::findTextRun):
  9653. (RenderText::nodeAtPoint):
  9654. (RenderText::checkSelectionPoint):
  9655. (RenderText::cursorPos):
  9656. (RenderText::posOfChar):
  9657. (RenderText::paintObject):
  9658. (RenderText::position):
  9659. (RenderText::width):
  9660. * khtml/rendering/render_text.h:
  9661. * kwq/KWQRenderTreeDebug.cpp:
  9662. (writeTextRun):
  9663. (write):
  9664. 2003-02-03 David Hyatt <hyatt@apple.com>
  9665. Fix for assertion on nasdaq.com. Patch containingBlock
  9666. to return 0 when it can't find a containingBlock at all (e.g.,
  9667. when the object is orphaned).
  9668. Patch setOverhangingContents to deal with a null containingBlock
  9669. caused by it being called from RenderImage::setStyle().
  9670. The bug # is 3162989.
  9671. Reviewed by Darin.
  9672. * khtml/rendering/render_object.cpp:
  9673. (RenderObject::containingBlock):
  9674. (RenderObject::setOverhangingContents):
  9675. 2003-02-02 David Hyatt <hyatt@apple.com>
  9676. Enable support for the "run-in" and "compact" display types.
  9677. Also implementing support for :before and :after (they were not even
  9678. remotely working before these fixes).
  9679. Made sure :first-letter drills into inline children to find the
  9680. first letter in a block, e.g., so :before content can be used in
  9681. conjunction with :first-letter.
  9682. Fixed a regression in addOverhangingFloats that broke meyerweb.com's
  9683. front page.
  9684. Patched findNextLineBreak to correctly handle words that cross
  9685. inline boundaries and white-space mixtures. We now pass Hixie's
  9686. insanely evil mixed white-space test (we are the only browser
  9687. to do so).
  9688. Reviewed by kocienda
  9689. * ChangeLog:
  9690. * khtml/css/cssstyleselector.cpp:
  9691. * khtml/rendering/bidi.cpp:
  9692. (RenderBlock::findNextLineBreak):
  9693. * khtml/rendering/render_block.cpp:
  9694. (RenderBlock::setStyle):
  9695. (RenderBlock::addChildToFlow):
  9696. (getInlineRun):
  9697. (RenderBlock::layoutBlockChildren):
  9698. (RenderBlock::paintObject):
  9699. (RenderBlock::clearFloats):
  9700. * khtml/rendering/render_box.cpp:
  9701. (RenderBox::calcWidthUsing):
  9702. * khtml/rendering/render_box.h:
  9703. * khtml/rendering/render_container.cpp:
  9704. (RenderContainer::insertPseudoChild):
  9705. * khtml/rendering/render_container.h:
  9706. * khtml/rendering/render_flow.cpp:
  9707. (RenderFlow::addChild):
  9708. * khtml/rendering/render_image.cpp:
  9709. (RenderImage::setStyle):
  9710. * khtml/rendering/render_inline.cpp:
  9711. (RenderInline::setStyle):
  9712. (RenderInline::addChildToFlow):
  9713. * khtml/rendering/render_object.cpp:
  9714. (RenderObject::createObject):
  9715. * khtml/rendering/render_object.h:
  9716. * khtml/rendering/render_style.cpp:
  9717. (RenderStyle::addPseudoStyle):
  9718. 2003-02-03 Darin Adler <darin@apple.com>
  9719. Reviewed by Maciej.
  9720. - fixed 3146862 -- meta http-equiv refresh with a space before the delay does not work
  9721. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::processHttpEquiv):
  9722. Fix code that was trying to use positions within the whitespace-stripped string,
  9723. but extracting substrings from the non-stripped original.
  9724. - tweaks to render tree dumping format
  9725. * khtml/rendering/render_block.h: Make renderName not be inline, since
  9726. an inline virtual function doesn't really do any good.
  9727. * khtml/rendering/render_block.cpp: (RenderBlock::renderName): Use the
  9728. string RenderBlock instead of the string Block for consistency with all the
  9729. other renderName results.
  9730. * khtml/rendering/render_inline.h: Make renderName not be inline, since
  9731. an inline virtual function doesn't really do any good.
  9732. * khtml/rendering/render_inline.cpp: (RenderInline::renderName): Use the
  9733. string RenderInline instead of the string Inline for consistency with all the
  9734. other renderName results.
  9735. * khtml/rendering/render_text.h: Make textSlaves() a const member function.
  9736. * kwq/KWQRenderTreeDebug.cpp:
  9737. (operator<<): Format rectangles as "x at (1,2) size 3x4" rather than "(1,2,3,4)".
  9738. (quoteAndEscapeNonPrintables): Added. Makes it easy to turn an arbitrary Unicode
  9739. string into something that's all ASCII.
  9740. (writeTextSlave): Change this so it also writes out the text.
  9741. (write): Call the new writeTextSlave, and also use "layer" instead of "RenderLayer".
  9742. 2003-02-01 Darin Adler <darin@apple.com>
  9743. - fix mistake that broke build
  9744. * khtml/rendering/render_block.h: Add include of <qsortedlist.h>.
  9745. 2003-01-31 Darin Adler <darin@apple.com>
  9746. Reviewed by Dave.
  9747. - reduced the amount of RenderFlow in the world by about 1/2
  9748. * khtml/rendering/bidi.h: Take RenderBlock * instead of RenderFlow *.
  9749. * khtml/rendering/bidi.cpp:
  9750. (BidiIterator::BidiIterator): Take RenderBlock * instead of RenderFlow *.
  9751. (RenderBlock::layoutInlineChildren): Fix debug message to say RenderBlock instead of RenderFlow.
  9752. (RenderBlock::findNextLineBreak): Fix debug message to say RenderBlock instead of RenderFlow.
  9753. * khtml/rendering/render_block.cpp:
  9754. (RenderBlock::addChildToFlow): Make RenderBlock * instead of RenderFlow *.
  9755. (RenderBlock::layout): Fix debug message to say RenderBlock instead of RenderFlow.
  9756. (RenderBlock::layoutBlockChildren): Fix debug message to say RenderBlock instead of RenderFlow.
  9757. (RenderBlock::clearFloats): Fix debug message to say RenderBlock instead of RenderFlow.
  9758. * khtml/rendering/render_flow.h: Return a RenderFlow * instead of a RenderObject * from createFlow.
  9759. * khtml/rendering/render_flow.cpp:
  9760. (RenderFlow::createFlow): Use an if statement instead of ? : to get rid of typecasting.
  9761. * khtml/rendering/render_html.cpp: (RenderHtml::containingBlockWidth):
  9762. Fix parent call to call RenderBlock. Calling RenderFlow was a mistake, but one that didn't matter
  9763. since the actual method isn't implemented until up in RenderBox anyway.
  9764. * khtml/rendering/render_inline.h: Change some parameters to RenderBlock *.
  9765. * khtml/rendering/render_inline.cpp:
  9766. (cloneInline): Make this return a RenderInline * instead of a RenderFlow *.
  9767. (RenderInline::splitInlines): Change some parameters to RenderBlock * and locals to RenderInline *.
  9768. (RenderInline::splitFlow): Change some parameters and locals to RenderBlock *.
  9769. * khtml/rendering/render_layer.h: Remove forward declaration of class RenderFlow.
  9770. * khtml/rendering/render_object.h: Remove forward declaration and friend declaration of class RenderFlow.
  9771. 2003-01-31 Trey Matteson <trey@apple.com>
  9772. New plumbing for autofill/autocomplete. WebBrowser receives controlText delegate
  9773. messages from our form widgets. Should result in no behavior change.
  9774. New SPI is exposed over the bridge and KWQTextField passes the text delegate msgs to it.
  9775. Reviewed by Richard
  9776. * kwq/KWQTextField.mm: Pass text delegate msgs through new SPI.
  9777. (-[KWQTextField controlTextDidBeginEditing:]):
  9778. (-[KWQTextField controlTextDidEndEditing:]):
  9779. (-[KWQTextField controlTextDidChange:]):
  9780. (-[KWQTextField control:textShouldBeginEditing:]):
  9781. (-[KWQTextField control:textShouldEndEditing:]):
  9782. (-[KWQTextField control:didFailToFormatString:errorDescription:]):
  9783. (-[KWQTextField control:didFailToValidatePartialString:errorDescription:]):
  9784. (-[KWQTextField control:isValidObject:]):
  9785. (-[KWQTextField control:textView:doCommandBySelector:]):
  9786. * kwq/WebCoreBridge.h: New SPI for passing text delegate msgs.
  9787. 2003-01-31 David Hyatt <hyatt@apple.com>
  9788. Fix regression that broke John's site. RenderInline needs
  9789. to implement childrenInline() so that it can return true.
  9790. I pulled this method out of RenderFlow and into RenderBlock,
  9791. which caused RenderInline to use RenderObject's method (and
  9792. that one returns false).
  9793. Reviewed by rjw
  9794. * khtml/rendering/render_inline.h:
  9795. 2003-01-31 David Hyatt <hyatt@apple.com>
  9796. Fix for crash on espn.com. Revert my change to make
  9797. containingBlock() return 0 for the root. Put it back to the
  9798. old behavior, where the root returns itself when you ask for
  9799. the root's containing block.
  9800. Reviewed by rjw
  9801. * khtml/rendering/render_object.cpp:
  9802. (RenderObject::containingBlock):
  9803. (RenderObject::setOverhangingContents):
  9804. 2003-01-31 David Hyatt <hyatt@apple.com>
  9805. Two whitespace handling fixes that improve <pre> handling,
  9806. especially of inline pres.
  9807. Reviewed by rjw.
  9808. * khtml/rendering/bidi.cpp:
  9809. (RenderBlock::findNextLineBreak):
  9810. 2003-01-31 Darin Adler <darin@apple.com>
  9811. Reviewed by Richard.
  9812. * khtml/misc/decoder.cpp: (Decoder::decode): Turn off Japanese auto-detect.
  9813. It was causing us to use Japanese encoding on pages that were UTF-8.
  9814. 2003-01-31 Darin Adler <darin@apple.com>
  9815. * Resources/Info.plist: Removed unused file.
  9816. 2003-01-31 David Hyatt <hyatt@apple.com>
  9817. Split RenderFlow into subclasses: RenderInline and RenderBlock.
  9818. This change should make inlines a lot smaller (since nearly all
  9819. of the member variables in RenderFlow moved into RenderBlock).
  9820. It also simplifies methods like containingBlock(), which can
  9821. now return a RenderBlock.
  9822. Reviewed by darin
  9823. * WebCore.pbproj/project.pbxproj:
  9824. * khtml/css/cssstyleselector.cpp:
  9825. * khtml/rendering/bidi.cpp:
  9826. (RenderBlock::bidiReorderLine):
  9827. (RenderBlock::layoutInlineChildren):
  9828. (RenderBlock::findNextLineBreak):
  9829. * khtml/rendering/render_block.cpp: Added.
  9830. (:RenderFlow):
  9831. (RenderBlock::~RenderBlock):
  9832. (RenderBlock::setStyle):
  9833. (RenderBlock::addChildToFlow):
  9834. (getInlineRun):
  9835. (RenderBlock::makeChildrenNonInline):
  9836. (RenderBlock::removeChild):
  9837. (RenderBlock::layout):
  9838. (RenderBlock::layoutBlockChildren):
  9839. (RenderBlock::layoutSpecialObjects):
  9840. (RenderBlock::paint):
  9841. (RenderBlock::paintObject):
  9842. (RenderBlock::paintFloats):
  9843. (RenderBlock::insertSpecialObject):
  9844. (RenderBlock::removeSpecialObject):
  9845. (RenderBlock::positionNewFloats):
  9846. (RenderBlock::newLine):
  9847. (RenderBlock::leftOffset):
  9848. (RenderBlock::leftRelOffset):
  9849. (RenderBlock::rightOffset):
  9850. (RenderBlock::rightRelOffset):
  9851. (RenderBlock::lineWidth):
  9852. (RenderBlock::nearestFloatBottom):
  9853. (RenderBlock::floatBottom):
  9854. (RenderBlock::lowestPosition):
  9855. (RenderBlock::rightmostPosition):
  9856. (RenderBlock::leftBottom):
  9857. (RenderBlock::rightBottom):
  9858. (RenderBlock::clearFloats):
  9859. (RenderBlock::addOverHangingFloats):
  9860. (RenderBlock::checkClear):
  9861. (RenderBlock::nodeAtPoint):
  9862. (RenderBlock::calcMinMaxWidth):
  9863. (next):
  9864. (RenderBlock::calcInlineMinMaxWidth):
  9865. (RenderBlock::calcBlockMinMaxWidth):
  9866. (RenderBlock::close):
  9867. (RenderBlock::printTree):
  9868. (RenderBlock::dump):
  9869. * khtml/rendering/render_block.h: Added.
  9870. * khtml/rendering/render_body.cpp:
  9871. (RenderBody::RenderBody):
  9872. (RenderBody::setStyle):
  9873. (RenderBody::layout):
  9874. (RenderBody::availableHeight):
  9875. * khtml/rendering/render_body.h:
  9876. * khtml/rendering/render_box.cpp:
  9877. (RenderBox::containingBlockWidth):
  9878. (RenderBox::calcWidth):
  9879. (RenderBox::calcHeight):
  9880. * khtml/rendering/render_container.cpp:
  9881. (RenderContainer::insertPseudoChild):
  9882. (RenderContainer::removeLeftoverAnonymousBoxes):
  9883. * khtml/rendering/render_flow.cpp:
  9884. (RenderFlow::createFlow):
  9885. (RenderFlow::addChildWithContinuation):
  9886. * khtml/rendering/render_flow.h:
  9887. * khtml/rendering/render_form.h:
  9888. * khtml/rendering/render_html.cpp:
  9889. (RenderHtml::RenderHtml):
  9890. (RenderHtml::setStyle):
  9891. (RenderHtml::layout):
  9892. * khtml/rendering/render_html.h:
  9893. * khtml/rendering/render_image.h:
  9894. * khtml/rendering/render_inline.cpp: Added.
  9895. (:RenderFlow):
  9896. (RenderInline::~RenderInline):
  9897. (RenderInline::setStyle):
  9898. (RenderInline::addChildToFlow):
  9899. (cloneInline):
  9900. (RenderInline::splitInlines):
  9901. (RenderInline::splitFlow):
  9902. (RenderInline::paint):
  9903. (RenderInline::paintObject):
  9904. (RenderInline::calcMinMaxWidth):
  9905. (RenderInline::offsetWidth):
  9906. (RenderInline::offsetHeight):
  9907. (RenderInline::offsetLeft):
  9908. (RenderInline::offsetTop):
  9909. * khtml/rendering/render_inline.h: Added.
  9910. * khtml/rendering/render_list.cpp:
  9911. (RenderListItem::RenderListItem):
  9912. (RenderListItem::setStyle):
  9913. (getParentOfFirstLineBox):
  9914. (RenderListItem::calcMinMaxWidth):
  9915. (RenderListItem::layout):
  9916. (RenderListItem::paint):
  9917. (RenderListItem::paintObject):
  9918. * khtml/rendering/render_list.h:
  9919. * khtml/rendering/render_object.cpp:
  9920. (RenderObject::createObject):
  9921. (RenderObject::containingBlock):
  9922. (RenderObject::setOverhangingContents):
  9923. (RenderObject::removeFromSpecialObjects):
  9924. * khtml/rendering/render_object.h:
  9925. * khtml/rendering/render_replaced.h:
  9926. * khtml/rendering/render_root.cpp:
  9927. (RenderRoot::RenderRoot):
  9928. (RenderRoot::calcMinMaxWidth):
  9929. (RenderRoot::layout):
  9930. (RenderRoot::paintObject):
  9931. * khtml/rendering/render_root.h:
  9932. * khtml/rendering/render_table.cpp:
  9933. (RenderTable::RenderTable):
  9934. (RenderTable::setStyle):
  9935. (RenderTable::lineHeight):
  9936. (RenderTable::baselinePosition):
  9937. (RenderTable::addChild):
  9938. (RenderTable::calcWidth):
  9939. (RenderTable::recalcSections):
  9940. (RenderTable::dump):
  9941. (RenderTableCell::RenderTableCell):
  9942. (RenderTableCell::detach):
  9943. (RenderTableCell::calcMinMaxWidth):
  9944. (RenderTableCell::close):
  9945. (RenderTableCell::repaintRectangle):
  9946. (RenderTableCell::absolutePosition):
  9947. (RenderTableCell::setStyle):
  9948. (RenderTableCell::dump):
  9949. * khtml/rendering/render_table.h:
  9950. * khtml/rendering/render_text.h:
  9951. * khtml/xml/dom_textimpl.cpp:
  9952. (TextImpl::rendererIsNeeded):
  9953. 2003-01-31 Darin Adler <darin@apple.com>
  9954. Reviewed by me, Dave wrote the code.
  9955. - fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com)
  9956. * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren):
  9957. Don't collapse if we have any bottom border or padding.
  9958. 2003-01-31 Darin Adler <darin@apple.com>
  9959. Reviewed by Dave.
  9960. - fixed 3160442 -- no top image map at ebay, caused by referrer returning null instead of empty string
  9961. * khtml/ecma/kjs_html.cpp: (KJS::HTMLDocument::tryGet):
  9962. Return an empty string, not null, when there is no referrer.
  9963. 2003-01-31 Chris Blumenberg <cblu@apple.com>
  9964. * kwq/WebCoreBridge.mm: fixed key value
  9965. 2003-01-31 Chris Blumenberg <cblu@apple.com>
  9966. Fixed : 3155148 - image shown when dragging gets size from image file, not size as used on page
  9967. Reviewed by darin.
  9968. * kwq/WebCoreBridge.h: added WebCoreElementImageRectKey
  9969. * kwq/WebCoreBridge.mm:
  9970. (-[WebCoreBridge elementAtPoint:]): get the rect of the image
  9971. 2003-01-30 Trey Matteson <trey@apple.com>
  9972. 3161088 - disabled select elements are not disabled when scrolling list used
  9973. We use a tableview delegate method to prevent the user from changing the
  9974. selection when disabled. Too bad tableviews don't know how to disable themselves.
  9975. We also condition the cell used for drawing to match our enabled state.
  9976. Reviewed by Maciej.
  9977. * kwq/KWQListBox.h: Keep track of whether we are enabled.
  9978. * kwq/KWQListBox.mm:
  9979. (QListBox::QListBox): Init new flag.
  9980. (QListBox::setEnabled): Set new flag.
  9981. (QListBox::isEnabled): Getter for new flag.
  9982. (-[KWQListBoxTableViewDelegate selectionShouldChangeInTableView:]):
  9983. Disallow selection changes if disabled.
  9984. (-[KWQListBoxTableViewDelegate tableView:willDisplayCell:forTableColumn:row:]):
  9985. Enable cell based on our enabled state to get visual feedback of being disabled.
  9986. 2003-01-30 Trey Matteson <trey@apple.com>
  9987. 3161486 - REGRESSION: double click on a widget causes crash
  9988. Slight enhancement to the earlier fix of this bug. When handling a doubleclick we
  9989. don't want to try to pass the current event down the Cocoa widgets, because Cocoa
  9990. has no double-click event, and we just end up resending one we already sent.
  9991. The upshot is that we do not pass an extra mouseup event to the widgets at the
  9992. end of a double click sequence.
  9993. Reviewed by Darin.
  9994. * kwq/KWQKHTMLPart.mm:
  9995. (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  9996. Do not pass event down to the widget for doubleclick events.
  9997. === Safari-55 ===
  9998. 2003-01-30 Darin Adler <darin@apple.com>
  9999. Reviewed by Ken, Maciej, and Trey.
  10000. - fixed 3161486 -- REGRESSION: double click on a widget causes crash
  10001. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  10002. Only pass the mouseUp event if it's not the same as the current event.
  10003. Through a strange set of circumstances, sometimes the "mouse down" event is a mouse up
  10004. event (due to KHTML vs. AppKit differences for double-click handling).
  10005. - fixed build with newer compiler
  10006. * khtml/html/Makefile.am: Use ANSI-C style, not C++ style, gperf.
  10007. * khtml/html/doctypes.cpp: Regenerated.
  10008. * khtml/html/html_documentimpl.cpp: Do __inline workaround to make newer compiler happy.
  10009. (HTMLDocumentImpl::determineParseMode): Change to use ANSI-C style.
  10010. 2003-01-30 Richard Williamson <rjw@apple.com>
  10011. Fix for 3156831 (and dupe 3160816). Don't access userInfo on an invalid NSTimer.
  10012. Reviewed by trey.
  10013. * kwq/KWQObject.mm:
  10014. (QObject::pauseTimer):
  10015. (QObject::resumeTimers):
  10016. 2003-01-30 Trey Matteson <trey@apple.com>
  10017. 3160565 - REGRESSION: Can't log in to etrade
  10018. Fix regression caused by fixed to 3058229. We auto-select an item of a select element
  10019. if it is size=1 or size is unset (m_size==0 in the code).
  10020. This gives us conformance with WinIE. The test at dbaron.org fails us for the
  10021. case of a disabled list with no size and no initial selection.
  10022. Reviewed by Darin.
  10023. * khtml/html/html_formimpl.cpp:
  10024. (HTMLSelectElementImpl::recalcListItems): Auto-select an item if size==1 or is unset.
  10025. 2003-01-30 David Hyatt <hyatt@apple.com>
  10026. Make quirk bits part of the bitfield to shrink RenderFlows.
  10027. Reviewed by trey
  10028. * khtml/rendering/render_flow.h:
  10029. 2003-01-30 David Hyatt <hyatt@apple.com>
  10030. Fix for 3155954. Make sure no layers get made for :before,
  10031. :after or :first-letter. The only debatable case is whether
  10032. overflow can apply to generated content. Included a FIXME
  10033. to think about that case.
  10034. Reviewed by darin
  10035. * khtml/rendering/render_container.cpp:
  10036. (RenderContainer::insertPseudoChild):
  10037. * khtml/rendering/render_flow.cpp:
  10038. (RenderFlow::addChildToFlow):
  10039. * khtml/rendering/render_text.cpp:
  10040. (RenderText::nodeAtPoint):
  10041. 2003-01-30 Darin Adler <darin@apple.com>
  10042. * khtml/html/html_documentimpl.cpp: Updated license.
  10043. 2003-01-29 Darin Adler <darin@apple.com>
  10044. Reviewed by Maciej.
  10045. - fixed 3158958 -- nil-dereference in KJS::DOMNode::getValueProperty at www.babyage.com
  10046. * khtml/ecma/kjs_dom.cpp: (DOMNode::getValueProperty):
  10047. Move the code that gets the render object down after the point where the render tree
  10048. is updated, so we don't end up using a stale pointer.
  10049. 2003-01-29 Darin Adler <darin@apple.com>
  10050. - add new assertion that Dave can use to debug bug 3155954 tomorrow
  10051. * khtml/rendering/render_arena.cpp: (RenderArena::allocate): Assert that the arena is not 0.
  10052. (RenderArena::free): Change signature so we will detect double-frees even more simply.
  10053. 2003-01-29 David Hyatt <hyatt@apple.com>
  10054. Margins were being lost on documents inside iframes
  10055. and objects. This turned out to be 3 different bugs, one
  10056. of which involved the bad cast of an object element to an
  10057. iframe element.
  10058. Reviewed by darin
  10059. * khtml/html/html_baseimpl.cpp:
  10060. (HTMLIFrameElementImpl::HTMLIFrameElementImpl):
  10061. * khtml/rendering/render_frames.cpp:
  10062. (RenderPartObject::slotViewCleared):
  10063. * kwq/KWQKHTMLPart.mm:
  10064. (KWQKHTMLPart::createPart):
  10065. 2003-01-29 David Hyatt <hyatt@apple.com>
  10066. Fix for auto width tables. Prevent overflow when assigning from
  10067. the computed integer max width back into a short value.
  10068. Fixes cnn.com and spies.com. Bug # is 3158469.
  10069. Reviewed by darin
  10070. * khtml/rendering/table_layout.cpp:
  10071. (AutoTableLayout::calcMinMaxWidth):
  10072. 2003-01-29 Darin Adler <darin@apple.com>
  10073. Reviewed by Dave.
  10074. - fixed 3150439 -- navigating to a .xml, then away, then back causes display problems
  10075. * khtml/rendering/render_root.h: Add paintBoxDecorations
  10076. * khtml/rendering/render_root.cpp: (RenderRoot::paintObject):
  10077. Call paintBoxDecorations all the time. Don't consult shouldPaintBackgroundOrBorder(),
  10078. and don't waste cycles on !isInline().
  10079. (RenderRoot::paintBoxDecorations): If we don't have a RenderHtml as our first child,
  10080. then fill with the background color.
  10081. * khtml/html/htmlparser.cpp: (KHTMLParser::finished): Remove code that makes an HTML
  10082. element for an empty document. We don't need it any more.
  10083. 2003-01-29 David Hyatt <hyatt@apple.com>
  10084. Fix for tables. They weren't initializing their max top/bottom
  10085. values for margin collapsing, so their margins were being
  10086. ignored!
  10087. Reviewed by darin
  10088. * khtml/rendering/render_flow.cpp:
  10089. (RenderFlow::layout):
  10090. * khtml/rendering/render_flow.h:
  10091. * khtml/rendering/render_table.cpp:
  10092. (RenderTable::layout):
  10093. 2003-01-29 David Hyatt <hyatt@apple.com>
  10094. Back out my removal of the layer optimization. The rest of
  10095. the code is not prepared to deal with child elements overriding
  10096. visibility, or with invisible layers sitting on top of
  10097. visible ones.
  10098. * khtml/rendering/render_layer.cpp:
  10099. (RenderLayer::constructZTree):
  10100. 2003-01-28 David Hyatt <hyatt@apple.com>
  10101. Fix yet another bug with makeChildrenNonInline that caused the
  10102. assertion on 3158194. Rather than trying to work with the
  10103. function as it was written by the KHTML guys, I've just thrown
  10104. everything out and re-written it using a helper function to make
  10105. it more clear what's going on (and less error-prone).
  10106. Reviewed by darin
  10107. * khtml/rendering/render_flow.cpp:
  10108. (getInlineRun):
  10109. (RenderFlow::makeChildrenNonInline):
  10110. 2003-01-29 Darin Adler <darin@apple.com>
  10111. * khtml/rendering/break_lines.cpp: (isBreakable): Fix error that prevented this
  10112. from compiling. I had failed to build, and then tested the version without my change!
  10113. I retested with the change.
  10114. 2003-01-29 Darin Adler <darin@apple.com>
  10115. Reviewed by Ken.
  10116. - fixed 3158477 -- text break locator leak leads to giant (2.04 GB) VSIZE idling at livepage
  10117. * khtml/rendering/break_lines.cpp: (isBreakable): Dispose the text locator.
  10118. 2003-01-28 David Hyatt <hyatt@apple.com>
  10119. Fix quirks/strict regression caused by improper use of findRev (should
  10120. be find), and latin1() (can't be invoked on temporaries).
  10121. Reviewed by darin
  10122. * khtml/html/html_documentimpl.cpp:
  10123. (parseDocTypePart):
  10124. (HTMLDocumentImpl::determineParseMode):
  10125. 2003-01-28 David Hyatt <hyatt@apple.com>
  10126. Fix for 3155209, dashed-line schmutz left behind when dragging
  10127. links.
  10128. Also porting a fix from the old table code to the new table code
  10129. that I missed.
  10130. Reviewed by darin
  10131. * khtml/rendering/render_object.cpp:
  10132. (RenderObject::setStyle):
  10133. * khtml/rendering/render_table.cpp:
  10134. (RenderTable::layout):
  10135. 2003-01-27 David Hyatt <hyatt@apple.com>
  10136. New implementation of determineParseMode that is much better
  10137. about getting the quirks vs. strict decision right (as compared
  10138. to Mozilla and WinIE).
  10139. Also made a new inQuirksMode function and converted callers of
  10140. parseMode to use it, so that AlmostStrict and Strict modes will
  10141. both be treated as non-quirks mode by those who check for this
  10142. sort of thing.
  10143. Reviewed by darin, mjs
  10144. * khtml/html/html_documentimpl.cpp:
  10145. (parsePS):
  10146. (containsString):
  10147. (parseDocTypeDeclaration):
  10148. (HTMLDocumentImpl::determineParseMode):
  10149. * khtml/html/html_headimpl.cpp:
  10150. (HTMLLinkElementImpl::setStyleSheet):
  10151. (HTMLStyleElementImpl::childrenChanged):
  10152. * khtml/html/html_tableimpl.cpp:
  10153. (HTMLTableElementImpl::attach):
  10154. * khtml/html/htmlparser.cpp:
  10155. (KHTMLParser::parseToken):
  10156. * khtml/html/htmltokenizer.cpp:
  10157. (HTMLTokenizer::parseTag):
  10158. * khtml/khtml_part.cpp:
  10159. (KHTMLPart::gotoAnchor):
  10160. * khtml/rendering/render_flow.cpp:
  10161. (RenderFlow::layoutBlockChildren):
  10162. * khtml/rendering/render_list.cpp:
  10163. (getParentOfFirstLineBox):
  10164. * khtml/rendering/render_object.cpp:
  10165. (RenderObject::createObject):
  10166. * khtml/xml/dom_docimpl.cpp:
  10167. (DocumentImpl::determineParseMode):
  10168. * khtml/xml/dom_docimpl.h:
  10169. * khtml/xml/dom_elementimpl.cpp:
  10170. (ElementImpl::createDecl):
  10171. * kwq/KWQString.mm:
  10172. (QString::compare):
  10173. 2003-01-28 Darin Adler <darin@apple.com>
  10174. Reviewed by Ken and Maciej.
  10175. - fixed remaining bit of 3142646 -- JavaScript Error reported at www.hotmail.com after first time
  10176. The problem was that forms that were attached, but had no render object yet, were
  10177. not in the form names dictionary. This causes trouble for JavaScript that runs before
  10178. style sheets load, since the FOUC code makes us not create render objects at that stage.
  10179. * khtml/html/html_formimpl.cpp:
  10180. (HTMLFormElementImpl::attach): Don't check m_render before adding to dictionary.
  10181. (HTMLFormElementImpl::parseAttribute): Use attached(), not m_render, to tell whether
  10182. to track the name of the form in the dictionary.
  10183. * khtml/html/html_imageimpl.cpp:
  10184. (HTMLImageElementImpl::parseAttribute): Use attached(), not m_render, to tell whether
  10185. to track the name of the image in the dictionary.
  10186. (HTMLImageElementImpl::attach): Don't check m_render before adding to dictionary.
  10187. 2003-01-28 Maciej Stachowiak <mjs@apple.com>
  10188. Reviewed by John.
  10189. - fixed 3157014 - Crash on disabling JavaScript and reloading livepage.apple.com
  10190. * khtml/khtml_part.cpp:
  10191. (KHTMLPart::openURL): Move check of JavaScript setting and possible disabling from here...
  10192. (KHTMLPart::begin): ... to here, to make sure it happens after clearing the interpreter.
  10193. * kwq/KWQKHTMLPart.mm:
  10194. (KWQKHTMLPart::resumeActions): Don't bother to restore timers if JavaScript is off.
  10195. 2003-01-28 Trey Matteson <trey@apple.com>
  10196. 3158465 - REGRESSION: cursor turns into I-beam after clicking on most KWQ widgets
  10197. When we return from handing a mousedown to an AK widget, we check to see if currentEvent
  10198. is now a MouseUp, in which case we hand it to khtml. This allows khtml to keep in
  10199. synch as to the state of the mouse. This covers the case of AK widgets that
  10200. run their own event loop and consume events until a mouseup (but not ones that use
  10201. Carbon, such as PopUpList, since Carbon does not update currentEvent).
  10202. Reviewed by Darin.
  10203. * kwq/KWQKHTMLPart.mm:
  10204. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Pass mouseup to khtml.
  10205. 2003-01-28 Trey Matteson <trey@apple.com>
  10206. 2940179 - Arrow cursor should change to link cursor after click of link in non-frontmost window
  10207. 3158238 - cursor shape does not track after double-click to activate a window
  10208. Reviewed by Darin.
  10209. * khtml/khtmlview.cpp:
  10210. (KHTMLView::viewportMouseDoubleClickEvent): We get this when the mouse
  10211. goes up the second time, so clear d->mousePressed.
  10212. * kwq/KWQKHTMLPart.mm:
  10213. (KWQKHTMLPart::mouseMoved): Pitch any mousemoved that comes through while
  10214. we think the mouse is down. Those screw up our tracking, like 3137661. This is
  10215. part of the 2940179 fix.
  10216. 2003-01-27 Trey Matteson <trey@apple.com>
  10217. 3157146 REGRESSION: using a pop-up menu turns the cursor into an I-beam
  10218. A hack for the benefit of AK's PopUpButton, which uses the Carbon menu
  10219. manager, which thus eats all subsequent events after it is starts its
  10220. modal tracking loop. After the interaction is done, we call a new routine
  10221. to fix things up in the khtml event world. We post a fake mouse up to balance
  10222. the mouse down we started with. In addition, we post a fake mouseMoved to get
  10223. the cursor in sync with whatever we happen to be over after the tracking is done.
  10224. Reviewed by Darin.
  10225. * kwq/KWQComboBox.mm:
  10226. (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]):
  10227. Call part after NSPopUp's modal tracking consumes events.
  10228. * kwq/KWQKHTMLPart.h:
  10229. * kwq/KWQKHTMLPart.mm:
  10230. (KWQKHTMLPart::doFakeMouseUpAfterWidgetTracking): New routine to allow widgets
  10231. to get out event state fixed up after a modal tracking loop.
  10232. 2003-01-27 Chris Blumenberg <cblu@apple.com>
  10233. Fixed: 3152053 - Safari: Java 141: Only visible applets are instantiated on web page
  10234. Reviewed by dave.
  10235. * khtml/rendering/render_applet.cpp:
  10236. (RenderApplet::layout): move the widget before calling showApplet
  10237. * kwq/KWQKJavaAppletWidget.mm:
  10238. (KJavaAppletWidget::showApplet): add the java view to the main view immediately instead of waiting for first paint
  10239. * kwq/WebCoreBridge.mm:
  10240. (-[WebCoreBridge selectionImage]): tweak
  10241. 2003-01-26 Maciej Stachowiak <mjs@apple.com>
  10242. Reviewed by Darin.
  10243. - fixed 3156461 - SECURITY: contentDocument of iframe from other domain can be accessed
  10244. - fixed 3156462 - SECURITY: can invoke setTimeout on other window
  10245. - fixed 3156469 - SECURITY: can add an event listener on another protected window
  10246. - fixed 3156527 - SECURITY: Can access HTML document from different domain in another frame
  10247. - fixed 3156535 - SECURITY: Can access XML document from different domain in another frame
  10248. These fixes are merged from or inspired by security fixes in upstream khtml.
  10249. * khtml/ecma/kjs_dom.h:
  10250. * khtml/ecma/kjs_dom.cpp:
  10251. (KJS::checkNodeSecurity): Prototype new method used to check whether a document
  10252. is allowed to access the contents of a node.
  10253. * khtml/ecma/kjs_html.cpp:
  10254. (KJS::HTMLElement::getValueProperty): Apply security check to
  10255. getting the contentDocument of an iframe or object.
  10256. * khtml/ecma/kjs_window.cpp:
  10257. (Window::get): Make sure addEventListener/removeEventListener, and
  10258. all timer related functions are protocted from cross-domain calls.
  10259. (WindowFunc::tryCall): Make sure this is true even if they are
  10260. detached from one window and called on another.
  10261. * khtml/khtml_part.cpp:
  10262. (KHTMLPart::checkEmitLoadEvent): When setting frames to the domain
  10263. of the parent document, don't force it, so the usual suffix check
  10264. rule will apply.
  10265. 2003-01-27 Richard Williamson <rjw@apple.com>
  10266. Reviewed by trey.
  10267. Added ASSERT trap to help track down non-repro crash reported
  10268. by 3144546.
  10269. * kwq/KWQKHTMLPart.mm:
  10270. (KWQKHTMLPart::openURLFromPageCache):
  10271. Remove assert that caused 3155781. We believe this was happening
  10272. because of a delayed release of the page cache after emptying cache
  10273. from "Empty Cache" menu item.
  10274. * kwq/KWQPageState.mm:
  10275. (-[KWQPageState dealloc]):
  10276. 2003-01-27 David Hyatt <hyatt@apple.com>
  10277. Fix text dragging so that text inside floats paints when you
  10278. drag the selection.
  10279. Reviewed by cblu
  10280. * ChangeLog:
  10281. * khtml/rendering/render_flow.cpp:
  10282. (RenderFlow::paintObject):
  10283. (RenderFlow::paintFloats):
  10284. * khtml/rendering/render_flow.h:
  10285. 2003-01-26 David Hyatt <hyatt@apple.com>
  10286. Fix the default font size settings for monospace fonts to
  10287. really work. It was overaggressive and kicking in when it
  10288. shouldn't have, resulting in failures on the CSS1 test suite.
  10289. Reviewed by darin, john
  10290. * khtml/css/cssstyleselector.cpp:
  10291. * khtml/css/cssstyleselector.h:
  10292. * khtml/rendering/font.h:
  10293. 2003-01-26 Chris Blumenberg <cblu@apple.com>
  10294. Fixed: 3156725 - Partially selected links show extra underlining when dragged
  10295. Fixed: 3156962 - Text drag image sometimes doesn't include last selected text node
  10296. Reviewed by darin.
  10297. * khtml/rendering/render_root.cpp:
  10298. (RenderRoot::selectionRect): include all nodes that are selected
  10299. * khtml/rendering/render_text.cpp:
  10300. (TextSlave::paintDecoration): removed stray ";"
  10301. (RenderText::paintObject): call paintDecoration with default parameters for "from" and "to" when not painting the selection only
  10302. * khtml/rendering/render_text.h:
  10303. 2003-01-26 Darin Adler <darin@apple.com>
  10304. Reviewed by Maciej.
  10305. - fixed 3126431 -- failed assertion `!attached()' at silkair.net
  10306. * khtml/rendering/render_image.h: Fix isImage which for some strange reason was
  10307. returning false. Not important because no one calls it. Added dispatchLoadEvent
  10308. and detach member functions.
  10309. * khtml/rendering/render_image.cpp:
  10310. (RenderImage::notifyFinished): Instead of dispatching the load or error event
  10311. immediately, call dispatchImageLoadEventSoon on the document.
  10312. (RenderImage::dispatchLoadEvent): Added. Moved the code to do the actual
  10313. event dispatch in here.
  10314. (RenderImage::detach): Remove the image from the document in case it has a
  10315. pending event that was not delivered yet before calling the base class detach.
  10316. * khtml/xml/dom_docimpl.h: Add dispatchImageLoadEventSoon, dispatchImageLoadEventsNow,
  10317. removeImage, and an override of timerEvent. Moved APPLE_CHANGES code to a better place.
  10318. * khtml/xml/dom_docimpl.cpp: Moved APPLE_CHANGES code to a better place and made these changes:
  10319. (DocumentImpl::DocumentImpl): Initialize m_imageLoadEventTimer to 0.
  10320. (DocumentImpl::detach): Redo the APPLE_CHANGES to make them easier to read.
  10321. Empty out the m_imageLoadEventDispatchSoonList and the m_imageLoadEventDispatchingList
  10322. to avoid an O(n^2) operation as we detach each image and remove it from the list.
  10323. (DocumentImpl::dispatchImageLoadEventSoon): Added. Adds image to list and sets up timer.
  10324. (DocumentImpl::removeImage): Added. Removes image from lists, and cancels timer if needed.
  10325. (DocumentImpl::dispatchImageLoadEventsNow): Added. Copies list, and call images to dispatch load events.
  10326. (DocumentImpl::timerEvent): Added. Calls dispatchImageLoadEventsNow.
  10327. * khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::close):
  10328. Dispatch all pending image load events before dispatching the document load.
  10329. * force-clean-timestamp: Force rebuild because Project Builder doesn't do
  10330. header dependencies well enough to deal with changes to the document class.
  10331. 2003-01-26 David Hyatt <hyatt@apple.com>
  10332. Fix :active to behave just like :hover. It was being
  10333. restricted and only allowed to match <a> tags, when :active
  10334. should be applicable to any element (e.g., like images).
  10335. Fixes the :active feedback on numerous blog sites (e.g.,
  10336. the photo image buttons on joehewitt.com).
  10337. Reviewed by gramps
  10338. * khtml/css/cssstyleselector.cpp:
  10339. 2003-01-25 Darin Adler <darin@apple.com>
  10340. Reviewed by Maciej.
  10341. - fixed 3126211 -- "go back" buttons that use "history.go(-1)" doesn't work (verizonwireless.com is an example)
  10342. - fixed 2950618 -- JavaScript window.history object name prints blank
  10343. * khtml/ecma/kjs_window.cpp:
  10344. (FrameArray::toString): Added. Returns "[object FrameArray]".
  10345. (History::getValueProperty): Removed #if APPLE_CHANGES to turn more code on.
  10346. (History::toString): Added. Returns "[object History]".
  10347. * kwq/KWQKPartsBrowserExtension.h: Make browserInterface a pure virtual function
  10348. instead of always returning 0.
  10349. * kwq/KWQKHTMLPartBrowserExtension.h: Added browserInterface() function.
  10350. Also replaced m_part with a _part that is a KWQKHTMLPart to simplify code.
  10351. * kwq/KWQKHTMLPartBrowserExtension.mm:
  10352. (KHTMLPartBrowserExtension::KHTMLPartBrowserExtension): Create the browser
  10353. interface object when the browser extension object is created.
  10354. (KHTMLPartBrowserExtension::openURLRequest): Use _part instead of KWQ(m_part).
  10355. (KHTMLPartBrowserExtension::createNewWindow): Use _part instead of KWQ(m_part).
  10356. (KHTMLPartBrowserExtension::setIconURL): Use _part instead of KWQ(m_part).
  10357. (KHTMLPartBrowserExtension::setTypedIconURL): Use _part instead of KWQ(m_part).
  10358. * kwq/KWQKPartsBrowserInterface.h: Add a constructor, property() function, and
  10359. _part data member.
  10360. * kwq/KWQKPartsBrowserInterface.mm:
  10361. (BrowserInterface::property): Added. Handles historyLength property by calling
  10362. the historyLength method on the bridge.
  10363. (BrowserInterface::callMethod): Handles goHistory(int) by calling the
  10364. goBackOrForward: method on the bridge.
  10365. * kwq/WebCoreBridge.h: Added historyLength and goBackOrForward: methods.
  10366. * kwq/KWQVariant.h: Added Int to the variant enum, added int and uint contructors,
  10367. and added toInt() member function.
  10368. * kwq/KWQVariant.mm:
  10369. (QVariant::QVariant): Implemented int and uint constructors.
  10370. (QVariant::toBool): Added Int case, sorted alphabetically.
  10371. (QVariant::toInt): Added.
  10372. (QVariant::toUInt): Added Int case, sorted alphabetically.
  10373. (QVariant::asString): Added Int case, sorted alphabetically.
  10374. 2003-01-25 Chris Blumenberg <cblu@apple.com>
  10375. Fixed: 3153605 - Drag image when dragging text should be the actual text
  10376. Reviewed by darin.
  10377. * khtml/rendering/font.cpp:
  10378. (Font::drawLineForText): take a "from" and "to" so only selected portions of text draw lines
  10379. * khtml/rendering/font.h:
  10380. * khtml/rendering/render_layer.cpp:
  10381. (RenderLayer::paint): handle the selection-only case
  10382. * khtml/rendering/render_layer.h:
  10383. * khtml/rendering/render_root.cpp:
  10384. (RenderRoot::selectionRect): new, computes bounding box of the selection
  10385. * khtml/rendering/render_root.h:
  10386. * khtml/rendering/render_text.cpp:
  10387. (TextSlave::paintDecoration): take a "from" and "to" so only selected portions of text draw lines
  10388. (RenderText::paintObject): when only drawing the selection, only draw selected text and no selection background
  10389. (RenderText::paint): handle the selection-only case
  10390. * khtml/rendering/render_text.h:
  10391. * kwq/KWQKHTMLPart.h:
  10392. * kwq/KWQKHTMLPart.mm:
  10393. (KWQKHTMLPart::paint): handle the selection-only case
  10394. (KWQKHTMLPart::selectionRect): new, returns the bounding box of the selection
  10395. * kwq/KWQPainter.h:
  10396. * kwq/KWQPainter.mm:
  10397. (QPainter::drawLineForText): take a "from" and "to" so only selected portions of text draw lines
  10398. * kwq/WebCoreBridge.h:
  10399. * kwq/WebCoreBridge.mm:
  10400. (-[WebCoreBridge drawRect:withPainter:]): handle the selection-only case
  10401. (-[WebCoreBridge selectionRect]): new, returns the bounding box of the selection clipped to visible
  10402. (-[WebCoreBridge selectionImage]): new, returns the image of the selection
  10403. 2003-01-24 David Hyatt <hyatt@apple.com>
  10404. Fix for 3153260, tables used as height spacers don't get the
  10405. specified height.
  10406. Reviewed by rjw
  10407. * khtml/rendering/render_table.cpp:
  10408. (RenderTableSection::layoutRows):
  10409. 2003-01-24 Trey Matteson <trey@apple.com>
  10410. Chris pointed out a FIXME that led to a more contained way to make sure the cursor
  10411. is correct during and after image/text/URL dragging.
  10412. Reviewed by Chris.
  10413. * kwq/KWQKHTMLPart.h: Back out just-added resetCursor method.
  10414. * kwq/KWQKHTMLPart.mm:
  10415. (KWQKHTMLPart::khtmlMouseMoveEvent): Reset cursor to arrow when image drag starts.
  10416. * kwq/WebCoreBridge.h:
  10417. * kwq/WebCoreBridge.mm: Back out just-added resetCursor method, which is no
  10418. longer needed by WebKit.
  10419. 2003-01-24 Darin Adler <darin@apple.com>
  10420. Reviewed by Maciej.
  10421. - fixed 3058229 -- two failures in DOM test page for HTMLSelectElement
  10422. - fixed 3138938 -- choose another member name on .Mac signup not working as expected
  10423. - fixed 3155763 -- Safari autoselects first item in a WOBrowser/<select>
  10424. * khtml/html/html_formimpl.cpp:
  10425. (HTMLSelectElementImpl::value): Return "" rather than null when nothing is selected.
  10426. (HTMLSelectElementImpl::recalcListItems): Don't automatically select a first item
  10427. in the single selection case.
  10428. 2003-01-24 David Hyatt <hyatt@apple.com>
  10429. Fix for 3146066, messed up lists on dictionary.com. Make
  10430. sure that a marker in an anonymous box with no other line box
  10431. parent available just stays where it is, rather than removing
  10432. itself from the anonymous box (causing that box to be deleted
  10433. and recreated ad infinitum).
  10434. Reviewed by darin
  10435. * khtml/rendering/render_list.cpp:
  10436. (RenderListItem::updateMarkerLocation):
  10437. 2003-01-24 Darin Adler <darin@apple.com>
  10438. Reviewed by Dave.
  10439. - fixed 3142852 -- frame content repeatedly requested
  10440. The bug was that JavaScript document.referrer was totally wrong.
  10441. * khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::referrer):
  10442. Use the new incomingReferrer() rather than referrer(), because referrer()
  10443. is the referrer to use for new loads in the part, not the one that was
  10444. used to load the document.
  10445. * kwq/KWQKHTMLPart.h: Added incomingReferrer(). Also removed referrer()
  10446. which has been totally redundant since we made KWQKHTMLPart a subclass of KHTMLPart.
  10447. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::incomingReferrer): Added. Uses the bridge.
  10448. * kwq/WebCoreBridge.h: Added incomingReferrer.
  10449. 2003-01-24 Trey Matteson <trey@apple.com>
  10450. 3155162 - cursor changes to I-beam after dragging image
  10451. 3154468 - no mouseup event comes through after text snippet drag
  10452. Export a means to reset the cursor to WebKit, which is used to fix these bugs.
  10453. Reviewed by Darin.
  10454. * kwq/KWQKHTMLPart.h:
  10455. * kwq/KWQKHTMLPart.mm:
  10456. (KWQKHTMLPart::resetCursor): New method that just calls through to khtmlview's
  10457. private resetCursor method.
  10458. * kwq/WebCoreBridge.h: Add new method.
  10459. * kwq/WebCoreBridge.mm:
  10460. (-[WebCoreBridge resetCursor]): Call view's reset cursor.
  10461. 2003-01-23 Trey Matteson <trey@apple.com>
  10462. I ran our KURL tests and found that my previous fix for "localhost" urls, fixed too much.
  10463. This now passes all the tests.
  10464. Reviewed by Darin.
  10465. * kwq/KWQKURL.mm:
  10466. (KURL::parse): Use different logic for deciding to add //authority to the URL
  10467. and stripping localhost off of file URLs.
  10468. 2003-01-24 Darin Adler <darin@apple.com>
  10469. Reviewed by John.
  10470. - fixed null view and hang part of 3153612 -- REGRESSION: null view and hang loading cycleworld.com
  10471. * khtml/xml/xml_tokenizer.cpp: (XMLHandler::XMLHandler): Initialize the line number
  10472. to 0 so we can detect the case where we didn't get a fatal error callback.
  10473. (XMLTokenizer::finish): Construct an error page without an XML excerpt if the line
  10474. number if 0.
  10475. 2003-01-24 Darin Adler <darin@apple.com>
  10476. Reviewed by John.
  10477. - fixed 3140945 -- crash viewing www.nextthing.org
  10478. * khtml/rendering/render_container.cpp: (RenderContainer::removeLeftoverAnonymousBoxes):
  10479. Change this function so it will never remove a table cell. Although a table cell that is
  10480. created automatically is anonymous, it is not an anonymous box in the sense that this
  10481. function is trying to deal with. Maybe there will be a better way to fix this some day,
  10482. but this is the best Dave and I could come up with.
  10483. - fixed 3155700 -- nil-dereference in khtml::RenderTableRow::detach shortly after visiting www.alltheweb.com
  10484. * khtml/rendering/render_table.cpp: (RenderTableRow::detach):
  10485. Check for nil before calling setNeedCellRecalc in case we are being detached after our
  10486. parent is already nil.
  10487. 2003-01-23 Richard Williamson <rjw@apple.com>
  10488. Fix for 3152494. Set the default iframe width to 300 and
  10489. height to 150. This copies the behavior of mozilla and IE.
  10490. Reviewed by hyatt.
  10491. * khtml/css/html4.css:
  10492. 2003-01-23 Richard Williamson <rjw@apple.com>
  10493. Fixed whitespace exclusion code. Fixes many sites
  10494. that have problems that were exposed after
  10495. fixing 3119777.
  10496. Reviewed by hyatt.
  10497. * khtml/rendering/bidi.cpp:
  10498. (RenderFlow::bidiReorderLine):
  10499. (RenderFlow::findNextLineBreak):
  10500. * khtml/rendering/break_lines.cpp:
  10501. * khtml/rendering/render_text.cpp:
  10502. (RenderText::calcMinMaxWidth):
  10503. 2003-01-23 David Hyatt <hyatt@apple.com>
  10504. Dump textslaves in the regression tests.
  10505. Reviewed by rjw.
  10506. * kwq/KWQRenderTreeDebug.cpp:
  10507. (operator<<):
  10508. (write):
  10509. 2003-01-23 David Hyatt <hyatt@apple.com>
  10510. Fix for 3144763, inlines clear too many floats, and jump all the
  10511. way to the end of the lowest float instead of only moving as far
  10512. down as they have to in order to fit.
  10513. Reviewed by darin
  10514. * khtml/rendering/bidi.cpp:
  10515. (RenderFlow::findNextLineBreak):
  10516. * khtml/rendering/render_flow.cpp:
  10517. (RenderFlow::nearestFloatBottom):
  10518. * khtml/rendering/render_flow.h:
  10519. 2003-01-23 Darin Adler <darin@apple.com>
  10520. Reviewed by John.
  10521. - fixed 3144560 -- non-reproducible nil-dereference in HTMLFrameElementImpl::updateForNewURL at macfixit
  10522. * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::updateForNewURL): Add check for nil view.
  10523. 2003-01-23 Darin Adler <darin@apple.com>
  10524. Reviewed by John.
  10525. - fixed 3154647 -- Triple clicked on a line of text (to select entire line), crashola
  10526. * khtml/khtml_part.cpp:
  10527. (firstSlaveAt): Loop instead of using recursion for siblings.
  10528. (lastSlaveAt): Ditto, only backwards.
  10529. 2003-01-23 David Hyatt <hyatt@apple.com>
  10530. Fix for 3142124.
  10531. When pseudo-elements have display:none, they should not generate
  10532. rendering objects.
  10533. Reviewed by rjw, kocienda.
  10534. * khtml/rendering/render_container.cpp:
  10535. (RenderContainer::insertPseudoChild):
  10536. 2003-01-23 Darin Adler <darin@apple.com>
  10537. Reviewed by Maciej.
  10538. - fixed 3129556 -- can't search on japanese string at yahoo.co.jp
  10539. The key to fixing this was to look up character sets in a way that does not
  10540. pay attention to punctuation. Only alphanumeric characters count. Also did
  10541. a little belt tightening and speeding up while I was at it.
  10542. * kwq/KWQCharsets.h: Use const char * instead of CFStringRef.
  10543. * kwq/KWQCharsets.mm:
  10544. (buildDictionaries): Store const char * in the dictionaries instead of CFStringRef,
  10545. and use the key compare and hash functions that obey only alphanumeric characters.
  10546. (KWQCFStringEncodingFromIANACharsetName): Use const char * directly.
  10547. (KWQCFStringEncodingFromMIB): Tweak code a bit.
  10548. (KWQCFStringEncodingToIANACharsetName): Use const char * directly.
  10549. (KWQCFStringEncodingToMIB): Tweak code a bit.
  10550. (encodingNamesEqual): Added. Compares two names, ignoring non-alphanumeric characters.
  10551. (encodingNameHash): Added.
  10552. * kwq/KWQKCharsets.h: Take a const char * instead of a QString. Also overload for QCString.
  10553. This fixes conversion back and forth from QString that was happening before.
  10554. * kwq/KWQKCharsets.mm: (KCharsets::codecForName): Update for above parameter change.
  10555. * kwq/KWQTextCodec.mm:
  10556. (codecForCFStringEncoding): Add check for kCFStringEncodingInvalidId.
  10557. (QTextCodec::codecForMib): Simplify because of above check.
  10558. (QTextCodec::codecForName): Simplify because we don't need to make a CFStringRef, and
  10559. because of above check.
  10560. (QTextCodec::name): No need to convert the CFStringRef back to a const char * now.
  10561. * kwq/WebCoreBridge.mm:
  10562. (-[WebCoreBridge textEncoding]): Convert character set name to a const char * to pass in.
  10563. (+[WebCoreBridge stringWithData:textEncodingName:]): Ditto.
  10564. * kwq/WebCoreEncodings.mm:
  10565. (+[WebCoreEncodings charsetNameForEncoding:]): Convert character set name to an NSString
  10566. to use as a return value.
  10567. (+[WebCoreEncodings encodingForCharsetName:]): Convert character set name to a const char *
  10568. to pass in.
  10569. 2003-01-23 Chris Blumenberg <cblu@apple.com>
  10570. Fixed a divide by zero problem.
  10571. Reviewed by darin.
  10572. * WebCore.pbproj/project.pbxproj:
  10573. * khtml/rendering/render_image.cpp:
  10574. (RenderImage::calcReplacedWidth):
  10575. (RenderImage::calcReplacedHeight):
  10576. 2003-01-23 Maciej Stachowiak <mjs@apple.com>
  10577. Reviewed by Darin.
  10578. - fixed last minute screwup in my last patch fixing onchange
  10579. * kwq/KWQTextField.mm:
  10580. (-[KWQTextField fieldEditorWillBecomeFirstResponder]): Renamed
  10581. from fieldWillBecomeFirstResponder.
  10582. (-[KWQTextField fieldEditorWillResignFirstResponder]): Renamed
  10583. from fieldWillResignFirstResponder.
  10584. 2003-01-23 Maciej Stachowiak <mjs@apple.com>
  10585. Reviewed by Trey.
  10586. - fixed 3151442 - mac.com homepage editing - selection and clicking with mouse don't work
  10587. * khtml/ecma/kjs_events.cpp:
  10588. (JSEventListener::handleEvent): Only allow a false return value to
  10589. prevent default if this is an html event handler, rather than one
  10590. set with addEventListener or the like.
  10591. 2003-01-23 Chris Blumenberg <cblu@apple.com>
  10592. Replaced the paint phase constants with the PaintAction enum. Added PaintActionSelection as a paint action. This will eventually allow us to only paint selected objects. This is needed for the text dragging image.
  10593. Reviewed by dave.
  10594. * khtml/rendering/render_box.cpp:
  10595. (RenderBox::paint):
  10596. * khtml/rendering/render_box.h:
  10597. * khtml/rendering/render_flow.cpp:
  10598. (RenderFlow::paint):
  10599. (RenderFlow::paintObject):
  10600. (RenderFlow::paintFloats):
  10601. * khtml/rendering/render_flow.h:
  10602. * khtml/rendering/render_html.cpp:
  10603. (RenderHtml::paint):
  10604. * khtml/rendering/render_html.h:
  10605. * khtml/rendering/render_image.cpp:
  10606. (RenderImage::paintObject):
  10607. * khtml/rendering/render_image.h:
  10608. * khtml/rendering/render_layer.cpp:
  10609. (RenderLayer::paint):
  10610. * khtml/rendering/render_list.cpp:
  10611. (RenderListItem::paint):
  10612. (RenderListItem::paintObject):
  10613. (RenderListMarker::paint):
  10614. (RenderListMarker::paintObject):
  10615. * khtml/rendering/render_list.h:
  10616. * khtml/rendering/render_object.cpp:
  10617. (RenderObject::paint):
  10618. * khtml/rendering/render_object.h:
  10619. * khtml/rendering/render_replaced.cpp:
  10620. (RenderReplaced::paint):
  10621. (RenderWidget::paintObject):
  10622. * khtml/rendering/render_replaced.h:
  10623. * khtml/rendering/render_root.cpp:
  10624. (RenderRoot::paint):
  10625. (RenderRoot::paintObject):
  10626. * khtml/rendering/render_root.h:
  10627. * khtml/rendering/render_table.cpp:
  10628. (RenderTable::paint):
  10629. (RenderTableSection::paint):
  10630. (RenderTableCell::paint):
  10631. * khtml/rendering/render_table.h:
  10632. * khtml/rendering/render_text.cpp:
  10633. (RenderText::paintObject):
  10634. (RenderText::paint):
  10635. * khtml/rendering/render_text.h:
  10636. 2003-01-23 David Hyatt <hyatt@apple.com>
  10637. Fix for 3147995, empty <li> tags don't render bullets.
  10638. Reviewed by john.
  10639. * khtml/rendering/render_list.cpp:
  10640. (RenderListItem::layout):
  10641. * khtml/rendering/render_list.h:
  10642. 2003-01-23 David Hyatt <hyatt@apple.com>
  10643. Fix for 3134613, bullets overlapping text on weather.com. Make
  10644. sure min/max widths get updated when the marker moves around.
  10645. Reviewed by john
  10646. * khtml/rendering/render_list.cpp:
  10647. (RenderListItem::updateMarkerLocation):
  10648. (RenderListItem::calcMinMaxWidth):
  10649. (RenderListItem::layout):
  10650. * khtml/rendering/render_list.h:
  10651. === Safari-54 ===
  10652. 2003-01-23 Darin Adler <darin@apple.com>
  10653. Reviewed by Dave.
  10654. - fixed 3154575 -- REGRESSION: Right sidebar on Yahoo! page in base PLT renders incorrectly
  10655. * khtml/rendering/break_lines.cpp: (isBreakable): Pass kUCTextBreakLineMask to the
  10656. UC calls, which looks for places where line breaks are allowed, instead of kUCTextBreakWordMask,
  10657. which finds all word breaks instead. We still pass all the layout tests, so I think this means
  10658. Japanese word breaking is still OK.
  10659. - fixed 3154416 -- images that specify width but not height should keep aspect ratio (example at thegods.org.uk)
  10660. * khtml/rendering/render_image.h: Declared new member functions.
  10661. * khtml/rendering/render_image.cpp:
  10662. (RenderImage::widthSpecified): Added helper function.
  10663. (RenderImage::heightSpecified): Added helper function.
  10664. (RenderImage::calcReplacedWidth): Added. Derives width from height keeping aspect ratio if we
  10665. have a specified height and no width.
  10666. (RenderImage::calcReplacedHeight): Added. Same thing in the opposite direction.
  10667. 2003-01-22 Trey Matteson <trey@apple.com>
  10668. 3153313 cursor changes during text selection when we cross links
  10669. Reviewed by Dave.
  10670. * khtml/khtmlview.cpp:
  10671. (KHTMLView::viewportMousePressEvent): Remember mouse is down.
  10672. (KHTMLView::viewportMouseMoveEvent): Use ibeam while mouse down.
  10673. (KHTMLView::viewportMouseReleaseEvent): Remember that it's up.
  10674. 2003-01-22 David Hyatt <hyatt@apple.com>
  10675. Fix first-line regression caused by my removal of a local variable.
  10676. Reviewed by mjs
  10677. * khtml/css/cssstyleselector.cpp:
  10678. 2003-01-22 Richard Williamson <rjw@apple.com>
  10679. Fix the fix to 3119777 to scan for break over entire string
  10680. instead of trying to optimize.
  10681. Reviewed by hyatt.
  10682. * khtml/rendering/break_lines.cpp:
  10683. Pass offset into entire string, rather than try to optimize
  10684. by passing a shorter string.
  10685. 2003-01-22 David Hyatt <hyatt@apple.com>
  10686. Fix the CSS parser so that it disallows class names beginning
  10687. with a digit even in quirks mode.
  10688. Reviewed by rjw
  10689. * khtml/css/cssparser.cpp:
  10690. (StyleBaseImpl::parseSelector2):
  10691. 2003-01-22 Richard Williamson <rjw@apple.com>
  10692. Fix 3119777 (and a host of other international bugs). Word break
  10693. was broken. Use unicode services to detect work breaks
  10694. for non basic latin1. We may want to go further and
  10695. always use unicode services so we get correct hyphenation
  10696. breaking.
  10697. Reviewed by hyatt.
  10698. * khtml/rendering/break_lines.cpp:
  10699. 2003-01-22 David Hyatt <hyatt@apple.com>
  10700. Fix word-spacing bugs in text measurement calculations. This
  10701. fixes our issues on the CSS1 test suite. Regression tests have
  10702. been added for both positive and negative word-spacing.
  10703. Reviewed by rjw
  10704. * khtml/rendering/bidi.cpp:
  10705. (RenderFlow::findNextLineBreak):
  10706. * khtml/rendering/render_text.cpp:
  10707. (RenderText::calcMinMaxWidth):
  10708. (RenderText::containsOnlyWhitespace):
  10709. * khtml/rendering/render_text.h:
  10710. 2003-01-22 Chris Blumenberg <cblu@apple.com>
  10711. Fixed: 3153969 - Should not be able drag text while double or triple-click selecting it
  10712. Fixed: 3154153 - Can drag an empty selection
  10713. Reviewed by rjw.
  10714. * khtml/khtml_part.cpp:
  10715. (KHTMLPart::isPointInsideSelection): consider an empty selection like no selection
  10716. * kwq/KWQKHTMLPart.mm:
  10717. (KWQKHTMLPart::khtmlMouseMoveEvent): don't allow dragging after selection has started using double or triple click
  10718. 2003-01-22 David Hyatt <hyatt@apple.com>
  10719. Fix absolute positioning problem for bottom-positioned elements.
  10720. This is a fix from the KHTML trunk.
  10721. Reviewed by john
  10722. * khtml/rendering/render_box.cpp:
  10723. (RenderBox::calcAbsoluteVertical):
  10724. 2003-01-22 Darin Adler <darin@apple.com>
  10725. Reviewed by Maciej.
  10726. - fixed 3141566 -- non-reproducible nil-dereference in HTMLGenericFormElementImpl at firstdirect.com
  10727. * khtml/html/html_formimpl.cpp: (HTMLGenericFormElementImpl::defaultEventHandler):
  10728. Check for the case where the view is 0.
  10729. 2003-01-22 Darin Adler <darin@apple.com>
  10730. Reviewed by Maciej.
  10731. - fixed two-day-old regression where we get nil-dereferences with text areas
  10732. * kwq/KWQTextArea.mm:
  10733. (-[KWQTextArea _createTextView]): Don't do the setWidget: here because widget is always nil at this point.
  10734. (-[KWQTextArea initWithQTextEdit:]): Do it here instead.
  10735. 2003-01-22 David Hyatt <hyatt@apple.com>
  10736. Fix for 3126927, don't let absolute positioned blocks grow
  10737. to accommodate content. They overflow instead.
  10738. Reviewed by mjs
  10739. * khtml/rendering/render_box.cpp:
  10740. (RenderBox::calcAbsoluteVertical):
  10741. * khtml/rendering/render_flow.h:
  10742. * khtml/rendering/render_object.h:
  10743. 2003-01-22 David Hyatt <hyatt@apple.com>
  10744. Fix for 3153316, selection busted on google.com. For now keep
  10745. mouse events grabbing the absolutePosition of elements, and don't
  10746. ever let them grab the absolutePosition of text nodes.
  10747. Reviewed by john.
  10748. * khtml/khtml_events.cpp:
  10749. (khtml::MouseEvent::MouseEvent):
  10750. 2003-01-22 Chris Blumenberg <cblu@apple.com>
  10751. Renamed isPointSelected to isPointInsideSelection because it's a better name.
  10752. Reviewed by darin.
  10753. * khtml/khtml_part.cpp:
  10754. (KHTMLPart::isPointInsideSelection):
  10755. (KHTMLPart::khtmlMousePressEvent):
  10756. * khtml/khtml_part.h:
  10757. * kwq/WebCoreBridge.mm:
  10758. (-[WebCoreBridge elementAtPoint:]):
  10759. 2003-01-21 Chris Blumenberg <cblu@apple.com>
  10760. Added support for text dragging.
  10761. Reviewed by dave.
  10762. * khtml/khtml_events.cpp:
  10763. (khtml::MouseEvent::offset): made checkSelectionPoint take x,y coords, passing the whole event is unnecessary
  10764. * khtml/khtml_part.cpp:
  10765. (KHTMLPart::isPointSelected): new
  10766. (KHTMLPart::khtmlMousePressEvent): don't restart the selection when click was on the selection
  10767. (KHTMLPart::khtmlMouseMoveEvent): restart the selection since we may not do it in khtmlMousePressEvent
  10768. (KHTMLPart::khtmlMouseReleaseEvent): clear the selection if no selection took place
  10769. * khtml/khtml_part.h:
  10770. * khtml/khtmlpart_p.h:
  10771. * khtml/rendering/render_object.cpp:
  10772. (RenderObject::checkSelectionPoint): made checkSelectionPoint take x,y coords, passing the whole event is unnecessary
  10773. * khtml/rendering/render_object.h:
  10774. * khtml/rendering/render_text.cpp:
  10775. (RenderText::checkSelectionPoint): made checkSelectionPoint take x,y coords, passing the whole event is unnecessary
  10776. * khtml/rendering/render_text.h:
  10777. * kwq/KWQKHTMLPart.mm:
  10778. (KWQKHTMLPart::khtmlMousePressEvent): set booleans indicating that it is OK to drag or select
  10779. (KWQKHTMLPart::khtmlMouseMoveEvent): ask WebKit if we can drag. Make this decision here instead of in khtmlMousePressEvent because WebKit needs the drag hysteresis to make the decision.
  10780. * kwq/WebCoreBridge.h:
  10781. * kwq/WebCoreBridge.mm:
  10782. (-[WebCoreBridge elementAtPoint:]): set the selection bit
  10783. 2003-01-21 Trey Matteson <trey@apple.com>
  10784. 3032718 - I-beam cursor behavior different between web view and text view
  10785. Now that the innerNode is the real text element instead of an enclosing
  10786. tag element, it's a piece of cake to test for a text node and set the ibeam cursor.
  10787. Reviewed by Chris
  10788. * khtml/khtmlview.cpp:
  10789. (KHTMLView::viewportMouseMoveEvent): Set iBeam if over text.
  10790. * kwq/KWQKCursor.mm:
  10791. (KCursor::ibeamCursor): Make this cursor have the Cocoa ibeam instead of arrow.
  10792. 2003-01-21 David Hyatt <hyatt@apple.com>
  10793. Fix selection so that it will go up to the parent node
  10794. if the innerNode is text, preserving the old behavior for
  10795. now until we can rewrite selection to not require this.
  10796. Reviewed by cblu.
  10797. * khtml/khtml_events.cpp:
  10798. (khtml::MouseEvent::offset):
  10799. * khtml/khtml_part.cpp:
  10800. (KHTMLPart::khtmlMousePressEvent):
  10801. (KHTMLPart::khtmlMouseMoveEvent):
  10802. 2003-01-21 Trey Matteson <trey@apple.com>
  10803. 3121681 - "localhost" part of link is lost with relative links
  10804. Was broken for abs links with localhost too. Solution is to tighten up the test
  10805. for "localhost" removal to only apply to file urls.
  10806. canonical result.
  10807. Reviewed by Maciej.
  10808. * kwq/KWQKURL.mm:
  10809. (KURL::parse): Allow the authority processing even for links with
  10810. localhost. Only cut out the addition of host for locahost file links.
  10811. 2003-01-21 David Hyatt <hyatt@apple.com>
  10812. Fix nodeAtPoint to return text nodes if the mouse is over them.
  10813. Make :active fully hierarchical so that e.g., <a><b>Foo</b></a>
  10814. gets an outline when clicked.
  10815. Reviewed by trey
  10816. * khtml/rendering/render_object.cpp:
  10817. (RenderObject::setHoverAndActive):
  10818. * khtml/rendering/render_text.cpp:
  10819. (RenderText::nodeAtPoint):
  10820. 2003-01-21 David Hyatt <hyatt@apple.com>
  10821. Fix for regressions on layout-tests caused by new table code.
  10822. Make sure cell's padding is used and not just the table's cellpadding.
  10823. Also make sure cell padding can be changed dynamically.
  10824. Reviewed by darin.
  10825. * khtml/rendering/table_layout.cpp:
  10826. (AutoTableLayout::recalcColumn):
  10827. 2003-01-21 Darin Adler <darin@apple.com>
  10828. - correct our copyrights to 2003; copyright is based on year of publication, not year worked on
  10829. 2003-01-21 David Hyatt <hyatt@apple.com>
  10830. Fix for the 2.5% perf regression from the descendant rules
  10831. changes. This patch does 3 things:
  10832. (1) Fix the descendant rule check in the CSS parser. It
  10833. was incorrect.
  10834. (2) Fix DOM insertion/removal from setting the parent as needing
  10835. a style re-resolve.
  10836. (3) Fix whitespace inside <html> so that it doesn't make a premature
  10837. <body>.
  10838. Reviewed by mjs
  10839. * khtml/css/cssparser.cpp:
  10840. (StyleBaseImpl::parseSelector):
  10841. * khtml/html/htmlparser.cpp:
  10842. (KHTMLParser::insertNode):
  10843. * khtml/xml/dom_elementimpl.cpp:
  10844. (ElementImpl::recalcStyle):
  10845. * khtml/xml/dom_nodeimpl.cpp:
  10846. (NodeBaseImpl::insertBefore):
  10847. (NodeBaseImpl::replaceChild):
  10848. (NodeBaseImpl::removeChild):
  10849. (NodeBaseImpl::appendChild):
  10850. 2003-01-21 Darin Adler <darin@apple.com>
  10851. Reviewed by Richard.
  10852. - clean room rewrite of QCString
  10853. * kwq/KWQCString.mm: Replaced functions that needed rewrite.
  10854. 2003-01-21 Richard Williamson <rjw@apple.com>
  10855. Added support to pause and resume javascript timers. This allows pages
  10856. that have javascript timers to be added to the page cache.
  10857. Fixes 3126138.
  10858. Reviewed by trey and maciej.
  10859. * khtml/ecma/kjs_window.cpp:
  10860. (Window::pauseTimeouts):
  10861. (Window::resumeTimeouts):
  10862. (WindowQObject::pauseTimeouts):
  10863. (WindowQObject::resumeTimeouts):
  10864. (WindowQObject::timerEvent):
  10865. * khtml/ecma/kjs_window.h:
  10866. * kwq/KWQKHTMLPart.h:
  10867. * kwq/KWQKHTMLPart.mm:
  10868. (KWQKHTMLPart::pauseActions):
  10869. (KWQKHTMLPart::resumeActions):
  10870. (KWQKHTMLPart::canCachePage):
  10871. (KWQKHTMLPart::openURLFromPageCache):
  10872. * kwq/KWQObject.h:
  10873. * kwq/KWQObject.mm:
  10874. (QObject::pauseTimer):
  10875. (QObject::_addTimer):
  10876. (QObject::clearPausedTimers):
  10877. (QObject::resumeTimers):
  10878. (QObject::startTimer):
  10879. * kwq/KWQPageState.h:
  10880. * kwq/KWQPageState.mm:
  10881. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]):
  10882. (-[KWQPageState setPausedActions:int::]):
  10883. (-[KWQPageState int::]):
  10884. (-[KWQPageState _cleanupPausedActions]):
  10885. (-[KWQPageState invalidate]):
  10886. (-[KWQPageState dealloc]):
  10887. * kwq/WebCoreBridge.mm:
  10888. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
  10889. (-[WebCoreBridge saveDocumentToPageCache]):
  10890. 2003-01-21 Darin Adler <darin@apple.com>
  10891. * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::createRenderer):
  10892. Add return statements to fix compile on deployment build.
  10893. 2003-01-21 Darin Adler <darin@apple.com>
  10894. * khtml/html/html_formimpl.cpp:
  10895. (HTMLInputElementImpl::rendererIsNeeded):
  10896. (HTMLInputElementImpl::attach):
  10897. Add return statements to fix compile on deployment build.
  10898. 2003-01-21 Maciej Stachowiak <mjs@apple.com>
  10899. Reviewed by Nobody, fixing an accidental commit.
  10900. * khtml/khtml_part.cpp:
  10901. * khtml/html/html_documentimpl.cpp:
  10902. * khtml/xml/dom_docimpl.h:
  10903. 2003-01-21 Darin Adler <darin@apple.com>
  10904. Everything else reviewed by Maciej, dtd.cpp and htmlparser.cpp changes reviewed by Dave.
  10905. - fixed 3151098 -- REGRESSION: Frequent assert about renderer in DOM code
  10906. * khtml/html/dtd.cpp: (DOM::checkChild): Disallow text inside colgroup so it can be handled as a special case
  10907. inside the parser.
  10908. * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode): Discard text inside colgroup and don't pop the colgroup.
  10909. - fixed 3149792 -- memory trasher at robinlionheart.com
  10910. - fixed 3150664 -- failed assertion in HTMLFrameSetElementImpl::attach on page with frameset inside frameset
  10911. The key to fixing the 3149792 memory trasher was to avoid constructing trees where there
  10912. is a render object nested inside an object that is not a suitable container. In particular,
  10913. the code assumed that RenderFlow objects would only be inside other RenderFlow objects, and
  10914. this does not happen if you have an <object> that is an image, with objects inside it that
  10915. are intended to be used if the image fails to load.
  10916. The key to fixing the 3150664 assertion was to handle the case where a frame set's parent
  10917. didn't have a renderer, rather than just asserting about it.
  10918. * khtml/rendering/render_flow.cpp:
  10919. (RenderFlow::layout): Added an assertion and a FIXME from Dave's and my review of this code.
  10920. (RenderFlow::splitInlines): Add assertions that we have actual RenderFlow objects. Casting
  10921. non-RenderFlow objects was the cause of the memory trashing. The other parts of this change
  10922. assure we never hit these assertions by not creating any render objects for DOM objects
  10923. that are inside non-RenderFlow.
  10924. (RenderFlow::addChildWithContinuation): Add a similar assertion here.
  10925. * khtml/rendering/render_object.h: Declare new member function.
  10926. * khtml/rendering/render_object.cpp: (RenderObject::canHaveChildren): Return false.
  10927. * khtml/rendering/render_container.h: Declare new member function.
  10928. * khtml/rendering/render_container.cpp: (RenderContainer::canHaveChildren): Return true.
  10929. * khtml/rendering/render_replaced.h: Declare new member function.
  10930. * khtml/rendering/render_replaced.cpp: (RenderReplaced::canHaveChildren): Return false.
  10931. * khtml/xml/dom_nodeimpl.h: Declare new member functions.
  10932. * khtml/xml/dom_nodeimpl.cpp:
  10933. (NodeImpl::createRendererIfNeeded): Added. Checks to see if a renderer should be created,
  10934. and creates it if so. The bug fix is checking canHaveChildren() here. This also reduces
  10935. the amount of repeated code in various attach() methods.
  10936. (NodeImpl::styleForRenderer): Added. Default is parent style.
  10937. (NodeImpl::rendererIsNeeded): Added. Default is to create only if display is not none.
  10938. (NodeImpl::createRenderer): Added. Must never reach this function, but I didn't make it a pure
  10939. virtual because of subclasses like AttrImpl that don't ever call createRendererIfNeeded.
  10940. Could rethink this and improve it even more.
  10941. * khtml/xml/dom_elementimpl.h: Declare new member functions.
  10942. * khtml/xml/dom_elementimpl.cpp:
  10943. (ElementImpl::styleForRenderer): Override to get the style from the style selector rather
  10944. than from the parent renderer.
  10945. (ElementImpl::createRenderer): Call RenderObject::createObject to create the right type of renderer.
  10946. (ElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10947. * khtml/html/html_baseimpl.h: Declare new member functions.
  10948. * khtml/html/html_baseimpl.cpp:
  10949. (HTMLBodyElementImpl::createRenderer): Create a RenderBody.
  10950. (HTMLBodyElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10951. (HTMLFrameElementImpl::rendererIsNeeded): Override to implement the different policy
  10952. this element uses to decide whether to make a renderer (same as old code).
  10953. (HTMLFrameElementImpl::createRenderer): Create a RenderFrame.
  10954. (HTMLFrameElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10955. (HTMLFrameSetElementImpl::rendererIsNeeded): Override to implement the different policy
  10956. this element uses to decide whether to make a renderer (same as old code).
  10957. (HTMLFrameSetElementImpl::createRenderer): Create a RenderFrameSet.
  10958. (HTMLFrameSetElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10959. This fixes a bug where the parent doesn't have a renderer; we were asserting in
  10960. that case rather than just not creating a renderer ourselves, which was wrong.
  10961. (HTMLHtmlElementImpl::rendererIsNeeded): Override to implement the different policy
  10962. this element uses to decide whether to make a renderer (same as old code).
  10963. (HTMLHtmlElementImpl::createRenderer): Create a RenderHtml.
  10964. (HTMLHtmlElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10965. (HTMLIFrameElementImpl::createRenderer): Create a RenderPartObject.
  10966. (HTMLIFrameElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10967. * khtml/html/html_formimpl.h: Declare new member functions.
  10968. * khtml/html/html_formimpl.cpp:
  10969. (HTMLGenericFormElementImpl::attach): Remove now-unneeded code that is handled by
  10970. createRendererIfNeeded now.
  10971. (HTMLInputElementImpl::rendererIsNeeded): Return false for HIDDEN, otherwise call base.
  10972. (HTMLInputElementImpl::createRenderer): Create the appropriate type of RenderObject.
  10973. (HTMLInputElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10974. Determined that we don't need the special case for image buttons any more.
  10975. (HTMLSelectElementImpl::createRenderer): Create a RenderSelect.
  10976. (HTMLSelectElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10977. (HTMLTextAreaElementImpl::createRenderer): Create a RenderTextArea.
  10978. (HTMLTextAreaElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10979. * khtml/html/html_imageimpl.h: Declare new member function.
  10980. * khtml/html/html_imageimpl.cpp:
  10981. (HTMLImageElementImpl::createRenderer): Create a RenderImage.
  10982. (HTMLImageElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10983. * khtml/html/html_inlineimpl.h: Declare new member function.
  10984. * khtml/html/html_inlineimpl.cpp:
  10985. (HTMLBRElementImpl::createRenderer): Create a RenderBR.
  10986. (HTMLBRElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10987. * khtml/html/html_objectimpl.h: Declare new member functions.
  10988. * khtml/html/html_objectimpl.cpp:
  10989. (HTMLAppletElementImpl::rendererIsNeeded): Override to implement the different policy
  10990. this element uses to decide whether to make a renderer (same as old code).
  10991. (HTMLAppletElementImpl::createRenderer): Create either a RenderApplet or RenderEmptyApplet.
  10992. (HTMLAppletElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10993. (HTMLEmbedElementImpl::rendererIsNeeded): Override to implement the different policy
  10994. this element uses to decide whether to make a renderer (same as old code).
  10995. (HTMLEmbedElementImpl::createRenderer): Create a RenderPartObject.
  10996. (HTMLEmbedElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  10997. (HTMLObjectElementImpl::rendererIsNeeded): Override to implement the different policy
  10998. this element uses to decide whether to make a renderer (same as old code).
  10999. (HTMLObjectElementImpl::createRenderer): Create either a RenderImage or a RenderPartObject.
  11000. (HTMLObjectElementImpl::attach): Call createRendererIfNeeded to do most of the work.
  11001. * khtml/xml/dom_textimpl.h: Declare new member functions.
  11002. * khtml/xml/dom_textimpl.cpp:
  11003. (TextImpl::rendererIsNeeded): Moved logic about not making renderers for only-whitespace
  11004. elements here. Left out the special case for textarea, since the fact that RenderReplaced
  11005. returns false from the canHaveChildren function now takes care of that of that case.
  11006. (TextImpl::createRenderer): Create a RenderText.
  11007. (TextImpl::attach): Call createRendererIfNeeded to do most of the work.
  11008. - fixed a buffer overrun that libgmalloc detected
  11009. * khtml/misc/decoder.cpp:
  11010. (KanjiCode::judge): Pass in a size parameter instead of using strlen.
  11011. (Decoder::decode): Pass in a size parameter.
  11012. - a little housekeeping
  11013. * WebCore.pbproj/project.pbxproj: Remove a bunch of the .moc files
  11014. from the project. I'm not sure why I put them in originally, but they
  11015. do no good in there.
  11016. * khtml/khtmlview.moc: Empty out this file.
  11017. 2003-01-21 Maciej Stachowiak <mjs@apple.com>
  11018. Reviewed by Trey.
  11019. - fixed 3145317 - Unable to add or remove menu items on Site Menu page using Safari Beta
  11020. This turned out to be a problem with event.layerX / event.layerY.
  11021. * khtml/xml/dom2_eventsimpl.cpp:
  11022. (MouseEventImpl::computeLayerPos): Since layer position is
  11023. relative to parent layer, go up the layer tree adjusting for layer
  11024. offset to compute true layer position.
  11025. 2003-01-21 Maciej Stachowiak <mjs@apple.com>
  11026. Reviewed by Ken.
  11027. - fixed 3151982 - missing content at debka.com after iframe is written using document.write
  11028. - fixed 3000234 - javascript problem writing iframe at cycleworld.com
  11029. * khtml/html/htmltokenizer.cpp:
  11030. (HTMLTokenizer::scriptHandler): If we come out of the script with
  11031. the parser in skip mode, don't throw away the whole rest of the
  11032. document - instead, parse it as usual. The parser's skip mode will
  11033. take care of skipping stuff as needed and will detect close tags
  11034. for special tags like <iframe>.
  11035. 2003-01-20 David Hyatt <hyatt@apple.com>
  11036. Fix :hover performance regression on wsj.com. Moving my
  11037. <a name="foo"> quirk down into the :hover rule matching code,
  11038. so that we'll know never to apply :hover to anchorless <a>s.
  11039. Reviewed by gramps
  11040. * khtml/css/cssstyleselector.cpp:
  11041. * khtml/rendering/render_object.cpp:
  11042. (RenderObject::setHoverAndActive):
  11043. 2003-01-20 Maciej Stachowiak <mjs@apple.com>
  11044. Reviewed by Trey.
  11045. - fixed 3132120 - onchange handler not firing on mac.com webmail
  11046. * khtml/rendering/render_form.h:
  11047. * khtml/rendering/render_replaced.cpp:
  11048. (RenderWidget::handleFocusOut): Moved empty virtual method here from render_form.
  11049. (RenderWidget::eventFilter): Uncomment call to handleFocusOut - we
  11050. need it to send onChange properly.
  11051. * khtml/rendering/render_replaced.h:
  11052. * kwq/KWQObject.h: Add empty eventFilter virtual method.
  11053. * kwq/KWQComboBox.h: Remove no longer needed empty eventFilter.
  11054. * kwq/KWQEvent.h: Implement a bit more of QFocusEvent.
  11055. * kwq/KWQTextArea.mm:
  11056. (-[KWQTextArea _createTextView]): Tell the text view its widget.
  11057. (-[KWQTextAreaTextView setWidget:]): New method to set widget.
  11058. (-[KWQTextAreaTextView becomeFirstResponder]): In addition to the usual stuff,
  11059. call the widget's event filter with a focus in event.
  11060. (-[KWQTextAreaTextView resignFirstResponder]): In addition to the usual stuff,
  11061. call the widget's event filter with a focus out event.
  11062. * kwq/KWQTextField.mm:
  11063. (-[KWQTextField becomeFirstResponder]): Cleaned up a bit.
  11064. (-[KWQTextField fieldWillBecomeFirstResponder]): Call the widget's event filter with a focus in event.
  11065. (-[KWQTextField fieldWillResignFirstResponder]): Call the widget's event filter with a focus out event.
  11066. * kwq/KWQView.mm:
  11067. 2003-01-20 David Hyatt <hyatt@apple.com>
  11068. Fix for 3147213. <nobr> is treated like other inlines now,
  11069. so it can contain blocks. <wbr> is also fixed. This fixes
  11070. tvguide.com.
  11071. Reviewed by john
  11072. * khtml/html/dtd.cpp:
  11073. (DOM::checkChild):
  11074. 2003-01-20 David Hyatt <hyatt@apple.com>
  11075. Gah. Fix positioned objects and floating objects so that they
  11076. don't append themselves to the list of runs in normal flow.
  11077. An astoundingly basic bug. :(
  11078. Reviewed by john
  11079. * khtml/rendering/bidi.cpp:
  11080. (appendRunsForObject):
  11081. * khtml/rendering/render_flow.cpp:
  11082. (RenderFlow::addChildToFlow):
  11083. 2003-01-19 David Hyatt <hyatt@apple.com>
  11084. Fixes for 3150561 (blog articles vanish on stylesheet switch) and
  11085. and 3150560 (crash changing fixed positioned element to normal
  11086. positioning dynamically).
  11087. This change makes layers able to deal with dynamic changes in
  11088. position that cause you to have to either remove a layer from
  11089. the hierarchy while preserving the children or to insert a
  11090. layer into the hierarchy in between a parent and its descendants.
  11091. This patch also rewrites :hover/:active so that they can actually
  11092. be used in selectors other than the rightmost selector (e.g., so you
  11093. can write a rule like "li:hover > a").
  11094. Also, layers will now properly clear out their hover/active state
  11095. when the mouse is no longer inside them.
  11096. With these fixes, Eric Meyer's "Pure CSS Menus" work (perfectly)
  11097. and the repainting problems on sites like brainjar.com and
  11098. diveintomark.org and wired.com are fixed.
  11099. Reviewed by mjs and john.
  11100. * khtml/css/css_stylesheetimpl.h:
  11101. * khtml/css/cssparser.cpp:
  11102. (StyleBaseImpl::parseSelector):
  11103. * khtml/css/cssparser.h:
  11104. * khtml/css/cssstyleselector.cpp:
  11105. * khtml/css/cssstyleselector.h:
  11106. * khtml/dom/html_head.cpp:
  11107. (HTMLLinkElement::setDisabled):
  11108. * khtml/rendering/render_box.cpp:
  11109. (RenderBox::setStyle):
  11110. * khtml/rendering/render_box.h:
  11111. * khtml/rendering/render_container.cpp:
  11112. (RenderContainer::appendChildNode):
  11113. (RenderContainer::insertChildNode):
  11114. * khtml/rendering/render_flow.cpp:
  11115. (RenderFlow::setStyle):
  11116. * khtml/rendering/render_flow.h:
  11117. * khtml/rendering/render_layer.cpp:
  11118. (RenderLayer::addChild):
  11119. (RenderLayer::removeOnlyThisLayer):
  11120. (RenderLayer::insertOnlyThisLayer):
  11121. (RenderLayer::clearOtherLayersHoverActiveState):
  11122. (RenderLayer::clearHoverAndActiveState):
  11123. (RenderLayer::nodeAtPoint):
  11124. (RenderLayer::constructZTree):
  11125. * khtml/rendering/render_layer.h:
  11126. * khtml/rendering/render_object.cpp:
  11127. (RenderObject::addLayers):
  11128. (RenderObject::moveLayers):
  11129. (RenderObject::findNextLayer):
  11130. (RenderObject::setStyle):
  11131. (RenderObject::setHoverAndActive):
  11132. * khtml/rendering/render_object.h:
  11133. * khtml/rendering/render_style.cpp:
  11134. (RenderStyle::diff):
  11135. * khtml/rendering/render_style.h:
  11136. * khtml/xml/dom_docimpl.cpp:
  11137. (DocumentImpl::DocumentImpl):
  11138. * khtml/xml/dom_docimpl.h:
  11139. * khtml/xml/dom_elementimpl.cpp:
  11140. (ElementImpl::recalcStyle):
  11141. * khtml/xml/dom_nodeimpl.cpp:
  11142. (NodeBaseImpl::setActive):
  11143. 2003-01-17 Maciej Stachowiak <mjs@apple.com>
  11144. Reviewed by John.
  11145. - fixed 3149511 - Blogger.com window closes after update is posted
  11146. * khtml/ecma/kjs_window.cpp:
  11147. (WindowFunc::tryCall): For now, don't allow closing the window at
  11148. all if it wasn't opened by JavaScript, since we don't support the
  11149. history object and so can't tell if the window has only one
  11150. history item.
  11151. 2003-01-17 Darin Adler <darin@apple.com>
  11152. Reviewed by Dave.
  11153. - fixed the crashing so the layout tests work
  11154. * khtml/rendering/render_layer.h: Add a node pointer result.
  11155. * khtml/rendering/render_layer.cpp: (RenderLayer::elementList):
  11156. Return the node pointer so we can destroy it when done with it.
  11157. * khtml/rendering/render_object.h: Make renderArena() const.
  11158. * khtml/rendering/render_object.cpp: (RenderObject::renderArena): Make it const.
  11159. * kwq/KWQRenderTreeDebug.cpp: (writeLayers): Free the Z layer list when done.
  11160. Without this things just crashed.
  11161. 2003-01-17 Richard Williamson <rjw@apple.com>
  11162. Fixed 3126141. Allow pages with plugins to be cached. This is safe
  11163. because plugins are cleanly started/stopped when their containing views are
  11164. added/removed from the view hierarchy.
  11165. Reviewed by trey.
  11166. * kwq/KWQKHTMLPart.mm:
  11167. (KWQKHTMLPart::canCachePage):
  11168. 2003-01-17 David Hyatt <hyatt@apple.com>
  11169. The new table code from Lars. Also includes bug fixes for
  11170. percentage height children in table cells, for positioning
  11171. of tables, and for width distribution of percentage width
  11172. cells.
  11173. Reviewed by darin
  11174. * ForwardingHeaders/rendering/table_layout.h: Added.
  11175. * WebCore.pbproj/project.pbxproj:
  11176. * khtml/css/cssparser.cpp:
  11177. (StyleBaseImpl::parseValue):
  11178. * khtml/css/cssstyleselector.cpp:
  11179. * khtml/css/cssvalues.c:
  11180. (findValue):
  11181. * khtml/css/cssvalues.h:
  11182. * khtml/css/cssvalues.in:
  11183. * khtml/css/html4.css:
  11184. * khtml/dom/html_table.cpp:
  11185. (HTMLTableElement::insertRow):
  11186. (HTMLTableElement::deleteRow):
  11187. (HTMLTableRowElement::insertCell):
  11188. (HTMLTableRowElement::deleteCell):
  11189. (HTMLTableSectionElement::insertRow):
  11190. (HTMLTableSectionElement::deleteRow):
  11191. * khtml/html/html_tableimpl.cpp:
  11192. (HTMLTableElementImpl::HTMLTableElementImpl):
  11193. (HTMLTableElementImpl::setTFoot):
  11194. (HTMLTableElementImpl::setTBody):
  11195. (HTMLTableElementImpl::createTHead):
  11196. (HTMLTableElementImpl::createTFoot):
  11197. (HTMLTableElementImpl::insertRow):
  11198. (HTMLTableElementImpl::deleteRow):
  11199. (HTMLTableElementImpl::addChild):
  11200. (HTMLTableElementImpl::parseAttribute):
  11201. (HTMLTableElementImpl::attach):
  11202. (HTMLTablePartElementImpl::parseAttribute):
  11203. (HTMLTableSectionElementImpl::HTMLTableSectionElementImpl):
  11204. (HTMLTableSectionElementImpl::~HTMLTableSectionElementImpl):
  11205. (HTMLTableSectionElementImpl::insertRow):
  11206. (HTMLTableSectionElementImpl::deleteRow):
  11207. (HTMLTableSectionElementImpl::numRows):
  11208. (HTMLTableRowElementImpl::rowIndex):
  11209. (HTMLTableRowElementImpl::insertCell):
  11210. (HTMLTableRowElementImpl::deleteCell):
  11211. (HTMLTableCellElementImpl::HTMLTableCellElementImpl):
  11212. (HTMLTableCellElementImpl::parseAttribute):
  11213. (HTMLTableCellElementImpl::attach):
  11214. (HTMLTableColElementImpl::HTMLTableColElementImpl):
  11215. (HTMLTableColElementImpl::parseAttribute):
  11216. * khtml/html/html_tableimpl.h:
  11217. * khtml/html/htmlparser.cpp:
  11218. (KHTMLParser::insertNode):
  11219. (KHTMLParser::getElement):
  11220. * khtml/rendering/bidi.cpp:
  11221. (RenderFlow::layoutInlineChildren):
  11222. * khtml/rendering/render_body.cpp:
  11223. (RenderBody::availableHeight):
  11224. * khtml/rendering/render_body.h:
  11225. * khtml/rendering/render_box.cpp:
  11226. (RenderBox::contentWidth):
  11227. (RenderBox::contentHeight):
  11228. (RenderBox::calcReplacedWidth):
  11229. (RenderBox::calcReplacedHeight):
  11230. (RenderBox::availableHeight):
  11231. (RenderBox::calcAbsoluteVertical):
  11232. * khtml/rendering/render_box.h:
  11233. * khtml/rendering/render_flow.cpp:
  11234. (RenderFlow::layoutBlockChildren):
  11235. (RenderFlow::leftOffset):
  11236. (RenderFlow::rightOffset):
  11237. (RenderFlow::addOverHangingFloats):
  11238. (RenderFlow::calcBlockMinMaxWidth):
  11239. (RenderFlow::calcMinMaxWidth):
  11240. * khtml/rendering/render_form.cpp:
  11241. * khtml/rendering/render_form.h:
  11242. * khtml/rendering/render_frames.cpp:
  11243. * khtml/rendering/render_frames.h:
  11244. * khtml/rendering/render_object.cpp:
  11245. (RenderObject::createObject):
  11246. (RenderObject::paddingTop):
  11247. (RenderObject::paddingBottom):
  11248. (RenderObject::paddingLeft):
  11249. (RenderObject::paddingRight):
  11250. * khtml/rendering/render_object.h:
  11251. * khtml/rendering/render_replaced.cpp:
  11252. (RenderReplaced::calcMinMaxWidth):
  11253. * khtml/rendering/render_root.cpp:
  11254. (RenderRoot::RenderRoot):
  11255. (RenderRoot::layout):
  11256. (RenderRoot::paintObject):
  11257. * khtml/rendering/render_root.h:
  11258. * khtml/rendering/render_style.cpp:
  11259. (StyleSurroundData::StyleSurroundData):
  11260. * khtml/rendering/render_style.h:
  11261. * khtml/rendering/render_table.cpp:
  11262. (RenderTable::RenderTable):
  11263. (RenderTable::~RenderTable):
  11264. (RenderTable::setStyle):
  11265. (RenderTable::position):
  11266. (RenderTable::addChild):
  11267. (RenderTable::calcWidth):
  11268. (RenderTable::layout):
  11269. (RenderTable::setCellWidths):
  11270. (RenderTable::paint):
  11271. (RenderTable::calcMinMaxWidth):
  11272. (RenderTable::splitColumn):
  11273. (RenderTable::appendColumn):
  11274. (RenderTable::colElement):
  11275. (RenderTable::recalcSections):
  11276. (RenderTable::removeChildNode):
  11277. (RenderTable::dump):
  11278. (RenderTableSection::RenderTableSection):
  11279. (RenderTableSection::~RenderTableSection):
  11280. (RenderTableSection::detach):
  11281. (RenderTableSection::setStyle):
  11282. (RenderTableSection::addChild):
  11283. (RenderTableSection::ensureRows):
  11284. (RenderTableSection::addCell):
  11285. (RenderTableSection::setCellWidths):
  11286. (RenderTableSection::calcRowHeight):
  11287. (RenderTableSection::layoutRows):
  11288. (RenderTableSection::paint):
  11289. (RenderTableSection::recalcCells):
  11290. (RenderTableSection::clearGrid):
  11291. (RenderTableSection::removeChildNode):
  11292. (RenderTableSection::dump):
  11293. (RenderTableRow::RenderTableRow):
  11294. (RenderTableRow::detach):
  11295. (RenderTableRow::setStyle):
  11296. (RenderTableRow::addChild):
  11297. (RenderTableRow::removeChildNode):
  11298. (RenderTableRow::dump):
  11299. (RenderTableRow::layout):
  11300. (RenderTableCell::RenderTableCell):
  11301. (RenderTableCell::detach):
  11302. (RenderTableCell::updateFromElement):
  11303. (RenderTableCell::getCellPercentageHeight):
  11304. (RenderTableCell::setCellPercentageHeight):
  11305. (RenderTableCell::calcMinMaxWidth):
  11306. (RenderTableCell::baselinePosition):
  11307. (RenderTableCell::setStyle):
  11308. (RenderTableCell::paint):
  11309. (RenderTableCell::paintBoxDecorations):
  11310. (RenderTableCell::dump):
  11311. (RenderTableCol::RenderTableCol):
  11312. (RenderTableCol::updateFromElement):
  11313. (RenderTableCol::addChild):
  11314. (RenderTableCol::dump):
  11315. * khtml/rendering/render_table.h:
  11316. * khtml/rendering/table_layout.cpp: Added.
  11317. (FixedTableLayout::FixedTableLayout):
  11318. (FixedTableLayout::~FixedTableLayout):
  11319. (FixedTableLayout::calcWidthArray):
  11320. (FixedTableLayout::calcMinMaxWidth):
  11321. (FixedTableLayout::layout):
  11322. (AutoTableLayout::AutoTableLayout):
  11323. (AutoTableLayout::~AutoTableLayout):
  11324. (AutoTableLayout::recalcColumn):
  11325. (AutoTableLayout::fullRecalc):
  11326. (AutoTableLayout::calcMinMaxWidth):
  11327. (AutoTableLayout::calcEffectiveWidth):
  11328. (AutoTableLayout::insertSpanCell):
  11329. (AutoTableLayout::layout):
  11330. (AutoTableLayout::calcPercentages):
  11331. * khtml/rendering/table_layout.h: Added.
  11332. * khtml/xml/dom_docimpl.cpp:
  11333. (DocumentImpl::createHTMLElement):
  11334. * khtml/xml/dom_nodeimpl.cpp:
  11335. (NodeImpl::NodeImpl):
  11336. (NodeImpl::dump):
  11337. * khtml/xml/dom_nodeimpl.h:
  11338. 2003-01-17 Darin Adler <darin@apple.com>
  11339. Reviewed by Dave.
  11340. - clean room rewrite of QCString::operator<<.
  11341. * kwq/KWQCString.mm: (operator<<): Rewrote it.
  11342. - update format of render tree dumping for real use
  11343. * khtml/rendering/render_layer.h: Added elementList().
  11344. * khtml/rendering/render_layer.cpp: (RenderLayer::elementList): Added.
  11345. * kwq/KWQRenderTreeDebug.cpp:
  11346. (operator<<): Added an overload for writing out QRect.
  11347. (writeIndent): Added.
  11348. (write): Use the overload for QRect, also reorganize to dump layers.
  11349. (writeLayers): Use this to dump the layers.
  11350. (externalRepresentation): Call writeLayers instead of write.
  11351. 2003-01-17 Darin Adler <darin@apple.com>
  11352. Reviewed by Ken.
  11353. - removed unused KWQDrawUtil code
  11354. * ForwardingHeaders/qdrawutil.h: Emptied this file out.
  11355. * kwq/KWQDrawUtil.h: Removed.
  11356. * kwq/KWQDrawUtil.mm: Removed.
  11357. * WebCore.pbproj/project.pbxproj: Removed KWQDrawUtil.
  11358. 2003-01-17 Darin Adler <darin@apple.com>
  11359. Reviewed by John.
  11360. - updated copyright to include expat copyrights
  11361. * WebCore.pbproj/project.pbxproj: Added expat copyrights on the end.
  11362. Got text of copyrights from Acknowledgments.rtf in WebBrowser.
  11363. 2003-01-16 Maciej Stachowiak <mjs@apple.com>
  11364. Reviewed by Dave.
  11365. - fixed 3148141 - crash in KJS::WindowFunc::tryCall leaving certain site
  11366. * kwq/KWQKHTMLPart.mm:
  11367. (KWQKHTMLPart::setView): If setting the view to nil and we have a
  11368. document, detach the document. This means that we are removing a
  11369. frame from the tree, so we want to run it's onUnload handler now,
  11370. rather than later when things are no longer fully hooked up.
  11371. 2003-01-16 Richard Williamson <rjw@apple.com>
  11372. Fixed 3148932. Account for zero width characters
  11373. in <pre> fixed-width optimization.
  11374. Reviewed by hyatt.
  11375. * khtml/rendering/render_text.cpp:
  11376. (RenderText::widthFromCache):
  11377. Reviewed by Richard (written by Mike S.) 'Clean' implementations of these
  11378. functions that were too similar to the Qt implementations.
  11379. * kwq/KWQString.mm:
  11380. (QString::left):
  11381. (QString::right):
  11382. (QString::mid):
  11383. 2003-01-16 Maciej Stachowiak <mjs@apple.com>
  11384. Reviewed by Darin.
  11385. - fixed 3144771 - Crash in KJS::WindowFunc::tryCall leaving www.smogcheck.org
  11386. I fixed this by making sure we couldn't send the unload event twice, which was
  11387. happening before in certain circumstances.
  11388. * khtml/khtml_part.cpp:
  11389. (KHTMLPart::closeURL): When emitting load event, note that unload
  11390. event has not yet been sent.
  11391. (KHTMLPart::checkEmitLoadEvent): Note when unload event has been
  11392. sent to avoid sending it twice.
  11393. * khtml/khtmlpart_p.h:
  11394. 2003-01-16 Darin Adler <darin@apple.com>
  11395. Reviewed by John.
  11396. - added an API for dumping the external representation of the render tree for testing
  11397. * kwq/KWQRenderTreeDebug.h: Added.
  11398. * kwq/KWQRenderTreeDebug.cpp: Added.
  11399. * kwq/KWQTextStream.h: Added more overloads for operator<<.
  11400. * kwq/KWQTextStream.mm: (QTextStream::operator<<): Implemented them.
  11401. * kwq/WebCoreBridge.h: Added renderTreeAsExternalRepresentation.
  11402. * kwq/WebCoreBridge.mm: (-[WebCoreBridge renderTreeAsExternalRepresentation]): Added.
  11403. - removed remnants of an earlier more-naive cut at this same sort of thing
  11404. - removed ForwardingHeaders from the project since that doesn't really help Project Builder
  11405. * kwq/WebCoreTestController.h: Removed.
  11406. * kwq/WebCoreTestController.m: Removed.
  11407. * WebCore.exp: Removed WebCoreTestController.
  11408. * WebCore-combined.exp: Re-generated.
  11409. * WebCore.pbproj/project.pbxproj: Removed WebCoreTestController and ForwardingHeaders.
  11410. === Safari-52 ===
  11411. 2003-01-15 Trey Matteson <trey@apple.com>
  11412. 3144458 - user's credentials are present in a form that is revisited via b/f or history
  11413. We now never save/restore password fields. Also if the page has a form with a password
  11414. field that would be submitted securely, we do not save anything on that page.
  11415. Reviewed by Darin.
  11416. * force-clean-timestamp: PB isn't smart enough to know what to rebuild.
  11417. * khtml/html/html_formimpl.cpp:
  11418. (HTMLFormElementImpl::formWouldHaveSecureSubmission): Utility function.
  11419. (HTMLFormElementImpl::attach): Tell doc if we've added a secure form.
  11420. (HTMLFormElementImpl::parseAttribute): Tell doc if form became secure.
  11421. (HTMLInputElementImpl::state): Assert that we never save password fields.
  11422. (HTMLInputElementImpl::restoreState): Assert that we never restore password fields.
  11423. (HTMLInputElementImpl::attach): Tell doc if we've added a password field.
  11424. * khtml/html/html_formimpl.h:
  11425. * khtml/xml/dom_docimpl.cpp:
  11426. (DocumentImpl::DocumentImpl): Init count of secure forms, password fields.
  11427. (DocumentImpl::passwordFieldAdded):
  11428. (DocumentImpl::passwordFieldRemoved):
  11429. (DocumentImpl::hasPasswordField): New methods to count password fields.
  11430. (DocumentImpl::secureFormAdded):
  11431. (DocumentImpl::secureFormRemoved):
  11432. (DocumentImpl::hasSecureForm): New methods to count secure forms.
  11433. * khtml/xml/dom_docimpl.h:
  11434. * kwq/KWQKHTMLPart.mm:
  11435. (KWQKHTMLPart::canCachePage): Never let pages with password fields in the page cache.
  11436. (KWQKHTMLPart::saveDocumentState): Do not save form state if page has a form with
  11437. a password field that would be submitted securely
  11438. 2003-01-15 Darin Adler <darin@apple.com>
  11439. Reviewed by Ken.
  11440. - fixed problem where Content-Type was coming in with suffixes like "charset"
  11441. * kwq/WebCoreBridge.h: Add contentType and refresh parameters, and remove "headers"
  11442. parameter, from openURL method.
  11443. * kwq/WebCoreBridge.mm:
  11444. (-[WebCoreBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): Get the
  11445. content type from a parameter, and the refresh header from a separate parameter rather
  11446. than extracting both from a headers dictionary.
  11447. 2003-01-14 Darin Adler <darin@apple.com>
  11448. Reviewed by Maciej.
  11449. - fixed 3147036 -- words separated only by newlines are getting rammed together on XML page
  11450. - fixed 3147032 -- preformatted text is missing much whitespace on XML page
  11451. * khtml/xml/xml_tokenizer.cpp: (XMLHandler::characters): Don't try to strip whitespace at all,
  11452. because it needs to be in the DOM.
  11453. - add support for more MIME types
  11454. * khtml/khtml_part.cpp: (KHTMLPart::begin): Add "application/xml" and "application/xhtml+xml".
  11455. 2003-01-14 David Hyatt <hyatt@apple.com>
  11456. Make FOUC work with XML.
  11457. Reviewed by darin.
  11458. * khtml/html/html_baseimpl.cpp:
  11459. (HTMLBodyElementImpl::attach):
  11460. * khtml/xml/dom_xmlimpl.cpp:
  11461. (ProcessingInstructionImpl::ProcessingInstructionImpl):
  11462. (ProcessingInstructionImpl::checkStyleSheet):
  11463. (ProcessingInstructionImpl::isLoading):
  11464. (ProcessingInstructionImpl::sheetLoaded):
  11465. (ProcessingInstructionImpl::setStyleSheet):
  11466. * khtml/xml/dom_xmlimpl.h:
  11467. 2003-01-14 Darin Adler <darin@apple.com>
  11468. Reviewed by Maciej.
  11469. - first cut at XML parsing with expat
  11470. * khtml/khtml_part.cpp: (KHTMLPart::begin): Remove APPLE_CHANGES and use the XML
  11471. code for text/xml documents.
  11472. * WebCore.pbproj/project.pbxproj: Added the ForwardingHeaders to the project.
  11473. Added new QXml files, removed old ones.
  11474. * kwq/KWQXml.h: Removed.
  11475. * kwq/KWQXml.mm: Removed.
  11476. * kwq/KWQXmlAttributes.h: Added.
  11477. * kwq/KWQXmlAttributes.mm: Added.
  11478. * kwq/KWQXmlDefaultHandler.h: Added.
  11479. * kwq/KWQXmlDefaultHandler.mm: Added.
  11480. * kwq/KWQXmlSimpleReader.h: Added.
  11481. * kwq/KWQXmlSimpleReader.mm: Added.
  11482. * kwq/KWQString.h: Add fromUtf8 functions.
  11483. * kwq/KWQString.mm: (QString::fromUtf8): Added. Simple implementation just
  11484. calls fromStringWithEncoding. We may need something more efficient later,
  11485. at least for all-ASCII text.
  11486. - other changes
  11487. * khtml/khtml_part.h: Fix spelling of occurrence.
  11488. * khtml/misc/decoder.cpp: (Decoder::decode): Turn on Japanese auto-detect.
  11489. It doesn't seem to work yet, but this does no harm.
  11490. 2003-01-13 Richard Williamson <rjw@apple.com>
  11491. Fix for 3139120. This patch was contributed by Mitz Pettel. It correctly
  11492. handles the visually ordered encodings. The patch also picks up changes
  11493. from kde that accounts for european numbers correctly in bidiReorderLine().
  11494. Reviewed by Dave.
  11495. * khtml/html/html_formimpl.cpp:
  11496. (HTMLFormElementImpl::formData):
  11497. * khtml/misc/decoder.cpp:
  11498. (Decoder::setEncoding):
  11499. * khtml/rendering/bidi.cpp:
  11500. (RenderFlow::bidiReorderLine):
  11501. * khtml/rendering/bidi.h:
  11502. 2003-01-13 Darin Adler <darin@apple.com>
  11503. Reviewed by Ken.
  11504. - fixed 3143781 -- submitting the same form twice doesn't work properly
  11505. (example at directory.apple.com)
  11506. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::submitForm): Only run the "don't submit the same
  11507. form twice" logic when the form is one that affects the frame that the form is in.
  11508. 2003-01-12 Darin Adler <darin@apple.com>
  11509. * WebCorePrefix.h: Needed to touch this file since we now have plain C source (expat).
  11510. * kwq/KWQKHTMLPart.cpp: Reformatted a bit.
  11511. 2003-01-12 Darin Adler <darin@apple.com>
  11512. Reviewed by Maciej.
  11513. - first step towards integrating expat for XML support: make it compile and link
  11514. * kwq/KWQXml.mm: (QXmlSimpleReader::parse): Put in a placeholder that calls expat.
  11515. Mainly just used to make sure we link.
  11516. * WebCore.pbproj/project.pbxproj: Added expat files.
  11517. * expat/COPYING: Added.
  11518. * expat/Changes: Added.
  11519. * expat/MANIFEST: Added.
  11520. * expat/README: Added.
  11521. * expat/expat_config.h: Added.
  11522. * expat/lib/ascii.h: Added.
  11523. * expat/lib/asciitab.h: Added.
  11524. * expat/lib/expat.h: Added.
  11525. * expat/lib/iasciitab.h: Added.
  11526. * expat/lib/internal.h: Added.
  11527. * expat/lib/latin1tab.h: Added.
  11528. * expat/lib/nametab.h: Added.
  11529. * expat/lib/utf8tab.h: Added.
  11530. * expat/lib/xmlparse.c: Added.
  11531. * expat/lib/xmlrole.c: Added.
  11532. * expat/lib/xmlrole.h: Added.
  11533. * expat/lib/xmltok.c: Added.
  11534. * expat/lib/xmltok.h: Added.
  11535. * expat/lib/xmltok_impl.c: Added.
  11536. * expat/lib/xmltok_impl.h: Added.
  11537. * expat/lib/xmltok_ns.c: Added.
  11538. 2003-01-12 Darin Adler <darin@apple.com>
  11539. Reviewed by Dave.
  11540. - minor cleanup of plug-in-related classes in ECMA directory
  11541. * khtml/ecma/kjs_navigator.cpp: Remove unneeded PluginBase member functions
  11542. ref() and deref(). Instead just make Plugin and MimeType both derive from
  11543. PluginBase and remove APPLE_CHANGES.
  11544. (Navigator::getValueProperty): Don't use "Konqueror" for the fallback.
  11545. Just return Undefined() for that case since we will never reach it anyway.
  11546. - simplify the logic in khtmlMoveMouseEvent so it's easier to decipher
  11547. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::khtmlMouseMoveEvent): By merging two
  11548. identical if statements, the logic of this function becomes much clearer.
  11549. 2003-01-12 Darin Adler <darin@apple.com>
  11550. Reviewed by Dave.
  11551. - fixed a bunch of places where KHTML did !x == y instead of !(x == y) or x != y.
  11552. * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::applyRule):
  11553. * khtml/html/htmlparser.cpp: (KHTMLParser::insertNode):
  11554. * khtml/misc/loader.cpp: (Cache::requestImage), (Cache::requestStyleSheet):
  11555. * khtml/rendering/render_flow.cpp: (RenderFlow::setStyle):
  11556. Changed !x == y to x != y. In each case, there's a reason that this does not create
  11557. any problem in practice, which is why we didn't rush to get this in for beta 1.
  11558. 2003-01-11 Darin Adler <darin@apple.com>
  11559. Reviewed by John.
  11560. - fixed 3144789 -- reproducible crash in KHTMLParser::freeBlock on a page at www.library.arizona.edu
  11561. * khtml/html/htmlparser.cpp: (KHTMLParser::finished): Call freeBlock here rather than
  11562. waiting until the parser is destroyed. This fixes the bug because when the parser is
  11563. destroyed, the document is already destroyed, so we have a dangling current pointer to an
  11564. already-destroyed node.
  11565. - fixed 3142024 -- crash/hang/assert on java.sun.com in HTMLTokenizer
  11566. The bug was caused by an erroneous clicked signal that was being emitted by
  11567. QListBox at just the wrong time.
  11568. * kwq/KWQListBox.h: Added _changingSelection boolean.
  11569. * kwq/KWQListBox.mm: (QListBox::QListBox): Set _changingSelection to false.
  11570. (QListBox::setSelected): Set _changingSelection to true.
  11571. (-[KWQListBoxTableViewDelegate tableViewSelectionDidChange:]): Only emit the "clicked"
  11572. signal if _changingSelection is false.
  11573. * khtml/html/htmltokenizer.h: Add debug-only boolean inWrite.
  11574. * khtml/html/htmltokenizer.cpp: (HTMLTokenizer::HTMLTokenizer): Set inWrite to false.
  11575. (HTMLTokenizer::write): Set inWrite to true.
  11576. (HTMLTokenizer::~HTMLTokenizer): Assert that inWrite is not true.
  11577. 2003-01-11 Darin Adler <darin@apple.com>
  11578. Reviewed by Dave.
  11579. - fixed 3136944 -- mouseover feedback over non-mapped part of image map claims
  11580. link to current page
  11581. * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]):
  11582. Change code so we won't call completeURL and complete a null ATTR_HREF (which is distinct
  11583. from an empty ATTR_HREF). Did a similar cleanup on the image code.
  11584. 2003-01-09 Darin Adler <darin@apple.com>
  11585. * WebCore.pbproj/project.pbxproj: Add the year 2003, remove CFBundleIconFile,
  11586. bump marketing version to 0.8.1 and version to 52u to keep up with the branch,
  11587. remove NSHumanReadableCopyright, remove NSPrincipalClass, remove SKIP_INSTALL
  11588. that was in the Info plist instead of project settings.
  11589. * English.lproj/InfoPlist.strings: Update to match above.
  11590. 2003-01-09 Maciej Stachowiak <mjs@apple.com>
  11591. Reviewed by Dave.
  11592. - fixed Radar 3143013 - hang trying to load spiny.com/software
  11593. * khtml/rendering/render_table.cpp:
  11594. (RenderTable::layoutRows): Check for the render root as a loop
  11595. termination condition, to avoid an infinite loop for an absolute
  11596. but non-fixed table cell.
  11597. 2003-01-09 David Hyatt <hyatt@apple.com>
  11598. The "flow-mode" quirk for lists is just that - a quirk, and should
  11599. not be applied when in strict mode.
  11600. Fixes diveintomark.org's navigation bar on the front page (issue #2
  11601. on his list).
  11602. Reviewed by darin and maciej
  11603. * khtml/css/html4.css:
  11604. 2003-01-08 David Hyatt <hyatt@apple.com>
  11605. Finish the KONQBLOCK removal and make sure that table rows and
  11606. cells encountered inside stray content cause the stray content to
  11607. close so that the rows and cells can be part of the table.
  11608. This fixes the versiontracker bug. #3142319.
  11609. Reviewed by darin.
  11610. * khtml/html/htmlparser.cpp:
  11611. (KHTMLParser::reset):
  11612. (isTableRelatedTag):
  11613. (KHTMLParser::insertNode):
  11614. (KHTMLParser::popOneBlock):
  11615. * khtml/html/htmlparser.h:
  11616. 2003-01-08 David Hyatt <hyatt@apple.com>
  11617. Revert the redundancy that dirk noticed.
  11618. Fixing issue #3 on diveintomark.org's list, which actually involved
  11619. merging calcAbsoluteVertical to KHTML's trunk and then fixing
  11620. a math error in the bottom computation.
  11621. * khtml/html/html_baseimpl.cpp:
  11622. (HTMLBodyElementImpl::parseAttribute):
  11623. * khtml/rendering/render_box.cpp:
  11624. (RenderBox::calcAbsoluteVertical):
  11625. 2003-01-08 Chris Blumenberg <cblu@apple.com>
  11626. Fixed: 3111432 - Support OBJECT tags with type text/plain or text/html
  11627. Reviewed by dave.
  11628. * kwq/KWQKHTMLPart.mm:
  11629. (KWQKHTMLPart::createPart): call [_bridge frameRequiredForMIMEType:] to determine if we should create a plug-in view or iframe
  11630. * kwq/WebCoreBridge.h: add frameRequiredForMIMEType:
  11631. 2003-01-08 Trey Matteson <trey@apple.com>
  11632. 3136213 - Page loads stopped by backtracking don't finish when moving forward
  11633. We need to remove the entry from the KHTML image cache when a load
  11634. has an error, so it will be reloaded next time we try.
  11635. Reviewed by Darin,
  11636. * khtml/misc/loader.cpp:
  11637. (Loader::slotFinished): Remove cache entry on job error.
  11638. 2003-01-08 Darin Adler <darin@apple.com>
  11639. Reviewed by Dave.
  11640. - fixed 96/72 dpi snafu; no need to do something different for AppKit,
  11641. because it always uses pixel sizes, not font size
  11642. * khtml/css/css_valueimpl.cpp:
  11643. * khtml/css/css_valueimpl.h:
  11644. * khtml/css/cssstyleselector.cpp:
  11645. * kwq/KWQPaintDeviceMetrics.mm:
  11646. Rolled out change from 2002-12-05
  11647. - a cut at implementing heretofore unimplemented QTextStream classes
  11648. * kwq/KWQTextStream.h:
  11649. * kwq/KWQTextStream.mm:
  11650. First cut implementation.
  11651. 2003-01-05 Maciej Stachowiak <mjs@apple.com>
  11652. Reviewed by no one cause I'm just changing copyright strings.
  11653. * WebCore.pbproj/project.pbxproj: Added non-Apple copyrights to
  11654. copyright strings.
  11655. * English.lproj/InfoPlist.strings: Likewise.
  11656. 2003-01-05 Darin Adler <darin@apple.com>
  11657. * Resources/Info.plist: Fix "Apple Compupter" typo.
  11658. 2003-01-04 Trey Matteson <trey@apple.com>
  11659. 3098388 - Pressing the back button goes back two levels at allmusic.com
  11660. When processing an assignment to document.location, allow items to be added
  11661. to history. This parallels the existing treatment of window.location.href.
  11662. Reviewed by Richard, Darin
  11663. * khtml/ecma/kjs_html.cpp:
  11664. (KJS::HTMLDocument::putValue): Pass false for lockHistory arg of scheduleRedirection()
  11665. 2003-01-04 Richard Williamson <rjw@apple.com>
  11666. I checked in kjs_window.cpp by accident. The only change
  11667. was a logging printf. Back out that change.
  11668. Reviewed by me.
  11669. * khtml/ecma/kjs_window.cpp:
  11670. (WindowFunc::tryCall):
  11671. 2003-01-03 Richard Williamson <rjw@apple.com>
  11672. Fix for 3138425. Don't open a new window when document.open() is called
  11673. with < 2 parameters.
  11674. Reviewed by darin.
  11675. * khtml/ecma/kjs_html.cpp:
  11676. (KJS::HTMLDocFunction::tryCall):
  11677. * khtml/ecma/kjs_window.cpp:
  11678. (WindowFunc::tryCall):
  11679. 2003-01-03 Richard Williamson <rjw@apple.com>
  11680. Fixed 3138743, 3138678, and 3138854. Removed the RenderText
  11681. widths cache, replaced it with a much simply monospace character
  11682. cache. Should be much faster for covered cases too! Also fixed
  11683. buffer overrun problem causing the crash in 3138854.
  11684. Reviewed by darin.
  11685. * khtml/rendering/font.cpp:
  11686. (Font::isFixedPitch):
  11687. * khtml/rendering/font.h:
  11688. * khtml/rendering/render_text.cpp:
  11689. (TextSlave::checkSelectionPoint):
  11690. (RenderText::RenderText):
  11691. (RenderText::setStyle):
  11692. (RenderText::~RenderText):
  11693. (RenderText::shouldUseMonospaceCache):
  11694. (RenderText::cacheWidths):
  11695. (RenderText::widthFromCache):
  11696. (RenderText::trimmedMinMaxWidth):
  11697. (RenderText::calcMinMaxWidth):
  11698. (RenderText::setText):
  11699. (RenderText::width):
  11700. * khtml/rendering/render_text.h:
  11701. * kwq/KWQFont.h:
  11702. * kwq/KWQFont.mm:
  11703. (QFont::isFixedPitch):
  11704. * kwq/WebCoreTextRendererFactory.h:
  11705. * kwq/WebCoreTextRendererFactory.m:
  11706. (-[WebCoreTextRendererFactory isFontFixedPitch:]):
  11707. 2003-01-03 John Sullivan <sullivan@apple.com>
  11708. - fixed 3138673 -- reproducible crash in JavaScript
  11709. Reviewed by Darin, OK'ed by Don.
  11710. * khtml/xml/dom_docimpl.cpp:
  11711. (DocumentImpl::setTitle):
  11712. Check for nil view or nil part before dereferencing.
  11713. 2003-01-03 David Hyatt <hyatt@apple.com>
  11714. Fix for percentage table heights. A check was missing to
  11715. look for a fixed height on the containing block.
  11716. Reviewed by darin
  11717. * khtml/rendering/render_table.cpp:
  11718. (RenderTable::layoutRows):
  11719. === Alexander-48 ===
  11720. 2003-01-02 David Hyatt <hyatt@apple.com>
  11721. Fix for 3136473. <object>s with no specified size should be
  11722. 0x0. They should not be 300x200. Fixes thinker.org.
  11723. Reviewed by john and darin.
  11724. * khtml/rendering/render_frames.cpp:
  11725. (RenderPart::intrinsicWidth):
  11726. (RenderPart::intrinsicHeight):
  11727. 2003-01-02 Darin Adler <darin@apple.com>
  11728. Reviewed by Maciej and Trey.
  11729. - fixed 3138063 -- REGRESSION: JavaScript-submitted form activates input type=image (webmail.mac.com)
  11730. JavaScript-submitted forms must not get a submit button activated as return-key-submitted ones do.
  11731. * khtml/html/html_formimpl.h: Add boolean activateSubmitButton parameter to submit.
  11732. * khtml/html/html_formimpl.cpp:
  11733. (HTMLFormElementImpl::prepareSubmit): Pass true for activateSubmitButton.
  11734. (HTMLFormElementImpl::submit): Only activate a button if activateSubmitButton is true.
  11735. * khtml/dom/html_form.cpp: (HTMLFormElement::submit): Pass false for activateSubmitButton.
  11736. 2003-01-02 David Hyatt <hyatt@apple.com>
  11737. Fix for the 3137790. This patch passes the mouse event x and y as
  11738. distinct arguments to constructZTree, so that the damageRect can
  11739. really reflect your clip rect.
  11740. This allows me to prune out layers that are clipped so
  11741. that if x,y aren't inside the clip rect, the layer doesn't get added to
  11742. the list.
  11743. This patch also makes the "clip" property apply to the element that specifies the clip instead of to the element's kids. This is ambiguous in the spec, but it turns out other browsers do it this way, so there really is an interpretation that must be fol
  11744. lowed. :)
  11745. Reviewed by darin
  11746. * khtml/rendering/render_layer.cpp:
  11747. (RenderLayer::nodeAtPoint):
  11748. (RenderLayer::constructZTree):
  11749. * khtml/rendering/render_layer.h:
  11750. 2003-01-02 David Hyatt <hyatt@apple.com>
  11751. Fix for bug #3137935. When a float causes a line to get
  11752. moved down past the float, the line would incorrectly break
  11753. rather than expanding to use the newly-available width.
  11754. Reviewed by darin.
  11755. * khtml/rendering/bidi.cpp:
  11756. (RenderFlow::findNextLineBreak):
  11757. 2003-01-02 Darin Adler <darin@apple.com>
  11758. Reviewed by John.
  11759. - fixed 3131190 -- <textarea wrap="hard"> eats text on blur
  11760. * kwq/KWQTextArea.mm: (-[KWQTextArea paragraphs]): Add missing parentheses so we don't
  11761. always return 0 or 1 for the number of paragraphs.
  11762. 2002-12-31 Maciej Stachowiak <mjs@apple.com>
  11763. Reviewed by Darin.
  11764. - fixed 3130831 - HOMEPAGE: JavaScript that tries to intercept onmousedown fails, image gets dragged instead
  11765. - fixed 3125554 - while dragging to select text in a nested frame, you can start dragging a link or image
  11766. * kwq/KWQKHTMLPart.h:
  11767. * kwq/KWQKHTMLPart.mm:
  11768. (KWQKHTMLPart::KWQKHTMLPart): Initialize new mouseDownMayStartDrag
  11769. and mouseDownMayStartSelect methods.
  11770. (KWQKHTMLPart::khtmlMousePressEvent): Make sure a mouse down
  11771. won't be used to start a drag or selection if the default action
  11772. is prevented on the mouse down event.
  11773. (KWQKHTMLPart::mouseDown): Since the default action wasn't
  11774. prevented, decide if this might be the start of a drag or
  11775. selection.
  11776. (KWQKHTMLPart::khtmlMouseMoveEvent): On a drag or selection, call
  11777. back to the bridge to handle selection or autoscrolling
  11778. appropriately.
  11779. * kwq/WebCoreBridge.h: Prototype new methods.
  11780. 2003-01-01 Darin Adler <darin@apple.com>
  11781. Reviewed by Don.
  11782. - fixed 3137566 -- non-reproducible nil-dereference in KHTMLView::clearPart
  11783. deallocating KWQPageState
  11784. * kwq/KWQPageState.mm: (-[KWQPageState dealloc]): Add nil check.
  11785. 2003-01-01 David Hyatt <hyatt@apple.com>
  11786. Fix tables so that malformations inside them are properly pulled
  11787. out of the table without being flattened.
  11788. Fixes 3131480.
  11789. Reviewed by gramps
  11790. * khtml/html/dtd.cpp:
  11791. (DOM::checkChild):
  11792. * khtml/html/htmlparser.cpp:
  11793. (KHTMLParser::insertNode):
  11794. === Alexander-47 ===
  11795. 2002-12-30 Darin Adler <darin@apple.com>
  11796. Reviewed by Trey.
  11797. - fixed 3132141 -- enter key does not work with input type=image
  11798. Made the logic handle image and submit type inputs in the same way.
  11799. * khtml/html/html_formimpl.h: Remove unused m_clicked flags.
  11800. * khtml/html/html_formimpl.cpp:
  11801. (HTMLButtonElementImpl::HTMLButtonElementImpl): Remove code to set the m_clicked flag.
  11802. The only place this flag was looked at is better handled by the m_activeSubmit flag.
  11803. (HTMLButtonElementImpl::defaultEventHandler): Remove more m_clicked flag code.
  11804. (HTMLInputElementImpl::HTMLInputElementImpl): Remove more m_clicked flag code.
  11805. (HTMLInputElementImpl::isSuccessfulSubmitButton): An image is also a successful submit
  11806. button, and unlike a submit element, it doesn't require a name because it will just submit
  11807. x and y with no name in that case. I suppose we could rename this function, but I think it's
  11808. still a pretty clear name even if not 100% accurate.
  11809. (HTMLInputElementImpl::encoding): Remove use of m_clicked and use m_activeSubmit instead.
  11810. This was the only place using m_clicked at all. Also remove bogus check for a -1 coordinate.
  11811. The coordinate defaults to 0, not -1, and it was never happening.
  11812. (HTMLInputElementImpl::defaultEventHandler): Remove more m_clicked flag code.
  11813. 2002-12-30 David Hyatt <hyatt@apple.com>
  11814. Fix for 3129016, make sure that zero-height tables and lists
  11815. will be skipped in a search for floats that occur before
  11816. them. Makes usatoday work.
  11817. Reviewed by gramps
  11818. * khtml/rendering/render_flow.cpp:
  11819. (RenderFlow::clearFloats):
  11820. 2002-12-30 Darin Adler <darin@apple.com>
  11821. Reviewed by Maciej.
  11822. - fixed 3135642 -- ad frames are missing at channels.netscape.com
  11823. * khtml/rendering/render_frames.cpp: (RenderPartObject::updateWidget): Updated to use the
  11824. same rule as Mozilla: Empty URL for an iframe means "about:blank".
  11825. * khtml/ecma/kjs_window.cpp: (Window::isSafeScript): Loosen things so that it's safe for
  11826. a frame to manipulate an empty child frame, as well as an empty opened window. Also remove
  11827. the useless check for an empty document -- it never happens in practice.
  11828. 2002-12-30 Ken Kocienda <kocienda@apple.com>
  11829. Reviewed by Darin and Gramps
  11830. Fix for this bug:
  11831. Radar 3136795 (type URL with ../ in it, get assertion)
  11832. The code to remove relative portions from URLs was eating leading slashes on
  11833. URL paths. This caused absolute paths with relative portions to get mangled,
  11834. resulting in a URL that the engine could not use. Now, leading slashes are no
  11835. longer removed from URL paths, resulting in usuable URLs.
  11836. * kwq/KWQKURL.mm:
  11837. (copyPathRemovingDots)
  11838. 2002-12-29 Darin Adler <darin@apple.com>
  11839. Reviewed by Don.
  11840. - fixed 3103287 -- body of page not rendered (page uses JavaScript trick to be both a frameset and a frame)
  11841. Our self-reference protection prevented this page from working.
  11842. To fix the bug, I did three things:
  11843. 1) fixed the hole in the WebCore self-reference protection, so we could remove the WebKit one
  11844. (the hole was that it didn't ignore #xxx suffixes)
  11845. 2) moved the self-reference protection into a single function so it wasn't copied and pasted all over
  11846. 3) allowed one level of self-reference; still enough to prevent infinite recursion
  11847. Then I tested with the site from bug 3103287 and the one from bug 3083732 to make sure that was still OK.
  11848. * khtml/html/html_baseimpl.h: Added isURLAllowed().
  11849. * khtml/html/html_baseimpl.cpp:
  11850. (HTMLFrameElementImpl::isURLAllowed): Added. Does the self-reference check and the "local only" check.
  11851. This logic was repeated in three different places before. Note that since we don't use the "local only"
  11852. feature, it's not too risky to slightly change how it works.
  11853. (HTMLFrameElementImpl::updateForNewURL): Use isURLAllowed.
  11854. (HTMLFrameElementImpl::attach): Ditto.
  11855. (HTMLIFrameElementImpl::attach): Ditto.
  11856. 2002-12-29 Darin Adler <darin@apple.com>
  11857. Reviewed by Don.
  11858. - fixed 3130566 -- REGRESSION: list item numbers are overlapping the text of the list items
  11859. Moved the hack that handles list items that are not in lists out of the parser and into
  11860. the DOM and Render tree code itself. This fixes the issue where the parser doesn't know which
  11861. will be the parent node of the list item, and other problems with the old hack.
  11862. * khtml/html/html_listimpl.cpp: (HTMLLIElementImpl::attach): Find the parent list (OL or UL).
  11863. If there is no parent list, set a "not in list" flag on the render object so it knows to render
  11864. "inside" no matter what the style says. Also use this parent and a safer check to make the
  11865. start attribute work even when there is an intervening DOM element in the hierarchy.
  11866. * khtml/html/htmlparser.cpp: (KHTMLParser::getElement): Remove the code that tries to set
  11867. the style of an LI based on the current node at the time it's parsed, because the current node
  11868. is now often not the OL or the UL due to our DTD fix to allow other nodes in lists.
  11869. * khtml/rendering/render_list.h: Add isInside() to RenderListMarker, setNotInList(), notInList(),
  11870. and _notInList to RenderListItem.
  11871. * khtml/rendering/render_list.cpp:
  11872. (RenderListItem::RenderListItem): Initialize _notInList to false.
  11873. (RenderListMarker::paintObject): Use isInside() instead of checking listStylePosition().
  11874. (RenderListMarker::calcMinMaxWidth): Ditto.
  11875. (RenderListMarker::baselinePosition): Ditto.
  11876. (RenderListMarker::isInside): Return true if we are not in a list, or if "inside" style is requested.
  11877. 2002-12-29 Darin Adler <darin@apple.com>
  11878. Reviewed by Don.
  11879. - fixed 3134346 -- country menu at www.apple.com does not work when you go back to that page
  11880. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::openURLFromPageCache): Add call to checkCompleted().
  11881. 2002-12-29 Darin Adler <darin@apple.com>
  11882. Reviewed by Maciej.
  11883. - fixed 3136391 -- PianoNanny.com screens turn to garbage when resized
  11884. Turns out browsers pass open calls to the window object if they show up at the document
  11885. with parameters. We now emulate that too.
  11886. * khtml/ecma/kjs_html.cpp: (KJS::HTMLDocFunction::tryCall): If we get an open call with
  11887. parameters, pass it on to the window.
  11888. 2002-12-29 Darin Adler <darin@apple.com>
  11889. Reviewed by Ken.
  11890. - fixed 3134560 -- Lord of the Rings desktops don't load
  11891. * khtml/ecma/kjs_window.cpp: (WindowFunc::tryCall): Removed the APPLE_CHANGES here.
  11892. The comment claims that we don't need the code because "JavaScript will do the work
  11893. below on demand", but that's not true for setting the base URL. Also, the comment
  11894. claims that this "adds an extra entry to the back/forward list", but testing does not
  11895. bear that out.
  11896. === Alexander-46 ===
  11897. 2002-12-28 Ken Kocienda <kocienda@apple.com>
  11898. Reviewed by Gramps and Richard.
  11899. Fix for this bug:
  11900. Radar 3112233 (400 response when attaching files at mail.yahoo.com)
  11901. KHTML multipart form code called into KMimeType class to determine
  11902. the mime type for file attachments, however, our implementation of
  11903. KMimeType has only stubs which call ERROR.
  11904. I added some code into KWQKHTMLPart and WebCoreBridge so that the
  11905. code in html_formimpl can call through to the WebFoundation mime
  11906. file map we maintain.
  11907. * khtml/html/html_formimpl.cpp:
  11908. (HTMLFormElementImpl::formData)
  11909. * kwq/KWQKHTMLPart.h:
  11910. * kwq/KWQKHTMLPart.mm:
  11911. (KWQKHTMLPart::mimeTypeForFileName)
  11912. * kwq/WebCoreBridge.h:
  11913. 2002-12-26 Darin Adler <darin@apple.com>
  11914. Reviewed by Don.
  11915. - fixed 3136262 -- Shockwave Flash at movies.yahoo.com does not work
  11916. * khtml/rendering/render_frames.cpp: (RenderPartObject::updateWidget):
  11917. Moved the class ID special case MIME types out of the if statement so they can be shared
  11918. in the case where we have an embed tag but no MIME type.
  11919. 2002-12-26 Darin Adler <darin@apple.com>
  11920. Reviewed by Don.
  11921. * kwq/KWQAssertions.h: Fixed CRASH macro to use 0xbbadbeef instead of 0xbadbeef
  11922. to reduce the chance that the address will be valid once we have allocated a lot of memory.
  11923. 2002-12-24 Richard Williamson <rjw@apple.com>
  11924. Fix for 3134543 (and widely reported dupes). Don't use render_text
  11925. widths cache except for whitespace == PRE. The problem was that additional
  11926. spaces in the RenderText's string were being inappropiately measured.
  11927. An alternate, more complex and risky, fix would account for the whitespace
  11928. properties during scanning of the RenderText width buffer. Considering
  11929. the scenario for which this optimization was added (3133261), this
  11930. simpler fix is adequate.
  11931. Reviewed by Darin and Don.
  11932. * khtml/rendering/render_text.cpp:
  11933. (RenderText::computeWidths):
  11934. 2002-12-24 Darin Adler <darin@apple.com>
  11935. Reviewed by Don.
  11936. - fixed 3135010 -- nil-dereference in KHTMLPart::xmlDocImpl() at channels.netscape.com
  11937. * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::contentDocument):
  11938. Add missing nil check. Also added lots of FIXME comments about problems I observed here.
  11939. 2002-12-24 Darin Adler <darin@apple.com>
  11940. Reviewed by Richard and Don.
  11941. - fixed 3133207 -- crash in HTMLFrameElementImpl updateForNewURL at home.real.com
  11942. My previous attempt to fix this dealt with the case where a RenderFrame object was
  11943. not yet created, but not with the case where a RenderFrame object was created without
  11944. a corresponding part. Somehow I overlooked this last time when I was doing testing.
  11945. Testing this time confirms this takes care of the remaining problem at movies.real.com.
  11946. * khtml/html/html_baseimpl.cpp: (HTMLFrameElementImpl::updateForNewURL):
  11947. Use the same kind of requestFrame call here as in attach when there's a RenderFrame,
  11948. but no corresponding part. Maybe we can fix this an even more elegant way later.
  11949. === Alexander-45 ===
  11950. 2002-12-23 Darin Adler <darin@apple.com>
  11951. Reviewed by John.
  11952. - fixed 3134558 -- REGRESSION: Lord of the Rings site problems
  11953. This regression was caused when we fixed the abcnews.com problem (3124933).
  11954. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::createEmptyDocument):
  11955. Despite its name, this function was never intended to overwrite an existing document with
  11956. an empty document. When we changed it do do the creation in a better way, we lost the
  11957. check that prevents it from doing anything at all if we already have a document.
  11958. 2002-12-22 Darin Adler <darin@apple.com>
  11959. Reviewed by Don.
  11960. - fixed 3134383 -- crash in KWQKHTMLPart::canCachePage at www.apple.com
  11961. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::canCachePage):
  11962. Check for nil in the result of Window::retrieveWindow.
  11963. === Alexander-44 ===
  11964. 2002-12-20 Darin Adler <darin@apple.com>
  11965. Reviewed by Trey and Don.
  11966. - fixed 3132160 -- meta refresh does not work if there's a space after the refresh interval value
  11967. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::processHttpEquiv):
  11968. Added a call to stripWhiteSpace here. The other places that processes delays for
  11969. meta refresh already had the stripWhiteSpace call, but this was missing it.
  11970. 2002-12-20 David Hyatt <hyatt@apple.com>
  11971. Fix for 3134163, a regression from the reduction of
  11972. styleForElement calls. Make sure image buttons
  11973. get the width attribute and add it to style info
  11974. before styleForElement gets called.
  11975. Reviewed by rjw
  11976. * khtml/html/html_formimpl.cpp:
  11977. (HTMLInputElementImpl::attach):
  11978. 2002-12-20 David Hyatt <hyatt@apple.com>
  11979. Fix for 3134133. Back out the render_text code I gave to rjw
  11980. to check in. It wasn't filling in a value for hasBreak, so it
  11981. became random whether or not you'd break or not.
  11982. Reviewed by rjw
  11983. * khtml/rendering/render_text.cpp:
  11984. (RenderText::trimmedMinMaxWidth):
  11985. (RenderText::calcMinMaxWidth):
  11986. * khtml/rendering/render_text.h:
  11987. 2002-12-20 Darin Adler <darin@apple.com>
  11988. Reviewed by Trey.
  11989. - fixed 3133801 -- REGRESSION: Japanese page comes up hash
  11990. * khtml/khtml_part.cpp: (KHTMLPart::write): Roll back to original KHTML code here,
  11991. removing the "all ASCII" optimization.
  11992. 2002-12-20 David Hyatt <hyatt@apple.com>
  11993. Fix for 3133081, slashdot messed up when changing font sizes.
  11994. setStyle in RenderFlow was messed up for continuations. A
  11995. block in the middle of a continuation incorrectly propagated
  11996. its style to the following inlines.
  11997. Reviewed by darin
  11998. * khtml/rendering/render_flow.cpp:
  11999. (RenderFlow::setStyle):
  12000. 2002-12-20 Richard Williamson <rjw@apple.com>
  12001. Fix for 3133601. Play the same trick we do in
  12002. KHTMLPartBrowserExtension::openURLRequest to create an empty
  12003. document if necessary.
  12004. Reviewed by darin.
  12005. * khtml/ecma/kjs_window.cpp:
  12006. (Window::get):
  12007. 2002-12-19 David Hyatt <hyatt@apple.com>
  12008. Remove the clip hack from setLayout and make it
  12009. asynchronous instead. This fixes the crasher
  12010. on autosite.com, which had a sync layout occur
  12011. while in the middle of making a block box's
  12012. children get wrapped in anonymous boxes. It
  12013. was only half done when the layout got
  12014. triggered, which is what caused the assert to fire.
  12015. The bug # is 3129534.
  12016. Reviewed by rjw
  12017. * khtml/khtmlview.cpp:
  12018. (KHTMLView::KHTMLView):
  12019. (KHTMLView::timerEvent):
  12020. (KHTMLView::scheduleRelayout):
  12021. * khtml/khtmlview.h:
  12022. * khtml/rendering/render_object.cpp:
  12023. (RenderObject::setLayouted):
  12024. (RenderObject::scheduleRelayout):
  12025. * khtml/rendering/render_object.h:
  12026. 2002-12-20 Darin Adler <darin@apple.com>
  12027. Reviewed by John.
  12028. - fixed 3129387 -- Stopped responding to controls while filling out form (exception in KWQTextArea)
  12029. * kwq/KWQTextArea.mm:
  12030. (-[KWQTextArea getCursorPositionAsIndex:inParagraph:]): Fix code that was returning the wrong
  12031. paragraph number along with the index within the paragraph. Also made it return a paragraph one
  12032. past the end with an index of 0 for cases where you are at the end of the text.
  12033. (-[KWQTextArea setCursorPositionToIndex:inParagraph:]): Range check the passed-in index. This
  12034. would also have prevented the exception.
  12035. === Alexander-43 ===
  12036. 2002-12-20 Darin Adler <darin@apple.com>
  12037. Reviewed by John.
  12038. - fixed 3132382 -- crash in khtml::CachedImage
  12039. The source of this bug was my long-ago fix to bug 3079499.
  12040. I changed the code to copy the clients list. But this doesn't work if
  12041. one of the clients is removed while iterating because it's deleted.
  12042. So I made a new class, CachedObjectClientWalker, that does the iterating safely.
  12043. Now both this new bug and the original are fixed.
  12044. * khtml/misc/loader.cpp:
  12045. (CachedCSSStyleSheet::checkNotify): Use CachedObjectClientWalker to walk the list.
  12046. (CachedScript::checkNotify): Ditto.
  12047. (CachedImage::do_notify): Ditto.
  12048. (CachedImage::movieStatus): Ditto.
  12049. (CachedImage::checkNotify): Ditto.
  12050. (CachedObjectClientWalker::next): Walk the list using a list iterator, which is
  12051. safe against the current item being removed. But go that safety one better by making
  12052. sure you don't miss the item after one that's removed.
  12053. 2002-12-20 Ken Kocienda <kocienda@apple.com>
  12054. Reviewed by Darin
  12055. Fix for this bug:
  12056. Radar 3132171 (trying to login at mypage.apple.com gives "Already Connected" message)
  12057. The issue is that we submit the login form more than once when the user hits
  12058. the return key to submit rather than clicking the submit button. We are also
  12059. susceptible to double form submissions from buggy scripts that ask to submit
  12060. more than one form.
  12061. The fix is to prevent the KWQKHTMLPart from submitting more than one form by
  12062. setting and checking a flag.
  12063. * kwq/KWQKHTMLPart.h: Add a form submit flag.
  12064. * kwq/KWQKHTMLPart.mm:
  12065. (KWQKHTMLPart::submitForm): Check form submit flag. Return if a form
  12066. has already been submitted.
  12067. (KWQKHTMLPart::setView): Reset form flag. This is done since the part
  12068. may have been retrieved for reuse from the bac/forward cache.
  12069. 2002-12-20 Richard Williamson <rjw@apple.com>
  12070. Fixed 3133261. This fix really has two parts. This first part
  12071. fixes the stupid stack allocated buffer that caused the crash.
  12072. The second part makes any RenderText with a large string perform
  12073. much faster. The page mentioned in the bug used to load and draw
  12074. in about 15 minutes. Now it loads in about 10 seconds and draws in about
  12075. 2 seconds. The performance optimization caches a widths array
  12076. for the string in the RenderText, and only updates that array if
  12077. the font or text for the RenderText change.
  12078. Reviewed by john.
  12079. * khtml/rendering/render_text.cpp:
  12080. (RenderText::RenderText):
  12081. (RenderText::setStyle):
  12082. (RenderText::~RenderText):
  12083. (RenderText::computeWidths):
  12084. (RenderText::widthFromBuffer):
  12085. (RenderText::trimmedMinMaxWidth):
  12086. (RenderText::calcMinMaxWidth):
  12087. (RenderText::setText):
  12088. (RenderText::width):
  12089. * khtml/rendering/render_text.h:
  12090. 2002-12-20 Trey Matteson <trey@apple.com>
  12091. We now build with symbols the B&I. Deployment builds are without symbols,
  12092. so it is easy to generate a non-huge app as a one-off.
  12093. Reviewed by Darin
  12094. * WebCore.pbproj/project.pbxproj:
  12095. 2002-12-20 Darin Adler <darin@apple.com>
  12096. Reviewed by John.
  12097. - fixed 3129824 -- crash in QWidget::getView in KWQKHTMLPart::passSubframeEventToSubframe
  12098. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
  12099. Check for a nil QWidget in a RenderWidget, and ERROR and return true in that case.
  12100. We don't want to return false because otherwise the KHTML code will try to draw a frame splitter.
  12101. 2002-12-20 Darin Adler <darin@apple.com>
  12102. Reviewed by John.
  12103. - fixed 3131449 -- crash in DOMNamedNodesCollection::tryGet opening a new window from JavaScript
  12104. * khtml/ecma/kjs_dom.cpp: (DOMNamedNodesCollection::tryGet):
  12105. Add range checking. If the index is out of range fall back to the parent tryGet,
  12106. which will eventually just return Undefined().
  12107. 2002-12-20 Darin Adler <darin@apple.com>
  12108. Reviewed by Richard and John.
  12109. - fixed 3133207 -- crash in HTMLFrameElementImpl updateForNewURL at home.real.com
  12110. This refines Maciej's fix for 3052113, 3075392, and 3125412.
  12111. * khtml/html/html_baseimpl.h: Remove detach() and parentWidget from HTMLFrameElementImpl.
  12112. * khtml/html/html_baseimpl.cpp:
  12113. (HTMLFrameElementImpl::HTMLFrameElementImpl): Take out initialization of unused parentWidget.
  12114. (HTMLFrameElementImpl::updateForNewURL): Add case for when we are attached by did not allocate
  12115. a render object. In that case we just detach so we can attach again. Also fix the self-reference
  12116. check which was in there but not working.
  12117. (HTMLFrameElementImpl::detach): Remove method since all it did was set unused parentWidget.
  12118. (HTMLIFrameElementImpl::attach): Remove unused depth computation.
  12119. - fixed more leaks
  12120. * khtml/rendering/render_replaced.h: Made the deref method inherited from khtml::Shared
  12121. private by using private inheritance. Changed the name of arenaDeref to deref, but it still
  12122. takes an arena parameter. Now incorrect deref's are compile-time errors instead of potential leaks.
  12123. * khtml/rendering/render_replaced.cpp:
  12124. (RenderWidget::detach): Rename arenaDeref to deref.
  12125. (RenderWidget::resizeWidget): Ditto.
  12126. (RenderWidget::eventFilter): Ditto.
  12127. (RenderWidget::deref): Ditto.
  12128. * khtml/rendering/render_form.cpp: (RenderFormElement::slotClicked):
  12129. Pass the arena when deref'ing the RenderFormElement.
  12130. * kwq/WebCoreBridge.h: Add a field for the arena for the RenderPart.
  12131. * kwq/WebCoreBridge.mm:
  12132. (-[WebCoreBridge dealloc]): Pass the arena when deref'ing the RenderPart.
  12133. (-[WebCoreBridge setRenderPart:]): Pass the arena when deref'ing the RenderPart. Store the arena
  12134. of the new part when storing the part pointer.
  12135. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::~DocumentImpl): Assert that the render object is
  12136. not nil, in an attempt to catch a leak I observed yesterday.
  12137. 2002-12-20 Darin Adler <darin@apple.com>
  12138. Reviewed by Dave.
  12139. - fixed 3129129 -- leak of 820 RenderStyle objects each time we run cvs-base
  12140. The RenderStyle objects were the tip of an iceberg.
  12141. I fixed a lot of leaks, but there are still some remaining.
  12142. Note that these changes will make Development builds slower because they disable
  12143. the arena allocator in favor of assertions that check we are using it correctly.
  12144. But the changes make Deployment builds slightly faster.
  12145. * khtml/html/html_baseimpl.cpp: (HTMLFrameSetElementImpl::attach):
  12146. Fix a leak in the !isStyleAvailable() case by ref'ing and deref'ing the style.
  12147. * khtml/html/html_formimpl.cpp:
  12148. (HTMLFormElementImpl::attach): Fix a leak by getting the style from the render
  12149. object instead of calling styleForElement again, which makes a new one.
  12150. (HTMLFormElementImpl::parseAttribute): Ditto.
  12151. (HTMLInputElementImpl::attach): Fix a leak by using the style in the local
  12152. variable rather than calling styleForElement again.
  12153. * khtml/html/html_imageimpl.cpp:
  12154. (HTMLImageElementImpl::parseAttribute): Fix a leak by getting the style from the render
  12155. object instead of calling styleForElement again, which makes a new one.
  12156. (HTMLImageElementImpl::attach): Fix a leak by using the style in the local
  12157. variable rather than calling styleForElement again.
  12158. * khtml/html/html_inlineimpl.cpp: (HTMLBRElementImpl::attach):
  12159. Fix a leak in the display() == NONE case by ref'ing and deref'ing the style.
  12160. * khtml/html/html_objectimpl.cpp: (HTMLObjectElementImpl::attach): Fix a leak by using
  12161. the style in the local variable rather than calling styleForElement again.
  12162. * khtml/rendering/bidi.cpp:
  12163. (BidiIterator::detach): Added debugging code to detect if someone does a delete directly,
  12164. which will not deallocate the object because it won't run the correct arena code.
  12165. (BidiIterator::operator delete): Ditto.
  12166. (appendRunsForObject): Fix a leak by detaching bidi iterators when they are removed from
  12167. the list. The list can't delete them because it doesn't have the arena pointer.
  12168. (deleteMidpoints): Fix a leak by not removing the items from the list until done iterating.
  12169. The old code would fail to delete half the items.
  12170. * khtml/rendering/render_container.cpp:
  12171. (RenderContainer::detach): Detach the continuation here. Before we removed it but did not
  12172. detach it, which led to a leak.
  12173. (RenderContainer::removeChild): Do not remove the continuation here. If we do, then we can't
  12174. detach successfully. No one depends on this removing the continuation.
  12175. (RenderContainer::removeLeftoverAnonymousBoxes): Detach the child, don't just delete it.
  12176. This fixes a leak.
  12177. * khtml/rendering/render_flow.cpp: (RenderFlow::removeChild): Detach the child, don't just
  12178. delete it. This fixes a leak.
  12179. * khtml/rendering/render_object.h: Added arenaDelete.
  12180. * khtml/rendering/render_object.cpp:
  12181. (RenderObject::operator delete): Added debugging code to detect if someone does a delete directly,
  12182. which will not deallocate the object because it won't run the correct arena code.
  12183. (RenderObject::detach): Ditto.
  12184. (RenderObject::arenaDelete): Put the low-level delete here, so that subclasses (RenderWidget)
  12185. can call it.
  12186. * khtml/rendering/render_replaced.h: Add arenaDeref and make deref private so derived classes
  12187. won't use it by accident.
  12188. * khtml/rendering/render_replaced.cpp:
  12189. (RenderWidget::detach): Use the new arenaDeref instead of deref, since we need to pass the
  12190. arena pointer in to delete.
  12191. (RenderWidget::resizeWidget): Ditto. Store the arena before calling back, since we can't get it
  12192. once it's detached from its parent.
  12193. (RenderWidget::eventFilter): Ditto.
  12194. (RenderWidget::arenaDeref): Added. Calls RenderObject's arenaDelete.
  12195. - other changes
  12196. * khtml/rendering/render_arena.cpp:
  12197. (RenderArena::allocate): Added debugging code that stores a signature, arena pointer, and size,
  12198. and uses malloc rather than the arena.
  12199. (RenderArena::free): Check the signature, arena pointer, and size, and use free.
  12200. * khtml/rendering/render_layer.cpp:
  12201. (RenderLayer::operator delete): Added debugging code to detect if someone does a delete directly,
  12202. which will not deallocate the object because it won't run the correct arena code.
  12203. (RenderLayer::detach): Ditto.
  12204. (RenderLayer::RenderLayerElement::operator delete): Ditto.
  12205. (RenderLayer::RenderLayerElement::detach): Ditto.
  12206. (RenderLayer::RenderZTreeNode::operator delete): Ditto.
  12207. (RenderLayer::RenderZTreeNode::detach): Ditto.
  12208. * khtml/rendering/render_text.cpp:
  12209. (TextSlave::detach): Added debugging code to detect if someone does a delete directly,
  12210. which will not deallocate the object because it won't run the correct arena code.
  12211. (TextSlave::operator delete): Ditto.
  12212. * khtml/html/html_elementimpl.cpp: (HTMLElementImpl::createContextualFragment):
  12213. Save one new/delete by using a stack-based HTMLTokenizer and add FIXMEs about
  12214. some possible leaks I spotted here.
  12215. * khtml/rendering/render_list.cpp: (RenderListItem::setStyle): Took out APPLE_CHANGES from around
  12216. a generally useful bug fix.
  12217. * WebCore.pbproj/project.pbxproj: Let Electron be Electron.
  12218. === Alexander-42 ===
  12219. 2002-12-19 David Hyatt <hyatt@apple.com>
  12220. Fix for 3129393, crasher on sundancecatalog.com. There
  12221. are two elements to this fix. The basic problem was that
  12222. sundancecatalog was saying:
  12223. <table style="display: inline">
  12224. In WinIE, this turns into an inline-table and not an inline.
  12225. In Gecko this does not happen. Like Gecko, we treated this
  12226. as an inline, so we triggered a problem in my inline splitting
  12227. code.
  12228. The first fix was to bulletproof my inline splitting code to
  12229. ensure all new render objects are fully connected before children
  12230. are added, so that you can get to renderArenas at all times.
  12231. The second fix implements the WinIE quirk and turns the table
  12232. into an inline-table so that you avoid a complete garbage
  12233. render tree.
  12234. Reviewed by trey
  12235. * khtml/css/html4.css:
  12236. * khtml/rendering/render_flow.cpp:
  12237. (RenderFlow::layout):
  12238. (RenderFlow::splitFlow):
  12239. (RenderFlow::addChildToFlow):
  12240. * khtml/rendering/render_flow.h:
  12241. * khtml/rendering/render_list.cpp:
  12242. (RenderListMarker::lineHeight):
  12243. * khtml/rendering/render_list.h:
  12244. * khtml/rendering/render_object.cpp:
  12245. (RenderObject::createObject):
  12246. * khtml/rendering/render_table.cpp:
  12247. (RenderTable::lineHeight):
  12248. (RenderTable::baselinePosition):
  12249. (RenderTable::setStyle):
  12250. * khtml/rendering/render_table.h:
  12251. 2002-12-19 Darin Adler <darin@apple.com>
  12252. Reviewed by John.
  12253. A number of non-reproducible bugs look like they may be due to bad
  12254. event objects. I was assuming that callers retained the events until
  12255. the functions handling them returned, but that assumption may be wrong.
  12256. So I'm retaining/releasing the current event. This is correct in any case.
  12257. I'm also adding a new assertion, but since assertions are in Development
  12258. builds only that is very low risk.
  12259. * kwq/KWQKHTMLPart.mm:
  12260. (KWQKHTMLPart::keyEvent): Add retain/release and a new assertion.
  12261. (KWQKHTMLPart::mouseDown): Ditto.
  12262. (KWQKHTMLPart::mouseDragged): Ditto.
  12263. (KWQKHTMLPart::mouseUp): Ditto.
  12264. (KWQKHTMLPart::mouseMoved): Ditto.
  12265. === Alexander-41 ===
  12266. 2002-12-18 Richard Williamson <rjw@apple.com>
  12267. Added an ASSERT to ensure that 3127329 isn't still happening.
  12268. This bug should have been fixed be earlier changes.
  12269. Reviewed by darin.
  12270. * kwq/KWQPageState.mm:
  12271. (-[KWQPageState dealloc]):
  12272. 2002-12-18 Chris Blumenberg <cblu@apple.com>
  12273. Fixed: 3131267 - REGRESSION: Java 1.4.1 Applets Restarted When Window is Resized
  12274. Fixed: 3131244 - REGRESSION: Java 1.4.1 Multiple Copies of Applet Started When Window is Resized
  12275. Dave recently patched khtml with a fix for media content inside of table cells. The patch causes the java widget to get the layout call more than once. Calling layout more than once is perfectly allowed, but the java widget wasn't prepared for that and w
  12276. ould create a new java view for each layout. We now only create a java view when the java view hasn't already been created.
  12277. Reviewed by darin.
  12278. * kwq/KWQKJavaAppletWidget.mm:
  12279. (KJavaAppletWidget::showApplet): If the view of the widget is still a KWQView, we haven't replaced it with the Java view. This stops multiple view from being created.
  12280. === Alexander-40 ===
  12281. 2002-12-18 Trey Matteson <trey@apple.com>
  12282. 3098388 - Pressing the back button goes back two levels at allmusic.com
  12283. In support of the fix for this bug, WebCore passes khtml's lockHistory setting
  12284. up through the bridge.
  12285. Reviewed by Darin
  12286. * kwq/KWQKHTMLPart.mm:
  12287. (KWQKHTMLPart::redirectionTimerStartedOrStopped): Pass it along.
  12288. * kwq/WebCoreBridge.h:
  12289. 2002-12-18 Maciej Stachowiak <mjs@apple.com>
  12290. Reviewed by John.
  12291. - fixed 3131171 - Change Alex versions to satisfy both marketing and B&I requirements
  12292. * English.lproj/InfoPlist.strings:
  12293. 2002-12-18 Maciej Stachowiak <mjs@apple.com>
  12294. Reviewed by Trey and Darin.
  12295. - fixed 3124933 - abcnews.com leads to empty window with sheet complaining about javascript: URL
  12296. - fixed 3091248 - picture does not show up in window from epinions
  12297. * khtml/ecma/kjs_window.cpp:
  12298. (Window::get): Put back document-creating code that was in #if
  12299. !APPLE_CHANGES.
  12300. (Window::isSafeScript): Extend access to a window that was opened
  12301. to no URL or to about:blank by the active window.
  12302. (shouldLoadAsEmptyDocument): Helper for the above.
  12303. (WindowFunc::tryCall): Update APPLE_CHANGES comments - now it's
  12304. clear we don't need to create a document in a fresh window
  12305. (accessing document will take care of that), and that it will be
  12306. counter-productive, possibly adding a useless entry to the
  12307. back/forward list.
  12308. * khtml/khtml_part.cpp:
  12309. (KHTMLPart::begin): If we're not loading a URL, make a dummy
  12310. document (the call will check if we have a dummy document
  12311. already).
  12312. * kwq/KWQKHTMLPart.mm:
  12313. (KWQKHTMLPart::createEmptyDocument): Isntead of setting up a
  12314. half-assed document, ask bridge to synchronously load a fully
  12315. assed (but empty) document. Renamed from createDummyDocument.
  12316. * kwq/KWQKHTMLPartBrowserExtension.mm:
  12317. (KHTMLPartBrowserExtension::openURLRequest): Decode script. Also,
  12318. check if return value is a string - if so, write it into the
  12319. document. Maybe we want this to be more general.
  12320. * kwq/KWQKURL.mm:
  12321. (KURL::KURL): Changed to successfully resolve absolute URLs
  12322. against an empty base URL.
  12323. * kwq/WebCoreBridge.h: prototyped new
  12324. loadEmptyDocumentSynchronously method.
  12325. 2002-12-18 Chris Blumenberg <cblu@apple.com>
  12326. Fixed: 3052731 - qt file complains about lack of active-x handler
  12327. Fixed: 3025872 - Black square where lion should be on mgm.com
  12328. 3052731: The page has a syntax error. Notice the missing ">"? He treat this as an OBJECT without an EMBED. khtml actually has a fallback for this. They check the classid and map a mime type to it. They currently map for realaudio and flash, but not quic
  12329. ktime. I added a quicktime mapping as well as a mapping for shockwave.
  12330. 3025872: khtml was unable to parse the EMBED tag within the OBJECT tag (similar to 3052731). When this happens, it looks at the classid and maps it to a mime type. This part was successful because it has a classid->mime type mapping for flash. The strang
  12331. e thing was that it was setting the main URL of the plug-in to "dummy". The code has this comment:
  12332. url = "dummy"; // Not needed, but KHTMLPart aborts the request if empty
  12333. It does this even if the url is valid. It even handles the invalid url case before even calling the part. The fix is to disable this line of code.
  12334. Reviewed by trey.
  12335. * khtml/rendering/render_frames.cpp:
  12336. (RenderPartObject::updateWidget):
  12337. 2002-12-18 Trey Matteson <trey@apple.com>
  12338. 3105755 - can't log in to amex
  12339. The problem was on c/r khtml would not pick a submit button to add to the
  12340. form state that is sent. We now "activate" the first submit button that meets the
  12341. criteria for being a "successful" form element, if no button was already
  12342. activated by being clicked on.
  12343. Reviewed by Darin.
  12344. * khtml/html/html_formimpl.cpp:
  12345. (HTMLFormElementImpl::submit): Pick a submit button to use, if none was already
  12346. chosen by virtue of being clicked.
  12347. (HTMLButtonElementImpl::isSuccessfulSubmitButton): New getter to support
  12348. submit button selection.
  12349. (HTMLButtonElementImpl::isActivatedSubmit): New getter on existing prop.
  12350. (HTMLButtonElementImpl::setActivatedSubmit): New setter on existing prop.
  12351. (HTMLInputElementImpl::isSuccessfulSubmitButton): New getter to support
  12352. submit button selection.
  12353. (HTMLInputElementImpl::isActivatedSubmit): New getter on existing prop.
  12354. (HTMLInputElementImpl::setActivatedSubmit): New setter on existing prop.
  12355. * khtml/html/html_formimpl.h: Add new methods to common superclass.
  12356. 2002-12-17 Don Melton <gramps@apple.com>
  12357. Reviewed by Joyce Chow.
  12358. * khtml/misc/arena.cpp:
  12359. * khtml/misc/arena.h:
  12360. * khtml/rendering/render_arena.cpp:
  12361. * khtml/rendering/render_arena.h:
  12362. * khtml/rendering/render_layer.cpp:
  12363. * khtml/rendering/render_layer.h:
  12364. Changed copyright and licensing.
  12365. 2002-12-17 David Hyatt <hyatt@apple.com>
  12366. NOWRAP was completely broken. This fixes the problem
  12367. and makes porsche.com look ok again.
  12368. Bug #3131287.
  12369. Reviewed by gramps
  12370. * khtml/rendering/bidi.cpp:
  12371. (RenderFlow::findNextLineBreak):
  12372. 2002-12-17 Darin Adler <darin@apple.com>
  12373. Reviewed by Trey.
  12374. * WebCore.pbproj/project.pbxproj: Remove signature.
  12375. * kwq/KWQColor.mm: Turn off inlining so we can build even on the
  12376. compiler that warns about static data in inline functions.
  12377. 2002-12-17 Maciej Stachowiak <mjs@apple.com>
  12378. Reviewed by John.
  12379. - fixed 3120729 - HOMEPAGE: Can't set a DIV innerHTML property
  12380. with html content starting with <html><head><head/><body>
  12381. * khtml/html/html_elementimpl.cpp:
  12382. (HTMLElementImpl::createContextualFragment): Pop <html> and
  12383. <body>, and remove <head> to allow a full HTML document to be made
  12384. and inserted as a contextual fragment.
  12385. === Alexander-39 ===
  12386. 2002-12-17 David Hyatt <hyatt@apple.com>
  12387. Make sure that anonymous block construction works properly
  12388. when you try to insert a block in between two inlines that
  12389. have already been wrapped in an anonymous block.
  12390. Reviewed by mjs
  12391. * khtml/rendering/render_flow.cpp:
  12392. (RenderFlow::addChildToFlow):
  12393. (RenderFlow::makeChildrenNonInline):
  12394. === Alexander-38 ===
  12395. 2002-12-16 Darin Adler <darin@apple.com>
  12396. Reviewed by Don and Maciej.
  12397. - fixed 3129115 -- need Apple copyright added to open source documents
  12398. * tons of files: Added copyright message to files we modified and
  12399. standardized format of copyrights too.
  12400. - fixed 3129235 -- assert in LRUList visiting apple.com if "Display images" preference is off
  12401. * khtml/misc/loader.cpp:
  12402. (Cache::getLRUListFor): Use the first list for 0-sized objects.
  12403. (Cache::removeFromLRUList): Allow 0-sized objects.
  12404. - other changes
  12405. * khtml/rendering/render_style.h: Remove bogus unused private constructor.
  12406. * kwq/KWQFont.h: Added copy constructor and assignment operator.
  12407. * kwq/KWQFont.mm:
  12408. (QFont::QFont): Copy constructor now retains the NSFont. The old version didn't which could
  12409. cause retain/release problems.
  12410. (QFont::operator=): Retain the new NSFont and release the old one.
  12411. * WebCore.pbproj/project.pbxproj: Set MACOSX_DEPLOYMENT_TARGET to 10.2.
  12412. 2002-12-16 Maciej Stachowiak <mjs@apple.com>
  12413. Reviewed by Darin.
  12414. - fixed 3125283 - HOMEPAGE: in onload of an IMG, the width and height are equal to zero
  12415. There were two problems here. First, the calls to get image width
  12416. and height didn't force a layout in all the cases where it was
  12417. required. Second, layout wouldn't lay out images at all until
  12418. parsing was done, due to a hack to block inline layout until that
  12419. point. I'm not sure if this will have other bad consquences, but
  12420. nearly every page I tried, including Hebrew and Japanese pages as
  12421. well as every page on the base PLT laid out properly.
  12422. * khtml/html/html_imageimpl.cpp:
  12423. (HTMLImageElementImpl::width): Force a layout if not laid out.
  12424. (HTMLImageElementImpl::height): Likewise.
  12425. * khtml/html/htmlparser.cpp:
  12426. (KHTMLParser::insertNode): Remove setBlockBidi hack - this was
  12427. preventing images from getting laid out until the document was
  12428. totally done parsing.
  12429. * khtml/rendering/render_flow.cpp:
  12430. (RenderFlow::RenderFlow): More setBLockBidi removal.
  12431. (RenderFlow::layout): Likewise.
  12432. (RenderFlow::close): Likewise.
  12433. (RenderFlow::addChildToFlow): Likewise.
  12434. (RenderFlow::printTree): Likewise.
  12435. * khtml/rendering/render_flow.h:
  12436. * khtml/rendering/render_object.h:
  12437. 2002-12-16 David Hyatt <hyatt@apple.com>
  12438. When a clear occurs (thus causing a block to move underneath
  12439. a float), make sure the block gets a fresh layout, so that it
  12440. can readjust its contents now that they don't have to flow
  12441. around the float.
  12442. Reviewed by darin
  12443. * khtml/rendering/render_flow.cpp:
  12444. (RenderFlow::layoutBlockChildren):
  12445. 2002-12-16 Richard Williamson <rjw@apple.com>
  12446. Fixed 3128477. Check KJS::Window before saving js objects.
  12447. Reviewed by darin.
  12448. * kwq/KWQKHTMLPart.mm:
  12449. (KWQKHTMLPart::saveWindowProperties):
  12450. (KWQKHTMLPart::saveLocationProperties):
  12451. (KWQKHTMLPart::restoreWindowProperties):
  12452. (KWQKHTMLPart::restoreLocationProperties):
  12453. === Alexander-37 ===
  12454. 2002-12-16 Maciej Stachowiak <mjs@apple.com>
  12455. Reviewed by Darin.
  12456. - fixed 3125412 - HOMEPAGE: 2nd load of html in the same div fails.
  12457. - fixed 3052113 - HOMEPAGE: "site menu" part of .mac home page editing doesn't work
  12458. - fixed 3075392 - HOMEPAGE: "pages" section of mac.com homepage editing is missing
  12459. * khtml/html/html_baseimpl.h:
  12460. * khtml/html/html_baseimpl.cpp:
  12461. (HTMLFrameElementImpl::updateForNewURL): Function that loads new URL,
  12462. to be called if src attribute is set explicitly and the element is already
  12463. attached.
  12464. (HTMLFrameElementImpl::parseAttribute): Call updateForNewURL when src
  12465. attrinute is set.
  12466. (HTMLFrameElementImpl::contentDocument): Don't involve render widget
  12467. in getting the content document.
  12468. * khtml/html/html_elementimpl.cpp:
  12469. (HTMLElementImpl::createContextualFragment): Allow contextual
  12470. fragments to be created (and therefore innerHTML to be set on) TR
  12471. and HTML elements.
  12472. 2002-12-16 David Hyatt <hyatt@apple.com>
  12473. Use the layer's bounds as the damage rect not the object's.
  12474. The layer knows about the overflow out of the object. The
  12475. object does not. Duh.
  12476. Fixes disney.com bustage.
  12477. Reviewed by sullivan
  12478. * khtml/rendering/render_layer.cpp:
  12479. (RenderLayer::constructZTree):
  12480. 2002-12-16 David Hyatt <hyatt@apple.com>
  12481. Code needs to go in calcMinMaxWidth instead, so parents computing
  12482. their own minmax widths will get the correct value during the ifrst
  12483. pass. With this change weather.com is actually fixed.
  12484. Reviewed by mjs
  12485. * khtml/rendering/render_box.cpp:
  12486. (RenderBox::calcWidth):
  12487. * khtml/rendering/render_flow.cpp:
  12488. (RenderFlow::calcMinMaxWidth):
  12489. 2002-12-16 David Hyatt <hyatt@apple.com>
  12490. Fix for 3128843, horked layout on weather.com. Ensure that
  12491. overflow: hidden elements bounds-check their minwidth and maxwidth
  12492. values to ensure that you don't grow the clipped element.
  12493. Reviewed by mjs
  12494. * khtml/rendering/render_box.cpp:
  12495. (RenderBox::calcWidth):
  12496. 2002-12-16 Trey Matteson <trey@apple.com>
  12497. 3129175 - we're doing needless GETs when using b/f cache
  12498. Turns out that an empty UserStyle was causing WebCore to reload the base URL
  12499. of the page, since it tried to load the style "".
  12500. Reviewed by Darin
  12501. * khtml/khtml_part.cpp:
  12502. (KHTMLPart::reparseConfiguration): Of the UserStyle is empty, set it to an
  12503. empty string instead of an empty URL.
  12504. 2002-12-16 Maciej Stachowiak <mjs@apple.com>
  12505. Reviewed by Darin.
  12506. - fixed 3129008 - REGRESSION: Successive hot/cached runs of cvs-base PLT are slightly slower
  12507. This was due to me reintroducing a leak of the document. Now fixed.
  12508. * khtml/ecma/kjs_dom.cpp:
  12509. (DOMDocument::~DOMDocument): forget self from cached DOM object table.
  12510. (KJS::getDOMDocumentNode): Instead of storing the document in the
  12511. marked per-document table, store it in the unmarked table, and as
  12512. a property on the Window object.
  12513. (KJS::getDOMNode): use getDocumentNode when appropriate.
  12514. * khtml/ecma/kjs_dom.h:
  12515. 2002-12-15 David Hyatt <hyatt@apple.com>
  12516. Fix for 3128728. Ensure that list markers get placed into an
  12517. existing line box if possible. This patch also fixes RTL bullets
  12518. and line height calculations involving image bullets that are the
  12519. biggest thing on the line. List markers also correctly move
  12520. to avoid floats.
  12521. Reviewed by mjs
  12522. * khtml/rendering/render_list.cpp:
  12523. (RenderListItem::setStyle):
  12524. (getLineBoxParent):
  12525. (RenderListItem::layout):
  12526. (RenderListMarker::calcMinMaxWidth):
  12527. 2002-12-16 Darin Adler <darin@apple.com>
  12528. Reviewed by Maciej.
  12529. - fixed 3128766 -- macconnection.com tries to add properties to the navigator DOM object, which fails
  12530. * khtml/ecma/kjs_window.cpp: (Window::get): Set up properties named navigator and clientInformation
  12531. the first time either is queried. These will hold a persistent shared object rather than making one
  12532. every time it's asked for.
  12533. * WebCore.pbproj/project.pbxproj: Let Electron undo Maciej's evil.
  12534. === WebKit-37u2 ===
  12535. 2002-12-15 Maciej Stachowiak <mjs@apple.com>
  12536. Reviewed by Darin.
  12537. * WebCore.pbproj/project.pbxproj: Updated source version to 37u2.
  12538. 2002-12-15 Darin Adler <darin@apple.com>
  12539. Reviewed by Trey.
  12540. - fixed regression where clicked-on buttons were getting keyboard focus
  12541. * kwq/KWQKHTMLPart.mm:
  12542. (KWQKHTMLPart::khtmlMousePressEvent): Check clickCount here the way NSWindow does.
  12543. See below for rationale.
  12544. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): I didn't read the code in
  12545. [NSWindow sendEvent:] that I was stealing carefully enough. The old needsPanelToBecomeKey
  12546. flag is used to decide whether something should really get first responder, and I need to
  12547. do check that too. And while I was in here, did the same clickCount check that NSWindow
  12548. does for good measure.
  12549. 2002-12-15 Maciej Stachowiak <mjs@apple.com>
  12550. Reviewed by Darin.
  12551. - fixed 3128383 - DOM nodes should always use the same JS object
  12552. * khtml/ecma/kjs_binding.h:
  12553. * khtml/ecma/kjs_binding.cpp:
  12554. (ScriptInterpreter::ScriptInterpreter): Set auto-delete to true on
  12555. document dictionary.
  12556. (ScriptInterpreter::getDOMObjectForDocument): New function - gets
  12557. DOM object from per-document dictionary.
  12558. (ScriptInterpreter::putDOMObjectForDocument): New function - put
  12559. DOM object into per-document dictionary.
  12560. (ScriptInterpreter::deleteDOMObjectsForDocument): Clear all
  12561. objects from specific per-document dictionary.
  12562. (ScriptInterpreter::mark): Mark per-document objects.
  12563. (ScriptInterpreter::forgetDOMObjectsForDocument): Clear objects
  12564. for this document from all interpreters.
  12565. * khtml/ecma/kjs_dom.h:
  12566. * khtml/ecma/kjs_dom.cpp:
  12567. (KJS::getDOMNode): Use per-document rather than general DOM object
  12568. dictionary.
  12569. * khtml/xml/dom_docimpl.cpp:
  12570. (DocumentImpl::~DocumentImpl): Call forgetDOMObjectsForDocument.
  12571. 2002-12-15 David Hyatt <hyatt@apple.com>
  12572. Fix for 3057974 and 3128713. I needed to make frames check to
  12573. see if their parentNode had a renderer to complete the FOUC
  12574. fix. Completing the FOUC fix finally solves 3057974.
  12575. Reviewed by darin
  12576. * khtml/html/html_baseimpl.cpp:
  12577. (HTMLFrameElementImpl::attach):
  12578. 2002-12-15 David Hyatt <hyatt@apple.com>
  12579. Fix for 3109226, epinions page is mostly blank. Add a hack
  12580. to disallow > but only inside attribute values for which there
  12581. is no corresponding attribute name.
  12582. Also fix attribute values with no name so that the value is
  12583. used as the name so that e.g., <option "selected"> works.
  12584. Reviewed by darin
  12585. * khtml/html/htmltokenizer.cpp:
  12586. (HTMLTokenizer::HTMLTokenizer):
  12587. * khtml/html/htmltokenizer.h:
  12588. 2002-12-15 Darin Adler <darin@apple.com>
  12589. Reviewed by Dave.
  12590. - fixed 3127900 -- REGRESSION: text fields select all their text when clicked on with the mouse
  12591. * kwq/KWQKHTMLPart.h: Add _firstResponderAtMouseDownTime.
  12592. * kwq/KWQKHTMLPart.mm:
  12593. (KWQKHTMLPart::khtmlMousePressEvent): Don't call makeFirstResponder: if it's already set.
  12594. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Using _firstResponderAtMouseDownTime, catch the
  12595. case where an NSTextField's editor was just created and became first responder. In those cases,
  12596. pass the mouseDown: to the text field, not the newly created editor. Even though it shouldn't make
  12597. a difference it does. Also don't makeFirstResponder: if it's already set.
  12598. (KWQKHTMLPart::mouseDown): Set _firstResponderAtMouseDownTime.
  12599. * kwq/KWQWidget.mm: (QWidget::setFocus): Don't call makeFirstResponder: if it's already set.
  12600. 2002-12-15 David Hyatt <hyatt@apple.com>
  12601. Make sure framesets don't get built twice when FOUC delays
  12602. their loading.
  12603. Reviewed by gramps
  12604. * khtml/css/cssstyleselector.cpp:
  12605. * khtml/css/cssstyleselector.h:
  12606. * khtml/html/html_baseimpl.cpp:
  12607. (HTMLFrameSetElementImpl::attach):
  12608. * khtml/rendering/render_style.cpp:
  12609. (RenderStyle::operator==):
  12610. (RenderStyle::isStyleAvailable):
  12611. * khtml/rendering/render_style.h:
  12612. 2002-12-15 Darin Adler <darin@apple.com>
  12613. Reviewed by Dave.
  12614. - fixed ==/= typo in QFontMetrics that caused a part of my recent speedup to not take effect
  12615. - fixed 3128582 -- REGRESSION: Crash on planetquake.com
  12616. * kwq/KWQFontMetrics.mm:
  12617. (QFontMetricsPrivate::setFont): Fix a horrifying "== instead of =" mistake.
  12618. (QFontMetrics::ascent): Give an ERROR message, don't crash, when this is called on a
  12619. font metrics object that hasn't been updated to work for a particular font.
  12620. (QFontMetrics::descent): Ditto.
  12621. (QFontMetrics::lineSpacing): Ditto.
  12622. (QFontMetrics::xHeight): Ditto.
  12623. (QFontMetrics::width): Ditto.
  12624. (QFontMetrics::floatWidth): Ditto.
  12625. (QFontMetrics::floatCharacterWidths): Ditto.
  12626. * khtml/html/html_inlineimpl.cpp: (HTMLBRElementImpl::attach):
  12627. Eliminated what was causing us to hit the above. BR elements need to respect display() == NONE.
  12628. - fixed the fix for operator==; needs to work even if the pseudo type was
  12629. extracted already for one of the two, and not the other
  12630. * khtml/css/cssparser.cpp:
  12631. (CSSSelector::extractPseudoType): Only do work when the selector is Pseudo.
  12632. (CSSSelector::operator==): Call pseudoType() instead of going right at _pseudoType.
  12633. 2002-12-15 David Hyatt <hyatt@apple.com>
  12634. Fix for 3128402, missing content on voodooextreme. Don't allow
  12635. object/embed inside the head.
  12636. Reviewed by cblu
  12637. * khtml/html/dtd.cpp:
  12638. 2002-12-15 Darin Adler <darin@apple.com>
  12639. Reviewed by Ken.
  12640. - fixed 3127898 -- Crash going to altavista.com after visiting sony.com
  12641. * khtml/ecma/kjs_window.cpp: (Window::get): Change lots of properties to return "undefined"
  12642. rather than crashing when the view is NULL. I'm not sure that undefined is the perfect thing
  12643. to return in this case, but it's better than crashing the program. We can refine later as needed.
  12644. - fixed 3127157 -- REGRESSION: applet does not become first responder when clicked-on
  12645. - fixed 3127934 -- Crash in KWQKHTMLPart::widgetWillReleaseView scrolling around
  12646. * kwq/KWQKHTMLPart.h: Get rid of widgetWillReleaseView(). Add mouseDownViewIfStillGood().
  12647. * kwq/KWQKHTMLPart.mm:
  12648. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Call makeFirstResponder: in the same way that
  12649. the NSWindow does before delivering a mouseDown: message. This oversight caused the applet problem.
  12650. (findViewInSubviews): Added.
  12651. (KWQKHTMLPart::mouseDownViewIfStillGood): Added. Gets _mouseDownView, but then checks that it's
  12652. still a subview before returning it. A little inefficient, but the only way to do it given that
  12653. there's no general way to find out that an NSView is being removed from your view hierarchy or deallocated.
  12654. This fixes the crash in widgetWillReleaseView.
  12655. (KWQKHTMLPart::khtmlMouseMoveEvent): Use mouseDownViewIfStillGood() instead of _mouseDownView directly.
  12656. (KWQKHTMLPart::khtmlMouseReleaseEvent): Ditto.
  12657. (KWQKHTMLPart::passSubframeEventToSubframe): Ditto.
  12658. * kwq/KWQWidget.mm:
  12659. (QWidget::~QWidget): Remove call to widgetWillReleaseView().
  12660. (QWidget::setView): Ditto.
  12661. 2002-12-15 David Hyatt <hyatt@apple.com>
  12662. operator== on CSSSelectors needed to be updated to compare
  12663. _pseudoTypes. A nice subtle bug from the mega-patch.
  12664. Reviewed by mjs
  12665. * khtml/css/cssparser.cpp:
  12666. (CSSSelector::operator == ):
  12667. 2002-12-15 David Hyatt <hyatt@apple.com>
  12668. Fix for 3128429, sans-serif font got broken. Just a typo
  12669. from darin's mega-patch.
  12670. Reviewed by mjs
  12671. * khtml/css/cssstyleselector.cpp:
  12672. 2002-12-14 Darin Adler <darin@apple.com>
  12673. Reviewed by Maciej and Dave.
  12674. - optimizations that improve speed; total is 13.8% on cached cvs-base on my machine
  12675. * khtml/css/css_valueimpl.h: Add isKonqBody() and genericFamilyType() to find out if
  12676. a font is a standard one. This is much faster than doing string comparisons all the time.
  12677. * khtml/css/css_valueimpl.cpp: (FontFamilyValueImpl::FontFamilyValueImpl):
  12678. Check the font names against the standard ones on time when the FontFamilyValueImpl
  12679. object is constructed rather than every time the stuff is matched.
  12680. * khtml/css/cssparser.h: Add pseudoType() and extractPseudoType() to CSSSelector so we
  12681. don't have to do string compares all the time.
  12682. * khtml/css/cssparser.cpp:
  12683. (StyleBaseImpl::parseValue): Use QConstString in a way that's effective (with an
  12684. object that has a long enough lifetime), or don't use it at all.
  12685. (StyleBaseImpl::parseContent): Ditto.
  12686. (StyleBaseImpl::preprocess): Preprocess into a buffer, usually on the stack, rather than
  12687. using QString += QChar over and over again.
  12688. (CSSSelector::extractPseudoType): Convert the value string into a type, and get rid of it.
  12689. Saves memory because the string goes away. And doing it once is much faster than string
  12690. comparing each time.
  12691. * khtml/css/cssstyleselector.cpp:
  12692. (cleanPath): Restructure to save one find() in the common case.
  12693. (checkPseudoState): Restructure to avoid some DOMString creation/destruction in the case
  12694. where the tag is not an <A>. Also use QConstString correctly.
  12695. (CSSStyleSelector::checkOneSelector): Use the new pseudoType() instead of string compares.
  12696. (CSSStyleSelector::applyRule): Use isKonqBody() and genericFamilyType() instead of string
  12697. comparisons.
  12698. * khtml/dom/dom_string.h: Make the destructor non-virtual. This was a big win, and a mistake
  12699. the way it was before. Also make the DOMString constructor with no parameters inline.
  12700. * khtml/dom/dom_string.cpp:
  12701. (DOMString::string): Don't use QConstString here, since it does no good.
  12702. (DOM::operator==): Rewrite to do things faster and avoid calling strlen.
  12703. * khtml/html/html_objectimpl.h: Don't use QConstString in places where it does harm and no good.
  12704. * khtml/html/html_objectimpl.cpp: (HTMLEmbedElementImpl::parseAttribute): Use QConstString properly.
  12705. * khtml/html/htmltokenizer.cpp:
  12706. (tagMatch): Added.
  12707. (HTMLTokenizer::parseSpecial): Change tokenizing so it doesn't construct temporary strings (with
  12708. QConstString) just to compare small substrings.
  12709. * khtml/khtml_part.cpp: (KHTMLPart::write): Don't use a decoder object when source is all ASCII.
  12710. * kwq/KWQColor.mm:
  12711. (hex2int): Don't bother with uppercase hex since we always lowercase anyway.
  12712. (QColor::setNamedColor): Use a new gperf-based table instead of an NSDictionary to look up colors.
  12713. * kwq/KWQColorData.c: Added this autogenerated file.
  12714. * kwq/KWQColorData.gperf: Added. Source file with list of colors and color values.
  12715. * kwq/Makefile.am: Build KWQColorData.c from KWQColorData.gperf.
  12716. * WebCore.pbproj/project.pbxproj: Added KWQColorData.gperf.
  12717. * khtml/misc/helper.cpp: (khtml::setNamedColor): Don't call setNamedColor again with the lowercased
  12718. color name, since our QColor::setNamedColor already has to lowercase the name (because it has to check
  12719. all names before checking any hex values).
  12720. * khtml/rendering/font.h: Don't initialize the QFontMetrics since in every case we end up changing
  12721. the font later anyway. Also remove unused field.
  12722. * khtml/rendering/font.cpp: (Font::update): Use the new QFontMetrics::setFont for speed.
  12723. * khtml/rendering/render_object.cpp: (RenderObject::enclosingLayer): Change it so it doesn't get
  12724. the layer twice. This function showed up on the sample so we know it's hot.
  12725. * khtml/xml/dom_stringimpl.cpp: (DOMStringImpl::containsOnlyWhitespace): Did a faster implementation
  12726. that doesn't call QChar::direction() except for non-ASCII characters.
  12727. * kwq/KWQFontMetrics.h: Add empty constructor for use in font.cpp. Add accessor and setter for the
  12728. font too. Made baselineOffset() inline since it's trivial.
  12729. * kwq/KWQFontMetrics.mm:
  12730. (QFontMetricsPrivate::QFontMetricsPrivate): Don't make the renderer until we use it.
  12731. (QFontMetricsPrivate::getRenderer): Make it here.
  12732. (QFontMetricsPrivate::font): Added.
  12733. (QFontMetricsPrivate::setFont): Added. Dumps the renderer if the font is different.
  12734. (QFontMetrics::QFontMetrics): Added empty constructor.
  12735. (QFontMetrics::setFont): Added.
  12736. * kwq/KWQKURL.mm: (KURL::parse): Avoid function call overhead calling strncasecmp and strncmp.
  12737. Also made the check for localhost case insensitive.
  12738. * kwq/KWQString.h: Remove _isUnicodeInternal and _isAsciiInternal, since they are trivially
  12739. computed, and it saves time to not have that extra field to manipulate. Removed private
  12740. data() function since it's the same as *dataHandle and not really more clear. Made ascii()
  12741. and unicode() simpler and inline. Also made latin1() and getCFString() inline. Renamed
  12742. QStringData to KWQStringData.
  12743. * kwq/KWQString.mm:
  12744. (QStringData::QStringData): Remove initializers for the xxxInternal.
  12745. (QStringData::initialize): Removed some unnecessary if statements, and made a slight improvement
  12746. in the case of a 0-length string that comes with a pointer for Unicode (can't do it in the
  12747. char * case because it's a feature that's used).
  12748. (QString::makeSharedNull): No need to set _isUnicodeInternal.
  12749. (QStringData::~QStringData): Use the new functions instead of the old bits.
  12750. (QStringData::increaseAsciiSize): Grow faster when we get to larger sizes where the "good size"
  12751. call doesn't have as much of an effect. Simplified by removing unneeded code.
  12752. (QStringData::increaseUnicodeSize): Ditto.
  12753. (QStringData::makeAscii): Update for removal of _isAsciiInternal.
  12754. (QStringData::makeUnicode): Update for removal of _isUnicodeInternal.
  12755. (QString::detachIfInternal): Add this new inline to speed things up for the common case where
  12756. there's no detaching needed.
  12757. (QString::at): Simplify, there were excess if branches here.
  12758. (QString::toDouble): Use kjs_strtod and don't copy the string using QCString for additional speed.
  12759. (QString::lower): Don't detach if the string is already all lowercase. Added a FIXME about the
  12760. code that assumes all "ASCII" bytes are truly ASCII. This code blurs the distinction between Latin-1
  12761. and ASCII in a way that will not work right for Latin-1 characters in an 8-byte character QString.
  12762. (QString::detachInternal): Update for removal of _isUnicodeInternal.
  12763. (QString::detach): Removed a special case for shared_null that was dead code since shared_null has
  12764. the _isUnicodeValid flag set.
  12765. (operator==): Rewrote the comparison with char * to avoid the costly call to strlen.
  12766. * Makefile.am: Updated the rules here so the force clean timestamp works right.
  12767. * force-clean-timestamp: Touched this since the header dependencies don't seem right
  12768. for the DOMString constructor change, at least.
  12769. * WebCore-tests.exp: Exported a symbol now needed by tests since QString does more inlining.
  12770. * WebCore-combined.exp: Re-generated.
  12771. 2002-12-14 Maciej Stachowiak <mjs@apple.com>
  12772. Reviewed by Darin.
  12773. - slightly improved situation with 3124933 (abcnews.com leads to
  12774. empty window with sheet complaining about javascript: URL); the
  12775. popup window still comes up empty but it doesn't put up a sheet.
  12776. * kwq/KWQKHTMLPartBrowserExtension.mm:
  12777. (KHTMLPartBrowserExtension::openURLRequest): Handled "javascript:"
  12778. URLs here.
  12779. 2002-12-14 David Hyatt <hyatt@apple.com>
  12780. Fix insidemacgames.com. Reinstate rules I removed
  12781. and fix other rules to be !important so that the
  12782. td[align=right] rules won't affect child tables
  12783. with align=center.
  12784. Reviewed by gramps
  12785. * khtml/css/html4.css:
  12786. 2002-12-14 David Hyatt <hyatt@apple.com>
  12787. Fix for 3016385, menus on webreference.com don't show up.
  12788. Fixes to make webreference.com menus show up. This involved
  12789. fixing layers to not clip positioned objects when overflow:hidden
  12790. is set, fixing the stupid clip/sync layout hack for livepage
  12791. so that it doesn't break webreference, and implementing
  12792. navigator.productSub (right now the date is set to
  12793. Christmas 2002).
  12794. Reviewed by gramps/maciej.
  12795. * khtml/ecma/kjs_navigator.cpp:
  12796. (Navigator::getValueProperty):
  12797. * khtml/ecma/kjs_navigator.h:
  12798. * khtml/ecma/kjs_navigator.lut.h:
  12799. * khtml/rendering/render_box.cpp:
  12800. (RenderBox::getOverflowClipRect):
  12801. * khtml/rendering/render_box.h:
  12802. * khtml/rendering/render_flow.cpp:
  12803. (RenderFlow::layout):
  12804. * khtml/rendering/render_layer.cpp:
  12805. (RenderLayer::paint):
  12806. (RenderLayer::nodeAtPoint):
  12807. (RenderLayer::constructZTree):
  12808. * khtml/rendering/render_layer.h:
  12809. * khtml/rendering/render_object.cpp:
  12810. (RenderObject::setLayouted):
  12811. * khtml/rendering/render_object.h:
  12812. 2002-12-14 Ken Kocienda <kocienda@apple.com>
  12813. Reviewed by Maciej
  12814. Fix for this bug:
  12815. Radar 3128159 (Netscape non-standard DOM event attribute "which" unsupported)
  12816. * khtml/dom/dom2_events.cpp:
  12817. (UIEvent::which): Added which() definition.
  12818. * khtml/dom/dom2_events.h: Added declarations for which() functions in UIEvent.
  12819. * khtml/ecma/kjs_events.cpp:
  12820. (DOMUIEvent::getValueProperty): Added which property.
  12821. * khtml/ecma/kjs_events.h: Ditto.
  12822. * khtml/ecma/kjs_events.lut.h: File regenerated.
  12823. 2002-12-13 Richard Williamson <rjw@apple.com>
  12824. Fixed 3127310 and 3127920.
  12825. Implemented findWordBoundary. We now correctly detect word boundaries.
  12826. This function makes use of carbon unicode utilities.
  12827. With help from hyatt, made selection correctly account for render
  12828. continuations. This fixes many of the 'unable to select' issues.
  12829. Reviewed by trey and hyatt.
  12830. * khtml/khtml_events.cpp:
  12831. (khtml::MouseEvent::offset):
  12832. * khtml/khtml_part.cpp:
  12833. (findWordBoundary):
  12834. (KHTMLPart::khtmlMousePressEvent):
  12835. (KHTMLPart::khtmlMouseMoveEvent):
  12836. * khtml/rendering/render_object.cpp:
  12837. (RenderObject::checkSelectionPoint):
  12838. * khtml/rendering/render_object.h:
  12839. * khtml/rendering/render_text.cpp:
  12840. (RenderText::checkSelectionPoint):
  12841. * khtml/rendering/render_text.h:
  12842. 2002-12-13 Maciej Stachowiak <mjs@apple.com>
  12843. Reviewed by Don.
  12844. - fixed build.
  12845. * ForwardingHeaders/rendering/render_layer.h: Added.
  12846. 2002-12-13 Maciej Stachowiak <mjs@apple.com>
  12847. Reviewed by Don.
  12848. - fixed 3114737 - DHTML image content mispositioned on lexus.com
  12849. * khtml/dom/dom2_events.cpp:
  12850. (UIEvent::layerX): Added to support nonstandard Mozilla
  12851. event.layerX property.
  12852. (UIEvent::layerY): Added to support nonstandard Mozilla
  12853. event.layerY property.
  12854. * khtml/dom/dom2_events.h:
  12855. * khtml/ecma/kjs_events.cpp:
  12856. (DOMUIEvent::getValueProperty): Implemented layerX and layerY
  12857. * khtml/ecma/kjs_events.h:
  12858. * khtml/ecma/kjs_events.lut.h:
  12859. * khtml/xml/dom2_eventsimpl.cpp:
  12860. (MouseEventImpl::MouseEventImpl): Added call to computeLayerPos.
  12861. (MouseEventImpl::computeLayerPos): Compute layer position.
  12862. (MouseEventImpl::layerX): Added.
  12863. (MouseEventImpl::layerY): Added.
  12864. (MouseEventImpl::initMouseEvent): Added call to computeLayerPos.
  12865. * khtml/xml/dom2_eventsimpl.h:
  12866. 2002-12-13 David Hyatt <hyatt@apple.com>
  12867. Fix for 314799, image at wired.com doesn't show up. Block
  12868. level replaced floating elements were being treated as though
  12869. they didn't float.
  12870. Reviewed by gramps
  12871. * khtml/rendering/render_flow.cpp:
  12872. (RenderFlow::layoutBlockChildren):
  12873. 2002-12-13 David Hyatt <hyatt@apple.com>
  12874. Fix for 3098045.
  12875. Do not treat XHTML-style tags e.g., <br/> or <table/> as
  12876. self-closing. This is absolutely wrong, and it does not
  12877. match the behavior of other browsers. According to the HTML4
  12878. spec for parsing, / is an erroneous character and should simply
  12879. be dropped, so <table/> should be treated like <table>.
  12880. Fixes for crashes on glazman's blog and on tantek's blog. Both
  12881. still mis-render, but at least they don't crash.
  12882. Reviewed by gramps (and darin too)
  12883. * khtml/html/htmltokenizer.cpp:
  12884. * khtml/rendering/render_container.cpp:
  12885. * khtml/rendering/render_style.cpp:
  12886. === Alexander-37u1 ===
  12887. 2002-12-13 David Hyatt <hyatt@apple.com>
  12888. Two fixes. Bugs are 3121024, which had to do with handling
  12889. escaped characters in the CSS content property, and
  12890. bug 3127375 (44854 in bugs.kde.org), which had to do with
  12891. making sure table cells relayout properly when images load
  12892. async.
  12893. Reviewed by darin and john
  12894. * khtml/css/cssparser.cpp:
  12895. (StyleBaseImpl::parseContent):
  12896. (StyleBaseImpl::isHexadecimal):
  12897. * khtml/css/cssparser.h:
  12898. * khtml/rendering/bidi.cpp:
  12899. (RenderFlow::layoutInlineChildren):
  12900. * khtml/rendering/render_flow.cpp:
  12901. (RenderFlow::layout):
  12902. * khtml/rendering/render_flow.h:
  12903. 2002-12-13 Darin Adler <darin@apple.com>
  12904. Reviewed by Trey.
  12905. - moved KWQFontFamily and KWQPageState to new homes
  12906. * kwq/KWQFontFamily.h: Added.
  12907. * kwq/KWQFontFamily.mm: Added.
  12908. * kwq/KWQPageState.h: Added.
  12909. * kwq/KWQPageState.mm: Added.
  12910. * WebCore.pbproj/project.pbxproj: Added new source files.
  12911. * kwq/KWQFont.h: Removed KWQFontFamily.
  12912. * kwq/KWQFont.mm: Removed KWQFontFamily.
  12913. * kwq/WebCoreBridge.mm: Removed KWQPageState.
  12914. 2002-12-13 Maciej Stachowiak <mjs@apple.com>
  12915. Reviewed by Ken.
  12916. - fixed 3083814 - dhtml at www.bayarea.com doesn't hide on some mouse movements
  12917. * khtml/ecma/kjs_events.h:
  12918. * khtml/ecma/kjs_events.cpp:
  12919. (DOMUIEvent::getValueProperty): Implemented pageX and pageY properties.
  12920. * khtml/ecma/kjs_events.lut.h: Regenerated.
  12921. * khtml/dom/dom2_events.h:
  12922. * khtml/dom/dom2_events.cpp:
  12923. (UIEvent::pageX): Get x coordinate if a mouse event.
  12924. (UIEvent::pageY): Get y coordinate if a mouse event.
  12925. 2002-12-13 Richard Williamson <rjw@apple.com>
  12926. Fixed 3127225. Set WebCore object cache size when first bridge is created.
  12927. Reviewed by gramps.
  12928. * kwq/WebCoreBridge.h:
  12929. * kwq/WebCoreBridge.mm:
  12930. (-[WebCoreBridge init]):
  12931. 2002-12-13 Darin Adler <darin@apple.com>
  12932. Reviewed by John.
  12933. Overall speedup on cvs-base is about 5%.
  12934. - reduce QString use in the tokenizer and tighten up QString implementation for a speedup
  12935. - fix up the QFontFamily implementation, using new QString features too, for a speedup
  12936. * khtml/html/htmltokenizer.h: Take const QString & instead of QString to avoid an extra copy.
  12937. * khtml/html/htmltokenizer.cpp:
  12938. (HTMLTokenizer::begin): Use QString::null instead of "" for QString objects; faster.
  12939. (HTMLTokenizer::scriptHandler): In APPLE_CHANGES, use new prepend that avoids the need to
  12940. create a temporary QString. Use QString::null instead of QString() for a null string, and
  12941. also made other small fixes to avoid temporary QStrings.
  12942. (HTMLTokenizer::setSrc): Take const QString & instead of QString to avoid an extra copy.
  12943. * kwq/KWQFont.h: Rename QFontFamily to KWQFontFamily. Make family() inline, add inline
  12944. familyIsEmpty(). Change KWQFontFamily to store both the QString for the family and the
  12945. NSString instead of only the NSString to avoid constant conversions back and forth.
  12946. Remove type cases in CREATE_FAMILY_ARRAY that could result in copying the font object.
  12947. * kwq/KWQFont.mm:
  12948. (KWQFontFamily::KWQFontFamily): Fix bug where a copied family object would have a random
  12949. ref count instead of a ref count of 0. Also update for NSString change.
  12950. (KWQFontFamily::operator=): Use the ref before deref algorithm instead of the check for
  12951. self-assignment.
  12952. (KWQFontFamily::getNSFamily): Compute the NSString for the family name here. To avoid
  12953. making an NSString every time, use a CFDictionary with QString as a key and NSString as
  12954. a value instead of using an NSSet.
  12955. (KWQFontFamily::setFamily): Invalidate the NSString family when the QString family is
  12956. changed. Moved the code to make things unique to getNSFamily.
  12957. (KWQFontFamily::operator==): Call getNSFamily rather than
  12958. * kwq/KWQString.h: Added a prepend and insert overload that take a QChar pointer and length, for
  12959. use in the tokenizer, and a hash function, for use in CFDictionary. Also added a global set of
  12960. CFDictionaryKeyCallBacks.
  12961. * kwq/KWQString.mm:
  12962. (QString::prepend): New overload calls new insert overload.
  12963. (QString::insert): Old insert slightly tightened by calling detach() only after the early exit
  12964. and removing an extra detach from a function that already does forceUnicode. Added the new insert
  12965. that takes a QChar * and a length.
  12966. (operator==): Rewrite this so that it is efficient and doesn't involve creating a QString temporary
  12967. or doing a function call.
  12968. (QString::hash): Wrote this. Used the same hash algorithm I did in my recent KJS work.
  12969. (retainQString): Added. For use in CFDictionaryKey callback.
  12970. (releaseQString): Added. For use in CFDictionaryKey callback.
  12971. (describeQString): Added. For use in CFDictionaryKey callback.
  12972. (equalQString): Added. For use in CFDictionaryKey callback.
  12973. (hashQString): Added. For use in CFDictionaryKey callback.
  12974. * khtml/rendering/font.h: Change name to KWQFontFamily.
  12975. * khtml/rendering/font.cpp: (Font::update): Call familyIsEmpty() instead of family().isEmpty()
  12976. to avoid making and destroying a QString every time. Also put this batch of KWQFontFamily-specific
  12977. changes inside #if APPLE_CHANGES. Much to my dismay, we have others elsewhere that aren't ifdef'd.
  12978. * khtml/css/cssstyleselector.cpp: (CSSStyleSelector::applyRule): Change name to KWQFontFamily.
  12979. Clearly this code needs some #if APPLE_CHANGES, and changing the class name helps make that clear.
  12980. - change KHTMLSettings so using it doesn't require copying QStrings for a speedup
  12981. * kwq/KWQKHTMLSettings.h: Made all the functions static members to avoid the unnecessary
  12982. overhead of passing a this pointer. Added lots of setXXX functions for use by the WebCoreSettings
  12983. code that gets called by WebKit when settings are changed. Return objects by reference because we
  12984. can and it avoids copying QString objects.
  12985. * kwq/KWQKHTMLSettings.mm: Changed all the functions in here to return the same global object
  12986. each time, and made the set functions update those globals.
  12987. * kwq/WebCoreSettings.mm: All the setters now call through to KHTMLSettings set functions.
  12988. - fixed 3126513 -- crash in KWQKHTMLPart::clearTimers() deallocating KWQPageState
  12989. - did some cleanup in the bridge and the part; part of the process of moving real work out of the bridge
  12990. * kwq/KWQKHTMLPart.h: Rearrange things to be a little more logical. Mark isFrameSet() const.
  12991. added an attributedString function here so it's not inside WebCoreBridge. Added an overload
  12992. of clearTimers that takes a view parameter.
  12993. * kwq/KWQKHTMLPart.cpp: (KWQKHTMLPart::isFrameSet): Mark this const.
  12994. * kwq/KWQKHTMLPart.mm:
  12995. (KWQKHTMLPart::clearTimers): Add the overload that takes the view parameter.
  12996. (KWQKHTMLPart::attributedString): Moved this code in here from the bridge.
  12997. * kwq/WebCoreBridge.mm:
  12998. (-[WebCoreBridge selectedAttributedString]): Call the attributedString function in its new home in
  12999. KWQKHTMLPart.
  13000. (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]): Ditto.
  13001. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]):
  13002. Take a const KURL & instead of a KURL to avoid unnecessary copying.
  13003. (-[KWQPageState dealloc]): Call the new clearTimers that takes a view parameter. This should fix the
  13004. crash in autorelease pool deallocation mentioned above.
  13005. 2002-12-13 David Hyatt <hyatt@apple.com>
  13006. Fix for 3121865, content missing at disney.com. Make
  13007. sure blocks track width overflow as well as height
  13008. overflow and ensure that a layer's dimensions expand
  13009. to encompass both width and height overflow.
  13010. Also fixes a bug with line breaking that allowed unbreakable
  13011. words to actually be broken up when they were the only word
  13012. on a line. This is wrong and differs from all other
  13013. browsers, so the patch in bidi.cpp fixes us to match
  13014. other browsers. (This was required to fix the above bug.)
  13015. Reviewed by mjs.
  13016. * khtml/rendering/bidi.cpp:
  13017. (RenderFlow::findNextLineBreak):
  13018. * khtml/rendering/render_flow.cpp:
  13019. (RenderFlow::RenderFlow):
  13020. (RenderFlow::layout):
  13021. (RenderFlow::layoutBlockChildren):
  13022. * khtml/rendering/render_flow.h:
  13023. * khtml/rendering/render_layer.cpp:
  13024. (RenderLayer::updateLayerPosition):
  13025. * khtml/rendering/render_object.cpp:
  13026. (RenderObject::nodeAtPoint):
  13027. * khtml/rendering/render_object.h:
  13028. * khtml/rendering/render_table.h:
  13029. 2002-12-12 Richard Williamson <rjw@apple.com>
  13030. Fixed 3116584. Made letter-spacing, word-spacing, and text-decoration play
  13031. well together.
  13032. Reviewed by hyatt.
  13033. Changes made with trey to enable to release of page cache from the
  13034. "Empty Cache" menu item in Alex.
  13035. Reviewed by trey.
  13036. * khtml/rendering/font.cpp:
  13037. (Font::drawLineForText):
  13038. (Font::drawText):
  13039. * khtml/rendering/font.h:
  13040. * khtml/rendering/render_text.cpp:
  13041. (TextSlave::paintDecoration):
  13042. (RenderText::paintObject):
  13043. * khtml/rendering/render_text.h:
  13044. * kwq/KWQPainter.h:
  13045. * kwq/KWQPainter.mm:
  13046. (QPainter::drawLineForText):
  13047. * kwq/WebCoreBridge.h:
  13048. * kwq/WebCoreBridge.mm:
  13049. (-[WebCoreBridge dealloc]):
  13050. (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]):
  13051. (-[KWQPageState invalidate]):
  13052. (-[KWQPageState dealloc]):
  13053. * kwq/WebCoreTextRenderer.h:
  13054. 2002-12-12 Ken Kocienda <kocienda@apple.com>
  13055. Reviewed by Maciej and Darin
  13056. Final fix for this bug:
  13057. Radar 3062858 (REGRESSION: failed login at www.usaa.com doesn't return error text)
  13058. We were down to a case where submitting the login form with the return key
  13059. failed since we did not implement either non-standard keyCode (IE-style) or
  13060. which (Netscape-style) UI event extension for getting the value of a key
  13061. press. The form submission code depended on sensing the value of the
  13062. key press by checking one of these properties.
  13063. Since the "which" property also can be used for mouse events, and fixing
  13064. this bug could be done by implementing either keyCode or which, I chose
  13065. to implement keyCode only.
  13066. * khtml/dom/dom2_events.cpp: Added keyCode function definition.
  13067. * khtml/dom/dom2_events.h: Added keyCode function declaration.
  13068. * khtml/ecma/kjs_events.cpp:
  13069. (DOMUIEvent::getValueProperty): Added new KeyCode attribute.
  13070. * khtml/ecma/kjs_events.h: New generated file.
  13071. * khtml/ecma/kjs_events.lut.h: Ditto.
  13072. * khtml/xml/dom2_eventsimpl.cpp:
  13073. (KeyEventImpl::KeyEventImpl): Fixed a bug in khtml that prevented the
  13074. m_keyVal field on KeyEventImpl from ever being set correctly.
  13075. I guess I am the first person ever to care about that value. :-)
  13076. === Alexander-36 ===
  13077. 2002-12-12 Darin Adler <darin@apple.com>
  13078. Reviewed by Ken.
  13079. - fixed 3126042 -- Failure to send onkeypress event on key down causes forms to submit incorrectly
  13080. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::keyEvent): Fixed the code to send the second event with repeat
  13081. set equal to true. Before it was constructing the event but never sending it because result was true.
  13082. Also fixed a problem where it was considering sending a second mouse up event. What we're doing here
  13083. is a bit of a hack and probably should be fixed -- it seems that the behavior in dispatchKeyEvent where
  13084. it sends only a down and not a press for the a non-autorepeat event is a KHTML bug that we should fix
  13085. instead of work around eventually.
  13086. - fix to something that made this harder to debug
  13087. * khtml/xml/dom2_eventsimpl.cpp: (KeyEventImpl::KeyEventImpl): Logging the type was showing the wrong
  13088. type, and I narrowed it down to this code here. Changing m_id after the fact doesn't change the type
  13089. string, so you need to compute the correct ID and pass it to the constructor.
  13090. 2002-12-12 Darin Adler <darin@apple.com>
  13091. Reviewed by Ken.
  13092. - fixed 3125886 -- Failure to set document onkeypress handler causes return key to submit forms incorrectly
  13093. The handler was getting ignored because the property setting code never got to the DOMNode level.
  13094. * khtml/ecma/kjs_dom.cpp: (DOMDocument::tryPut): Pass correct parent class, DOMNode, instead
  13095. of DOMObject. By passing DOMObject, we skipped all the properties inherited from DOMNode,
  13096. including onkeypress.
  13097. 2002-12-12 Darin Adler <darin@apple.com>
  13098. Reviewed by Trey and Ken.
  13099. - fixed 3125613 -- REGRESSION: resizing frames after clicking on scroll bar doesn't work right
  13100. The problem was that the mouse dragged events were going to the scroll bar because the new click
  13101. on the frame resizer didn't fall into the code path that sets _mouseDownView.
  13102. * kwq/KWQKHTMLPart.h: Add override of khtmlMouseMoveEvent.
  13103. * kwq/KWQKHTMLPart.mm:
  13104. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Don't set _mouseDownView. This is now handled
  13105. at the higher level when the mouseDown comes in.
  13106. (KWQKHTMLPart::khtmlMouseMoveEvent): Added. Pass along mouseDragged: events. I didn't have this
  13107. before because I don't want or need to pass mouseMoved: events along, but the KHTML mouse move
  13108. event corresponds to both AppKit mouseDragged and mouseMoved.
  13109. (KWQKHTMLPart::khtmlMouseReleaseEvent): Don't clear _mouseDownView. This is now handled at the
  13110. higher level when the mouseUp comes in.
  13111. (KWQKHTMLPart::passSubframeEventToSubframe): Ditto.
  13112. (KWQKHTMLPart::mouseDown): Set _mouseDownView to nil; it will be set by passWidgetMouseDownEventToWidget
  13113. if we end up passing the event down. This is the change that actually fixes the bug mentioned above.
  13114. (KWQKHTMLPart::mouseUp): Set _mouseDownView to nil after handling the mouseUp. It's OK if we don't
  13115. clear this out in cases where we don't get a mouseUp event -- we'll get a mouseDown later -- but it's
  13116. still probably a good idea to clear it when we know the mouse is no longer down.
  13117. - used update-kwq-assert to update the code that's a shared copy of WebFoundation code
  13118. * kwq/KWQAssertions.m: (vprintf_stderr_objc): Got the UTF-8 fix I did a while back.
  13119. 2002-12-12 Maciej Stachowiak <mjs@apple.com>
  13120. Reviewed by Darin.
  13121. * force-js-clean-timestamp: Update for JavaScriptCore changes.
  13122. 2002-12-12 Darin Adler <darin@apple.com>
  13123. Reviewed by Maciej.
  13124. - fixed 3125504 -- REGRESSION: Selection not working correctly for text area on http://glish.com/css/7.asp
  13125. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::khtmlMousePressEvent): Call makeFirstResponder here explicitly,
  13126. since we are disabling the makeFirstResponder that normally happens during window event dispatching
  13127. in WebKit.
  13128. * kwq/KWQScrollView.h: Define getDocumentView().
  13129. * kwq/KWQScrollView.mm: Use getDocumentView() everywhere.
  13130. (QScrollView::getDocumentView): Define it here.
  13131. 2002-12-12 Darin Adler <darin@apple.com>
  13132. Reviewed by Maciej and Richard.
  13133. - fixed 3125497 -- REGRESSION: Infinite recursion with mouseUp: events
  13134. The problem was that events could end up back at the same part due to the responder chain.
  13135. * kwq/KWQKHTMLPart.h: Added mouseDown, mouseDragged, mouseUp, mouseMoved, buttonForCurrentEvent,
  13136. and stateForCurrentEvent. Remove setCurrentEvent and currentEvent. Renamed handleMouseDownEventForWidget
  13137. to passWidgetMouseDownEventToWidget. John and I had agreed to this name change before the last commit,
  13138. but I forgot.
  13139. * kwq/KWQKHTMLPart.mm:
  13140. (KWQKHTMLPart::KWQKHTMLPart): Initialize _sendingEventToSubview to false. No need to initialize
  13141. _mouseDownWasInSubframe at all since it's only looked at when _mouseDownView is non-nil.
  13142. (KWQKHTMLPart::keyEvent): Save and restore _currentEvent instead of setting to nil.
  13143. Use stateForCurrentEvent instead of stateForEvent:.
  13144. (KWQKHTMLPart::khtmlMousePressEvent): Name change.
  13145. (KWQKHTMLPart::khtmlMouseDoubleClickEvent): Name change.
  13146. (KWQKHTMLPart::passWidgetMouseDownEventToWidget): Name change. Set _sendingEventToSubview when
  13147. sending event to subview.
  13148. (KWQKHTMLPart::khtmlMouseReleaseEvent): Name change. Set _sendingEventToSubview when sending
  13149. event to subview.
  13150. (KWQKHTMLPart::passSubframeEventToSubframe): Name change. Set _sendingEventToSubview when
  13151. sending event to subview.
  13152. (KWQKHTMLPart::buttonForCurrentEvent): Added. Similar to code I moved here from WebCoreBridge.
  13153. (KWQKHTMLPart::stateForCurrentEvent): Added. Similar to code I moved here from WebCoreBridge.
  13154. (KWQKHTMLPart::mouseDown): Added. Similar to code I moved here from WebCoreBridge, except returns
  13155. and does nothing if _sendingEventToSubview is set.
  13156. (KWQKHTMLPart::mouseDragged): Ditto.
  13157. (KWQKHTMLPart::mouseUp): Ditto.
  13158. (KWQKHTMLPart::mouseMoved): Added. Similar to code I moved here from WebCoreBridge.
  13159. * kwq/WebCoreBridge.mm:
  13160. (-[WebCoreBridge mouseDown:]): Just call _part->mouseDown().
  13161. (-[WebCoreBridge mouseDragged:]): Just call _part->mouseDragged().
  13162. (-[WebCoreBridge mouseUp:]): Just call _part->mouseUp().
  13163. (-[WebCoreBridge mouseMoved:]): Just call _part->mouseMoved().
  13164. * kwq/WebCoreBridgePrivate.h: Removed.
  13165. * WebCore.pbproj/project.pbxproj: Removed WebCoreBridgePrivate.h.
  13166. 2002-12-12 Richard Williamson <rjw@apple.com>
  13167. Fixed 3125583. Don't redraw view under resize bar
  13168. on mouseup.
  13169. Reviewed by gramps.
  13170. * khtml/rendering/render_frames.cpp:
  13171. (RenderFrameSet::userResize):
  13172. 2002-12-11 David Hyatt <hyatt@apple.com>
  13173. Fix hang on monkeyvoodoo.net and on skramkoob.com. The bugs
  13174. are 3105714 and 3045965. Also fix margin collapsing churn
  13175. on thestar by not laying out a second time when collapsing
  13176. margins make you move unless you contain floats.
  13177. Reviewed by: gramps
  13178. * khtml/rendering/bidi.cpp:
  13179. (RenderFlow::findNextLineBreak):
  13180. * khtml/rendering/render_flow.cpp:
  13181. (RenderFlow::layoutBlockChildren);
  13182. 2002-12-11 Richard Williamson <rjw@apple.com>
  13183. Fixed 3124121, 3124716 (and other dupes). Regressions related to b/f crash.
  13184. Reviewed by hyatt.
  13185. * kwq/KWQKHTMLPart.h:
  13186. * kwq/KWQKHTMLPart.mm:
  13187. (KWQKHTMLPart::openURLFromPageCache):
  13188. * kwq/WebCoreBridge.h:
  13189. * kwq/WebCoreBridge.mm:
  13190. (-[WebCoreBridge dealloc]):
  13191. (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]):
  13192. 2002-12-11 Darin Adler <darin@apple.com>
  13193. Reviewed by Richard.
  13194. - fixed 3124263 -- REGRESSION: Crash running development build of PLT
  13195. * kwq/KWQWidget.mm:
  13196. (QWidget::~QWidget): Don't worry about the outer view here, since we can never hit one of those.
  13197. Just pass the view to KWQKHTMLPart::widgetWillReleaseView.
  13198. (QWidget::getOuterView): Re-add the assertion I had removed.
  13199. - fixed 3124837 -- Crash trying to handle weird javascript URL in page address field
  13200. * kwq/KWQKURL.mm: (KURL::decode_string): Made this function return the URL still encoded
  13201. rather than a null string (actually, crashing) when CFURLCreateStringByReplacingPercentEscapes
  13202. rejects the passed-in string. Also updated the FIXME.
  13203. (appendEscapingBadChars): Fixed problem with high-bit-set characters.
  13204. * kwq/KWQString.mm: (QString::setBufferFromCFString): Made this tolerant of NULL.
  13205. 2002-12-11 Darin Adler <darin@apple.com>
  13206. Reviewed by John.
  13207. - fixed handling of mouse events so I could turn the mechanism on all the way
  13208. - fixed anomalies in the red-painting-for-null-view-detection
  13209. - fixed 3123105 -- REGRESSION: Crash in KHTMLView::unscheduleRelayout on exit
  13210. - fixed 3124047 -- REGRESSION: crash in KWQKHTMLPart::handleMouseDownEventForWidget at nwa.com
  13211. * kwq/KWQKHTMLPart.h: Add setCurrentEvent()/currentEvent()/_currentEvent back, because we can
  13212. end up doing a lot of work and processing a lot of events before we get around to handling the
  13213. current event, so [NSApp currentEvent] won't cut it. Also add clearTimers, passSubframeEventToSubframe,
  13214. an overload for handleMouseDownEventForWidget, and _mouseDownWasInSubframe boolean.
  13215. * kwq/KWQKHTMLPart.mm:
  13216. (KWQKHTMLPart::submitForm): Use _currentEvent.
  13217. (KWQKHTMLPart::urlSelected): Use _currentEvent.
  13218. (KWQKHTMLPart::paint): Fixed red-drawing-for-debug code by using KWQPainter instead of going
  13219. directly to the AppKit level.
  13220. (KWQKHTMLPart::keyEvent): Moved the check for null node up a bit, and set _currentEvent.
  13221. (KWQKHTMLPart::handleMouseDownEventForWidget): Break into two pieces, so we can share the
  13222. code with the new passSubframeEventToSubframe. Set _mouseDownWasInSubframe to false
  13223. when setting _mouseDownView. Use getView() instead of getOuterView() since we really don't
  13224. care about the WebView after all. Use _currentEvent. Add a check for nodes that lack a renderer
  13225. to fix the crash at nwa.com above.
  13226. (KWQKHTMLPart::khtmlMouseReleaseEvent): Use _currentEvent.
  13227. (KWQKHTMLPart::clearTimers): Added. Checks for null view, which fixes the crash on exit above.
  13228. (KWQKHTMLPart::passSubframeEventToSubframe): Added. Checks for the categories of events that we
  13229. can pass to subframes, which are mouse down, up, and dragged events, and passes them along.
  13230. This is the main fix that makes subframes work properly.
  13231. * khtml/khtmlview.cpp:
  13232. (KHTMLView::viewportMousePressEvent): Add call to the new passSubframeEventToSubframe.
  13233. (KHTMLView::viewportMouseDoubleClickEvent): Ditto.
  13234. (KHTMLView::viewportMouseMoveEvent): Ditto.
  13235. (KHTMLView::viewportMouseReleaseEvent): Ditto.
  13236. * kwq/WebCoreBridge.mm:
  13237. (-[WebCoreBridge saveDocumentToPageCache]): Call clearTimers on the part now, instead of the document.
  13238. (-[WebCoreBridge mouseUp:]): Call setCurrentEvent.
  13239. (-[WebCoreBridge mouseDown:]): Ditto.
  13240. (-[WebCoreBridge mouseMoved:]): Ditto.
  13241. (-[WebCoreBridge mouseDragged:]): Ditto.
  13242. (-[KWQPageState initWithDocument:URL:windowProperties:locationProperties:]): Call clearTimers on the
  13243. part now, instead of the document.
  13244. - other changes
  13245. * khtml/ecma/kjs_window.lut.h: Let this be regenerated. I think I accidentally checked
  13246. in an obsolete version of this earlier.
  13247. * khtml/html/html_documentimpl.h: Remove clearTimers(). We don't need it here in APPLE_CHANGES.
  13248. * khtml/html/html_documentimpl.cpp: Ditto.
  13249. * khtml/khtmlpart_p.h: Removed unneeded APPLE_CHANGES. We don't use m_frameNameId any more, nor
  13250. do we need m_savingPageState or m_restoringPageState.
  13251. * khtml/khtml_part.cpp: (KHTMLPart::clear): Removed unneeded APPLE_CHANGES, now that we don't
  13252. use m_frameNameId any more.
  13253. * kwq/KWQWidget.mm: (KWQWidget::getOuterView): Tolerate nil for view here, so we can use this from
  13254. the QWidget destructor.
  13255. 2002-12-11 Darin Adler <darin@apple.com>
  13256. Rolled out changes I accidentally checked in last night.
  13257. 2002-12-10 John Sullivan <sullivan@apple.com>
  13258. Fixed more "Alexander"s that were lurking in places I forgot
  13259. to look before.
  13260. Reviewed by Darin
  13261. * Makefile.am:
  13262. "rm -rf $(SYMROOTS)/Safari.app/Frameworks/WebCore.framework"
  13263. 2002-12-10 Maciej Stachowiak <mjs@apple.com>
  13264. Reviewed by Don.
  13265. - really fixed 3123727 - SJ: Viewmaster arm sometimes doesn't animate on
  13266. http://www.pixar.com/howwedoit/
  13267. * kwq/KWQKHTMLPart.mm:
  13268. (KWQKHTMLPart::KWQKHTMLPart): Call Cache::init before
  13269. KHTMLPart::init so we have a loader to connect the signals to.
  13270. 2002-12-10 Maciej Stachowiak <mjs@apple.com>
  13271. Reviewed by Darin.
  13272. - fixed 3123727 - SJ: Viewmaster arm sometimes doesn't animate on
  13273. http://www.pixar.com/howwedoit/
  13274. * khtml/khtml_part.cpp:
  13275. (KHTMLPart::KHTMLPart): Don't call KHTMLPart::init at all...
  13276. * kwq/KWQKHTMLPart.mm:
  13277. (KWQKHTMLPart::KWQKHTMLPart): Call it here instead so that signal
  13278. connections happen properly.
  13279. 2002-12-10 David Hyatt <hyatt@apple.com>
  13280. Fix for 3116996. My hack to make selects ignore fixed CSS
  13281. widths that are smaller than their intrinsic width was not
  13282. good. Remove the hack.
  13283. Reviewed by darin
  13284. * khtml/rendering/render_box.cpp:
  13285. (RenderBox::calcReplacedWidth):
  13286. 2002-12-10 Darin Adler <darin@apple.com>
  13287. Reviewed by John.
  13288. - fixed 3108912 -- onclick handlers not supported on form elements
  13289. We now pass the events back to the NSView here in WebCore; they pass through all the
  13290. machinery in the DOM before getting sent on.
  13291. * kwq/KWQKHTMLPart.h: Add widgetWillReleaseView and handleMouseDownEventForWidget functions,
  13292. overrides for khtmlMousePressEvent, khtmlMouseDoubleClickEvent, khtmlMouseReleaseEvent, and
  13293. a new _mouseDownView field.
  13294. * kwq/KWQKHTMLPart.mm:
  13295. (KWQKHTMLPart::KWQKHTMLPart): Initialize _mouseDownView to nil.
  13296. (KWQKHTMLPart::khtmlMousePressEvent): Call handleMouseDownEventForWidget, but if it returns
  13297. false call through to the base class function.
  13298. (KWQKHTMLPart::khtmlMouseDoubleClickEvent): Ditto.
  13299. (KWQKHTMLPart::handleMouseDownEventForWidget): Do a hit test to find out which view to send
  13300. the mouse down event to, and then send it.
  13301. (KWQKHTMLPart::khtmlMouseReleaseEvent): Send the mouse up event to the view we sent a mouse
  13302. down event to, or call through to the base class otherwise.
  13303. (KWQKHTMLPart::widgetWillReleaseView): Clear out the _mouseDownView field if the view is
  13304. being released by the QWidget that owns it.
  13305. * kwq/KWQWidget.mm:
  13306. (QWidget::~QWidget): Call KWQKHTMLPart::widgetWillReleaseView.
  13307. (QWidget::setView): Call KWQKHTMLPart::widgetWillReleaseView on the old view.
  13308. 2002-12-09 Darin Adler <darin@apple.com>
  13309. Reviewed by Maciej.
  13310. * WebCore.pbproj/project.pbxproj: Bump versions to 0.8 and 35u.
  13311. 2002-12-09 Maciej Stachowiak <mjs@apple.com>
  13312. Reviewed by Dave.
  13313. - fixed 3117734 - fail at document.releaseEvents in js at rollingstone.com
  13314. * khtml/ecma/kjs_html.cpp:
  13315. (KJS::HTMLDocFunction::tryCall): Added no-op implementations of
  13316. captureEvents and releaseEvents.
  13317. (KJS::HTMLDocument::tryGet):
  13318. * khtml/ecma/kjs_html.h:
  13319. * khtml/ecma/kjs_window.cpp:
  13320. (Window::get, WindowFunc::tryCall): Added no-op implementation of
  13321. releaseEvents.
  13322. * khtml/ecma/kjs_window.h:
  13323. * khtml/ecma/kjs_html.lut.h: Regenerated.
  13324. * khtml/ecma/kjs_window.lut.h: Regenerated.
  13325. 2002-12-09 David Hyatt <hyatt@apple.com>
  13326. Fix for the CSS test suite link. Need to make sure inlines
  13327. that are obscured by blocks are properly considered to be
  13328. above the block background.
  13329. * khtml/rendering/render_object.cpp:
  13330. (RenderObject::nodeAtPoint):
  13331. 2002-12-09 Darin Adler <darin@apple.com>
  13332. Reviewed by Trey.
  13333. - made KWQKHTMLPart a subclass of KHTMLPart so we can override virtual functions
  13334. * khtml/khtml_part.h: Get rid of kwq pointer.
  13335. * khtml/khtml_part.cpp:
  13336. (KHTMLPart::init): No need to make a KWQKHTMLPart any more.
  13337. (KHTMLPart::~KHTMLPart): No need to delete a KWQKHTMLPart any more.
  13338. (KHTMLPart::closeURL): KWQKHTMLPart does saveDocumentState in an override now.
  13339. (KHTMLPart::begin): KWQ() instead of ->kwq.
  13340. (KHTMLPart::checkCompleted): KWQ() instead of ->kwq, and ifdef out some unneeded code.
  13341. (KHTMLPart::urlSelected): KWQ() instead of ->kwq.
  13342. (KHTMLPart::requestFrameName): KWQ() instead of ->kwq.
  13343. (KHTMLPart::processObjectRequest): Just call openURL, since we are now KWQKHTMLPart.
  13344. (KHTMLPart::submitForm): KWQ() instead of ->kwq.
  13345. (KHTMLPart::popupMenu): Did a bit more ifdef'int out here.
  13346. * kwq/KWQKHTMLPart.h: Include "khtml_part.h" and remove includes we don't need any more.
  13347. Inherit from KHTMLPart instead of QObject. Remove KHTMLPart parameter from constructor.
  13348. Override openURL and closeURL. Remove part and d pointers. Add KWQ() inline to avoid casting.
  13349. * kwq/KWQKHTMLPart.mm:
  13350. (KHTMLPart::completed): KWQ() instead of ->kwq.
  13351. (KHTMLPart::openURL): Never reached now, since we override.
  13352. (KHTMLPart::setStatusBarText): KWQ() instead of ->kwq.
  13353. (KHTMLPart::started): KWQ() instead of ->kwq.
  13354. (KWQKHTMLPart::KWQKHTMLPart): No need to deal with separate part.
  13355. (KWQKHTMLPart::bridgeForFrameName): KWQ() instead of ->kwq.
  13356. (KWQKHTMLPart::openURL): Add bool return value so we can override the existing openURL.
  13357. (KWQKHTMLPart::slotData): Remove unneeded part->.
  13358. (KWQKHTMLPart::setView): Remove unneeded part->.
  13359. (KWQKHTMLPart::document): Remove unneeded part->.
  13360. (KWQKHTMLPart::renderer): Remove unneeded part->.
  13361. (KWQKHTMLPart::userAgent): Remove unneeded part->.
  13362. (KWQKHTMLPart::nextKeyViewInFrame): KWQ() instead of ->kwq.
  13363. (KWQKHTMLPart::nextKeyViewInFrameHierarchy): KWQ() instead of ->kwq.
  13364. (KWQKHTMLPart::canCachePage): Remove unneeded part->.
  13365. (KWQKHTMLPart::saveWindowProperties): Use this instead of part.
  13366. (KWQKHTMLPart::saveLocationProperties): Use this instead of part.
  13367. (KWQKHTMLPart::restoreWindowProperties): Use this instead of part.
  13368. (KWQKHTMLPart::restoreLocationProperties): Use this instead of part.
  13369. (KWQKHTMLPart::openURLFromPageCache): Remove unneeded part->.
  13370. (KWQKHTMLPart::partForNode): KWQ() instead of ->kwq.
  13371. (KWQKHTMLPart::updatePolicyBaseURL): Remove unneeded part->.
  13372. (KWQKHTMLPart::setPolicyBaseURL): Remove unneeded part->.
  13373. (KWQKHTMLPart::createDummyDocument): Use this instead of part.
  13374. (KWQKHTMLPart::scrollToAnchor): Remove unneeded part->.
  13375. (KWQKHTMLPart::closeURL): Added. Calls saveDocumentState().
  13376. * kwq/WebCoreBridge.h: Use KWQKHTMLPart instead of KHTMLPart.
  13377. * kwq/WebCoreBridge.mm: (-[WebCoreBridge init]): Make a KWQKHTMLPart.
  13378. Use _part instead of _part->kwq in the rest of the file.
  13379. * kwq/KWQSignal.mm: (KWQSignal::disconnect): Add the names of a few signals that are
  13380. disconnected after the KWQKHTMLPart part of the KHTMLPart is destroyed, to avoid noise.
  13381. * khtml/ecma/kjs_navigator.cpp: (Navigator::getValueProperty): KWQ() instead of ->kwq.
  13382. * khtml/ecma/kjs_proxy.cpp: (KJSProxyImpl::initScript): KWQ() instead of ->kwq.
  13383. * khtml/ecma/kjs_window.cpp:
  13384. (Window::scheduleClose): KWQ() instead of ->kwq.
  13385. (WindowFunc::tryCall): KWQ() instead of ->kwq.
  13386. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::setTitle): KWQ() instead of ->kwq.
  13387. * kwq/KWQKHTMLPartBrowserExtension.mm:
  13388. (KHTMLPartBrowserExtension::openURLRequest): KWQ() instead of ->kwq.
  13389. (KHTMLPartBrowserExtension::createNewWindow): KWQ() instead of ->kwq.
  13390. (KHTMLPartBrowserExtension::setIconURL): KWQ() instead of ->kwq.
  13391. (KHTMLPartBrowserExtension::setTypedIconURL): KWQ() instead of ->kwq.
  13392. * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::showApplet): KWQ() instead of ->kwq.
  13393. * kwq/KWQLoader.mm:
  13394. (KWQServeRequest): Cast to KWQKHTMLPart instead of casting to KHTMLPart and doing ->kwq.
  13395. (KWQCheckIfReloading): Ditto.
  13396. (KWQCheckCacheObjectStatus): Ditto.
  13397. * WebCore.pbproj/project.pbxproj: Let Electron punish the wicked.
  13398. 2002-12-09 Richard Williamson <rjw@apple.com>
  13399. Many changes for b/f list.
  13400. 1. Always attempt to cache snap back items.
  13401. 2. Lazily release resources from page cache. This garners gains on the PLT (and presumably iBench) tests, both for uncached.
  13402. 3. Set the page cache size to 4 (+ snap back items). After releasing resources we hover around 28MB footprint. Closing windows releases all resources.
  13403. 4. Turn on the back/forward cache by default. The menu item still allows you to toggle b/f on and off. Useful when conducting speed comparison in the PLT.
  13404. 5. Addition of lazy update to PLT memory statistics to show footprint after lazy release of page cache resources.
  13405. 6. Delayed to leak detector to account for lazy release of resources.
  13406. 7. A change when saving a page to back/forward cache to clear and restore the documents root renderer. Without this fix pages would appear to 'flicker' more when content arrived.
  13407. 8. A change to ensure a layout when restoring a page from the b/f cache. Without this fix scrollbars wouldn't appear correctly.
  13408. 9. A change to ensure that khtmlview layout and paint timers are unscheduled when a page is placed in the b/f cache.
  13409. 10. A fix to decouple of khtmlview from it's part when placed in the b/f cache. This fixed a crash caused by inappropriate deference of the part when a page cache item was released.
  13410. 11. A comment in KHTMLPageCache.h explaining the that our page cache is not the same as the khtml page cache. (Their cache just cached the html source.)
  13411. 12. Reapply styles when loading page from cache. This ensures that visited link get the appropriate style.
  13412. Reviewed by kocienda.
  13413. * khtml/html/html_documentimpl.cpp:
  13414. (HTMLDocumentImpl::clearTimers):
  13415. * khtml/html/html_documentimpl.h:
  13416. * khtml/khtmlview.cpp:
  13417. (KHTMLView::clearPart):
  13418. (KHTMLView::timerEvent):
  13419. * khtml/khtmlview.h:
  13420. * khtml/xml/dom_docimpl.cpp:
  13421. (DocumentImpl::restoreRenderer):
  13422. (DocumentImpl::detach):
  13423. * khtml/xml/dom_docimpl.h:
  13424. * kwq/KWQKHTMLPageCache.h:
  13425. * kwq/WebCoreBridge.mm:
  13426. (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]):
  13427. (-[WebCoreBridge saveDocumentToPageCache]):
  13428. (-[KWQPageState initWithDocument:DOM::URL:windowProperties:KJS::locationProperties:KJS::]):
  13429. (-[KWQPageState dealloc]):
  13430. (-[KWQPageState KJS::]):
  13431. (-[KWQPageState khtml::]):
  13432. 2002-12-08 Trey Matteson <trey@apple.com>
  13433. Fixed 3115903 - exchangehomes.com sometimes has form state poorly restored
  13434. KHTML is much smarter about restoring form state now, taking into account element names and
  13435. types instead of blindly blasting data by simple element ordering. We encode the name
  13436. and type at the front of the "state" strings that previously just held the value of the
  13437. element.
  13438. QString::endsWith() was just plain wrong. Looks like it had some copied code, but was
  13439. never really implemented.
  13440. Reviewed by: Darin Adler
  13441. * WebCore.pbproj/project.pbxproj: PB is hellbent on adding "shouldUseHeadermap = 0;"
  13442. * khtml/html/html_formimpl.cpp:
  13443. (encodedElementName): Utility func to encode an element name, escaping amp and lt
  13444. (HTMLGenericFormElementImpl::state): Build the prefix of an element's state string,
  13445. e.g. ELEMENT_NAME&ELEMENT_TYPE&
  13446. (HTMLGenericFormElementImpl::findMatchingState): Find a matching piece of state out of
  13447. the list of state strings that were previously saved.
  13448. (HTMLFieldSetElementImpl::type): Return our element type.
  13449. (HTMLInputElementImpl::state): Call super as part of building state string.
  13450. (HTMLInputElementImpl::restoreState): Use findMatchingState.
  13451. (HTMLLegendElementImpl::type): Return our element type.
  13452. (HTMLSelectElementImpl::state): Call super as part of building state string.
  13453. (HTMLSelectElementImpl::restoreState): Use findMatchingState.
  13454. (HTMLKeygenElementImpl::type): Return our element type.
  13455. (HTMLOptGroupElementImpl::type): Return our element type.
  13456. (HTMLOptionElementImpl::type): Return our element type.
  13457. (HTMLTextAreaElementImpl::state): Call super as part of building state string.
  13458. (HTMLTextAreaElementImpl::restoreState): Use findMatchingState.
  13459. * khtml/html/html_formimpl.h: type() is moved up to HTMLGenericFormElementImpl
  13460. * khtml/html/htmlparser.cpp:
  13461. (KHTMLParser::insertNode): Pass list of states to restoreState.
  13462. (KHTMLParser::popOneBlock): Pass list of states to restoreState.
  13463. * khtml/xml/dom_docimpl.h: Add method to return the whole list of form states.
  13464. * khtml/xml/dom_nodeimpl.cpp:
  13465. (NodeImpl::restoreState): Nodes receive the whole list of form states to restore from,
  13466. not just a single state that has already been chosen.
  13467. * khtml/xml/dom_nodeimpl.h:
  13468. * kwq/KWQString.mm:
  13469. (QString::endsWith): Walk the search string correctly.
  13470. 2002-12-09 Maciej Stachowiak <mjs@apple.com>
  13471. Reviewed by Darin.
  13472. - fixed 3103954 - preferences not displayed properly at excite.com
  13473. * khtml/html/html_formimpl.cpp:
  13474. (HTMLInputElementImpl::value): If a radio or checkbox input has a
  13475. value, return that rather than something based on the checked
  13476. state. Only fall back on the checked state if there is no value.
  13477. 2002-12-09 Maciej Stachowiak <mjs@apple.com>
  13478. Reviewed by Darin.
  13479. - fixed 3103036 - REGRESSION: scripts dropped from DOM tree;
  13480. javascript text rendered to screen
  13481. The problem here is that we don't allow SCRIPT inside MAP, so the
  13482. script tag gets thrown away in the DOM and the text is added
  13483. directly to the MAP. I can't see a good reason not to allow SCRIPT
  13484. here, so I think the best thing to do is relax the DTD.
  13485. * khtml/html/dtd.cpp:
  13486. (DOM::checkChild): Relax the DTD to allow SCRIPT inside MAP.
  13487. 2002-12-08 David Hyatt <hyatt@apple.com>
  13488. Fix for 3007276, styles do not cascade properly through
  13489. tables. The font was being reset to the default font
  13490. (konq_default) when it needed to be reset to the body's font.
  13491. I added a new font family value called konq_body and the
  13492. style system resolves that value to be the body's font family list.
  13493. Reviewed by: gramps and mjs
  13494. * khtml/css/cssstyleselector.cpp:
  13495. * khtml/html/html_tableimpl.cpp:
  13496. (HTMLTableElementImpl::attach):
  13497. 2002-12-08 David Hyatt <hyatt@apple.com>
  13498. Fix for 3121814. Forms inside table elements (tbody and table
  13499. etc.) can be inline. Just remove the assert and replace it
  13500. with a bailout.
  13501. Fix for 3036479. Tables with specified heights but cells
  13502. with no height (or no cells at all) were not honoring
  13503. the specified height.
  13504. Reviewed by: gramps
  13505. * khtml/rendering/render_table.cpp:
  13506. (RenderTable::RenderTable):
  13507. (RenderTable::startRow):
  13508. (RenderTable::layoutRows):
  13509. (RenderTable::paint):
  13510. (RenderTable::recalcCells):
  13511. 2002-12-08 Maciej Stachowiak <mjs@apple.com>
  13512. Reviewed by Dave.
  13513. - fixed 2981252 - JavaScript inside <!-- --> comments inside <select> is not executed
  13514. This problem is caused by the hack to turn all whitespace into
  13515. spaces inside <select>, so that it's collapsed in the DOM. But
  13516. this is especially bad for scripts inside select tags, so I
  13517. changed the select special case to not apply inside scripts.
  13518. * khtml/html/htmltokenizer.cpp:
  13519. (HTMLTokenizer::addPending):
  13520. (HTMLTokenizer::write):
  13521. 2002-12-08 Darin Adler <darin@apple.com>
  13522. Reviewed by Don and Dave.
  13523. - fixed 3115845 -- bad-pointer crash destroying DOM tree reproducible at a particular site
  13524. All hail libgmalloc, without which this would just be another bug I can't reproduce!
  13525. This memory trasher bug was caused bug calling setChildrenLoaded after casting a node to
  13526. HTMLObjectElementImpl, when the node wasn't always an object element. It turns out that this
  13527. fix was made obsolete a while back when I changed close on renderers to be delivered even for
  13528. cases where the renderer is not created yet at close time.
  13529. * khtml/html/htmlparser.cpp: (KHTMLParser::processCloseTag): Remove the special case for
  13530. </object>. Now that this is fixed another way we don't need this at all.
  13531. * khtml/html/html_objectimpl.h: Remove setChildrenLoaded and m_childrenLoaded.
  13532. * khtml/html/html_objectimpl.cpp: (HTMLObjectElementImpl::HTMLObjectElementImpl):
  13533. Remove code that sets m_childrenLoaded to false.
  13534. (HTMLObjectElementImpl::attach): Remove code that looks at m_childrenLoaded, since we don't
  13535. need it any more (and in fact there's no way to set it any more).
  13536. - fixed 3120578 -- REGRESSION: going to about:blank creates null view
  13537. If no tokens are ever sent to the parser, then we end up without a render tree.
  13538. * khtml/html/htmlparser.h: Add finished() function.
  13539. * khtml/html/htmlparser.cpp: (KHTMLParser::finished): Make an HTML element if the document is still
  13540. empty at this point. This is identical to what KHTMLParser::insertNode does when you insert any kind
  13541. of element other than an HTML element.
  13542. * khtml/html/htmltokenizer.cpp: (HTMLTokenizer::end): Call finished() to let the parser know.
  13543. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::paint): Turn on the "paint red" feature in development builds.
  13544. Null view problems are particularly hard to debug without something like this, and we don't care
  13545. if development builds are ever-so-slightly slower. No change in deployment.
  13546. - fixed 3121527 -- crash in WebCoreBridge frameBorderStyle
  13547. * kwq/WebCoreBridge.mm: (-[WebCoreBridge frameBorderStyle]): Handle case where this is called and
  13548. we don't have a KHTMLView yet.
  13549. - other changes
  13550. * WebCore.pbproj/project.pbxproj: Electron is doing his thing.
  13551. 2002-12-08 David Hyatt <hyatt@apple.com>
  13552. Fix for image bullets. They were neglecting to offset
  13553. themselves by their own width, and were just relying on
  13554. sheer luck (the default margin) to accommodate their
  13555. size. The bug is 3007040 (borkware.com).
  13556. Reviewed by: gramps
  13557. * khtml/rendering/render_list.cpp:
  13558. (RenderListMarker::paintObject):
  13559. 2002-12-07 David Hyatt <hyatt@apple.com>
  13560. This change fixes three bugs in list items.
  13561. (1) Stop implementing markers as floats. This is simply
  13562. wrong. The bullet doesn't affect the height of the line
  13563. box if it's a float, and it can also affect other
  13564. list items that follow the bullet's enclosing list item
  13565. (leading to odd staggered layout of lists).
  13566. (2) Relax the DTD. It was trying to obey strict HTML, which
  13567. is hopeless in the case of lists. Match the behavior of
  13568. both Gecko and the IEs (mac and win32) and allow non-list
  13569. content to be inserted between list items without being
  13570. wrapped in its own list item. Lists were making empty
  13571. items for whitespace in between items, and this stops that
  13572. and makes our lists behave much more like Gecko and the IEs.
  13573. (3) The bullet's min and max width weren't getting set, which
  13574. could lead to confused line width calculations when image
  13575. bullets were used.
  13576. Reviewed by: gramps
  13577. * ChangeLog:
  13578. * khtml/html/dtd.cpp:
  13579. (DOM::checkChild):
  13580. * khtml/rendering/bidi.cpp:
  13581. (RenderFlow::findNextLineBreak):
  13582. * khtml/rendering/render_list.cpp:
  13583. (RenderListItem::setStyle):
  13584. (RenderListMarker::calcMinMaxWidth):
  13585. 2002-12-07 Ken Kocienda <kocienda@apple.com>
  13586. Reviewed by: Maciej
  13587. Fix for this bug:
  13588. Radar 3073988 (URLs with /../ are not resolved before being sent to the host)
  13589. * kwq/KWQKURL.mm:
  13590. (KURL::KURL):
  13591. (copyPathRemovingDots): New function containing code that was pulled out of
  13592. the existing relative URL resolution code.
  13593. (KURL::parse): Call new copyPathRemovingDots function instead of doing same work
  13594. inline.
  13595. 2002-12-06 David Hyatt <hyatt@apple.com>
  13596. Sigh. I forgot to commit the first layer fix (that has already
  13597. been reviewed), so now this is also including that.
  13598. The first layer fix was to deal with the yale.edu crasher.
  13599. It involved making sure that append/remove of render object
  13600. trees drill down into those trees to remove/append corresponding
  13601. layers (instead of just checking the root of the trees).
  13602. The second fix involves making sure that cliprects are right
  13603. for painting backgrounds and borders of clipped objects.
  13604. Fixes benoit's bug.
  13605. Reviewed by: mjs and darin (fix 1), mjs and gramps (fix 2)
  13606. * khtml/rendering/render_container.cpp:
  13607. (RenderContainer::removeChildNode):
  13608. (RenderContainer::appendChildNode):
  13609. (RenderContainer::insertChildNode):
  13610. * khtml/rendering/render_container.h:
  13611. * khtml/rendering/render_layer.cpp:
  13612. (RenderLayer::paint):
  13613. (RenderLayer::constructZTree):
  13614. * khtml/rendering/render_layer.h:
  13615. * khtml/rendering/render_object.cpp:
  13616. (RenderObject::appendLayers):
  13617. (RenderObject::removeLayers):
  13618. (RenderObject::enclosingLayer):
  13619. * khtml/rendering/render_object.h:
  13620. 2002-12-06 Maciej Stachowiak <mjs@apple.com>
  13621. Reviewed by: Darin
  13622. - fixed 3077227 - netflix "top 100" page JavaScript runs so
  13623. slowly, it seems like a hang
  13624. I fixed this by adding hash tables of image and form elements by
  13625. name and id. This allows scans of the whole document to be avoided
  13626. in many cases.
  13627. This also results in a small speedup (~1%) on cvs-js-ibench.
  13628. * khtml/dom/html_document.cpp:
  13629. * khtml/ecma/kjs_html.cpp:
  13630. (KJS::HTMLDocument::hasProperty):
  13631. (KJS::HTMLDocument::tryGet):
  13632. * khtml/html/html_documentimpl.cpp:
  13633. (HTMLDocumentImpl::addNamedImageOrForm):
  13634. (HTMLDocumentImpl::removeNamedImageOrForm):
  13635. (HTMLDocumentImpl::haveNamedImageOrForm):
  13636. * khtml/html/html_documentimpl.h:
  13637. * khtml/html/html_formimpl.cpp:
  13638. (HTMLFormElementImpl::attach):
  13639. (HTMLFormElementImpl::detach):
  13640. (HTMLFormElementImpl::parseAttribute):
  13641. * khtml/html/html_formimpl.h:
  13642. * khtml/html/html_imageimpl.cpp:
  13643. (HTMLImageElementImpl::parseAttribute):
  13644. (HTMLImageElementImpl::attach):
  13645. (HTMLImageElementImpl::detach):
  13646. * khtml/html/html_imageimpl.h:
  13647. 2002-12-06 David Hyatt <hyatt@apple.com>
  13648. Hack to make i-bench paint every fourth page. We can tune
  13649. this # as needed.
  13650. Reviewed by: darin
  13651. * khtml/html/html_documentimpl.cpp:
  13652. (HTMLDocumentImpl::close):
  13653. * khtml/rendering/render_flow.h:
  13654. 2002-12-06 Darin Adler <darin@apple.com>
  13655. Reviewed by Trey.
  13656. Update to latest character-sets document.
  13657. * kwq/character-sets.txt: Got the newest one and merged in our change.
  13658. * kwq/KWQCharsetData.c: Regenerated this. Added just one character set name.
  13659. 2002-12-06 Darin Adler <darin@apple.com>
  13660. Reviewed by Maciej.
  13661. * khtml/ecma/kjs_events.h: Add listenerObjImp() method so we don't have to
  13662. ref/unref for speed-critical uses.
  13663. * khtml/ecma/kjs_window.cpp: (Window::getJSEventListener): Change this
  13664. to work with ObjectImp so we don't ref/unref each listener. This should give
  13665. us some extra speed.
  13666. 2002-12-06 Maciej Stachowiak <mjs@apple.com>
  13667. Reviewed by: Darin Adler
  13668. - made framework embedding work correctly with buildit
  13669. * WebCore.pbproj/project.pbxproj: Give framework a relative
  13670. install path, don't install it the normal way, and copy it
  13671. manually to /AppleInternal/Library/Frameworks if installing. Also
  13672. look for other frameworks in
  13673. ${DSTROOT}/AppleInternal/Library/Frameworks.
  13674. 2002-12-06 Darin Adler <darin@apple.com>
  13675. Reviewed by Trey.
  13676. - fixed 3111903 -- crash in DOM::HTMLDocumentImpl::close
  13677. * khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::close):
  13678. Check for the case where view() is 0 so we don't do a null-dereference.
  13679. Also, remove some of the unneeded redundant isNull/isEmpty checking here.
  13680. 2002-12-05 Darin Adler <darin@apple.com>
  13681. Reviewed by Don.
  13682. - fixed 3116149 -- REGRESSION: assert on invalid encoding trying to show accuweather.com source
  13683. The regression was caused when we updated the View Source window to try to get the encoding right.
  13684. * kwq/WebCoreBridge.mm: (+[WebCoreBridge stringWithData:textEncoding:]):
  13685. Make this function decode the string as Windows Latin-1 if the passed-in encoding is
  13686. invalid or ISO Latin-1, since that's what we always want.
  13687. * kwq/mac-encodings.txt: Add "8859_1" since we have now seen it "in the wild".
  13688. * kwq/KWQCharsetData.c: Check in new version of generated file.
  13689. 2002-12-05 David Hyatt <hyatt@apple.com>
  13690. Fix for javadoc page. It specified an invalid unit, and our
  13691. unit match was on a substring, so it allowed "pts" when it
  13692. shouldn't. This patch adds some code to help handle this
  13693. error case.
  13694. Bug # is 3119830.
  13695. Reviewed by: rjw
  13696. * khtml/css/cssparser.cpp:
  13697. (StyleBaseImpl::parseUnit):
  13698. 2002-12-05 Chris Blumenberg <cblu@apple.com>
  13699. Reviewed by: rjw
  13700. * kwq/WebCoreBridge.h:
  13701. * kwq/WebCoreBridge.mm:
  13702. (-[WebCoreBridge selectedString]): renamed to reflect WebDocument API change
  13703. (-[WebCoreBridge deselectAll]): added
  13704. (-[WebCoreBridge elementAtPoint:]): call selectedString
  13705. 2002-12-05 David Hyatt <hyatt@apple.com>
  13706. Fix relative positioned elements to add in the right offset
  13707. when repainting themselves.
  13708. Reviewed by: darin
  13709. * khtml/rendering/render_box.cpp:
  13710. (RenderBox::repaintRectangle):
  13711. 2002-12-05 Richard Williamson <rjw@apple.com>
  13712. Fixed two issues relating to font sizes. Fixes any page
  13713. that specifies font size in device independent units, i.e.
  13714. www.abcnews.com.
  13715. 1. Change dpi to 72. Mac OS X does appear to assume 72, not 96!
  13716. 2. Don't appply DPI adjustments to font selections, instead
  13717. normalize values to points. OS X takes care of device scaling.
  13718. Reviewed by: gramps
  13719. * khtml/css/css_valueimpl.cpp:
  13720. (CSSPrimitiveValueImpl::computeLengthFloat):
  13721. (CSSPrimitiveValueImpl::computePointFloat):
  13722. * khtml/css/css_valueimpl.h:
  13723. * khtml/css/cssstyleselector.cpp:
  13724. * kwq/KWQPaintDeviceMetrics.mm:
  13725. (QPaintDeviceMetrics::logicalDpiY):
  13726. 2002-12-05 David Hyatt <hyatt@apple.com>
  13727. Make sure that blocks with block children compute their
  13728. minwidth and maxwidth correctly. This fixes 4-5 bugs on my
  13729. list, including the becblog.blogspot.com misrender and
  13730. the wrapping list item on webstandards.org.
  13731. The fix ensures that the margins of a child have been
  13732. computed before they are asked for by the parent in
  13733. calcBlockMinMaxWidth.
  13734. Also fix a bug in collapsing margins that caused the height
  13735. of positioned elements that contained only zero-height children
  13736. to not compute their heights correctly. We now pass tests 2
  13737. and 3 on the collapsing margin tests with this fix.
  13738. Reviewed by: trey
  13739. * khtml/rendering/render_flow.cpp:
  13740. (RenderFlow::layoutBlockChildren):
  13741. (RenderFlow::calcBlockMinMaxWidth):
  13742. 2002-12-05 David Hyatt <hyatt@apple.com>
  13743. Fix for wsj.com orange underline regression. In quirks mode
  13744. only, don't let anchors without hrefs go into :hover. This
  13745. matches MacIE's behavior.
  13746. The bug is 3118643.
  13747. Reviewed by: mjs
  13748. * khtml/rendering/render_object.cpp:
  13749. (RenderObject::setHoverAndActive):
  13750. (RenderObject::nodeAtPoint):
  13751. * khtml/rendering/render_object.h:
  13752. * khtml/rendering/render_text.h:
  13753. 2002-12-04 Maciej Stachowiak <mjs@apple.com>
  13754. Reviewed by: David Hyatt
  13755. - fixed 3118083 - WebCore includes config.h from Labyrinth top level
  13756. * Makefile.am: Regenerate config.h from top-level version, but
  13757. make sure not to alter date if it has not changed.
  13758. * config.h: Added (autogenerated but checked in for benefit of B&I).
  13759. * ForwardingHeaders/config.h: Include WebCore copy rather than
  13760. Labyrinth copy.
  13761. 2002-12-04 Maciej Stachowiak <mjs@apple.com>
  13762. Reviewed by: David Hyatt
  13763. - fixed 3049601 - support the equivalent of
  13764. createcontextualfragment(NS6) or insertAdjacentHTML (IE)
  13765. - fixed 3108065 - DHTML at expedia.com doesn't work-- lack of
  13766. support for createContextualFragment
  13767. - fixed 3114627 - DHTML menus used in Yahoo mail don't work-- lack
  13768. of support for createContextualFragment
  13769. - improvement towards 3052113 - "site menu" part of .mac home page
  13770. editing doesn't work
  13771. * khtml/ecma/kjs_range.h:
  13772. * khtml/ecma/kjs_range.cpp:
  13773. (DOMRangeProtoFunc::tryCall): Added suppor for
  13774. createContextualFragment method.
  13775. * khtml/ecma/kjs_range.lut.h: Regenerated.
  13776. * khtml/dom/dom2_range.h:
  13777. * khtml/dom/dom2_range.cpp:
  13778. (Range::createContextualFragment): Implemented (calls impl).
  13779. * khtml/html/html_elementimpl.h:
  13780. * khtml/html/html_elementimpl.cpp:
  13781. (HTMLElementImpl::createContextualFragment): Factored out of setInnerHTML.
  13782. (HTMLElementImpl::setInnerHTML): Call createContextualFragment to
  13783. make the fragment.
  13784. * khtml/xml/dom2_rangeimpl.h:
  13785. * khtml/xml/dom2_rangeimpl.cpp:
  13786. (RangeImpl::createContextualFragment): Implemented (calls start
  13787. container element).
  13788. 2002-12-04 David Hyatt <hyatt@apple.com>
  13789. Fix assert on compuserve page. <form> under <table> should not
  13790. get a layout() call.
  13791. Reviewed by: gramps
  13792. * khtml/rendering/render_flow.cpp:
  13793. (RenderFlow::layout):
  13794. * khtml/rendering/render_table.cpp:
  13795. (RenderTable::layout):
  13796. 2002-12-04 David Hyatt <hyatt@apple.com>
  13797. Fix shroudedisles.com table misalignment by removing more\
  13798. bogus rules from html4.css.
  13799. Fix forums on macosx.com by implementing support for the align
  13800. attribute on the <P> tag.
  13801. Implement min-width and max-width for block level floating
  13802. and normal flow elements.
  13803. Fix event handling so that :hover notifications get through to
  13804. objects inside floats.
  13805. Reviewed by: rjw
  13806. * khtml/css/html4.css:
  13807. * khtml/html/html_blockimpl.cpp:
  13808. (HTMLParagraphElementImpl::parseAttribute):
  13809. * khtml/html/html_blockimpl.h:
  13810. * khtml/rendering/render_box.cpp:
  13811. (RenderBox::calcWidth):
  13812. (RenderBox::calcWidthUsing):
  13813. (RenderBox::calcHeight):
  13814. * khtml/rendering/render_box.h:
  13815. * khtml/rendering/render_flow.cpp:
  13816. (RenderFlow::layoutBlockChildren):
  13817. (RenderFlow::nodeAtPoint):
  13818. * khtml/rendering/render_flow.h:
  13819. * khtml/rendering/render_frames.cpp:
  13820. (RenderFrameSet::nodeAtPoint):
  13821. * khtml/rendering/render_frames.h:
  13822. * khtml/rendering/render_image.cpp:
  13823. (RenderImage::nodeAtPoint):
  13824. * khtml/rendering/render_image.h:
  13825. * khtml/rendering/render_object.cpp:
  13826. (RenderObject::nodeAtPoint):
  13827. * khtml/rendering/render_object.h:
  13828. * khtml/rendering/render_root.cpp:
  13829. (RenderRoot::calcHeight):
  13830. * khtml/rendering/render_style.cpp:
  13831. (StyleBoxData::StyleBoxData):
  13832. * khtml/rendering/render_text.cpp:
  13833. (RenderText::nodeAtPoint):
  13834. * khtml/rendering/render_text.h:
  13835. 2002-12-04 Darin Adler <darin@apple.com>
  13836. Reviewed by Trey and Maciej.
  13837. - fixed 3117558 -- Assertion failure in KWQKHTMLPart::slotData after typing "amazon.com" twice
  13838. - got rid of the per-part NSEvent in preparation for NSView mouse event handling going through WebCore
  13839. * khtml/khtml_part.h: Added declaration for didOpenURL.
  13840. * khtml/khtml_part.cpp: (KHTMLPart::openURL): Changed name to didOpenURL in the APPLE_CHANGES
  13841. version because calls to openURL from within KHTML need to make the round trip to WebKit.
  13842. Also disabled the "scroll to anchor" part.
  13843. * kwq/KWQKHTMLPart.cpp: (KWQKHTMLPart::isFrameSet): Fix to return false when document is 0.
  13844. * kwq/KWQKHTMLPart.h: Add scrollToAnchor, remove setCurrentEvent and _currentEvent
  13845. * kwq/KWQKHTMLPart.mm:
  13846. (KHTMLPart::openURL): Pass the openURL call to the KWQKHTMLPart.
  13847. (KWQKHTMLPart::KWQKHTMLPart): Don't initialize _currentEvent.
  13848. (KWQKHTMLPart::~KWQKHTMLPart): Don't release _currentEvent.
  13849. (KWQKHTMLPart::submitForm): Pass [NSApp currentEvent] instead of _currentEvent.
  13850. (KWQKHTMLPart::urlSelected): Pass [NSApp currentEvent] instead of _currentEvent.
  13851. (KWQKHTMLPart::scrollToAnchor): Added. Contains the code from the anchor case inside
  13852. KHTMLPart::openURL.
  13853. * kwq/WebCoreBridge.h: Added scrollToAnchorWithURL:.
  13854. * kwq/WebCoreBridge.mm:
  13855. (-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]): Change around so that we
  13856. don't do a bunch of irrelevant stuff in the page cache case. I think we might just want to
  13857. make a separate method for the page cache case.
  13858. (-[WebCoreBridge scrollToAnchorWithURL:]): Added.
  13859. (-[WebCoreBridge mouseUp:]): Simplify check for nil view. Remove calls to setCurrentEvent.
  13860. (-[WebCoreBridge mouseDown:]): Simplify check for nil view. Fix event type constants for
  13861. right mouse button and other mouse button.
  13862. (-[WebCoreBridge mouseMoved:]): Simplify check for nil view.
  13863. (-[WebCoreBridge mouseDragged:]): Simplify check for nil view.
  13864. 2002-12-04 Richard Williamson <rjw@apple.com>
  13865. Cache the NSFont in QFont after doing family based lookup.
  13866. Use that cached font to find a text renderer.
  13867. Reviewed by: Darin
  13868. * kwq/KWQFont.h:
  13869. * kwq/KWQFont.mm:
  13870. (QFont::QFont):
  13871. (QFont::~QFont):
  13872. (QFont::setFamily):
  13873. (QFont::setFirstFamily):
  13874. (QFont::setPixelSize):
  13875. (QFont::setWeight):
  13876. (QFont::setItalic):
  13877. (QFont::getNSFont):
  13878. * kwq/KWQFontMetrics.mm:
  13879. * kwq/KWQPainter.mm:
  13880. (QPainter::_updateRenderer):
  13881. * kwq/WebCoreTextRendererFactory.h:
  13882. * kwq/WebCoreTextRendererFactory.m:
  13883. (-[WebCoreTextRendererFactory rendererWithFont:]):
  13884. 2002-12-04 Richard Williamson <rjw@apple.com>
  13885. Cache the last used text renderer to avoid expensive lookup
  13886. when font hasn't changed.
  13887. Reviewed by: maciej
  13888. * khtml/rendering/render_flow.cpp:
  13889. (RenderFlow::layout):
  13890. * kwq/KWQPainter.h:
  13891. * kwq/KWQPainter.mm:
  13892. (QPainter::_updateRenderer):
  13893. (QPainter::drawText):
  13894. (QPainter::drawUnderlineForText):
  13895. == Rolled over to ChangeLog-2002-12-03 ==