ChangeLog-2006-12-31 2.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038
  1. 2006-12-31 Eric Seidel <eric@webkit.org>
  2. Reviewed by weinig.
  3. Make SVGPathSeg construction take fewer lines of code.
  4. * WebCore.xcodeproj/project.pbxproj:
  5. * ksvg2/svg/SVGPathElement.cpp:
  6. (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
  7. (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
  8. (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
  9. (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
  10. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
  11. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
  12. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
  13. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
  14. (WebCore::SVGPathElement::createSVGPathSegArcAbs):
  15. (WebCore::SVGPathElement::createSVGPathSegArcRel):
  16. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
  17. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
  18. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
  19. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
  20. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
  21. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
  22. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
  23. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
  24. * ksvg2/svg/SVGPathSegArc.cpp:
  25. (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
  26. (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
  27. * ksvg2/svg/SVGPathSegArc.h:
  28. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  29. (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
  30. (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
  31. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  32. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  33. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
  34. (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
  35. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  36. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  37. (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
  38. (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
  39. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  40. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  41. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
  42. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
  43. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  44. * ksvg2/svg/SVGPathSegLineto.cpp:
  45. (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
  46. (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
  47. * ksvg2/svg/SVGPathSegLineto.h:
  48. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  49. (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
  50. (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
  51. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  52. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  53. (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
  54. (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
  55. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  56. * ksvg2/svg/SVGPathSegMoveto.cpp:
  57. (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
  58. (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
  59. * ksvg2/svg/SVGPathSegMoveto.h:
  60. 2006-12-31 Eric Seidel <eric@webkit.org>
  61. Reviewed by weinig.
  62. Implement path length measuring for SVGPathElement::getTotalLength and friends.
  63. http://bugs.webkit.org/show_bug.cgi?id=12033
  64. * WebCore.xcodeproj/project.pbxproj:
  65. * ksvg2/svg/SVGPathElement.cpp:
  66. (WebCore::SVGPathElement::getTotalLength):
  67. (WebCore::SVGPathElement::getPointAtLength):
  68. * platform/graphics/Path.cpp:
  69. (WebCore::pathLengthApplierFunction):
  70. (WebCore::Path::length):
  71. (WebCore::Path::pointAtLength):
  72. * platform/graphics/Path.h:
  73. * platform/graphics/PathTraversalState.cpp: Added.
  74. (WebCore::midPoint):
  75. (WebCore::distanceLine):
  76. (WebCore::QuadraticBezier::QuadraticBezier):
  77. (WebCore::QuadraticBezier::approximateDistance):
  78. (WebCore::QuadraticBezier::split):
  79. (WebCore::CubicBezier::CubicBezier):
  80. (WebCore::CubicBezier::approximateDistance):
  81. (WebCore::CubicBezier::split):
  82. (WebCore::curveLength):
  83. (WebCore::PathTraversalState::PathTraversalState):
  84. (WebCore::PathTraversalState::closeSubpath):
  85. (WebCore::PathTraversalState::moveTo):
  86. (WebCore::PathTraversalState::lineTo):
  87. (WebCore::PathTraversalState::quadraticBezierTo):
  88. (WebCore::PathTraversalState::cubicBezierTo):
  89. * platform/graphics/PathTraversalState.h: Added.
  90. (WebCore::PathTraversalState::):
  91. 2006-12-31 Sam Weinig <sam@webkit.org>
  92. Reviewed by Mitz.
  93. Move the SVGZoomAndPanType enum out of SVGSVGElement and
  94. SVGViewElement and into SVGZoomAndPan where it belongs.
  95. * ksvg2/svg/SVGSVGElement.h:
  96. * ksvg2/svg/SVGViewElement.h:
  97. * ksvg2/svg/SVGZoomAndPan.cpp:
  98. (WebCore::SVGZoomAndPan::SVGZoomAndPan):
  99. (WebCore::SVGZoomAndPan::parseMappedAttribute):
  100. * ksvg2/svg/SVGZoomAndPan.h:
  101. (WebCore::SVGZoomAndPan::):
  102. 2006-12-31 Mitz Pettel <mitz@webkit.org>
  103. Reviewed by Hyatt.
  104. - fix http://bugs.webkit.org/show_bug.cgi?id=9659
  105. Quirksmode: Fixed / Overflow > Positioned objects get hidden when scrolling
  106. Added a 'fixed' flag to ClipRects, indicating that the cached rects are in
  107. viewport coordinates. The flag is set (and scrolling is compensated for) for
  108. fixed objects and their descendants.
  109. * rendering/RenderLayer.cpp:
  110. (WebCore::RenderLayer::calculateClipRects):
  111. (WebCore::RenderLayer::calculateRects):
  112. * rendering/RenderLayer.h:
  113. (WebCore::ClipRects::ClipRects):
  114. (WebCore::ClipRects::fixed):
  115. 2006-12-31 Mitz Pettel <mitz@webkit.org>
  116. Reviewed by Sam.
  117. - fix http://bugs.webkit.org/show_bug.cgi?id=12037
  118. For relatively positioned boxes in an RTL block, 'right' should win over 'left' if both are not 'auto'
  119. Test: fast/block/positioning/relative-overconstrained.html
  120. * rendering/RenderBox.cpp:
  121. (WebCore::RenderBox::relativePositionOffsetX):
  122. 2006-12-30 Rob Buis <buis@kde.org>
  123. Reviewed by Eric.
  124. http://bugs.webkit.org/show_bug.cgi?id=12004
  125. Webkit doesnt handle omitting M at the start of path syntax well
  126. Improve path parsing error handling.
  127. * WebCore.xcodeproj/project.pbxproj:
  128. * ksvg2/svg/SVGLength.cpp:
  129. (WebCore::SVGLength::setValueAsString):
  130. * ksvg2/svg/SVGParserUtilities.cpp:
  131. (WebCore::SVGPathParser::parseSVG):
  132. * ksvg2/svg/SVGParserUtilities.h:
  133. * ksvg2/svg/SVGPathElement.cpp:
  134. (WebCore::SVGPathElement::SVGPathElement):
  135. (WebCore::SVGPathElement::parseMappedAttribute):
  136. * ksvg2/svg/SVGPathElement.h:
  137. * ksvg2/svg/SVGPolyElement.cpp:
  138. (WebCore::SVGPolyElement::parseMappedAttribute):
  139. * ksvg2/svg/SVGPolyElement.h:
  140. * ksvg2/svg/svgpathparser.cpp: Removed.
  141. * ksvg2/svg/svgpathparser.h: Removed.
  142. 2006-12-30 Rémi Zara <remi_zara@mac.com>
  143. Reviewed by Darin.
  144. The marker is used for start, mid and end.
  145. * ksvg2/css/SVGCSSParser.cpp:
  146. (WebCore::CSSParser::parseSVGValue):
  147. 2006-12-30 Rob Buis <buis@kde.org>
  148. Reviewed by weinig.
  149. http://bugs.webkit.org/show_bug.cgi?id=12035
  150. Use SVGParserUtilities in lists of values
  151. Use SVGParserUtilities in some more places.
  152. * ksvg2/svg/SVGAnimationElement.cpp:
  153. (WebCore::SVGAnimationElement::parseMappedAttribute):
  154. (WebCore::SVGAnimationElement::parseClockValue):
  155. (WebCore::SVGAnimationElement::detectAnimationMode):
  156. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  157. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  158. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  159. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  160. (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
  161. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  162. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  163. (WebCore::SVGFESpecularLightingElement::parseMappedAttribute):
  164. * ksvg2/svg/SVGFESpecularLightingElement.h:
  165. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  166. (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
  167. * ksvg2/svg/SVGFETurbulenceElement.h:
  168. * ksvg2/svg/SVGLengthList.cpp:
  169. (WebCore::SVGLengthList::parse):
  170. * ksvg2/svg/SVGNumberList.cpp:
  171. (WebCore::SVGNumberList::parse):
  172. * ksvg2/svg/SVGNumberList.h:
  173. * ksvg2/svg/SVGStringList.cpp:
  174. (WebCore::SVGStringList::reset):
  175. (WebCore::SVGStringList::parse):
  176. * ksvg2/svg/SVGStringList.h:
  177. 2006-12-30 Rob Buis <buis@kde.org>
  178. Reviewed by weinig.
  179. http://bugs.webkit.org/show_bug.cgi?id=12034
  180. Adapt preserveAspectRatio parsing to SVGParserUtilities
  181. Use the new SVGParserUtilities methods to parse prserveAspectRatio attribute.
  182. * ksvg2/svg/SVGParserUtilities.h:
  183. (WebCore::checkString):
  184. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  185. (WebCore::):
  186. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  187. * ksvg2/svg/SVGTransformable.cpp:
  188. 2006-12-30 Mitz Pettel <mitz@webkit.org>
  189. Reviewed by Alexey.
  190. - remove unused member variables m_loadingSheet and m_bAllDataReceived
  191. No test possible (no change to functionality).
  192. * dom/Document.cpp:
  193. (WebCore::Document::Document):
  194. (WebCore::Document::setCSSStyleSheet):
  195. * dom/Document.h:
  196. 2006-12-30 Alexey Proskuryakov <ap@webkit.org>
  197. Reviewed by Mitz.
  198. http://bugs.webkit.org/show_bug.cgi?id=11998
  199. Incorrect serialization of quotation marks in XML attributes.
  200. Test: fast/dom/serialize-attribute.xhtml
  201. * editing/markup.cpp:
  202. (WebCore::escapeTextForMarkup): Added an isAttributeValue parameter, as the quotation mark
  203. only needs to be encoded in attribute values.
  204. (WebCore::startMarkup): Pass appropriate isAttributeValue to escapeTextForMarkup().
  205. 2006-12-29 David Kilzer <ddkilzer@webkit.org>
  206. Build fix for no-svg build.
  207. Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT.
  208. * bindings/js/kjs_css.cpp:
  209. (KJS::toJS):
  210. * loader/CachedImage.cpp:
  211. (WebCore::CachedImage::createImage):
  212. 2006-12-29 Geoffrey Garen <ggaren@apple.com>
  213. Reviewed by Brian Dash... err... Mark Rowe.
  214. More cleanup in preparation for fixing <rdar://problem/4608404>
  215. WebScriptObject's _executionContext lack of ownership policy causes
  216. crashes (e.g., in Dashcode)
  217. The key change here is to RootObject::RootObject().
  218. Layout tests pass.
  219. Renamed "_bindingRoot" => "_bindingRootObject" because "RootObject" is the
  220. type name.
  221. * bindings/objc/WebScriptObject.mm:
  222. (_didExecute): Use Interpreter::globalObject(), since RootObject::rootObjectImp()
  223. no longer exists.
  224. * page/mac/FrameMac.mm:
  225. (WebCore::FrameMac::bindingRootObject): Use the new RootObject constructor.
  226. Stop lying about who deletes _bindingRoot.
  227. (WebCore::FrameMac::cleanupPluginObjects): => "destroy". Fixed a bug where
  228. the RootObject would only free its own memory if there were a ReferencesSet*
  229. associated with it.
  230. * page/mac/WebCoreFrameBridge.mm:
  231. (-[WebCoreFrameBridge rootObjectForView:]): Use new constructor. Changed
  232. misleading comment.
  233. 2006-12-29 Rob Buis <buis@kde.org>
  234. Reviewed by Eric.
  235. http://bugs.webkit.org/show_bug.cgi?id=12007
  236. SVGColor::setRGBColor color creates/deletes many strings, slowing down parsing
  237. Refactor code so svg reuses cssparser methods. Also make
  238. SVGColor and SVGPaint more efficient by avoiding using
  239. setRGBColor internally.
  240. * bindings/js/kjs_css.cpp:
  241. (KJS::toJS):
  242. * css/cssparser.cpp:
  243. (WebCore::CSSParser::parseColor):
  244. (WebCore::CSSParser::parseColorFromValue):
  245. (WebCore::CSSParser::parseShadow):
  246. * css/cssparser.h:
  247. * ksvg2/css/SVGCSSParser.cpp:
  248. (WebCore::CSSParser::parseSVGPaint):
  249. (WebCore::CSSParser::parseSVGColor):
  250. * ksvg2/svg/SVGColor.cpp:
  251. (WebCore::SVGColor::SVGColor):
  252. (WebCore::SVGColor::setRGBColor):
  253. (WebCore::SVGColor::cssText):
  254. * ksvg2/svg/SVGColor.h:
  255. * ksvg2/svg/SVGPaint.cpp:
  256. (WebCore::SVGPaint::SVGPaint):
  257. * ksvg2/svg/SVGPaint.h:
  258. * platform/graphics/Color.cpp:
  259. (WebCore::Color::parseHexColor):
  260. * platform/graphics/Color.h:
  261. 2006-12-29 Rob Buis <buis@kde.org>
  262. Reviewed by weinig.
  263. http://bugs.webkit.org/show_bug.cgi?id=12022
  264. typo in SVGTransformable.cpp introduce in r18440
  265. Use the helper method proposed by Eric.
  266. * ksvg2/svg/SVGTransformable.cpp:
  267. (WebCore::checkString):
  268. (WebCore::):
  269. (WebCore::SVGTransformable::parseTransformAttribute):
  270. 2006-12-29 Rob Buis <buis@kde.org>
  271. Reviewed by Eric.
  272. http://bugs.webkit.org/show_bug.cgi?id=12028
  273. Adapt viewBox parsing to SVGParserUtilities
  274. Use the new parseNumber and add tests for viewBox parsing.
  275. * ksvg2/svg/SVGFitToViewBox.cpp:
  276. (WebCore::SVGFitToViewBox::parseViewBox):
  277. 2006-12-29 Geoffrey Garen <ggaren@apple.com>
  278. Build fix: SVGImage only works on Mac.
  279. * loader/CachedImage.cpp:
  280. (WebCore::CachedImage::createImage):
  281. 2006-12-29 Sam Weinig <sam@webkit.org>
  282. Reviewed by Geoff.
  283. Patch for http://bugs.webkit.org/show_bug.cgi?id=12018
  284. Cleanup of CSSRule and its subclasses
  285. - Make CSSRule::type() virtual instead of using a member variable.
  286. - General style cleanup.
  287. * WebCore.xcodeproj/project.pbxproj:
  288. * css/CSSCharsetRule.cpp:
  289. (WebCore::CSSCharsetRule::CSSCharsetRule):
  290. * css/CSSCharsetRule.h:
  291. (WebCore::CSSCharsetRule::isCharsetRule):
  292. (WebCore::CSSCharsetRule::type):
  293. * css/CSSFontFaceRule.cpp:
  294. (WebCore::CSSFontFaceRule::CSSFontFaceRule):
  295. (WebCore::CSSFontFaceRule::cssText):
  296. * css/CSSFontFaceRule.h:
  297. (WebCore::CSSFontFaceRule::isFontFaceRule):
  298. (WebCore::CSSFontFaceRule::type):
  299. * css/CSSImportRule.cpp:
  300. (WebCore::CSSImportRule::CSSImportRule):
  301. (WebCore::CSSImportRule::setCSSStyleSheet):
  302. (WebCore::CSSImportRule::insertedIntoParent):
  303. * css/CSSImportRule.h:
  304. (WebCore::CSSImportRule::isImportRule):
  305. (WebCore::CSSImportRule::type):
  306. * css/CSSMediaRule.cpp:
  307. (WebCore::CSSMediaRule::CSSMediaRule):
  308. (WebCore::CSSMediaRule::insertRule):
  309. (WebCore::CSSMediaRule::deleteRule):
  310. (WebCore::CSSMediaRule::cssText):
  311. * css/CSSMediaRule.h:
  312. (WebCore::CSSMediaRule::isMediaRule):
  313. (WebCore::CSSMediaRule::type):
  314. * css/CSSPageRule.cpp:
  315. (WebCore::CSSPageRule::CSSPageRule):
  316. (WebCore::CSSPageRule::selectorText):
  317. (WebCore::CSSPageRule::setSelectorText):
  318. (WebCore::CSSPageRule::cssText):
  319. * css/CSSPageRule.h:
  320. (WebCore::CSSPageRule::style):
  321. (WebCore::CSSPageRule::type):
  322. * css/CSSRule.cpp:
  323. (WebCore::CSSRule::cssText):
  324. (WebCore::CSSRule::setCssText):
  325. * css/CSSRule.h:
  326. (WebCore::CSSRule::):
  327. (WebCore::CSSRule::CSSRule):
  328. * css/CSSStyleRule.cpp:
  329. (WebCore::CSSStyleRule::CSSStyleRule):
  330. (WebCore::CSSStyleRule::setSelectorText):
  331. (WebCore::CSSStyleRule::cssText):
  332. (WebCore::CSSStyleRule::parseString):
  333. * css/CSSStyleRule.h:
  334. (WebCore::CSSStyleRule::isStyleRule):
  335. (WebCore::CSSStyleRule::style):
  336. (WebCore::CSSStyleRule::type):
  337. * css/CSSUnknownRule.h:
  338. (WebCore::CSSUnknownRule::CSSUnknownRule):
  339. (WebCore::CSSUnknownRule::type):
  340. 2006-12-29 Eric Seidel <eric@webkit.org>
  341. Reviewed by ap.
  342. * platform/graphics/svg/SVGImage.cpp:
  343. (WebCore::SVGImage::size): explicitly cast to integers to prevent compile error
  344. 2006-12-29 George Staikos <staikos@kde.org>
  345. Reviewed by Sam.
  346. Don't crash on sites such as www.apple.com. Painter was ended incorrectly among other issues.
  347. * platform/graphics/qt/GraphicsContextQt.cpp:
  348. (WebCore::TransparencyLayer::TransparencyLayer):
  349. (WebCore::TransparencyLayer::cleanup):
  350. (WebCore::GraphicsContext::endTransparencyLayer):
  351. * platform/qt/ScrollViewCanvasQt.cpp:
  352. (WebCore::ScrollViewCanvasQt::paintEvent):
  353. 2006-12-29 Nikolas Zimmermann <zimmermann@kde.org>
  354. Build fixed, not reviewed. Noticed by Daniel Molkentin.
  355. * platform/graphics/svg/SVGImage.h: s/WTF/wtf/ in include.
  356. 2006-12-29 Eric Seidel <eric@webkit.org>
  357. Reviewed by olliej.
  358. * platform/graphics/svg/SVGImageEmptyClients.h:
  359. (WebCore::SVGEmptyCromeClient::scaleFactor): build fix, use 1.f instead of 1f
  360. 2006-12-29 Eric Seidel <eric@webkit.org>
  361. Reviewed by hyatt.
  362. New tests:
  363. * fast/images/svg-as-image.html
  364. * fast/images/svg-as-background.html
  365. * fast/images/svg-as-tiled-background.html
  366. Implement basic SVGImage support.
  367. http://bugs.webkit.org/show_bug.cgi?id=5971
  368. This implementation depends on (rather ugly) stub Page and Frame clients in SVGImageEmptyClients.h
  369. * WebCore.xcodeproj/project.pbxproj: add SVGImage.*
  370. * ksvg2/svg/SVGFEImageElement.cpp:
  371. (WebCore::SVGFEImageElement::parseMappedAttribute): ignore fragment urls
  372. * loader/CachedImage.cpp:
  373. (WebCore::CachedImage::createImage):
  374. * platform/graphics/Image.h: made setData virtual
  375. * platform/graphics/cg/PDFDocumentImage.cpp:
  376. (WebCore::PDFDocumentImage::drawTiled): stub method
  377. * platform/graphics/cg/PDFDocumentImage.h:
  378. * platform/graphics/svg/SVGImage.cpp: Added.
  379. (WebCore::SVGImage::SVGImage):
  380. (WebCore::SVGImage::~SVGImage):
  381. (WebCore::SVGImage::size):
  382. (WebCore::SVGImage::draw):
  383. (WebCore::SVGImage::drawTiled): stub method
  384. (WebCore::SVGImage::setData):
  385. * platform/graphics/svg/SVGImage.h: Added.
  386. (WebCore::SVGImage::frameAtIndex):
  387. * platform/graphics/svg/SVGImageEmptyClients.h: Added.
  388. (WebCore::SVGEmptyCromeClient::~SVGEmptyCromeClient):
  389. (WebCore::SVGEmptyCromeClient::chromeDestroyed):
  390. (WebCore::SVGEmptyCromeClient::setWindowRect):
  391. (WebCore::SVGEmptyCromeClient::windowRect):
  392. (WebCore::SVGEmptyCromeClient::pageRect):
  393. (WebCore::SVGEmptyCromeClient::scaleFactor):
  394. (WebCore::SVGEmptyCromeClient::focus):
  395. (WebCore::SVGEmptyCromeClient::unfocus):
  396. (WebCore::SVGEmptyCromeClient::createWindow):
  397. (WebCore::SVGEmptyCromeClient::createModalDialog):
  398. (WebCore::SVGEmptyCromeClient::show):
  399. (WebCore::SVGEmptyCromeClient::canRunModal):
  400. (WebCore::SVGEmptyCromeClient::runModal):
  401. (WebCore::SVGEmptyCromeClient::setToolbarsVisible):
  402. (WebCore::SVGEmptyCromeClient::toolbarsVisible):
  403. (WebCore::SVGEmptyCromeClient::setStatusbarVisible):
  404. (WebCore::SVGEmptyCromeClient::statusbarVisible):
  405. (WebCore::SVGEmptyCromeClient::setScrollbarsVisible):
  406. (WebCore::SVGEmptyCromeClient::scrollbarsVisible):
  407. (WebCore::SVGEmptyCromeClient::setMenubarVisible):
  408. (WebCore::SVGEmptyCromeClient::menubarVisible):
  409. (WebCore::SVGEmptyCromeClient::setResizable):
  410. (WebCore::SVGEmptyCromeClient::addMessageToConsole):
  411. (WebCore::SVGEmptyCromeClient::canRunBeforeUnloadConfirmPanel):
  412. (WebCore::SVGEmptyCromeClient::runBeforeUnloadConfirmPanel):
  413. (WebCore::SVGEmptyCromeClient::closeWindowSoon):
  414. (WebCore::SVGEmptyFrameLoaderClient::~SVGEmptyFrameLoaderClient):
  415. (WebCore::SVGEmptyFrameLoaderClient::frameLoaderDestroyed):
  416. (WebCore::SVGEmptyFrameLoaderClient::hasWebView):
  417. (WebCore::SVGEmptyFrameLoaderClient::hasFrameView):
  418. (WebCore::SVGEmptyFrameLoaderClient::hasBackForwardList):
  419. (WebCore::SVGEmptyFrameLoaderClient::resetBackForwardList):
  420. (WebCore::SVGEmptyFrameLoaderClient::provisionalItemIsTarget):
  421. (WebCore::SVGEmptyFrameLoaderClient::loadProvisionalItemFromPageCache):
  422. (WebCore::SVGEmptyFrameLoaderClient::invalidateCurrentItemPageCache):
  423. (WebCore::SVGEmptyFrameLoaderClient::privateBrowsingEnabled):
  424. (WebCore::SVGEmptyFrameLoaderClient::makeDocumentView):
  425. (WebCore::SVGEmptyFrameLoaderClient::makeRepresentation):
  426. (WebCore::SVGEmptyFrameLoaderClient::setDocumentViewFromPageCache):
  427. (WebCore::SVGEmptyFrameLoaderClient::forceLayout):
  428. (WebCore::SVGEmptyFrameLoaderClient::forceLayoutForNonHTML):
  429. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForCommit):
  430. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForBackForwardNavigation):
  431. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForReload):
  432. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForStandardLoad):
  433. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForInternalLoad):
  434. (WebCore::SVGEmptyFrameLoaderClient::updateHistoryAfterClientRedirect):
  435. (WebCore::SVGEmptyFrameLoaderClient::setCopiesOnScroll):
  436. (WebCore::SVGEmptyFrameLoaderClient::tokenForLoadErrorReset):
  437. (WebCore::SVGEmptyFrameLoaderClient::resetAfterLoadError):
  438. (WebCore::SVGEmptyFrameLoaderClient::doNotResetAfterLoadError):
  439. (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent1):
  440. (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent2):
  441. (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent3):
  442. (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent4):
  443. (WebCore::SVGEmptyFrameLoaderClient::loadedFromPageCache):
  444. (WebCore::SVGEmptyFrameLoaderClient::download):
  445. (WebCore::SVGEmptyFrameLoaderClient::dispatchIdentifierForInitialRequest):
  446. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
  447. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
  448. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
  449. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse):
  450. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveContentLength):
  451. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoading):
  452. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoading):
  453. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
  454. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidHandleOnloadEvents):
  455. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
  456. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelClientRedirect):
  457. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillPerformClientRedirect):
  458. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidChangeLocationWithinPage):
  459. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillClose):
  460. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveIcon):
  461. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidStartProvisionalLoad):
  462. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveTitle):
  463. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCommitLoad):
  464. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailProvisionalLoad):
  465. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoad):
  466. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoad):
  467. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFirstLayout):
  468. (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
  469. (WebCore::SVGEmptyFrameLoaderClient::dispatchShow):
  470. (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForMIMEType):
  471. (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
  472. (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
  473. (WebCore::SVGEmptyFrameLoaderClient::cancelPolicyCheck):
  474. (WebCore::SVGEmptyFrameLoaderClient::dispatchUnableToImplementPolicy):
  475. (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSubmitForm):
  476. (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadMainResource):
  477. (WebCore::SVGEmptyFrameLoaderClient::clearLoadingFromPageCache):
  478. (WebCore::SVGEmptyFrameLoaderClient::isLoadingFromPageCache):
  479. (WebCore::SVGEmptyFrameLoaderClient::revertToProvisionalState):
  480. (WebCore::SVGEmptyFrameLoaderClient::setMainDocumentError):
  481. (WebCore::SVGEmptyFrameLoaderClient::clearUnarchivingState):
  482. (WebCore::SVGEmptyFrameLoaderClient::progressStarted):
  483. (WebCore::SVGEmptyFrameLoaderClient::progressCompleted):
  484. (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
  485. (WebCore::SVGEmptyFrameLoaderClient::completeProgress):
  486. (WebCore::SVGEmptyFrameLoaderClient::setMainFrameDocumentReady):
  487. (WebCore::SVGEmptyFrameLoaderClient::startDownload):
  488. (WebCore::SVGEmptyFrameLoaderClient::willChangeTitle):
  489. (WebCore::SVGEmptyFrameLoaderClient::didChangeTitle):
  490. (WebCore::SVGEmptyFrameLoaderClient::committedLoad):
  491. (WebCore::SVGEmptyFrameLoaderClient::finishedLoading):
  492. (WebCore::SVGEmptyFrameLoaderClient::finalSetupForReplace):
  493. (WebCore::SVGEmptyFrameLoaderClient::cancelledError):
  494. (WebCore::SVGEmptyFrameLoaderClient::cannotShowURLError):
  495. (WebCore::SVGEmptyFrameLoaderClient::interruptForPolicyChangeError):
  496. (WebCore::SVGEmptyFrameLoaderClient::cannotShowMIMETypeError):
  497. (WebCore::SVGEmptyFrameLoaderClient::fileDoesNotExistError):
  498. (WebCore::SVGEmptyFrameLoaderClient::shouldFallBack):
  499. (WebCore::SVGEmptyFrameLoaderClient::setDefersLoading):
  500. (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):
  501. (WebCore::SVGEmptyFrameLoaderClient::isArchiveLoadPending):
  502. (WebCore::SVGEmptyFrameLoaderClient::cancelPendingArchiveLoad):
  503. (WebCore::SVGEmptyFrameLoaderClient::clearArchivedResources):
  504. (WebCore::SVGEmptyFrameLoaderClient::canHandleRequest):
  505. (WebCore::SVGEmptyFrameLoaderClient::canShowMIMEType):
  506. (WebCore::SVGEmptyFrameLoaderClient::representationExistsForURLScheme):
  507. (WebCore::SVGEmptyFrameLoaderClient::generatedMIMETypeForURLScheme):
  508. (WebCore::SVGEmptyFrameLoaderClient::frameLoadCompleted):
  509. (WebCore::SVGEmptyFrameLoaderClient::restoreScrollPositionAndViewState):
  510. (WebCore::SVGEmptyFrameLoaderClient::provisionalLoadStarted):
  511. (WebCore::SVGEmptyFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
  512. (WebCore::SVGEmptyFrameLoaderClient::addHistoryItemForFragmentScroll):
  513. (WebCore::SVGEmptyFrameLoaderClient::didFinishLoad):
  514. (WebCore::SVGEmptyFrameLoaderClient::prepareForDataSourceReplacement):
  515. (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
  516. (WebCore::SVGEmptyFrameLoaderClient::setTitle):
  517. (WebCore::SVGEmptyFrameLoaderClient::userAgent):
  518. (WebCore::SVGEmptyEditorClient::~SVGEmptyEditorClient):
  519. (WebCore::SVGEmptyEditorClient::pageDestroyed):
  520. (WebCore::SVGEmptyEditorClient::shouldDeleteRange):
  521. (WebCore::SVGEmptyEditorClient::shouldShowDeleteInterface):
  522. (WebCore::SVGEmptyEditorClient::smartInsertDeleteEnabled):
  523. (WebCore::SVGEmptyEditorClient::isContinuousSpellCheckingEnabled):
  524. (WebCore::SVGEmptyEditorClient::toggleContinuousSpellChecking):
  525. (WebCore::SVGEmptyEditorClient::isGrammarCheckingEnabled):
  526. (WebCore::SVGEmptyEditorClient::toggleGrammarChecking):
  527. (WebCore::SVGEmptyEditorClient::spellCheckerDocumentTag):
  528. (WebCore::SVGEmptyEditorClient::selectWordBeforeMenuEvent):
  529. (WebCore::SVGEmptyEditorClient::isEditable):
  530. (WebCore::SVGEmptyEditorClient::shouldBeginEditing):
  531. (WebCore::SVGEmptyEditorClient::shouldEndEditing):
  532. (WebCore::SVGEmptyEditorClient::shouldInsertNode):
  533. (WebCore::SVGEmptyEditorClient::shouldInsertText):
  534. (WebCore::SVGEmptyEditorClient::shouldApplyStyle):
  535. (WebCore::SVGEmptyEditorClient::didBeginEditing):
  536. (WebCore::SVGEmptyEditorClient::respondToChangedContents):
  537. (WebCore::SVGEmptyEditorClient::didEndEditing):
  538. (WebCore::SVGEmptyEditorClient::registerCommandForUndo):
  539. (WebCore::SVGEmptyEditorClient::registerCommandForRedo):
  540. (WebCore::SVGEmptyEditorClient::clearUndoRedoOperations):
  541. (WebCore::SVGEmptyEditorClient::canUndo):
  542. (WebCore::SVGEmptyEditorClient::canRedo):
  543. (WebCore::SVGEmptyEditorClient::undo):
  544. (WebCore::SVGEmptyEditorClient::redo):
  545. (WebCore::SVGEmptyEditorClient::dataForArchivedSelection):
  546. (WebCore::SVGEmptyEditorClient::userVisibleString):
  547. (WebCore::SVGEmptyContextMenuClient::~SVGEmptyContextMenuClient):
  548. (WebCore::SVGEmptyContextMenuClient::contextMenuDestroyed):
  549. (WebCore::SVGEmptyContextMenuClient::addCustomContextMenuItems):
  550. (WebCore::SVGEmptyContextMenuClient::contextMenuItemSelected):
  551. (WebCore::SVGEmptyContextMenuClient::downloadURL):
  552. (WebCore::SVGEmptyContextMenuClient::copyImageToClipboard):
  553. (WebCore::SVGEmptyContextMenuClient::lookUpInDictionary):
  554. (WebCore::SVGEmptyContextMenuClient::speak):
  555. (WebCore::SVGEmptyContextMenuClient::stopSpeaking):
  556. (WebCore::SVGEmptyContextMenuClient::searchWithSpotlight):
  557. 2006-12-29 George Staikos <staikos@kde.org>
  558. Reviewed by Olliej.
  559. Make redirects work properly. Sites will thank us for this. :-)
  560. * platform/network/qt/ResourceHandleManagerQt.cpp:
  561. (WebCore::ResourceHandleManager::receivedResponse):
  562. 2006-12-28 George Staikos <staikos@kde.org>
  563. Reviewed by Olliej.
  564. * loader/CachedImage.cpp: build for Qt
  565. 2006-12-28 Daniel Molkentin <molkentin@kde.org>
  566. Reviewed by Eric Seidel <eric@webkit.org>
  567. - Fix font sizes
  568. - Make Qt platform build again:
  569. - Adjust Qt platform to the Image class split.
  570. - Introduce BitmapImage class
  571. - add stub PDFDocumentImage class
  572. * WebCore.pro:
  573. * editing/qt/EditorQt.cpp:
  574. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  575. * loader/qt/FrameLoaderQt.cpp:
  576. (WebCore::FrameLoader::partClearedInBegin):
  577. * platform/graphics/qt/ImageQt.cpp:
  578. (WebCore::BitmapImage::initPlatformData):
  579. (WebCore::BitmapImage::invalidatePlatformData):
  580. (WebCore::Image::loadPlatformResource):
  581. (WebCore::BitmapImage::draw):
  582. (WebCore::BitmapImage::drawTiled):
  583. (WebCore::BitmapImage::checkForSolidColor):
  584. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  585. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  586. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  587. (WebCore::SVGPaintServerLinearGradient::setup):
  588. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
  589. (WebCore::SVGPaintServerPattern::setup):
  590. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  591. (WebCore::SVGPaintServer::teardown):
  592. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  593. (WebCore::SVGPaintServerRadialGradient::setup):
  594. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
  595. (WebCore::SVGPaintServerSolid::setup):
  596. * platform/qt/FrameQt.cpp:
  597. (WebCore::FrameQt::FrameQt):
  598. (WebCore::FrameQt::bindingRootObject):
  599. 2006-12-28 Geoffrey Garen <ggaren@apple.com>
  600. Reviewed by Brady Eidson.
  601. Some cleanup in preparation for fixing <rdar://problem/4608404>
  602. WebScriptObject's _executionContext lack of ownership policy causes
  603. crashes (e.g., in Dashcode)
  604. Layout tests pass.
  605. Renamed "root" | "execContext" | "executionContext" => rootObject, because
  606. that's the object's (admittedly vague) type name.
  607. * bindings/js/kjs_binding.cpp:
  608. * bindings/js/kjs_binding.h: Removed createLanguageInstanceForValue
  609. and createObjcInstanceForValue because their only purpose was to confuse you.
  610. * bindings/objc/DOMInternal.h: Moved declaration of createDOMWrapper here.
  611. createDOMWrapper is the new name for createObjcInstanceForValue.
  612. * bindings/objc/DOMInternal.mm: Renamed Interpreter::createObjcInstanceForValue
  613. to createDOMWrapper because creating DOM wrappers has nothing to do with the interpreter,
  614. and everything to do with the DOM. Renamed value to object because it is one.
  615. Removed newObj nil check that is unnecessary in ObjC.
  616. * bindings/objc/WebScriptObject.mm: Replaced call to createLanguageInstanceForValue
  617. with explicit code to do the same thing it would have done: (1) try to create
  618. a DOM wrapper; (2) if the object is not a wrappable DOM object, create a
  619. vanilla WebScriptObject for it instead.
  620. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  621. Reviewed by Darin.
  622. - fix http://bugs.webkit.org/show_bug.cgi?id=11729
  623. REGRESSION: Crash closing page with frames after selection
  624. * loader/FrameLoader.cpp:
  625. (WebCore::FrameLoader::detachFromParent): Added call to pageDestroyed().
  626. * page/FrameTree.cpp:
  627. (WebCore::FrameTree::appendChild): Added an assertion that the parent and
  628. the child are in the same page.
  629. (WebCore::FrameTree::removeChild): Added calls to decrementFrameCount() and pageDestroyed().
  630. 2006-12-28 David Kilzer <ddkilzer@webkit.org>
  631. Reviewed by Mitz.
  632. - fix http://bugs.webkit.org/show_bug.cgi?id=12016
  633. REGRESSION: fast/text/stroking-decorations.html test fails with bus error in no-svg build
  634. No test cases (no change in functionality).
  635. * platform/TextStream.cpp: Properly initialize presicionFormats.
  636. * rendering/RenderTreeAsText.cpp:
  637. (WebCore::externalRepresentation): HTML tests now print out the stroke width, which is a float,
  638. so the precision needs to be set.
  639. 2006-12-28 Eric Seidel <eric@webkit.org>
  640. Reviewed by rwlbuis.
  641. Fix for memory smasher when drawing markers.
  642. http://bugs.webkit.org/show_bug.cgi?id=12015
  643. No test case possible (crashes for some folks but not others, not even under --guard)
  644. * platform/graphics/cg/PathCG.cpp:
  645. (WebCore::CGPathApplierToPathApplier): array was too small
  646. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  647. Reviewed by Darin.
  648. - fix http://bugs.webkit.org/show_bug.cgi?id=11124
  649. REGRESSION (r14297): No drag image for partially-selected complex text
  650. Test: fast/text/atsui-partial-selection.html
  651. * platform/Font.h: Changed comment.
  652. * platform/mac/FontMac.mm:
  653. (WebCore::Font::drawComplexText): Corrected the run length calculation.
  654. Changed the ATSUI layout parameters to know about the entire text run, rather
  655. than just the range we are drawing. ATSUI measures the characters before
  656. the range and positions the range accordingly.
  657. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  658. Reviewed by Darin.
  659. - fix http://bugs.webkit.org/show_bug.cgi?id=9202
  660. CSS3: border-radius not completely implemented, testcase hangs webkit
  661. Test: fast/borders/borderRadiusAllStylesAllCorners.html
  662. * rendering/RenderObject.cpp:
  663. (WebCore::RenderObject::paintBorder): Changed to not draw "arcs" at straight
  664. corners and to paint half-corners only where the styles mismatch.
  665. Corrected the condition for matching styles: ridge, groove, inset and outset
  666. all mismatch in the upper right and lower left corners and match in the other
  667. two. The incorrect condition for a match was (almost) unnoticeable because of
  668. the painting of both half-corners on each side that had at least one mismatch.
  669. 2006-12-28 Alexey Proskuryakov <ap@webkit.org>
  670. Reverting the previous checkin, as it caused an assertion in layout tests.
  671. * rendering/RenderTableCell.cpp:
  672. (WebCore::RenderTableCell::borderLeft):
  673. (WebCore::RenderTableCell::borderRight):
  674. (WebCore::RenderTableCell::borderTop):
  675. (WebCore::RenderTableCell::borderBottom):
  676. * rendering/RenderTableCell.h:
  677. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  678. Reviewed by Darin.
  679. - fix http://bugs.webkit.org/show_bug.cgi?id=11359
  680. Incomplete repaint of table cell's collapsed border when changing only the cell
  681. Test: fast/repaint/table-cell-collapsed-border.html
  682. * rendering/RenderTableCell.cpp:
  683. (WebCore::RenderTableCell::getAbsoluteRepaintRect): Overloaded to add the
  684. outer half of any collapsed borders. This function checks the cell's borders'
  685. widths but also the widths of the adjoining cells' borders, since they can
  686. contribute to the length of this cell's borders perpendicular to them, making
  687. such a border overflow the cell in both dimensions.
  688. (WebCore::RenderTableCell::borderLeft): Split the collapsing borders case off to
  689. borderHalfLeft().
  690. (WebCore::RenderTableCell::borderRight): Ditto.
  691. (WebCore::RenderTableCell::borderTop): Ditto.
  692. (WebCore::RenderTableCell::borderBottom): Ditto.
  693. (WebCore::RenderTableCell::borderHalfLeft): Added. Takes an 'outer' boolean
  694. parameter. When true, this function returns the width of the part of the border
  695. that is outside the cell (different from the inner width when the total width is odd).
  696. (WebCore::RenderTableCell::borderHalfRight): Ditto.
  697. (WebCore::RenderTableCell::borderHalfTop): Ditto.
  698. (WebCore::RenderTableCell::borderHalfBottom): Ditto.
  699. * rendering/RenderTableCell.h:
  700. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  701. Reviewed by Alexey.
  702. - fix http://bugs.webkit.org/show_bug.cgi?id=11671
  703. REGRESSION (r13702): text-transform: capitalize changes non-breaking spaces to spaces
  704. Test: fast/text/capitalize-preserve-nbsp.html
  705. * platform/StringImpl.cpp:
  706. (WebCore::StringImpl::capitalize): Copy back non-breaking spaces from the
  707. original string to the capitalized string. Change a 'previous' non-breaking
  708. space into a space (this improves the fix for <rdar://problem/4502311> from r13702).
  709. 2006-12-28 Mitz Pettel <mitz@webkit.org>
  710. Reviewed by Darin.
  711. - fix http://bugs.webkit.org/show_bug.cgi?id=10699
  712. div with border-radius does not redraw properly if element inside div is resized
  713. Test: fast/repaint/border-radius-repaint.html
  714. * rendering/RenderObject.cpp:
  715. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  716. 2006-12-28 Darin Adler <darin@apple.com>
  717. * loader/CachedImage.cpp: (WebCore::CachedImage::createImage):
  718. Fixed an #ifdef PLATFORM(CG) that should be #if PLATFORM(CG).
  719. Might have broken the build on some platforms.
  720. 2006-12-27 Geoffrey Garen <ggaren@apple.com>
  721. Build fix, plus a few "double &" => "double&" changes.
  722. * ksvg2/svg/SVGParserUtilities.cpp:
  723. (WebCore::parseNumber):
  724. (WebCore::SVGPathParser::calculateArc):
  725. 2006-12-27 Oliver Hunt <oliver@apple.com>
  726. Build fix
  727. * platform/graphics/BitmapImage.h:
  728. * platform/graphics/Image.cpp:
  729. * platform/graphics/Image.h:
  730. (WebCore::Image::getHBITMAP):
  731. * platform/graphics/cg/PDFDocumentImage.cpp:
  732. (WebCore::PDFDocumentImage::PDFDocumentImage):
  733. 2006-12-27 Eric Seidel <eric@webkit.org>
  734. Reviewed by olliej.
  735. Add new PDFDocumentImage and BitmapImage classes (subclasses of Image)
  736. (In preparation for adding SVGImage as part of bug 5971)
  737. http://bugs.webkit.org/show_bug.cgi?id=11990
  738. Test cases landed separately as part of filing bug 11992.
  739. * WebCore.xcodeproj/project.pbxproj: add BitmapImage.*
  740. * loader/CachedImage.cpp:
  741. (WebCore::nullImage): use BitmapImage directly
  742. (WebCore::CachedImage::createImage): now create either BitmapImage or PDFDocumentImage directly
  743. * loader/icon/IconDataCache.cpp:
  744. (WebCore::IconDataCache::setImageData): use BitmapImage directly
  745. * platform/graphics/BitmapImage.cpp: Added.
  746. (WebCore::BitmapImage::BitmapImage):
  747. (WebCore::BitmapImage::~BitmapImage):
  748. (WebCore::BitmapImage::invalidateData):
  749. (WebCore::BitmapImage::cacheFrame):
  750. (WebCore::BitmapImage::size):
  751. (WebCore::BitmapImage::setNativeData):
  752. (WebCore::BitmapImage::frameCount):
  753. (WebCore::BitmapImage::isSizeAvailable):
  754. (WebCore::BitmapImage::frameAtIndex):
  755. (WebCore::BitmapImage::frameDurationAtIndex):
  756. (WebCore::BitmapImage::frameHasAlphaAtIndex):
  757. (WebCore::BitmapImage::shouldAnimate):
  758. (WebCore::BitmapImage::startAnimation):
  759. (WebCore::BitmapImage::stopAnimation):
  760. (WebCore::BitmapImage::resetAnimation):
  761. (WebCore::BitmapImage::advanceAnimation):
  762. * platform/graphics/BitmapImage.h: Added.
  763. (WebCore::FrameData::FrameData):
  764. (WebCore::BitmapImage::nativeImageForCurrentFrame): added.
  765. (WebCore::BitmapImage::currentFrame):
  766. (WebCore::BitmapImage::mayFillWithSolidColor): added.
  767. (WebCore::BitmapImage::solidColor): added.
  768. * platform/graphics/Image.cpp:
  769. (WebCore::Image::Image):
  770. (WebCore::Image::~Image):
  771. * platform/graphics/Image.h:
  772. (WebCore::Image::setNativeData): now virtual
  773. (WebCore::Image::stopAnimation): now virtual
  774. (WebCore::Image::resetAnimation): now virtual
  775. (WebCore::Image::getNSImage): now virtual
  776. (WebCore::Image::getTIFFRepresentation): now virtual
  777. (WebCore::Image::getCGImageRef): now virtual
  778. * platform/graphics/cg/ImageCG.cpp:
  779. (WebCore::BitmapImage::checkForSolidColor):
  780. (WebCore::BitmapImage::getCGImageRef): use nativeImageForCurrentFrame
  781. (WebCore::fillWithSolidColor): added
  782. (WebCore::BitmapImage::draw):
  783. (WebCore::drawPattern): use fillWithSolidColor, mayFillWithSolidColor() and solidcolor()
  784. (WebCore::BitmapImage::drawTiled): use fillWithSolidColor, mayFillWithSolidColor() and solidcolor()
  785. * platform/graphics/cg/PDFDocumentImage.cpp:
  786. (WebCore::PDFDocumentImage::PDFDocumentImage):
  787. (WebCore::PDFDocumentImage::size): change to subclass from Image
  788. (WebCore::PDFDocumentImage::setNativeData):
  789. (WebCore::PDFDocumentImage::draw):
  790. * platform/graphics/cg/PDFDocumentImage.h:
  791. (WebCore::PDFDocumentImage::drawTiled):
  792. * platform/graphics/mac/ImageMac.mm:
  793. (WebCore::BitmapImage::initPlatformData):
  794. (WebCore::BitmapImage::invalidatePlatformData):
  795. (WebCore::Image::loadPlatformResource):
  796. (WebCore::BitmapImage::getTIFFRepresentation):
  797. (WebCore::BitmapImage::getNSImage):
  798. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  799. (WebCore::SVGFEImage::getCIFilter): remove soon-to-be unnecessary comment
  800. * rendering/RenderImage.cpp:
  801. (WebCore::RenderImage::nullImage): use BitmapImage
  802. 2006-12-27 Mitz Pettel <mitz@webkit.org>
  803. Reviewed by Hyatt.
  804. - fix http://bugs.webkit.org/show_bug.cgi?id=11452
  805. REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes
  806. Test: fast/repaint/fixed.html
  807. * rendering/RenderView.cpp:
  808. (WebCore::RenderView::computeAbsoluteRepaintRect): Re-added.
  809. * rendering/RenderView.h:
  810. 2006-12-27 Mitz Pettel <mitz@webkit.org>
  811. Reviewed by Geoff.
  812. - fix http://bugs.webkit.org/show_bug.cgi?id=11930
  813. Specifying border-radius makes the outline shrink
  814. Test: fast/css/border-radius-outline-offset.html
  815. * css/cssstyleselector.cpp:
  816. (WebCore::CSSStyleSelector::applyProperty): Added missing return statement.
  817. 2006-12-27 Rob Buis <buis@kde.org>
  818. Reviewed by Eric.
  819. http://bugs.webkit.org/show_bug.cgi?id=11108
  820. Replace usage of split by proper parsers
  821. http://bugs.webkit.org/show_bug.cgi?id=11908
  822. WebKit spends 40% of its time displaying "bamboo.svg" executing Regexes
  823. Get rid of split() when parsing transform attribute.
  824. * CMakeLists.txt:
  825. * WebCore.xcodeproj/project.pbxproj:
  826. * ksvg2/svg/SVGParserUtilities.cpp: Added.
  827. (WebCore::parseNumber):
  828. (WebCore::parseNumberOptionalNumber):
  829. (WebCore::SVGPolyParser::parsePoints):
  830. (WebCore::SVGPathParser::parseSVG):
  831. (WebCore::SVGPathParser::calculateArc):
  832. (WebCore::SVGPathParser::svgLineToHorizontal):
  833. (WebCore::SVGPathParser::svgLineToVertical):
  834. (WebCore::SVGPathParser::svgCurveToCubicSmooth):
  835. (WebCore::SVGPathParser::svgCurveToQuadratic):
  836. (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
  837. (WebCore::SVGPathParser::svgArcTo):
  838. * ksvg2/svg/SVGParserUtilities.h: Added.
  839. (WebCore::isWhitespace):
  840. (WebCore::skipOptionalSpaces):
  841. (WebCore::skipOptionalSpacesOrDelimiter):
  842. (WebCore::SVGPolyParser::~SVGPolyParser):
  843. (WebCore::SVGPathParser::~SVGPathParser):
  844. * ksvg2/svg/SVGPathElement.cpp:
  845. (WebCore::SVGPathElement::SVGPathElement):
  846. * ksvg2/svg/SVGPathElement.h:
  847. * ksvg2/svg/SVGTransformable.cpp:
  848. (WebCore::parseTransformParamList):
  849. (WebCore::SVGTransformable::parseTransformAttribute):
  850. * ksvg2/svg/svgpathparser.cpp:
  851. (WebCore::DeprecatedSVGPathParser::parseSVG):
  852. (WebCore::DeprecatedSVGPathParser::calculateArc):
  853. (WebCore::DeprecatedSVGPathParser::svgLineToHorizontal):
  854. (WebCore::DeprecatedSVGPathParser::svgLineToVertical):
  855. (WebCore::DeprecatedSVGPathParser::svgCurveToCubicSmooth):
  856. (WebCore::DeprecatedSVGPathParser::svgCurveToQuadratic):
  857. (WebCore::DeprecatedSVGPathParser::svgCurveToQuadraticSmooth):
  858. (WebCore::DeprecatedSVGPathParser::svgArcTo):
  859. * ksvg2/svg/svgpathparser.h:
  860. (WebCore::DeprecatedSVGPathParser::~DeprecatedSVGPathParser):
  861. 2006-12-27 Mitz Pettel <mitz@webkit.org>
  862. Reviewed by Geoff.
  863. - http://bugs.webkit.org/show_bug.cgi?id=11968
  864. BidiContext's m_basicDir is redundant
  865. No test possible (no functionality change)
  866. * rendering/bidi.cpp:
  867. (WebCore::BidiContext::BidiContext):
  868. (WebCore::operator==):
  869. (WebCore::RenderBlock::computeHorizontalPositionsForLine): Use the block's
  870. direction to resolve 'automatic' text-align.
  871. * rendering/bidi.h:
  872. (WebCore::BidiContext::dir):
  873. 2006-12-27 Nikolas Zimmermann <zimmermann@kde.org>
  874. Build fix, not reviewed.
  875. Accidently commited an older revision of this file.
  876. * platform/graphics/svg/SVGPaintServerPattern.h:
  877. 2006-12-27 Nikolas Zimmermann <zimmermann@kde.org>
  878. Reviewed by Mitz & Eric.
  879. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11904
  880. We need to cache the CGPatternRef (m_pattern) for efficiency
  881. in SVGPaintServerPatternCg, and keep track wheter the underlying
  882. ImageBuffer has changed, and only update the pattern in that case.
  883. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  884. (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
  885. (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
  886. (WebCore::SVGPaintServerPattern::setTile):
  887. * platform/graphics/svg/SVGPaintServerPattern.h:
  888. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  889. (WebCore::SVGPaintServerPattern::setup):
  890. (WebCore::SVGPaintServerPattern::teardown):
  891. 2006-12-26 Geoffrey Garen <ggaren@apple.com>
  892. Reviewed by Eric Seidel.
  893. Fixed <rdar://problem/4740328> Safari crash on quit in _NPN_ReleaseObject
  894. from KJS::Bindings::CInstance::~CInstance
  895. No testcase because we can't open and close windows in DumpRenderTree.
  896. * loader/FrameLoader.cpp: Removed closeDocument helper function because
  897. its only purpose was to call didCloseDocument, which is gone now.
  898. (WebCore::FrameLoader::detachFromParent): closeDocument => closeURL,
  899. since didCloseDocument is gone now.
  900. * loader/FrameLoaderClient.h: Removed didCloseDocument because it proved
  901. unnecessary and harmful.
  902. * loader/mac/FrameLoaderMac.mm:
  903. (WebCore::FrameLoader::transitionToCommitted): closeDocument => closeURL,
  904. since didCloseDocument is gone now.
  905. 2006-12-26 Eric Seidel <eric@webkit.org>
  906. Reviewed by olliej.
  907. ASSERT while loading SVG map
  908. http://bugs.webkit.org/show_bug.cgi?id=11987
  909. * ksvg2/css/SVGCSSParser.cpp: remove a few .impl() calls previously missed.
  910. (WebCore::CSSParser::parseSVGValue):
  911. (WebCore::CSSParser::parseSVGPaint):
  912. (WebCore::CSSParser::parseSVGColor):
  913. * ksvg2/misc/KCanvasRenderingStyle.cpp: handle invalid colors
  914. (WebCore::KSVGPainterFactory::fillPaintServer):
  915. (WebCore::KSVGPainterFactory::strokePaintServer):
  916. 2006-12-26 Eric Seidel <eric@webkit.org>
  917. Reviewed by ggaren.
  918. No test cases changed.
  919. Remove unnecessary (and inefficient) .impl() and .deprecatedString() calls.
  920. http://bugs.webkit.org/show_bug.cgi?id=11989
  921. * bindings/js/kjs_dom.cpp:
  922. (KJS::DOMNodeList::getOwnPropertySlot):
  923. * dom/Document.cpp:
  924. (WebCore::Document::createAttributeNS):
  925. * dom/Element.cpp:
  926. (WebCore::Element::getAttributeNS):
  927. (WebCore::Element::setAttribute):
  928. (WebCore::Element::setAttributeNS):
  929. (WebCore::Element::removeAttributeNS):
  930. (WebCore::Element::getAttributeNode):
  931. (WebCore::Element::getAttributeNodeNS):
  932. (WebCore::Element::hasAttribute):
  933. (WebCore::Element::hasAttributeNS):
  934. * dom/NamedAttrMap.cpp:
  935. (WebCore::NamedAttrMap::getNamedItemNS):
  936. (WebCore::NamedAttrMap::removeNamedItemNS):
  937. * dom/ProcessingInstruction.cpp:
  938. (WebCore::ProcessingInstruction::checkStyleSheet):
  939. * html/HTMLBaseElement.cpp:
  940. (WebCore::HTMLBaseElement::process):
  941. * html/HTMLEmbedElement.cpp:
  942. (WebCore::HTMLEmbedElement::parseMappedAttribute):
  943. * html/HTMLEmbedElement.h:
  944. * html/HTMLHRElement.cpp:
  945. (WebCore::HTMLHRElement::parseMappedAttribute):
  946. * html/HTMLScriptElement.cpp:
  947. (WebCore::HTMLScriptElement::insertedIntoDocument):
  948. * html/HTMLStyleElement.cpp:
  949. (WebCore::HTMLStyleElement::parseMappedAttribute):
  950. * ksvg2/svg/SVGAnimateElement.cpp:
  951. (WebCore::SVGAnimateElement::handleTimerEvent):
  952. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  953. (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
  954. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  955. (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
  956. * ksvg2/svg/SVGFEImageElement.cpp:
  957. (WebCore::SVGFEImageElement::parseMappedAttribute):
  958. * ksvg2/svg/SVGFitToViewBox.cpp:
  959. (WebCore::SVGFitToViewBox::parseMappedAttribute):
  960. * ksvg2/svg/SVGImageElement.cpp:
  961. (WebCore::SVGImageElement::parseMappedAttribute):
  962. * ksvg2/svg/SVGPatternElement.cpp:
  963. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  964. (WebCore::SVGPatternElement::notifyAttributeChange):
  965. * ksvg2/svg/SVGPolyElement.cpp:
  966. (WebCore::SVGPolyElement::notifyAttributeChange):
  967. * ksvg2/svg/SVGStopElement.cpp:
  968. (WebCore::SVGStopElement::parseMappedAttribute):
  969. * ksvg2/svg/SVGTRefElement.cpp:
  970. (WebCore::SVGTRefElement::updateReferencedText):
  971. * ksvg2/svg/SVGTests.cpp:
  972. (WebCore::SVGTests::parseMappedAttribute):
  973. * ksvg2/svg/SVGTextPositioningElement.cpp:
  974. (WebCore::SVGTextPositioningElement::parseMappedAttribute):
  975. * ksvg2/svg/SVGUseElement.cpp:
  976. (WebCore::SVGUseElement::closeRenderer):
  977. * ksvg2/svg/SVGViewElement.cpp:
  978. (WebCore::SVGViewElement::parseMappedAttribute):
  979. * page/Frame.cpp:
  980. (WebCore::Frame::selectionComputedStyle):
  981. * rendering/RenderPartObject.cpp:
  982. (WebCore::RenderPartObject::updateWidget):
  983. * rendering/SVGRenderTreeAsText.cpp:
  984. (WebCore::writeRenderResources):
  985. 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
  986. Reviewed by Oliver.
  987. Add patternContentUnits support, and cleanup SVGPaintServerGradientCg.cpp
  988. Fixes coords-units-01-b.svg
  989. * ksvg2/svg/SVGPatternElement.cpp:
  990. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  991. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  992. (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
  993. (WebCore::SVGPaintServerPattern::contentBoundingBoxMode):
  994. (WebCore::SVGPaintServerPattern::setContentBoundingBoxMode):
  995. * platform/graphics/svg/SVGPaintServerPattern.h:
  996. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  997. (WebCore::SVGPaintServerGradient::renderPath):
  998. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  999. (WebCore::SVGPaintServerPattern::setup):
  1000. 2006-12-26 Eric Seidel <eric@webkit.org>
  1001. Reviewed by ggaren
  1002. No test cases changed.
  1003. Remove unneeded isPaintingText() and activeClient() from SVGPaintServer system
  1004. * platform/graphics/svg/SVGPaintServer.cpp:
  1005. (WebCore::SVGPaintServer::SVGPaintServer):
  1006. * platform/graphics/svg/SVGPaintServer.h:
  1007. * platform/graphics/svg/SVGPaintServerGradient.h:
  1008. * platform/graphics/svg/SVGPaintServerPattern.h:
  1009. * platform/graphics/svg/SVGPaintServerSolid.h:
  1010. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  1011. (WebCore::SVGPaintServer::teardown):
  1012. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1013. (WebCore::SVGPaintServerGradient::teardown):
  1014. (WebCore::SVGPaintServerGradient::setup):
  1015. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1016. (WebCore::SVGPaintServerPattern::setup):
  1017. (WebCore::SVGPaintServerPattern::teardown):
  1018. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  1019. (WebCore::SVGPaintServerSolid::setup):
  1020. * rendering/RenderPath.cpp:
  1021. (WebCore::RenderPath::paint):
  1022. * rendering/SVGInlineFlowBox.cpp:
  1023. (WebCore::paintSVGInlineFlow):
  1024. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  1025. Reviewed by Adam Roben.
  1026. Fixed <rdar://problem/4778898> REGRESSION: crash in getInstanceForView()
  1027. when quitting from kcbs.com
  1028. No testcase because we can't open and close windows in DRT.
  1029. The crash was caused by deallocating plug-ins that were later referenced
  1030. in the unload event handler.
  1031. * loader/FrameLoader.cpp:
  1032. (WebCore::FrameLoader::closeDocument): Call didCloseDocument after closing
  1033. instead of before, so plugins don't get deallocated until the document
  1034. has been destroyed and all event handlers have fired.
  1035. * loader/FrameLoaderClient.h: Renamed "willCloseDocument" to "didCloseDocument",
  1036. since we call it after closing now.
  1037. 2006-12-26 Eric Seidel <eric@webkit.org>
  1038. Reviewed by rwlbuis.
  1039. Replace bogus SVGLength::isFraction() method with valueAsPercentage() to fix:
  1040. http://bugs.webkit.org/show_bug.cgi?id=11973
  1041. * ksvg2/svg/SVGLength.cpp:
  1042. (WebCore::SVGLength::valueInSpecifiedUnits): remove extra spaces
  1043. (WebCore::SVGLength::valueAsPercentage): new method
  1044. * ksvg2/svg/SVGLength.h:
  1045. * ksvg2/svg/SVGLinearGradientElement.cpp:
  1046. (WebCore::SVGLinearGradientElement::buildGradient): use valueAsPercentage()
  1047. * ksvg2/svg/SVGPatternElement.cpp:
  1048. (WebCore::SVGPatternElement::drawPatternContentIntoTile): return if malloc fails
  1049. * ksvg2/svg/SVGRadialGradientElement.cpp:
  1050. (WebCore::SVGRadialGradientElement::buildGradient): use valueAsPercentage()
  1051. * platform/graphics/cg/GraphicsContextCG.cpp:
  1052. (WebCore::GraphicsContext::createImageBuffer): return 0 if malloc fails
  1053. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1054. (WebCore::SVGPaintServerGradient::setup): return if malloc fails
  1055. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  1056. (WebCore::SVGResourceMasker::applyMask): add comment about possible crash
  1057. 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
  1058. Reviewed by Oliver.
  1059. In the DOMParser class, we have to create content-type specific
  1060. documents, instead of a pure "Document" object. Real-life SVG
  1061. files us this way to convert strings "<svg><rect x=...></svg>
  1062. to a new Document structure.
  1063. Add new testcase dynamic-svg-document-creation.svg.
  1064. * xml/DOMParser.cpp:
  1065. (WebCore::DOMParser::parseFromString):
  1066. 2006-12-25 Geoffrey Garen <ggaren@apple.com>
  1067. Reviewed by Oliver Hunt.
  1068. Removed WebCoreSettings, cleaned up WebCore::Settings.
  1069. * WebCore.exp: Exported Settings for use by WebKit, removed WebCoreSettings class.
  1070. * WebCore.xcodeproj/project.pbxproj: Removed WebCoreSetttings.h/.mm.
  1071. Added Settings.cpp.
  1072. * page/Frame.cpp: Removed cruft that duplicated Settings data. Callers now call
  1073. through to Settings to get Settings data.
  1074. * page/Page.cpp: Added Settings data member, to replace the one that WebView
  1075. used to hold.
  1076. * page/Settings.cpp: Added.
  1077. * page/Settings.h:
  1078. - Renamed all functions to match WebKit API. Renamed all variables to
  1079. match functions. Favorite old name: "isPluginsEnabled."
  1080. - Moved EditableLinkBehavior outside of the class. Having it inside
  1081. just made it harder to type.
  1082. - Merged in old WebCoreSettings functionality, like guarding against re-setting
  1083. to the same value, and making sure to update page layout.
  1084. - Paired setters and getters, putting setters first.
  1085. 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
  1086. Reviewed by Oliver.
  1087. Fix some minor style issues.
  1088. * ksvg2/svg/SVGPolygonElement.cpp:
  1089. (WebCore::SVGPolygonElement::toPathData):
  1090. * ksvg2/svg/SVGPolygonElement.h:
  1091. * ksvg2/svg/SVGPolylineElement.cpp:
  1092. (WebCore::SVGPolylineElement::toPathData):
  1093. * ksvg2/svg/SVGPolylineElement.h:
  1094. 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
  1095. Reviewed by Oliver.
  1096. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11963
  1097. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11123
  1098. Fix SVGList JS wrappers, which operate on POD types (ie. Point).
  1099. There exists a special JSSVGPODTypeWrapperCreatorForList class now,
  1100. which operators on specialized SVGPODList's. It makes it possible
  1101. to support stuff like "myList.getItem(0).value = 200", for POD lists.
  1102. Adding two new testcases demonstrating the usage of SVG DOM & SVGAnimatedPoints.
  1103. * WebCore.pro:
  1104. * WebCore.xcodeproj/project.pbxproj:
  1105. * bindings/js/JSSVGPODTypeWrapper.h:
  1106. (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
  1107. (WebCore::JSSVGPODTypeWrapperCreatorForList::~JSSVGPODTypeWrapperCreatorForList):
  1108. (WebCore::JSSVGPODTypeWrapperCreatorForList::commitChange):
  1109. * bindings/js/JSSVGPathSegListCustom.cpp:
  1110. (WebCore::updatePathSegContextMap):
  1111. (WebCore::removeFromPathSegContextMap):
  1112. (WebCore::JSSVGPathSegList::clear):
  1113. (WebCore::JSSVGPathSegList::initialize):
  1114. * bindings/js/JSSVGPointListCustom.cpp: Added.
  1115. (WebCore::JSSVGPointList::clear):
  1116. (WebCore::JSSVGPointList::initialize):
  1117. (WebCore::JSSVGPointList::getItem):
  1118. (WebCore::JSSVGPointList::insertItemBefore):
  1119. (WebCore::JSSVGPointList::replaceItem):
  1120. (WebCore::JSSVGPointList::removeItem):
  1121. (WebCore::JSSVGPointList::appendItem):
  1122. * bindings/scripts/CodeGeneratorJS.pm:
  1123. * ksvg2/misc/SVGDocumentExtensions.h:
  1124. (WebCore::SVGDocumentExtensions::baseValueMap):
  1125. (WebCore::SVGDocumentExtensions::genericContextMap):
  1126. (WebCore::SVGDocumentExtensions::genericContext):
  1127. (WebCore::SVGDocumentExtensions::setGenericContext):
  1128. (WebCore::SVGDocumentExtensions::removeGenericContext):
  1129. (WebCore::SVGDocumentExtensions::hasGenericContext):
  1130. * ksvg2/svg/SVGAnimatedPathData.cpp:
  1131. * ksvg2/svg/SVGAnimatedPathData.h:
  1132. * ksvg2/svg/SVGAnimatedPoints.cpp:
  1133. * ksvg2/svg/SVGAnimatedPoints.h:
  1134. * ksvg2/svg/SVGLengthList.cpp:
  1135. (WebCore::SVGLengthList::SVGLengthList):
  1136. (WebCore::SVGLengthList::parse):
  1137. * ksvg2/svg/SVGLengthList.h:
  1138. * ksvg2/svg/SVGList.h:
  1139. (WebCore::SVGPODListItem::SVGPODListItem):
  1140. (WebCore::SVGPODListItem::operator Item&):
  1141. (WebCore::SVGPODListItem::operator const Item&):
  1142. (WebCore::SVGPODListItem::value):
  1143. (WebCore::SVGPODListItem::setValue):
  1144. (WebCore::SVGPODList::SVGPODList):
  1145. (WebCore::SVGPODList::initialize):
  1146. (WebCore::SVGPODList::getFirst):
  1147. (WebCore::SVGPODList::getLast):
  1148. (WebCore::SVGPODList::getItem):
  1149. (WebCore::SVGPODList::insertItemBefore):
  1150. (WebCore::SVGPODList::replaceItem):
  1151. (WebCore::SVGPODList::removeItem):
  1152. (WebCore::SVGPODList::appendItem):
  1153. * ksvg2/svg/SVGPathSegList.idl:
  1154. * ksvg2/svg/SVGPointList.cpp:
  1155. (SVGPointList::SVGPointList):
  1156. (SVGPointList::context):
  1157. * ksvg2/svg/SVGPointList.h:
  1158. * ksvg2/svg/SVGPointList.idl:
  1159. * ksvg2/svg/SVGPolyElement.cpp:
  1160. (WebCore::SVGPolyElement::SVGPolyElement):
  1161. (WebCore::SVGPolyElement::points):
  1162. (WebCore::SVGPolyElement::animatedPoints):
  1163. (WebCore::SVGPolyElement::parseMappedAttribute):
  1164. (WebCore::SVGPolyElement::notifyAttributeChange):
  1165. * ksvg2/svg/SVGPolyElement.h:
  1166. * rendering/RenderSVGText.cpp:
  1167. 2006-12-25 Alexey Proskuryakov <ap@webkit.org>
  1168. Reviewed by Maciej.
  1169. http://bugs.webkit.org/show_bug.cgi?id=10313
  1170. Reproducible crash when doing importStylesheet in javascript with
  1171. xsl files that use xsl:import
  1172. This doesn't fully address the bug, but makes a couple of steps
  1173. in that direction.
  1174. * xml/XSLTProcessor.cpp:
  1175. (WebCore::transformToString): Set m_stylesheet even if it's created implicitly,
  1176. rather than passed from outside. Always reset it in the end (this doesn't affect
  1177. Document::applyXSLTransform(), which was the only user of setXSLStylesheet()).
  1178. * xml/xmlhttprequest.cpp:
  1179. (WebCore::XMLHttpRequest::getResponseXML): Set the loaded document's URL.
  1180. 2006-12-24 Mitz Pettel <mitz@webkit.org>
  1181. Reviewed by Maciej and Geoff.
  1182. - remove unused member variable m_styleSelectorDirty
  1183. No test possible (no functionality change)
  1184. * dom/Document.cpp:
  1185. (WebCore::Document::Document):
  1186. (WebCore::Document::recalcStyleSelector):
  1187. * dom/Document.h:
  1188. 2006-12-24 Sam Weinig <sam@webkit.org>
  1189. Reviewed by Geoff.
  1190. Patch for http://bugs.webkit.org/show_bug.cgi?id=11952
  1191. style changes made through CSSMediaRule functions insertRule()
  1192. and deleteRule do not show up on the screen
  1193. Tests added:
  1194. * fast/dom/css-mediarule-deleteRule-update.html
  1195. * fast/dom/css-mediarule-insertRule-update.html
  1196. * css/CSSMediaRule.cpp:
  1197. (WebCore::CSSMediaRule::insertRule):
  1198. (WebCore::CSSMediaRule::deleteRule):
  1199. 2006-12-24 Rob Buis <buis@kde.org>
  1200. Reviewed by Alexey.
  1201. Get rid of unused variable.
  1202. * ksvg2/svg/SVGURIReference.cpp:
  1203. (WebCore::SVGURIReference::getTarget):
  1204. 2006-12-23 Alexey Proskuryakov <ap@webkit.org>
  1205. Reviewed by Geoff.
  1206. http://bugs.webkit.org/show_bug.cgi?id=11933
  1207. REGRESSION: trying to change a property in a computed style declaration results in a crash
  1208. Test: fast/dom/computed-style-set-property.html
  1209. * bindings/js/kjs_css.cpp:
  1210. (KJS::DOMCSSStyleDeclaration::put): Added a check for null m_impl->stylesheet(). Also, fixed
  1211. incorrect logic in Dashboard branch - it didn't return in time if removeProperty() raised
  1212. an exception (credit for noticing this bug goes to Geoff).
  1213. 2006-12-23 Lars Naesbye Christensen <lars@naesbye.dk>
  1214. Reviewed by Geoff.
  1215. Patch for http://bugs.webkit.org/show_bug.cgi?id=11940
  1216. Bad transparency in some cursor pointer images
  1217. * Resources/northEastResizeCursor.png:
  1218. * Resources/northEastSouthWestResizeCursor.png:
  1219. * Resources/northWestResizeCursor.png:
  1220. * Resources/northWestSouthEastResizeCursor.png:
  1221. * Resources/southEastResizeCursor.png:
  1222. * Resources/southWestResizeCursor.png:
  1223. 2006-12-23 Sam Weinig <sam@webkit.org>
  1224. Reviewed by Geoff.
  1225. Patch for http://bugs.webkit.org/show_bug.cgi?id=11876
  1226. CSSMediaRule functions insertRule and deleteRule don't raise exceptions
  1227. Test added:
  1228. * fast/dom/css-mediarule-functions.html
  1229. * bindings/js/kjs_css.cpp:
  1230. (KJS::DOMCSSRuleFunc::callAsFunction):
  1231. * css/CSSMediaRule.cpp: add exception handling
  1232. (WebCore::CSSMediaRule::insertRule):
  1233. (WebCore::CSSMediaRule::deleteRule):
  1234. * css/CSSMediaRule.h: add ExceptionCode arguments
  1235. * css/CSSMediaRule.idl: un-comment exceptions
  1236. 2006-12-23 David Hyatt <hyatt@apple.com>
  1237. Fix 11942. The inheritable properties array is duplicated (lame). Make
  1238. sure to keep both in sync.
  1239. Reviewed by mitz
  1240. * css/CSSComputedStyleDeclaration.cpp:
  1241. * css/CSSMutableStyleDeclaration.cpp:
  1242. (WebCore::):
  1243. 2006-12-22 Geoffrey Garen <ggaren@apple.com>
  1244. Reviewed by Brady Eidson.
  1245. Fixed <rdar://problem/4871518> Leopard9A321: Crash visiting www.audible.com
  1246. (WebCore::FrameLoader::loadSubframe)
  1247. * loader/mac/FrameLoaderMac.mm:
  1248. (WebCore::FrameLoader::createFrame): Updated to reflect the fact that
  1249. createChildFrameNamed: now returns a WebCore::Frame* instead of a
  1250. WebCoreFrameBridge *.
  1251. * page/mac/WebCoreFrameBridge.h:
  1252. 2006-12-22 David Hyatt <hyatt@apple.com>
  1253. Make sure to actually set the stroke thickness for text decorations.
  1254. Covered by bugzilla bug 11921.
  1255. Reviewed by mitz
  1256. * rendering/InlineFlowBox.cpp:
  1257. (WebCore::InlineFlowBox::paintDecorations):
  1258. * rendering/InlineTextBox.cpp:
  1259. (WebCore::InlineTextBox::paintDecoration):
  1260. 2006-12-22 Nikolas Zimmermann <zimmermann@kde.org>
  1261. Reviewed by Rob.
  1262. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11934
  1263. Adding/removing SVGPathSeg* items to a SVGPathElement (through SVGPathSegList
  1264. interface) has live update problems, as the notifyAttributeChange() function
  1265. isn't called anywhere. The context param is currently stored per SVGPathSeg,
  1266. which is not needed - as it can be done using SVGPathSegList completely. It
  1267. wastes memory, that is fixed. In order to get rid of the context param in
  1268. SVGPathSeg, we need a way to map SVGPathSeg* objects to SVGStyledElement*
  1269. objects ("context element"). That is done using a new HashMap in the
  1270. SVGDocumentExtensions class.
  1271. * WebCore.pro:
  1272. * WebCore.xcodeproj/project.pbxproj:
  1273. * bindings/js/JSSVGPathSegListCustom.cpp: Added.
  1274. (WebCore::updatePathSegContextMap):
  1275. (WebCore::removeFromPathSegContextMap):
  1276. (WebCore::JSSVGPathSegList::getItem):
  1277. (WebCore::JSSVGPathSegList::insertItemBefore):
  1278. (WebCore::JSSVGPathSegList::replaceItem):
  1279. (WebCore::JSSVGPathSegList::removeItem):
  1280. (WebCore::JSSVGPathSegList::appendItem):
  1281. * bindings/scripts/CodeGeneratorJS.pm:
  1282. * ksvg2/misc/SVGDocumentExtensions.h:
  1283. (WebCore::SVGDocumentExtensions::pathSegContextMap):
  1284. (WebCore::SVGDocumentExtensions::pathSegContext):
  1285. (WebCore::SVGDocumentExtensions::setPathSegContext):
  1286. (WebCore::SVGDocumentExtensions::removePathSegContext):
  1287. (WebCore::SVGDocumentExtensions::hasPathSegContext):
  1288. * ksvg2/svg/SVGList.h:
  1289. (WebCore::SVGList::getFirst):
  1290. (WebCore::SVGList::getLast):
  1291. * ksvg2/svg/SVGPathElement.cpp:
  1292. (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
  1293. (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
  1294. (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
  1295. (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
  1296. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
  1297. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
  1298. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
  1299. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
  1300. (WebCore::SVGPathElement::createSVGPathSegArcAbs):
  1301. (WebCore::SVGPathElement::createSVGPathSegArcRel):
  1302. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
  1303. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
  1304. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
  1305. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
  1306. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
  1307. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
  1308. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
  1309. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
  1310. (WebCore::SVGPathElement::svgMoveTo):
  1311. (WebCore::SVGPathElement::svgLineTo):
  1312. (WebCore::SVGPathElement::svgLineToHorizontal):
  1313. (WebCore::SVGPathElement::svgLineToVertical):
  1314. (WebCore::SVGPathElement::svgCurveToCubic):
  1315. (WebCore::SVGPathElement::svgCurveToCubicSmooth):
  1316. (WebCore::SVGPathElement::svgCurveToQuadratic):
  1317. (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
  1318. (WebCore::SVGPathElement::svgArcTo):
  1319. (WebCore::SVGPathElement::pathSegList):
  1320. * ksvg2/svg/SVGPathElement.h:
  1321. * ksvg2/svg/SVGPathSeg.cpp: Removed.
  1322. * ksvg2/svg/SVGPathSeg.h:
  1323. (WebCore::SVGPathSeg::SVGPathSeg):
  1324. (WebCore::SVGPathSeg::~SVGPathSeg):
  1325. (WebCore::SVGPathSeg::toString):
  1326. * ksvg2/svg/SVGPathSegArc.cpp:
  1327. (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
  1328. (WebCore::SVGPathSegArcAbs::setX):
  1329. (WebCore::SVGPathSegArcAbs::setY):
  1330. (WebCore::SVGPathSegArcAbs::setR1):
  1331. (WebCore::SVGPathSegArcAbs::setR2):
  1332. (WebCore::SVGPathSegArcAbs::setAngle):
  1333. (WebCore::SVGPathSegArcAbs::setLargeArcFlag):
  1334. (WebCore::SVGPathSegArcAbs::setSweepFlag):
  1335. (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
  1336. (WebCore::SVGPathSegArcRel::setX):
  1337. (WebCore::SVGPathSegArcRel::setY):
  1338. (WebCore::SVGPathSegArcRel::setR1):
  1339. (WebCore::SVGPathSegArcRel::setR2):
  1340. (WebCore::SVGPathSegArcRel::setAngle):
  1341. (WebCore::SVGPathSegArcRel::setLargeArcFlag):
  1342. (WebCore::SVGPathSegArcRel::setSweepFlag):
  1343. * ksvg2/svg/SVGPathSegArc.h:
  1344. * ksvg2/svg/SVGPathSegClosePath.cpp:
  1345. * ksvg2/svg/SVGPathSegClosePath.h:
  1346. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  1347. (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
  1348. (WebCore::SVGPathSegCurvetoCubicAbs::setX):
  1349. (WebCore::SVGPathSegCurvetoCubicAbs::setY):
  1350. (WebCore::SVGPathSegCurvetoCubicAbs::setX1):
  1351. (WebCore::SVGPathSegCurvetoCubicAbs::setY1):
  1352. (WebCore::SVGPathSegCurvetoCubicAbs::setX2):
  1353. (WebCore::SVGPathSegCurvetoCubicAbs::setY2):
  1354. (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
  1355. (WebCore::SVGPathSegCurvetoCubicRel::setX):
  1356. (WebCore::SVGPathSegCurvetoCubicRel::setY):
  1357. (WebCore::SVGPathSegCurvetoCubicRel::setX1):
  1358. (WebCore::SVGPathSegCurvetoCubicRel::setY1):
  1359. (WebCore::SVGPathSegCurvetoCubicRel::setX2):
  1360. (WebCore::SVGPathSegCurvetoCubicRel::setY2):
  1361. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  1362. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  1363. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
  1364. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX):
  1365. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY):
  1366. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX2):
  1367. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY2):
  1368. (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
  1369. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX):
  1370. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY):
  1371. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX2):
  1372. (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY2):
  1373. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  1374. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  1375. (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
  1376. (WebCore::SVGPathSegCurvetoQuadraticAbs::setX):
  1377. (WebCore::SVGPathSegCurvetoQuadraticAbs::setY):
  1378. (WebCore::SVGPathSegCurvetoQuadraticAbs::setX1):
  1379. (WebCore::SVGPathSegCurvetoQuadraticAbs::setY1):
  1380. (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
  1381. (WebCore::SVGPathSegCurvetoQuadraticRel::setX):
  1382. (WebCore::SVGPathSegCurvetoQuadraticRel::setY):
  1383. (WebCore::SVGPathSegCurvetoQuadraticRel::setX1):
  1384. (WebCore::SVGPathSegCurvetoQuadraticRel::setY1):
  1385. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  1386. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  1387. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
  1388. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setX):
  1389. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setY):
  1390. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
  1391. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setX):
  1392. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setY):
  1393. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  1394. * ksvg2/svg/SVGPathSegLineto.cpp:
  1395. (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
  1396. (WebCore::SVGPathSegLinetoAbs::setX):
  1397. (WebCore::SVGPathSegLinetoAbs::setY):
  1398. (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
  1399. (WebCore::SVGPathSegLinetoRel::setX):
  1400. (WebCore::SVGPathSegLinetoRel::setY):
  1401. * ksvg2/svg/SVGPathSegLineto.h:
  1402. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  1403. (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
  1404. (WebCore::SVGPathSegLinetoHorizontalAbs::setX):
  1405. (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
  1406. (WebCore::SVGPathSegLinetoHorizontalRel::setX):
  1407. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  1408. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  1409. (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
  1410. (WebCore::SVGPathSegLinetoVerticalAbs::setY):
  1411. (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
  1412. (WebCore::SVGPathSegLinetoVerticalRel::setY):
  1413. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  1414. * ksvg2/svg/SVGPathSegList.cpp:
  1415. (WebCore::SVGPathSegList::SVGPathSegList):
  1416. (WebCore::SVGPathSegList::context):
  1417. * ksvg2/svg/SVGPathSegList.h:
  1418. * ksvg2/svg/SVGPathSegList.idl:
  1419. * ksvg2/svg/SVGPathSegMoveto.cpp:
  1420. (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
  1421. (WebCore::SVGPathSegMovetoAbs::setX):
  1422. (WebCore::SVGPathSegMovetoAbs::setY):
  1423. (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
  1424. (WebCore::SVGPathSegMovetoRel::setX):
  1425. (WebCore::SVGPathSegMovetoRel::setY):
  1426. * ksvg2/svg/SVGPathSegMoveto.h:
  1427. 2006-12-22 Mitz Pettel <mitz@webkit.org>
  1428. Reviewed by Beth.
  1429. - fix http://bugs.webkit.org/show_bug.cgi?id=11903
  1430. REGRESSION: outline not drawn if line style is dashed.
  1431. This fixes a bunch of existing pixel tests.
  1432. * rendering/RenderObject.cpp:
  1433. (WebCore::RenderObject::drawBorder):
  1434. 2006-12-22 John Sullivan <sullivan@apple.com>
  1435. Reviewed by Kevin Decker
  1436. - renamed markMisspellingsInAdjacentWords to markMisspellingsAfterTypingToPosition
  1437. in anticipation of fixing it to work more correctly with grammar checking, where
  1438. only checking adjacent words isn't good enough.
  1439. * editing/Editor.h:
  1440. renamed markMisspellingsInAdjacentWords to markMisspellingsAfterTypingToPosition
  1441. * editing/TypingCommand.cpp:
  1442. (WebCore::TypingCommand::markMisspellingsAfterTyping):
  1443. updated for name change
  1444. * editing/mac/EditorMac.mm:
  1445. (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  1446. renamed from markMisspellingsInAdjacentWords and added FIXME comment
  1447. 2006-12-22 Eric Seidel <eric@webkit.org>
  1448. Reviewed by aroben.
  1449. http://bugs.webkit.org/show_bug.cgi?id=11912
  1450. Overriding visibility does not behave as expected.
  1451. * rendering/RenderSVGContainer.cpp:
  1452. (WebCore::RenderSVGContainer::paint): allow children to draw when container is visibility='hidden'
  1453. 2006-12-22 Nikolas Zimmermann <zimmermann@kde.org>
  1454. Reviewed by Rob.
  1455. Fix SVGPathSeg JS object creation. SVGPathSegList has to return
  1456. the actual SVGPathSegLineToAbs/MoveToRel... object instead of a pure
  1457. SVGPathSeg JS object.
  1458. * WebCore.xcodeproj/project.pbxproj:
  1459. * WebCore/bindings/js/JSSVGPathSegCustom.cpp: Added.
  1460. * bindings/scripts/CodeGeneratorJS.pm:
  1461. 2006-12-21 Beth Dakin <bdakin@apple.com>
  1462. Reviewed by Geoff.
  1463. Fix for <rdar://problem/4897162> REGRESSION: Attempting to create a
  1464. new message in .Mac web mail causes Safari to crash
  1465. ( KJS::DOMCSSStyleDeclaration::put() + 368 )
  1466. This was a regression from my clone-node change. This fix is very
  1467. simple.
  1468. * dom/StyledElement.cpp:
  1469. (WebCore::StyledElement::copyNonAttributeProperties): Must set the
  1470. data that getInlineStyleDecl() points to instead of setting
  1471. m_inlineStyleDecl directly. I also changed some variable names.
  1472. * dom/StyledElement.h: Don't need parameter name here.
  1473. 2006-12-21 Adele Peterson <adele@apple.com>
  1474. Reviewed by Geoff.
  1475. - Fix for <rdar://problem/4895716> REGRESSION: Pressing return key in search field doesn't begin search
  1476. Test: fast/events/onsearch-enter.html
  1477. * html/HTMLInputElement.cpp:
  1478. (WebCore::HTMLInputElement::defaultEventHandler): Calls onSearch when handling "Enter". Also removed
  1479. special case for AppKit search fields, so now the enter event is considered handled here.
  1480. (WebCore::HTMLInputElement::onSearch): Added. Dispatches search event.
  1481. * html/HTMLInputElement.h: Added onSearch.
  1482. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::onSearch): Calls onSearch on the node.
  1483. 2006-12-21 Geoffrey Garen <ggaren@apple.com>
  1484. Reviewed by Brady Eidson.
  1485. Fixed <rdar://problem/4897205> ASSERTION FAILURE in ContainerNode::queuePostAttachCallback
  1486. when creating an iframe from an iframe onload handler
  1487. I added that assertion to try to "keep things simple," but I've found a
  1488. testcase that demonstrates why things need to be complicated.
  1489. * dom/ContainerNode.cpp:
  1490. (WebCore::ContainerNode::queuePostAttachCallback):
  1491. 2006-12-21 Alexey Proskuryakov <ap@webkit.org>
  1492. Reviewed by Darin.
  1493. http://bugs.webkit.org/show_bug.cgi?id=11919
  1494. Allow setting CSS values to null.
  1495. * bindings/js/kjs_css.cpp:
  1496. (KJS::DOMCSSStyleDeclaration::put):
  1497. (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
  1498. Convert null values to null strings.
  1499. 2006-12-21 Rob Buis <buis@kde.org>
  1500. Reviewed by Anders.
  1501. http://bugs.webkit.org/show_bug.cgi?id=11898
  1502. CSSMediaRule functions insertRule and deleteRule assert when called from js in debug builds
  1503. Test explicitly for the two media rule functions so it ends up calling callAsFunction.
  1504. * bindings/js/kjs_css.cpp:
  1505. (KJS::DOMCSSRule::getOwnPropertySlot):
  1506. 2006-12-21 Lars Knoll <lars@trolltech.com>
  1507. Reviewed by Zack
  1508. * loader/FrameLoaderClient.h:
  1509. * loader/qt/FrameLoaderQt.cpp:
  1510. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  1511. (WebCore::FrameLoader::partClearedInBegin):
  1512. (WebCore::FrameLoader::restoreDocumentState):
  1513. comment out a few notImplemented() warnings
  1514. * platform/qt/FrameQt.cpp:
  1515. (WebCore::FrameQt::bindingRootObject):
  1516. (WebCore::FrameQt::addPluginRootObject):
  1517. * platform/qt/FrameQt.h:
  1518. implement these
  1519. 2006-12-20 David Hyatt <hyatt@apple.com>
  1520. Make sure the execrable match-nearest-mail-blockquote-color CSS property is actually initialized (amazingly
  1521. it started off with the value "match", since it wasn't even initialized). Now that it is actually being
  1522. initialized and properly copied and assigned to, tests have failed. It seems that we were getting the
  1523. behavior of "match" by default, when the initial value was supposed to be "normal."
  1524. Because this property really should not exist at all, it's unclear to me what the right solution is here.
  1525. * rendering/RenderStyle.cpp:
  1526. (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
  1527. (WebCore::StyleCSS3NonInheritedData::operator==):
  1528. * rendering/RenderStyle.h:
  1529. 2006-12-20 Brady Eidson <beidson@apple.com>
  1530. Reviewed by Adam's rubberstamp
  1531. Accidentally left a logging channel on in my checkin
  1532. * platform/Logging.cpp:
  1533. (WebCore::):
  1534. 2006-12-21 Nikolas Zimmermann <zimmermann@kde.org>
  1535. Reviewed by Oliver.
  1536. Fix removeItem recursively calling itself (!). It was meant to call m_vector.remove(index)
  1537. not removeItem(index, ec). This bug is in SVN for quite some time now :-)
  1538. * ksvg2/svg/SVGList.h:
  1539. (WebCore::SVGList::removeItem):
  1540. 2006-12-20 David Harrison <harrison@apple.com>
  1541. Reviewed by John Sullivan.
  1542. <rdar://problem/4893376> REGRESSION: Crash occurs at WebCoreFrameBridge fontForSelection: when drag selecting from a line break
  1543. No layout test added because crash only happens in path where editing window is key,
  1544. which is never the case for the automated tests.
  1545. * page/mac/WebCoreFrameBridge.mm:
  1546. (-[WebCoreFrameBridge fontForSelection:]):
  1547. Add nil check of fontForSelection() result.
  1548. 2006-12-21 Nikolas Zimmermann <zimmermann@kde.org>
  1549. Reviewed by Maciej.
  1550. Fix dynamic gradient changes, via JS. It actually worked before, but it
  1551. wasn't repainted. Behave just like the pattern notifyAttributeChange() code now.
  1552. * ksvg2/svg/SVGGradientElement.cpp:
  1553. (WebCore::SVGGradientElement::notifyAttributeChange):
  1554. 2006-12-20 Geoffrey Garen <ggaren@apple.com>
  1555. Reviewed by Darin Adler.
  1556. Fixed <rdar://problem/4809825>. We need to check isSafeScript when converting
  1557. a Location to string.
  1558. It's really a bug, and poor design, for objects to override toString.
  1559. Subclasses that want custom toString implementations should add a toString
  1560. function to their prototypes instead of overriding the JavaScript ToString
  1561. operation. Following this design pattern would have avoided this bug in the
  1562. first place.
  1563. * bindings/js/kjs_window.cpp:
  1564. (KJS::Location::toString):
  1565. 2006-12-20 David Hyatt <hyatt@apple.com>
  1566. Fix SVG stroking. Make strokeThickness() get pushed into CG immediately
  1567. when set in the GraphicsContext. Remove setLineWidth since it is
  1568. redundant with setStrokeThickness now.
  1569. Reviewed by mitz
  1570. * html/CanvasRenderingContext2D.cpp:
  1571. (WebCore::CanvasRenderingContext2D::setLineWidth):
  1572. * platform/graphics/GraphicsContext.cpp:
  1573. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  1574. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  1575. * platform/graphics/GraphicsContext.h:
  1576. * platform/graphics/cg/GraphicsContextCG.cpp:
  1577. (WebCore::GraphicsContext::drawLine):
  1578. (WebCore::GraphicsContext::drawEllipse):
  1579. (WebCore::GraphicsContext::strokeArc):
  1580. (WebCore::GraphicsContext::drawConvexPolygon):
  1581. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  1582. * platform/graphics/qt/GraphicsContextQt.cpp:
  1583. * platform/mac/FontMac.mm:
  1584. (WebCore::Font::drawComplexText):
  1585. (WebCore::Font::drawGlyphs):
  1586. 2006-12-20 David Hyatt <hyatt@apple.com>
  1587. Fix for bug 11893, white text on form controls. Just make sure that
  1588. all form control drawing in RenderTheme is bracketed by save/restore
  1589. calls.
  1590. Reviewed by adele
  1591. * platform/mac/LocalCurrentGraphicsContext.h:
  1592. * platform/mac/LocalCurrentGraphicsContext.mm:
  1593. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
  1594. (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
  1595. * rendering/RenderThemeMac.mm:
  1596. (WebCore::RenderThemeMac::paintTextField):
  1597. (WebCore::RenderThemeMac::paintTextArea):
  1598. 2006-12-20 Mark Rowe <bdash@webkit.org>
  1599. Reviewed by Anders.
  1600. Fix leak of CGContextRef from GraphicsContext::createImageBuffer.
  1601. * platform/graphics/cg/GraphicsContextCG.cpp:
  1602. (WebCore::GraphicsContext::createImageBuffer): Release newly-created CGContextRef after passing it to GraphicsContext.
  1603. 2006-12-20 Timothy Hatcher <timothy@apple.com>
  1604. Reviewed by Mark Rowe.
  1605. <rdar://problem/4871993> WebCore-421.31 build fails with "Public API change" error when gcc 3.3 is the default compiler
  1606. * bindings/scripts/CodeGeneratorObjC.pm: ignore blank lines in the public API check
  1607. 2006-12-20 David Harrison <harrison@apple.com>
  1608. Reviewed by John Sullivan.
  1609. <rdar://problem/4570218> REGRESSION (?-10.4.7): cntl-K only works the first time
  1610. Test:
  1611. * editing/deleting/delete-to-end-of-paragraph.html
  1612. * editing/TypingCommand.cpp:
  1613. (WebCore::TypingCommand::forwardDeleteKeyPressed):
  1614. If the selection was a caret at the end of the paragraph, extend selection so it wraps to the start of next paragraph (if any),
  1615. 2006-12-20 Nikolas Zimmermann <zimmermann@kde.org>
  1616. Build fix, reviewed by Mitz.
  1617. Fix mac build, by using proper float -> int conversion.
  1618. * rendering/InlineFlowBox.cpp:
  1619. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  1620. 2006-12-20 David Hyatt <hyatt@apple.com>
  1621. Make sure text decoration colors prefer stroke over fill (and honor both of the new CSS properties added
  1622. for these values over color).
  1623. Reviewed by mitz
  1624. Added fast/text/stroking-decorations.html
  1625. * rendering/InlineFlowBox.cpp:
  1626. (WebCore::InlineFlowBox::paintDecorations):
  1627. * rendering/RenderObject.cpp:
  1628. (WebCore::decorationColor):
  1629. (WebCore::RenderObject::getTextDecorationColors):
  1630. 2006-12-20 David Kilzer <ddkilzer@kilzer.net>
  1631. Reviewed by Darin.
  1632. http://bugs.webkit.org/show_bug.cgi?id=11746
  1633. REGRESSION(r14931): Outlook Web Access incorrectly positions the insertion point when replying to e-mail
  1634. Set caret at beginning of text on initial focus.
  1635. Test: fast/forms/textarea-initial-caret-position.html
  1636. * html/HTMLTextAreaElement.cpp:
  1637. (WebCore::HTMLTextAreaElement::updateFocusAppearance):
  1638. 2006-12-20 David Hyatt <hyatt@apple.com>
  1639. Fix for bug 11889, support stroking and filling of HTML text from CSS. This patch adds four new CSS properties:
  1640. text-fill-color, text-stroke-color, text-stroke-width and text-stroke (a shorthand for the other two). Text
  1641. is filled and not stroked by default and does so using the text-fill-color. If this property is not set, then
  1642. color is used.
  1643. Stroking is accomplished by setting a stroke width. Stroke color, if omitted, will be picked up from the color
  1644. property. You can set either color to be transparent or partially transparent. A fully transparent fill color is
  1645. the way to achieve an "outline" effect where only stroking happens.
  1646. Stroking and filling are both customizable inside the ::selection pseudo-element, and so when selecting you can
  1647. vary colors and widths.
  1648. text-shadow applies to both the stroke and the fill.
  1649. text-decorations do not yet respect the stroke/fill colors. This will follow in a later patch.
  1650. Reviewed by mitz
  1651. Added fast/text/stroking.html as a layout test. Enhanced RenderTreeAsText.cpp to dump fill and stroke information.
  1652. * css/CSSComputedStyleDeclaration.cpp:
  1653. (WebCore::):
  1654. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  1655. * css/CSSPropertyNames.in:
  1656. * css/cssparser.cpp:
  1657. (WebCore::CSSParser::parseValue):
  1658. * css/cssstyleselector.cpp:
  1659. (WebCore::CSSStyleSelector::applyProperty):
  1660. * platform/mac/FontMac.mm:
  1661. (WebCore::Font::drawComplexText):
  1662. (WebCore::Font::drawGlyphs):
  1663. * rendering/InlineFlowBox.cpp:
  1664. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  1665. * rendering/InlineFlowBox.h:
  1666. (WebCore::InlineFlowBox::InlineFlowBox):
  1667. (WebCore::InlineFlowBox::maxHorizontalVisualOverflow):
  1668. * rendering/InlineTextBox.cpp:
  1669. (WebCore::updateGraphicsContext):
  1670. (WebCore::InlineTextBox::paint):
  1671. (WebCore::InlineTextBox::paintSelection):
  1672. (WebCore::InlineTextBox::paintMarkedTextBackground):
  1673. (WebCore::InlineTextBox::paintTextMatchMarker):
  1674. * rendering/RenderObject.cpp:
  1675. (WebCore::RenderObject::selectionForegroundColor):
  1676. * rendering/RenderStyle.cpp:
  1677. (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
  1678. (WebCore::StyleCSS3InheritedData::operator==):
  1679. (WebCore::RenderStyle::diff):
  1680. * rendering/RenderStyle.h:
  1681. (WebCore::RenderStyle::textStrokeColor):
  1682. (WebCore::RenderStyle::textStrokeWidth):
  1683. (WebCore::RenderStyle::textFillColor):
  1684. (WebCore::RenderStyle::setTextStrokeColor):
  1685. (WebCore::RenderStyle::setTextStrokeWidth):
  1686. (WebCore::RenderStyle::setTextFillColor):
  1687. (WebCore::RenderStyle::initialTextStrokeWidth):
  1688. * rendering/RenderTreeAsText.cpp:
  1689. (WebCore::operator<<):
  1690. 2006-12-19 Adele Peterson <adele@apple.com>
  1691. Reviewed by Anders.
  1692. - Fix for <rdar://problem/3824247> Select All works even if -khtml-user-select:none; style is set
  1693. Also made user-select:none work on new list boxes, and cleaned up the list box defaultEventHandler.
  1694. Test: editing/selection/select-all-user-select-none.html
  1695. * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Make sure canSelect is true on the root renderer.
  1696. * html/HTMLSelectElement.cpp:
  1697. (WebCore::HTMLSelectElement::canSelectAll): Check canSelect here.
  1698. (WebCore::HTMLSelectElement::selectAll): Added nil check for renderer.
  1699. (WebCore::HTMLSelectElement::defaultEventHandler): Return early if the event has been handled.
  1700. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Check canSelect here.
  1701. * html/HTMLSelectElement.h:
  1702. 2006-12-19 Anders Carlsson <acarlsson@apple.com>
  1703. Reviewed by Adele.
  1704. <rdar://problem/4701860>
  1705. http://bugs.webkit.org/show_bug.cgi?id=11010
  1706. [9A255] Crash in WebCore::EventTargetNode::dispatchEvent
  1707. * html/HTMLScriptElement.cpp:
  1708. (WebCore::HTMLScriptElement::notifyFinished):
  1709. Ref the script element while running the script since it can be freed
  1710. when executing the script.
  1711. 2006-12-19 Darin Adler <darin@apple.com>
  1712. Reviewed by Geoff.
  1713. - <rdar://problem/4885227>
  1714. frame resizing is now live and no longer does direct drawing
  1715. * html/HTMLFrameSetElement.h: Made frameBorder() and noResize() const.
  1716. Added rowLengths() and colLengths() getters so that we don't have to
  1717. have RenderFrameSet as a friend. Stopped using bit fields.
  1718. * html/HTMLFrameSetElement.cpp:
  1719. (WebCore::HTMLFrameSetElement::defaultEventHandler): Removed now-uneeded
  1720. check for contextmenu events. Look at return value from userResize to
  1721. decide whether to mark the event as "default handled". In the case where
  1722. the event is handled, don't call through to the base class.
  1723. * rendering/RenderFrameSet.h: No longer mark HTMLFrameSetElement as a
  1724. friend. Made positionFrames and canResize private, and changed canResize
  1725. to take an IntPoint. Added isResizingRow, isResizingColumn, canResizeRow,
  1726. and canResizeColumn functions to be used soon for cursor feedback.
  1727. Removed override of non-virtual element() function and replaced it with
  1728. a private frameSet() inline function. Grouped all the data members for
  1729. each axis into a GridAxis class, and made one called m_cols and one called
  1730. m_rows. Used vectors for the resizable bits of this instead of new/delete
  1731. arrays. Added a constant named "noSplit" so we don't have to use -1
  1732. everywhere explicitly for this purpose. Renamed setResizing to
  1733. setIsResizing and made it private. Eliminated resizing() function.
  1734. Added new private helper functions, layOutAxis, findNonResizableSplits,
  1735. splitPosition, hitTestSplit, startResizing, and continueResizing.
  1736. Renamed m_resizing to m_isResizing, and m_clientResizing to
  1737. m_isChildResizing.
  1738. * rendering/RenderFrameSet.cpp:
  1739. (WebCore::RenderFrameSet::RenderFrameSet): Removed now-unneeded initialization
  1740. that is handled by the GridAxis and Vector constructors.
  1741. (WebCore::RenderFrameSet::~RenderFrameSet): Ditto (for destructors).
  1742. (WebCore::RenderFrameSet::GridAxis::GridAxis): Added.
  1743. (WebCore::RenderFrameSet::frameSet): Added. Inline function so we don't have
  1744. to cast the result of node() or element() everywhere.
  1745. (WebCore::RenderFrameSet::nodeAtPoint): Updated for name changes.
  1746. (WebCore::RenderFrameSet::GridAxis::resize): Added. Helper function to be used
  1747. in the layout function.
  1748. (WebCore::RenderFrameSet::layOutAxis): Added. Factored out the part of the
  1749. layout function that used to be inside a for loop for the two axes.
  1750. The algorithm is otherwise unchanged.
  1751. (WebCore::RenderFrameSet::findNonResizableSplits): Added. Factored out the
  1752. code that set up the "split variable" arrays from the layout function.
  1753. (WebCore::RenderFrameSet::layout): Moved the bulk of this function into the
  1754. new helpers. This allowed me to remove the use of goto.
  1755. (WebCore::RenderFrameSet::positionFrames): Updated for change to data structures.
  1756. Also added some more local variables for clarity.
  1757. (WebCore::RenderFrameSet::startResizing): Added. Code factored out of the
  1758. userResize function that handles mousedown events that might begin a resize.
  1759. (WebCore::RenderFrameSet::continueResizing): Added. Code factored out of the
  1760. userResize function that handles mouse events that continue a resize already
  1761. in progress, including mouseup events that end the resizing. Uses the new
  1762. splitPosition function so it can be used over and over again while resizing.
  1763. (WebCore::RenderFrameSet::userResize): Restructured to use the new helper
  1764. functions. Removed the direct drawing of a gray bar during mouse movement;
  1765. instead we do the resizing live.
  1766. (WebCore::RenderFrameSet::setIsResizing): Updated for name changes.
  1767. (WebCore::RenderFrameSet::isResizingRow): Added.
  1768. (WebCore::RenderFrameSet::isResizingColumn): Added.
  1769. (WebCore::RenderFrameSet::canResize): Changed to use hitTestSplit for clarity.
  1770. (WebCore::RenderFrameSet::canResizeRow): Added.
  1771. (WebCore::RenderFrameSet::canResizeColumn): Added.
  1772. (WebCore::RenderFrameSet::splitPosition): Added.
  1773. (WebCore::RenderFrameSet::hitTestSplit): Added. Contains the guts of the code
  1774. that was used both in canResize and userResize before -- now it's shared.
  1775. (WebCore::RenderFrameSet::dump): Updated for name changes.
  1776. 2006-12-19 Justin Garcia <justin.garcia@apple.com>
  1777. Reviewed by harrison
  1778. Added Selection::removeAllRanges() and ::addRange()
  1779. * bindings/js/kjs_window.cpp:
  1780. (KJS::SelectionFunc::callAsFunction): Added the bindings for
  1781. the two new functions.
  1782. * bindings/js/kjs_window.h:
  1783. (KJS::Selection::):
  1784. * editing/SelectionController.cpp:
  1785. (WebCore::SelectionController::removeAllRanges): Equivalent
  1786. to clear().
  1787. (WebCore::SelectionController::addRange): Until we support
  1788. discontiguous selections, the new selected range is the
  1789. union of the old selected range and the passed range if
  1790. the two intersect, and the old range if they don't.
  1791. * editing/SelectionController.h:
  1792. 2006-12-19 Beth Dakin <bdakin@apple.com>
  1793. Reviewed by Hyatt.
  1794. Fix for <rdar://problem/4860924> outerHTML gives an out-of-date
  1795. result when applied to a clone
  1796. We were only copying the m_inlineStyleDecl over to clones, but we
  1797. need to copy m_isStyleAttributeValid and
  1798. m_synchronizingStyleAttribute as well to know when we have to
  1799. update style, etc.
  1800. * dom/StyledElement.cpp:
  1801. (WebCore::StyledElement::copyNonAttributeProperties): Copy over all
  1802. three member variables.
  1803. * dom/StyledElement.h:
  1804. * html/HTMLElement.cpp:
  1805. (WebCore::HTMLElement::cloneNode): No longer need to copy the
  1806. inline style decl explicitly because copyNonAttributeProperties()
  1807. will take care of it.
  1808. * html/HTMLInputElement.cpp:
  1809. (WebCore::HTMLInputElement::copyNonAttributeProperties): Call into
  1810. parent class implementation. This is important now that there is
  1811. more than one implementation of this function.
  1812. 2006-12-19 Geoffrey Garen <ggaren@apple.com>
  1813. Reviewed by Darin Adler.
  1814. Fixed http://bugs.webkit.org/show_bug.cgi?id=11880
  1815. REGRESSION (r18304): Assertion failure in -[WebHTMLView _canProcessDragWithDraggingInfo:]
  1816. when dragging over the window's a scroll bar (innerFrame)
  1817. RenderLayer needs to check 'active,' when deciding what to do if hit testing
  1818. hasn't hit anything, because we want the default hit testing mechanism to return the
  1819. document when we hit a scrollbar.
  1820. This problem shows that the idea of 'capturing' was a little too ambitious
  1821. in hit testing, at least given the current state of things. So, I've replaced
  1822. 'capturing' with 'mouseUp,' the condition that provided the immediate need
  1823. for the capturing flag in the first place.
  1824. * page/EventHandler.cpp:
  1825. (WebCore::EventHandler::handleMouseMoveEvent):
  1826. * rendering/HitTestRequest.h: Removed 'capturing'
  1827. (WebCore::HitTestRequest::HitTestRequest):
  1828. * rendering/RenderLayer.cpp:
  1829. (WebCore::RenderLayer::hitTestLayer):
  1830. 2006-12-19 Brady Eidson <beidson@apple.com>
  1831. Reviewed by Ada
  1832. Added a logging channel for network activity for loader work
  1833. * platform/Logging.cpp:
  1834. (WebCore::):
  1835. * platform/Logging.h:
  1836. * platform/mac/LoggingMac.mm:
  1837. (WebCore::InitializeLoggingChannelsIfNecessary):
  1838. 2006-12-19 Justin Garcia <justin.garcia@apple.com>
  1839. Reviewed by hyatt
  1840. <rdar://problem/4888891>
  1841. Docs & Spreadsheets: Comment fails to insert if text is selected in the document
  1842. * dom/Range.cpp:
  1843. (WebCore::Range::surroundContents): If startContainer is a text node,
  1844. it will be split when the range is extracted, and it will be its parent
  1845. that will have to accept newParent. Also cleaned up some code with
  1846. isDescendantOf.
  1847. 2006-12-19 Timothy Hatcher <timothy@apple.com>
  1848. Reviewed by Darin.
  1849. <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
  1850. * WebCore.xcodeproj/project.pbxproj:
  1851. 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
  1852. Reviewed by Oliver.
  1853. Fix SVGList index validation (off-by-one error).
  1854. Adding new testcase js-font-test.svg, which uses SVGLengthList interface.
  1855. (This is a very old ksvg1 testcase, adopted for SVG1.1)
  1856. * ksvg2/svg/SVGList.h:
  1857. (WebCore::SVGList::getItem):
  1858. (WebCore::SVGList::replaceItem):
  1859. (WebCore::SVGList::removeItem):
  1860. 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
  1861. Reviewed by Oliver.
  1862. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11879
  1863. Fix pattern on stroke/fill of text.
  1864. * ksvg2/svg/SVGPatternElement.cpp:
  1865. (WebCore::SVGPatternElement::notifyAttributeChange):
  1866. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  1867. (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
  1868. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1869. (WebCore::SVGPaintServerGradient::teardown):
  1870. (WebCore::SVGPaintServerGradient::setup):
  1871. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1872. (WebCore::SVGPaintServerPattern::setup):
  1873. 2006-12-19 Alice Liu <alice.liu@apple.com>
  1874. Build fix
  1875. * platform/graphics/ImageBuffer.cpp:
  1876. 2006-12-19 Alexey Proskuryakov <ap@webkit.org>
  1877. Reviewed by Darin.
  1878. http://bugs.webkit.org/show_bug.cgi?id=7296
  1879. JavaScript error not thrown when trying to set a CSS property to an invalid value
  1880. * bindings/js/kjs_css.cpp:
  1881. (KJS::DOMCSSStyleDeclaration::put): When not in Dashboard compatibility mode,
  1882. raise exception for invalid values. Also removed an unnecessary call to
  1883. removeProperty(), which prevented the property value from being preserved in
  1884. error case.
  1885. * css/CSSMutableStyleDeclaration.cpp:
  1886. (WebCore::CSSMutableStyleDeclaration::setProperty): Moved the handling of
  1887. empty property values here. Also removed an unnecessary call to removeProperty().
  1888. 2006-12-19 Anders Carlsson <acarlsson@apple.com>
  1889. Reviewed by Adam.
  1890. * dom/Document.h:
  1891. * page/EventHandler.h:
  1892. Use correct forward declarations for HitTestRequest.
  1893. 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
  1894. Build fix, not reviewed.
  1895. Fix Qt/Linux build. Missing GraphicsContext.h include.
  1896. Fix Mac build, by adding lroundf() (I swear this compiled w/o that, locally :-)
  1897. * platform/graphics/qt/ImageBufferQt.cpp:
  1898. * ksvg2/svg/SVGPatternElement.cpp:
  1899. 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
  1900. Reviewed by Sam. Previous attempts reviewed by Oliver & Eric.
  1901. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11867
  1902. Bring back masking, by adding off-screen rendering functionality in GraphicsContext.
  1903. Add new "static GraphicsContext* createImageContext(const IntSize& size, bool grayScale)"
  1904. function, and implement it with CGBitmapContext in the GraphicsContextCG (stubs for Qt.)
  1905. Mask image sizes are dynamically calculated using the passed bounding box in applyMask,
  1906. as it was orignally planned. Gradient stroke mask image sizes aren't hardcoded to 2048x2048
  1907. anymore, but are as well dynamically calculated using getAbsoluteRepaintRect().
  1908. Add new ImageBuffer class encapsulating the size of the image, a platform-specific
  1909. handle (ie. CGImageRef for CG platform) plus the GraphicsContext pointer, obtained
  1910. via GraphicsContext::createImageBuffer. Offer a generic logic for rendering subtrees
  1911. of the rendering tree into a ImageBuffer (see renderSubtreeToImage function)
  1912. ImageBufferCG is completly implemented, ImageBufferQt is stubbed.
  1913. Also add correct default values for x/y/width/height of <mask>.
  1914. Fixes masking related LayoutTests, and speeds up gradient-on-stroke a lot.
  1915. * CMakeLists.txt:
  1916. * WebCore.pro:
  1917. * WebCore.xcodeproj/project.pbxproj:
  1918. * ksvg2/svg/SVGFEImageElement.cpp:
  1919. * ksvg2/svg/SVGImageElement.cpp:
  1920. * ksvg2/svg/SVGMaskElement.cpp:
  1921. (WebCore::SVGMaskElement::SVGMaskElement):
  1922. (WebCore::SVGMaskElement::attributeChanged):
  1923. (WebCore::SVGMaskElement::parseMappedAttribute):
  1924. (WebCore::SVGMaskElement::drawMaskerContent):
  1925. (WebCore::SVGMaskElement::canvasResource):
  1926. * ksvg2/svg/SVGMaskElement.h:
  1927. * ksvg2/svg/SVGPatternElement.cpp:
  1928. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  1929. (WebCore::SVGPatternElement::notifyAttributeChange):
  1930. * ksvg2/svg/SVGPatternElement.h:
  1931. * platform/graphics/GraphicsContext.h:
  1932. * platform/graphics/ImageBuffer.cpp: Added.
  1933. (WebCore::ImageBuffer::renderSubtreeToImage):
  1934. * platform/graphics/ImageBuffer.h: Added.
  1935. * platform/graphics/cg/GraphicsContextCG.cpp:
  1936. (WebCore::GraphicsContext::createImageBuffer):
  1937. * platform/graphics/cg/ImageBufferCG.cpp: Added.
  1938. (WebCore::ImageBuffer::ImageBuffer):
  1939. (WebCore::ImageBuffer::~ImageBuffer):
  1940. (WebCore::ImageBuffer::size):
  1941. (WebCore::ImageBuffer::context):
  1942. (WebCore::ImageBuffer::cgImage):
  1943. * platform/graphics/mac/GraphicsContextMac.mm:
  1944. * platform/graphics/qt/GraphicsContextQt.cpp:
  1945. (WebCore::GraphicsContext::createImageBuffer):
  1946. * platform/graphics/qt/ImageBufferQt.cpp: Added.
  1947. (WebCore::ImageBuffer::ImageBuffer):
  1948. (WebCore::ImageBuffer::~ImageBuffer):
  1949. (WebCore::ImageBuffer::size):
  1950. (WebCore::ImageBuffer::context):
  1951. * platform/graphics/svg/SVGPaintServerGradient.h:
  1952. * platform/graphics/svg/SVGPaintServerPattern.cpp:
  1953. (WebCore::SVGPaintServerPattern::tile):
  1954. (WebCore::SVGPaintServerPattern::setTile):
  1955. * platform/graphics/svg/SVGPaintServerPattern.h:
  1956. * platform/graphics/svg/SVGResourceImage.h: Removed.
  1957. * platform/graphics/svg/SVGResourceMasker.cpp:
  1958. (WebCore::SVGResourceMasker::setMask):
  1959. (WebCore::SVGResourceMasker::mask):
  1960. * platform/graphics/svg/SVGResourceMasker.h:
  1961. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  1962. (WebCore::SVGPaintServerGradient::teardown):
  1963. (WebCore::SVGPaintServerGradient::renderPath):
  1964. (WebCore::SVGPaintServerGradient::setup):
  1965. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  1966. (WebCore::patternCallback):
  1967. (WebCore::SVGPaintServerPattern::setup):
  1968. * platform/graphics/svg/cg/SVGResourceImageCg.cpp: Removed.
  1969. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  1970. (WebCore::SVGResourceMasker::applyMask):
  1971. * platform/graphics/svg/qt/SVGResourceImageQt.cpp: Removed.
  1972. 2006-12-19 David Hyatt <hyatt@apple.com>
  1973. Make sure to initialize the CG fill and stroke colors to our initial fill/stroke colors when first
  1974. constructing a GraphicsContextCG. Because Safari actually draws text in the bookmarks bar using GraphicsContext
  1975. and sets a fill color, this could only really be seen in another WebKit app.
  1976. Patched GraphicsContextQt as well, since it has the same pattern.
  1977. Reviewed by bdash
  1978. * platform/graphics/cg/GraphicsContextCG.cpp:
  1979. (WebCore::setCGFillColor):
  1980. (WebCore::setCGStrokeColor):
  1981. (WebCore::GraphicsContext::GraphicsContext):
  1982. 2006-12-19 Lars Knoll <lars@trolltech.com>
  1983. Reviewed by Rob.
  1984. * loader/FrameLoader.cpp:
  1985. (WebCore::FrameLoader::URL):\
  1986. Fix a crash, because of the incompletely ported loader
  1987. * platform/qt/FontQt.cpp:
  1988. (WebCore::Font::drawGlyphs):
  1989. Adapt to the changes in GraphicsContext
  1990. 2006-12-19 David Hyatt <hyatt@apple.com>
  1991. Convert stroke thickness to a float. This allows the thickness argument to strokeArc to be eliminated.
  1992. Reviewed by olliej
  1993. * platform/graphics/GraphicsContext.cpp:
  1994. (WebCore::GraphicsContext::setStrokeThickness):
  1995. (WebCore::GraphicsContext::strokeThickness):
  1996. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  1997. * platform/graphics/GraphicsContext.h:
  1998. * platform/graphics/cg/GraphicsContextCG.cpp:
  1999. (WebCore::GraphicsContext::drawEllipse):
  2000. (WebCore::GraphicsContext::strokeArc):
  2001. * platform/graphics/qt/GraphicsContextQt.cpp:
  2002. (WebCore::GraphicsContext::strokeArc):
  2003. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  2004. * rendering/RenderObject.cpp:
  2005. (WebCore::RenderObject::drawBorderArc):
  2006. 2006-12-19 David Hyatt <hyatt@apple.com>
  2007. Rename drawArc to strokeArc and remove its strange behavior of trying to "fill" by stroking using the passed in
  2008. thickness. Now the method is purely about stroking an arc and always uses the passed in thickness. Fix the
  2009. border-radius code that calls the method so that it makes more sense now. If stroke thickness is converted
  2010. to a float, then even the extra argument can go away, and this method can be a clean stroke of an arc.
  2011. Make sure to get square list markers right by setting both stroke and fill color properly.
  2012. Reviewed by mitz, olliej
  2013. * platform/graphics/GraphicsContext.h:
  2014. * platform/graphics/cg/GraphicsContextCG.cpp:
  2015. (WebCore::GraphicsContext::strokeArc):
  2016. * platform/graphics/qt/GraphicsContextQt.cpp:
  2017. (WebCore::GraphicsContext::strokeArc):
  2018. * rendering/RenderListMarker.cpp:
  2019. (WebCore::RenderListMarker::paint):
  2020. * rendering/RenderObject.cpp:
  2021. (WebCore::RenderObject::drawBorderArc):
  2022. 2006-12-18 Geoffrey Garen <ggaren@apple.com>
  2023. Reviewed by Beth Dakin.
  2024. Fixed <rdar://problem/4549745> REGRESSION: scrolling on Google maps
  2025. continues after the mouse is released outside the window (8137)
  2026. The RenderLayer hit testing code assumed that, when the mouse was outside
  2027. the WebView, we only needed to capture mouse events while the mouse was
  2028. down (in other words, mouse move events). We actually need to capture mouse
  2029. up events, as well.
  2030. * dom/Document.cpp:
  2031. (WebCore::Document::prepareMouseEvent): To match EventHandler::prepareMouseEvent,
  2032. I changed this function to take a HitTestRequest instead of the broken-out values of one.
  2033. For clarity, I moved an assert to top of function.
  2034. (WebCore::Document::addMarker): Removed stray character.
  2035. * dom/Document.h:
  2036. * page/EventHandler.cpp: Changed prepareMouseEvent to take a HitTestRequest,
  2037. instead of the broken-out values of one. This simplified the code, and made
  2038. the task of adding an extra, optional parameter to hit testing much easier.
  2039. (WebCore::EventHandler::handleMousePressEvent):
  2040. (WebCore::EventHandler::handleMouseDoubleClickEvent):
  2041. (WebCore::EventHandler::handleMouseMoveEvent): Set the 'capturing' flag
  2042. if the move occurs while the mouse is down. This replaces RenderLayer's
  2043. heavy-handed assumption that we should always capture if the mouse is down.
  2044. (WebCore::EventHandler::handleMouseReleaseEvent): Set the 'capturing'
  2045. flag, since we assume every mouse up follows a mouse down inside the WebView.
  2046. (We'd like to ASSERT as much, but DRT's event sending mechanism is crazy, and
  2047. violates this axiom.)
  2048. (WebCore::EventHandler::updateDragAndDrop):
  2049. (WebCore::EventHandler::prepareMouseEvent):
  2050. (WebCore::EventHandler::handleWheelEvent):
  2051. (WebCore::EventHandler::sendContextMenuEvent):
  2052. (WebCore::EventHandler::hoverTimerFired):
  2053. * page/EventHandler.h:
  2054. * rendering/HitTestRequest.h:
  2055. (WebCore::HitTestRequest::HitTestRequest): Added 'capturing' data member,
  2056. which specifies whether the hit test should capture mouse events that occur
  2057. outside the WebView.
  2058. * rendering/RenderLayer.cpp:
  2059. (WebCore::RenderLayer::hitTestLayer): Moved misleading comment to where
  2060. it actually applies. Changed 'active' test to new 'capturing' test, so
  2061. the hit test requester can decide whether we need to capture mouse events
  2062. that don't intersect any layer.
  2063. 2006-12-18 David Hyatt <hyatt@apple.com>
  2064. Make sure a stroke style is set for list bullets.
  2065. Reviewed by mitz
  2066. * rendering/RenderListMarker.cpp:
  2067. (WebCore::RenderListMarker::paint):
  2068. 2006-12-18 Ada Chan <adachan@apple.com>
  2069. Reviewed by Adam.
  2070. Moved implementation of Frame::scheduleClose to Frame.cpp.
  2071. Added canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon
  2072. in Chrome and ChromeClient.
  2073. * WebCore.exp:
  2074. * bridge/win/FrameWin.h:
  2075. * page/Chrome.cpp:
  2076. (WebCore::Chrome::canRunBeforeUnloadConfirmPanel):
  2077. (WebCore::Chrome::runBeforeUnloadConfirmPanel):
  2078. (WebCore::Chrome::closeWindowSoon):
  2079. * page/Chrome.h:
  2080. * page/ChromeClient.h:
  2081. * page/Frame.cpp:
  2082. (WebCore::Frame::shouldClose):
  2083. (WebCore::Frame::scheduleClose):
  2084. * page/Frame.h:
  2085. * page/mac/FrameMac.h:
  2086. * page/mac/FrameMac.mm:
  2087. * page/mac/WebCoreFrameBridge.h:
  2088. * platform/gdk/FrameGdk.h:
  2089. * platform/gdk/TemporaryLinkStubs.cpp:
  2090. (FrameGdk::issuePasteCommand):
  2091. * platform/qt/FrameQt.cpp:
  2092. * platform/qt/FrameQt.h:
  2093. * platform/win/TemporaryLinkStubs.cpp:
  2094. (WebCore::FrameWin::issuePasteCommand):
  2095. 2006-12-18 Alice Liu <alice.liu@apple.com>
  2096. Reviewed by Adam.
  2097. Fixed <rdar://problem/4766174> REGRESSION(r16081): Aspect eWFM: Unable to log in
  2098. * loader/FrameLoader.cpp:
  2099. (WebCore::FrameLoader::didExplicitOpen):
  2100. 2006-12-18 David Hyatt <hyatt@apple.com>
  2101. Add save/restore calls around the painting of text areas on Mac, since the methods in question
  2102. alter the current fill color in CG destructively.
  2103. Reviewed by olliej
  2104. * rendering/RenderThemeMac.mm:
  2105. (WebCore::RenderThemeMac::paintButton):
  2106. (WebCore::RenderThemeMac::paintTextField):
  2107. (WebCore::RenderThemeMac::paintTextArea):
  2108. (WebCore::RenderThemeMac::paintSliderTrack):
  2109. (WebCore::RenderThemeMac::paintSliderThumb):
  2110. 2006-12-18 David Hyatt <hyatt@apple.com>
  2111. Fix list markers to properly stroke and fill. I screwed this up when changing how text draws.
  2112. Reviewed by olliej
  2113. * rendering/RenderListMarker.cpp:
  2114. (WebCore::RenderListMarker::paint):
  2115. 2006-12-18 David Hyatt <hyatt@apple.com>
  2116. Eliminate the Pen object in favor of separate stroke variables, since most code just wants to set the
  2117. stroke color. This also makes it easier for us to push only stroke color through into CG synchronously
  2118. while leaving the others alone.
  2119. Reviewed by olliej
  2120. * platform/graphics/GraphicsContext.cpp:
  2121. (WebCore::GraphicsContextState::GraphicsContextState):
  2122. (WebCore::GraphicsContext::setStrokeThickness):
  2123. (WebCore::GraphicsContext::setStrokeStyle):
  2124. (WebCore::GraphicsContext::setStrokeColor):
  2125. (WebCore::GraphicsContext::strokeThickness):
  2126. (WebCore::GraphicsContext::strokeStyle):
  2127. (WebCore::GraphicsContext::strokeColor):
  2128. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  2129. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  2130. * platform/graphics/GraphicsContext.h:
  2131. (WebCore::):
  2132. * platform/graphics/cg/GraphicsContextCG.cpp:
  2133. (WebCore::GraphicsContext::drawRect):
  2134. (WebCore::GraphicsContext::drawLine):
  2135. (WebCore::GraphicsContext::drawEllipse):
  2136. (WebCore::GraphicsContext::drawArc):
  2137. (WebCore::GraphicsContext::drawConvexPolygon):
  2138. (WebCore::GraphicsContext::drawLineForText):
  2139. (WebCore::GraphicsContext::setPlatformStrokeColor):
  2140. * platform/graphics/qt/GraphicsContextQt.cpp:
  2141. (WebCore::toQPenStyle):
  2142. (WebCore::GraphicsContext::setPlatformStrokeColor):
  2143. (WebCore::GraphicsContext::setPlatformStrokeStyle):
  2144. (WebCore::GraphicsContext::setPlatformStrokeThickness):
  2145. * platform/mac/FontMac.mm:
  2146. (WebCore::Font::drawComplexText):
  2147. (WebCore::Font::drawGlyphs):
  2148. * rendering/InlineFlowBox.cpp:
  2149. (WebCore::InlineFlowBox::paintDecorations):
  2150. * rendering/InlineTextBox.cpp:
  2151. (WebCore::updateTextColor):
  2152. (WebCore::InlineTextBox::paint):
  2153. (WebCore::InlineTextBox::paintDecoration):
  2154. (WebCore::InlineTextBox::paintMarkedTextUnderline):
  2155. * rendering/RenderBlock.cpp:
  2156. (WebCore::RenderBlock::paintObject):
  2157. * rendering/RenderBox.cpp:
  2158. * rendering/RenderBox.h:
  2159. * rendering/RenderFrameSet.cpp:
  2160. (WebCore::RenderFrameSet::userResize):
  2161. * rendering/RenderImage.cpp:
  2162. (WebCore::RenderImage::paint):
  2163. * rendering/RenderObject.cpp:
  2164. (WebCore::RenderObject::drawBorderArc):
  2165. (WebCore::RenderObject::drawBorder):
  2166. * rendering/RenderTable.cpp:
  2167. (WebCore::RenderTable::paint):
  2168. * rendering/RenderTableCell.cpp:
  2169. (WebCore::RenderTableCell::paint):
  2170. * rendering/RenderText.cpp:
  2171. * rendering/RenderThemeMac.mm:
  2172. (WebCore::RenderThemeMac::paintMenuListButton):
  2173. 2006-12-18 Darin Adler <darin@apple.com>
  2174. Reviewed by Adele.
  2175. - fix <rdar://problem/4889565> REGRESSION (r17597): Command-clicking a submit
  2176. button does not submit in a new tab/window
  2177. http://bugs.webkit.org/show_bug.cgi?id=11858
  2178. - change DOMActivate events to be created as a part of default handling of
  2179. click events instead of having the sender of the click event also send
  2180. a DOMActivate event
  2181. - fixed some edge cases in the slider thumb element handler; since this is
  2182. inside a shadow DOM, it's likely none of these can arise in practice
  2183. No easy way to test the command-click part since the behavior is in Safari.
  2184. To make a test we'd have to provide JavaScript access to the modifiers passed
  2185. to the policy delegate or have some way to query the underlying event from
  2186. JavaScript.
  2187. * dom/EventTargetNode.cpp: Change all assert to ASSERT.
  2188. (WebCore::EventTargetNode::dispatchMouseEvent): Renamed some local variables
  2189. for clarity. Added a RefPtr for relatedTarget since it might be deallocated
  2190. by the handlers for the click event and is used in the code that creates the
  2191. dblclick event. Removed the code to create a DOMActivate event, since that's
  2192. now done in the default event handler for the click event.
  2193. (WebCore::EventTargetNode::defaultEventHandler): Added code to check for a
  2194. click event and dispatch a DOMActivate event using the click event as the
  2195. underlying event. The part of this that fixes the bug is that we use the
  2196. click event as the underlying event; the old code used the same underlying
  2197. event as for the click event, not the click event itself. The underlying event
  2198. for the click event is usually 0, since we propagate the key state to the click
  2199. event instead of using an underlying event in the common case.
  2200. * dom/Document.cpp: (WebCore::Document::defaultEventHandler): Added call
  2201. to the base class's defaultEventHandler function, except in the case where
  2202. the event is already handled.
  2203. * html/HTMLInputElement.h: Removed clickX() and clickY().
  2204. * html/HTMLInputElement.cpp:
  2205. (WebCore::HTMLInputElement::appendFormData): Use xPos and yPos directly,
  2206. so we can remove clickX() and clickY().
  2207. (WebCore::HTMLInputElement::defaultEventHandler): Removed code that calls
  2208. setDefaultHandled for click events since we are just recording the x and y
  2209. coordinates of the events; that's not "handling" an event, and setting
  2210. the flag prevents us from calling the base class's default event handler,
  2211. which is now needed to submmit the form.
  2212. * rendering/RenderSlider.cpp:
  2213. (WebCore::HTMLSliderThumbElement::defaultEventHandler):
  2214. Added some missing isMouseEvent checks in code that casts to a MouseEvent.
  2215. Added check document()->frame() in code that manipulates the frame so that
  2216. fake events, which might happen when there's no frame, can't cause a crash.
  2217. Added an m_inDragMode check so we don't try to handle mouseup events when
  2218. we are not handling a drag. Remove the setDefaultHandled call from the
  2219. mousemove case, because mousemove events are observed, and not "handled"
  2220. in the "nobody else should look at this event" sense. Added a call to the
  2221. base class's default event handler, and some return statements so that we
  2222. won't call it when the event has been handled.
  2223. * html/HTMLLabelElement.cpp: (WebCore::HTMLLabelElement::defaultEventHandler):
  2224. Removed an unneeded "return" for a function that has no return value.
  2225. 2006-12-18 Beth Dakin <bdakin@apple.com>
  2226. Reviewed by Adele.
  2227. Fix for <rdar://problem/4749770> WebCore crashes on a blog website
  2228. in WebCore::InlineBox::root() + 6
  2229. We null-check inlineBoxWrapper everywhere else in the code except
  2230. for these 3 spots. This patch adds them in. Only one of the checks
  2231. is required to fix the crash. What we render for the test case now
  2232. matches shipping Safari, but still seems wrong because we do not
  2233. match Firefox. I will file a follow-up about the rendering problem.
  2234. * rendering/RenderListItem.cpp:
  2235. (WebCore::RenderListItem::positionListMarker): This is the required
  2236. null-check.
  2237. * rendering/RenderListMarker.cpp:
  2238. (WebCore::RenderListMarker::setSelectionState): Null-check for
  2239. safety.
  2240. (WebCore::RenderListMarker::selectionRect): Same.
  2241. 2006-12-18 David Hyatt <hyatt@apple.com>
  2242. Fix performance regression caused by adding setting of stroke colors as well as fill colors to every font drawing
  2243. call on Mac. Fix is rather involved:
  2244. (1) Fill color is now updated in CG synchronously. There is no more delay in the push. I used the model that
  2245. Qt added for this, setPlatformFillColor, so we're the same now.
  2246. (2) Text was being drawn using the pen color, which is tantamount to using the stroke color. Since text in HTML
  2247. is really a fill and not a stroke, all cross-platform code that draws text has been patched to use fill instead
  2248. of the pen.
  2249. (3) Added a new API to GraphicsContext to set the text drawing mode to any combination of fill/stroke/clip.
  2250. Ports should implement setPlatformTextDrawingMode or just query the mode in their drawGlyphs/drawComplexText
  2251. method on their Font class to get the new functionality.
  2252. (4) InlineTextBox will set the fill and stroke colors appropriately now rather than always assuming fill.
  2253. (5) Fixed a bug in GraphicsContextCG where fillRectWithColor was updating the CG fill color in the state object
  2254. as a side effect, creating a mismatch between CG's fill color and the stored cross-platform fill color.
  2255. Reviewed by olliej
  2256. * platform/graphics/GraphicsContext.cpp:
  2257. (WebCore::GraphicsContextState::GraphicsContextState):
  2258. (WebCore::GraphicsContext::textDrawingMode):
  2259. (WebCore::GraphicsContext::setTextDrawingMode):
  2260. (WebCore::GraphicsContext::setPlatformTextDrawingMode):
  2261. (WebCore::GraphicsContext::setPlatformPen):
  2262. * platform/graphics/GraphicsContext.h:
  2263. * platform/graphics/cg/GraphicsContextCG.cpp:
  2264. (WebCore::GraphicsContext::fillRect):
  2265. (WebCore::GraphicsContext::setPlatformTextDrawingMode):
  2266. (WebCore::GraphicsContext::setPlatformFillColor):
  2267. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  2268. (WebCore::SVGPaintServerGradient::teardown):
  2269. (WebCore::SVGPaintServerGradient::setup):
  2270. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  2271. (WebCore::SVGPaintServerPattern::setup):
  2272. (WebCore::SVGPaintServerPattern::teardown):
  2273. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  2274. (WebCore::SVGPaintServerSolid::setup):
  2275. * platform/mac/FontMac.mm:
  2276. (WebCore::Font::drawComplexText):
  2277. (WebCore::Font::drawGlyphs):
  2278. * platform/mac/WebCoreTextRenderer.mm:
  2279. (WebCoreDrawTextAtPoint):
  2280. * rendering/EllipsisBox.cpp:
  2281. (WebCore::EllipsisBox::paint):
  2282. * rendering/InlineTextBox.cpp:
  2283. (WebCore::correctedTextColor):
  2284. (WebCore::updateTextColor):
  2285. (WebCore::InlineTextBox::paint):
  2286. (WebCore::InlineTextBox::paintSelection):
  2287. (WebCore::InlineTextBox::paintMarkedTextBackground):
  2288. (WebCore::InlineTextBox::paintTextMatchMarker):
  2289. * rendering/RenderFileUploadControl.cpp:
  2290. (WebCore::RenderFileUploadControl::paintObject):
  2291. * rendering/RenderListBox.cpp:
  2292. (WebCore::RenderListBox::paintItemForeground):
  2293. * rendering/RenderListMarker.cpp:
  2294. (WebCore::RenderListMarker::paint):
  2295. 2006-12-18 Matt Perry <mpcomplete@chromium.org>
  2296. Reviewed by Maciej.
  2297. Bug 11760: Animated GIFs with offsets crash WebKit
  2298. http://bugs.webkit.org/show_bug.cgi?id=11760
  2299. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  2300. ensure we don't write past the end of the image buffer when the offset
  2301. is nonzero. also fix the way we composite frames when animating.
  2302. (WebCore::GIFImageDecoder::initFrameBuffer):
  2303. (WebCore::GIFImageDecoder::haveDecodedRow):
  2304. 2006-12-18 Pam Greene <pam@chromium.org>
  2305. Reviewed by Darin.
  2306. Changed hidden input controls to reset to their initial values
  2307. when the form is reset. Also added layout tests for resetting
  2308. other input controls.
  2309. Fixes http://bugs.webkit.org/show_bug.cgi?id=11866
  2310. * html/HTMLInputElement.cpp:
  2311. (WebCore::HTMLInputElement::setValue):
  2312. (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
  2313. 2006-12-18 Alice Liu <alice.liu@apple.com>
  2314. Oops forgot a file.
  2315. * editing/EditorDeleteAction.h: Added.
  2316. (WebCore::):
  2317. 2006-12-18 Alice Liu <alice.liu@apple.com>
  2318. Reviewed by Adam.
  2319. Have the Editor handle deletion instead of WebHTMLView
  2320. * WebCore.exp:
  2321. Exposed Editor::deleteWithDirection and ::deleteRange()
  2322. * WebCore.xcodeproj/project.pbxproj:
  2323. Added EditorDeleteAction.h
  2324. * editing/Editor.cpp:
  2325. (WebCore::Editor::deleteRange):
  2326. (WebCore::Editor::deleteWithDirection):
  2327. Implemented
  2328. (WebCore::Editor::deleteSelectionWithSmartDelete):
  2329. Overloaded to take no params, in which case canSmartCopyOrDelete is called
  2330. (WebCore::execCopy):
  2331. (WebCore::execCut):
  2332. (WebCore::execDelete):
  2333. (WebCore::execPaste):
  2334. Call the editor instead of asking frame to cut/copy/paste/delete
  2335. (WebCore::execBackwardDelete):
  2336. (WebCore::execForwardDelete):
  2337. Call deleteWithDirection instead of just executing a TypingCommand
  2338. (WebCore::CommandEntry::):
  2339. distinguished delete (which deletes selection) from backwards delete (single character, no selection)
  2340. (WebCore::Editor::cut):
  2341. (WebCore::Editor::performDelete):
  2342. Trivial changes
  2343. * editing/Editor.h:
  2344. Added some functons.
  2345. (WebCore::Editor::setStartNewKillRingSequence):
  2346. (WebCore::Editor::propogateDOMException):
  2347. (WebCore::Editor::addToKillRing):
  2348. * editing/mac/EditorMac.mm:
  2349. Factored out support for Kill Rings to this file
  2350. * platform/mac/PasteboardMac.mm:
  2351. Trivial change
  2352. 2006-12-18 Kevin McCullough <KMcCullough@apple.com>
  2353. Reviewed by Oliver.
  2354. - Removed CG header include
  2355. * platform/graphics/ImageSource.h:
  2356. 2006-12-18 John Sullivan <sullivan@apple.com>
  2357. Reviewed by Tim Hatcher
  2358. - fixed <rdar://problem/4887764> GMAIL: Crash occurs at WebCore::Range::cloneRange()
  2359. when I ctrl-click in a empty list item
  2360. * editing/mac/EditorMac.mm:
  2361. (WebCore::isRangeUngrammatical):
  2362. bail out immediately for nil range (which selectionController()->toRange().get()
  2363. can return). Also save some work by bailing out immediately for collapsed ranges.
  2364. 2006-12-18 Alice Liu <alice.liu@apple.com>
  2365. Leopard build fix.
  2366. * platform/ContextMenu.cpp:
  2367. (WebCore::ContextMenu::checkOrEnableIfNeeded):
  2368. 2006-12-17 Zack Rusin <zack@kde.org>
  2369. Fix compilation after the const changes.
  2370. * platform/qt/ContextMenuItemQt.cpp:
  2371. (WebCore::ContextMenuItem::type):
  2372. (WebCore::ContextMenuItem::setTitle):
  2373. (WebCore::ContextMenuItem::setChecked):
  2374. (WebCore::ContextMenuItem::setEnabled):
  2375. 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
  2376. Reviewed by Eric.
  2377. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10956
  2378. Long standing regression. The old code in FontMac.mm, used set the fill/stroke
  2379. color "[nsColor(graphicsContext->pen().color()) set];", and current code only
  2380. sets the fill color. Reverting to old behaviour fixes gradient-on-stroke-of-text.
  2381. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  2382. (WebCore::SVGPaintServerGradient::setup):
  2383. * platform/mac/FontMac.mm:
  2384. (WebCore::Font::drawComplexText):
  2385. (WebCore::Font::drawGlyphs):
  2386. 2006-12-17 Lars Naesbye Christensen <lars@naesbye.dk>
  2387. Reviewed, tweaked and landed by Alexey.
  2388. http://bugs.webkit.org/show_bug.cgi?id=11798
  2389. [CSS 3] missing cursor support for 'none'
  2390. * Resources/noneCursor.png: Added.
  2391. * WebCore.xcodeproj/project.pbxproj:
  2392. * css/CSSComputedStyleDeclaration.cpp:
  2393. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  2394. * css/CSSValueKeywords.in:
  2395. * css/cssparser.cpp: Also fixed previously broken -webkit-background-composite: copy.
  2396. * manual-tests/cursor.html:
  2397. * page/EventHandler.cpp:
  2398. (WebCore::selectCursor):
  2399. * platform/Cursor.h:
  2400. * platform/gdk/CursorGdk.cpp:
  2401. (WebCore::noneCursor):
  2402. * platform/mac/CursorMac.mm:
  2403. (WebCore::noneCursor):
  2404. * platform/qt/CursorQt.cpp:
  2405. (WebCore::noneCursor):
  2406. * platform/win/CursorWin.cpp:
  2407. (WebCore::noneCursor):
  2408. * rendering/RenderStyle.h:
  2409. (WebCore::):
  2410. 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
  2411. Build fix, not reviewed.
  2412. This should hopefully fix Qt build.
  2413. * ksvg2/svg/SVGLength.cpp: Include math.h for Qt/Linux build.
  2414. 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
  2415. Reviewed by Rob.
  2416. Remove SVGHelper class. Move the last static function "parseSeparatedList"
  2417. to the only place using it: SVGAnimationElement. Update all build files.
  2418. Remove any lazy_create macro usage, by what it does - cleaner.
  2419. * CMakeLists.txt:
  2420. * WebCore.pro:
  2421. * WebCore.xcodeproj/project.pbxproj:
  2422. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  2423. * ksvg2/svg/SVGAElement.cpp:
  2424. * ksvg2/svg/SVGAnimationElement.cpp:
  2425. (WebCore::parseSeparatedList):
  2426. (WebCore::SVGAnimationElement::parseMappedAttribute):
  2427. * ksvg2/svg/SVGCircleElement.cpp:
  2428. * ksvg2/svg/SVGClipPathElement.cpp:
  2429. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  2430. * ksvg2/svg/SVGCursorElement.cpp:
  2431. * ksvg2/svg/SVGEllipseElement.cpp:
  2432. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  2433. * ksvg2/svg/SVGFEBlendElement.cpp:
  2434. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  2435. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  2436. * ksvg2/svg/SVGFECompositeElement.cpp:
  2437. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  2438. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  2439. * ksvg2/svg/SVGFEFloodElement.cpp:
  2440. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  2441. * ksvg2/svg/SVGFEImageElement.cpp:
  2442. * ksvg2/svg/SVGFELightElement.cpp:
  2443. * ksvg2/svg/SVGFEMergeElement.cpp:
  2444. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  2445. * ksvg2/svg/SVGFEOffsetElement.cpp:
  2446. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  2447. * ksvg2/svg/SVGFETileElement.cpp:
  2448. * ksvg2/svg/SVGFilterElement.cpp:
  2449. * ksvg2/svg/SVGForeignObjectElement.cpp:
  2450. * ksvg2/svg/SVGGradientElement.cpp:
  2451. * ksvg2/svg/SVGHelper.cpp: Removed.
  2452. * ksvg2/svg/SVGHelper.h: Removed.
  2453. * ksvg2/svg/SVGImageElement.cpp:
  2454. * ksvg2/svg/SVGLength.cpp:
  2455. * ksvg2/svg/SVGLineElement.cpp:
  2456. * ksvg2/svg/SVGLinearGradientElement.cpp:
  2457. * ksvg2/svg/SVGMarkerElement.cpp:
  2458. * ksvg2/svg/SVGMaskElement.cpp:
  2459. * ksvg2/svg/SVGPathElement.cpp:
  2460. * ksvg2/svg/SVGPatternElement.cpp:
  2461. * ksvg2/svg/SVGPolyElement.cpp:
  2462. * ksvg2/svg/SVGRadialGradientElement.cpp:
  2463. * ksvg2/svg/SVGRectElement.cpp:
  2464. * ksvg2/svg/SVGStopElement.cpp:
  2465. * ksvg2/svg/SVGStyledElement.cpp:
  2466. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  2467. * ksvg2/svg/SVGSymbolElement.cpp:
  2468. * ksvg2/svg/SVGTests.cpp:
  2469. * ksvg2/svg/SVGTextContentElement.cpp:
  2470. * ksvg2/svg/SVGTextElement.cpp:
  2471. * ksvg2/svg/SVGTextPositioningElement.cpp:
  2472. * ksvg2/svg/SVGTransformable.cpp:
  2473. * ksvg2/svg/SVGURIReference.cpp:
  2474. * ksvg2/svg/SVGUseElement.cpp:
  2475. * ksvg2/svg/SVGViewElement.cpp:
  2476. * ksvg2/svg/SVGZoomAndPan.cpp:
  2477. 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
  2478. Reviewed by Rob.
  2479. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11813
  2480. Pass SVGLength around by value, remove any SVGLength* usage.
  2481. Bindings work fine, as the SVG POD JS Wrapper stuff is already in svn.
  2482. No new regressions, none fixed. But the code itself is much cleaner.
  2483. And some problems with width-full-percentage.svg have been fixed, viewport
  2484. clipping works in any case now, also for percentual width/height values set on <svg>.
  2485. * bindings/scripts/CodeGenerator.pm:
  2486. * bindings/scripts/CodeGeneratorJS.pm:
  2487. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  2488. (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
  2489. * ksvg2/svg/SVGAnimatedTemplate.h:
  2490. * ksvg2/svg/SVGCircleElement.cpp:
  2491. (WebCore::SVGCircleElement::SVGCircleElement):
  2492. (WebCore::SVGCircleElement::parseMappedAttribute):
  2493. (WebCore::SVGCircleElement::toPathData):
  2494. * ksvg2/svg/SVGCircleElement.h:
  2495. * ksvg2/svg/SVGCursorElement.cpp:
  2496. (WebCore::SVGCursorElement::SVGCursorElement):
  2497. (WebCore::SVGCursorElement::parseMappedAttribute):
  2498. * ksvg2/svg/SVGCursorElement.h:
  2499. * ksvg2/svg/SVGElement.cpp:
  2500. * ksvg2/svg/SVGEllipseElement.cpp:
  2501. (WebCore::SVGEllipseElement::SVGEllipseElement):
  2502. (WebCore::SVGEllipseElement::parseMappedAttribute):
  2503. (WebCore::SVGEllipseElement::toPathData):
  2504. * ksvg2/svg/SVGEllipseElement.h:
  2505. * ksvg2/svg/SVGFilterElement.cpp:
  2506. (WebCore::SVGFilterElement::SVGFilterElement):
  2507. (WebCore::SVGFilterElement::parseMappedAttribute):
  2508. (WebCore::SVGFilterElement::canvasResource):
  2509. * ksvg2/svg/SVGFilterElement.h:
  2510. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  2511. (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
  2512. (WebCore::SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
  2513. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  2514. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  2515. * ksvg2/svg/SVGFitToViewBox.cpp:
  2516. (WebCore::SVGFitToViewBox::parseViewBox):
  2517. * ksvg2/svg/SVGForeignObjectElement.cpp:
  2518. (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
  2519. (WebCore::SVGForeignObjectElement::parseMappedAttribute):
  2520. (WebCore::SVGForeignObjectElement::createRenderer):
  2521. (WebCore::SVGForeignObjectElement::childShouldCreateRenderer):
  2522. * ksvg2/svg/SVGForeignObjectElement.h:
  2523. * ksvg2/svg/SVGHelper.cpp:
  2524. (WebCore::SVGHelper::parseSeparatedList):
  2525. * ksvg2/svg/SVGHelper.h:
  2526. * ksvg2/svg/SVGImageElement.cpp:
  2527. (WebCore::SVGImageElement::SVGImageElement):
  2528. (WebCore::SVGImageElement::parseMappedAttribute):
  2529. * ksvg2/svg/SVGImageElement.h:
  2530. * ksvg2/svg/SVGLength.cpp:
  2531. (WebCore::storeUnit):
  2532. (WebCore::extractMode):
  2533. (WebCore::extractType):
  2534. (WebCore::lengthTypeToString):
  2535. (WebCore::stringToLengthType):
  2536. (WebCore::SVGLength::SVGLength):
  2537. (WebCore::SVGLength::unitType):
  2538. (WebCore::SVGLength::value):
  2539. (WebCore::SVGLength::setValue):
  2540. (WebCore::SVGLength::setValueInSpecifiedUnits):
  2541. (WebCore::SVGLength::setValueAsString):
  2542. (WebCore::SVGLength::valueAsString):
  2543. (WebCore::SVGLength::newValueSpecifiedUnits):
  2544. (WebCore::SVGLength::convertToSpecifiedUnits):
  2545. (WebCore::SVGLength::isFraction):
  2546. (WebCore::SVGLength::dpi):
  2547. (WebCore::SVGLength::PercentageOfViewport):
  2548. * ksvg2/svg/SVGLength.h:
  2549. (WebCore::):
  2550. (WebCore::SVGLength::):
  2551. * ksvg2/svg/SVGLength.idl:
  2552. * ksvg2/svg/SVGLengthList.cpp:
  2553. (WebCore::SVGLengthList::SVGLengthList):
  2554. (WebCore::SVGLengthList::parse):
  2555. * ksvg2/svg/SVGLengthList.h:
  2556. * ksvg2/svg/SVGLineElement.cpp:
  2557. (WebCore::SVGLineElement::SVGLineElement):
  2558. (WebCore::SVGLineElement::parseMappedAttribute):
  2559. (WebCore::SVGLineElement::toPathData):
  2560. * ksvg2/svg/SVGLineElement.h:
  2561. * ksvg2/svg/SVGLinearGradientElement.cpp:
  2562. (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
  2563. (WebCore::SVGLinearGradientElement::parseMappedAttribute):
  2564. (WebCore::SVGLinearGradientElement::buildGradient):
  2565. * ksvg2/svg/SVGLinearGradientElement.h:
  2566. * ksvg2/svg/SVGMarkerElement.cpp:
  2567. (WebCore::SVGMarkerElement::SVGMarkerElement):
  2568. (WebCore::SVGMarkerElement::parseMappedAttribute):
  2569. (WebCore::SVGMarkerElement::canvasResource):
  2570. * ksvg2/svg/SVGMarkerElement.h:
  2571. * ksvg2/svg/SVGMaskElement.cpp:
  2572. (WebCore::SVGMaskElement::SVGMaskElement):
  2573. (WebCore::SVGMaskElement::attributeChanged):
  2574. (WebCore::SVGMaskElement::parseMappedAttribute):
  2575. (WebCore::SVGMaskElement::drawMaskerContent):
  2576. * ksvg2/svg/SVGMaskElement.h:
  2577. * ksvg2/svg/SVGPatternElement.cpp:
  2578. (WebCore::SVGPatternElement::SVGPatternElement):
  2579. (WebCore::SVGPatternElement::parseMappedAttribute):
  2580. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  2581. (WebCore::SVGPatternElement::notifyAttributeChange):
  2582. (WebCore::SVGPatternElement::getCTM):
  2583. * ksvg2/svg/SVGPatternElement.h:
  2584. * ksvg2/svg/SVGRadialGradientElement.cpp:
  2585. (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
  2586. (WebCore::SVGRadialGradientElement::parseMappedAttribute):
  2587. (WebCore::SVGRadialGradientElement::buildGradient):
  2588. * ksvg2/svg/SVGRadialGradientElement.h:
  2589. * ksvg2/svg/SVGRectElement.cpp:
  2590. (WebCore::SVGRectElement::SVGRectElement):
  2591. (WebCore::SVGRectElement::parseMappedAttribute):
  2592. (WebCore::SVGRectElement::toPathData):
  2593. * ksvg2/svg/SVGRectElement.h:
  2594. * ksvg2/svg/SVGSVGElement.cpp:
  2595. (WebCore::SVGSVGElement::SVGSVGElement):
  2596. (WebCore::SVGSVGElement::viewport):
  2597. (WebCore::SVGSVGElement::parseMappedAttribute):
  2598. (WebCore::SVGSVGElement::createSVGLength):
  2599. (WebCore::SVGSVGElement::getCTM):
  2600. (WebCore::SVGSVGElement::getScreenCTM):
  2601. * ksvg2/svg/SVGSVGElement.h:
  2602. * ksvg2/svg/SVGStyledElement.cpp:
  2603. * ksvg2/svg/SVGStyledElement.h:
  2604. * ksvg2/svg/SVGTextContentElement.cpp:
  2605. (WebCore::SVGTextContentElement::SVGTextContentElement):
  2606. (WebCore::SVGTextContentElement::parseMappedAttribute):
  2607. * ksvg2/svg/SVGTextContentElement.h:
  2608. * ksvg2/svg/SVGTextElement.cpp:
  2609. * ksvg2/svg/SVGTextPositioningElement.cpp:
  2610. (WebCore::SVGTextPositioningElement::parseMappedAttribute):
  2611. * ksvg2/svg/SVGUseElement.cpp:
  2612. (WebCore::SVGUseElement::SVGUseElement):
  2613. (WebCore::SVGUseElement::parseMappedAttribute):
  2614. (WebCore::SVGUseElement::closeRenderer):
  2615. * ksvg2/svg/SVGUseElement.h:
  2616. * page/EventHandler.cpp:
  2617. (WebCore::selectCursor):
  2618. * rendering/RenderForeignObject.cpp:
  2619. (WebCore::RenderForeignObject::translationForAttributes):
  2620. * rendering/RenderPath.cpp:
  2621. * rendering/RenderPath.h:
  2622. * rendering/RenderSVGContainer.cpp:
  2623. (WebCore::RenderSVGContainer::layout):
  2624. (WebCore::RenderSVGContainer::calcViewport):
  2625. * rendering/RenderSVGImage.cpp:
  2626. (WebCore::RenderSVGImage::relativeBBox):
  2627. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  2628. (WebCore::RenderSVGImage::translationForAttributes):
  2629. * rendering/RenderSVGText.cpp:
  2630. (WebCore::RenderSVGText::layout):
  2631. * rendering/SVGInlineFlowBox.cpp:
  2632. (WebCore::translateBox):
  2633. (WebCore::placePositionedBoxesHorizontally):
  2634. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  2635. 2006-12-16 Sam Weinig <sam@webkit.org>
  2636. Reviewed by Maciej.
  2637. Patch for http://bugs.webkit.org/show_bug.cgi?id=11856
  2638. Update renderName() methods to return current class names.
  2639. * rendering/RenderPath.h:
  2640. (WebCore::RenderPath::renderName): Returns "RenderPath" instead of "KCanvasItem".
  2641. * rendering/RenderSVGContainer.h:
  2642. (WebCore::RenderSVGContainer::renderName): Returns "RenderSVGContainer" instead of "KCanvasContainer".
  2643. * rendering/RenderTextControl.h:
  2644. (WebCore::RenderTextControl::renderName): Returns "RenderTextControl" instead of "RenderTextField".
  2645. 2006-12-16 Sam Weinig <sam@webkit.org>
  2646. Reviewed by Mitz.
  2647. Patch for http://bugs.webkit.org/show_bug.cgi?id=11844
  2648. Code Cleanup for more of the rendering code
  2649. * WebCore.xcodeproj/project.pbxproj:
  2650. * rendering/RenderCounter.cpp:
  2651. (WebCore::RenderCounter::calcMinMaxWidth):
  2652. * rendering/RenderText.cpp:
  2653. (WebCore::RenderText::RenderText):
  2654. (WebCore::RenderText::setStyle):
  2655. (WebCore::RenderText::destroy):
  2656. (WebCore::RenderText::attachTextBox):
  2657. (WebCore::RenderText::findNextInlineTextBox):
  2658. (WebCore::RenderText::positionForCoordinates):
  2659. (WebCore::firstRendererOnNextLine):
  2660. (WebCore::lastRendererOnPrevLine):
  2661. (WebCore::RenderText::caretRect):
  2662. (WebCore::RenderText::posOfChar):
  2663. (WebCore::RenderText::allAscii):
  2664. (WebCore::RenderText::shouldUseMonospaceCache):
  2665. (WebCore::RenderText::cacheWidths):
  2666. (WebCore::RenderText::widthFromCache):
  2667. (WebCore::RenderText::trimmedMinMaxWidth):
  2668. (WebCore::RenderText::calcMinMaxWidth):
  2669. (WebCore::isSpaceAccordingToStyle):
  2670. (WebCore::RenderText::containsOnlyWhitespace):
  2671. (WebCore::RenderText::minXPos):
  2672. (WebCore::RenderText::setSelectionState):
  2673. (WebCore::RenderText::setTextWithOffset):
  2674. (WebCore::RenderText::setText):
  2675. (WebCore::RenderText::position):
  2676. (WebCore::RenderText::width):
  2677. (WebCore::RenderText::getAbsoluteRepaintRect):
  2678. (WebCore::RenderText::selectionRect):
  2679. (WebCore::RenderText::verticalPositionHint):
  2680. (WebCore::RenderText::font):
  2681. (WebCore::RenderText::caretMinOffset):
  2682. (WebCore::RenderText::caretMaxOffset):
  2683. (WebCore::RenderText::previousOffset):
  2684. (WebCore::RenderText::nextOffset):
  2685. (WebCore::RenderText::inlineBox):
  2686. * rendering/RenderText.h:
  2687. (WebCore::RenderText::isTextFragment):
  2688. (WebCore::RenderText::data):
  2689. (WebCore::RenderText::string):
  2690. (WebCore::RenderText::paint):
  2691. (WebCore::RenderText::layout):
  2692. (WebCore::RenderText::nodeAtPoint):
  2693. (WebCore::RenderText::length):
  2694. (WebCore::RenderText::text):
  2695. (WebCore::RenderText::stringLength):
  2696. * rendering/RenderTextControl.cpp:
  2697. (WebCore::RenderTextControl::setStyle):
  2698. (WebCore::disabledTextColor):
  2699. (WebCore::RenderTextControl::createInnerBlockStyle):
  2700. (WebCore::RenderTextControl::createInnerTextStyle):
  2701. (WebCore::RenderTextControl::createResultsButtonStyle):
  2702. (WebCore::RenderTextControl::createCancelButtonStyle):
  2703. (WebCore::RenderTextControl::showPlaceholderIfNeeded):
  2704. (WebCore::RenderTextControl::hidePlaceholderIfNeeded):
  2705. (WebCore::RenderTextControl::createSubtreeIfNeeded):
  2706. (WebCore::RenderTextControl::updateFromElement):
  2707. (WebCore::RenderTextControl::selectionStart):
  2708. (WebCore::RenderTextControl::setSelectionRange):
  2709. (WebCore::RenderTextControl::visiblePositionForIndex):
  2710. (WebCore::RenderTextControl::subtreeHasChanged):
  2711. (WebCore::RenderTextControl::textWithHardLineBreaks):
  2712. (WebCore::RenderTextControl::calcHeight):
  2713. (WebCore::RenderTextControl::nodeAtPoint):
  2714. (WebCore::RenderTextControl::layout):
  2715. (WebCore::RenderTextControl::calcMinMaxWidth):
  2716. (WebCore::RenderTextControl::addSearchResult):
  2717. (WebCore::RenderTextControl::showPopup):
  2718. (WebCore::RenderTextControl::itemText):
  2719. (WebCore::RenderTextControl::itemIsEnabled):
  2720. (WebCore::RenderTextControl::listSize):
  2721. (WebCore::RenderTextControl::scroll):
  2722. * rendering/RenderTextControl.h:
  2723. (WebCore::RenderTextControl::renderName):
  2724. (WebCore::RenderTextControl::removeLeftoverAnonymousBoxes):
  2725. * rendering/RenderTextFragment.cpp:
  2726. (WebCore::RenderTextFragment::RenderTextFragment):
  2727. (WebCore::RenderTextFragment::originalString):
  2728. * rendering/RenderTextFragment.h:
  2729. (WebCore::RenderTextFragment::isTextFragment):
  2730. * rendering/RenderTheme.cpp:
  2731. (WebCore::RenderTheme::adjustStyle):
  2732. (WebCore::RenderTheme::isControlStyled):
  2733. (WebCore::RenderTheme::stateChanged):
  2734. (WebCore::RenderTheme::adjustCheckboxStyle):
  2735. (WebCore::RenderTheme::adjustRadioStyle):
  2736. * rendering/RenderTheme.h:
  2737. (WebCore::):
  2738. * rendering/RenderThemeMac.h:
  2739. * rendering/RenderThemeMac.mm:
  2740. (WebCore::RenderThemeMac::RenderThemeMac):
  2741. (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
  2742. (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
  2743. (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
  2744. (WebCore::RenderThemeMac::systemFont):
  2745. (WebCore::RenderThemeMac::isControlStyled):
  2746. (WebCore::RenderThemeMac::adjustRepaintRect):
  2747. (WebCore::RenderThemeMac::updateCheckedState):
  2748. (WebCore::RenderThemeMac::controlSupportsTints):
  2749. (WebCore::RenderThemeMac::setFontFromControlSize):
  2750. (WebCore::RenderThemeMac::paintCheckbox):
  2751. (WebCore::RenderThemeMac::checkboxMargins):
  2752. (WebCore::RenderThemeMac::setCheckboxCellState):
  2753. (WebCore::RenderThemeMac::setCheckboxSize):
  2754. (WebCore::RenderThemeMac::paintRadio):
  2755. (WebCore::RenderThemeMac::radioMargins):
  2756. (WebCore::RenderThemeMac::setRadioCellState):
  2757. (WebCore::RenderThemeMac::setRadioSize):
  2758. (WebCore::RenderThemeMac::adjustButtonStyle):
  2759. (WebCore::RenderThemeMac::buttonMargins):
  2760. (WebCore::RenderThemeMac::setButtonSize):
  2761. (WebCore::RenderThemeMac::setButtonCellState):
  2762. (WebCore::RenderThemeMac::adjustTextFieldStyle):
  2763. (WebCore::RenderThemeMac::adjustTextAreaStyle):
  2764. (WebCore::RenderThemeMac::popupButtonMargins):
  2765. (WebCore::RenderThemeMac::popupButtonPadding):
  2766. (WebCore::TopGradientInterpolate):
  2767. (WebCore::BottomGradientInterpolate):
  2768. (WebCore::MainGradientInterpolate):
  2769. (WebCore::TrackGradientInterpolate):
  2770. (WebCore::RenderThemeMac::paintMenuListButtonGradients):
  2771. (WebCore::RenderThemeMac::paintMenuListButton):
  2772. (WebCore::RenderThemeMac::adjustMenuListStyle):
  2773. (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
  2774. (WebCore::RenderThemeMac::paintSliderTrack):
  2775. (WebCore::RenderThemeMac::paintSliderThumb):
  2776. (WebCore::RenderThemeMac::paintSearchField):
  2777. (WebCore::RenderThemeMac::setSearchCellState):
  2778. (WebCore::RenderThemeMac::adjustSearchFieldStyle):
  2779. (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
  2780. (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
  2781. * rendering/RenderTreeAsText.cpp:
  2782. (WebCore::operator<<):
  2783. (WebCore::writeIndent):
  2784. (WebCore::printBorderStyle):
  2785. (WebCore::getTagName):
  2786. (WebCore::isEmptyOrUnstyledAppleStyleSpan):
  2787. (WebCore::writeTextRun):
  2788. (WebCore::write):
  2789. (WebCore::writeLayers):
  2790. (WebCore::nodePosition):
  2791. (WebCore::writeSelection):
  2792. * rendering/RenderTreeAsText.h:
  2793. * rendering/RenderView.cpp:
  2794. (WebCore::RenderView::RenderView):
  2795. (WebCore::RenderView::calcMinMaxWidth):
  2796. (WebCore::RenderView::layout):
  2797. (WebCore::RenderView::absolutePosition):
  2798. (WebCore::RenderView::paint):
  2799. (WebCore::RenderView::repaintViewRectangle):
  2800. (WebCore::rendererAfterPosition):
  2801. (WebCore::RenderView::selectionRect):
  2802. (WebCore::RenderView::setSelection):
  2803. (WebCore::RenderView::selectionStartEnd):
  2804. (WebCore::RenderView::updateWidgetPositions):
  2805. (WebCore::RenderView::addWidget):
  2806. (WebCore::RenderView::removeWidget):
  2807. (WebCore::RenderView::viewRect):
  2808. (WebCore::RenderView::docHeight):
  2809. (WebCore::RenderView::docWidth):
  2810. (WebCore::RenderView::setBestTruncatedAt):
  2811. * rendering/RenderView.h:
  2812. (WebCore::RenderView::renderName):
  2813. (WebCore::RenderView::selectionStart):
  2814. (WebCore::RenderView::selectionEnd):
  2815. * rendering/RenderWidget.cpp:
  2816. (WebCore::RenderWidget::destroy):
  2817. (WebCore::RenderWidget::resizeWidget):
  2818. (WebCore::RenderWidget::setStyle):
  2819. (WebCore::RenderWidget::paint):
  2820. (WebCore::RenderWidget::updateWidgetPosition):
  2821. (WebCore::RenderWidget::setSelectionState):
  2822. * rendering/RootInlineBox.cpp:
  2823. (WebCore::RootInlineBox::placeEllipsis):
  2824. (WebCore::RootInlineBox::fillLineSelectionGap):
  2825. (WebCore::RootInlineBox::selectionState):
  2826. (WebCore::RootInlineBox::firstSelectedBox):
  2827. (WebCore::RootInlineBox::lastSelectedBox):
  2828. (WebCore::RootInlineBox::selectionTop):
  2829. (WebCore::RootInlineBox::closestLeafChildForXPos):
  2830. * rendering/RootInlineBox.h:
  2831. (WebCore::RootInlineBox::isRootInlineBox):
  2832. (WebCore::RootInlineBox::setVerticalOverflowPositions):
  2833. (WebCore::RootInlineBox::setHorizontalOverflowPositions):
  2834. (WebCore::RootInlineBox::setVerticalSelectionPositions):
  2835. (WebCore::RootInlineBox::lineBreakObj):
  2836. (WebCore::RootInlineBox::lineBreakPos):
  2837. (WebCore::RootInlineBox::setLineBreakPos):
  2838. (WebCore::RootInlineBox::blockHeight):
  2839. (WebCore::RootInlineBox::setBlockHeight):
  2840. (WebCore::RootInlineBox::endsWithBreak):
  2841. (WebCore::RootInlineBox::setEndsWithBreak):
  2842. * rendering/SVGInlineFlowBox.cpp:
  2843. (WebCore::SVGInlineFlowBox::paint):
  2844. (WebCore::paintSVGInlineFlow):
  2845. (WebCore::translateBox):
  2846. (WebCore::placePositionedBoxesHorizontally):
  2847. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  2848. (WebCore::placeSVGFlowVertically):
  2849. * rendering/SVGInlineFlowBox.h:
  2850. * rendering/SVGRenderTreeAsText.cpp:
  2851. (WebCore::TextStreamSeparator::TextStreamSeparator):
  2852. (WebCore::operator<<):
  2853. (WebCore::hasFractions):
  2854. (WebCore::writeIndent):
  2855. (WebCore::writeStyle):
  2856. (WebCore::getTagName):
  2857. (WebCore::write):
  2858. (WebCore::writeRenderResources):
  2859. * rendering/SVGRenderTreeAsText.h:
  2860. (WebCore::operator<<):
  2861. * rendering/SVGRootInlineBox.cpp:
  2862. (WebCore::SVGRootInlineBox::paint):
  2863. (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
  2864. * rendering/SVGRootInlineBox.h:
  2865. * rendering/TableLayout.h:
  2866. 2006-12-16 Adam Roben <aroben@apple.com>
  2867. Build fixes.
  2868. * platform/ContextMenuItem.h: Fixed const declarations.
  2869. * platform/mac/ContextMenuItemMac.mm: Dito.
  2870. (WebCore::ContextMenuItem::type):
  2871. (WebCore::ContextMenuItem::setTitle):
  2872. (WebCore::ContextMenuItem::setChecked):
  2873. (WebCore::ContextMenuItem::setEnabled):
  2874. 2006-12-16 Adele Peterson <adele@apple.com>
  2875. Reviewed by Maciej.
  2876. Fix for http://bugs.webkit.org/show_bug.cgi?id=11189
  2877. <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list
  2878. Test: fast/forms/listbox-select-all.html
  2879. * dom/Node.h: We should try to find a more appropriate place to put these methods.
  2880. (WebCore::Node::canSelectAll): Added.
  2881. (WebCore::Node::selectAll): Added.
  2882. * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Before selecting editable content, give the focused node
  2883. a chance to select its content.
  2884. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectAll): Selects all items in a multi-select list box. Single-select
  2885. list boxes will just do nothing, but we still want the select to handle this case when it has focus, rather than selecting other content.
  2886. * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::canSelectAll): Returns true for list boxes.
  2887. 2006-12-16 Zack Rusin <zack@kde.org>
  2888. Add a stub for SearchPopupMenu for Qt code.
  2889. * platform/qt/SearchPopupMenuQt.cpp: Added.
  2890. (WebCore::SearchPopupMenu::SearchPopupMenu):
  2891. (WebCore::SearchPopupMenu::saveRecentSearches):
  2892. (WebCore::SearchPopupMenu::loadRecentSearches):
  2893. 2006-12-16 Zack Rusin <zack@kde.org>
  2894. Make it compile after last nights changes.
  2895. * WebCore.pro:
  2896. * loader/qt/DocumentLoaderQt.cpp:
  2897. (WebCore::DocumentLoader::stopLoading):
  2898. (WebCore::DocumentLoader::prepareForLoadStart):
  2899. * platform/qt/ContextMenuItemQt.cpp:
  2900. (WebCore::ContextMenuItem::ContextMenuItem):
  2901. (WebCore::ContextMenuItem::releasePlatformDescription):
  2902. (WebCore::ContextMenuItem::type):
  2903. (WebCore::ContextMenuItem::setType):
  2904. (WebCore::ContextMenuItem::action):
  2905. (WebCore::ContextMenuItem::setAction):
  2906. (WebCore::ContextMenuItem::setTitle):
  2907. (WebCore::ContextMenuItem::platformSubMenu):
  2908. (WebCore::ContextMenuItem::setSubMenu):
  2909. (WebCore::ContextMenuItem::setChecked):
  2910. (WebCore::ContextMenuItem::setEnabled):
  2911. * platform/qt/ContextMenuQt.cpp:
  2912. (WebCore::ContextMenu::appendItem):
  2913. (WebCore::ContextMenu::insertItem):
  2914. * platform/qt/TemporaryLinkStubs.cpp:
  2915. 2006-12-16 Adele Peterson <adele@apple.com>
  2916. One more...
  2917. * editing/ReplaceSelectionCommand.cpp:
  2918. (WebCore::ReplacementFragment::ReplacementFragment):
  2919. 2006-12-16 Adele Peterson <adele@apple.com>
  2920. Missed one instance of isNonWidgetTextField.
  2921. * editing/DeleteSelectionCommand.cpp:
  2922. (WebCore::DeleteSelectionCommand::doApply):
  2923. 2006-12-16 Hunter L. Williams <hlwebkit@gmail.com>
  2924. Reviewed by Adele.
  2925. Fix mouse wheel scrolling in <textarea> controls.
  2926. * rendering/RenderTextControl.cpp:
  2927. * rendering/RenderTextControl.h:
  2928. Override |scroll| on RenderTextControl to forward the call to the RenderObject of the
  2929. inner m_innerText, which has a layer that can be scrolled.
  2930. 2006-12-16 Adele Peterson <adele@apple.com>
  2931. RS by Adam.
  2932. Removed RenderLineEdit, TextField, WebCoreTextField classes, and use of isNonWidgetTextField,
  2933. * WebCore.xcodeproj/project.pbxproj:
  2934. * html/HTMLInputElement.cpp:
  2935. (WebCore::HTMLInputElement::isKeyboardFocusable):
  2936. (WebCore::HTMLInputElement::isMouseFocusable):
  2937. (WebCore::HTMLInputElement::focus):
  2938. (WebCore::HTMLInputElement::updateFocusAppearance):
  2939. (WebCore::HTMLInputElement::aboutToUnload):
  2940. (WebCore::HTMLInputElement::dispatchFocusEvent):
  2941. (WebCore::HTMLInputElement::dispatchBlurEvent):
  2942. (WebCore::HTMLInputElement::setValue):
  2943. (WebCore::HTMLInputElement::defaultEventHandler):
  2944. * html/HTMLInputElement.h:
  2945. (WebCore::HTMLInputElement::isTextField):
  2946. * html/HTMLTextFieldInnerElement.cpp:
  2947. (WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler):
  2948. * platform/TextField.h: Removed.
  2949. * platform/mac/TextFieldMac.mm: Removed.
  2950. * platform/mac/WebCoreTextField.h: Removed.
  2951. * platform/mac/WebCoreTextField.mm: Removed.
  2952. * rendering/RenderLineEdit.cpp: Removed.
  2953. * rendering/RenderLineEdit.h: Removed.
  2954. 2006-12-16 Adele Peterson <adele@apple.com>
  2955. Two more files I forgot to svn add for search fields.
  2956. * platform/SearchPopupMenu.h: Added.
  2957. (WebCore::SearchPopupMenu::create):
  2958. * platform/mac/SearchPopupMenuMac.mm: Added.
  2959. (WebCore::SearchPopupMenu::SearchPopupMenu):
  2960. (WebCore::autosaveKey):
  2961. (WebCore::SearchPopupMenu::saveRecentSearches):
  2962. (WebCore::SearchPopupMenu::loadRecentSearches):
  2963. 2006-12-16 Adele Peterson <adele@apple.com>
  2964. Reviewed by Adam.
  2965. * platform/PopupMenuClient.h: Added. Broken out of PopupMenu class.
  2966. (WebCore::PopupMenuClient::~PopupMenuClient):
  2967. 2006-12-16 Adele Peterson <adele@apple.com>
  2968. Reviewed by Adam.
  2969. WebCore part of fix for:
  2970. <rdar://problem/4463829> Switch to use new search field implementation for <input type="search">
  2971. * WebCore.xcodeproj/project.pbxproj: Added SearchPopupMenu.h, SearchPopupMenuMac.mm, and PopupMenuClient.h.
  2972. Added pseudo classes and corresponding values for -webkit appearance for the cancel button and for the three types of "decoration" that
  2973. correspond to the different functions of the magnifier glass in the search field. One for the button that will show and hide the
  2974. recent searches menu. One for decoration when the results attribute is set, but no results are saved. And one for decoration
  2975. when no results attribute is set. We added these different pseudo elements so that RenderTextControl can decide which pseudo class
  2976. is appropriate, and each theme can decide for itself which kind of image is appropriate for each function.
  2977. * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType):
  2978. * css/CSSSelector.h: (WebCore::CSSSelector::): Added to PseudoType enum.
  2979. * css/CSSValueKeywords.in: Added searchfield-decoration, searchfield-results-decoration, searchfield-results-button, searchfield-cancel-button values.
  2980. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): Added cases for -webkit-search-cancel-button,
  2981. -webkit-search-decoration, -webkit-search-results-decoration, -webkit-search-results-button
  2982. * rendering/RenderStyle.cpp: Addes new pseudoBits for matching pseudoIds.
  2983. (WebCore::):
  2984. (WebCore::pseudoBit):
  2985. * rendering/RenderStyle.h: Added new appearance values and pseudoIds.
  2986. (WebCore::):
  2987. (WebCore::RenderStyle::):
  2988. * css/html4.css: Added style for input[type=search], and the new pseudo elements.
  2989. The structure of the shadow DOM for new search field adds an intermediate block that contains 3 inline-blocks for the magnifier, text element, and cancel button.
  2990. Since the tree has become deeper, some editing and event code that used to check for a shadowParent, really needs to check the shadowAncestorNode.
  2991. * editing/Editor.cpp: (WebCore::Editor::dispatchCPPEvent): Check shadowAncestorNode instead of shadowParentNode.
  2992. * editing/Selection.cpp: (WebCore::Selection::adjustForEditableContent): ditto.
  2993. * editing/htmlediting.cpp:
  2994. (WebCore::firstEditablePositionAfterPositionInRoot): ditto.
  2995. (WebCore::lastEditablePositionBeforePositionInRoot): ditto.
  2996. * editing/ReplaceSelectionCommand.cpp:
  2997. (WebCore::ReplacementFragment::ReplacementFragment): ditto.
  2998. (WebCore::ReplaceSelectionCommand::shouldMerge): Nil check enclosingBlock call. I ran into this while testing search fields in mixed editability.
  2999. (WebCore::ReplaceSelectionCommand::doApply): ditto.
  3000. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): Remove use of RenderLineEdit.
  3001. * html/HTMLInputElement.cpp:
  3002. (WebCore::HTMLInputElement::selectionStart): ditto.
  3003. (WebCore::HTMLInputElement::selectionEnd): ditto.
  3004. (WebCore::HTMLInputElement::setSelectionStart): ditto.
  3005. (WebCore::HTMLInputElement::setSelectionEnd): ditto.
  3006. (WebCore::HTMLInputElement::select): ditto.
  3007. (WebCore::HTMLInputElement::setSelectionRange): ditto.
  3008. (WebCore::HTMLInputElement::parseMappedAttribute): ditto.
  3009. (WebCore::HTMLInputElement::createRenderer): ditto.
  3010. (WebCore::HTMLInputElement::defaultEventHandler): ditto.
  3011. (WebCore::HTMLInputElement::addSearchResult): Added. Calls addSearchResult on the renderer.
  3012. * html/HTMLInputElement.h:
  3013. (WebCore::HTMLInputElement::isNonWidgetTextField): Added case for search field.
  3014. (WebCore::HTMLInputElement::isSearchField): Added.
  3015. * platform/PopupMenu.h: Broke PopupMenuClient out into a separate file.
  3016. * platform/PopupMenuClient.h: Added.
  3017. (WebCore::PopupMenuClient::~PopupMenuClient):
  3018. * platform/graphics/Icon.h:
  3019. * platform/SearchPopupMenu.h: Added. Saves and loads recent search vector.
  3020. (WebCore::SearchPopupMenu::create):
  3021. * platform/mac/SearchPopupMenuMac.mm: Added.
  3022. (WebCore::SearchPopupMenu::SearchPopupMenu):
  3023. (WebCore::autosaveKey):
  3024. (WebCore::SearchPopupMenu::saveRecentSearches):
  3025. (WebCore::SearchPopupMenu::loadRecentSearches):
  3026. * html/HTMLTextFieldInnerElement.h: Reorganized this class.
  3027. Added subclasses HTMLTextFieldInnerTextElement, HTMLSearchFieldResultsButtonElement, HTMLSearchFieldCancelButtonElement
  3028. (WebCore::HTMLTextFieldInnerElement::isMouseFocusable): Added. Returns false so setFocusNodeIfNeeded
  3029. will try to focus the input element instead of nodes in the shadow tree.
  3030. (WebCore::HTMLTextFieldInnerElement::isShadowNode): Now returns whether or not a shadowParent has been specified.
  3031. * html/HTMLTextFieldInnerElement.cpp:
  3032. (WebCore::HTMLTextFieldInnerTextElement::HTMLTextFieldInnerTextElement):
  3033. (WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler): Moved this from the old HTMLTextFieldInnerElement class.
  3034. (WebCore::HTMLSearchFieldResultsButtonElement::HTMLSearchFieldResultsButtonElement):
  3035. (WebCore::HTMLSearchFieldResultsButtonElement::defaultEventHandler): Shows and hides recent searches menu.
  3036. (WebCore::HTMLSearchFieldCancelButtonElement::HTMLSearchFieldCancelButtonElement):
  3037. (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler): On mouse up, clears the value from the text field.
  3038. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::listSize): Changed return type to unsigned.
  3039. * rendering/RenderMenuList.h: (WebCore::RenderMenuList::valueShouldChangeOnHotTrack): Added.
  3040. * WebCore.exp: Export _wkDrawTextFieldCellFocusRing.
  3041. * platform/mac/WebCoreSystemInterface.h: Added wkDrawTextFieldCellFocusRing
  3042. * platform/mac/WebCoreSystemInterface.mm: ditto.
  3043. * rendering/RenderTextControl.h:
  3044. (WebCore::RenderTextControl::popupIsVisible): Added so HTMLSearchFieldResultsButtonElement knows whether or not the menu is already up.
  3045. (WebCore::RenderTextControl::shouldPopOver): Added as a PopupClient method so the results menu shows up under the control instead of over.
  3046. (WebCore::RenderTextControl::valueShouldChangeOnHotTrack):
  3047. * rendering/RenderTextControl.cpp:
  3048. (WebCore::RenderTextControl::RenderTextControl): Initialize m_placeholderIsVisible, m_searchPopup, and m_searchPopupIsVisible.
  3049. (WebCore::RenderTextControl::~RenderTextControl): Detach the node at the top of the shadow tree (m_innerBlock for search fields, and m_innerText for other text controls).
  3050. (WebCore::RenderTextControl::setStyle): Sets style on new elements.
  3051. (WebCore::disabledTextColor): Added so this can be used in setPlaceholder.
  3052. (WebCore::RenderTextControl::createInnerBlockStyle): Added.
  3053. (WebCore::RenderTextControl::createInnerTextStyle): Added.
  3054. (WebCore::RenderTextControl::createResultsButtonStyle): Added.
  3055. (WebCore::RenderTextControl::createCancelButtonStyle): Added.
  3056. (WebCore::RenderTextControl::showPlaceholderIfNeeded): Added. Shows the placeholder if there's no value and the field doesn't have focus.
  3057. (WebCore::RenderTextControl::hidePlaceholderIfNeeded): Added. Clears the placeholder if there's a value or the field has focus.
  3058. (WebCore::RenderTextControl::createSubtreeIfNeeded): Added. Creates all of the shadow tree elements.
  3059. (WebCore::RenderTextControl::updateFromElement): Calls showPlaceholderIfNeeded.
  3060. (WebCore::RenderTextControl::visiblePositionForIndex): Renaming (m_div to m_innerText).
  3061. (WebCore::RenderTextControl::indexForVisiblePosition): ditto.
  3062. (WebCore::RenderTextControl::updateCancelButtonVisibility): Shows and hides cancel button based on the value of the control.
  3063. (WebCore::RenderTextControl::subtreeHasChanged): Fires onSearch if the incremental attribute is set.
  3064. (WebCore::RenderTextControl::text): Renaming.
  3065. (WebCore::RenderTextControl::textWithHardLineBreaks): ditto.
  3066. (WebCore::RenderTextControl::calcHeight): Take the size of the results button and cancel button into account when calculating height.
  3067. (WebCore::RenderTextControl::nodeAtPoint): Act as if we've hit the shadow tree elements based on the x coordinate of the mouse event.
  3068. (WebCore::RenderTextControl::layout): Set the height and width of the text block taking the other shadow tree elements into account.
  3069. (WebCore::RenderTextControl::calcMinMaxWidth): Take new shadow tree elements into account when calculating width.
  3070. (WebCore::RenderTextControl::forwardEvent): Forward events to appropriate shadow nodes.
  3071. (WebCore::RenderTextControl::scrollWidth): Renaming.
  3072. (WebCore::RenderTextControl::scrollHeight): ditto.
  3073. (WebCore::RenderTextControl::scrollLeft): ditto.
  3074. (WebCore::RenderTextControl::scrollTop): ditto.
  3075. (WebCore::RenderTextControl::setScrollLeft): ditto.
  3076. (WebCore::RenderTextControl::setScrollTop): ditto.
  3077. (WebCore::RenderTextControl::autosaveName): ditto.
  3078. (WebCore::RenderTextControl::addSearchResult): Added. Saves value to search result list.
  3079. (WebCore::RenderTextControl::onSearch): Added. Dispatches search event.
  3080. (WebCore::RenderTextControl::showPopup): Added. Loads searches, and displays menu.
  3081. (WebCore::RenderTextControl::hidePopup): Added PopupClient method.
  3082. (WebCore::RenderTextControl::valueChanged): Added PopupClient method. Interprets the selected menu item index, and either sets the value and
  3083. fires onSearch, or clears all recent searches for this autosave name.
  3084. (WebCore::RenderTextControl::itemText): Added PopupClient method.
  3085. (WebCore::RenderTextControl::itemIsEnabled): Added PopupClient method.
  3086. (WebCore::RenderTextControl::itemStyle): ditto.
  3087. (WebCore::RenderTextControl::clientStyle): ditto.
  3088. (WebCore::RenderTextControl::clientDocument): ditto.
  3089. (WebCore::RenderTextControl::clientPaddingLeft): ditto.
  3090. (WebCore::RenderTextControl::clientPaddingRight): ditto.
  3091. (WebCore::RenderTextControl::listSize): ditto.
  3092. (WebCore::RenderTextControl::selectedIndex): ditto.
  3093. (WebCore::RenderTextControl::itemIsSeparator): ditto.
  3094. (WebCore::RenderTextControl::itemIsLabel): ditto.
  3095. (WebCore::RenderTextControl::itemIsSelected): ditto.
  3096. (WebCore::RenderTextControl::setTextFromItem): ditto.
  3097. * rendering/RenderTheme.cpp: Added search field theme.
  3098. (WebCore::RenderTheme::adjustStyle):
  3099. (WebCore::RenderTheme::paint):
  3100. (WebCore::RenderTheme::paintBorderOnly):
  3101. (WebCore::RenderTheme::paintDecorations):
  3102. (WebCore::RenderTheme::isControlStyled): Returns false for search fields, until we've worked out the kinks.
  3103. (WebCore::RenderTheme::adjustSearchFieldStyle):
  3104. (WebCore::RenderTheme::adjustSearchFieldCancelButtonStyle):
  3105. (WebCore::RenderTheme::adjustSearchFieldDecorationStyle):
  3106. (WebCore::RenderTheme::adjustSearchFieldResultsDecorationStyle):
  3107. (WebCore::RenderTheme::adjustSearchFieldResultsButtonStyle):
  3108. * rendering/RenderTheme.h:
  3109. (WebCore::RenderTheme::paintSearchField):
  3110. (WebCore::RenderTheme::paintSearchFieldCancelButton):
  3111. (WebCore::RenderTheme::paintSearchFieldDecoration):
  3112. (WebCore::RenderTheme::paintSearchFieldResultsDecoration):
  3113. (WebCore::RenderTheme::paintSearchFieldResultsButton):
  3114. * rendering/RenderThemeMac.h:
  3115. * rendering/RenderThemeMac.mm:
  3116. (WebCore::RenderThemeMac::RenderThemeMac):
  3117. (WebCore::RenderThemeMac::sizeForSystemFont): Added. Compares style's font to systemFontSizeForControlSize to determine
  3118. what controlSize to use after a style's font has already been initially adjusted.
  3119. (WebCore::RenderThemeMac::controlSizeForSystemFont): Added. ditto.
  3120. (WebCore::RenderThemeMac::paintCheckbox):
  3121. (WebCore::RenderThemeMac::paintRadio):
  3122. (WebCore::RenderThemeMac::menuListSizes):
  3123. (WebCore::RenderThemeMac::minimumMenuListSize): Uses sizeForSystemFont instead of hardcoded adjusted font sizes.
  3124. (WebCore::RenderThemeMac::paintSearchField):
  3125. (WebCore::RenderThemeMac::setSearchCellState):
  3126. (WebCore::RenderThemeMac::adjustSearchFieldStyle):
  3127. (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
  3128. (WebCore::RenderThemeMac::cancelButtonSizes):
  3129. (WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle):
  3130. (WebCore::RenderThemeMac::resultsButtonSizes):
  3131. (WebCore::RenderThemeMac::adjustSearchFieldDecorationStyle):
  3132. (WebCore::RenderThemeMac::paintSearchFieldDecoration):
  3133. (WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationStyle):
  3134. (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
  3135. (WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle):
  3136. (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
  3137. 2006-12-16 Beth Dakin <bdakin@apple.com>
  3138. Reviewed by Adam (and partially Geoff).
  3139. Primarily, this patch gives WebCore context menus the ability to
  3140. enable/disable and set state. It does a few other things along the
  3141. way, though. Some of the more noticeable things:
  3142. -Re-architects the ContextMenuItem class a bit so that the
  3143. ownership model is a bit less confusing. ContextMenuItem is
  3144. now *purely* a wrapper for the platformDescription. There
  3145. are no other member variables. If you ever need the
  3146. platformDescription outside of the MenuItem class, you have
  3147. to call releasePlatformDescription(), which transfers
  3148. ownership of the platformDescription to the caller.
  3149. -Moves fontForSelection() from FrameMac into Editor.cpp.
  3150. Turns out I don't need to use this function for my patch
  3151. after all, but it doesn't seem like a terrible idea to move
  3152. it anyway since we seem to be moving things from FrameMac
  3153. into Editor these days anyway.
  3154. * WebCore.exp:
  3155. * editing/Editor.cpp:
  3156. (WebCore::Editor::fontForSelection): Moved in from FrameMac.
  3157. * editing/Editor.h: Same, and name change.
  3158. * editing/mac/EditorMac.mm: Name change.
  3159. * page/ContextMenuClient.h: contextMenuItemSelected() has to take a
  3160. pointer to the parent context menu since ContextMenuItem no longer
  3161. holds on to it.
  3162. * page/ContextMenuController.cpp: Same.
  3163. (WebCore::ContextMenuController::contextMenuItemSelected): Same.
  3164. * page/mac/FrameMac.h: Move fontForSelection to Editor
  3165. * page/mac/FrameMac.mm: Same.
  3166. * page/mac/WebCoreFrameBridge.mm:
  3167. (-[WebCoreFrameBridge fontForSelection:]): Account for above.
  3168. * platform/ContextMenu.cpp:
  3169. (WebCore::separatorItem): Can't be const because appendItem now
  3170. expects a non-const menu item.
  3171. (WebCore::createAndAppendFontSubMenu): Change name for clarity.
  3172. (WebCore::createAndAppendSpellingAndGrammarSubMenu): Same.
  3173. (WebCore::createAndAppendSpellingSubMenu): Same.
  3174. (WebCore::createAndAppendSpeechSubMenu): Same.
  3175. (WebCore::createAndAppendWritingDirectionSubMenu): Same.
  3176. (WebCore::ContextMenu::populate): Account for above.
  3177. (WebCore::triStateToBool): New helper.
  3178. (WebCore::ContextMenu::checkOrEnableIfNeeded): Transfers
  3179. logic from WebHTMLView into WebCore to determine if menu items are
  3180. enabled or disabled and to determine if they require a check.
  3181. * platform/ContextMenu.h:
  3182. * platform/ContextMenuItem.h: Re-factored stuff so that our only
  3183. member variable is the platform description.
  3184. (WebCore::): Get rid of if-def.
  3185. * platform/cf/RetainPtr.h: Add releaseRef like in PassRefPtr.
  3186. (WebCore::RetainPtr::releaseRef):
  3187. * platform/mac/ContextMenuItemMac.mm: Same as .h
  3188. (WebCore::ContextMenuItem::ContextMenuItem): Same.
  3189. (WebCore::ContextMenuItem::releasePlatformDescription): Same.
  3190. (WebCore::ContextMenuItem::type): Same.
  3191. (WebCore::ContextMenuItem::platformSubMenu): Same.
  3192. (WebCore::ContextMenuItem::setType): Same.
  3193. (WebCore::ContextMenuItem::setTitle): Same.
  3194. (WebCore::ContextMenuItem::setSubMenu): Same.
  3195. (WebCore::ContextMenuItem::setChecked): Same.
  3196. (WebCore::ContextMenuItem::setEnabled): Same.
  3197. * platform/mac/ContextMenuMac.mm:
  3198. (-[WebCoreMenuTarget forwardContextMenuAction:]): Don't set the
  3199. parent menu.
  3200. (WebCore::setMenuItemTarget):
  3201. (WebCore::ContextMenu::appendItem): Call releasePlatformDescription
  3202. (WebCore::ContextMenu::insertItem): Same.
  3203. 2006-12-15 Darin Fisher <darin@chromium.org>
  3204. Reviewed by Oliver.
  3205. Allow images to load into frames again. Tidy up code a bit and
  3206. add some much needed documentation.
  3207. * platform/MimeTypeRegistry.cpp:
  3208. (WebCore::initialiseSupportedImageMIMETypes):
  3209. (WebCore::initialiseSupportedNonImageMimeTypes):
  3210. * platform/MimeTypeRegistry.h:
  3211. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3212. Fix build.
  3213. * loader/DocumentLoader.cpp:
  3214. (WebCore::DocumentLoader::response):
  3215. (WebCore::DocumentLoader::setResponse):
  3216. (WebCore::DocumentLoader::isStopping):
  3217. (WebCore::DocumentLoader::mainDocumentError):
  3218. * loader/DocumentLoader.h:
  3219. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3220. Reviewed by Geoff.
  3221. More loader cleanup.
  3222. * loader/DocumentLoader.h:
  3223. (WebCore::DocumentLoader::isStopping):
  3224. (WebCore::DocumentLoader::response):
  3225. (WebCore::DocumentLoader::mainDocumentError):
  3226. (WebCore::DocumentLoader::setResponse):
  3227. * loader/FrameLoader.h:
  3228. * loader/FrameLoaderClient.h:
  3229. * loader/mac/DocumentLoaderMac.mm:
  3230. (WebCore::DocumentLoader::DocumentLoader):
  3231. (WebCore::DocumentLoader::stopLoading):
  3232. (WebCore::DocumentLoader::receivedData):
  3233. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  3234. (WebCore::DocumentLoader::prepareForLoadStart):
  3235. * loader/mac/FrameLoaderMac.mm:
  3236. (WebCore::FrameLoader::commitProvisionalLoad):
  3237. (WebCore::FrameLoader::setResponse):
  3238. * loader/mac/ImageDocumentMac.mm:
  3239. (WebCore::finishImageLoad):
  3240. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3241. * loader/DocumentLoader.h:
  3242. Whoops, didn't mean to commit this.
  3243. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3244. Reviewed by Darin and Brady (in no particular order).
  3245. More loader cleanup.
  3246. * loader/FrameLoader.h:
  3247. * loader/mac/FrameLoaderMac.mm:
  3248. (WebCore::FrameLoader::cancelledError):
  3249. (WebCore::FrameLoader::fileDoesNotExistError):
  3250. (WebCore::FrameLoader::cannotShowMIMEType):
  3251. (WebCore::FrameLoader::interruptionForPolicyChangeError):
  3252. * loader/mac/MainResourceLoaderMac.mm:
  3253. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  3254. 2006-12-16 Alexey Proskuryakov <ap@webkit.org>
  3255. Try to fix Windows buid.
  3256. * WebCore.vcproj/WebCore/WebCore.vcproj: Added EventTarget.{h,cpp}
  3257. 2006-12-15 Alexey Proskuryakov <ap@webkit.org>
  3258. Reviewed by Darin.
  3259. http://bugs.webkit.org/show_bug.cgi?id=11610
  3260. XMLHttpRequest.onreadystatechange doesn't provide access to the request object
  3261. Created a separate EventTarget class, now that EventTargetNode isn't the only kind.
  3262. Test: http/tests/xmlhttprequest/event-target.html
  3263. * WebCore.xcodeproj/project.pbxproj: Added EventTarget.{h,cpp}
  3264. * bindings/js/kjs_dom.cpp:
  3265. (KJS::toJS): Added an EventTarget variant.
  3266. * bindings/js/kjs_dom.h: Added toJS() for EventTarget; some minor style fixes.
  3267. * bindings/objc/DOM.mm:
  3268. (+[DOMNode _eventTargetWith:WebCore::]):
  3269. * bindings/scripts/CodeGeneratorObjC.pm:
  3270. Added an EventTarget->DOMEventTarget converter in DOMNode (WebCoreInternal).
  3271. It only works for nodes, since we don't have an ObjC binding for XMLHttpRequest.
  3272. Corrected spelling of internalHeaderContent.
  3273. * dom/Event.cpp:
  3274. (WebCore::Event::setTarget):
  3275. * dom/Event.h:
  3276. (WebCore::Event::target):
  3277. (WebCore::Event::currentTarget):
  3278. (WebCore::Event::setCurrentTarget):
  3279. These methods now work with EventTargets instead of Nodes.
  3280. * dom/EventTarget.cpp: Added.
  3281. (WebCore::EventTarget::~EventTarget):
  3282. (WebCore::EventTarget::toNode):
  3283. (WebCore::EventTarget::toXMLHttpRequest):
  3284. * dom/EventTarget.h: Added.
  3285. (WebCore::EventTarget::ref):
  3286. (WebCore::EventTarget::deref):
  3287. Originally, my intention was to share much of the implementation between
  3288. EventTargetNode and XHR, but now I don't see anything substantial worth sharing.
  3289. * dom/EventTargetNode.cpp:
  3290. (WebCore::EventTargetNode::dispatchGenericEvent): Cast Node to EventTargetNode.
  3291. * dom/EventTargetNode.h: Made EventTarget methods virtual.
  3292. (WebCore::EventTargetNode::toNode): Added poor man's RTTI to upcast from EventTarget.
  3293. (WebCore::EventTargetNode::refEventTarget):
  3294. (WebCore::EventTargetNode::derefEventTarget):
  3295. * dom/MouseEvent.cpp:
  3296. (WebCore::MouseEvent::toElement):
  3297. (WebCore::MouseEvent::fromElement):
  3298. * dom/MouseRelatedEvent.cpp:
  3299. (WebCore::MouseRelatedEvent::receivedTarget):
  3300. * html/HTMLAnchorElement.cpp:
  3301. (WebCore::HTMLAnchorElement::defaultEventHandler):
  3302. * html/HTMLLabelElement.cpp:
  3303. (WebCore::HTMLLabelElement::defaultEventHandler):
  3304. * page/ContextMenuController.cpp:
  3305. (WebCore::ContextMenuController::handleContextMenuEvent):
  3306. * rendering/RenderSlider.cpp:
  3307. (WebCore::RenderSlider::mouseEventIsInThumb):
  3308. Cast from EventTarget to Node as appropriate.
  3309. * xml/xmlhttprequest.cpp:
  3310. (WebCore::XMLHttpRequest::dispatchEvent):
  3311. (WebCore::XMLHttpRequest::callReadyStateChangeListener):
  3312. Set target and currentTarget before dispatching.
  3313. * xml/xmlhttprequest.h: Made EventTarget methods virtual, added a bool tempEvent parameter
  3314. to match EventTargetNode.
  3315. (WebCore::XMLHttpRequest::toXMLHttpRequest): Added poor man's RTTI to upcast from EventTarget.
  3316. (WebCore::XMLHttpRequest::refEventTarget):
  3317. (WebCore::XMLHttpRequest::derefEventTarget):
  3318. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3319. Reviewed by Darin.
  3320. More loader cleanup, use KURL instead of NSURL in a couple of places.
  3321. * loader/DocumentLoader.h:
  3322. * loader/FrameLoader.h:
  3323. * loader/FrameLoaderClient.h:
  3324. * loader/ResourceLoader.h:
  3325. * loader/mac/DocumentLoaderMac.mm:
  3326. (WebCore::DocumentLoader::DocumentLoader):
  3327. (WebCore::DocumentLoader::prepareForLoadStart):
  3328. * loader/mac/FrameLoaderMac.mm:
  3329. (WebCore::FrameLoader::willUseArchive):
  3330. * loader/mac/ResourceLoaderMac.mm:
  3331. (WebCore::ResourceLoader::load):
  3332. 2006-12-15 Brett Wilson <brettw@chromium.org>
  3333. Reviewed by Darin and Alexey.
  3334. Fix the Windows build, move various Client implementations out of
  3335. WebCore and into WebKit.
  3336. * WebCore.vcproj/WebCore/WebCore.vcproj:
  3337. * bridge/win/ChromeClientWin.h: Removed.
  3338. * bridge/win/ContextMenuClientWin.h: Removed.
  3339. * bridge/win/EditorClientWin.h: Removed.
  3340. * bridge/win/FrameWin.cpp:
  3341. (WebCore::FrameWin::FrameWin):
  3342. * bridge/win/FrameWin.h:
  3343. * loader/win/FrameLoaderClientWin.cpp: Removed.
  3344. * loader/win/FrameLoaderClientWin.h: Removed.
  3345. * platform/network/win/ResourceHandleWin.cpp:
  3346. (WebCore::ResourceHandle::start):
  3347. * platform/win/TemporaryLinkStubs.cpp:
  3348. (WebCore::DocumentLoader::URL):
  3349. (WebCore::FrameLoader::load):
  3350. (WebCore::FrameLoader::createFrame):
  3351. (WebCore::FrameLoader::loadResourceSynchronously):
  3352. (WebCore::Pasteboard::writeSelection):
  3353. (WebCore::Pasteboard::writeURL):
  3354. (WebCore::Pasteboard::clear):
  3355. (WebCore::Pasteboard::~Pasteboard):
  3356. (WebCore::PolicyCheck::call):
  3357. (WebCore::PopupMenu::PopupMenu):
  3358. (WebCore::ResourceHandle::loadsBlocked):
  3359. (WebCore::ResourceLoader::cancel):
  3360. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3361. Reviewed by Maciej.
  3362. http://bugs.webkit.org/show_bug.cgi?id=11842
  3363. REGRESSION: Using Safari's snippet editor leaves applewebdata: URLs in history
  3364. * loader/mac/DocumentLoaderMac.mm:
  3365. (WebCore::DocumentLoader::URLForHistory):
  3366. Don't return appleweburls without an unreachable url.
  3367. 2006-12-15 Anders Carlsson <acarlsson@apple.com>
  3368. Reviewed by Darin.
  3369. Replace more instances of NSError with ResourceError.
  3370. Also remove a check for a selector that was added pre-Tiger.
  3371. * WebCore.exp:
  3372. * loader/DocumentLoader.h:
  3373. * loader/FrameLoader.h:
  3374. * loader/ResourceLoader.h:
  3375. * loader/mac/DocumentLoaderMac.mm:
  3376. (WebCore::DocumentLoader::setMainDocumentError):
  3377. (WebCore::DocumentLoader::mainDocumentError):
  3378. (WebCore::DocumentLoader::clearErrors):
  3379. (WebCore::DocumentLoader::mainReceivedError):
  3380. * loader/mac/FrameLoaderMac.mm:
  3381. (WebCore::FrameLoader::cancelMainResourceLoad):
  3382. (WebCore::FrameLoader::opened):
  3383. (WebCore::FrameLoader::mainReceivedError):
  3384. (WebCore::FrameLoader::cancelledError):
  3385. (WebCore::FrameLoader::fileDoesNotExistError):
  3386. (WebCore::FrameLoader::handleUnimplementablePolicy):
  3387. (WebCore::FrameLoader::setMainDocumentError):
  3388. (WebCore::FrameLoader::mainReceivedCompleteError):
  3389. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  3390. (WebCore::FrameLoader::requestFromDelegate):
  3391. (WebCore::FrameLoader::loadedResourceFromMemoryCache):
  3392. (WebCore::FrameLoader::loadResourceSynchronously):
  3393. * loader/mac/ResourceLoaderMac.mm:
  3394. (WebCore::ResourceLoader::willSendRequest):
  3395. (WebCore::ResourceLoader::didCancel):
  3396. (WebCore::ResourceLoader::cancel):
  3397. (WebCore::ResourceLoader::cancelledError):
  3398. * loader/mac/SubresourceLoaderMac.mm:
  3399. (WebCore::SubresourceLoader::didCancel):
  3400. 2006-12-15 Rob Buis <buis@kde.org>
  3401. Reviewed by Darin.
  3402. http://bugs.webkit.org/show_bug.cgi?id=11824
  3403. CSSStyleSheet.title property is always null
  3404. Set title on the stylesheet just after creating it, for the HTML
  3405. elements <link> and <style>.
  3406. * css/StyleSheet.h:
  3407. (WebCore::StyleSheet::setTitle):
  3408. * dom/Element.cpp:
  3409. (WebCore::Element::title):
  3410. * dom/Element.h:
  3411. * dom/StyleElement.cpp:
  3412. (WebCore::StyleElement::childrenChanged):
  3413. * dom/StyleElement.h:
  3414. * html/HTMLElement.cpp:
  3415. * html/HTMLElement.h:
  3416. * html/HTMLLinkElement.cpp:
  3417. (WebCore::HTMLLinkElement::parseMappedAttribute):
  3418. (WebCore::HTMLLinkElement::setCSSStyleSheet):
  3419. * html/HTMLStyleElement.cpp:
  3420. (WebCore::HTMLStyleElement::parseMappedAttribute):
  3421. * ksvg2/svg/SVGStyleElement.cpp:
  3422. (WebCore::SVGStyleElement::setTitle):
  3423. (WebCore::SVGStyleElement::parseMappedAttribute):
  3424. * ksvg2/svg/SVGStyleElement.h:
  3425. 2006-12-15 Lars Knoll <lars@trolltech.com>
  3426. Reviewed by Zack
  3427. Fix compilation.
  3428. * loader/SubresourceLoader.h:
  3429. * platform/qt/PopupMenuQt.cpp:
  3430. (WebCore::PopupMenu::PopupMenu):
  3431. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  3432. Reviewed by Maciej.
  3433. Use char* pointer + length instead of NSData in a bunch of places.
  3434. * loader/DocumentLoader.h:
  3435. * loader/FrameLoader.h:
  3436. * loader/FrameLoaderClient.h:
  3437. * loader/MainResourceLoader.h:
  3438. * loader/NetscapePlugInStreamLoader.h:
  3439. * loader/ResourceLoader.h:
  3440. (WebCore::ResourceLoader::willStopBufferingData):
  3441. * loader/SubresourceLoader.h:
  3442. * loader/mac/DocumentLoaderMac.mm:
  3443. (WebCore::DocumentLoader::commitLoad):
  3444. (WebCore::DocumentLoader::receivedData):
  3445. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  3446. * loader/mac/FrameLoaderMac.mm:
  3447. (WebCore::FrameLoader::didReceiveData):
  3448. (WebCore::FrameLoader::receivedData):
  3449. (WebCore::FrameLoader::committedLoad):
  3450. * loader/mac/MainResourceLoaderMac.mm:
  3451. (WebCore::MainResourceLoader::addData):
  3452. (WebCore::MainResourceLoader::didReceiveData):
  3453. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  3454. (WebCore::NetscapePlugInStreamLoader::didReceiveData):
  3455. * loader/mac/ResourceLoaderMac.mm:
  3456. (WebCore::ResourceLoader::addData):
  3457. (WebCore::ResourceLoader::didReceiveData):
  3458. (WebCore::ResourceLoader::willStopBufferingData):
  3459. * loader/mac/SubresourceLoaderMac.mm:
  3460. (WebCore::SubresourceLoader::didReceiveData):
  3461. * platform/network/ResourceHandleClient.h:
  3462. (WebCore::ResourceHandleClient::willStopBufferingData):
  3463. * platform/network/mac/ResourceHandleMac.mm:
  3464. (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
  3465. 2006-12-14 Adele Peterson <adele@apple.com>
  3466. Reviewed by Adam.
  3467. Added PopupMenuClient class so the PopupMenu class no longer needs to know
  3468. about the RenderMenuList or the DOM.
  3469. * platform/PopupMenu.h:
  3470. (WebCore::PopupMenuClient::~PopupMenuClient):
  3471. (WebCore::PopupMenu::create): Made this protected so PopupMenu can be subclassed.
  3472. (WebCore::PopupMenu::disconnectClient): Renamed from disconnectMenuList.
  3473. (WebCore::PopupMenu::client): Added.
  3474. * platform/mac/PopupMenuMac.mm:
  3475. (WebCore::PopupMenu::PopupMenu): Created using PopupMenuClient instead of RenderMenuList.
  3476. (WebCore::PopupMenu::populate): Asks the client for info about the list items instead of looking at the DOM or the renderer.
  3477. (WebCore::PopupMenu::show): ditto.
  3478. (WebCore::PopupMenu::hide): ditto.
  3479. * rendering/RenderMenuList.h: Now also inherits from PopupMenuClient.
  3480. (WebCore::RenderMenuList::shouldPopOver): Added. Tells the popup whether the menu should pop over the client, or under.
  3481. * rendering/RenderMenuList.cpp:
  3482. (WebCore::RenderMenuList::~RenderMenuList): Calls disconnectClient().
  3483. (WebCore::RenderMenuList::calcMinMaxWidth): Removed unnecessary (and harmful) call to updateFromElement. updateFromElmeent
  3484. can add children, and you don't want to do that in the middle of calculating width.
  3485. (WebCore::RenderMenuList::itemText): Added PopupClient method to provide information about the items in the menu list.
  3486. (WebCore::RenderMenuList::itemIsEnabled): ditto.
  3487. (WebCore::RenderMenuList::itemStyle): ditto.
  3488. (WebCore::RenderMenuList::clientStyle): ditto.
  3489. (WebCore::RenderMenuList::clientDocument): ditto.
  3490. (WebCore::RenderMenuList::clientPaddingLeft): ditto.
  3491. (WebCore::RenderMenuList::clientPaddingRight): ditto.
  3492. (WebCore::RenderMenuList::listSize): ditto.
  3493. (WebCore::RenderMenuList::selectedIndex): ditto.
  3494. (WebCore::RenderMenuList::itemIsSeparator): ditto.
  3495. (WebCore::RenderMenuList::itemIsLabel): ditto.
  3496. (WebCore::RenderMenuList::itemIsSelected): ditto.
  3497. (WebCore::RenderMenuList::setTextFromItem): ditto.
  3498. 2006-12-14 Geoffrey Garen <ggaren@apple.com>
  3499. Fixed <rdar://problem/4882713> GMAIL (REGRESSION): Can't apply font style,
  3500. foreground or background to selected text
  3501. Also <rdar://problem/4883751> REGRESSION: Caret fails to insert itself
  3502. automatically in a new note window
  3503. I'm rolling out my change to move focus to the page level because it caused
  3504. too many unexpected and bizarre regressions. Our code relies on focus
  3505. being per-document so that it can make focus changes that are effectively
  3506. no-ops, and so that it can conflate focus and selection in some cases (a bad
  3507. idea, since they're not the same).
  3508. Hopefully we can revisit this, along with hover and active, in the future.
  3509. * dom/Document.cpp:
  3510. (WebCore::widgetForNode):
  3511. (WebCore::relinquishesEditingFocus):
  3512. (WebCore::acceptsEditingFocus):
  3513. (WebCore::clearSelectionIfNeeded):
  3514. (WebCore::Document::removedLastRef):
  3515. (WebCore::Document::detach):
  3516. (WebCore::Document::focusedNodeDetached):
  3517. (WebCore::Document::setFocusedNode):
  3518. * dom/Document.h:
  3519. (WebCore::Document::focusedNode):
  3520. * page/FocusController.cpp:
  3521. * page/FocusController.h:
  3522. 2006-12-14 Maciej Stachowiak <mjs@apple.com>
  3523. Reviewed by Geoff.
  3524. - fix failing drag & drop layout tests
  3525. * platform/mac/KURLMac.mm:
  3526. (WebCore::KURL::getNSURL): Turn empty KURL into empty NSURL, but null KURL into
  3527. nil.
  3528. 2006-12-14 Steve Falkenburg <sfalken@apple.com>
  3529. Build fix.
  3530. * loader/MainResourceLoader.h:
  3531. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  3532. Reviewed by John.
  3533. Convert a bunch of NSErrors to ResourceError.
  3534. Make the ResourceError accessor functions const.
  3535. * WebCore.exp:
  3536. * WebCore.xcodeproj/project.pbxproj:
  3537. * loader/FrameLoader.h:
  3538. * loader/FrameLoaderClient.h:
  3539. * loader/MainResourceLoader.h:
  3540. * loader/NetscapePlugInStreamLoader.h:
  3541. * loader/ResourceLoader.h:
  3542. * loader/SubresourceLoader.h:
  3543. * loader/mac/FrameLoaderMac.mm:
  3544. (WebCore::FrameLoader::didFailToLoad):
  3545. (WebCore::FrameLoader::receivedMainResourceError):
  3546. (WebCore::FrameLoader::interruptionForPolicyChangeError):
  3547. * loader/mac/MainResourceLoaderMac.mm:
  3548. (WebCore::MainResourceLoader::receivedError):
  3549. (WebCore::MainResourceLoader::didCancel):
  3550. (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
  3551. (WebCore::MainResourceLoader::didFail):
  3552. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  3553. (WebCore::NetscapePlugInStreamLoader::didFail):
  3554. (WebCore::NetscapePlugInStreamLoader::didCancel):
  3555. * loader/mac/ResourceLoaderMac.mm:
  3556. (WebCore::ResourceLoader::didFail):
  3557. (WebCore::ResourceLoader::didCancel):
  3558. * loader/mac/SubresourceLoaderMac.mm:
  3559. (WebCore::SubresourceLoader::didFail):
  3560. (WebCore::SubresourceLoader::didCancel):
  3561. * platform/network/ResourceError.h:
  3562. (WebCore::ResourceError::domain):
  3563. (WebCore::ResourceError::errorCode):
  3564. (WebCore::ResourceError::failingURL):
  3565. (WebCore::ResourceError::localizedDescription):
  3566. (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
  3567. 2006-12-14 George Staikos <staikos@kde.org>
  3568. Link, after the last loader changes. Please update this directory with stubs when modifying the loader.
  3569. * loader/qt/FrameLoaderQt.cpp:
  3570. (WebCore::FrameLoader::loadResourceSynchronously):
  3571. 2006-12-14 Justin Garcia <justin.garcia@apple.com>
  3572. Reviewed by harrison
  3573. <rdar://problem/4866671>
  3574. CrashTracer: 1 crashes in Mail after deleting a list item at WebCore::DeleteSelectionCommand::doApply()
  3575. Don't allow VisiblePositions inside -webkit-user-select:none regions.
  3576. Renamed inRenderedContent to isCandidate.
  3577. * dom/Document.cpp:
  3578. (WebCore::Document::updateSelection):
  3579. * dom/Position.cpp:
  3580. (WebCore::Position::previousCharacterPosition):
  3581. (WebCore::Position::nextCharacterPosition):
  3582. (WebCore::nodeIsUserSelectNone):
  3583. (WebCore::Position::isCandidate):
  3584. (WebCore::Position::rendersInDifferentPosition):
  3585. * dom/Position.h:
  3586. * editing/InsertParagraphSeparatorCommand.cpp:
  3587. (WebCore::InsertParagraphSeparatorCommand::doApply):
  3588. * editing/InsertTextCommand.cpp:
  3589. (WebCore::InsertTextCommand::input):
  3590. * editing/VisiblePosition.cpp:
  3591. (WebCore::VisiblePosition::canonicalPosition):
  3592. * editing/htmlediting.cpp:
  3593. (WebCore::nextCandidate):
  3594. (WebCore::nextVisuallyDistinctCandidate):
  3595. (WebCore::previousCandidate):
  3596. (WebCore::previousVisuallyDistinctCandidate):
  3597. * editing/visible_units.cpp:
  3598. (WebCore::previousLinePosition):
  3599. (WebCore::nextLinePosition):
  3600. (WebCore::startOfParagraph):
  3601. * page/Frame.cpp:
  3602. (WebCore::Frame::styleForSelectionStart):
  3603. 2006-12-14 David Hyatt <hyatt@apple.com>
  3604. Get rid of the containsStart check and just rely on the selectionState
  3605. bits. This allows selection gap filling to behave properly in the presence
  3606. of inline blocks and inline tables on lines when the selection originates
  3607. inside the inline block.
  3608. Reviewed by ggaren
  3609. * rendering/RenderBlock.cpp:
  3610. (WebCore::RenderBlock::fillInlineSelectionGaps):
  3611. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  3612. Reviewed by John.
  3613. General loader cleanup, convert NSURLResponse to ResourceResponse in some places.
  3614. * loader/DocumentLoader.h:
  3615. * loader/SubresourceLoader.h:
  3616. * loader/mac/DocumentLoaderMac.mm:
  3617. (WebCore::DocumentLoader::addResponse):
  3618. * loader/mac/FrameLoaderMac.mm:
  3619. (WebCore::FrameLoader::opened):
  3620. * loader/mac/SubresourceLoaderMac.mm:
  3621. (WebCore::SubresourceLoader::create):
  3622. 2006-12-14 Anders Carlsson <acarlsson@apple.com>
  3623. Reviewed by Darin.
  3624. Add loadResourceSynchronously to ResourceHandle and have FrameLoader use it instead of
  3625. calling NSURLConnection directly.
  3626. Add an isNull flag to ResourceError so we can convert correctly between nil NSErrors and ResourceErrors.
  3627. Get rid of ServeSynchronousRequest and use the loader instead.
  3628. * WebCore.exp:
  3629. * dom/XMLTokenizer.cpp:
  3630. (WebCore::openFunc):
  3631. * loader/FrameLoader.h:
  3632. * loader/LoaderFunctions.h:
  3633. * loader/mac/FrameLoaderMac.mm:
  3634. (WebCore::FrameLoader::canLoad):
  3635. (WebCore::FrameLoader::loadResourceSynchronously):
  3636. * loader/mac/LoaderFunctionsMac.mm:
  3637. * platform/network/ResourceError.h:
  3638. (WebCore::ResourceError::ResourceError):
  3639. (WebCore::ResourceError::isNull):
  3640. * platform/network/ResourceHandle.h:
  3641. * platform/network/ResourceRequest.cpp:
  3642. (WebCore::ResourceRequest::isConditional):
  3643. * platform/network/ResourceRequest.h:
  3644. * platform/network/mac/ResourceErrorMac.mm:
  3645. (-[NSError WebCore]):
  3646. * platform/network/mac/ResourceHandleMac.mm:
  3647. (WebCore::ResourceHandle::loadResourceSynchronously):
  3648. * xml/XSLTProcessor.cpp:
  3649. (WebCore::docLoaderFunc):
  3650. * xml/xmlhttprequest.cpp:
  3651. (WebCore::XMLHttpRequest::send):
  3652. 2006-12-14 Nikolas Zimmermann <zimmermann@kde.org>
  3653. Reviewed by Darin.
  3654. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11830
  3655. Fix fundamental problems with JS SVG POD types.
  3656. (currently: FloatPoint/FloatRect/AffineTransform)
  3657. This doesn't affect any testcase, but when I wrote my SVGLength* -> SVGLength
  3658. the problem got visible (aka. baseVal-animVal-equality.svg broke and more)
  3659. With that patch applied first, none breaks - so SVG POD JS wrappers do work now.
  3660. In detail:
  3661. - Fix setBaseValue() confusion. ONLY use the hash map in SVGDocumentExtension
  3662. when we're animating a property. Add "start##Property" / "stop##Property" methods
  3663. which take care, of moving "animVal" -> "baseVal" hash, and back after animation stopped.
  3664. These new methods are not yet used anywhere, but finally the "animated property" system is complete.
  3665. - Offer a new JSSVGPODTypeWrapper class, wrapping around non-pointer POD types like FloatPoint etc.
  3666. to be used in the generated JS bindings. Currently if you modified ie the "x" property of a SVGPoint
  3667. from JS, you only actually modified the "m_x" object stored in the JSSVGPoint wrapper.
  3668. If you take SVGLength as example (more frequently used in the JS SVG bindings, that's why I'm using it)
  3669. "document.rootElement.width.baseVal.value = 100;" only modified the "SVGLength m_impl" object stored in
  3670. JSSVGLength, but the "SVGSVGElement" didn't notice it width got changed. The new commitChanges() logic
  3671. fixes these problems.
  3672. It's quite hard too describe the actual changes, if one is not familiar with the code. This is the result
  3673. of endless discussions with Eric Seidel, and we hope this is a decent solution addressing all issues.
  3674. * WebCore.xcodeproj/project.pbxproj:
  3675. * bindings/js/JSSVGMatrixCustom.cpp:
  3676. (WebCore::JSSVGMatrix::inverse):
  3677. (WebCore::JSSVGMatrix::rotateFromVector):
  3678. * bindings/js/JSSVGPODTypeWrapper.h: Added.
  3679. (WebCore::JSSVGPODTypeWrapper::JSSVGPODTypeWrapper):
  3680. (WebCore::JSSVGPODTypeWrapper::~JSSVGPODTypeWrapper):
  3681. (WebCore::JSSVGPODTypeWrapper::operator PODType&):
  3682. (WebCore::JSSVGPODTypeWrapper::commitChange):
  3683. (WebCore::JSSVGPODTypeWrapperCreator::JSSVGPODTypeWrapperCreator):
  3684. (WebCore::JSSVGPODTypeWrapperCreator::~JSSVGPODTypeWrapperCreator):
  3685. (WebCore::JSSVGPODTypeWrapperCreator::commitChange):
  3686. * bindings/scripts/CodeGeneratorJS.pm:
  3687. * ksvg2/misc/SVGDocumentExtensions.h:
  3688. (WebCore::SVGDocumentExtensions::removeBaseValue):
  3689. * ksvg2/svg/SVGElement.h:
  3690. 2006-12-14 Alexey Proskuryakov <ap@webkit.org>
  3691. Reviewed by Darin.
  3692. http://bugs.webkit.org/show_bug.cgi?id=11828
  3693. Fix a leak of NSURLRequest on each update - RetainPtr retains the object itself.
  3694. * platform/network/mac/ResourceRequestMac.mm:
  3695. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  3696. 2006-12-14 Simon Hausmann <hausmann@kde.org>
  3697. Reviewed by Zack Rusin.
  3698. * WebCore.pro: Clean up the xpath grammar generation rule.
  3699. 2006-12-14 Zack Rusin <zack@kde.org>
  3700. Make it link with temporary stubs.
  3701. * loader/qt/DocumentLoaderQt.cpp:
  3702. (WebCore::DocumentLoader::originalRequest):
  3703. (WebCore::DocumentLoader::originalRequestCopy):
  3704. (WebCore::DocumentLoader::request):
  3705. (WebCore::DocumentLoader::initialRequest):
  3706. (WebCore::DocumentLoader::actualRequest):
  3707. (WebCore::DocumentLoader::URL):
  3708. 2006-12-14 Zack Rusin <zack@kde.org>
  3709. Compilation fixes for the Qt port after last nights
  3710. changes.
  3711. * loader/qt/DocumentLoaderQt.cpp:
  3712. (WebCore::DocumentLoader::URL):
  3713. (WebCore::DocumentLoader::unreachableURL):
  3714. * loader/qt/FrameLoaderQt.cpp:
  3715. (WebCore::PolicyCheck::call):
  3716. * platform/network/ResourceRequest.h:
  3717. (WebCore::ResourceRequest::setHTTPReferrer):
  3718. 2006-12-14 Rob Buis <buis@kde.org>
  3719. Reviewed by Oliver.
  3720. http://bugs.webkit.org/show_bug.cgi?id=11726
  3721. SVG Image do not take into account clip/overflow when hit testing
  3722. Take into account the overflowRect when hit-testing <svg> container.
  3723. * rendering/RenderSVGContainer.cpp:
  3724. (WebCore::RenderSVGContainer::viewportTransform):
  3725. (WebCore::RenderSVGContainer::nodeAtPoint):
  3726. * rendering/RenderSVGContainer.h:
  3727. 2006-12-13 David Hyatt <hyatt@apple.com>
  3728. Fix for bug 11825, dragging elements via -khtml-user-drag is broken (affects Dashboard). Make sure
  3729. to clear the paintingRoot properly when recurring into children. It would be nice to find a design
  3730. that prevented this mistake from being made and didn't require explicit clearing of the root.
  3731. Reviewed by olliej
  3732. * rendering/InlineFlowBox.cpp:
  3733. (WebCore::InlineFlowBox::paint):
  3734. * rendering/RenderBlock.cpp:
  3735. (WebCore::RenderBlock::paintChildren):
  3736. * rendering/RenderBox.cpp:
  3737. (WebCore::RenderBox::paint):
  3738. * rendering/RenderTable.cpp:
  3739. (WebCore::RenderTable::paint):
  3740. 2006-12-13 Anders Carlsson <acarlsson@apple.com>
  3741. * loader/FrameLoader.h:
  3742. id is mac-only.
  3743. 2006-12-13 Brady Eidson <beidson@apple.com>
  3744. Implicitly reviewed by Darin, Hyatt, Maciej, and others!
  3745. Fixes a document tear down crash.
  3746. Changes a few long standing assertions to our new style
  3747. * dom/Document.cpp:
  3748. (WebCore::Document::~Document):
  3749. (WebCore::Document::topDocument):
  3750. 2006-12-13 Maciej Stachowiak <mjs@apple.com>
  3751. Reviewed by Anders.
  3752. - converted many places to use ResourceRequest instead of NSURLRequest
  3753. * WebCore.exp:
  3754. * loader/DocumentLoader.h:
  3755. * loader/FrameLoader.cpp:
  3756. (WebCore::FrameLoader::stopPolicyCheck):
  3757. * loader/FrameLoader.h:
  3758. (WebCore::PolicyCheck::request):
  3759. * loader/FrameLoaderClient.h:
  3760. * loader/MainResourceLoader.h:
  3761. * loader/mac/DocumentLoaderMac.mm:
  3762. (WebCore::DocumentLoader::DocumentLoader):
  3763. (WebCore::DocumentLoader::originalRequest):
  3764. (WebCore::DocumentLoader::originalRequestCopy):
  3765. (WebCore::DocumentLoader::request):
  3766. (WebCore::DocumentLoader::initialRequest):
  3767. (WebCore::DocumentLoader::actualRequest):
  3768. (WebCore::DocumentLoader::URL):
  3769. (WebCore::DocumentLoader::unreachableURL):
  3770. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  3771. (WebCore::DocumentLoader::setRequest):
  3772. (WebCore::DocumentLoader::stopLoading):
  3773. (WebCore::DocumentLoader::setLastCheckedRequest):
  3774. (WebCore::DocumentLoader::lastCheckedRequest):
  3775. (WebCore::DocumentLoader::URLForHistory):
  3776. * loader/mac/FrameLoaderMac.mm:
  3777. (WebCore::FrameLoader::load):
  3778. (WebCore::FrameLoader::startLoadingMainResource):
  3779. (WebCore::FrameLoader::applyUserAgent):
  3780. (WebCore::FrameLoader::originalRequest):
  3781. (WebCore::FrameLoader::receivedMainResourceError):
  3782. (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
  3783. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  3784. (WebCore::FrameLoader::commitProvisionalLoad):
  3785. (WebCore::FrameLoader::initialRequest):
  3786. (WebCore::FrameLoader::setRequest):
  3787. (WebCore::FrameLoader::checkNavigationPolicy):
  3788. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  3789. (WebCore::FrameLoader::reloadAllowingStaleData):
  3790. (WebCore::FrameLoader::reload):
  3791. (WebCore::FrameLoader::checkNewWindowPolicy):
  3792. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  3793. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  3794. (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
  3795. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  3796. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  3797. (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
  3798. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
  3799. (WebCore::FrameLoader::post):
  3800. (WebCore::FrameLoader::addExtraFieldsToRequest):
  3801. (WebCore::FrameLoader::isReloading):
  3802. (WebCore::FrameLoader::referrer):
  3803. (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
  3804. (WebCore::FrameLoader::loadResourceSynchronously):
  3805. (WebCore::FrameLoader::originalRequestURL):
  3806. (WebCore::PolicyCheck::set):
  3807. (WebCore::PolicyCheck::call):
  3808. (WebCore::PolicyCheck::clearRequest):
  3809. * loader/mac/MainResourceLoaderMac.mm:
  3810. (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
  3811. (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
  3812. (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  3813. * loader/mac/SubresourceLoaderMac.mm:
  3814. (WebCore::SubresourceLoader::create):
  3815. * loader/mac/WebDataProtocol.h:
  3816. * loader/mac/WebDataProtocol.mm:
  3817. * platform/KURL.cpp:
  3818. (WebCore::operator!=):
  3819. * platform/KURL.h:
  3820. * platform/mac/KURLMac.mm:
  3821. (WebCore::KURL::getNSURL):
  3822. * platform/network/FormData.h:
  3823. (WebCore::operator==):
  3824. (WebCore::operator!=):
  3825. * platform/network/ResourceRequest.cpp:
  3826. (WebCore::operator==):
  3827. * platform/network/ResourceRequest.h:
  3828. * platform/network/mac/ResourceRequestMac.mm:
  3829. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  3830. 2006-12-13 Geoffrey Garen <ggaren@apple.com>
  3831. Reviewed by Darin Adler, Dave Hyatt.
  3832. Beefed up FocusController to handle frame focus. Changed implementors to
  3833. use FocusController, rather than the widget hierarchy, to focus frames.
  3834. (WebCore::FocusController::focusedNode): Made a minor change to focus a frame
  3835. before focusing the element inside of it. This matches FF.
  3836. (WebCore::FocusController::focusedFrame):
  3837. * platform/Widget.h:
  3838. 2006-12-13 Justin Garcia <justin.garcia@apple.com>
  3839. Reviewed by adele
  3840. <rdar://problem/4818145>
  3841. Cannot setSelectedDOMRange to non-editable island unless it has editable content on both sides
  3842. There are editable positions before/after a "non-editable island" if its
  3843. a table, but the code in canonicalPosition was not using
  3844. editableRootForPosition to find root editable elements.
  3845. * editing/VisiblePosition.cpp:
  3846. (WebCore::VisiblePosition::canonicalPosition): Use editableRootForPosition
  3847. to fix the table case.
  3848. 2006-12-13 Steve Falkenburg <sfalken@apple.com>
  3849. Reviewed by Adam.
  3850. Added missing forwarding headers.
  3851. * ForwardingHeaders/kjs/value.h: Added.
  3852. * ForwardingHeaders/wtf/HashTable.h: Added.
  3853. 2006-12-13 Lars Knoll <lars@trolltech.com>
  3854. Reviewed by Maciej, Zack.
  3855. Make the Qt cbuild compile again.
  3856. * WebCore.pro:
  3857. * loader/qt/ResourceLoaderQt.cpp:
  3858. * platform/network/qt/ResourceHandleQt.cpp:
  3859. (WebCore::ResourceHandle::start):
  3860. (WebCore::ResourceHandle::loadsBlocked):
  3861. * platform/qt/FrameQtClient.cpp:
  3862. (WebCore::FrameQtClient::openURL):
  3863. (WebCore::FrameQtClient::submitForm):
  3864. 2006-12-12 Adam Roben <aroben@apple.com>
  3865. Reviewed by Anders.
  3866. Changed #import to #include to match the rest of our ForwardingHeaders.
  3867. * ForwardingHeaders/wtf/StringExtras.h:
  3868. 2006-12-12 Justin Garcia <justin.garcia@apple.com>
  3869. Reviewed by harrison
  3870. <rdar://problem/4757667>
  3871. GoogleDocs: Style menu does not open
  3872. * bindings/js/kjs_window.cpp:
  3873. (KJS::Selection::getValueProperty): Added rangeCount.
  3874. * bindings/js/kjs_window.h:
  3875. (KJS::Selection::):
  3876. * editing/SelectionController.h:
  3877. (WebCore::SelectionController::rangeCount): Added.
  3878. 2006-12-12 Alice Liu <alice.liu@apple.com>
  3879. Reviewed by Oliver.
  3880. * bindings/js/JSSVGMatrixCustom.cpp:
  3881. added #ifdef SVG_SUPPORT
  3882. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  3883. Suggested by Darin.
  3884. * loader/ResourceLoader.cpp:
  3885. Move down include of ResourceHandle.h.
  3886. 2006-12-12 Geoffrey Garen <ggaren@apple.com>
  3887. Reviewed by Adam Roben, Dave Hyatt, Darin Adler.
  3888. Factored focus control into a FocusController class. I inted to use this
  3889. class for handling window active state and the focused frame, as well.
  3890. Layout tests pass.
  3891. * WebCore.xcodeproj/project.pbxproj:
  3892. * dom/Document.cpp:
  3893. (WebCore::Document::view):
  3894. (WebCore::Document::page): New helper function.
  3895. * dom/Document.h: Moved setters before getters.
  3896. (WebCore::Document::hoverNode):
  3897. (WebCore::Document::activeNode):
  3898. * dom/Node.cpp:
  3899. (WebCore::Node::detach): Use the FocusController.
  3900. * page/FocusController.cpp: Added.
  3901. (WebCore::shouldFocus): renamed and refactored this helper function.
  3902. (WebCore::shouldUnfocus): ditto.
  3903. * page/FocusController.h: Added.
  3904. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  3905. Rubber Stamped by Geoff.
  3906. * platform/Base64.cpp:
  3907. * platform/Base64.h:
  3908. Put functions inside of the WebCore namespace.
  3909. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  3910. Try fixing the non-Mac builds.
  3911. * loader/ResourceLoader.cpp:
  3912. (WebCore::ResourceLoader::willSendRequest):
  3913. (WebCore::ResourceLoader::didReceiveResponse):
  3914. (WebCore::ResourceLoader::didReceiveData):
  3915. (WebCore::ResourceLoader::didFinishLoading):
  3916. (WebCore::ResourceLoader::didFail):
  3917. * loader/SubresourceLoader.cpp:
  3918. (WebCore::SubresourceLoader::create):
  3919. * loader/SubresourceLoader.h:
  3920. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  3921. Reviewed by Darin.
  3922. Turn ResourceLoader into a ResourceHandleClient and stop using NSURLConnection in the loader.
  3923. * WebCore.exp:
  3924. Add new methods needed by WebKit.
  3925. * WebCore.xcodeproj/project.pbxproj:
  3926. Make ResourceHandle.h a private header.
  3927. * loader/FrameLoaderClient.h:
  3928. Change the download method to take a ResourceHandle instead of an NSURLConnection.
  3929. * loader/MainResourceLoader.h:
  3930. Get rid of the proxy instance variable, that's handled by ResourceHandlw now.
  3931. * loader/ResourceLoader.h:
  3932. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  3933. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  3934. (WebCore::ResourceLoader::willStopBufferingData):
  3935. (WebCore::ResourceLoader::willCacheResponse):
  3936. (WebCore::ResourceLoader::receivedCredential):
  3937. (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
  3938. (WebCore::ResourceLoader::receivedCancellation):
  3939. (WebCore::ResourceLoader::handle):
  3940. * loader/SubresourceLoader.h:
  3941. Make ResourceLoader a ResourceHandleClient, moving the methods from SubresourceLoader.
  3942. * loader/mac/MainResourceLoaderMac.mm:
  3943. (WebCore::MainResourceLoader::MainResourceLoader):
  3944. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  3945. (WebCore::MainResourceLoader::loadNow):
  3946. (WebCore::MainResourceLoader::load):
  3947. Use a ResourceHandle instead of an NSURLConnection.
  3948. * loader/mac/ResourceLoaderMac.mm:
  3949. (WebCore::ResourceLoader::~ResourceLoader):
  3950. (WebCore::ResourceLoader::releaseResources):
  3951. (WebCore::ResourceLoader::load):
  3952. (WebCore::ResourceLoader::setDefersLoading):
  3953. (WebCore::ResourceLoader::resourceData):
  3954. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  3955. (WebCore::ResourceLoader::didCancel):
  3956. (WebCore::ResourceLoader::willSendRequest):
  3957. (WebCore::ResourceLoader::didReceiveResponse):
  3958. (WebCore::ResourceLoader::didReceiveData):
  3959. (WebCore::ResourceLoader::didFinishLoading):
  3960. (WebCore::ResourceLoader::didFail):
  3961. Remove the WebCoreResourceLoaderAsDelegate class, use a ResourceHandle instead of an NSURLConnection.
  3962. * loader/mac/SubresourceLoaderMac.mm:
  3963. Remove ResourceHandleClient methods.
  3964. * platform/network/ResourceHandle.cpp:
  3965. (WebCore::ResourceHandle::ResourceHandle):
  3966. (WebCore::ResourceHandle::create):
  3967. * platform/network/ResourceHandle.h:
  3968. * platform/network/ResourceHandleInternal.h:
  3969. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  3970. Add an extra argument denoting whether this ResourceHandle can possibly be "converted" into one used for downloads.
  3971. * platform/network/mac/ResourceHandleMac.mm:
  3972. (WebCore::ResourceHandle::~ResourceHandle):
  3973. (WebCore::ResourceHandle::start):
  3974. (WebCore::ResourceHandle::releaseProxy):
  3975. (WebCore::ResourceHandle::connection):
  3976. New methods for creating a NSURLConnectionDelegateProxy which is used when creating a NSURLDownload from an existing
  3977. connection.
  3978. 2006-12-12 Anders Carlsson <acarlsson@apple.com>
  3979. Reviewed by Geoff.
  3980. * loader/mac/SubresourceLoaderMac.mm:
  3981. (WebCore::SubresourceLoader::load):
  3982. * platform/network/mac/ResourceHandleMac.mm:
  3983. (WebCore::ResourceHandle::start):
  3984. Move the didTellBridgeAboutLoad call to SubresourceLoader in preparation for getting rid of
  3985. the DocLoader parameter to ResourceHandle::create.
  3986. 2006-12-12 George Staikos <staikos@kde.org>
  3987. Make the last checkin compile.
  3988. * WebCore.pro:
  3989. * ksvg2/svg/SVGTransform.cpp:
  3990. 2006-12-12 Nikolas Zimmermann <zimmermann@kde.org>
  3991. Reviewed by Sam Weinig & Rob Buis.
  3992. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11797
  3993. Remove SVGMatrix, replace it by AffineTransform usage everywhere.
  3994. Changed AffineTransform API to be able to be used within generation
  3995. (m11() -> a(), m12() -> b(), ...). Add some methods needed for SVG.
  3996. The actual SVGMatrix -> AffineTransformation patch has been created
  3997. by Rob - I just adapted it to the autogenerated POD style.
  3998. * WebCore.xcodeproj/project.pbxproj:
  3999. * bindings/js/JSSVGMatrixCustom.cpp: Added.
  4000. (WebCore::JSSVGMatrix::inverse):
  4001. (WebCore::JSSVGMatrix::rotateFromVector):
  4002. * bindings/objc/DOMInternal.h:
  4003. * bindings/scripts/CodeGeneratorJS.pm:
  4004. * bindings/scripts/CodeGeneratorObjC.pm:
  4005. * ksvg2/misc/KSVGTimeScheduler.cpp:
  4006. * ksvg2/misc/SVGImageLoader.cpp:
  4007. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  4008. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  4009. (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
  4010. (WebCore::SVGAnimateTransformElement::initialMatrix):
  4011. (WebCore::SVGAnimateTransformElement::transformMatrix):
  4012. * ksvg2/svg/SVGAnimateTransformElement.h:
  4013. * ksvg2/svg/SVGClipPathElement.cpp:
  4014. (WebCore::SVGClipPathElement::canvasResource):
  4015. * ksvg2/svg/SVGFitToViewBox.cpp:
  4016. (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
  4017. * ksvg2/svg/SVGFitToViewBox.h:
  4018. * ksvg2/svg/SVGLengthList.cpp:
  4019. * ksvg2/svg/SVGLinearGradientElement.cpp:
  4020. (WebCore::SVGLinearGradientElement::buildGradient):
  4021. * ksvg2/svg/SVGLocatable.cpp:
  4022. (WebCore::SVGLocatable::getCTM):
  4023. (WebCore::SVGLocatable::getScreenCTM):
  4024. (WebCore::SVGLocatable::getTransformToElement):
  4025. * ksvg2/svg/SVGLocatable.h:
  4026. * ksvg2/svg/SVGMarkerElement.cpp:
  4027. * ksvg2/svg/SVGMatrix.cpp: Removed.
  4028. * ksvg2/svg/SVGMatrix.h: Removed.
  4029. * ksvg2/svg/SVGMatrix.idl:
  4030. * ksvg2/svg/SVGNumberList.cpp:
  4031. * ksvg2/svg/SVGPatternElement.cpp:
  4032. (WebCore::SVGPatternElement::notifyAttributeChange):
  4033. (WebCore::SVGPatternElement::getCTM):
  4034. * ksvg2/svg/SVGPatternElement.h:
  4035. * ksvg2/svg/SVGPoint.idl:
  4036. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  4037. (WebCore::SVGPreserveAspectRatio::getCTM):
  4038. * ksvg2/svg/SVGPreserveAspectRatio.h:
  4039. * ksvg2/svg/SVGRadialGradientElement.cpp:
  4040. (WebCore::SVGRadialGradientElement::buildGradient):
  4041. * ksvg2/svg/SVGSVGElement.cpp:
  4042. (WebCore::SVGSVGElement::viewport):
  4043. (WebCore::SVGSVGElement::createSVGMatrix):
  4044. (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
  4045. (WebCore::SVGSVGElement::getCTM):
  4046. (WebCore::SVGSVGElement::getScreenCTM):
  4047. * ksvg2/svg/SVGSVGElement.h:
  4048. * ksvg2/svg/SVGStyledElement.cpp:
  4049. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  4050. (WebCore::SVGStyledLocatableElement::getCTM):
  4051. (WebCore::SVGStyledLocatableElement::getScreenCTM):
  4052. * ksvg2/svg/SVGStyledLocatableElement.h:
  4053. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  4054. (WebCore::SVGStyledTransformableElement::localMatrix):
  4055. (WebCore::SVGStyledTransformableElement::getCTM):
  4056. (WebCore::SVGStyledTransformableElement::getScreenCTM):
  4057. (WebCore::SVGStyledTransformableElement::updateLocalTransform):
  4058. (WebCore::SVGStyledTransformableElement::attach):
  4059. * ksvg2/svg/SVGStyledTransformableElement.h:
  4060. * ksvg2/svg/SVGTextElement.cpp:
  4061. (WebCore::SVGTextElement::localMatrix):
  4062. (WebCore::SVGTextElement::updateLocalTransform):
  4063. (WebCore::SVGTextElement::attach):
  4064. (WebCore::SVGTextElement::getScreenCTM):
  4065. (WebCore::SVGTextElement::getCTM):
  4066. * ksvg2/svg/SVGTextElement.h:
  4067. * ksvg2/svg/SVGTransform.cpp:
  4068. (SVGTransform::SVGTransform):
  4069. (SVGTransform::matrix):
  4070. (SVGTransform::setMatrix):
  4071. (SVGTransform::setTranslate):
  4072. (SVGTransform::setScale):
  4073. (SVGTransform::setRotate):
  4074. (SVGTransform::setSkewX):
  4075. (SVGTransform::setSkewY):
  4076. * ksvg2/svg/SVGTransform.h:
  4077. * ksvg2/svg/SVGTransformList.cpp:
  4078. (SVGTransformList::createSVGTransformFromMatrix):
  4079. (SVGTransformList::concatenate):
  4080. * ksvg2/svg/SVGTransformList.h:
  4081. * ksvg2/svg/SVGTransformable.cpp:
  4082. (WebCore::SVGTransformable::getCTM):
  4083. (WebCore::SVGTransformable::getScreenCTM):
  4084. (WebCore::SVGTransformable::parseTransformAttribute):
  4085. * ksvg2/svg/SVGTransformable.h:
  4086. * platform/graphics/AffineTransform.cpp:
  4087. (WebCore::AffineTransform::multiply):
  4088. (WebCore::AffineTransform::scale):
  4089. (WebCore::AffineTransform::scaleNonUniform):
  4090. (WebCore::AffineTransform::rotateFromVector):
  4091. (WebCore::AffineTransform::flipX):
  4092. (WebCore::AffineTransform::flipY):
  4093. (WebCore::AffineTransform::skewX):
  4094. (WebCore::AffineTransform::skewY):
  4095. * platform/graphics/AffineTransform.h:
  4096. * platform/graphics/cairo/AffineTransformCairo.cpp:
  4097. (WebCore::AffineTransform::a):
  4098. (WebCore::AffineTransform::setA):
  4099. (WebCore::AffineTransform::b):
  4100. (WebCore::AffineTransform::setB):
  4101. (WebCore::AffineTransform::c):
  4102. (WebCore::AffineTransform::setC):
  4103. (WebCore::AffineTransform::d):
  4104. (WebCore::AffineTransform::setD):
  4105. (WebCore::AffineTransform::e):
  4106. (WebCore::AffineTransform::setE):
  4107. (WebCore::AffineTransform::f):
  4108. (WebCore::AffineTransform::setF):
  4109. (WebCore::AffineTransform::inverse):
  4110. * platform/graphics/cg/AffineTransformCG.cpp:
  4111. (WebCore::AffineTransform::a):
  4112. (WebCore::AffineTransform::setA):
  4113. (WebCore::AffineTransform::b):
  4114. (WebCore::AffineTransform::setB):
  4115. (WebCore::AffineTransform::c):
  4116. (WebCore::AffineTransform::setC):
  4117. (WebCore::AffineTransform::d):
  4118. (WebCore::AffineTransform::setD):
  4119. (WebCore::AffineTransform::e):
  4120. (WebCore::AffineTransform::setE):
  4121. (WebCore::AffineTransform::f):
  4122. (WebCore::AffineTransform::setF):
  4123. (WebCore::AffineTransform::inverse):
  4124. * platform/graphics/qt/AffineTransformQt.cpp:
  4125. (WebCore::AffineTransform::a):
  4126. (WebCore::AffineTransform::setA):
  4127. (WebCore::AffineTransform::b):
  4128. (WebCore::AffineTransform::setB):
  4129. (WebCore::AffineTransform::c):
  4130. (WebCore::AffineTransform::setC):
  4131. (WebCore::AffineTransform::d):
  4132. (WebCore::AffineTransform::setD):
  4133. (WebCore::AffineTransform::e):
  4134. (WebCore::AffineTransform::setE):
  4135. (WebCore::AffineTransform::f):
  4136. (WebCore::AffineTransform::setF):
  4137. (WebCore::AffineTransform::inverse):
  4138. * rendering/RenderForeignObject.cpp:
  4139. (WebCore::RenderForeignObject::paint):
  4140. (WebCore::RenderForeignObject::nodeAtPoint):
  4141. * rendering/RenderPath.cpp:
  4142. (WebCore::RenderPath::mapAbsolutePointToLocal):
  4143. * rendering/RenderSVGImage.cpp:
  4144. (WebCore::RenderSVGImage::paint):
  4145. (WebCore::RenderSVGImage::nodeAtPoint):
  4146. * rendering/RenderSVGText.cpp:
  4147. (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
  4148. (WebCore::RenderSVGText::nodeAtPoint):
  4149. (WebCore::RenderSVGText::paint):
  4150. * rendering/SVGInlineFlowBox.cpp:
  4151. (WebCore::paintSVGInlineFlow):
  4152. * rendering/SVGRenderTreeAsText.cpp:
  4153. (WebCore::operator<<):
  4154. 2006-12-12 George Staikos <staikos@kde.org>
  4155. Reviewed by Alexey.
  4156. Fix the Qt build again.
  4157. * WebCore.pro:
  4158. * loader/qt/FrameLoaderQt.cpp:
  4159. (WebCore::FrameLoader::createFrame):
  4160. (WebCore::FrameLoader::load):
  4161. * platform/qt/PasteboardQt.cpp:
  4162. (WebCore::Pasteboard::writeSelection):
  4163. (WebCore::Pasteboard::writeURL):
  4164. (WebCore::Pasteboard::clear):
  4165. 2006-12-12 Geoffrey Garen <ggaren@apple.com>
  4166. Reviewed by Beth Dakin.
  4167. Moved focus control to the page level. Fixed a minor bug where a node
  4168. would retain keyboard focus even when removed from the document.
  4169. We should probably move this, along with hover and active, into a separate
  4170. FocusController. But I'm too tired right now.
  4171. * dom/Document.cpp: Migrated code to Page
  4172. (WebCore::Document::removedLastRef):
  4173. (WebCore::Document::detach):
  4174. (WebCore::Document::setFocusedNode):
  4175. (WebCore::Document::focusedNode):
  4176. * dom/Document.h:
  4177. * dom/Node.cpp:
  4178. (WebCore::Node::detach): Clear ourselves from keyboard focus. This fixes
  4179. the minor bug and was also necessary to prevent regressions caused by hanging
  4180. on to a focused node after the document was replaced.
  4181. * dom/Node.h:
  4182. (WebCore::Node::inDetach):
  4183. * page/Page.cpp: Migrated code from Document
  4184. (WebCore::shouldAcquireEditingFocus):
  4185. (WebCore::shouldRelinquishEditingFocus):
  4186. (WebCore::clearSelectionIfNeeded):
  4187. (WebCore::widgetForNode):
  4188. (WebCore::Page::setFocusedNode):
  4189. * page/Page.h:
  4190. (WebCore::Page::focusedNode):
  4191. 2006-12-11 Alexey Proskuryakov <ap@webkit.org>
  4192. Reviewed by Darin.
  4193. http://bugs.webkit.org/show_bug.cgi?id=11053
  4194. XMLHttpRequest should be an EventTarget
  4195. Test: http/tests/xmlhttprequest/event-target.html
  4196. * bindings/js/JSXMLHttpRequest.cpp:
  4197. (KJS::JSXMLHttpRequest::mark):
  4198. (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
  4199. (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
  4200. * bindings/js/JSXMLHttpRequest.h:
  4201. (KJS::JSXMLHttpRequest::):
  4202. * xml/xmlhttprequest.cpp:
  4203. (WebCore::XMLHttpRequest::addEventListener):
  4204. (WebCore::XMLHttpRequest::removeEventListener):
  4205. (WebCore::XMLHttpRequest::dispatchEvent):
  4206. (WebCore::XMLHttpRequest::callReadyStateChangeListener):
  4207. * xml/xmlhttprequest.h:
  4208. (WebCore::XMLHttpRequest::eventListeners):
  4209. Implement EventTarget methods (except for NS variations, which Firefox doesn't have either).
  4210. 2006-12-11 Darin Adler <darin@apple.com>
  4211. Reviewed by Geoff.
  4212. - fix http://bugs.webkit.org/show_bug.cgi?id=11809
  4213. fast/dom/gc-8.html crash in alternate-thread marking code in ScriptInterpreter
  4214. DocumentType objects were getting filed under the wrong document in the
  4215. DOM objects structure.
  4216. * bindings/js/kjs_binding.h: Added a destructor for debugging purposes only.
  4217. * bindings/js/kjs_binding.cpp:
  4218. (KJS::wrapperSet): Added. Set of outstanding wrappers for debugging.
  4219. (KJS::addWrapper): Added.
  4220. (KJS::removeWrapper): Added.
  4221. (KJS::removeWrappers): Added.
  4222. (KJS::DOMObject::~DOMObject): Added. Asserts that there is no outstanding reference
  4223. to this wrapper since it's being destroyed.
  4224. (KJS::ScriptInterpreter::putDOMObject): Added a call to ADD_WRAPPER.
  4225. (KJS::ScriptInterpreter::forgetDOMObject): Added a call to REMOVE_WRAPPER.
  4226. (KJS::ScriptInterpreter::forgetDOMNodeForDocument): Added a call to REMOVE_WRAPPER.
  4227. (KJS::ScriptInterpreter::putDOMNodeForDocument): Added a call to ADD_WRAPPER.
  4228. (KJS::ScriptInterpreter::forgetAllDOMNodesForDocument): Added a call to REMOVE_WRAPPERS.
  4229. (KJS::ScriptInterpreter::updateDOMNodeDocument): Added calls to REMOVE_WRAPPER and
  4230. ADD_WRAPPER so the out-of-order transaction doesn't upset the assertions in the functions
  4231. we're calling. Another solution would be to reorder the two, but I think that would
  4232. create a race where another thread could garbage collect after the forget but before the put.
  4233. (KJS::ScriptInterpreter::wasRunByUserGesture): Tweaked formatting.
  4234. * dom/Document.cpp: (WebCore::Document::adoptNode): Removed call to updateDOMNodeDocument
  4235. since setDocument now takes care of that.
  4236. * dom/Node.cpp:
  4237. (WebCore::Node::setDocument): Added call to updateDOMNodeDocument here.
  4238. (WebCore::Node::checkAddChild): Removed call to updateDOMNodeDocument since setDocument
  4239. now takes care of that.
  4240. 2006-12-11 Alexey Proskuryakov <ap@nypop.com>
  4241. Reviewed by Darin.
  4242. http://bugs.webkit.org/show_bug.cgi?id=9673
  4243. Add support for window.atob() and window.btoa()
  4244. * WebCore.xcodeproj/project.pbxproj: Added Base64.{h,cpp}
  4245. * bindings/js/kjs_window.cpp:
  4246. (KJS::WindowFunc::callAsFunction):
  4247. * bindings/js/kjs_window.h:
  4248. (KJS::Window::):
  4249. * platform/Base64.cpp: Added.
  4250. (base64Encode):
  4251. (base64Decode):
  4252. * platform/Base64.h: Added.
  4253. * ForwardingHeaders/wtf/StringExtras.h: Added.
  4254. * platform/DeprecatedString.cpp: Use strncasecmp from StringExtras.
  4255. 2006-12-11 Darin Adler <darin@apple.com>
  4256. Reviewed by Brady.
  4257. - did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
  4258. * WebCore.xcodeproj/project.pbxproj: Updated project for file moves.
  4259. * bridge/mac/FrameMac.h: Moved to page/mac.
  4260. * bridge/mac/FrameMac.mm: Ditto.
  4261. * bridge/mac/WebCoreFrameBridge.h: Ditto.
  4262. * bridge/mac/WebCoreFrameBridge.mm: Ditto.
  4263. * bridge/mac/WebCoreFrameView.h: Ditto.
  4264. * bridge/mac/WebCoreViewFactory.h: Ditto.
  4265. * bridge/mac/WebCoreViewFactory.m: Ditto.
  4266. * bridge/mac/WebDashboardRegion.h: Ditto.
  4267. * bridge/mac/WebDashboardRegion.m: Ditto.
  4268. * bridge/mac/WebCoreKeyboardAccess.h: Moved to page/mac,
  4269. renamed WebCoreKeyboardUIMode.h, and made a C++ header.
  4270. * page/EventHandler.h: Updated for change to WebCoreKeyboardAccess.
  4271. * page/mac/EventHandlerMac.mm:
  4272. (WebCore::EventHandler::tabsToLinks): Ditto.
  4273. (WebCore::EventHandler::tabsToAllControls): Ditto.
  4274. (WebCore::EventHandler::keyboardUIMode): Ditto.
  4275. 2006-12-11 Beth Dakin <bdakin@apple.com>
  4276. Reviewed by Adam.
  4277. Primarily, this patch implements/hooks-up actions for the sub-menu
  4278. items in WebCore context menus. I fixed a few other things along
  4279. the way too:
  4280. -Made BUILDING_ON_TIGER ifdef work within C++ as well as
  4281. Obj-C
  4282. -Fixed bug where we would throw and Obj-C exception and
  4283. fail to pop up menus with more than one separator item.
  4284. -Re-named some of the spelling/grammar tags since Tiger and
  4285. Leopard share more of the actions than initially
  4286. anticipated.
  4287. * WebCorePrefix.h: Make BUILDING_ON_TIGER available to C++
  4288. * bridge/EditorClient.h: New functions to toggle
  4289. spelling/grammar checking.
  4290. * editing/Editor.cpp:
  4291. (WebCore::Editor::toggleContinuousSpellChecking): Call into client.
  4292. (WebCore::Editor::toggleGrammarChecking): Same.
  4293. (WebCore::Editor::toggleBold): call execToggleBold()
  4294. (WebCore::Editor::toggleUnderline): Create appropriate underline
  4295. style and apply to selection.
  4296. (WebCore::Editor::setBaseWritingDirection): Create appropriate
  4297. writing direction and apply to selection.
  4298. * editing/Editor.h:
  4299. * editing/mac/EditorMac.mm: New functions to show spelling guesses,
  4300. fonts, styles, and color panels.
  4301. * page/ContextMenuClient.h: New functions for the speech sub-menu.
  4302. * page/ContextMenuController.cpp:
  4303. (WebCore::ContextMenuController::contextMenuItemSelected): Fill in
  4304. editing sub-menu actions.
  4305. * platform/ContextMenu.cpp:
  4306. (WebCore::separatorItem): Helper function to create a separator
  4307. item.
  4308. (WebCore::createFontSubMenu): Put very mac-specific things within a
  4309. platform ifdef.
  4310. (WebCore::createSpellingAndGrammarSubMenu): Re-named some of the
  4311. spelling sub-menu tags.
  4312. (WebCore::createSpellingSubMenu): Same.
  4313. (WebCore::ContextMenu::populate): We can't share the separator
  4314. item. When we do, menus with more than one separator throw and obj-
  4315. c exception and fail to pop-up.
  4316. * platform/ContextMenuItem.h:
  4317. (WebCore::): Re-named some of the spelling sub-menu tags.
  4318. 2006-12-11 Alice Liu <alice.liu@apple.com>
  4319. Reviewed by Geoff, Adam.
  4320. Switch to use the Editor for copying URLs. Also some Pasteboard and PlatformMouseEvent cleanup.
  4321. All layout tests pass as they would without this patch.
  4322. * WebCore.exp:
  4323. added Editor::copyURL to be called from WebKit
  4324. * editing/Editor.cpp:
  4325. (WebCore::Editor::tryDHTMLCopy):
  4326. (WebCore::Editor::tryDHTMLCut):
  4327. Pasteboard::clearTypes() changed to clear()
  4328. (WebCore::Editor::writeSelectionToPasteboard):
  4329. (WebCore::Editor::cut):
  4330. (WebCore::Editor::copy):
  4331. Changed signature of writeSelection to take raw pointer instead of PassRefPtr
  4332. (WebCore::Editor::copyURL):
  4333. * editing/Editor.h:
  4334. Added copyURL.
  4335. * page/ContextMenuClient.h:
  4336. * page/ContextMenuController.cpp:
  4337. (WebCore::ContextMenuController::contextMenuItemSelected):
  4338. Removed copyLinkToClipboard
  4339. * platform/KURL.cpp:
  4340. (WebCore::KURL::lastPathComponent):
  4341. * platform/KURL.h:
  4342. Added lastPathComponent.
  4343. * platform/Pasteboard.h:
  4344. Changed some function names.
  4345. Moved some functions out of class to static.
  4346. * platform/PlatformMouseEvent.h:
  4347. (WebCore::):
  4348. Removed MouseEventType enum, added NoButton to MouseButton without disturbing other button values.
  4349. * platform/mac/PasteboardMac.mm:
  4350. Added writeURL, and moved some things around
  4351. * platform/mac/WebCoreSystemInterface.h:
  4352. * platform/mac/WebCoreSystemInterface.mm:
  4353. Add some calls necessary for Pasteboard::writeURL to work
  4354. 2006-12-11 Darin Adler <darin@apple.com>
  4355. Reviewed by Brady.
  4356. - http://bugs.webkit.org/show_bug.cgi?id=11794
  4357. fix lifetime problems affecting Frame's ownerElement pointer
  4358. * CMakeLists.txt:
  4359. * WebCore.vcproj/WebCore/WebCore.vcproj:
  4360. * WebCore.xcodeproj/project.pbxproj:
  4361. * WebCoreSources.bkl:
  4362. Updated for new source files.
  4363. * WebCore.exp: Updated for changes to entry point names.
  4364. * bridge/mac/FrameMac.h:
  4365. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
  4366. * bridge/win/FrameWin.h:
  4367. * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
  4368. * platform/qt/FrameQt.h:
  4369. * platform/qt/FrameQt.cpp: (WebCore::FrameQt::FrameQt):
  4370. Updated owner element type to HTMLFrameOwnerElement.
  4371. * bridge/mac/WebCoreFrameBridge.h: Removed non-C++ case since we don't
  4372. use that any more. Updated owner element type to HTMLFrameOwnerElement.
  4373. * dom/Document.cpp: Added include so that the ownerElement function can
  4374. compile (since it downcasts an HTMLFrameOwnerElement to an Element).
  4375. * html/HTMLFrameElement.cpp:
  4376. (WebCore::containingFrameSetElement): Moved this function in here; it
  4377. doesn't need to be a member function.
  4378. (WebCore::HTMLFrameElement::attach): Updated to call this.
  4379. * html/HTMLFrameElementBase.h:
  4380. * html/HTMLFrameElementBase.cpp:
  4381. (WebCore::HTMLFrameElementBase::HTMLFrameElementBase): Inherit from
  4382. HTMLFrameOwnerElement. Removed contentFrame, contentDocument, and
  4383. containingFrameSetElement. Removed friend classes.
  4384. * html/HTMLFrameOwnerElement.h: Added.
  4385. * html/HTMLFrameOwnerElement.cpp: Added.
  4386. * html/HTMLEmbedElement.h:
  4387. * html/HTMLEmbedElement.cpp:
  4388. * html/HTMLObjectElement.h:
  4389. * html/HTMLObjectElement.cpp:
  4390. Remove now-unneeded contentDocument functions.
  4391. * html/HTMLPlugInElement.h:
  4392. * html/HTMLPlugInElement.cpp:
  4393. (WebCore::HTMLPlugInElement::HTMLPlugInElement): Inherit from
  4394. HTMLFrameOwnerElement.
  4395. * loader/FormState.h:
  4396. * loader/FormState.cpp: Use HTMLFormElement instead of just Element.
  4397. * loader/FrameLoader.h:
  4398. * loader/FrameLoader.cpp:
  4399. (WebCore::FrameLoader::requestFrame): Use HTMLFormElement.
  4400. (WebCore::FrameLoader::loadSubframe): Ditto.
  4401. (WebCore::FrameLoader::requestObject): Don't pass an element parameter
  4402. to shouldUsePlugin, and remove now-unneeded type casts.
  4403. (WebCore::FrameLoader::shouldUsePlugin): Removed unneeded element parameter.
  4404. (WebCore::FrameLoader::handleFallbackContent): Use HTMLFrameOwnerElement.
  4405. (WebCore::FrameLoader::updateBaseURLForEmptyDocument): Ditto.
  4406. (WebCore::FrameLoader::isHostedByObjectElement): Ditto.
  4407. * loader/mac/FrameLoaderMac.mm:
  4408. (WebCore::FrameLoader::load): Use HTMLFormElement.
  4409. (WebCore::FrameLoader::post): Ditto.
  4410. (WebCore::FrameLoader::createFrame): Use HTMLFrameOwnerElement.
  4411. * page/Frame.h:
  4412. * page/FramePrivate.h:
  4413. * page/Frame.cpp:
  4414. (WebCore::parentFromOwnerElement): Use HTMLFrameOwnerElement.
  4415. (WebCore::Frame::Frame): Ditto. Also set m_contentFrame on the owner element.
  4416. (WebCore::Frame::ownerElement): Ditto.
  4417. (WebCore::Frame::ownerRenderer): Ditto.
  4418. (WebCore::Frame::disconnectOwnerElement): Clear m_contentFrame on the owner
  4419. element before disconnecting it.
  4420. (WebCore::FramePrivate::FramePrivate): Use HTMLFrameOwnerElement.
  4421. * page/mac/EventHandlerMac.mm: Include HTMLFrameOwnerElement.h so that
  4422. the code here will compile (no code changes needed).
  4423. * rendering/RenderFrame.cpp: (WebCore::RenderFrame::viewCleared):
  4424. Updated so that RenderFrame doesn't need to be a friend of HTMLFrameElementBase.
  4425. * rendering/RenderPart.h:
  4426. * rendering/RenderPart.cpp: (WebCore::RenderPart::RenderPart):
  4427. Use HTMLFrameOwnerElement.
  4428. * rendering/RenderPartObject.h:
  4429. * rendering/RenderPartObject.cpp:
  4430. (WebCore::RenderPartObject::RenderPartObject): Use HTMLFrameOwnerElement.
  4431. (WebCore::RenderPartObject::viewCleared): Updated so that RenderFrame doesn't
  4432. need to be a friend of HTMLFrameElementBase.
  4433. - other changes
  4434. * platform/network/ResourceHandleInternal.h: Added Noncopyable and
  4435. fixed indentation.
  4436. 2006-12-11 David Hyatt <hyatt@apple.com>
  4437. Fix failing layout test. Remove WTF::Unicode::isSpace and just revert
  4438. the caller to the old behavior.
  4439. Reviewed by darin
  4440. * platform/StringImpl.cpp:
  4441. (WebCore::isSpace):
  4442. 2006-12-11 Alexey Proskuryakov <ap@webkit.org>
  4443. Reviewed by Adam.
  4444. http://bugs.webkit.org/show_bug.cgi?id=11807
  4445. Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
  4446. * page/EventHandler.cpp:
  4447. (WebCore::EventHandler::EventHandler):
  4448. (WebCore::EventHandler::handleMousePressEvent):
  4449. (WebCore::EventHandler::handleMouseMoveEvent):
  4450. (WebCore::EventHandler::handleMouseReleaseEvent):
  4451. (WebCore::EventHandler::autoscrollTimerFired):
  4452. * page/EventHandler.h:
  4453. * page/mac/EventHandlerMac.mm:
  4454. (WebCore::EventHandler::handleDrag):
  4455. (WebCore::EventHandler::mouseMoved):
  4456. Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
  4457. (WebCore::EventHandler::lastEventIsMouseUp):
  4458. Check that the "new" event is newer than the "old" one - that's not always the case
  4459. when running in DRT, as [NSApp currentEvent] isn't updated by eventSender.
  4460. 2006-12-11 Nikolas Zimmermann <zimmermann@kde.org>
  4461. Reviewed by Sam Weinig.
  4462. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11801
  4463. Autogenerate POD types for ObjC/JS.
  4464. This removes the need for the hand-written JSSVG*, DOMSVG* wrappers
  4465. in bindings/js, bindings/objc. Makes it much easier to convert more
  4466. SVG types to POD types (ie. SVGMatrix* -> AffineTransform etc.)
  4467. Affected test: svg/custom/SVGPoint-matrixTransform.svg
  4468. It's failing with this patch, as the SVGPoint matrixTransform() function
  4469. got disabled, until the SVGMatrix -> AffineTransform transition patch
  4470. is landed. Otherwhise we'd need to add special cases to both CodeGeneratorJS/ObjC.pm
  4471. which would be a waste of time, as SVGMatrix is about to die.
  4472. Temporarily updating layout test result, as suggested by John Sullivan, so
  4473. no-one notices that SVGPoint-matrixTransform.svg actually fails right now.
  4474. Expect that to be fixed again in the next hour(s).
  4475. * DerivedSources.make:
  4476. * WebCore.xcodeproj/project.pbxproj:
  4477. * bindings/js/JSSVGNumber.cpp: Removed.
  4478. * bindings/js/JSSVGNumber.h: Removed.
  4479. * bindings/js/JSSVGPoint.cpp: Removed.
  4480. * bindings/js/JSSVGPoint.h: Removed.
  4481. * bindings/js/JSSVGRect.cpp: Removed.
  4482. * bindings/js/JSSVGRect.h: Removed.
  4483. * bindings/objc/DOMSVGNumber.mm: Removed.
  4484. * bindings/objc/DOMSVGPoint.mm: Removed.
  4485. * bindings/objc/DOMSVGRect.mm: Removed.
  4486. * bindings/scripts/CodeGeneratorJS.pm:
  4487. * bindings/scripts/CodeGeneratorObjC.pm:
  4488. * ksvg2/svg/SVGNumber.idl:
  4489. * ksvg2/svg/SVGPoint.idl:
  4490. * ksvg2/svg/SVGRect.idl:
  4491. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4492. Reviewed by Zack
  4493. Fix another issue with frame loading
  4494. * platform/network/qt/ResourceHandleManagerQt.cpp:
  4495. (WebCore::ResourceHandleManager::cancel):
  4496. (WebCore::ResourceHandleManager::receivedData):
  4497. (WebCore::ResourceHandleManager::receivedFinished):
  4498. (WebCore::FileLoader::request):
  4499. * platform/qt/FrameQtClient.cpp:
  4500. (WebCore::FrameQtClient::openURL):
  4501. 2006-12-10 George Staikos <staikos@kde.org>
  4502. Reviewed by Zack.
  4503. Make the xpath grammar hack more specific (and work on OS X) until
  4504. it's cleaned up.
  4505. * WebCore.pro:
  4506. 2006-12-10 Zack Rusin <zack@kde.org>
  4507. Set the widgetclient correctly. This code
  4508. should be platform independent!
  4509. * platform/qt/WidgetQt.cpp:
  4510. (WebCore::WidgetPrivate::WidgetPrivate):
  4511. (WebCore::Widget::setClient):
  4512. (WebCore::Widget::client):
  4513. (WebCore::Widget::focusPolicy):
  4514. 2006-12-11 Lars Knoll <lars@trolltech.com>
  4515. Reviewed by Zack
  4516. Fix loading of local files.
  4517. * platform/network/qt/ResourceHandleManagerQt.cpp:
  4518. (WebCore::FileLoader::request):
  4519. 2006-12-10 Zack Rusin <zack@kde.org>
  4520. Don't use my QTransform magic, affine QMatrix is fine for
  4521. SVG so use setMatrix.
  4522. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  4523. (WebCore::SVGPaintServerLinearGradient::setup):
  4524. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  4525. (WebCore::setup):
  4526. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4527. Reviewed by Zack
  4528. Make sure we call checkCompleted() on the FrameLoader
  4529. to get the regression tests running.
  4530. * WebCore.pro:
  4531. * loader/qt/FrameLoaderQt.cpp:
  4532. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  4533. (WebCore::FrameLoader::saveDocumentState):
  4534. * page/qt/EventHandlerQt.cpp:
  4535. (WebCore::EventHandler::handleDrag):
  4536. * platform/qt/FrameQtClient.cpp:
  4537. (WebCore::FrameQtClient::openURL):
  4538. (WebCore::FrameQtClient::didReceiveResponse):
  4539. (WebCore::FrameQtClient::didFinishLoading):
  4540. (WebCore::FrameQtClient::didFail):
  4541. * platform/qt/FrameQtClient.h:
  4542. 2006-12-10 Zack Rusin <zack@kde.org>
  4543. Enable the SVG build by default and make it build.
  4544. * WebCore.pro:
  4545. * loader/qt/FrameLoaderQt.cpp: Output the method name
  4546. 2006-12-10 Zack Rusin <zack@kde.org>
  4547. Move the client classes to WebKitQt/WebCoreSupport.
  4548. * WebCore.pro:
  4549. * loader/qt/FrameLoaderClientQt.cpp: Removed.
  4550. * loader/qt/FrameLoaderClientQt.h: Removed.
  4551. * platform/qt/ChromeClientQt.cpp: Removed.
  4552. * platform/qt/ChromeClientQt.h: Removed.
  4553. * platform/qt/ContextMenuClientQt.cpp: Removed.
  4554. * platform/qt/ContextMenuClientQt.h: Removed.
  4555. * platform/qt/EditorClientQt.cpp: Removed.
  4556. * platform/qt/EditorClientQt.h: Removed.
  4557. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4558. Reviewed by Zack.
  4559. Add some stubs required to link.
  4560. * platform/qt/FrameQt.cpp:
  4561. (WebCore::FrameQt::runJavaScriptAlert):
  4562. (WebCore::FrameQt::runJavaScriptConfirm):
  4563. (WebCore::FrameQt::runJavaScriptPrompt):
  4564. (WebCore::FrameQt::bindingRootObject):
  4565. 2006-12-10 Rob Buis <buis@kde.org>
  4566. Reviewed by Darin.
  4567. http://bugs.webkit.org/show_bug.cgi?id=10996
  4568. WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree)
  4569. Create an internal method to create innerText functionality for non-HTML
  4570. nodes. When called from DRT this omits CDATA nodes.
  4571. * dom/Element.cpp:
  4572. (WebCore::Element::innerText):
  4573. (WebCore::Element::outerText):
  4574. * dom/Element.h:
  4575. * dom/Element.idl:
  4576. * html/HTMLElement.cpp:
  4577. * html/HTMLElement.h:
  4578. 2006-12-10 Darin Fisher <darin@chromium.org>
  4579. Reviewed by Maciej.
  4580. Fixes http://bugs.webkit.org/show_bug.cgi?id=11790
  4581. No way to initialize ResourceResponse::m_httpHeaderFields
  4582. * platform/network/ResourceResponse.cpp: impl setHTTPHeaderField
  4583. (WebCore::ResourceResponse::setHTTPHeaderField):
  4584. * platform/network/ResourceResponse.h: decl setHTTPHeaderField
  4585. 2006-12-10 Zack Rusin <zack@kde.org>
  4586. Cleaning up the code after removals.
  4587. * platform/qt/FrameQt.cpp:
  4588. * platform/qt/FrameQt.h: Remove virtual methods
  4589. which have been moved to different objects
  4590. 2006-12-10 Zack Rusin <zack@kde.org>
  4591. Cleanup the FrameQtClient a little bit more. Remove
  4592. unused methods.
  4593. * platform/qt/FrameQtClient.cpp:
  4594. * platform/qt/FrameQtClient.h:
  4595. 2006-12-09 Adam Roben <aroben@apple.com>
  4596. Build fix.
  4597. * xml/XPathParser.cpp:
  4598. (WebCore::XPath::charCat): Use C++ unsigned instead of uint.
  4599. 2006-12-09 George Staikos <staikos@kde.org>
  4600. Reviewed by Zack.
  4601. Make it not crash, and make it set the title on Qt platform.
  4602. * loader/qt/FrameLoaderClientQt.cpp:
  4603. (WebCore::FrameLoaderClientQt::hasWebView):
  4604. (WebCore::FrameLoaderClientQt::hasFrameView):
  4605. (WebCore::FrameLoaderClientQt::didChangeTitle):
  4606. * loader/qt/FrameLoaderQt.cpp:
  4607. (WebCore::FrameLoader::setTitle):
  4608. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  4609. 2006-12-10 Zack Rusin <zack@kde.org>
  4610. Renaming FrameQtClientDefault to FrameQtClient.
  4611. Removing FrameQtClient. Adding FrameLoaderClient
  4612. as an argument. Clenaing up the code a bit.
  4613. * platform/qt/FrameQt.cpp:
  4614. (WebCore::FrameQt::FrameQt):
  4615. * platform/qt/FrameQt.h:
  4616. * platform/qt/FrameQtClient.cpp:
  4617. (WebCore::FrameQtClient::FrameQtClient):
  4618. (WebCore::FrameQtClient::~FrameQtClient):
  4619. (WebCore::FrameQtClient::setFrame):
  4620. (WebCore::FrameQtClient::openURL):
  4621. (WebCore::FrameQtClient::submitForm):
  4622. (WebCore::FrameQtClient::checkLoaded):
  4623. (WebCore::FrameQtClient::runJavaScriptAlert):
  4624. (WebCore::FrameQtClient::runJavaScriptConfirm):
  4625. (WebCore::FrameQtClient::runJavaScriptPrompt):
  4626. (WebCore::FrameQtClient::menubarVisible):
  4627. (WebCore::FrameQtClient::toolbarVisible):
  4628. (WebCore::FrameQtClient::statusbarVisible):
  4629. (WebCore::FrameQtClient::personalbarVisible):
  4630. (WebCore::FrameQtClient::locationbarVisible):
  4631. (WebCore::FrameQtClient::loadFinished):
  4632. (WebCore::FrameQtClient::didReceiveResponse):
  4633. (WebCore::FrameQtClient::didFinishLoading):
  4634. (WebCore::FrameQtClient::didFail):
  4635. (WebCore::FrameQtClient::didReceiveData):
  4636. (WebCore::FrameQtClient::traverseNextFrameStayWithin):
  4637. (WebCore::FrameQtClient::numPendingOrLoadingRequests):
  4638. (WebCore::FrameQtClient::receivedAllData):
  4639. (WebCore::FrameQtClient::setTitle):
  4640. * platform/qt/FrameQtClient.h:
  4641. 2006-12-10 Zack Rusin <zack@kde.org>
  4642. Fixes compilation after the last removals.
  4643. * WebCore.pro:
  4644. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4645. Reviewed by Zack.
  4646. Implement a decent network loader using QHttp.
  4647. * loader/qt/FrameLoaderQt.cpp:
  4648. (WebCore::FrameLoader::load):
  4649. * platform/network/ResourceHandle.cpp:
  4650. (WebCore::ResourceHandle::request):
  4651. * platform/network/ResourceHandle.h:
  4652. * platform/network/ResourceHandleInternal.h:
  4653. * platform/network/qt/ResourceHandleManager.cpp: Removed.
  4654. * platform/network/qt/ResourceHandleManager.h: Removed.
  4655. * platform/network/qt/ResourceHandleManagerKDE.cpp: Added.
  4656. (WebCore::ResourceHandleManager::self):
  4657. (WebCore::ResourceHandleManager::ResourceHandleManager):
  4658. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  4659. (WebCore::ResourceHandleManager::slotData):
  4660. (WebCore::ResourceHandleManager::slotMimetype):
  4661. (WebCore::ResourceHandleManager::slotResult):
  4662. (WebCore::ResourceHandleManager::remove):
  4663. (WebCore::ResourceHandleManager::add):
  4664. (WebCore::ResourceHandleManager::cancel):
  4665. * platform/network/qt/ResourceHandleManagerKDE.h: Added.
  4666. * platform/network/qt/ResourceHandleManagerQt.cpp: Added.
  4667. (WebCore::ResourceHandleManager::ResourceHandleManager):
  4668. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  4669. (WebCore::ResourceHandleManager::self):
  4670. (WebCore::RequestQt::RequestQt):
  4671. (WebCore::ResourceHandleManager::add):
  4672. (WebCore::ResourceHandleManager::cancel):
  4673. (WebCore::ResourceHandleManager::receivedResponse):
  4674. (WebCore::ResourceHandleManager::receivedData):
  4675. (WebCore::ResourceHandleManager::receivedFinished):
  4676. (WebCore::LoaderThread::LoaderThread):
  4677. (WebCore::LoaderThread::run):
  4678. (WebCore::FileLoader::FileLoader):
  4679. (WebCore::FileLoader::request):
  4680. (WebCore::FileLoader::cancel):
  4681. (WebCore::WebCoreHttp::WebCoreHttp):
  4682. (WebCore::WebCoreHttp::~WebCoreHttp):
  4683. (WebCore::WebCoreHttp::request):
  4684. (WebCore::WebCoreHttp::scheduleNextRequest):
  4685. (WebCore::WebCoreHttp::getConnection):
  4686. (WebCore::WebCoreHttp::onResponseHeaderReceived):
  4687. (WebCore::WebCoreHttp::onReadyRead):
  4688. (WebCore::WebCoreHttp::onRequestFinished):
  4689. (WebCore::WebCoreHttp::onStateChanged):
  4690. (WebCore::WebCoreHttp::cancel):
  4691. (WebCore::qHash):
  4692. (WebCore::operator==):
  4693. (WebCore::HostInfo::HostInfo):
  4694. (WebCore::NetworkLoader::NetworkLoader):
  4695. (WebCore::NetworkLoader::~NetworkLoader):
  4696. (WebCore::NetworkLoader::request):
  4697. (WebCore::NetworkLoader::connectionClosed):
  4698. (WebCore::NetworkLoader::cancel):
  4699. * platform/network/qt/ResourceHandleManagerQt.h: Added.
  4700. (WebCore::LoaderThread::):
  4701. (WebCore::LoaderThread::waitForSetup):
  4702. * platform/network/qt/ResourceHandleQt.cpp:
  4703. (WebCore::ResourceHandle::start):
  4704. * platform/qt/FrameQt.cpp:
  4705. (WebCore::FrameQt::FrameQt):
  4706. (WebCore::FrameQt::keyEvent):
  4707. * platform/qt/FrameQt.h:
  4708. * platform/qt/FrameQtClient.cpp:
  4709. (WebCore::FrameQtClientDefault::FrameQtClientDefault):
  4710. (WebCore::FrameQtClientDefault::openURL):
  4711. (WebCore::FrameQtClientDefault::submitForm):
  4712. (WebCore::FrameQtClientDefault::didReceiveResponse):
  4713. (WebCore::FrameQtClientDefault::didFinishLoading):
  4714. (WebCore::FrameQtClientDefault::didFail):
  4715. (WebCore::FrameQtClientDefault::didReceiveData):
  4716. (WebCore::FrameQtClientDefault::receivedAllData):
  4717. (WebCore::FrameQtClientDefault::setTitle):
  4718. * platform/qt/FrameQtClient.h:
  4719. 2006-12-09 George Staikos <staikos@kde.org>
  4720. Reviewed by Zack.
  4721. Fix bison again on qmake build.
  4722. * WebCore.pro:
  4723. 2006-12-09 Zack Rusin <zack@kde.org>
  4724. Reviewed by Zack.
  4725. Use the correct filename.
  4726. * WebCore.pro: it's PasteboardQt.cpp
  4727. 2006-12-09 Zack Rusin <zack@kde.org>
  4728. Reviewed by Lars.
  4729. Correctly set the font on widgets.
  4730. * platform/qt/WidgetQt.cpp:
  4731. (WebCore::Widget::setFont):
  4732. 2006-12-09 Adam Treat <treat@kde.org>
  4733. Reviewed by Zack
  4734. No more nil renderer warnings
  4735. * platform/qt/ScrollViewCanvasQt.cpp:
  4736. (WebCore::ScrollViewCanvasQt::paintEvent):
  4737. 2006-12-09 Friedemann Kleint <fkleint@trolltech.com>
  4738. Reviewed by Zack
  4739. Removed compiler warnings about rounding issues
  4740. * platform/qt/FontPlatformDataQt.cpp:
  4741. (WebCore::FontPlatformData::FontPlatformData):
  4742. * platform/qt/FontQt.cpp:
  4743. (WebCore::Font::drawComplexText):
  4744. 2006-12-09 George Staikos <staikos@kde.org>
  4745. Reviewed by Zack.
  4746. Qt 4.1 (especially Qtopia) build fixes
  4747. * platform/qt/FrameQtClient.cpp:
  4748. * platform/qt/GraphicsContextQt.cpp:
  4749. * platform/qt/PlatformKeyboardEventQt.cpp:
  4750. * platform/qt/CursorQt.cpp:
  4751. * platform/qt/WidgetQt.cpp:
  4752. * platform/Cursor.h:
  4753. * platform/Arena.h:
  4754. 2006-12-09 Lars Knoll <lars@trolltech.com>
  4755. Reviewed by Zack
  4756. Make it possible to build WebKit with qmake.
  4757. * WebCore.pro: Added.
  4758. * platform/graphics/qt/GraphicsContextQt.cpp:
  4759. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4760. Reviewed by Zack.
  4761. Compile after latest WebKit changes and don't depend
  4762. on deprecated methods in Qt.
  4763. * platform/network/qt/ResourceHandleManager.cpp:
  4764. (WebCore::ResourceHandleManager::remove):
  4765. (WebCore::ResourceHandleManager::deliverJobData):
  4766. * platform/network/qt/ResourceHandleQt.cpp:
  4767. (WebCore::ResourceHandle::extractCharsetFromHeaders):
  4768. * platform/qt/PlatformKeyboardEventQt.cpp:
  4769. (WebCore::windowsKeyCodeForKeyEvent):
  4770. 2006-12-10 Lars Knoll <lars@trolltech.com>
  4771. Reviewed by Zack.
  4772. Use the Qt image loading framework.
  4773. * CMakeLists.txt:
  4774. * platform/graphics/ImageSource.h:
  4775. * platform/graphics/qt/GraphicsContextQt.cpp:
  4776. * platform/graphics/qt/ImageDecoderQt.cpp: Added.
  4777. (WebCore::ImageDecoderQt::ImageData::ImageData):
  4778. (WebCore::ImageDecoderQt::ReadContext::):
  4779. (WebCore::ImageDecoderQt::ReadContext::ReadContext):
  4780. (WebCore::ImageDecoderQt::ReadContext::read):
  4781. (WebCore::ImageDecoderQt::ReadContext::readImageLines):
  4782. (WebCore::ImageDecoderQt::ImageDecoderQt):
  4783. (WebCore::ImageDecoderQt::~ImageDecoderQt):
  4784. (WebCore::ImageDecoderQt::hasFirstImageHeader):
  4785. (WebCore::ImageDecoderQt::reset):
  4786. (WebCore::ImageDecoderQt::setData):
  4787. (WebCore::ImageDecoderQt::isSizeAvailable):
  4788. (WebCore::ImageDecoderQt::frameCount):
  4789. (WebCore::ImageDecoderQt::repetitionCount):
  4790. (WebCore::ImageDecoderQt::ImageDecoderQt::supportsAlpha):
  4791. (WebCore::ImageDecoderQt::duration):
  4792. (WebCore::ImageDecoderQt::frameBufferAtIndex):
  4793. (WebCore::ImageDecoderQt::imageAtIndex):
  4794. * platform/graphics/qt/ImageDecoderQt.h: Added.
  4795. (WebCore::ImageDecoderQt::):
  4796. * platform/graphics/qt/ImageSourceQt.cpp:
  4797. (WebCore::):
  4798. (WebCore::detectImageFormat):
  4799. (WebCore::createDecoder):
  4800. (WebCore::ImageSource::setData):
  4801. (WebCore::ImageSource::createFrameAtIndex):
  4802. (WebCore::ImageSource::frameDurationAtIndex):
  4803. (WebCore::ImageSource::frameHasAlphaAtIndex):
  4804. 2006-12-09 Lars Knoll <lars@trolltech.com>
  4805. Reviewed by Maciej.
  4806. Remove an explicit ICU dependency.
  4807. * xml/XPathParser.cpp:
  4808. (WebCore::XPath::charCat):
  4809. 2006-12-09 Zack Rusin <zack@kde.org>
  4810. Adjusting the build after the icu changes.
  4811. * CMakeLists.txt:
  4812. 2006-12-09 Adam Roben <aroben@apple.com>
  4813. Reviewed by Darin.
  4814. Changed all ForwardingHeaders to use #include instead of #import.
  4815. * ForwardingHeaders/kjs/JSLock.h:
  4816. * ForwardingHeaders/kjs/SavedBuiltins.h:
  4817. * ForwardingHeaders/kjs/collector.h:
  4818. * ForwardingHeaders/kjs/dtoa.h:
  4819. * ForwardingHeaders/kjs/internal.h:
  4820. * ForwardingHeaders/kjs/interpreter.h:
  4821. * ForwardingHeaders/kjs/lookup.h:
  4822. * ForwardingHeaders/kjs/object.h:
  4823. * ForwardingHeaders/kjs/property_map.h:
  4824. * ForwardingHeaders/kjs/protect.h:
  4825. * ForwardingHeaders/wtf/AlwaysInline.h:
  4826. * ForwardingHeaders/wtf/Assertions.h:
  4827. * ForwardingHeaders/wtf/FastMalloc.h:
  4828. * ForwardingHeaders/wtf/GetPtr.h:
  4829. * ForwardingHeaders/wtf/HashCountedSet.h:
  4830. * ForwardingHeaders/wtf/HashMap.h:
  4831. * ForwardingHeaders/wtf/HashSet.h:
  4832. * ForwardingHeaders/wtf/HashTraits.h:
  4833. * ForwardingHeaders/wtf/MathExtras.h:
  4834. * ForwardingHeaders/wtf/Noncopyable.h:
  4835. * ForwardingHeaders/wtf/OwnArrayPtr.h:
  4836. * ForwardingHeaders/wtf/OwnPtr.h:
  4837. * ForwardingHeaders/wtf/PassRefPtr.h:
  4838. * ForwardingHeaders/wtf/Platform.h:
  4839. * ForwardingHeaders/wtf/RefPtr.h:
  4840. * ForwardingHeaders/wtf/Vector.h:
  4841. 2006-12-09 Rob Buis <buis@kde.org>
  4842. Reviewed by Darin.
  4843. http://bugs.webkit.org/show_bug.cgi?id=11625
  4844. Investigate possibility to share code between HTMLStyleElement and SVGStyleElement
  4845. Add a class shared by both HTMLStyleElement and SVGStyleElement that
  4846. encapsulates the common logic.
  4847. * CMakeLists.txt:
  4848. * WebCore.xcodeproj/project.pbxproj:
  4849. * dom/Document.cpp:
  4850. (WebCore::Document::recalcStyleSelector):
  4851. Generalize stylesheet processing of svg and html.
  4852. * dom/StyleElement.cpp: Added.
  4853. (WebCore::StyleElement::StyleElement):
  4854. (WebCore::StyleElement::sheet):
  4855. (WebCore::StyleElement::insertedIntoDocument):
  4856. (WebCore::StyleElement::removedFromDocument):
  4857. (WebCore::StyleElement::childrenChanged):
  4858. * dom/StyleElement.h: Added.
  4859. (WebCore::StyleElement::~StyleElement):
  4860. (WebCore::StyleElement::isLoading):
  4861. Common base class for SVGStyleElement and HTMLStyleElement.
  4862. * html/HTMLStyleElement.cpp:
  4863. (WebCore::HTMLStyleElement::HTMLStyleElement):
  4864. (WebCore::HTMLStyleElement::parseMappedAttribute):
  4865. (WebCore::HTMLStyleElement::insertedIntoDocument):
  4866. (WebCore::HTMLStyleElement::removedFromDocument):
  4867. (WebCore::HTMLStyleElement::childrenChanged):
  4868. (WebCore::HTMLStyleElement::media):
  4869. (WebCore::HTMLStyleElement::setMedia):
  4870. (WebCore::HTMLStyleElement::type):
  4871. (WebCore::HTMLStyleElement::setType):
  4872. * html/HTMLStyleElement.h:
  4873. Use new common class.
  4874. * ksvg2/svg/SVGElement.cpp:
  4875. * ksvg2/svg/SVGElement.h:
  4876. * ksvg2/svg/SVGSVGElement.cpp:
  4877. (WebCore::SVGSVGElement::contentScriptType):
  4878. (WebCore::SVGSVGElement::contentStyleType):
  4879. * ksvg2/svg/SVGSVGElement.h:
  4880. Do not use tryGetAttribute(NS) anymore.
  4881. * ksvg2/svg/SVGStyleElement.cpp:
  4882. (WebCore::SVGStyleElement::SVGStyleElement):
  4883. (WebCore::SVGStyleElement::xmlspace):
  4884. (WebCore::SVGStyleElement::type):
  4885. (WebCore::SVGStyleElement::media):
  4886. (WebCore::SVGStyleElement::title):
  4887. (WebCore::SVGStyleElement::insertedIntoDocument):
  4888. (WebCore::SVGStyleElement::removedFromDocument):
  4889. (WebCore::SVGStyleElement::childrenChanged):
  4890. * ksvg2/svg/SVGStyleElement.h:
  4891. Use new common class.
  4892. 2006-12-08 David Hyatt <hyatt@apple.com>
  4893. Land the new ICU abstraction layer (WTF::Unicode). Patch
  4894. by Lars with a couple of fixes thrown in by me.
  4895. Reviewed by hyatt
  4896. * ForwardingHeaders/wtf/icu/UnicodeIcu.h: Added.
  4897. * ForwardingHeaders/wtf/unicode/Unicode.h: Added.
  4898. * WebCore.xcodeproj/project.pbxproj:
  4899. * css/cssparser.cpp:
  4900. (WebCore::ParseString::lower):
  4901. * dom/Document.cpp:
  4902. (WebCore::isValidNameStart):
  4903. (WebCore::isValidNamePart):
  4904. * editing/TextIterator.cpp:
  4905. (WebCore::CircularSearchBuffer::append):
  4906. * html/HTMLFontElement.cpp:
  4907. (WebCore::parseFontSizeNumber):
  4908. * html/HTMLInputElement.cpp:
  4909. (WebCore::numGraphemeClusters):
  4910. (WebCore::numCharactersInGraphemeClusters):
  4911. * html/HTMLSelectElement.cpp:
  4912. (WebCore::stripLeadingWhiteSpace):
  4913. * page/Frame.h:
  4914. * platform/DeprecatedString.h:
  4915. (WebCore::DeprecatedChar::isSpace):
  4916. (WebCore::DeprecatedChar::lower):
  4917. (WebCore::DeprecatedChar::upper):
  4918. * platform/Font.cpp:
  4919. (WebCore::WidthIterator::advance):
  4920. (WebCore::WidthIterator::normalizeVoicingMarks):
  4921. * platform/FontCache.h:
  4922. * platform/FontData.h:
  4923. * platform/GlyphMap.cpp:
  4924. * platform/GlyphMap.h:
  4925. * platform/GlyphWidthMap.h:
  4926. * platform/KURL.cpp:
  4927. (WebCore::encodeHostname):
  4928. * platform/StringHash.h:
  4929. (WTF::):
  4930. * platform/StringImpl.cpp:
  4931. (WebCore::isSpace):
  4932. (WebCore::parseLength):
  4933. (WebCore::StringImpl::isLower):
  4934. (WebCore::StringImpl::lower):
  4935. (WebCore::StringImpl::upper):
  4936. (WebCore::StringImpl::secure):
  4937. (WebCore::StringImpl::foldCase):
  4938. (WebCore::StringImpl::capitalize):
  4939. (WebCore::StringImpl::toInt):
  4940. (WebCore::equalIgnoringCase):
  4941. (WebCore::StringImpl::find):
  4942. * platform/StringImpl.h:
  4943. * platform/TextBoundaries.h:
  4944. * platform/TextBreakIterator.h: Added.
  4945. (WebCore::):
  4946. * platform/TextBreakIteratorICU.cpp: Added.
  4947. (WebCore::wordBreakIterator):
  4948. (WebCore::characterBreakIterator):
  4949. (WebCore::textBreakFirst):
  4950. (WebCore::textBreakNext):
  4951. (WebCore::textBreakPreceding):
  4952. (WebCore::textBreakFollowing):
  4953. (WebCore::textBreakCurrent):
  4954. * platform/TextCodec.h:
  4955. * platform/TextCodecLatin1.cpp:
  4956. * platform/TextEncoding.cpp:
  4957. (WebCore::TextEncoding::encode):
  4958. * platform/TextEncoding.h:
  4959. * platform/TextEncodingRegistry.cpp:
  4960. (WebCore::buildTextEncodingNameMap):
  4961. (WebCore::buildTextCodecMap):
  4962. * platform/TextEncodingRegistry.h:
  4963. * platform/UChar.h: Removed.
  4964. * platform/graphics/GraphicsContext.h:
  4965. * platform/qt/GlyphMapQt.cpp:
  4966. * platform/qt/TextBreakIteratorQt.cpp: Added.
  4967. (WebCore::TextBreakIterator::following):
  4968. (WebCore::TextBreakIterator::preceding):
  4969. (WebCore::WordBreakIteratorQt::first):
  4970. (WebCore::WordBreakIteratorQt::next):
  4971. (WebCore::WordBreakIteratorQt::previous):
  4972. (WebCore::CharBreakIteratorQt::first):
  4973. (WebCore::CharBreakIteratorQt::next):
  4974. (WebCore::CharBreakIteratorQt::previous):
  4975. (WebCore::wordBreakIterator):
  4976. (WebCore::characterBreakIterator):
  4977. (WebCore::textBreakFirst):
  4978. (WebCore::textBreakNext):
  4979. (WebCore::textBreakPreceding):
  4980. (WebCore::textBreakFollowing):
  4981. (WebCore::textBreakCurrent):
  4982. * platform/qt/TextCodecQt.cpp: Added.
  4983. (WebCore::getAtomicName):
  4984. (WebCore::TextCodecQt::registerEncodingNames):
  4985. (WebCore::newTextCodecQt):
  4986. (WebCore::TextCodecQt::registerCodecs):
  4987. (WebCore::TextCodecQt::TextCodecQt):
  4988. (WebCore::TextCodecQt::~TextCodecQt):
  4989. (WebCore::TextCodecQt::decode):
  4990. (WebCore::TextCodecQt::encode):
  4991. * platform/qt/TextCodecQt.h: Added.
  4992. * rendering/RenderBlock.cpp:
  4993. (WebCore::RenderBlock::updateFirstLetter):
  4994. * rendering/RenderText.cpp:
  4995. (WebCore::RenderText::previousOffset):
  4996. (WebCore::RenderText::nextOffset):
  4997. (WebCore::RenderText::widthFromCache):
  4998. * rendering/RenderText.h:
  4999. * rendering/bidi.cpp:
  5000. (WebCore::BidiState::BidiState):
  5001. (WebCore::BidiContext::BidiContext):
  5002. (WebCore::bidiNext):
  5003. (WebCore::bidiFirst):
  5004. (WebCore::BidiIterator::direction):
  5005. (WebCore::appendRun):
  5006. (WebCore::embed):
  5007. (WebCore::RenderBlock::computeHorizontalPositionsForLine):
  5008. (WebCore::RenderBlock::bidiReorderLine):
  5009. (WebCore::RenderBlock::layoutInlineChildren):
  5010. * rendering/bidi.h:
  5011. (WebCore::BidiStatus::BidiStatus):
  5012. (WebCore::BidiContext::dir):
  5013. (WebCore::BidiContext::basicDir):
  5014. (WebCore::BidiRun::BidiRun):
  5015. * rendering/break_lines.h:
  5016. 2006-12-08 Adam Roben <aroben@apple.com>
  5017. Rolling out r17865 because it caused a performance regression.
  5018. * loader/TextResourceDecoder.cpp:
  5019. (WebCore::findXMLEncoding):
  5020. * platform/CString.cpp:
  5021. (WebCore::CString::data):
  5022. * platform/CString.h:
  5023. * platform/TextStream.cpp:
  5024. (WebCore::TextStream::operator<<):
  5025. * platform/TextStream.h:
  5026. 2006-12-08 Zack Rusin <zack@kde.org>
  5027. Reviewed by Maciej.
  5028. Fix the Qt/KDE build after all the API changes.
  5029. * CMakeLists.txt:
  5030. * editing/qt/EditorQt.cpp: Added.
  5031. (WebCore::Editor::newGeneralClipboard):
  5032. (WebCore::Editor::ignoreSpelling):
  5033. (WebCore::Editor::learnSpelling):
  5034. (WebCore::Editor::advanceToNextMisspelling):
  5035. (WebCore::Editor::isSelectionMisspelled):
  5036. (WebCore::Editor::isSelectionUngrammatical):
  5037. (WebCore::Editor::guessesForUngrammaticalSelection):
  5038. (WebCore::Editor::guessesForMisspelledSelection):
  5039. (WebCore::Editor::markMisspellingsInAdjacentWords):
  5040. (WebCore::Editor::markMisspellings):
  5041. * loader/NavigationAction.h:
  5042. * loader/qt/FrameLoaderClientQt.cpp:
  5043. (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
  5044. (WebCore::FrameLoaderClientQt::canHandleRequest):
  5045. * loader/qt/FrameLoaderClientQt.h:
  5046. * loader/qt/FrameLoaderQt.cpp:
  5047. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  5048. (WebCore::FrameLoader::load):
  5049. * loader/qt/ResourceLoaderQt.cpp:
  5050. * platform/ContextMenu.h:
  5051. * platform/graphics/qt/GraphicsContextQt.cpp:
  5052. * platform/graphics/qt/PathQt.cpp:
  5053. (WebCore::Path::addArc):
  5054. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  5055. (WebCore::SVGPaintServerLinearGradient::setup):
  5056. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  5057. (WebCore::setup):
  5058. * platform/network/ResourceHandle.h:
  5059. (WebCore::ResourceHandle::getInternal):
  5060. * platform/network/ResourceHandleInternal.h:
  5061. * platform/network/qt/ResourceHandleManager.cpp:
  5062. (WebCore::ResourceHandleManager::slotData):
  5063. (WebCore::ResourceHandleManager::remove):
  5064. * platform/network/qt/ResourceHandleQt.cpp:
  5065. (WebCore::ResourceHandle::~ResourceHandle):
  5066. (WebCore::ResourceHandle::start):
  5067. * platform/qt/ChromeClientQt.cpp:
  5068. (WebCore::ChromeClientQt::addMessageToConsole):
  5069. (WebCore::ChromeClientQt::chromeDestroyed):
  5070. * platform/qt/ChromeClientQt.h:
  5071. * platform/qt/ContextMenuClientQt.cpp:
  5072. (WebCore::ContextMenuClientQt::copyLinkToClipboard):
  5073. (WebCore::ContextMenuClientQt::downloadURL):
  5074. (WebCore::ContextMenuClientQt::copyImageToClipboard):
  5075. (WebCore::ContextMenuClientQt::contextMenuDestroyed):
  5076. (WebCore::ContextMenuClientQt::contextMenuItemSelected):
  5077. * platform/qt/ContextMenuClientQt.h:
  5078. * platform/qt/ContextMenuItemQt.cpp: Added.
  5079. (WebCore::ContextMenuItem::ContextMenuItem):
  5080. (WebCore::ContextMenuItem::~ContextMenuItem):
  5081. (WebCore::ContextMenuItem::platformDescription):
  5082. (WebCore::ContextMenuItem::action):
  5083. (WebCore::ContextMenuItem::title):
  5084. (WebCore::ContextMenuItem::setAction):
  5085. (WebCore::ContextMenuItem::setTitle):
  5086. (WebCore::ContextMenuItem::setSubMenu):
  5087. * platform/qt/ContextMenuQt.cpp:
  5088. (WebCore::ContextMenu::ContextMenu):
  5089. (WebCore::ContextMenu::~ContextMenu):
  5090. (WebCore::ContextMenu::appendItem):
  5091. (WebCore::ContextMenu::itemCount):
  5092. (WebCore::ContextMenu::insertItem):
  5093. (WebCore::ContextMenu::setPlatformDescription):
  5094. * platform/qt/CursorQt.cpp:
  5095. (WebCore::copyCursor):
  5096. * platform/qt/EditorClientQt.cpp:
  5097. (WebCore::EditorClientQt::shouldInsertNode):
  5098. (WebCore::WebCore::EditorClientQt::pageDestroyed):
  5099. (WebCore::EditorClientQt::smartInsertDeleteEnabled):
  5100. * platform/qt/EditorClientQt.h:
  5101. * platform/qt/FrameQt.cpp:
  5102. (WebCore::FrameQt::FrameQt):
  5103. (WebCore::FrameQt::keyEvent):
  5104. * platform/qt/FrameQt.h:
  5105. * platform/qt/FrameQtClient.cpp:
  5106. (WebCore::FrameQtClientDefault::openURL):
  5107. (WebCore::FrameQtClientDefault::submitForm):
  5108. * platform/qt/LoaderFunctionsQt.cpp:
  5109. * platform/qt/PasteboardQt.cpp: Added.
  5110. (WebCore::Pasteboard::Pasteboard):
  5111. (WebCore::Pasteboard::generalPasteboard):
  5112. (WebCore::Pasteboard::clearTypes):
  5113. (WebCore::Pasteboard::writeSelection):
  5114. (WebCore::Pasteboard::canSmartReplace):
  5115. (WebCore::Pasteboard::plainText):
  5116. (WebCore::Pasteboard::documentFragment):
  5117. === Safari-521.32 ===
  5118. 2006-12-08 Rob Buis <buis@kde.org>
  5119. Reviewed by Maciej.
  5120. http://bugs.webkit.org/show_bug.cgi?id=10188
  5121. Form elements added via appendChild() are not accessible via form.element
  5122. Make sure looking up form elements works when the form is not appended
  5123. to the document.
  5124. * html/HTMLFormElement.cpp:
  5125. (WebCore::HTMLFormElement::registerFormElement):
  5126. 2006-12-08 Rob Buis <buis@kde.org>
  5127. Reviewed by Adele.
  5128. http://bugs.webkit.org/show_bug.cgi?id=11765
  5129. REGRESSION: Clicking on a select with size other than 1 and no children results in a crash
  5130. Make sure returned value is -1 for selects without children.
  5131. * rendering/RenderListBox.cpp:
  5132. (WebCore::RenderListBox::listIndexAtOffset):
  5133. 2006-12-08 Adam Roben <aroben@apple.com>
  5134. Reviewed by Anders.
  5135. This is a mo' better fix for ensuring we don't use macro definitions
  5136. of min/max.
  5137. * config.h:
  5138. 2006-12-08 Peter Kasting <pkasting@google.com>
  5139. Reviewed and landed by Alexey.
  5140. http://bugs.webkit.org/show_bug.cgi?id=11759:
  5141. Windows build bustage
  5142. * WebCore.vcproj/WebCore/WebCore.vcproj:
  5143. * bridge/win/ContextMenuClientWin.h:
  5144. * bridge/win/FrameWin.h:
  5145. * loader/win/FrameLoaderWin.cpp:
  5146. (WebCore::FrameLoader::submitForm):
  5147. * platform/network/win/ResourceHandleWin.cpp:
  5148. (WebCore::ResourceHandle::onRequestComplete):
  5149. (WebCore::ResourceHandle::fileLoadTimer):
  5150. (WebCore::ResourceHandle::cancel):
  5151. * platform/win/MouseEventWin.cpp:
  5152. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  5153. * platform/win/TemporaryLinkStubs.cpp:
  5154. (WebCore::fileButtonChooseFileLabel):
  5155. (WebCore::inputElementAltText):
  5156. (WebCore::copyCursor):
  5157. (WebCore::resetButtonDefaultLabel):
  5158. (WebCore::ContextMenuClientWin::contextMenuItemSelected):
  5159. (WebCore::ContextMenuClientWin::copyLinkToClipboard):
  5160. (WebCore::ContextMenuClientWin::downloadURL):
  5161. (WebCore::ContextMenuClientWin::copyImageToClipboard):
  5162. (WebCore::Editor::ignoreSpelling):
  5163. (WebCore::Editor::learnSpelling):
  5164. (WebCore::Editor::isSelectionUngrammatical):
  5165. (WebCore::Editor::isSelectionMisspelled):
  5166. (WebCore::Editor::guessesForMisspelledSelection):
  5167. (WebCore::Editor::guessesForUngrammaticalSelection):
  5168. (WebCore::Editor::markMisspellingsInAdjacentWords):
  5169. (WebCore::FrameLoader::load):
  5170. (WebCore::FrameWin::scheduleClose):
  5171. (WebCore::FrameWin::respondToChangedSelection):
  5172. 2006-12-08 Sam Weinig <sam@webkit.org>
  5173. Reviewed by Geoff.
  5174. Fix for http://bugs.webkit.org/show_bug.cgi?id=11777
  5175. Crash when using XMLSerializer.serializeToString() on
  5176. documentless, DocumentType nodes.
  5177. Test: fast/dom/XMLSerializer-doctype.html
  5178. Test: fast/dom/XMLSerializer-doctype2.html
  5179. * dom/DOMImplementation.cpp:
  5180. (WebCore::DOMImplementation::createDocument): set the document of the
  5181. DocumentType node to the new document.
  5182. * xml/XMLSerializer.cpp: Cleanup.
  5183. (WebCore::XMLSerializer::serializeToString): now throws an exception
  5184. for documentless nodes.
  5185. * xml/XMLSerializer.h: cleanup
  5186. * xml/XMLSerializer.idl: add exception
  5187. 2006-12-07 Justin Garcia <justin.garcia@apple.com>
  5188. Reviewed by john
  5189. <rdar://problem/4836287>
  5190. Cannot expand selection out of editable element when containing element is non-editable.
  5191. * editing/Selection.cpp:
  5192. (WebCore::Selection::adjustForEditableContent): Restrict the selection endpoints
  5193. to the same *highest* editable root. This bug only happened when creating selections
  5194. based in an editable region and extending into a higher editable root, so this change
  5195. doesn't expose any new kinds of deletions, but we should start thinking about how
  5196. those deletions should behave.
  5197. * editing/SelectionController.cpp:
  5198. (WebCore::SelectionController::selectAll): Ditto.
  5199. 2006-12-08 Beth Dakin <bdakin@apple.com>
  5200. Reviewed by Maciej.
  5201. Add a new member variable to ContextMenuItem to hold on to the sub-
  5202. menu. The new member variable is an OwnPtr<ContextMenu>
  5203. * platform/ContextMenu.cpp: Because of the OwnPtr in
  5204. ContextMenuItem, we have to separate the declaration of
  5205. ContextMenuItems away from the calls to appendItem(). Not doing so
  5206. causes a build failure because OwnPtr inherits from Noncopyable.
  5207. (WebCore::createFontSubMenu): Same.
  5208. (WebCore::createSpellingAndGrammarSubMenu): Same.
  5209. (WebCore::createSpellingSubMenu): Same.
  5210. (WebCore::createSpeechSubMenu): Same.
  5211. (WebCore::createWritingDirectionSubMenu): Same.
  5212. (WebCore::ContextMenu::populate): Same.
  5213. * platform/ContextMenuItem.h: New member variable m_subMenu.
  5214. * platform/mac/ContextMenuItemMac.mm: Take care of setting
  5215. m_subMenu in addition to setting the submenu of the NSMenuItem when
  5216. we have a sub-menu.
  5217. (WebCore::menuToArray):
  5218. (WebCore::ContextMenuItem::ContextMenuItem): Same.
  5219. (WebCore::ContextMenuItem::platformSubMenu): Same.
  5220. (WebCore::ContextMenuItem::setSubMenu): Same.
  5221. 2006-12-08 Darin Fisher <darin@chromium.org>
  5222. Reviewed by Darin.
  5223. http://bugs.webkit.org/show_bug.cgi?id=11778
  5224. CString::data() should be documented as returning a null terminated char array
  5225. * platform/CString.h:
  5226. Add some basic documentation to CString.h
  5227. 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
  5228. Reviewed by Geoff.
  5229. http://bugs.webkit.org/show_bug.cgi?id=11718
  5230. REGRESSION: When I mouse up after dragging a selection outside of a iframe, the iframe
  5231. continues to scroll automatically.
  5232. Test: manual-tests/autoscroll.html
  5233. * manual-tests/autoscroll.html: Added.
  5234. * page/EventHandler.cpp:
  5235. (WebCore::EventHandler::handleMousePressEvent):
  5236. Assign to m_mousePressNode earlier, so that it is available in the superframe as well.
  5237. Reset m_mouseDownWasInSubframe to false when starting to handle a mousedown - previously, its value
  5238. was only defined if the event was passed down to a widget or a subframe.
  5239. (WebCore::EventHandler::stopAutoscrollTimer):
  5240. If the mouse down event was in a subframe, stop the subframe's timer.
  5241. 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
  5242. Reviewed by Geoff.
  5243. http://bugs.webkit.org/show_bug.cgi?id=6275
  5244. XMLHttpRequest.getResponseHeader should return a null string for non-existent headers
  5245. * bindings/js/JSXMLHttpRequest.cpp:
  5246. (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
  5247. Convert null getResponseHeader strings to JS null, rather than undefined.
  5248. 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
  5249. Reviewed by Darin.
  5250. http://bugs.webkit.org/show_bug.cgi?id=9854
  5251. HTTP Refresh header with quotes is parsed incorrectly
  5252. Test: http/tests/misc/redirect-with-quotes.php
  5253. * WebCore.xcodeproj/project.pbxproj:
  5254. Added HTTPParsers.{h,cpp}. I intend to move Content-Type parsing here, as well.
  5255. * dom/Document.cpp:
  5256. (WebCore::Document::processHttpEquiv):
  5257. * loader/FrameLoader.cpp:
  5258. (WebCore::FrameLoader::receivedFirstData):
  5259. Use the new implementation in HTTPHeaders.
  5260. * platform/network/HTTPParsers.cpp: Added.
  5261. (WebCore::skipWhiteSpace):
  5262. (WebCore::parseHTTPRefresh):
  5263. * platform/network/HTTPParsers.h: Added.
  5264. Merged and rewrote existing implementations for better Firefox compatibility.
  5265. 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
  5266. Reviewed by Tim H.
  5267. http://bugs.webkit.org/show_bug.cgi?id=11772
  5268. REGRESSION: XMLSerializer.serializeToString incorrect value for CDATA nodes
  5269. Test: fast/dom/serialize-cdata.html
  5270. * editing/markup.cpp:
  5271. (WebCore::startMarkup): Dump CDATA sections, too.
  5272. 2006-12-08 Mitz Pettel <mitz@webkit.org>
  5273. Reviewed by hyatt.
  5274. Deleted misplaced comment.
  5275. * rendering/RenderWidget.cpp:
  5276. 2006-12-08 Rob Buis <buis@kde.org>
  5277. Reviewed by Darin.
  5278. http://bugs.webkit.org/show_bug.cgi?id=6074
  5279. WebKit+SVG and FireFox disagree on invalid "transform" handling
  5280. Test for parsing failure on transform attribute and clear the transform
  5281. list upon failure to match FF behaviour.
  5282. * ksvg2/svg/SVGGradientElement.cpp:
  5283. (WebCore::SVGGradientElement::parseMappedAttribute):
  5284. * ksvg2/svg/SVGPatternElement.cpp:
  5285. (WebCore::SVGPatternElement::parseMappedAttribute):
  5286. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  5287. (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
  5288. * ksvg2/svg/SVGTextElement.cpp:
  5289. (WebCore::SVGTextElement::parseMappedAttribute):
  5290. * ksvg2/svg/SVGTransformable.cpp:
  5291. (WebCore::SVGTransformable::parseTransformAttribute):
  5292. * ksvg2/svg/SVGTransformable.h:
  5293. 2006-12-07 Geoffrey Garen <ggaren@apple.com>
  5294. Reviewed by Beth Dakin.
  5295. Fixed <rdar://problem/4870551> 9A320: <input type="text"> no longer
  5296. dispatches onchange event in response to enter key
  5297. To match our old behavior and FF, we need to dispatch onchange in response to the
  5298. ENTER key. The strategy here is just to dispatch a blur event, since that's how
  5299. the search field always worked, and the DOM spec says onchange only fires
  5300. as a precursor to blur.
  5301. * ChangeLog:
  5302. * html/HTMLInputElement.cpp:
  5303. (WebCore::HTMLInputElement::defaultEventHandler):
  5304. 2006-12-07 Adam Roben <aroben@apple.com>
  5305. Reviewed by Oliver.
  5306. Some small context menu-related fixes.
  5307. * html/HTMLFrameSetElement.cpp:
  5308. (WebCore::HTMLFrameSetElement::defaultEventHandler): Don't try to
  5309. resize on a contextmenuEvent.
  5310. * html/HTMLInputElement.cpp:
  5311. (WebCore::HTMLInputElement::defaultEventHandler): Only pass the event
  5312. off to HTMLGenericFormElement if we haven't handled it.
  5313. 2006-12-07 Anders Carlsson <acarlsson@apple.com>
  5314. Reviewed by Darin.
  5315. <rdar://problem/4838778>
  5316. Title: DashboardClient crashing in WebCore::SubresourceLoader::didFail
  5317. * loader/SubresourceLoader.cpp:
  5318. (WebCore::SubresourceLoader::stopLoading):
  5319. * loader/SubresourceLoader.h:
  5320. Add stopLoading method which currently just clears the client. This isn't the ideal fix,
  5321. since it doesn't actually stop the load.
  5322. * loader/mac/SubresourceLoaderMac.mm:
  5323. (WebCore::SubresourceLoader::willSendRequest):
  5324. (WebCore::SubresourceLoader::didReceiveResponse):
  5325. (WebCore::SubresourceLoader::didReceiveData):
  5326. (WebCore::SubresourceLoader::didFinishLoading):
  5327. (WebCore::SubresourceLoader::didFail):
  5328. (WebCore::SubresourceLoader::didCancel):
  5329. Add null-checks.
  5330. * xml/xmlhttprequest.cpp:
  5331. (WebCore::XMLHttpRequest::abort):
  5332. Call stopLoading.
  5333. 2006-12-07 Kevin McCullough <kmccullough@apple.com>
  5334. Reviewed by Geof.
  5335. - added the ability to set the auto repeating variable to force a keyPressed
  5336. event from a keyDown event.
  5337. * platform/PlatformKeyboardEvent.h:
  5338. (WebCore::PlatformKeyboardEvent::setIsAutoRepeat):
  5339. 2006-12-07 Peter Kasting <pkasting@google.com>
  5340. Reviewed by Darin.
  5341. http://bugs.webkit.org/show_bug.cgi?id=11749
  5342. Don't call updateThumbProportion() unnecessarily.
  5343. * platform/ScrollBar.cpp:
  5344. (WebCore::Scrollbar::setProportion):
  5345. 2006-12-07 Beth Dakin <bdakin@apple.com>
  5346. Reviewed by Brady.
  5347. Fixes "Open in new Window" item in WebCore ContextMenus. It wasn't
  5348. doing anything before, and now it works! Also some formatting
  5349. changes, etc.
  5350. * page/ContextMenuClient.h: Several of the parameters to several of
  5351. the functions here should be const or const references. And now
  5352. they are!
  5353. * page/ContextMenuController.cpp:
  5354. (WebCore::openNewWindow): Moved the open new window functionality
  5355. into a helper function since it is used by several menu item tags.
  5356. Now after calling chrome()->createWindow() we call chrome()->show()
  5357. on the new window, and so it appears!
  5358. (WebCore::ContextMenuController::contextMenuItemSelected): Call new
  5359. openNewWindow function to do the right thing. Shift some
  5360. formatting, use local variable for HitTestResult. Implement action
  5361. for ContextMenuItemTagOpenLink.
  5362. 2006-12-06 Kevin McCullough <KMcCullough@apple.com>
  5363. Reviewed by.
  5364. - Removed a conflict marker
  5365. * ChangeLog:
  5366. 2006-12-06 Justin Garcia <justin.garcia@apple.com>
  5367. Reviewed by darin
  5368. <rdar://problem/4818134>
  5369. Crash in WebCore::selectRange when invoking WebView:insertNewLine in any empty content editable DIV.
  5370. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RebalanceWhitespaceCommand.*.
  5371. * editing/visible_units.cpp:
  5372. (WebCore::startOfLine): There are VisiblePositions at offset 0 in blocks without
  5373. RootInlineBoxes, like empty editable blocks and bordered blocks.
  5374. (WebCore::endOfLine): Ditto.
  5375. 2006-12-06 Kevin McCullough <KMcCullough@apple.com>
  5376. Reviewed by.
  5377. - Removed a conflict marker
  5378. * ChangeLog:
  5379. 2006-12-06 Justin Garcia <justin.garcia@apple.com>
  5380. Reviewed by john
  5381. <rdar://problem/4854869>
  5382. Inserting a new line in a contenteditable=true SPAN whose parent is a DIV asserts
  5383. * editing/htmlediting.cpp:
  5384. (WebCore::enclosingBlock): Use enclosingNodeWithType to prevent escape
  5385. from editable content.
  5386. * editing/markup.cpp:
  5387. (WebCore::createMarkup): A null commonAncestorBlock will happen
  5388. if commonAncestor is inside an inline editable root that doesn't
  5389. contain any blocks. Removed an early return for this case: the
  5390. code below the early return can and must handle it.
  5391. 2006-12-06 Timothy Hatcher <timothy@apple.com>
  5392. Reviewed by Mark Rowe.
  5393. <rdar://problem/4843505> Fix cross-library ivar use for 64-bit Objective-C
  5394. Adds a new WebCore.LP64.exp file that gets appended to the normal export file.
  5395. This new file will have 64-bit only symbols we need to export.
  5396. * WebCore.LP64.exp: Added.
  5397. * WebCore.xcodeproj/project.pbxproj:
  5398. 2006-12-06 Anders Carlsson <acarlsson@apple.com>
  5399. Reviewed by Maciej.
  5400. Change SubresourceLoader to use a ResourceHandle, and change ResourceHandle to use a NSURLConnection.
  5401. * loader/ResourceLoader.h:
  5402. * loader/SubresourceLoader.cpp:
  5403. (WebCore::SubresourceLoader::create):
  5404. (WebCore::SubresourceLoader::didReceiveData):
  5405. (WebCore::SubresourceLoader::didFinishLoading):
  5406. (WebCore::SubresourceLoader::didFail):
  5407. * loader/SubresourceLoader.h:
  5408. (WebCore::SubresourceLoader::didReceiveAuthenticationChallenge):
  5409. (WebCore::SubresourceLoader::didCancelAuthenticationChallenge):
  5410. (WebCore::SubresourceLoader::willStopBufferingData):
  5411. (WebCore::SubresourceLoader::willCacheResponse):
  5412. (WebCore::SubresourceLoader::receivedCredential):
  5413. (WebCore::SubresourceLoader::receivedRequestToContinueWithoutCredential):
  5414. (WebCore::SubresourceLoader::receivedCancellation):
  5415. * loader/SubresourceLoaderClient.h:
  5416. (WebCore::SubresourceLoaderClient::didFail):
  5417. * loader/icon/IconLoader.cpp:
  5418. (WebCore::IconLoader::didFail):
  5419. * loader/icon/IconLoader.h:
  5420. * loader/loader.cpp:
  5421. (WebCore::Loader::didFail):
  5422. * loader/loader.h:
  5423. * loader/mac/ResourceLoaderMac.mm:
  5424. (WebCore::ResourceLoader::ResourceLoader):
  5425. (WebCore::ResourceLoader::addData):
  5426. (WebCore::ResourceLoader::resourceData):
  5427. * loader/mac/SubresourceLoaderMac.mm:
  5428. (WebCore::SubresourceLoader::SubresourceLoader):
  5429. (WebCore::SubresourceLoader::setDefersLoading):
  5430. (WebCore::SubresourceLoader::resourceData):
  5431. (WebCore::SubresourceLoader::load):
  5432. (WebCore::SubresourceLoader::create):
  5433. (WebCore::SubresourceLoader::willSendRequest):
  5434. (WebCore::SubresourceLoader::didReceiveResponse):
  5435. (WebCore::SubresourceLoader::didReceiveData):
  5436. (WebCore::SubresourceLoader::didFinishLoading):
  5437. (WebCore::SubresourceLoader::didFail):
  5438. (WebCore::SubresourceLoader::didCancel):
  5439. * platform/network/ResourceHandle.cpp:
  5440. (WebCore::ResourceHandle::ResourceHandle):
  5441. (WebCore::ResourceHandle::create):
  5442. * platform/network/ResourceHandle.h:
  5443. * platform/network/ResourceHandleClient.h:
  5444. (WebCore::ResourceHandleClient::didReceiveData):
  5445. (WebCore::ResourceHandleClient::didFail):
  5446. (WebCore::ResourceHandleClient::didReceiveAuthenticationChallenge):
  5447. (WebCore::ResourceHandleClient::didCancelAuthenticationChallenge):
  5448. (WebCore::ResourceHandleClient::willStopBufferingData):
  5449. (WebCore::ResourceHandleClient::willCacheResponse):
  5450. (WebCore::ResourceHandleClient::receivedCredential):
  5451. (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential):
  5452. (WebCore::ResourceHandleClient::receivedCancellation):
  5453. * platform/network/ResourceHandleInternal.h:
  5454. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  5455. * platform/network/mac/ResourceHandleMac.mm:
  5456. (WebCore::ResourceHandle::~ResourceHandle):
  5457. (WebCore::ResourceHandle::start):
  5458. (WebCore::ResourceHandle::cancel):
  5459. (WebCore::ResourceHandle::setDefersLoading):
  5460. (WebCore::ResourceHandle::delegate):
  5461. (WebCore::ResourceHandle::releaseDelegate):
  5462. (WebCore::ResourceHandle::supportsBufferedData):
  5463. (WebCore::ResourceHandle::bufferedData):
  5464. (-[WebCoreResourceHandleAsDelegate initWithHandle:]):
  5465. (-[WebCoreResourceHandleAsDelegate detachHandle]):
  5466. (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
  5467. (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
  5468. (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
  5469. (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
  5470. (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
  5471. (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
  5472. (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
  5473. (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
  5474. (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
  5475. (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
  5476. (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
  5477. (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
  5478. * xml/xmlhttprequest.cpp:
  5479. (WebCore::XMLHttpRequest::didFail):
  5480. * xml/xmlhttprequest.h:
  5481. 2006-12-06 Beth Dakin <bdakin@apple.com>
  5482. Reviewed by Adam.
  5483. There are two bugs with WebCore ContextMenus due to the static
  5484. ContextMenuItems. One bug is that we often crashed in
  5485. NSAutoreleasePool upon quitting the browser. The other bug is that
  5486. we were adding static NSMenuItems to multiple NSMenus, which is
  5487. disallowed. To fix these bugs, the MenuItems are no longer static.
  5488. This is in line with the current design in WebKit anyway. I made
  5489. some re-arrangements in the code because I also removed the macro
  5490. that was used to create the menu items since it was a bit
  5491. confusing.
  5492. * platform/ContextMenu.cpp:
  5493. (WebCore::createFontSubMenu):
  5494. (WebCore::createSpellingAndGrammarSubMenu):
  5495. (WebCore::createSpellingSubMenu):
  5496. (WebCore::createSpeechSubMenu):
  5497. (WebCore::createWritingDirectionSubMenu):
  5498. (WebCore::ContextMenu::populate):
  5499. * platform/ContextMenuItem.h:
  5500. * platform/mac/ContextMenuItemMac.mm:
  5501. (WebCore::ContextMenuItem::ContextMenuItem): Use the NSMenuItem
  5502. global separator item if we have SeparatorType.
  5503. * platform/mac/ContextMenuMac.mm:
  5504. (WebCore::setMenuItemTarget): Change name of getNSMenuItem since
  5505. that is no longer accurate.
  5506. (WebCore::ContextMenu::appendItem): Above name change.
  5507. (WebCore::ContextMenu::insertItem): Same.
  5508. 2006-12-06 Kevin McCullough <kmccullough@apple.com>
  5509. Reviewed by Geof.
  5510. - Returned the semantic meaning of the mask to be the actual repeat count,
  5511. and changed auto_repeat to correctly differnetiate between keypressed and keydown.
  5512. * platform/win/KeyEventWin.cpp:
  5513. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  5514. 2006-12-06 Justin Garcia <justin.garcia@apple.com>
  5515. Reviewed by harrison
  5516. <rdar://problem/4753545>
  5517. REGRESSION: Edited whitespace sequences are all nbsps (10636)
  5518. * WebCore.xcodeproj/project.pbxproj: Removed RebalanceWhitespaceCommand.* from the project.
  5519. * editing/CompositeEditCommand.cpp:
  5520. (WebCore::isWhitespace): Moved from htmlediting.
  5521. (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Moved the work that was
  5522. once done in its own command here.
  5523. (WebCore::CompositeEditCommand::prepareWhitespaceAtPositionForSplit): Prevents
  5524. whitespace around a position from collapsing when it's pushed apart during Paste.
  5525. This function can eventually be deployed to eliminate the need for leading/trailing
  5526. whitespace handling in InsertParagraphSeparator, InsertLineBreak, Delete, and BreakBlockquote.
  5527. (WebCore::CompositeEditCommand::rebalanceWhitespace): Cleaned up.
  5528. * editing/CompositeEditCommand.h:
  5529. * editing/DeleteSelectionCommand.cpp:
  5530. (WebCore::DeleteSelectionCommand::doApply): Do rebalanceWhitespaceAt *before*
  5531. saving the typing style, because whitespace rebalancing is no longer it's own
  5532. command that claims to preserve the typing style.
  5533. * editing/RebalanceWhitespaceCommand.cpp: Removed.
  5534. * editing/RebalanceWhitespaceCommand.h: Removed.
  5535. * editing/ReplaceSelectionCommand.cpp:
  5536. (WebCore::ReplaceSelectionCommand::doApply): Moved the code to prepare whitespace
  5537. arond a position for being pushed aparat to its own method.
  5538. * editing/htmlediting.cpp:
  5539. (WebCore::stringWithRebalancedWhitespace): Added. Returns a rebalanced string.
  5540. Takes in whether or not the beginning of that string will be at the start of
  5541. a paragraph, because a space at such a position must have be nbsp, even if
  5542. that doesn't follow the nbsp/space pattern used. Similar stuff for the end
  5543. of a paragraph.
  5544. * editing/htmlediting.h:
  5545. * editing/markup.cpp:
  5546. (WebCore::fillContainerFromString): Call stringWithRelabacedWhitespace. Pass
  5547. it the startOfParagraph/endOfParagraph bools.
  5548. 2006-12-05 John Sullivan <sullivan@apple.com>
  5549. Reviewed by Beth
  5550. Moved spelling and grammar code from Frame to Editor
  5551. * WebCore.exp:
  5552. updated for these changes
  5553. * page/Frame.h:
  5554. removed declarations of spelling and grammar functions
  5555. * bridge/mac/FrameMac.h:
  5556. removed declarations of spelling and grammar functions
  5557. * bridge/mac/FrameMac.mm:
  5558. moved implementation of spelling and grammar functions from here
  5559. (WebCore::FrameMac::respondToChangedSelection):
  5560. updated for moved functions
  5561. * editing/Editor.h:
  5562. moved declarations of spelling and grammar functions to here
  5563. * editing/mac/EditorMac.mm:
  5564. moved implementation of spelling and grammar functions to here; changed
  5565. only to make it compile (e.g. removing "editor()->" and adding "frame()->"
  5566. where appropraite.
  5567. (WebCore::findFirstMisspellingInRange):
  5568. (WebCore::paragraphAlignedRangeForRange):
  5569. (WebCore::findFirstGrammarDetailInRange):
  5570. (WebCore::findFirstBadGrammarInRange):
  5571. (WebCore::Editor::advanceToNextMisspelling):
  5572. (WebCore::Editor::isSelectionMisspelled):
  5573. (WebCore::isRangeUngrammatical):
  5574. (WebCore::Editor::isSelectionUngrammatical):
  5575. (WebCore::Editor::guessesForUngrammaticalSelection):
  5576. (WebCore::core):
  5577. (WebCore::Editor::guessesForMisspelledSelection):
  5578. (WebCore::Editor::markMisspellingsInAdjacentWords):
  5579. (WebCore::markAllMisspellingsInRange):
  5580. (WebCore::markAllBadGrammarInRange):
  5581. (WebCore::Editor::markMisspellings):
  5582. * platform/ContextMenu.cpp:
  5583. (WebCore::ContextMenu::populate):
  5584. updated for moved functions
  5585. * editing/TypingCommand.cpp:
  5586. (WebCore::TypingCommand::markMisspellingsAfterTyping):
  5587. updated for moved functions
  5588. 2006-12-05 Anders Carlsson <acarlsson@apple.com>
  5589. Reviewed by Maciej.
  5590. General cleanup, get rid of PlatformResponse (we have ResourceResponse now)
  5591. and remove a couple of functions that were unused.
  5592. * loader/CachedResource.h:
  5593. * loader/LoaderFunctions.h:
  5594. * loader/mac/LoaderFunctionsMac.mm:
  5595. * platform/network/ResourceHandle.h:
  5596. * platform/network/ResourceHandleClient.h:
  5597. * platform/network/mac/ResourceHandleMac.mm:
  5598. (WebCore::ResourceHandle::~ResourceHandle):
  5599. 2006-12-05 Kevin McCullough <kmccullough@apple.com>
  5600. Reviewed by John.
  5601. - keydown is now a keydown event instead of a keypress event.
  5602. Fixes some form submission oddities.
  5603. * platform/win/KeyEventWin.cpp:
  5604. 2006-12-05 John Sullivan <sullivan@apple.com>
  5605. Tiger build fix
  5606. * editing/mac/EditorMac.mm:
  5607. declare -[NSSpellChecker learnWord:], on Tiger only (it's API on Leopard)
  5608. 2006-12-05 John Sullivan <sullivan@apple.com>
  5609. Reviewed by Geoff Garen
  5610. * page/Frame.h:
  5611. remove declarations of ignoreSpelling() and learnSpelling()
  5612. * bridge/mac/FrameMac.h:
  5613. remove declarations of ignoreSpelling() and learnSpelling()
  5614. * bridge/mac/FrameMac.mm:
  5615. moved implementations of ignoreSpelling() and learnSpelling() from here
  5616. * editing/Editor.h:
  5617. added declarations of ignoreSpelling() and learnSpelling()
  5618. * editing/mac/EditorMac.mm:
  5619. (WebCore::Editor::ignoreSpelling):
  5620. moved here from FrameMac.mm
  5621. (WebCore::Editor::learnSpelling):
  5622. ditto
  5623. * page/ContextMenuController.cpp:
  5624. (WebCore::ContextMenuController::contextMenuItemSelected):
  5625. updated callers to use frame()->editor() rather than frame()
  5626. 2006-12-05 John Sullivan <sullivan@apple.com>
  5627. Reviewed by Adam
  5628. New context-menu mechanism fix for:
  5629. <rdar://problem/4864351> Should leave out "No Guesses Found" from context menu for bad grammar
  5630. * platform/ContextMenu.cpp:
  5631. (WebCore::ContextMenu::populate):
  5632. Leave out "No Guesses Found" and separator for grammar-checking case.
  5633. 2006-12-05 Rob Buis <buis@kde.org>
  5634. Reviewed by Mitz.
  5635. http://bugs.webkit.org/show_bug.cgi?id=11686
  5636. WebKit draws Carto.net tabgroup example completely incorrectly (ff does fine)
  5637. Make sure the SVG render objects are laid out before measuring their
  5638. dimensions using relativeBBox.
  5639. * ksvg2/svg/SVGLocatable.cpp:
  5640. (WebCore::SVGLocatable::getBBox):
  5641. 2006-12-05 John Sullivan <sullivan@apple.com>
  5642. Reviewed by Darin
  5643. Grammar/Spelling code re-homing, baby step one: put isGrammarCheckingEnabled in Editor
  5644. since that's where isContinousSpellCheckingEnabled lives.
  5645. * editing/Editor.h:
  5646. * editing/Editor.cpp:
  5647. (WebCore::Editor::isGrammarCheckingEnabled):
  5648. new method, calls through to client a la isContinuousSpellCheckingEnabled
  5649. * bridge/mac/FrameMac.mm:
  5650. (WebCore::FrameMac::advanceToNextMisspelling):
  5651. call editor() rather than editor()->client()
  5652. (WebCore::FrameMac::markMisspellings):
  5653. ditto
  5654. * platform/ContextMenu.cpp:
  5655. (WebCore::ContextMenu::populate):
  5656. ditto
  5657. 2006-12-05 Darin Adler <darin@apple.com>
  5658. Reviewed by Geoff.
  5659. - a little cleanup
  5660. * html/HTMLInputElement.h: Removed unneeded includes of RenderObject.h
  5661. and RenderStyle.h.
  5662. * html/HTMLSelectElement.h: Removed unneeded include of RenderStyle.h.
  5663. * ksvg2/svg/SVGStyledElement.h: Removed unneeded include of RenderStyle.h.
  5664. * ksvg2/svg/SVGSVGElement.h: Remove unneeded parameter to createSVGPoint.
  5665. * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::createSVGPoint):
  5666. Ditto.
  5667. * ksvg2/scripts/generateJSBindings.pl: Removed unused script.
  5668. 2006-12-05 Darin Adler <darin@apple.com>
  5669. * doc: Removed empty directory. It's not clear this is a good place for
  5670. documentation, so lets add it back later if we actually start using it.
  5671. 2006-12-05 Anders Carlsson <acarlsson@apple.com>
  5672. Reviewed by Brady, Darin.
  5673. * loader/loader.cpp:
  5674. (WebCore::Loader::receivedAllData):
  5675. Remove ref() call that was left around by mistake.
  5676. 2006-12-05 Sam Weinig <sam@webkit.org>
  5677. Reviewed by Tim H.
  5678. Fix for http://bugs.webkit.org/show_bug.cgi?id=11758
  5679. Don't compile custom SVG and XSLT bindings in non-svg build
  5680. * bindings/js/JSSVGNumber.cpp:
  5681. * bindings/js/JSSVGNumber.h:
  5682. * bindings/js/JSSVGPoint.cpp:
  5683. * bindings/js/JSSVGPoint.h:
  5684. * bindings/js/JSSVGRect.cpp:
  5685. * bindings/js/JSSVGRect.h:
  5686. * bindings/js/JSXSLTProcessor.cpp:
  5687. * bindings/js/JSXSLTProcessor.h:
  5688. 2006-12-04 John Sullivan <sullivan@apple.com>
  5689. Reviewed by Darin
  5690. WebCore part of fix for:
  5691. <rdar://problem/4817188> Context menu for bad grammar should include suggestions and "Ignore Grammar"
  5692. The context menu mechanism is currently in flux; the old mechanism is still in place, but an
  5693. up-and-coming new mechanism is waiting in the wings. I updated both of them, but couldn't
  5694. test the new mechanism because it doesn't work well enough yet. Also, some of this code
  5695. should move from Frame to Editor, but that will wait for another checkin.
  5696. * page/Frame.h:
  5697. added pure virtual function declarations for isSelectionUngrammatical() and guessesForUngrammaticalSelection()
  5698. * bridge/mac/FrameMac.h:
  5699. added virtual functions declarations for isSelectionUngrammatical() and guessesForUngrammaticalSelection()
  5700. * bridge/mac/FrameMac.mm:
  5701. (WebCore::FrameMac::isSelectionMisspelled):
  5702. now updates spelling panel (whether or not it's showing), since this is now needed to make -[NSSSpellChecker
  5703. ignoreWord:inSpellDocumentWithTag:] work correctly
  5704. (WebCore::isRangeUngrammatical):
  5705. new function, helper used by both isSelectionUngrammatical() and guessesForUngrammaticalSelection()
  5706. (WebCore::FrameMac::isSelectionUngrammatical):
  5707. new function, calls isRangeUngrammatical
  5708. (WebCore::FrameMac::guessesForUngrammaticalSelection):
  5709. ditto
  5710. * platform/ContextMenu.cpp:
  5711. (WebCore::ContextMenu::populate):
  5712. now considers bad grammar as well as misspellings
  5713. * platform/ContextMenuItem.h:
  5714. added ContextMenuItemTagIgnoreGrammar
  5715. 2006-12-05 Pam Greene <pam@chromium.org>
  5716. Reviewed, tweaked and landed by Alexey.
  5717. <http://bugs.webkit.org/show_bug.cgi?id=11639> Form buttons don't look different when clicked
  5718. * rendering/RenderThemeWin.cpp:
  5719. (WebCore::RenderThemeWin::determineState): Moved test for active
  5720. state before test for hover state, since active should override hover
  5721. when both are true.
  5722. * platform/gdk/RenderThemeGdk.cpp:
  5723. (WebCore::RenderThemeGdk::determineState): Same fix.
  5724. 2006-12-05 Pam Greene <pam@chromium.org>
  5725. Reviewed and landed by Alexey.
  5726. http://bugs.webkit.org/show_bug.cgi?id=11681
  5727. Don't select the first option when resetting a listbox-style form
  5728. control (i.e., a multi-select control or one with size > 1) that
  5729. has no default selection.
  5730. Test: fast/dom/HTMLSelectElement/listbox-select-reset.html
  5731. * html/HTMLSelectElement.cpp:
  5732. (WebCore::HTMLSelectElement::reset):
  5733. 2006-12-05 Lars Naesbye Christensen <lars@naesbye.dk>
  5734. Reviewed and landed by Alexey.
  5735. http://bugs.webkit.org/show_bug.cgi?id=11752
  5736. [CSS 3] missing support for cursor selector 'copy'
  5737. * Resources/copyCursor.png: Added.
  5738. * WebCore.xcodeproj/project.pbxproj:
  5739. * css/CSSComputedStyleDeclaration.cpp:
  5740. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  5741. * css/CSSValueKeywords.in:
  5742. * manual-tests/cursor.html:
  5743. * page/EventHandler.cpp:
  5744. (WebCore::selectCursor):
  5745. * platform/Cursor.h:
  5746. * platform/mac/CursorMac.mm:
  5747. (WebCore::copyCursor):
  5748. * rendering/RenderStyle.h:
  5749. (WebCore::):
  5750. 2006-12-04 Beth Dakin <bdakin@apple.com>
  5751. Reviewed by Geoff.
  5752. Fix from last check-in. This line was badbad.
  5753. * platform/mac/ContextMenuMac.mm:
  5754. (WebCore::ContextMenu::~ContextMenu):
  5755. 2006-12-04 Beth Dakin <bdakin@apple.com>
  5756. Reviewed by Geoff.
  5757. With the new changes to ContextMenuItems, WebCore context menus
  5758. stopped appearing at all. And then when I got them to appear, they
  5759. crashed. This fixes both of these problems.
  5760. * platform/mac/ContextMenuItemMac.mm:
  5761. (WebCore::ContextMenuItem::ContextMenuItem): keyEquivalent cannot
  5762. be nil. This was causing Obj-C to throw an exception preventing the
  5763. menus from popping up at all.
  5764. * platform/mac/ContextMenuMac.mm:
  5765. (+[WebCoreMenuTarget sharedMenuTarget]): Re-name our static
  5766. MenuTarget so that it is more clear that it is a static and shared
  5767. WebCoreMenuTarget.
  5768. (WebCore::ContextMenu::ContextMenu): Initialize the
  5769. WebCoreMenuTarget's controller in the ContextMenu constructor
  5770. instead of in getNSMenuItem since the controller will only possibly
  5771. change when a new ContextMenu has been created.
  5772. (WebCore::ContextMenu::~ContextMenu): Set the target's controller
  5773. to 0.
  5774. (WebCore::getNSMenuItem): A lot of this work is being done other
  5775. places now. Call new class method on WebCoreMenuTarget to get the
  5776. shared target.
  5777. (WebCore::ContextMenu::appendItem): We should not be releasing the
  5778. menuItem here! This caused the crashes I saw.
  5779. (WebCore::ContextMenu::insertItem): Same.
  5780. 2006-12-04 Anders Carlsson <acarlsson@apple.com>
  5781. Fix the build.
  5782. * loader/mac/SubresourceLoaderMac.mm:
  5783. (WebCore::SubresourceLoader::~SubresourceLoader):
  5784. Add back the destructor.
  5785. 2006-12-04 Anders Carlsson <acarlsson@apple.com>
  5786. Reviewed by Darin.
  5787. Change all ResourceHandleClients to be SubresourceLoaderClients instead. Also,
  5788. make SubresourceLoader a ResourceHandleClient. This is a first step towards turning ResourceHandle into a
  5789. standalone class which doesn't need to know about SubresourceLoader.
  5790. * WebCore.xcodeproj/project.pbxproj:
  5791. * loader/ResourceLoader.cpp:
  5792. (WebCore::ResourceLoader::~ResourceLoader):
  5793. (WebCore::ResourceLoader::ResourceLoader):
  5794. (WebCore::ResourceLoader::setDefersLoading):
  5795. * loader/SubresourceLoader.cpp:
  5796. (WebCore::SubresourceLoader::SubresourceLoader):
  5797. (WebCore::SubresourceLoader::~SubresourceLoader):
  5798. (WebCore::SubresourceLoader::create):
  5799. (WebCore::SubresourceLoader::willSendRequest):
  5800. (WebCore::SubresourceLoader::didReceiveResponse):
  5801. (WebCore::SubresourceLoader::didReceiveData):
  5802. (WebCore::SubresourceLoader::didFinishLoading):
  5803. (WebCore::SubresourceLoader::didFailWithError):
  5804. (WebCore::SubresourceLoader::receivedAllData):
  5805. * loader/SubresourceLoader.h:
  5806. (WebCore::SubresourceLoader::loaderAsResourceHandleClient):
  5807. (WebCore::SubresourceLoader::handle):
  5808. * loader/SubresourceLoaderClient.h: Added.
  5809. (WebCore::SubresourceLoaderClient::~SubresourceLoaderClient):
  5810. (WebCore::SubresourceLoaderClient::willSendRequest):
  5811. (WebCore::SubresourceLoaderClient::didReceiveResponse):
  5812. (WebCore::SubresourceLoaderClient::didReceiveData):
  5813. (WebCore::SubresourceLoaderClient::didFinishLoading):
  5814. (WebCore::SubresourceLoaderClient::didFailWithError):
  5815. (WebCore::SubresourceLoaderClient::receivedAllData):
  5816. * loader/icon/IconLoader.cpp:
  5817. (WebCore::IconLoader::startLoading):
  5818. (WebCore::IconLoader::stopLoading):
  5819. (WebCore::IconLoader::didReceiveResponse):
  5820. (WebCore::IconLoader::didReceiveData):
  5821. (WebCore::IconLoader::didFailWithError):
  5822. (WebCore::IconLoader::didFinishLoading):
  5823. (WebCore::IconLoader::clearLoadingState):
  5824. * loader/icon/IconLoader.h:
  5825. * loader/loader.cpp:
  5826. (WebCore::Loader::servePendingRequests):
  5827. (WebCore::Loader::receivedAllData):
  5828. (WebCore::Loader::didFailWithError):
  5829. (WebCore::Loader::didReceiveResponse):
  5830. (WebCore::Loader::didReceiveData):
  5831. (WebCore::Loader::cancelRequests):
  5832. * loader/loader.h:
  5833. * loader/mac/SubresourceLoaderMac.mm:
  5834. (WebCore::SubresourceLoader::SubresourceLoader):
  5835. (WebCore::SubresourceLoader::create):
  5836. (WebCore::SubresourceLoader::willSendRequest):
  5837. (WebCore::SubresourceLoader::didReceiveResponse):
  5838. (WebCore::SubresourceLoader::didReceiveData):
  5839. (WebCore::SubresourceLoader::didFinishLoading):
  5840. (WebCore::SubresourceLoader::didFail):
  5841. (WebCore::SubresourceLoader::didCancel):
  5842. * platform/network/ResourceHandle.cpp:
  5843. (WebCore::ResourceHandle::ResourceHandle):
  5844. (WebCore::ResourceHandle::create):
  5845. * platform/network/ResourceHandle.h:
  5846. * platform/network/ResourceHandleClient.h:
  5847. * platform/network/ResourceHandleInternal.h:
  5848. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  5849. * platform/network/mac/ResourceHandleMac.mm:
  5850. (WebCore::ResourceHandle::start):
  5851. (WebCore::ResourceHandle::finishJobAndHandle):
  5852. (WebCore::ResourceHandle::loader):
  5853. * xml/xmlhttprequest.cpp:
  5854. (WebCore::XMLHttpRequest::send):
  5855. (WebCore::XMLHttpRequest::didFailWithError):
  5856. (WebCore::XMLHttpRequest::didFinishLoading):
  5857. (WebCore::XMLHttpRequest::willSendRequest):
  5858. (WebCore::XMLHttpRequest::didReceiveResponse):
  5859. (WebCore::XMLHttpRequest::didReceiveData):
  5860. * xml/xmlhttprequest.h:
  5861. 2006-12-04 Darin Adler <darin@apple.com>
  5862. Reviewed by Adele.
  5863. - fix another part of http://bugs.webkit.org/show_bug.cgi?id=11628
  5864. REGRESSION (r17597): Command-return in text fields doesn't open a new tab or window
  5865. This fixes command-return when the focus is on a link.
  5866. Despite the title of the bug, Mitz wanted me to fix both, and I will not
  5867. say no to him!
  5868. Test: fast/events/simulated-key-state.html
  5869. * dom/EventTargetNode.cpp:
  5870. (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Instead of always passing
  5871. false for all the key state in simulated mouse events, pass the state from the
  5872. first underlying event in the chain that has key state; in the case in the bug,
  5873. the keyboard event will be the underlying event itself and we'll propagate the
  5874. alt key modifier to the mouse event, resulting in the effect we want. It's nice
  5875. that JavaScript also gets to see the proper modifiers in the mouse event.
  5876. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
  5877. Added code to pass in an underlying event to dispatchSimulatedClick. After looking
  5878. at all the other callers, this seems to be the only one that needs to pass an
  5879. event that is currently passing 0. Also removed the code that only simulated a
  5880. click when the event has a PlatformKeyboardEvent -- no reason for that and it
  5881. prevented me from writing a layout test for the fix.
  5882. * dom/UIEventWithKeyState.h: Added findEventWithKeyState function that walks the
  5883. underlyingEvent chain to find the first event that has key state. This already
  5884. existed in WebKit, but I wanted to use it in dispatchSimulatedMouseEvent.
  5885. * dom/UIEventWithKeyState.cpp: Added.
  5886. * CMakeLists.txt: Added UIEventWithKeyState.cpp.
  5887. * WebCore.vcproj/WebCore/WebCore.vcproj: Added UIEventWithKeyState.cpp.
  5888. * WebCore.xcodeproj/project.pbxproj: Added UIEventWithKeyState.cpp.
  5889. * WebCoreSources.bkl: Added UIEventWithKeyState.cpp.
  5890. * WebCore.exp: Added findEventWithKeyState, used by WebKit.
  5891. 2006-12-04 Kevin McCullough <KMcCullough@apple.com>
  5892. Reviewed by Darin.
  5893. - rdar://problem/4833935
  5894. - removed the guards for the "multiple forms submission" issue, which may not be
  5895. an issue anymore and the guards prevent perfectly legitimate websites from
  5896. working correctly.
  5897. * bridge/mac/FrameMac.mm:
  5898. (WebCore::FrameMac::setView):
  5899. * bridge/mac/WebCoreAXObject.mm:
  5900. (-[WebCoreAXObject accessibilityPerformAction:]):
  5901. * bridge/win/FrameWin.cpp:
  5902. (WebCore::FrameWin::keyPress):
  5903. * config.h:
  5904. * loader/FrameLoader.cpp:
  5905. (WebCore::FrameLoader::submitForm):
  5906. * loader/FrameLoader.h:
  5907. * loader/mac/FrameLoaderMac.mm:
  5908. (WebCore::FrameLoader::receivedMainResourceError):
  5909. * loader/qt/FrameLoaderQt.cpp:
  5910. (WebCore::FrameLoader::submitForm):
  5911. * page/Frame.cpp:
  5912. (WebCore::Frame::setView):
  5913. * page/mac/EventHandlerMac.mm:
  5914. (WebCore::EventHandler::keyEvent):
  5915. (WebCore::EventHandler::mouseDown):
  5916. * platform/qt/FrameQt.cpp:
  5917. (WebCore::FrameQt::keyEvent):
  5918. 2006-12-02 Geoffrey Garen <ggaren@apple.com>
  5919. Reviewed by Darin Adler.
  5920. Added support for Dashboard backward compatibility mode.
  5921. * html/CanvasRenderingContext2D.cpp:
  5922. (WebCore::CanvasRenderingContext2D::stroke): Added support for old behavior
  5923. of automatically clearing the stroke path buffer after a call to stroke().
  5924. * html/HTMLCanvasElement.cpp: Added supoprt for old behavior of the canvas
  5925. tag being self-closing.
  5926. (WebCore::HTMLCanvasElement::endTagRequirement):
  5927. (WebCore::HTMLCanvasElement::tagPriority):
  5928. * html/HTMLCanvasElement.h:
  5929. * html/HTMLParser.cpp: Ditto.
  5930. (WebCore::HTMLParser::canvasCreateErrorCheck):
  5931. * xml/xmlhttprequest.cpp: Added support for old behavior of silently ignoring
  5932. a call to setRequestHeader() if it preceded a call to open() or followed a call
  5933. to send().
  5934. (WebCore::XMLHttpRequest::setRequestHeader):
  5935. 2006-12-04 Darin Adler <darin@apple.com>
  5936. Reviewed by Alice.
  5937. * bridge/EditorClient.h: Removed "_web_" prefix from
  5938. C++ userVisibleString member function. Alice will probably change
  5939. this so it's not on the editor client any more later.
  5940. * editing/Editor.h: Removed "_web_" prefix from
  5941. C++ userVisibleString member function.
  5942. * editing/Editor.cpp: Tweaked formatting a bit. Removed Mac-specific
  5943. code from this file.
  5944. * editing/mac/EditorMac.mm:
  5945. (WebCore::Editor::newGeneralClipboard): Removed unnneded local variable.
  5946. (WebCore::Editor::userVisibleString): Moved this function here.
  5947. * platform/Pasteboard.h: Added some FIXMEs. Removed unneeded includes.
  5948. Made Pasteboard noncopyable. Removed use of "protected" where we should
  5949. be using "private". Removed s_generalPasteboard.
  5950. * platform/mac/PasteboardMac.mm: Added some FIXMEs. Removed the
  5951. s_generalPasteboard global. Removed the unused destructor. Updated call
  5952. to userVisibleString for name change. Tweaked formatting.
  5953. 2006-12-04 Alice Liu <alice.liu@apple.com>
  5954. Reviewed by Oliver.
  5955. Moved some constants from EventHandlerMac.mm to EventHandler.cpp
  5956. Added some platform-specific data members and functions.
  5957. * page/EventHandler.cpp:
  5958. * page/EventHandler.h:
  5959. * page/mac/EventHandlerMac.mm:
  5960. * platform/PlatformMouseEvent.h:
  5961. (WebCore::):
  5962. (WebCore::PlatformMouseEvent::timestamp):
  5963. (WebCore::PlatformMouseEvent::activatedWebView):
  5964. (WebCore::PlatformMouseEvent::type):
  5965. 2006-12-04 Anders Carlsson <acarlsson@apple.com>
  5966. Reviewed by Darin, Geoff.
  5967. Get rid of ResourceHandle::kill(), all it did was to balance out a ref() in ResourceHandle::start().
  5968. We use RefPtrs to ResourceHandle instead.
  5969. * loader/icon/IconLoader.cpp:
  5970. (WebCore::IconLoader::~IconLoader):
  5971. (WebCore::IconLoader::stopLoading):
  5972. (WebCore::IconLoader::didReceiveResponse):
  5973. * loader/loader.cpp:
  5974. (WebCore::Loader::servePendingRequests):
  5975. (WebCore::Loader::cancelRequests):
  5976. (WebCore::Loader::jobForRequest):
  5977. * loader/loader.h:
  5978. * platform/network/ResourceHandle.cpp:
  5979. * platform/network/ResourceHandle.h:
  5980. * platform/network/mac/ResourceHandleMac.mm:
  5981. (WebCore::ResourceHandle::start):
  5982. (WebCore::ResourceHandle::finishJobAndHandle):
  5983. (WebCore::ResourceHandle::reportError):
  5984. * xml/xmlhttprequest.cpp:
  5985. (WebCore::XMLHttpRequest::abort):
  5986. (WebCore::XMLHttpRequest::didFinishLoading):
  5987. 2006-12-04 Oliver Hunt <oliver@apple.com>
  5988. Build fix for non-SVG builds
  5989. * bindings/js/JSSVGPoint.cpp:
  5990. (WebCore::JSSVGPointProtoFunc::callAsFunction):
  5991. 2006-12-04 Darin Adler <darin@apple.com>
  5992. Reviewed by Beth.
  5993. - fix http://bugs.webkit.org/show_bug.cgi?id=11632
  5994. AKA <rdar://problem/4858866> REGRESSION (r17770): Overflow areas' scrollbars don't work
  5995. No test case added at the moment, but Beth said she'd investigate
  5996. adding one after the fact.
  5997. * page/mac/EventHandlerMac.mm:
  5998. (WebCore::EventHandler::passMousePressEventToScrollbar):
  5999. Fix obvious-in-retrospect copy and paste error -- call
  6000. passMouseDownEventToWidget instead of passWheelEventToWidget.
  6001. 2006-12-04 Peter Kasting <pkasting@google.com>
  6002. Reviewed and landed by Alexey.
  6003. http://bugs.webkit.org/show_bug.cgi?id=11738:
  6004. Make link clicking work again on Windows.
  6005. This re-implements a few functions that used to be part of FrameWin in
  6006. their new loader-based locations, and copies a few things from the Mac
  6007. and Qt event handling code that aren't strictly necessary but are
  6008. pretty simple.
  6009. * WebCore.vcproj/WebCore/WebCore.vcproj:
  6010. * bridge/win/ChromeClientWin.h:
  6011. * bridge/win/ContextMenuClientWin.h:
  6012. * bridge/win/EditorClientWin.h:
  6013. * bridge/win/FrameWin.cpp:
  6014. (WebCore::FrameWin::client):
  6015. * bridge/win/FrameWin.h:
  6016. * loader/win/DocumentLoaderWin.cpp: Added.
  6017. (WebCore::DocumentLoader::setTitle):
  6018. * loader/win/FrameLoaderClientWin.cpp: Added.
  6019. (WebCore::FrameLoaderClientWin::userAgent):
  6020. * loader/win/FrameLoaderClientWin.h:
  6021. * loader/win/FrameLoaderWin.cpp: Added.
  6022. (WebCore::FrameLoader::urlSelected):
  6023. (WebCore::FrameLoader::submitForm):
  6024. (WebCore::FrameLoader::setTitle):
  6025. * page/win/EventHandlerWin.cpp: Added.
  6026. (WebCore::EventHandler::passMousePressEventToSubframe):
  6027. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  6028. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  6029. (WebCore::EventHandler::passWheelEventToSubframe):
  6030. (WebCore::EventHandler::passMousePressEventToScrollbar):
  6031. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  6032. * platform/win/TemporaryLinkStubs.cpp:
  6033. (WebCore::EventHandler::tabsToLinks):
  6034. (WebCore::EventHandler::tabsToAllControls):
  6035. (WebCore::EventHandler::lastEventIsMouseUp):
  6036. (WebCore::EventHandler::passSubframeEventToSubframe):
  6037. (WebCore::EventHandler::passMouseDownEventToWidget):
  6038. (WebCore::EventHandler::passWheelEventToWidget):
  6039. (WebCore::FrameLoader::getHistoryLength):
  6040. (WebCore::FrameLoader::historyURL):
  6041. (WebCore::FrameLoader::createFrame):
  6042. (WebCore::FrameLoaderClientWin::setTitle):
  6043. 2006-12-04 Peter Kasting <pkasting@google.com>
  6044. Reviewed by Mitz.
  6045. http://bugs.webkit.org/show_bug.cgi?id=11748:
  6046. Windows build bustage.
  6047. * WebCore.vcproj/WebCore/WebCore.vcproj:
  6048. * platform/ContextMenuItem.h:
  6049. * platform/win/TemporaryLinkStubs.cpp:
  6050. (WebCore::ContextMenuItem::ContextMenuItem):
  6051. (WebCore::ContextMenuItem::platformDescription):
  6052. (WebCore::ContextMenuItem::action):
  6053. (WebCore::ContextMenuItem::setAction):
  6054. (WebCore::ContextMenuItem::title):
  6055. (WebCore::ContextMenuItem::setTitle):
  6056. (WebCore::ContextMenuItem::platformSubMenu):
  6057. (WebCore::ContextMenuItem::setSubMenu):
  6058. 2006-12-04 John Sullivan <sullivan@apple.com>
  6059. Reviewed by Anders
  6060. Moved EditorMac.mm to its appropriate location
  6061. * platform/mac/EditorMac.mm: Removed.
  6062. * editing/mac/EditorMac.mm: Added
  6063. * WebCore.xcodeproj/project.pbxproj:
  6064. updated for this change
  6065. 2006-12-04 Rob Buis <buis@kde.org>
  6066. Reviewed by dhyatt.
  6067. Patch by pmax.
  6068. http://bugs.webkit.org/show_bug.cgi?id=3280
  6069. With LEGEND element, align=right value is not supported
  6070. http://bugs.webkit.org/show_bug.cgi?id=11544
  6071. <legend> rendering doesn't take align into account
  6072. Allow aligning for legends in both RTL and LTR mode.
  6073. * rendering/RenderFieldset.cpp:
  6074. (WebCore::RenderFieldset::layoutLegend):
  6075. 2006-12-03 Mark Rowe <bdash@webkit.org>
  6076. Reviewed by Alexey.
  6077. http://bugs.webkit.org/show_bug.cgi?id=11730
  6078. Bug 11730: Meta HTTP Refresh that contains a fraction / decimal get ignored.
  6079. * dom/Document.cpp:
  6080. (WebCore::Document::processHttpEquiv): Parse the refresh interval as a double rather than an integer.
  6081. 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
  6082. Reviewed by Oliver.
  6083. Fix following bugs:
  6084. http://bugs.webkit.org/show_bug.cgi?id=11734
  6085. http://bugs.webkit.org/show_bug.cgi?id=11685
  6086. SVGPoint/SVGRect/SVGNumber were missing put() support.
  6087. SVGPoint.matrixTransform() was missing.
  6088. In SVG DOM there are no cases where a readwrite property
  6089. exists of type SVGRect/SVGNumber/SVGPoint. Only function
  6090. calls returns instances of these objects. It would make
  6091. no sense to be able to write "someObj.getBbox().x = 100", and
  6092. modify the actual stored internal value of "someObj".
  6093. The only cases where these modification makes sense, is
  6094. when these SVGPoint/SVGRect/SVGNumber objects are created
  6095. via document.rootElement.createSVGPoint/Rect/Number (SVGSVGElement interface).
  6096. Result: The current implementation, where we just modify the stored FloatPoint/FloatRect/double
  6097. values in the JSSVGPoint/Rect/Number wrappers directly, is sufficient.
  6098. Patch created by Rob & me - co production.
  6099. Long live the great carto.next examples! :-)
  6100. * CMakeLists.txt:
  6101. * DerivedSources.make:
  6102. * bindings/js/JSSVGNumber.cpp:
  6103. (WebCore::):
  6104. (WebCore::JSSVGNumber::getOwnPropertySlot):
  6105. (WebCore::JSSVGNumber::getValueProperty):
  6106. (WebCore::JSSVGNumber::put):
  6107. (WebCore::JSSVGNumber::putValueProperty):
  6108. * bindings/js/JSSVGNumber.h:
  6109. (WebCore::JSSVGNumber::):
  6110. (WebCore::JSSVGNumber::impl):
  6111. * bindings/js/JSSVGPoint.cpp:
  6112. (WebCore::JSSVGPoint::JSSVGPoint):
  6113. (WebCore::JSSVGPoint::put):
  6114. (WebCore::JSSVGPoint::putValueProperty):
  6115. (WebCore::JSSVGPointProtoFunc::callAsFunction):
  6116. * bindings/js/JSSVGPoint.h:
  6117. (WebCore::JSSVGPoint::):
  6118. * bindings/js/JSSVGRect.cpp:
  6119. (WebCore::JSSVGRect::put):
  6120. (WebCore::JSSVGRect::putValueProperty):
  6121. * bindings/js/JSSVGRect.h:
  6122. * bindings/objc/DOMSVGPoint.mm:
  6123. (-[DOMSVGPoint matrixTransform:]):
  6124. * platform/graphics/FloatPoint.cpp:
  6125. (WebCore::FloatPoint::matrixTransform):
  6126. * platform/graphics/FloatPoint.h:
  6127. 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
  6128. Reviewed by Dave.
  6129. Another missing piece in the platform/graphics move.
  6130. * WebCore.xcodeproj/project.pbxproj:
  6131. * platform/ImageAnimationObserver.h: Moved to platform/graphics.
  6132. 2006-12-03 Rob Buis <buis@kde.org>
  6133. Reviewed by Oliver.
  6134. http://bugs.webkit.org/show_bug.cgi?id=11667
  6135. SVG: method .getTransformToElement(elt) in SVGLocatable not implemented
  6136. Implement getTransformToElement functionality. Introduce virtual
  6137. baseclass SVGLocatable to allow one implementation of the functionality.
  6138. Finally cleanup some code.
  6139. * ksvg2/svg/SVGLocatable.cpp:
  6140. (WebCore::SVGLocatable::getTransformToElement):
  6141. * ksvg2/svg/SVGLocatable.h:
  6142. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  6143. (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
  6144. (WebCore::SVGStyledLocatableElement::nearestViewportElement):
  6145. (WebCore::SVGStyledLocatableElement::farthestViewportElement):
  6146. (WebCore::SVGStyledLocatableElement::getCTM):
  6147. (WebCore::SVGStyledLocatableElement::getScreenCTM):
  6148. * ksvg2/svg/SVGStyledLocatableElement.h:
  6149. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  6150. (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
  6151. (WebCore::SVGStyledTransformableElement::localMatrix):
  6152. (WebCore::SVGStyledTransformableElement::getCTM):
  6153. (WebCore::SVGStyledTransformableElement::getScreenCTM):
  6154. (WebCore::SVGStyledTransformableElement::updateLocalTransform):
  6155. (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
  6156. (WebCore::SVGStyledTransformableElement::nearestViewportElement):
  6157. (WebCore::SVGStyledTransformableElement::farthestViewportElement):
  6158. * ksvg2/svg/SVGStyledTransformableElement.h:
  6159. * ksvg2/svg/SVGTextElement.h:
  6160. * ksvg2/svg/SVGTransformable.h:
  6161. 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
  6162. Reviewed by Rob.
  6163. Move some files around, which have been forgotton in the platform/graphics move.
  6164. * CMakeLists.txt:
  6165. * WebCore.xcodeproj/project.pbxproj:
  6166. * platform/mac/GraphicsContextMac.mm: Moved to platform/graphics/mac.
  6167. * platform/qt/GraphicsContextQt.cpp: Moved to platform/grahpics/qt.
  6168. 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
  6169. Reviewed by Mitz.
  6170. Fix non-svg build.
  6171. * platform/graphics/GraphicsContext.h:
  6172. * platform/mac/GraphicsContextMac.mm:
  6173. 2006-12-02 John Sullivan <sullivan@apple.com>
  6174. Reviewed by Tim Omernick
  6175. Removed a couple of big chunks of duplicated code from the spelling and grammar stuff by merging
  6176. the find-next-instance functions with the mark-all-instances functions.
  6177. * bridge/mac/FrameMac.mm:
  6178. (WebCore::findFirstMisspellingInRange):
  6179. added markAll parameter, and reworked loop so that if markAll parameter is true, this function loops
  6180. through the entire range and marks each misspelling
  6181. (WebCore::findFirstGrammarDetailInRange):
  6182. extracted from findFirstBadGrammarInRange; loops through the potentially-multiple details in a given
  6183. ungrammatical phrase (e.g., multiple grammar errors in one sentence). Has a markAll parameter akin
  6184. to the one in findFirstMisspellingInRange.
  6185. (WebCore::findFirstBadGrammarInRange):
  6186. added markAll parameter like the one in findFirstMisspellingInRange, and extracted findFirstGrammarDetailInRange
  6187. (WebCore::FrameMac::advanceToNextMisspelling):
  6188. pass "false" for new markAll parameters
  6189. (WebCore::markAllMisspellingsInRange):
  6190. now just calls findFirstMisspellingInRange with markAll = true, thus removing a big hunk of duplicated code
  6191. (WebCore::markAllBadGrammarInRange):
  6192. now just calls findFirstBadGrammarInRange with markAll = true, thus removing a big hunk of duplicated code
  6193. 2006-12-02 Mitz Pettel <mitz@webkit.org>
  6194. Reviewed by Hyatt.
  6195. - fix http://bugs.webkit.org/show_bug.cgi?id=11672
  6196. REGRESSION (r17068): Repro crash due to painting without layout
  6197. Test: fast/dynamic/containing-block-change.html
  6198. * rendering/RenderObject.cpp:
  6199. (WebCore::RenderObject::setStyle): Changed the logic used
  6200. to find absolutely positioned descendant's current containing block to
  6201. match the changes made to containingBlock() in the fix for bug 9347.
  6202. 2006-12-02 Darin Fisher <darin@chromium.org>
  6203. Reviewed by Darin.
  6204. http://bugs.webkit.org/show_bug.cgi?id=11709
  6205. DeprecatedString::format is broken on Windows
  6206. Use _vscprintf on Windows to compute the length of the buffer that
  6207. vsnprintf would need.
  6208. * platform/DeprecatedString.cpp:
  6209. (WebCore::DeprecatedString::format):
  6210. * platform/String.cpp:
  6211. (WebCore::String::format):
  6212. 2006-12-01 Beth Dakin <bdakin@apple.com>
  6213. Reviewed by Adam.
  6214. Support for sub-menus in WebCore context menus. This also re-
  6215. architects the ContextMenuItem class so that it is more like
  6216. ContextMenu in that the class is now really just a wrapper for the
  6217. platformDescription
  6218. * WebCore.exp:
  6219. * WebCore.xcodeproj/project.pbxproj:
  6220. * page/ContextMenuController.cpp:
  6221. (WebCore::ContextMenuController::contextMenuItemSelected): Add
  6222. place-holders for new tags for the sub-menu items. I will flesh
  6223. these out in a separate check-in.
  6224. * platform/ContextMenu.cpp:
  6225. (WebCore::createFontSubMenu):
  6226. (WebCore::createSpellingAndGrammarSubMenu):
  6227. (WebCore::createSpellingSubMenu):
  6228. (WebCore::createSpeechSubMenu):
  6229. (WebCore::createWritingDirectionSubMenu):
  6230. (WebCore::ContextMenu::populate): Call the above functions to add
  6231. the appropriate sub-menus to editing context menus.
  6232. * platform/ContextMenu.h:
  6233. * platform/ContextMenuItem.h:
  6234. (WebCore::): New tags in the ContextMenuAction enumeration.
  6235. (WebCore::ContextMenuItem::parentMenu):
  6236. (WebCore::ContextMenuItem::setType):
  6237. * platform/PlatformMenuDescription.h: Added. This defines
  6238. PlatformMenuDesciption. It needs to be its own header because we
  6239. have to include it from ContextMenu.h and ContextMenuItem.h
  6240. * platform/mac/ContextMenuItemMac.mm: Lots of adjustments here to
  6241. make this class basically just be a wrapper for NSMenuItem.
  6242. (WebCore::ContextMenuItem::ContextMenuItem):
  6243. (WebCore::ContextMenuItem::~ContextMenuItem):
  6244. (WebCore::ContextMenuItem::platformDescription):
  6245. (WebCore::ContextMenuItem::action):
  6246. (WebCore::ContextMenuItem::title):
  6247. (WebCore::ContextMenuItem::platformSubMenu):
  6248. (WebCore::ContextMenuItem::setAction):
  6249. (WebCore::ContextMenuItem::setTitle):
  6250. (WebCore::ContextMenuItem::setSubMenu):
  6251. * platform/mac/ContextMenuMac.mm:
  6252. (WebCore::ContextMenu::ContextMenu):
  6253. (WebCore::getNSMenuItem): Now we only have to get the
  6254. platformDescription of the ContextMenuItem and then set its target
  6255. and action.
  6256. (WebCore::ContextMenu::itemCount):
  6257. 2006-12-01 Kevin McCullough <KMcCullough@apple.com>
  6258. Reviewed by .
  6259. - accidentally checked in with previous checkin
  6260. * platform/qt/FrameQt.cpp:
  6261. (WebCore::FrameQt::keyEvent):
  6262. 2006-12-01 Kevin McCullough <KMcCullough@apple.com>
  6263. Reviewed by Adam.
  6264. - better solution to the ambiguous reference
  6265. * platform/Widget.h:
  6266. (WebCore::Widget::handleMouseMoveEvent):
  6267. (WebCore::Widget::handleMouseReleaseEvent):
  6268. * platform/qt/FrameQt.cpp:
  6269. (WebCore::FrameQt::keyEvent):
  6270. * platform/win/PlatformScrollBar.h:
  6271. * platform/win/TemporaryLinkStubs.cpp:
  6272. (WebCore::PlatformScrollbar::handleMouseMoveEvent):
  6273. (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
  6274. 2006-12-01 Justin Garcia <justin.garcia@apple.com>
  6275. Reviewed by john
  6276. <rdar://problem/4826940>
  6277. Selection change performed even when delete delegate replies NO (11415)
  6278. No layout test for the bug fix, because there's no way to register a custom
  6279. editing delegate from a layout test. Layout tests are effected by the change
  6280. to avoid sending unnecessary shouldChangeSelections, however.
  6281. * editing/Editor.cpp:
  6282. (WebCore::Editor::appliedEditing): Don't bother sending shouldChangeSelection
  6283. if the editing operation didn't change the selection. Still call
  6284. setSelection though, because it does work in this case that's necessary,
  6285. like clearing the typing style.
  6286. (WebCore::Editor::unappliedEditing): Ditto.
  6287. (WebCore::Editor::reappliedEditing): Ditto.
  6288. * editing/TypingCommand.cpp:
  6289. (WebCore::TypingCommand::deleteKeyPressed): Don't set the starting
  6290. selection if the editing delegate returns NO from shouldDeleteRange.
  6291. Notice we now call setStartingSelection in the case where
  6292. the current selection was a range selection. This is fine because
  6293. it's a no-op (the starting selection is already the current selection).
  6294. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  6295. 2006-12-01 John Sullivan <sullivan@apple.com>
  6296. Reviewed by Darin
  6297. Move subrange helper function from spellchecking code to TextIterator
  6298. * editing/TextIterator.h:
  6299. added TextIterator::subrange
  6300. * editing/TextIterator.cpp:
  6301. (WebCore::CharacterIterator::advance):
  6302. early return if count is <= 0; assert that it's not < 0
  6303. (WebCore::TextIterator::subrange):
  6304. new function, moved from FrameMac.mmm
  6305. * bridge/mac/FrameMac.mm:
  6306. moved subrange() function to TextIterator
  6307. (WebCore::FrameMac::advanceToNextMisspelling):
  6308. use TextIterator::subrange
  6309. (WebCore::markAllMisspellingsInRange):
  6310. ditto
  6311. (WebCore::markAllBadGrammarInRange):
  6312. ditto
  6313. 2006-12-01 Darin Adler <darin@apple.com>
  6314. Reviewed by Mitz.
  6315. - fix http://bugs.webkit.org/show_bug.cgi?id=11628
  6316. REGRESSION (r17597): Command-return in native text fields doesn't open a new tab or window
  6317. I couldn't think of an easy way to make a regression test for this, but maybe
  6318. I'll get an idea later about how to do it.
  6319. The main thing I did was add a concept of a DOM event having an "underlying event".
  6320. That allows the DOM activate event to contain inside it the original keyboard event
  6321. that triggered the form submission, and thus allows WebKit to see the modifier keys
  6322. from that original event. The code that uses the underlying event is in WebKit, but
  6323. the code to set it up is here in WebCore.
  6324. - also do some clean-up to related event handling code
  6325. * bindings/js/kjs_events.cpp: (KJS::DOMEvent::getValueProperty): Updated for the
  6326. name change of cancelBubble.
  6327. * dom/Event.h: Removed a useless comment. Fixed some whitespace and formatting.
  6328. Renamed getCancelBubble to cancelBubble to match the DOM -- I suspect the old
  6329. name predated the use of the m_ prefix on data members. Added the underlying event,
  6330. and a getter and setter.
  6331. * dom/Event.cpp:
  6332. (WebCore::Event::setTarget): Updated to take a PassRefPtr.
  6333. (WebCore::Event::setUnderlyingEvent): Added.
  6334. * dom/EventTargetNode.h: Added an optional underlyingEvent parameter to
  6335. dispatchUIEvent, one of the overloads of dispatchMouseEvent, and
  6336. dispatchSimulatedMouseEvent. Added a new dispatchSimulatedClick function here that
  6337. mostly replaces the click function in HTMLElement.
  6338. * dom/EventTargetNode.cpp:
  6339. (WebCore::EventTargetNode::dispatchGenericEvent): Updated for the name change
  6340. of cancelBubble.
  6341. (WebCore::EventTargetNode::dispatchUIEvent): Added an underlying event parameter,
  6342. which gets attached to the UIEvent object after it's created.
  6343. (WebCore::EventTargetNode::dispatchMouseEvent): Tweaked formatting and parameter
  6344. name for the version that creates a mouse event for a real platform mouse event.
  6345. Added an underlying event parameter to the main version, and attached it to all
  6346. three of the events that can be dispatched.
  6347. (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Added an underlying
  6348. event parameter, passed it along to dispatchMouseEvent.
  6349. (WebCore::EventTargetNode::dispatchSimulatedClick): Moved this here from HTMLElement
  6350. and renamed it from click. Added an underlyingEvent parameter, and passed that along
  6351. in all three of the calls to dispatchSimulatedMouseEvent.
  6352. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::shouldClose): Updated call to
  6353. setTarget that no longer needs a get().
  6354. * ksvg2/svg/SVGElement.cpp: (WebCore::SVGElement::sendSVGLoadEventIfPossible): Ditto.
  6355. * html/HTMLAnchorElement.cpp:
  6356. (WebCore::HTMLAnchorElement::defaultEventHandler): Converted a call to click
  6357. to a call to dispatchSimulatedClick.
  6358. (WebCore::HTMLAnchorElement::accessKeyAction): Ditto.
  6359. * html/HTMLButtonElement.cpp:
  6360. (WebCore::HTMLButtonElement::accessKeyAction): Ditto.
  6361. * html/HTMLElement.h: Removed the parameters to click and made it non-virtual.
  6362. We could move it down to the input and button elements, now that it's just
  6363. a single function call, but it's also OK to just leave it here.
  6364. * html/HTMLElement.cpp:
  6365. (WebCore::HTMLElement::click): Removed the parameters and changed this to just
  6366. call dispatchSimulatedClick. The real work is now in dispatchSimulatedClick.
  6367. (WebCore::HTMLElement::accessKeyAction): Converted a call to click to a call to
  6368. dispatchSimulatedClick.
  6369. * html/HTMLFormElement.cpp:
  6370. (WebCore::HTMLFormElement::submitClick): Ditto. But unlike accessKeyAction callers,
  6371. pass the event along as the underlying event.
  6372. * html/HTMLInputElement.h:
  6373. * html/HTMLInputElement.cpp: Removed override of virtual click function. The
  6374. special cases for the file control and hidden input elements aren't needed.
  6375. (WebCore::HTMLInputElement::accessKeyAction): Converted a call to click to a call to
  6376. dispatchSimulatedClick.
  6377. (WebCore::HTMLInputElement::defaultEventHandler): Converted calls to click to calls to
  6378. dispatchSimulatedClick, passing along the event as the underlying event.
  6379. * html/HTMLLabelElement.cpp:
  6380. (WebCore::HTMLLabelElement::defaultEventHandler): Converted a call to click to a call
  6381. to dispatchSimulatedClick, passing the event along as the underlying event. Also
  6382. changed the local variable for the element to a RefPtr since the code assumes it's
  6383. still around after calling arbitrary JavaScript code.
  6384. * html/HTMLSelectElement.cpp:
  6385. (WebCore::HTMLSelectElement::accessKeyAction): Converted a call to click to a call to
  6386. dispatchSimulatedClick.
  6387. * rendering/RenderFileUploadControl.h:
  6388. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::click):
  6389. Removed unneeded ignored parameter to the click function, and also made it non-virtual.
  6390. * loader/NavigationAction.h: Removed unneeded includes.
  6391. * loader/NavigationAction.cpp: Moved all the code here from NavigationActionMac.mm,
  6392. since none of it is Mac-specific any more.
  6393. * loader/mac/NavigationActionMac.mm: Removed.
  6394. * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
  6395. * ksvg2/svg/SVGAElement.cpp: Removed an unnecessary include.
  6396. * loader/FrameLoader.cpp: Added a newly-needed incluude.
  6397. * loader/mac/DocumentLoaderMac.mm: Ditto.
  6398. * loader/mac/FrameLoaderMac.mm: Ditto.
  6399. * rendering/RenderWidget.cpp: Ditto.
  6400. 2006-12-01 John Sullivan <sullivan@apple.com>
  6401. Reviewed by Darin
  6402. - fixed <rdar://problem/4811175> Many false reports of bad grammar appear, caused by
  6403. insufficient context passed to grammar checker
  6404. * bridge/mac/FrameMac.mm:
  6405. (WebCore::markAllMisspellingsInRange):
  6406. new function, extracted from markMisspellings -- ignores grammar
  6407. (WebCore::markAllBadGrammarInRange):
  6408. new function, extracted from markMisspellings -- ignores spelling, and operates on
  6409. appropriately-sized chunks of text
  6410. (WebCore::FrameMac::markMisspellings):
  6411. now calls markAllMisspellingsInRange and (optionally) markAllBadGrammarInRange rather
  6412. than trying to interweave the spelling and grammar logic
  6413. 2006-12-01 John Sullivan <sullivan@apple.com>
  6414. Reviewed by Darin
  6415. With these changes, grammar checking works correctly for the one-by-one case.
  6416. It still doesn't work correctly for the check-as-you-type case; I need to make these
  6417. same kinds of changes in markMisspellings, and refactor to share more code between
  6418. the two cases, but I wanted to get this working code in before modifying it further.
  6419. The major change here is that advanceToNextMisspelling used to look at small chunks of
  6420. text at a time, checking each one for both misspellings and questionable grammar. But
  6421. grammar checking needs at least paragraph-sized chunks of text to have enough context
  6422. to work correctly, so the old mechanism was causing many spurious complaints of bad
  6423. grammar (e.g., almost every word seemed to be at the start of a sentence so the checker
  6424. would complain about missing capitalization). So now the spell checker runs in the
  6425. specified range first. Then the grammar checker runs on the same range (stopping at the
  6426. next misspelling, if any), but expanded to paragraph-aligned boundaries.
  6427. * bridge/mac/FrameMac.mm:
  6428. (WebCore::findFirstMisspellingInRange):
  6429. new function, extracted from advanceToNextMisspelling, and ignores grammar
  6430. (WebCore::paragraphAlignedRangeForRange):
  6431. new function, used by findNextBadGrammarInRange
  6432. (WebCore::findFirstBadGrammarInRange):
  6433. new function, extracted from advanceToNextMisspelling, and rewritten to use paragraph-aligned
  6434. chunks, and ignores spelling
  6435. (WebCore::subrange):
  6436. new helper function, used by advanceToNextMisspelling
  6437. (WebCore::FrameMac::advanceToNextMisspelling):
  6438. now calls out to both findFirstMisspellingInRange and findFirstBadGrammarInRange separately
  6439. instead of trying to interweave the spelling and grammar logic
  6440. 2006-12-01 Peter Kasting <pkasting@google.com>
  6441. Reviewed by Mitz.
  6442. http://bugs.webkit.org/show_bug.cgi?id=11732:
  6443. Windows build bustage.
  6444. * WebCore.vcproj/WebCore/WebCore.vcproj:
  6445. * bridge/win/ChromeClientWin.h:
  6446. * bridge/win/ContextMenuClientWin.h:
  6447. * bridge/win/EditorClientWin.h:
  6448. * bridge/win/FrameWin.cpp:
  6449. (WebCore::FrameWin::FrameWin):
  6450. (WebCore::FrameWin::keyPress):
  6451. * bridge/win/FrameWin.h:
  6452. * loader/win/FrameLoaderClientWin.h:
  6453. * platform/ContextMenu.h:
  6454. * platform/Widget.h:
  6455. * platform/win/PlatformScrollBar.h:
  6456. * platform/win/TemporaryLinkStubs.cpp:
  6457. (WebCore::ChromeClientWin::chromeDestroyed):
  6458. (WebCore::ChromeClientWin::addMessageToConsole):
  6459. (WebCore::ContextMenu::ContextMenu):
  6460. (WebCore::ContextMenu::~ContextMenu):
  6461. (WebCore::ContextMenu::appendItem):
  6462. (WebCore::ContextMenuClientWin::contextMenuDestroyed):
  6463. (WebCore::ContextMenuClientWin::contextMenuItemSelected):
  6464. (WebCore::ContextMenuItem::~ContextMenuItem):
  6465. (WebCore::Editor::newGeneralClipboard):
  6466. (WebCore::EditorClientWin::pageDestroyed):
  6467. (WebCore::EditorClientWin::smartInsertDeleteEnabled):
  6468. (WebCore::EditorClientWin::shouldInsertNode):
  6469. (WebCore::FrameLoader::createPlugin):
  6470. (WebCore::FrameLoaderClientWin::frameLoaderDestroyed):
  6471. (WebCore::FrameLoaderClientWin::hasWebView):
  6472. (WebCore::FrameLoaderClientWin::canHandleRequest):
  6473. (WebCore::FrameWin::unfocusWindow):
  6474. (WebCore::FrameWin::bindingRootObject):
  6475. (WebCore::FrameWin::issueCopyCommand):
  6476. (WebCore::FrameWin::markMisspellings):
  6477. (WebCore::FrameWin::issueTransposeCommand):
  6478. (WebCore::FrameWin::markedTextRange):
  6479. (WebCore::FrameWin::respondToChangedSelection):
  6480. (WebCore::FrameWin::markMisspellingsInAdjacentWords):
  6481. (WebCore::FrameWin::isSelectionMisspelled):
  6482. (WebCore::FrameWin::guessesForMisspelledSelection):
  6483. (WebCore::Pasteboard::generalPasteboard):
  6484. (WebCore::Pasteboard::writeSelection):
  6485. (WebCore::Pasteboard::clearTypes):
  6486. (WebCore::Pasteboard::canSmartReplace):
  6487. (WebCore::Pasteboard::documentFragment):
  6488. (WebCore::Pasteboard::plainText):
  6489. (WebCore::Pasteboard::Pasteboard):
  6490. (WebCore::Pasteboard::~Pasteboard):
  6491. (WebCore::Pasteboard::registerSelectionPasteboardTypes):
  6492. (WebCore::Pasteboard::replaceNBSP):
  6493. (WebCore::Pasteboard::createHandle):
  6494. (WebCore::Pasteboard::createCF_HTMLFromRange):
  6495. 2006-11-30 Geoffrey Garen <ggaren@apple.com>
  6496. Rubber Stamped by Anders Carlsson.
  6497. Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
  6498. suggested a command, and conflicted with a different meaning for 'focusNode'
  6499. in the Mozilla selection API.
  6500. 2006-11-30 John Sullivan <sullivan@apple.com>
  6501. Reviewed by Justin
  6502. With Darin, fixed a problem in the Range constructors found while implementing grammar checking.
  6503. That revealed another problem in the layout tests involving bad parameters passed to the Range
  6504. constructors.
  6505. With these fixes in place, one layout test (editing/execCommand/create-list-from-range-selection.html)
  6506. no longer works as intended. This is apparently due to yet another bug being flushed out somewhere.
  6507. I'm going to update the results for that test and file a separate radar about it, which Justin will
  6508. investigate.
  6509. * dom/Position.h:
  6510. removed equivalentRangeCompliantPosition(), which was declared but not implemented or called.
  6511. * dom/Range.cpp:
  6512. (WebCore::Range::Range):
  6513. Call setStart and setEnd in the two Range constructors that take parameters, rather than just
  6514. directly setting the instance variables. This makes Range perform the boundary checks and
  6515. compensations that the DOM spec requires.
  6516. * editing/CompositeEditCommand.cpp:
  6517. (WebCore::CompositeEditCommand::moveParagraphs):
  6518. Use rangeCompliantEquivalent() on "editing-style" Positions before creating Ranges from them.
  6519. * editing/TextIterator.cpp:
  6520. (WebCore::TextIterator::TextIterator):
  6521. Assert that the boundary points of the range are valid.
  6522. 2006-11-30 Lou Amadio <lamadio@apple.com>
  6523. Reviewed by Dave Hyatt
  6524. Cleaned up generated files.
  6525. * html/HTMLElement.cpp:
  6526. (WebCore::HTMLElement::isRecognizedTagName):
  6527. Uses the new method for retrieving the list of supported tags
  6528. * ksvg2/scripts/make_names.pl:
  6529. Generates tag lists without using macros.
  6530. 2006-11-30 Adam Roben <aroben@apple.com>
  6531. Reviewed by Beth.
  6532. Store ContextMenu's NSMutableArray inside a RetainPtr so that we
  6533. will retain/release it correctly.
  6534. * WebCore.exp:
  6535. * platform/ContextMenu.cpp:
  6536. (WebCore::ContextMenu::populate): Added a FIXME.
  6537. * platform/ContextMenu.h:
  6538. * platform/mac/ContextMenuMac.mm:
  6539. (WebCore::ContextMenu::ContextMenu):
  6540. (WebCore::ContextMenu::~ContextMenu):
  6541. (WebCore::getNSMenuItem):
  6542. (WebCore::ContextMenu::appendItem):
  6543. (WebCore::ContextMenu::itemCount):
  6544. (WebCore::ContextMenu::insertItem):
  6545. (WebCore::ContextMenu::setPlatformDescription):
  6546. (WebCore::ContextMenu::platformDescription):
  6547. 2006-11-30 Nikolas Zimmermann <zimmermann@kde.org>
  6548. Reviewed by Eric. Rubber stamped by Oliver.
  6549. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10383
  6550. This is the final patch after the long "die kcanvas" journey.
  6551. All old kcanvas code is gone now, and properly integrated within
  6552. WebCore (stuff like GraphicsContext changes etc.). It shares
  6553. the platform/ design concept: no subclassing, but instead
  6554. implementing parts of the classes/methods per-platform.
  6555. This commit removes the last pieces: KRenderingDevice & KRenderingDeviceContext.
  6556. This layer was just obsolete, given the powerful GraphicsContext API we have
  6557. since quite a while now. All the ugly pushContext/popContext stuff is gone now.
  6558. LayoutTests affected: svg/W3C-SVG-1.1/pservers-grad-11-b.svg
  6559. Radial gradients as fill color for texts, work again!
  6560. Though "Gradient on text stroke" remains broken. Funny thing:
  6561. With this patch, if you "select" the text using the mouse, as
  6562. soon as the selection rectangle is drawn, you see the correct
  6563. gradient on stroke rendering - at least a hint where it breaks!
  6564. All svg layout tests have subtle text rendering changes - with and without this
  6565. patch, it seems it was forgotton to update svg pixel test baseline, a while ago.
  6566. * CMakeLists.txt:
  6567. * WebCore.xcodeproj/project.pbxproj:
  6568. * kcanvas/device/KRenderingDevice.cpp: Removed.
  6569. * kcanvas/device/KRenderingDevice.h: Removed.
  6570. * kcanvas/device/qt/KRenderingDeviceQt.cpp: Removed.
  6571. * kcanvas/device/qt/KRenderingDeviceQt.h: Removed.
  6572. * kcanvas/device/qt/RenderPathQt.cpp: Moved to platform/graphics/qt
  6573. * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Moved to platform/graphics/svg/cg/RenderPathCg.cpp
  6574. * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Removed.
  6575. * kcanvas/device/quartz/KRenderingDeviceQuartz.h: Removed.
  6576. * kcanvas/device/quartz/QuartzSupport.cpp: Moved to platform/graphics/svg/cg/CgSupport.cpp
  6577. * kcanvas/device/quartz/QuartzSupport.h: Moved to platform/graphics/svg/cg/CgSupport.h
  6578. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  6579. (WebCore::sharedSolidPaintServer):
  6580. * ksvg2/misc/KCanvasRenderingStyle.h:
  6581. * ksvg2/svg/SVGAElement.cpp:
  6582. * ksvg2/svg/SVGClipPathElement.cpp:
  6583. * ksvg2/svg/SVGFEBlendElement.cpp:
  6584. (WebCore::SVGFEBlendElement::filterEffect):
  6585. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  6586. (WebCore::SVGFEColorMatrixElement::filterEffect):
  6587. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  6588. (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
  6589. (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
  6590. (WebCore::SVGFEComponentTransferElement::filterEffect):
  6591. * ksvg2/svg/SVGFECompositeElement.cpp:
  6592. (WebCore::SVGFECompositeElement::SVGFECompositeElement):
  6593. (WebCore::SVGFECompositeElement::filterEffect):
  6594. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  6595. (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
  6596. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  6597. (WebCore::SVGFEDiffuseLightingElement::updateLights):
  6598. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  6599. (WebCore::SVGFEDisplacementMapElement::filterEffect):
  6600. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  6601. (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
  6602. (WebCore::SVGFEDistantLightElement::lightSource):
  6603. * ksvg2/svg/SVGFEFloodElement.cpp:
  6604. (WebCore::SVGFEFloodElement::SVGFEFloodElement):
  6605. (WebCore::SVGFEFloodElement::parseMappedAttribute):
  6606. (WebCore::SVGFEFloodElement::filterEffect):
  6607. * ksvg2/svg/SVGFEFuncAElement.cpp:
  6608. * ksvg2/svg/SVGFEFuncBElement.cpp:
  6609. * ksvg2/svg/SVGFEFuncGElement.cpp:
  6610. (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
  6611. * ksvg2/svg/SVGFEFuncRElement.cpp:
  6612. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  6613. (WebCore::SVGFEGaussianBlurElement::filterEffect):
  6614. * ksvg2/svg/SVGFEImageElement.cpp:
  6615. (WebCore::SVGFEImageElement::SVGFEImageElement):
  6616. (WebCore::SVGFEImageElement::parseMappedAttribute):
  6617. (WebCore::SVGFEImageElement::notifyFinished):
  6618. (WebCore::SVGFEImageElement::filterEffect):
  6619. * ksvg2/svg/SVGFELightElement.cpp:
  6620. * ksvg2/svg/SVGFEMergeElement.cpp:
  6621. (WebCore::SVGFEMergeElement::filterEffect):
  6622. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  6623. * ksvg2/svg/SVGFEOffsetElement.cpp:
  6624. (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
  6625. (WebCore::SVGFEOffsetElement::parseMappedAttribute):
  6626. (WebCore::SVGFEOffsetElement::filterEffect):
  6627. * ksvg2/svg/SVGFEPointLightElement.cpp:
  6628. (WebCore::SVGFEPointLightElement::lightSource):
  6629. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  6630. (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
  6631. (WebCore::SVGFESpecularLightingElement::filterEffect):
  6632. (WebCore::SVGFESpecularLightingElement::updateLights):
  6633. * ksvg2/svg/SVGFESpotLightElement.cpp:
  6634. (WebCore::SVGFESpotLightElement::SVGFESpotLightElement):
  6635. (WebCore::SVGFESpotLightElement::lightSource):
  6636. * ksvg2/svg/SVGFETileElement.cpp:
  6637. (WebCore::SVGFETileElement::SVGFETileElement):
  6638. (WebCore::SVGFETileElement::parseMappedAttribute):
  6639. (WebCore::SVGFETileElement::filterEffect):
  6640. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  6641. (WebCore::SVGFETurbulenceElement::filterEffect):
  6642. * ksvg2/svg/SVGFilterElement.cpp:
  6643. (WebCore::SVGFilterElement::canvasResource):
  6644. * ksvg2/svg/SVGGradientElement.cpp:
  6645. (WebCore::SVGGradientElement::canvasResource):
  6646. * ksvg2/svg/SVGLinearGradientElement.cpp:
  6647. * ksvg2/svg/SVGMarkerElement.cpp:
  6648. * ksvg2/svg/SVGMaskElement.cpp:
  6649. (WebCore::SVGMaskElement::parseMappedAttribute):
  6650. (WebCore::SVGMaskElement::drawMaskerContent):
  6651. (WebCore::SVGMaskElement::canvasResource):
  6652. * ksvg2/svg/SVGPatternElement.cpp:
  6653. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  6654. (WebCore::SVGPatternElement::canvasResource):
  6655. * ksvg2/svg/SVGStyledElement.cpp:
  6656. * ksvg2/svg/SVGStyledElement.h:
  6657. * platform/graphics/GraphicsContext.h:
  6658. * platform/graphics/svg/SVGPaintServer.h:
  6659. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  6660. (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
  6661. * platform/graphics/svg/SVGPaintServerGradient.h:
  6662. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  6663. * platform/graphics/svg/SVGPaintServerPattern.h:
  6664. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  6665. * platform/graphics/svg/SVGPaintServerSolid.h:
  6666. * platform/graphics/svg/SVGResource.cpp:
  6667. * platform/graphics/svg/SVGResource.h:
  6668. * platform/graphics/svg/SVGResourceClipper.h:
  6669. * platform/graphics/svg/SVGResourceFilter.h:
  6670. * platform/graphics/svg/SVGResourceMasker.h:
  6671. * platform/graphics/svg/cg/RenderPathCg.cpp: Added.
  6672. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  6673. (WebCore::SVGPaintServer::draw):
  6674. (WebCore::SVGPaintServer::teardown):
  6675. (WebCore::SVGPaintServer::renderPath):
  6676. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  6677. (WebCore::SVGPaintServerGradient::teardown):
  6678. (WebCore::SVGPaintServerGradient::renderPath):
  6679. (WebCore::SVGPaintServerGradient::setup):
  6680. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  6681. (WebCore::SVGPaintServerPattern::setup):
  6682. (WebCore::SVGPaintServerPattern::teardown):
  6683. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  6684. (WebCore::SVGPaintServerSolid::setup):
  6685. * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
  6686. (WebCore::SVGResourceClipper::applyClip):
  6687. * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
  6688. (WebCore::SVGResourceFilter::SVGResourceFilter):
  6689. (WebCore::SVGResourceFilter::createFilterEffect):
  6690. (WebCore::SVGResourceFilter::prepareFilter):
  6691. (WebCore::SVGResourceFilter::applyFilter):
  6692. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  6693. (WebCore::SVGResourceMasker::applyMask):
  6694. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
  6695. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  6696. (WebCore::SVGPaintServerLinearGradient::setup):
  6697. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
  6698. (WebCore::SVGPaintServerPattern::setup):
  6699. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  6700. (WebCore::SVGPaintServer::draw):
  6701. (WebCore::SVGPaintServer::teardown):
  6702. (WebCore::SVGPaintServer::renderPath):
  6703. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  6704. (WebCore::setup):
  6705. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
  6706. (WebCore::SVGPaintServerSolid::setup):
  6707. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  6708. (WebCore::SVGResourceClipper::applyClip):
  6709. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
  6710. (WebCore::SVGResourceFilter::createFilterEffect):
  6711. (WebCore::SVGResourceFilter::prepareFilter):
  6712. (WebCore::SVGResourceFilter::applyFilter):
  6713. * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
  6714. (WebCore::SVGResourceMasker::applyMask):
  6715. * platform/qt/GraphicsContextQt.cpp:
  6716. (WebCore::GraphicsContext::beginPath):
  6717. (WebCore::GraphicsContext::addPath):
  6718. (WebCore::GraphicsContext::setFillRule):
  6719. (WebCore::GraphicsContext::currentPath):
  6720. (WebCore::GraphicsContext::strokeRect):
  6721. (WebCore::contextForImage):
  6722. * rendering/RenderForeignObject.cpp:
  6723. (WebCore::RenderForeignObject::paint):
  6724. * rendering/RenderPath.cpp:
  6725. (WebCore::RenderPath::paint):
  6726. * rendering/RenderSVGContainer.cpp:
  6727. (WebCore::RenderSVGContainer::paint):
  6728. * rendering/RenderSVGImage.cpp:
  6729. (WebCore::RenderSVGImage::paint):
  6730. * rendering/RenderSVGImage.h:
  6731. * rendering/RenderSVGInline.cpp:
  6732. (WebCore::RenderSVGInline::RenderSVGInline):
  6733. (WebCore::RenderSVGInline::createInlineBox):
  6734. * rendering/RenderSVGInlineText.cpp:
  6735. (WebCore::RenderSVGInlineText::RenderSVGInlineText):
  6736. * rendering/RenderSVGTSpan.cpp:
  6737. (WebCore::RenderSVGTSpan::RenderSVGTSpan):
  6738. * rendering/RenderSVGText.cpp:
  6739. (WebCore::RenderSVGText::paint):
  6740. * rendering/SVGInlineFlowBox.cpp:
  6741. (WebCore::paintSVGInlineFlow):
  6742. * rendering/SVGRenderTreeAsText.cpp:
  6743. (WebCore::writeStyle):
  6744. 2006-11-30 Geoffrey Garen <ggaren@apple.com>
  6745. Reviewed by Beth Dakin.
  6746. Fixed up garbage collection at window close time.
  6747. * bindings/js/kjs_proxy.cpp: Don't garbage collect in the KJSProxy
  6748. destructor, since the global object hasn't been freed yet.
  6749. * bindings/js/kjs_proxy.h:
  6750. * loader/FrameLoader.cpp:
  6751. (WebCore::FrameLoader::detachFromParent): Made this function cross-
  6752. platform.
  6753. * loader/FrameLoader.h:
  6754. * loader/mac/FrameLoaderMac.mm:
  6755. (WebCore::FrameLoader::setTitle): Moved this function to FrameLoaderMac,
  6756. since it's Mac-only.
  6757. (WebCore::FrameLoader::closeBridge):
  6758. * page/Page.cpp:
  6759. (WebCore::Page::~Page): Don't garbage collect in the Page destructor,
  6760. since the Interpreter destructor will do it for us.
  6761. 2006-11-30 Brady Eidson <beidson@apple.com>
  6762. Reviewed by Tim's rubberstamp
  6763. Amazingly, DocumentLoader.h survived all this time without a header guard...
  6764. * loader/DocumentLoader.h: Added header guard
  6765. 2006-11-30 Timothy Hatcher <timothy@apple.com>
  6766. Reviewed by Brady and Eric.
  6767. XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
  6768. http://bugs.webkit.org/show_bug.cgi?id=11723
  6769. Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test,
  6770. tested in Safari's debug Snippet Editor.
  6771. * xml/xmlhttprequest.cpp:
  6772. (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
  6773. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  6774. Reviewed by Brady.
  6775. Get rid of PlatformResponse, the platform specific response object is stored inside of
  6776. the ResourceResponse object now. This also gets rid of receivedResponse in ResourceHandleClient.
  6777. * bridge/mac/WebCoreFrameBridge.mm:
  6778. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  6779. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  6780. * loader/CachedResource.cpp:
  6781. (WebCore::CachedResource::CachedResource):
  6782. (WebCore::CachedResource::~CachedResource):
  6783. * loader/CachedResource.h:
  6784. (WebCore::CachedResource::response):
  6785. * loader/loader.cpp:
  6786. * loader/loader.h:
  6787. * loader/mac/ImageDocumentMac.mm:
  6788. (WebCore::finishImageLoad):
  6789. * loader/mac/LoaderFunctionsMac.mm:
  6790. (WebCore::CheckCacheObjectStatus):
  6791. * loader/mac/SubresourceLoaderMac.mm:
  6792. (WebCore::SubresourceLoader::didReceiveResponse):
  6793. * platform/network/ResourceHandle.h:
  6794. * platform/network/ResourceResponse.h:
  6795. (WebCore::ResourceResponse::nsURLResponse):
  6796. (WebCore::ResourceResponse::cfURLResponse):
  6797. * platform/network/mac/ResourceHandleMac.mm:
  6798. (WebCore::ResourceHandle::didReceiveResponse):
  6799. 2006-11-29 Justin Garcia <justin.garcia@apple.com>
  6800. Reviewed by sullivan
  6801. <rdar://problem/4845371>
  6802. In Mail, a crash occurs at WebCore::Node::traverseNextNode() when cutting selected text from a HTML message
  6803. * editing/DeleteSelectionCommand.cpp:
  6804. (WebCore::DeleteSelectionCommand::initializeStartEnd): The start/end were
  6805. being inflated even when they were the start/end of a partially selected
  6806. special element.
  6807. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  6808. Reviewed by Oliver.
  6809. Fix fast/dom/xmlhttprequest-get layout test failure.
  6810. * platform/network/mac/ResourceResponseMac.mm:
  6811. Initialize the status code to 0 for non-http responses.
  6812. 2006-11-29 Geoffrey Garen <ggaren@apple.com>
  6813. Reviewed by Anders Carlsson.
  6814. Fixed http://bugs.webkit.org/show_bug.cgi?id=11712
  6815. REGRESSION: Crash when clicking JS link on crateandbarrel.com (window.open("http[...]"))
  6816. This was an accidental commit by Anders.
  6817. Chrome can't use the FrameView at window.open time, because it doesn't
  6818. exist yet.
  6819. * page/Chrome.cpp:
  6820. (WebCore::Chrome::pageRect):
  6821. 2006-11-29 Geoffrey Garen <ggaren@apple.com>
  6822. Reviewed by Mitz Pettel.
  6823. Fixed http://bugs.webkit.org/show_bug.cgi?id=11710
  6824. REGRESSION (r17906): Crash in WebCore::FrameMac
  6825. Added null checks for EditorClient, since it can be NULL when the page
  6826. has been destroyed. Removed external access to EditorClient, since it's
  6827. an implementation detail of the Editor.
  6828. No test case because this crash depends on window tear-down. Layout tests
  6829. pass.
  6830. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  6831. Fix build.
  6832. * platform/network/mac/ResourceHandleMac.mm:
  6833. (WebCore::ResourceHandle::receivedResponse):
  6834. Fix tyop.
  6835. 2006-11-29 Anders Carlsson <acarlsson@apple.com>
  6836. Reviewed by Darin.
  6837. Have ResourceResponse hold on to the platform object and do lazy
  6838. initialization of the data members.
  6839. * WebCore.xcodeproj/project.pbxproj:
  6840. * loader/mac/FrameLoaderMac.mm:
  6841. (WebCore::FrameLoader::loadResourceSynchronously):
  6842. * platform/network/ResourceRequest.cpp:
  6843. (WebCore::ResourceRequest::updatePlatformRequest):
  6844. (WebCore::ResourceRequest::updateResourceRequest):
  6845. * platform/network/ResourceResponse.cpp: Added.
  6846. (WebCore::ResourceResponse::url):
  6847. (WebCore::ResourceResponse::mimeType):
  6848. (WebCore::ResourceResponse::expectedContentLength):
  6849. (WebCore::ResourceResponse::textEncodingName):
  6850. (WebCore::ResourceResponse::suggestedFilename):
  6851. (WebCore::ResourceResponse::httpStatusCode):
  6852. (WebCore::ResourceResponse::setHTTPStatusCode):
  6853. (WebCore::ResourceResponse::httpStatusText):
  6854. (WebCore::ResourceResponse::setHTTPStatusText):
  6855. (WebCore::ResourceResponse::httpHeaderField):
  6856. (WebCore::ResourceResponse::httpHeaderFields):
  6857. (WebCore::ResourceResponse::setExpirationDate):
  6858. (WebCore::ResourceResponse::expirationDate):
  6859. (WebCore::ResourceResponse::setLastModifiedDate):
  6860. (WebCore::ResourceResponse::lastModifiedDate):
  6861. (WebCore::ResourceResponse::updateResourceResponse):
  6862. * platform/network/ResourceResponse.h:
  6863. (WebCore::ResourceResponse::ResourceResponse):
  6864. (WebCore::ResourceResponse::isMultipart):
  6865. * platform/network/mac/ResourceHandleMac.mm:
  6866. (WebCore::ResourceHandle::receivedResponse):
  6867. (WebCore::ResourceHandle::willSendRequest):
  6868. * platform/network/mac/ResourceResponseMac.h: Removed.
  6869. * platform/network/mac/ResourceResponseMac.mm:
  6870. (-[NSURLResponse WebCore]):
  6871. 2006-11-28 Alice Liu <alice.liu@apple.com>
  6872. Reviewed by Maciej.
  6873. A fix for a couple failing layout tests involving copy/cut in iframes.
  6874. * bridge/EditorClient.h:
  6875. Add frame parameter to dataForArchivedSelectionInFrame instead of
  6876. just getting the webview's selectedFrame.
  6877. * platform/mac/PasteboardMac.mm:
  6878. (Pasteboard::writeSelection):
  6879. Pass in the frame
  6880. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  6881. Reviewed by Beth Dakin.
  6882. Fixed <rdar://problem/4844855> Should clarify when to create clients in
  6883. the WebCore client API
  6884. All clients must now be supplied as constructor arguments. This clarifies
  6885. when you need to create clients, and also guarantees that objects can't
  6886. (for the most part) be in a clientless state.
  6887. Layout tests pass. No leaks reported.
  6888. * bridge/mac/WebCoreFrameBridge.mm: I had to move some initialization up into
  6889. WebKit to resolve circular dependencies at init time.
  6890. 2006-11-28 Adam Roben <aroben@apple.com>
  6891. Reviewed by Ada.
  6892. Add platform-specific constructor/destructor to ContextMenu so we can
  6893. properly retain/release the platform menu description.
  6894. * platform/ContextMenu.h:
  6895. (WebCore::ContextMenu::platformDescription):
  6896. * platform/mac/ContextMenuMac.mm:
  6897. (WebCore::ContextMenu::ContextMenu):
  6898. (WebCore::ContextMenu::~ContextMenu):
  6899. (WebCore::getNSMenuItem):
  6900. (WebCore::ContextMenu::appendItem):
  6901. (WebCore::ContextMenu::itemCount):
  6902. (WebCore::ContextMenu::insertItem):
  6903. (WebCore::ContextMenu::setPlatformDescription):
  6904. 2006-11-28 Adam Roben <aroben@apple.com>
  6905. Build fix.
  6906. * platform/network/mac/ResourceRequestMac.mm:
  6907. 2006-11-28 David Harrison <harrison@apple.com>
  6908. Reviewed by Adele.
  6909. <rdar://problem/4852804> selection color does not get drawn over the missing image rectangle
  6910. Test:
  6911. * editing/selection/select-missing-image.html: Added.
  6912. * rendering/RenderImage.cpp:
  6913. (WebCore::RenderImage::paint):
  6914. Draw the selection tint even if the image itself is not available.
  6915. 2006-11-28 Anders Carlsson <acarlsson@apple.com>
  6916. Reviewed by Maciej.
  6917. Have ResourceRequest hold on to the platform object so we don't
  6918. have to convert back and forth when nothing in the object changes.
  6919. * WebCore.exp:
  6920. * WebCore.xcodeproj/project.pbxproj:
  6921. * loader/mac/FrameLoaderMac.mm:
  6922. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  6923. * page/Chrome.cpp:
  6924. (WebCore::Chrome::pageRect):
  6925. * platform/network/ResourceRequest.cpp: Added.
  6926. (WebCore::ResourceRequest::isEmpty):
  6927. (WebCore::ResourceRequest::url):
  6928. (WebCore::ResourceRequest::setURL):
  6929. (WebCore::ResourceRequest::cachePolicy):
  6930. (WebCore::ResourceRequest::setCachePolicy):
  6931. (WebCore::ResourceRequest::timeoutInterval):
  6932. (WebCore::ResourceRequest::setTimeoutInterval):
  6933. (WebCore::ResourceRequest::mainDocumentURL):
  6934. (WebCore::ResourceRequest::setMainDocumentURL):
  6935. (WebCore::ResourceRequest::httpMethod):
  6936. (WebCore::ResourceRequest::setHTTPMethod):
  6937. (WebCore::ResourceRequest::httpHeaderFields):
  6938. (WebCore::ResourceRequest::httpHeaderField):
  6939. (WebCore::ResourceRequest::setHTTPHeaderField):
  6940. (WebCore::ResourceRequest::httpBody):
  6941. (WebCore::ResourceRequest::setHTTPBody):
  6942. (WebCore::ResourceRequest::allowHTTPCookies):
  6943. (WebCore::ResourceRequest::setAllowHTTPCookies):
  6944. (WebCore::ResourceRequest::updatePlatformRequest):
  6945. (WebCore::ResourceRequest::updateResourceRequest):
  6946. (WebCore::ResourceRequest::addHTTPHeaderField):
  6947. (WebCore::ResourceRequest::addHTTPHeaderFields):
  6948. * platform/network/ResourceRequest.h:
  6949. (WebCore::ResourceRequest::ResourceRequest):
  6950. * platform/network/mac/ResourceHandleMac.mm:
  6951. (WebCore::ResourceHandle::willSendRequest):
  6952. * platform/network/mac/ResourceRequestMac.h: Removed.
  6953. * platform/network/mac/ResourceRequestMac.mm:
  6954. (WebCore::ResourceRequest::nsURLRequest):
  6955. (WebCore::ResourceRequest::doUpdateResourceRequest):
  6956. (WebCore::ResourceRequest::doUpdatePlatformRequest):
  6957. 2006-11-28 Adam Roben <aroben@apple.com>
  6958. Reviewed by Beth.
  6959. More WebCore context menu work (still not turned on, however).
  6960. Split ContextMenuItem into its own files and make it a class.
  6961. * WebCore.exp: Updated symbols.
  6962. * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
  6963. * platform/ContextMenu.cpp:
  6964. (WebCore::ContextMenu::populate): Code cleanup.
  6965. * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
  6966. removed redundant "Menu" part of platformMenuDescription(),
  6967. setPlatformMenuDescription().
  6968. (WebCore::ContextMenu::ContextMenu):
  6969. (WebCore::ContextMenu::hitTestResult):
  6970. (WebCore::ContextMenu::platformDescription):
  6971. * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
  6972. full-fledged class.
  6973. (WebCore::):
  6974. (WebCore::ContextMenuItem::ContextMenuItem):
  6975. (WebCore::ContextMenuItem::menu):
  6976. (WebCore::ContextMenuItem::platformDescription):
  6977. (WebCore::ContextMenuItem::type):
  6978. (WebCore::ContextMenuItem::action):
  6979. (WebCore::ContextMenuItem::title):
  6980. * platform/mac/ContextMenuItemMac.mm: Added.
  6981. (WebCore::ContextMenuItem::ContextMenuItem):
  6982. * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
  6983. (-[MenuTarget forwardContextMenuAction:]):
  6984. (getNSMenuItem): Handle separator items.
  6985. (ContextMenu::appendItem):
  6986. (ContextMenu::itemCount):
  6987. (ContextMenu::insertItem):
  6988. (ContextMenu::setPlatformDescription):
  6989. * page/ContextMenuController.h: Updated declaration, added getter.
  6990. (WebCore::ContextMenuController::contextMenu):
  6991. Added some more context menu plumbing.
  6992. * dom/EventTargetNode.cpp:
  6993. (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
  6994. ContextMenuController when a context menu event is received.
  6995. * page/ContextMenuClient.h: New client method declaration.
  6996. * page/ContextMenuController.cpp:
  6997. (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
  6998. defaultHandled after handling it.
  6999. (WebCore::ContextMenuController::contextMenuItemSelected): Take a
  7000. ContextMenuItem instead of a separate action and title.
  7001. Changed event-handling methods to return bools to signify whether the
  7002. event was handled or not. This is needed so we can know whether to hand
  7003. the event off to the OS. Also restructured some code to use early
  7004. returns instead of nesting ifs.
  7005. * page/EventHandler.cpp:
  7006. (WebCore::EventHandler::handleMousePressEventDoubleClick):
  7007. (WebCore::EventHandler::handleMousePressEventTripleClick):
  7008. (WebCore::EventHandler::handleMousePressEventSingleClick):
  7009. (WebCore::EventHandler::handleMousePressEvent):
  7010. (WebCore::EventHandler::handleMouseMoveEvent):
  7011. (WebCore::EventHandler::handleMouseReleaseEvent):
  7012. (WebCore::EventHandler::handleMouseDoubleClickEvent):
  7013. (WebCore::EventHandler::handleWheelEvent):
  7014. (WebCore::EventHandler::canMouseDownStartSelect):
  7015. * page/EventHandler.h:
  7016. * page/FrameView.cpp:
  7017. (WebCore::FrameView::handleMouseMoveEvent):
  7018. (WebCore::FrameView::handleMouseReleaseEvent):
  7019. * page/FrameView.h:
  7020. * platform/ScrollBar.h: More bool return values.
  7021. (WebCore::Scrollbar::handleMouseMoveEvent):
  7022. (WebCore::Scrollbar::handleMouseOutEvent):
  7023. * platform/Widget.h: Ditto.
  7024. (WebCore::Widget::handleMouseMoveEvent):
  7025. (WebCore::Widget::handleMouseReleaseEvent):
  7026. Reverted the changes made in r17805 so that we can have fewer header
  7027. #includes.
  7028. * page/Page.cpp:
  7029. (WebCore::Page::Page):
  7030. * page/Page.h: Ditto.
  7031. (WebCore::Page::dragCaretController):
  7032. (WebCore::Page::chrome):
  7033. (WebCore::Page::contextMenuController):
  7034. 2006-11-28 Alice Liu <alice.liu@apple.com>
  7035. Reviewed by Justin and Adam.
  7036. All layout tests pass as they do without this patch
  7037. * WebCore.exp:
  7038. Exposed functions in Editor and removed functions in FrameMac due to changes in WebHTMLView.m
  7039. * WebCore.xcodeproj/project.pbxproj:
  7040. Added Pasteboard.h, PasteboardMac.mm, WebNSAttributedStringExtras.h&mm, EditorMac.mm
  7041. * bridge/EditorClient.h:
  7042. Added smartInsertDeleteEnabled and shouldInsertNode and some mac-specific functions
  7043. * bridge/mac/FrameMac.h:
  7044. * bridge/mac/FrameMac.mm:
  7045. Removed dispatchCPPEvent and [can|try]DHTML[cut|copy|paste] since the Editor's are called now
  7046. * dom/CharacterData.h:
  7047. (WebCore::CharacterData::isCharacterDataNode):
  7048. * dom/Node.h:
  7049. (WebCore::Node::isCharacterDataNode):
  7050. Added a type-identifying function to Node and the proper subclass
  7051. * dom/Clipboard.h:
  7052. Exposed setAccessPolicy as public
  7053. * editing/Editor.h:
  7054. * editing/Editor.cpp:
  7055. Implemented the following
  7056. (WebCore::Editor::canDHTMLCut):
  7057. (WebCore::Editor::canDHTMLCopy):
  7058. (WebCore::Editor::canDHTMLPaste):
  7059. (WebCore::Editor::canSmartCopyOrDelete):
  7060. (WebCore::Editor::deleteSelection):
  7061. (WebCore::Editor::pasteAsPlainTextWithPasteboard):
  7062. (WebCore::Editor::pasteWithPasteboard):
  7063. (WebCore::Editor::canSmartReplaceWithPasteboard):
  7064. (WebCore::Editor::shouldInsertFragment):
  7065. (WebCore::Editor::replaceSelectionWithFragment):
  7066. (WebCore::Editor::replaceSelectionWithText):
  7067. (WebCore::Editor::selectedRange):
  7068. (WebCore::Editor::shouldDeleteRange):
  7069. (WebCore::Editor::tryDHTMLCopy):
  7070. (WebCore::Editor::tryDHTMLCut):
  7071. (WebCore::Editor::tryDHTMLPaste):
  7072. (WebCore::Editor::writeSelectionToPasteboard):
  7073. (WebCore::Editor::dispatchCPPEvent):
  7074. (WebCore::Editor::cut):
  7075. (WebCore::Editor::copy):
  7076. (WebCore::Editor::paste):
  7077. * platform/mac/ClipboardAccessPolicy.h: Removed.
  7078. Not removed, but moved to dom/ClipboardAccessPolicy.h
  7079. * platform/mac/EditorMac.mm: Added.
  7080. (WebCore::Editor::newGeneralClipboard):
  7081. * platform/Pasteboard.h: Added.
  7082. * platform/mac/PasteboardMac.mm: Added.
  7083. The pasteboard class follows a singleton pattern
  7084. (Pasteboard::generalPasteboard):
  7085. (Pasteboard::~Pasteboard):
  7086. (Pasteboard::Pasteboard):
  7087. (Pasteboard::clearTypes):
  7088. (Pasteboard::writeSelection):
  7089. (Pasteboard::selectionPasteboardTypes):
  7090. (Pasteboard::canSmartReplace):
  7091. (Pasteboard::plainText):
  7092. (Pasteboard::documentFragment):
  7093. * platform/mac/WebNSAttributedStringExtras.h: Added.
  7094. * platform/mac/WebNSAttributedStringExtras.mm: Added.
  7095. Added select portions of this file from WebKit because the pasteboard needed the following function:
  7096. (-[NSAttributedString _web_attributedStringByStrippingAttachmentCharacters]):
  7097. 2006-11-28 Justin Garcia <justin.garcia@apple.com>
  7098. Reviewed by harrison
  7099. <rdar://problem/4397952>
  7100. Cannot select buttons at the end of a document, preventing copy/paste
  7101. There were no VisiblePositions before/after buttons because editingIgnoresContent
  7102. returned false for buttons.
  7103. * dom/Position.cpp:
  7104. (WebCore::Position::upstream): Fixed a comment.
  7105. (WebCore::Position::downstream): Ditto.
  7106. * editing/DeleteSelectionCommand.cpp:
  7107. (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
  7108. * editing/htmlediting.cpp:
  7109. (WebCore::editingIgnoresContent): It's unnecessary to prefer renderer
  7110. checks over tag name checks because it seems that a node of a tag name
  7111. that we do not ignore content for can't have a renderer of a type that we do.
  7112. (WebCore::canHaveChildrenForEditing): Added selects, buttons, applets, and embeds.
  7113. * editing/visible_units.cpp:
  7114. (WebCore::previousLinePosition): Migrate to enclosingBlock. Fixes a bug where the
  7115. caret would get stuck moving up/down a line from a caret just before an
  7116. input element.
  7117. (WebCore::nextLinePosition): Ditto.
  7118. 2006-11-28 Geoffrey Garen <ggaren@apple.com>
  7119. Reviewed by Adam.
  7120. Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref
  7121. calls cause .5% PLT regression.
  7122. Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
  7123. from the Frame to the Page, since it's only responsible for
  7124. Webview-level delegate calls.
  7125. I don't really love this design, but it fixes the regression and allows
  7126. a single WebKit object to implement multiple client interfaces.
  7127. Layout tests pass.
  7128. 2006-11-27 Anders Carlsson <acarlsson@apple.com>
  7129. Try fixing the build.
  7130. * platform/graphics/IntRect.cpp:
  7131. (WebCore::IntRect::IntRect):
  7132. 2006-11-27 Beth Dakin <bdakin@apple.com>
  7133. Reviewed by Adam.
  7134. Getting rid of some of the critical FIXMEs in ContextMenu.cpp.
  7135. * bridge/mac/FrameMac.h: Two new spell checker functions from
  7136. WebKit. (We will be able to delete the WebKit versions once we
  7137. switch over to WebCore context menus.)
  7138. * bridge/mac/FrameMac.mm:
  7139. (WebCore::FrameMac::isSelectionMisspelled):
  7140. (WebCore::core): Convert from NSArray of Strings to a Vector of
  7141. Strings.
  7142. (WebCore::FrameMac::guessesForMisspelledSelection):
  7143. * loader/FrameLoader.cpp:
  7144. (WebCore::FrameLoader::canHandleRequest):
  7145. * loader/FrameLoader.h: Make canHandleRequest available through the
  7146. FrameLoader.
  7147. * loader/FrameLoaderClient.h: canHandleRequest takes a
  7148. ResourceRequest instead of an NSURLRequest.
  7149. * loader/mac/FrameLoaderMac.mm:
  7150. (WebCore::FrameLoader::continueAfterNavigationPolicy): Same
  7151. * page/Frame.h: New spell checker functions moved to Frame. These
  7152. should be moved some place better some day, but FrameMac currently
  7153. seems to be the place to be for spell checker stuff.
  7154. * platform/ContextMenu.cpp:
  7155. (WebCore::ContextMenu::populate): Use new FrameLoader and spell
  7156. checking functionality to get rid of two if (true) statements. Also
  7157. add spelling guesses to the editing context menus.
  7158. 2006-11-27 Alexey Proskuryakov <ap@webkit.org>
  7159. Reviewed by Hyatt.
  7160. http://bugs.webkit.org/show_bug.cgi?id=11694
  7161. XSLT output method does not default to HTML when the target document is HTML
  7162. Test: fast/xsl/default-html.html
  7163. * xml/XSLTProcessor.cpp:
  7164. (WebCore::XSLTProcessor::transformToString): Make mimeType an input/output parameter,
  7165. serving as a hint when the stylesheet doesn't specify the output method.
  7166. (WebCore::XSLTProcessor::transformToFragment): Set mimeType to text/html if the target
  7167. document is HTML.
  7168. 2006-11-27 Oliver Hunt <oliver@apple.com>
  7169. Reviewed by Adam.
  7170. Fixes a crash in SVG caused by an attempt to
  7171. perform css overflow clipping by preventing
  7172. the css overflow clip from being set in SVG.
  7173. <rdar:/problems/4839568>
  7174. * WebCore.xcodeproj/project.pbxproj:
  7175. * rendering/RenderForeignObject.cpp:
  7176. (WebCore::RenderForeignObject::RenderForeignObject):
  7177. * rendering/RenderForeignObject.h:
  7178. * rendering/RenderSVGBlock.cpp: Added.
  7179. (WebCore::RenderSVGBlock::RenderSVGBlock):
  7180. (WebCore::RenderSVGBlock::setStyle):
  7181. * rendering/RenderSVGBlock.h: Added.
  7182. * rendering/RenderSVGText.cpp:
  7183. (WebCore::RenderSVGText::RenderSVGText):
  7184. * rendering/RenderSVGText.h:
  7185. 2006-11-27 Anders Carlsson <acarlsson@apple.com>
  7186. Reviewed by Adam.
  7187. Add an explicit IntRect constructor that takes a FloatRect.
  7188. * platform/graphics/IntRect.cpp:
  7189. (WebCore::IntRect::IntRect):
  7190. * platform/graphics/IntRect.h:
  7191. 2006-11-27 Ada Chan <adachan@apple.com>
  7192. Reviewed by Adam.
  7193. Moved WebCoreCache up to WebKit.
  7194. * WebCore.exp:
  7195. * WebCore.xcodeproj/project.pbxproj:
  7196. * bridge/mac/WebCoreCache.h: Removed.
  7197. * bridge/mac/WebCoreCache.mm: Removed.
  7198. 2006-11-27 Anders Carlsson <acarlsson@apple.com>
  7199. Reviewed by Adam.
  7200. Move addMessageToConsole to Chrome.
  7201. * bindings/js/kjs_events.cpp:
  7202. (KJS::JSAbstractEventListener::handleEvent):
  7203. * bindings/js/kjs_proxy.cpp:
  7204. (WebCore::KJSProxy::evaluate):
  7205. * bindings/js/kjs_window.cpp:
  7206. (KJS::Window::isSafeScript):
  7207. (KJS::ScheduledAction::execute):
  7208. * bridge/mac/FrameMac.h:
  7209. * bridge/mac/FrameMac.mm:
  7210. * bridge/mac/WebCoreFrameBridge.h:
  7211. * page/Chrome.cpp:
  7212. (WebCore::Chrome::addMessageToConsole):
  7213. * page/Chrome.h:
  7214. * page/ChromeClient.h:
  7215. * page/Frame.h:
  7216. 2006-11-27 Adele Peterson <adele@apple.com>
  7217. Reviewed by Hyatt.
  7218. - Fix for http://bugs.webkit.org/show_bug.cgi?id=8062
  7219. Caret color in new text field should take background color and foreground color into consideration
  7220. * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
  7221. Use the foreground color of the rootEditableElement to determine the caret color. This will work well for text controls in web pages (since the root is always the actual form control)
  7222. as well as in editable WebViews, like in Mail, which will just pick up the color from the body element.
  7223. 2006-11-26 Simon Hausmann <hausmann@kde.org>
  7224. Reviewed by Maciej.
  7225. http://bugs.webkit.org/show_bug.cgi?id=11693
  7226. Fix the Qt build, adapt to various enum/class renamings.
  7227. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  7228. (WebCore::KRenderingDeviceQt::createResource):
  7229. (WebCore::KRenderingDeviceQt::createPaintServer):
  7230. * kcanvas/device/qt/KRenderingDeviceQt.h:
  7231. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
  7232. (WebCore::SVGPaintServerLinearGradient::setup):
  7233. * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
  7234. (WebCore::SVGPaintServer::renderPath):
  7235. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
  7236. (WebCore::setup):
  7237. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
  7238. (WebCore::SVGPaintServerSolid::setup):
  7239. 2006-11-24 Rob Buis <buis@kde.org>
  7240. Reviewed by Mitz.
  7241. http://bugs.webkit.org/show_bug.cgi?id=11666
  7242. .getScreenCTM() returns wrong values
  7243. Take into account the local transform matrix too and
  7244. so fix getScreenCTM/getCTM for <text>.
  7245. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  7246. (SVGStyledTransformableElement::getCTM):
  7247. (SVGStyledTransformableElement::getScreenCTM):
  7248. * ksvg2/svg/SVGTextElement.cpp:
  7249. (WebCore::SVGTextElement::getScreenCTM):
  7250. (WebCore::SVGTextElement::getCTM):
  7251. * ksvg2/svg/SVGTransformable.cpp:
  7252. (WebCore::SVGTransformable::getCTM):
  7253. (WebCore::SVGTransformable::getScreenCTM):
  7254. * ksvg2/svg/SVGTransformable.h:
  7255. 2006-11-22 Rob Buis <buis@kde.org>
  7256. Reviewed by Eric.
  7257. http://bugs.webkit.org/show_bug.cgi?id=11661
  7258. SVG: stroke not sensitive to mouse events (hit testing fails)
  7259. Use mapAbsolutePointToLocal when hit-testing strokes.
  7260. * rendering/RenderPath.cpp:
  7261. (WebCore::RenderPath::fillContains):
  7262. (WebCore::RenderPath::nodeAtPoint):
  7263. 2006-11-21 Anders Carlsson <acarlsson@apple.com>
  7264. Reviewed by Mitz.
  7265. General SVG cleanup. Change some enums to match the style guidelines, use PLATFORM(CG) instead of PLATFORM(MAC).
  7266. Remove config.h inluce from AffineTransform.h
  7267. * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
  7268. (WebCore::KRenderingDeviceQuartz::createPaintServer):
  7269. (WebCore::KRenderingDeviceQuartz::createResource):
  7270. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  7271. (WebCore::sharedSolidPaintServer):
  7272. * ksvg2/svg/SVGFilterElement.cpp:
  7273. (WebCore::SVGFilterElement::canvasResource):
  7274. * ksvg2/svg/SVGLinearGradientElement.cpp:
  7275. (WebCore::SVGLinearGradientElement::buildGradient):
  7276. * ksvg2/svg/SVGLinearGradientElement.h:
  7277. (WebCore::SVGLinearGradientElement::gradientType):
  7278. * ksvg2/svg/SVGPatternElement.cpp:
  7279. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  7280. (WebCore::SVGPatternElement::canvasResource):
  7281. * ksvg2/svg/SVGRadialGradientElement.cpp:
  7282. (WebCore::SVGRadialGradientElement::buildGradient):
  7283. * ksvg2/svg/SVGRadialGradientElement.h:
  7284. (WebCore::SVGRadialGradientElement::gradientType):
  7285. * platform/graphics/AffineTransform.h:
  7286. * platform/graphics/svg/SVGPaintServer.h:
  7287. (WebCore::):
  7288. * platform/graphics/svg/SVGPaintServerGradient.cpp:
  7289. (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
  7290. (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
  7291. * platform/graphics/svg/SVGPaintServerGradient.h:
  7292. * platform/graphics/svg/SVGPaintServerLinearGradient.h:
  7293. (WebCore::SVGPaintServerLinearGradient::type):
  7294. * platform/graphics/svg/SVGPaintServerPattern.h:
  7295. (WebCore::SVGPaintServerPattern::type):
  7296. * platform/graphics/svg/SVGPaintServerRadialGradient.h:
  7297. (WebCore::SVGPaintServerRadialGradient::type):
  7298. * platform/graphics/svg/SVGPaintServerSolid.h:
  7299. (WebCore::SVGPaintServerSolid::type):
  7300. * platform/graphics/svg/SVGResource.h:
  7301. (WebCore::):
  7302. * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
  7303. (WebCore::SVGPaintServer::renderPath):
  7304. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
  7305. (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
  7306. (WebCore::SVGPaintServerGradient::teardown):
  7307. (WebCore::SVGPaintServerGradient::renderPath):
  7308. (WebCore::SVGPaintServerGradient::setup):
  7309. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
  7310. (WebCore::SVGPaintServerPattern::setup):
  7311. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
  7312. (WebCore::SVGPaintServerSolid::setup):
  7313. * rendering/RenderPath.cpp:
  7314. (WebCore::RenderPath::paint):
  7315. * rendering/SVGInlineFlowBox.cpp:
  7316. (WebCore::paintSVGInlineFlow):
  7317. 2006-11-21 Nikolas Zimmermann <zimmermann@kde.org>
  7318. Reviewed by Oliver.
  7319. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11658
  7320. Move KRenderingPaintServer* classes to the location
  7321. of all other resources (platform/graphics/svg).
  7322. Soon the whole platform/graphics/svg stuff will bemoved
  7323. into ksvg2/ itself, as discussed with Darin.
  7324. * CMakeLists.txt:
  7325. * WebCore.xcodeproj/project.pbxproj:
  7326. * kcanvas/device/KRenderingDevice.h:
  7327. * kcanvas/device/KRenderingPaintServer.h: Removed.
  7328. * kcanvas/device/KRenderingPaintServerGradient.cpp: Removed.
  7329. * kcanvas/device/KRenderingPaintServerGradient.h: Removed.
  7330. * kcanvas/device/KRenderingPaintServerPattern.cpp: Removed.
  7331. * kcanvas/device/KRenderingPaintServerPattern.h: Removed.
  7332. * kcanvas/device/KRenderingPaintServerSolid.cpp: Removed.
  7333. * kcanvas/device/KRenderingPaintServerSolid.h: Removed.
  7334. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp: Removed.
  7335. * kcanvas/device/qt/KRenderingPaintServerGradientQt.h: Removed.
  7336. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp: Removed.
  7337. * kcanvas/device/qt/KRenderingPaintServerPatternQt.h: Removed.
  7338. * kcanvas/device/qt/KRenderingPaintServerQt.cpp: Removed.
  7339. * kcanvas/device/qt/KRenderingPaintServerQt.h: Removed.
  7340. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp: Removed.
  7341. * kcanvas/device/qt/KRenderingPaintServerSolidQt.h: Removed.
  7342. * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
  7343. * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
  7344. (WebCore::KRenderingDeviceQuartz::createPaintServer):
  7345. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  7346. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Removed.
  7347. * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Removed.
  7348. * kcanvas/device/quartz/KRenderingPaintServerQuartz.h: Removed.
  7349. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  7350. (WebCore::sharedSolidPaintServer):
  7351. (WebCore::KSVGPainterFactory::fillPaintServer):
  7352. (WebCore::KSVGPainterFactory::strokePaintServer):
  7353. * ksvg2/misc/KCanvasRenderingStyle.h:
  7354. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  7355. * ksvg2/svg/SVGFEOffsetElement.cpp:
  7356. * ksvg2/svg/SVGGradientElement.cpp:
  7357. (WebCore::SVGGradientElement::canvasResource):
  7358. (WebCore::SVGGradientElement::resourceNotification):
  7359. (WebCore::SVGGradientElement::rebuildStops):
  7360. * ksvg2/svg/SVGGradientElement.h:
  7361. * ksvg2/svg/SVGLinearGradientElement.cpp:
  7362. (WebCore::SVGLinearGradientElement::buildGradient):
  7363. * ksvg2/svg/SVGLinearGradientElement.h:
  7364. (WebCore::SVGLinearGradientElement::gradientType):
  7365. * ksvg2/svg/SVGPatternElement.cpp:
  7366. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  7367. (WebCore::SVGPatternElement::canvasResource):
  7368. * ksvg2/svg/SVGPatternElement.h:
  7369. * ksvg2/svg/SVGRadialGradientElement.cpp:
  7370. (WebCore::SVGRadialGradientElement::buildGradient):
  7371. * ksvg2/svg/SVGRadialGradientElement.h:
  7372. (WebCore::SVGRadialGradientElement::gradientType):
  7373. * platform/graphics/svg/SVGPaintServer.cpp: Added.
  7374. (WebCore::SVGPaintServer::SVGPaintServer):
  7375. (WebCore::SVGPaintServer::~SVGPaintServer):
  7376. (WebCore::SVGPaintServer::activeClient):
  7377. (WebCore::SVGPaintServer::setActiveClient):
  7378. (WebCore::SVGPaintServer::isPaintingText):
  7379. (WebCore::SVGPaintServer::setPaintingText):
  7380. (WebCore::operator<<):
  7381. (WebCore::getPaintServerById):
  7382. * platform/graphics/svg/SVGPaintServer.h: Added.
  7383. (WebCore::):
  7384. (WebCore::SVGPaintServer::isPaintServer):
  7385. * platform/graphics/svg/SVGPaintServerGradient.cpp: Added.
  7386. (WebCore::compareStopOffset):
  7387. (WebCore::operator<<):
  7388. (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
  7389. (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
  7390. (WebCore::SVGPaintServerGradient::gradientStops):
  7391. (WebCore::SVGPaintServerGradient::setGradientStops):
  7392. (WebCore::SVGPaintServerGradient::spreadMethod):
  7393. (WebCore::SVGPaintServerGradient::setGradientSpreadMethod):
  7394. (WebCore::SVGPaintServerGradient::boundingBoxMode):
  7395. (WebCore::SVGPaintServerGradient::setBoundingBoxMode):
  7396. (WebCore::SVGPaintServerGradient::gradientTransform):
  7397. (WebCore::SVGPaintServerGradient::setGradientTransform):
  7398. (WebCore::SVGPaintServerGradient::listener):
  7399. (WebCore::SVGPaintServerGradient::setListener):
  7400. (WebCore::SVGPaintServerGradient::externalRepresentation):
  7401. * platform/graphics/svg/SVGPaintServerGradient.h: Added.
  7402. (WebCore::):
  7403. (WebCore::SVGPaintServerGradient::):
  7404. (WebCore::makeGradientStop):
  7405. * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Added.
  7406. (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
  7407. (WebCore::SVGPaintServerLinearGradient::~SVGPaintServerLinearGradient):
  7408. (WebCore::SVGPaintServerLinearGradient::gradientStart):
  7409. (WebCore::SVGPaintServerLinearGradient::setGradientStart):
  7410. (WebCore::SVGPaintServerLinearGradient::gradientEnd):
  7411. (WebCore::SVGPaintServerLinearGradient::setGradientEnd):
  7412. (WebCore::SVGPaintServerLinearGradient::externalRepresentation):
  7413. * platform/graphics/svg/SVGPaintServerLinearGradient.h: Added.
  7414. (WebCore::SVGPaintServerLinearGradient::type):
  7415. * platform/graphics/svg/SVGPaintServerPattern.cpp: Added.
  7416. (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
  7417. (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
  7418. (WebCore::SVGPaintServerPattern::bbox):
  7419. (WebCore::SVGPaintServerPattern::setBbox):
  7420. (WebCore::SVGPaintServerPattern::boundingBoxMode):
  7421. (WebCore::SVGPaintServerPattern::setBoundingBoxMode):
  7422. (WebCore::SVGPaintServerPattern::tile):
  7423. (WebCore::SVGPaintServerPattern::setTile):
  7424. (WebCore::SVGPaintServerPattern::patternTransform):
  7425. (WebCore::SVGPaintServerPattern::setPatternTransform):
  7426. (WebCore::SVGPaintServerPattern::listener):
  7427. (WebCore::SVGPaintServerPattern::setListener):
  7428. (WebCore::SVGPaintServerPattern::externalRepresentation):
  7429. * platform/graphics/svg/SVGPaintServerPattern.h: Added.
  7430. (WebCore::SVGPaintServerPattern::type):
  7431. * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Added.
  7432. (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
  7433. (WebCore::SVGPaintServerRadialGradient::~SVGPaintServerRadialGradient):
  7434. (WebCore::SVGPaintServerRadialGradient::gradientCenter):
  7435. (WebCore::SVGPaintServerRadialGradient::setGradientCenter):
  7436. (WebCore::SVGPaintServerRadialGradient::gradientFocal):
  7437. (WebCore::SVGPaintServerRadialGradient::setGradientFocal):
  7438. (WebCore::SVGPaintServerRadialGradient::gradientRadius):
  7439. (WebCore::SVGPaintServerRadialGradient::setGradientRadius):
  7440. (WebCore::SVGPaintServerRadialGradient::externalRepresentation):
  7441. * platform/graphics/svg/SVGPaintServerRadialGradient.h: Added.
  7442. (WebCore::SVGPaintServerRadialGradient::type):
  7443. * platform/graphics/svg/SVGPaintServerSolid.cpp: Added.
  7444. (WebCore::SVGPaintServerSolid::SVGPaintServerSolid):
  7445. (WebCore::SVGPaintServerSolid::~SVGPaintServerSolid):
  7446. (WebCore::SVGPaintServerSolid::color):
  7447. (WebCore::SVGPaintServerSolid::setColor):
  7448. (WebCore::SVGPaintServerSolid::externalRepresentation):
  7449. * platform/graphics/svg/SVGPaintServerSolid.h: Added.
  7450. (WebCore::SVGPaintServerSolid::type):
  7451. * platform/graphics/svg/SVGResource.cpp:
  7452. * platform/graphics/svg/SVGResource.h:
  7453. * platform/graphics/svg/SVGResourceClipper.cpp:
  7454. * platform/graphics/svg/SVGResourceMarker.cpp:
  7455. * platform/graphics/svg/SVGResourceMasker.cpp:
  7456. * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Added.
  7457. (WebCore::SVGPaintServer::draw):
  7458. (WebCore::SVGPaintServer::teardown):
  7459. (WebCore::SVGPaintServer::renderPath):
  7460. (WebCore::SVGPaintServer::strokePath):
  7461. (WebCore::SVGPaintServer::clipToStrokePath):
  7462. (WebCore::SVGPaintServer::fillPath):
  7463. (WebCore::SVGPaintServer::clipToFillPath):
  7464. * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Added.
  7465. (WebCore::cgGradientCallback):
  7466. (WebCore::CGShadingRefForLinearGradient):
  7467. (WebCore::CGShadingRefForRadialGradient):
  7468. (WebCore::SVGPaintServerGradient::invalidateCaches):
  7469. (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
  7470. (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
  7471. (WebCore::SVGPaintServerGradient::teardown):
  7472. (WebCore::SVGPaintServerGradient::renderPath):
  7473. (WebCore::SVGPaintServerGradient::setup):
  7474. (WebCore::SVGPaintServerGradient::invalidate):
  7475. * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Added.
  7476. (WebCore::patternCallback):
  7477. (WebCore::SVGPaintServerPattern::setup):
  7478. (WebCore::SVGPaintServerPattern::teardown):
  7479. * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Added.
  7480. (WebCore::SVGPaintServerSolid::setup):
  7481. * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Added.
  7482. (WebCore::SVGPaintServerGradient::fillColorArray):
  7483. * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Added.
  7484. (WebCore::SVGPaintServerLinearGradient::setup):
  7485. * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Added.
  7486. (WebCore::SVGPaintServerPattern::setup):
  7487. * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Added.
  7488. (WebCore::SVGPaintServer::setPenProperties):
  7489. (WebCore::SVGPaintServer::draw):
  7490. (WebCore::SVGPaintServer::teardown):
  7491. (WebCore::SVGPaintServer::renderPath):
  7492. * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Added.
  7493. (WebCore::setup):
  7494. * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Added.
  7495. (WebCore::SVGPaintServerSolid::setup):
  7496. * rendering/RenderPath.cpp:
  7497. (WebCore::RenderPath::paint):
  7498. * rendering/SVGInlineFlowBox.cpp:
  7499. (WebCore::paintSVGInlineFlow):
  7500. * rendering/SVGRenderTreeAsText.cpp:
  7501. (WebCore::writeStyle):
  7502. (WebCore::writeRenderResources):
  7503. 2006-11-21 Alex Taylor <darwin@techvisual.co.nz>
  7504. Reviewed by Mitz.
  7505. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
  7506. Adds calculations for bottom right radius's position
  7507. which was being drawn incorrectly.
  7508. * rendering/RenderObject.cpp:
  7509. (WebCore::RenderObject::paintBorder):
  7510. 2006-11-20 Rob Buis <buis@kde.org>
  7511. Reviewed by Maciej.
  7512. http://bugs.webkit.org/show_bug.cgi?id=11519
  7513. REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
  7514. Transport disabled state from DOM element to the shadow
  7515. DOM/render object.
  7516. * rendering/RenderFileUploadControl.cpp:
  7517. (WebCore::RenderFileUploadControl::updateFromElement):
  7518. * rendering/RenderTheme.h:
  7519. 2006-11-20 Anders Carlsson <acarlsson@apple.com>
  7520. Reviewed by Maciej.
  7521. * loader/TextResourceDecoder.cpp:
  7522. (WebCore::findXMLEncoding):
  7523. Use CString instead of DeprecatedCString.
  7524. * platform/CString.cpp:
  7525. (WebCore::CString::find):
  7526. * platform/CString.h:
  7527. (WebCore::CString::data):
  7528. Add find method, make data method inline.
  7529. * platform/TextStream.cpp:
  7530. * platform/TextStream.h:
  7531. Remove DeprecatedCString functions.
  7532. 2006-11-20 Anders Carlsson <acarlsson@apple.com>
  7533. Reviewed by Maciej.
  7534. Use CString instead of DeprecatedCString.
  7535. * html/FormDataList.cpp:
  7536. (WebCore::FormDataList::appendString):
  7537. (WebCore::fixLineBreaks):
  7538. (WebCore::FormDataList::appendFile):
  7539. 2006-11-20 Samuel Weinig <sam@webkit.org>
  7540. Reviewed by Alexey.
  7541. Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
  7542. Fix Windows build
  7543. * WebCore.vcproj/WebCore/WebCore.vcproj:
  7544. * bridge/win/ContextMenuClientWin.h:
  7545. * bridge/win/EditorClientWin.h:
  7546. * bridge/win/FrameWin.h:
  7547. * platform/win/TemporaryLinkStubs.cpp:
  7548. (WebCore::ContextMenu::show):
  7549. (WebCore::ContextMenuClientWin::copyLinkToClipboard):
  7550. (WebCore::ContextMenuClientWin::downloadURL):
  7551. (WebCore::ContextMenuClientWin::copyImageToClipboard):
  7552. (WebCore::ContextMenuClientWin::lookUpInDictionary):
  7553. (WebCore::EditorClientWin::shouldInsertText):
  7554. (WebCore::FrameLoader::reload):
  7555. (WebCore::FrameWin::ignoreSpelling):
  7556. (WebCore::FrameWin::learnSpelling):
  7557. 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
  7558. Reviewed by Maciej.
  7559. http://bugs.webkit.org/show_bug.cgi?id=10736
  7560. XMLHttpRequest.responseXML should be null on error
  7561. * dom/XMLTokenizer.cpp:
  7562. (WebCore::XMLTokenizer::wellFormed):
  7563. * dom/XMLTokenizer.h:
  7564. (WebCore::Tokenizer::wellFormed):
  7565. * dom/Document.cpp:
  7566. (WebCore::Document::Document):
  7567. (WebCore::Document::implicitClose):
  7568. * dom/Document.h:
  7569. (WebCore::Document::wellFormed):
  7570. Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
  7571. * xml/xmlhttprequest.cpp:
  7572. (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
  7573. 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
  7574. Reviewed by Sam Weinig.
  7575. http://bugs.webkit.org/show_bug.cgi?id=11633
  7576. Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
  7577. * dom/Document.cpp:
  7578. (WebCore::Document::Document):
  7579. (WebCore::Document::setXMLVersion):
  7580. (WebCore::Document::setXMLStandalone):
  7581. * dom/Document.h:
  7582. (WebCore::Document::xmlEncoding):
  7583. (WebCore::Document::xmlVersion):
  7584. (WebCore::Document::xmlStandalone):
  7585. (WebCore::Document::setXMLEncoding):
  7586. * dom/Document.idl:
  7587. * dom/XMLTokenizer.cpp:
  7588. (WebCore::XMLTokenizer::startDocument):
  7589. (WebCore::startDocumentHandler):
  7590. (WebCore::XMLTokenizer::initializeParserContext):
  7591. Added support for these properties, getting them from an libxml2 context.
  7592. * html/HTMLDocument.cpp:
  7593. (WebCore::HTMLDocument::HTMLDocument):
  7594. HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
  7595. * bindings/scripts/CodeGeneratorJS.pm:
  7596. * bindings/scripts/CodeGeneratorObjC.pm:
  7597. Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
  7598. 2006-11-20 Nikolas Zimmermann <zimmermann@kde.org>
  7599. Reviewed by Rob.
  7600. Fix Qt/Linux build.
  7601. * platform/qt/ContextMenuClientQt.cpp:
  7602. (WebCore::ContextMenuClientQt::ref):
  7603. (WebCore::ContextMenuClientQt::deref):
  7604. (WebCore::ContextMenuClientQt::copyLinkToClipboard):
  7605. (WebCore::ContextMenuClientQt::downloadURL):
  7606. (WebCore::ContextMenuClientQt::copyImageToClipboard):
  7607. (WebCore::ContextMenuClientQt::lookUpInDictionary):
  7608. * platform/qt/ContextMenuClientQt.h:
  7609. * platform/qt/ContextMenuQt.cpp:
  7610. (WebCore::ContextMenu::appendItem):
  7611. (WebCore::ContextMenu::show):
  7612. (WebCore::ContextMenu::itemCount):
  7613. (WebCore::ContextMenu::insertItem):
  7614. * platform/qt/EditorClientQt.cpp:
  7615. (WebCore::EditorClientQt::shouldInsertText):
  7616. * platform/qt/EditorClientQt.h:
  7617. * platform/qt/FrameQt.cpp:
  7618. (WebCore::FrameQt::ignoreSpelling):
  7619. (WebCore::FrameQt::learnSpelling):
  7620. * platform/qt/FrameQt.h:
  7621. * platform/qt/TemporaryLinkStubs.cpp:
  7622. (FrameLoader::reload):
  7623. 2006-11-20 Samuel Weinig <sam@webkit.org>
  7624. Reviewed by Maciej.
  7625. Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
  7626. Fix Win32 build
  7627. * config.h: add #define NOMINMAX for windows build
  7628. * platform/win/FontCacheWin.cpp:
  7629. (WebCore::FontCache::createFontPlatformData):
  7630. * platform/win/TemporaryLinkStubs.cpp: add definitions for
  7631. new cursors.
  7632. (WebCore::aliasCursor):
  7633. (WebCore::noDropCursor):
  7634. (WebCore::progressCursor):
  7635. 2006-11-19 Beth Dakin <bdakin@apple.com>
  7636. Reviewed by Adam.
  7637. Implementation of actions for the new context menus.
  7638. * WebCore.exp:
  7639. * WebCore.xcodeproj/project.pbxproj:
  7640. * bridge/EditorClient.h: Declaration of shouldInsertText.
  7641. * bridge/mac/FrameMac.h: Two new spelling functions.
  7642. * bridge/mac/FrameMac.mm:
  7643. (WebCore::FrameMac::ignoreSpelling):
  7644. (WebCore::FrameMac::learnSpelling):
  7645. * editing/Editor.cpp:
  7646. (WebCore::Editor::shouldInsertText): Call into the client.
  7647. * editing/Editor.h:
  7648. * editing/EditorInsertAction.h: Added.
  7649. (WebCore::): The WebCore equivalent of WebViewInsertAction. This is
  7650. defined in its own header so that we can use it from Editor.h and
  7651. EditorClient.h without having one of the above include the other.
  7652. * page/ContextMenuClient.h: A few currently WebKit-implemented
  7653. function needed for menu actions.
  7654. * page/ContextMenuController.cpp:
  7655. (WebCore::makeGoogleSearchURL):
  7656. (WebCore::ContextMenuController::contextMenuActionSelected): The
  7657. actions!
  7658. * page/ContextMenuController.h:
  7659. * page/Frame.h: New pure-virtual spelling functions.
  7660. * platform/ContextMenu.cpp:
  7661. (WebCore::ContextMenu::controller): Get the controller from the
  7662. menu.
  7663. * platform/ContextMenu.h:
  7664. * platform/mac/ContextMenuMac.mm:
  7665. (-[MenuTarget
  7666. forwardContextMenuAction:initWithContextMenuController:WebCore::]):
  7667. Use the controller instead of the menu
  7668. (-[MenuTarget WebCore::]):
  7669. (-[MenuTarget setMenuController:WebCore::]):
  7670. (-[MenuTarget forwardContextMenuAction:]):
  7671. (getNSMenuItem):
  7672. (ContextMenu::show):
  7673. (ContextMenu::hide):
  7674. 2006-11-19 Simon Hausmann <hausmann@kde.org>
  7675. Reviewed by Zack.
  7676. http://bugs.webkit.org/show_bug.cgi?id=11649
  7677. Fix CMake files for Qt-only build without KDE cmake files.
  7678. Fix Qt/KDE build for the SVG support.
  7679. Fix Qt-only build in the resource handler.
  7680. * CMakeLists.txt:
  7681. * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
  7682. (WebCore::SVGResourceFilter::SVGResourceFilter):
  7683. (WebCore::SVGResourceFilter::~SVGResourceFilter):
  7684. (WebCore::SVGResourceFilter::prepareFilter):
  7685. (WebCore::SVGResourceFilter::applyFilter):
  7686. * platform/network/qt/ResourceHandleManager.cpp:
  7687. (WebCore::ResourceHandleManager::cancel):
  7688. (WebCore::ResourceHandleManager::slotData):
  7689. (WebCore::ResourceHandleManager::slotMimetype):
  7690. (WebCore::ResourceHandleManager::slotResult):
  7691. (WebCore::ResourceHandleManager::deliverJobData):
  7692. * platform/network/qt/ResourceHandleManager.h:
  7693. * platform/network/qt/ResourceHandleQt.cpp:
  7694. * platform/qt/CursorQt.cpp:
  7695. (WebCore::noDropCursor):
  7696. (WebCore::progressCursor):
  7697. (WebCore::aliasCursor):
  7698. 2006-11-19 Mitz Pettel <mitz@webkit.org>
  7699. Reviewed by Maciej.
  7700. - http://bugs.webkit.org/show_bug.cgi?id=11626
  7701. Automate test for rdar://problem/4056100
  7702. * manual-tests/delete-into-nested-block.html: Removed.
  7703. 2006-11-19 Nikolas Zimmermann <zimmermann@kde.org>
  7704. Reviewed by Oliver.
  7705. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
  7706. Split up KCanvasFilters & KCanvasFilterQuartz into several
  7707. new classes (SVGFEBlend, SVGFEComposite...) and move them
  7708. into platform/graphics/svg. This is still a temporary location,
  7709. as discussed with Darin; the whole platform/graphics/svg directory
  7710. will probably be moved into ksvg2/ in near future.
  7711. This finally removes the duplicated enumerations in the svg filter
  7712. classes and within kcanvas. ksvg2/ and platform/graphics/svg share
  7713. their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
  7714. is empty.
  7715. * CMakeLists.txt:
  7716. * WebCore.xcodeproj/project.pbxproj:
  7717. * bindings/scripts/CodeGeneratorJS.pm:
  7718. * kcanvas/KCanvasFilters.cpp: Removed.
  7719. * kcanvas/KCanvasFilters.h: Removed.
  7720. * kcanvas/device/KRenderingDevice.h:
  7721. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  7722. (WebCore::KRenderingDeviceQt::createFilterEffect):
  7723. * kcanvas/device/qt/KRenderingDeviceQt.h:
  7724. * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
  7725. * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
  7726. * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
  7727. * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
  7728. (WebCore::KRenderingDeviceQuartz::createResource):
  7729. (WebCore::KRenderingDeviceQuartz::createFilterEffect):
  7730. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  7731. * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
  7732. * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
  7733. * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
  7734. * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
  7735. * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
  7736. * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
  7737. * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
  7738. * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
  7739. * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
  7740. * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
  7741. * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
  7742. * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
  7743. * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
  7744. * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
  7745. * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
  7746. * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
  7747. * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
  7748. * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
  7749. * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
  7750. * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
  7751. * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
  7752. * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
  7753. * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
  7754. * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
  7755. * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
  7756. * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
  7757. * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
  7758. * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
  7759. * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
  7760. * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
  7761. * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
  7762. * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
  7763. * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
  7764. * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
  7765. * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
  7766. * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
  7767. * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
  7768. * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
  7769. * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
  7770. * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
  7771. * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
  7772. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  7773. (WebCore::SVGComponentTransferFunctionElement::transferFunction):
  7774. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  7775. * ksvg2/svg/SVGFEBlendElement.cpp:
  7776. (WebCore::SVGFEBlendElement::filterEffect):
  7777. * ksvg2/svg/SVGFEBlendElement.h:
  7778. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  7779. (WebCore::SVGFEColorMatrixElement::filterEffect):
  7780. * ksvg2/svg/SVGFEColorMatrixElement.h:
  7781. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  7782. (WebCore::SVGFEComponentTransferElement::filterEffect):
  7783. * ksvg2/svg/SVGFEComponentTransferElement.h:
  7784. * ksvg2/svg/SVGFECompositeElement.cpp:
  7785. (WebCore::SVGFECompositeElement::filterEffect):
  7786. * ksvg2/svg/SVGFECompositeElement.h:
  7787. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  7788. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  7789. (WebCore::SVGFEDiffuseLightingElement::updateLights):
  7790. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  7791. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  7792. (WebCore::SVGFEDisplacementMapElement::stringToChannel):
  7793. (WebCore::SVGFEDisplacementMapElement::filterEffect):
  7794. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  7795. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  7796. (WebCore::SVGFEDistantLightElement::lightSource):
  7797. * ksvg2/svg/SVGFEDistantLightElement.h:
  7798. * ksvg2/svg/SVGFEFloodElement.cpp:
  7799. (WebCore::SVGFEFloodElement::filterEffect):
  7800. * ksvg2/svg/SVGFEFloodElement.h:
  7801. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  7802. (WebCore::SVGFEGaussianBlurElement::filterEffect):
  7803. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  7804. * ksvg2/svg/SVGFEImageElement.cpp:
  7805. (WebCore::SVGFEImageElement::filterEffect):
  7806. * ksvg2/svg/SVGFEImageElement.h:
  7807. * ksvg2/svg/SVGFELightElement.h:
  7808. * ksvg2/svg/SVGFEMergeElement.cpp:
  7809. (WebCore::SVGFEMergeElement::filterEffect):
  7810. * ksvg2/svg/SVGFEMergeElement.h:
  7811. * ksvg2/svg/SVGFEOffsetElement.cpp:
  7812. (WebCore::SVGFEOffsetElement::filterEffect):
  7813. * ksvg2/svg/SVGFEOffsetElement.h:
  7814. * ksvg2/svg/SVGFEPointLightElement.cpp:
  7815. (WebCore::SVGFEPointLightElement::lightSource):
  7816. * ksvg2/svg/SVGFEPointLightElement.h:
  7817. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  7818. (WebCore::SVGFESpecularLightingElement::filterEffect):
  7819. (WebCore::SVGFESpecularLightingElement::updateLights):
  7820. * ksvg2/svg/SVGFESpecularLightingElement.h:
  7821. * ksvg2/svg/SVGFESpotLightElement.cpp:
  7822. (WebCore::SVGFESpotLightElement::lightSource):
  7823. * ksvg2/svg/SVGFESpotLightElement.h:
  7824. * ksvg2/svg/SVGFETileElement.cpp:
  7825. (WebCore::SVGFETileElement::filterEffect):
  7826. * ksvg2/svg/SVGFETileElement.h:
  7827. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  7828. (WebCore::SVGFETurbulenceElement::filterEffect):
  7829. * ksvg2/svg/SVGFETurbulenceElement.h:
  7830. (WebCore::):
  7831. * ksvg2/svg/SVGFilterElement.cpp:
  7832. (WebCore::SVGFilterElement::canvasResource):
  7833. * ksvg2/svg/SVGFilterElement.h:
  7834. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  7835. (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  7836. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  7837. * platform/graphics/FloatPoint3D.cpp: Added.
  7838. (WebCore::FloatPoint3D::FloatPoint3D):
  7839. (WebCore::FloatPoint3D::x):
  7840. (WebCore::FloatPoint3D::setX):
  7841. (WebCore::FloatPoint3D::y):
  7842. (WebCore::FloatPoint3D::setY):
  7843. (WebCore::FloatPoint3D::z):
  7844. (WebCore::FloatPoint3D::setZ):
  7845. (WebCore::FloatPoint3D::normalize):
  7846. * platform/graphics/FloatPoint3D.h: Added.
  7847. * platform/graphics/svg/SVGResourceFilter.cpp: Added.
  7848. (WebCore::SVGResourceFilter::clearEffects):
  7849. (WebCore::SVGResourceFilter::addFilterEffect):
  7850. (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
  7851. (WebCore::SVGResourceFilter::externalRepresentation):
  7852. (WebCore::getFilterById):
  7853. * platform/graphics/svg/SVGResourceFilter.h: Added.
  7854. (WebCore::SVGResourceFilter::isFilter):
  7855. (WebCore::SVGResourceFilter::filterBoundingBoxMode):
  7856. (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
  7857. (WebCore::SVGResourceFilter::effectBoundingBoxMode):
  7858. (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
  7859. (WebCore::SVGResourceFilter::filterRect):
  7860. (WebCore::SVGResourceFilter::setFilterRect):
  7861. * platform/graphics/svg/SVGResourceImage.h:
  7862. * platform/graphics/svg/SVGResourceListener.h:
  7863. (SVGResourceListener::SVGResourceListener):
  7864. (SVGResourceListener::~SVGResourceListener):
  7865. * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
  7866. * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
  7867. (WebCore::SVGResourceFilter::SVGResourceFilter):
  7868. (WebCore::SVGResourceFilter::~SVGResourceFilter):
  7869. (WebCore::SVGResourceFilter::prepareFilter):
  7870. (WebCore::SVGResourceFilter::applyFilter):
  7871. (WebCore::SVGResourceFilter::getCIFilterStack):
  7872. (WebCore::SVGResourceFilter::imageForName):
  7873. (WebCore::SVGResourceFilter::setImageForName):
  7874. (WebCore::SVGResourceFilter::setOutputImage):
  7875. (WebCore::alphaImageForImage):
  7876. (WebCore::SVGResourceFilter::inputImage):
  7877. * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
  7878. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
  7879. * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
  7880. (WebCore::SVGDistantLightSource::SVGDistantLightSource):
  7881. (WebCore::SVGDistantLightSource::azimuth):
  7882. (WebCore::SVGDistantLightSource::elevation):
  7883. * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
  7884. (WebCore::SVGFEBlend::in2):
  7885. (WebCore::SVGFEBlend::setIn2):
  7886. (WebCore::SVGFEBlend::blendMode):
  7887. (WebCore::SVGFEBlend::setBlendMode):
  7888. (WebCore::operator<<):
  7889. (WebCore::SVGFEBlend::externalRepresentation):
  7890. * platform/graphics/svg/filters/SVGFEBlend.h: Added.
  7891. (WebCore::):
  7892. * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
  7893. (WebCore::SVGFEColorMatrix::type):
  7894. (WebCore::SVGFEColorMatrix::setType):
  7895. (WebCore::SVGFEColorMatrix::values):
  7896. (WebCore::SVGFEColorMatrix::setValues):
  7897. (WebCore::operator<<):
  7898. (WebCore::SVGFEColorMatrix::externalRepresentation):
  7899. * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
  7900. (WebCore::):
  7901. * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
  7902. (WebCore::SVGFEComponentTransfer::redFunction):
  7903. (WebCore::SVGFEComponentTransfer::setRedFunction):
  7904. (WebCore::SVGFEComponentTransfer::greenFunction):
  7905. (WebCore::SVGFEComponentTransfer::setGreenFunction):
  7906. (WebCore::SVGFEComponentTransfer::blueFunction):
  7907. (WebCore::SVGFEComponentTransfer::setBlueFunction):
  7908. (WebCore::SVGFEComponentTransfer::alphaFunction):
  7909. (WebCore::SVGFEComponentTransfer::setAlphaFunction):
  7910. (WebCore::operator<<):
  7911. (WebCore::SVGFEComponentTransfer::externalRepresentation):
  7912. * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
  7913. (WebCore::):
  7914. (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
  7915. * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
  7916. (WebCore::SVGFEComposite::in2):
  7917. (WebCore::SVGFEComposite::setIn2):
  7918. (WebCore::SVGFEComposite::operation):
  7919. (WebCore::SVGFEComposite::setOperation):
  7920. (WebCore::SVGFEComposite::k1):
  7921. (WebCore::SVGFEComposite::setK1):
  7922. (WebCore::SVGFEComposite::k2):
  7923. (WebCore::SVGFEComposite::setK2):
  7924. (WebCore::SVGFEComposite::k3):
  7925. (WebCore::SVGFEComposite::setK3):
  7926. (WebCore::SVGFEComposite::k4):
  7927. (WebCore::SVGFEComposite::setK4):
  7928. (WebCore::SVGFEComposite::externalRepresentation):
  7929. * platform/graphics/svg/filters/SVGFEComposite.h: Added.
  7930. (WebCore::):
  7931. * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
  7932. (WebCore::SVGFEConvolveMatrix::kernelSize):
  7933. (WebCore::SVGFEConvolveMatrix::setKernelSize):
  7934. (WebCore::SVGFEConvolveMatrix::kernel):
  7935. (WebCore::SVGFEConvolveMatrix::setKernel):
  7936. (WebCore::SVGFEConvolveMatrix::divisor):
  7937. (WebCore::SVGFEConvolveMatrix::setDivisor):
  7938. (WebCore::SVGFEConvolveMatrix::bias):
  7939. (WebCore::SVGFEConvolveMatrix::setBias):
  7940. (WebCore::SVGFEConvolveMatrix::targetOffset):
  7941. (WebCore::SVGFEConvolveMatrix::setTargetOffset):
  7942. (WebCore::SVGFEConvolveMatrix::edgeMode):
  7943. (WebCore::SVGFEConvolveMatrix::setEdgeMode):
  7944. (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
  7945. (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
  7946. (WebCore::SVGFEConvolveMatrix::preserveAlpha):
  7947. (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
  7948. (WebCore::operator<<):
  7949. (WebCore::SVGFEConvolveMatrix::externalRepresentation):
  7950. * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
  7951. (WebCore::):
  7952. * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
  7953. (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
  7954. (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
  7955. (WebCore::SVGFEDiffuseLighting::lightingColor):
  7956. (WebCore::SVGFEDiffuseLighting::setLightingColor):
  7957. (WebCore::SVGFEDiffuseLighting::surfaceScale):
  7958. (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
  7959. (WebCore::SVGFEDiffuseLighting::diffuseConstant):
  7960. (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
  7961. (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
  7962. (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
  7963. (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
  7964. (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
  7965. (WebCore::SVGFEDiffuseLighting::lightSource):
  7966. (WebCore::SVGFEDiffuseLighting::setLightSource):
  7967. (WebCore::SVGFEDiffuseLighting::externalRepresentation):
  7968. * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
  7969. * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
  7970. (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
  7971. (WebCore::SVGFEDisplacementMap::in2):
  7972. (WebCore::SVGFEDisplacementMap::setIn2):
  7973. (WebCore::SVGFEDisplacementMap::xChannelSelector):
  7974. (WebCore::SVGFEDisplacementMap::setXChannelSelector):
  7975. (WebCore::SVGFEDisplacementMap::yChannelSelector):
  7976. (WebCore::SVGFEDisplacementMap::setYChannelSelector):
  7977. (WebCore::SVGFEDisplacementMap::scale):
  7978. (WebCore::SVGFEDisplacementMap::setScale):
  7979. (WebCore::operator<<):
  7980. (WebCore::SVGFEDisplacementMap::externalRepresentation):
  7981. * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
  7982. (WebCore::):
  7983. * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
  7984. (WebCore::SVGFEFlood::floodColor):
  7985. (WebCore::SVGFEFlood::setFloodColor):
  7986. (WebCore::SVGFEFlood::floodOpacity):
  7987. (WebCore::SVGFEFlood::setFloodOpacity):
  7988. (WebCore::SVGFEFlood::externalRepresentation):
  7989. * platform/graphics/svg/filters/SVGFEFlood.h: Added.
  7990. * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
  7991. (WebCore::SVGFEGaussianBlur::stdDeviationX):
  7992. (WebCore::SVGFEGaussianBlur::setStdDeviationX):
  7993. (WebCore::SVGFEGaussianBlur::stdDeviationY):
  7994. (WebCore::SVGFEGaussianBlur::setStdDeviationY):
  7995. (WebCore::SVGFEGaussianBlur::externalRepresentation):
  7996. * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
  7997. * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
  7998. (WebCore::SVGFEImage::SVGFEImage):
  7999. (WebCore::SVGFEImage::~SVGFEImage):
  8000. (WebCore::SVGFEImage::cachedImage):
  8001. (WebCore::SVGFEImage::setCachedImage):
  8002. (WebCore::SVGFEImage::externalRepresentation):
  8003. * platform/graphics/svg/filters/SVGFEImage.h: Added.
  8004. * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
  8005. (WebCore::SVGFEMerge::mergeInputs):
  8006. (WebCore::SVGFEMerge::setMergeInputs):
  8007. (WebCore::SVGFEMerge::externalRepresentation):
  8008. * platform/graphics/svg/filters/SVGFEMerge.h: Added.
  8009. * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
  8010. (WebCore::SVGFEMorphology::morphologyOperator):
  8011. (WebCore::SVGFEMorphology::setMorphologyOperator):
  8012. (WebCore::SVGFEMorphology::radiusX):
  8013. (WebCore::SVGFEMorphology::setRadiusX):
  8014. (WebCore::SVGFEMorphology::radiusY):
  8015. (WebCore::SVGFEMorphology::setRadiusY):
  8016. (WebCore::operator<<):
  8017. (WebCore::SVGFEMorphology::externalRepresentation):
  8018. * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
  8019. (WebCore::):
  8020. * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
  8021. (WebCore::SVGFEOffset::dx):
  8022. (WebCore::SVGFEOffset::setDx):
  8023. (WebCore::SVGFEOffset::dy):
  8024. (WebCore::SVGFEOffset::setDy):
  8025. (WebCore::SVGFEOffset::externalRepresentation):
  8026. * platform/graphics/svg/filters/SVGFEOffset.h: Added.
  8027. * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
  8028. (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
  8029. (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
  8030. (WebCore::SVGFESpecularLighting::lightingColor):
  8031. (WebCore::SVGFESpecularLighting::setLightingColor):
  8032. (WebCore::SVGFESpecularLighting::surfaceScale):
  8033. (WebCore::SVGFESpecularLighting::setSurfaceScale):
  8034. (WebCore::SVGFESpecularLighting::specularConstant):
  8035. (WebCore::SVGFESpecularLighting::setSpecularConstant):
  8036. (WebCore::SVGFESpecularLighting::specularExponent):
  8037. (WebCore::SVGFESpecularLighting::setSpecularExponent):
  8038. (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
  8039. (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
  8040. (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
  8041. (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
  8042. (WebCore::SVGFESpecularLighting::lightSource):
  8043. (WebCore::SVGFESpecularLighting::setLightSource):
  8044. (WebCore::SVGFESpecularLighting::externalRepresentation):
  8045. * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
  8046. * platform/graphics/svg/filters/SVGFETile.h: Added.
  8047. * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
  8048. (WebCore::SVGFETurbulence::type):
  8049. (WebCore::SVGFETurbulence::setType):
  8050. (WebCore::SVGFETurbulence::baseFrequencyY):
  8051. (WebCore::SVGFETurbulence::setBaseFrequencyY):
  8052. (WebCore::SVGFETurbulence::baseFrequencyX):
  8053. (WebCore::SVGFETurbulence::setBaseFrequencyX):
  8054. (WebCore::SVGFETurbulence::seed):
  8055. (WebCore::SVGFETurbulence::setSeed):
  8056. (WebCore::SVGFETurbulence::numOctaves):
  8057. (WebCore::SVGFETurbulence::setNumOctaves):
  8058. (WebCore::SVGFETurbulence::stitchTiles):
  8059. (WebCore::SVGFETurbulence::setStitchTiles):
  8060. (WebCore::operator<<):
  8061. (WebCore::SVGFETurbulence::externalRepresentation):
  8062. * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
  8063. (WebCore::):
  8064. * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
  8065. (WebCore::SVGFilterEffect::subRegion):
  8066. (WebCore::SVGFilterEffect::setSubRegion):
  8067. (WebCore::SVGFilterEffect::in):
  8068. (WebCore::SVGFilterEffect::setIn):
  8069. (WebCore::SVGFilterEffect::result):
  8070. (WebCore::SVGFilterEffect::setResult):
  8071. (WebCore::SVGFilterEffect::externalRepresentation):
  8072. (WebCore::operator<<):
  8073. * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
  8074. (WebCore::):
  8075. (WebCore::SVGFilterEffect::SVGFilterEffect):
  8076. (WebCore::SVGFilterEffect::~SVGFilterEffect):
  8077. (WebCore::SVGFilterEffect::effectType):
  8078. * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
  8079. (WebCore::operator<<):
  8080. (WebCore::SVGPointLightSource::externalRepresentation):
  8081. (WebCore::SVGSpotLightSource::externalRepresentation):
  8082. (WebCore::SVGDistantLightSource::externalRepresentation):
  8083. * platform/graphics/svg/filters/SVGLightSource.h: Added.
  8084. (WebCore::):
  8085. (WebCore::SVGLightSource::SVGLightSource):
  8086. (WebCore::SVGLightSource::~SVGLightSource):
  8087. (WebCore::SVGLightSource::type):
  8088. * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
  8089. (WebCore::SVGPointLightSource::SVGPointLightSource):
  8090. (WebCore::SVGPointLightSource::position):
  8091. * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
  8092. (WebCore::SVGSpotLightSource::SVGSpotLightSource):
  8093. (WebCore::SVGSpotLightSource::position):
  8094. (WebCore::SVGSpotLightSource::direction):
  8095. (WebCore::SVGSpotLightSource::specularExponent):
  8096. (WebCore::SVGSpotLightSource::limitingConeAngle):
  8097. * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
  8098. (WebCore::SVGFEBlend::getCIFilter):
  8099. * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
  8100. (WebCore::SVGFEColorMatrix::getCIFilter):
  8101. * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
  8102. (WebCore::genImageFromTable):
  8103. (WebCore::setParametersForComponentFunc):
  8104. (WebCore::filterForComponentFunc):
  8105. (WebCore::getFilterForFunc):
  8106. (WebCore::SVGFEComponentTransfer::getFunctionFilter):
  8107. (WebCore::SVGFEComponentTransfer::getCIFilter):
  8108. * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
  8109. (WebCore::SVGFEComposite::getCIFilter):
  8110. * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
  8111. (WebCore::SVGFEDiffuseLighting::getCIFilter):
  8112. * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
  8113. (WebCore::SVGFEDisplacementMap::getCIFilter):
  8114. * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
  8115. (WebCore::SVGFEFlood::getCIFilter):
  8116. * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
  8117. (WebCore::SVGFEGaussianBlur::getCIFilter):
  8118. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
  8119. * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
  8120. (WebCore::getVectorForChannel):
  8121. (WebCore::ciColor):
  8122. (WebCore::getPointLightVectors):
  8123. (WebCore::getLightVectors):
  8124. (WebCore::getNormalMap):
  8125. * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
  8126. (WebCore::SVGFEImage::getCIFilter):
  8127. * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
  8128. (WebCore::SVGFEMerge::getCIFilter):
  8129. * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
  8130. (WebCore::SVGFEOffset::getCIFilter):
  8131. * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
  8132. (WebCore::SVGFESpecularLighting::getCIFilter):
  8133. * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
  8134. (WebCore::SVGFETile::getCIFilter):
  8135. * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
  8136. (WebCore::SVGFilterEffect::getCIFilter):
  8137. * rendering/RenderPath.cpp:
  8138. (WebCore::RenderPath::getAbsoluteRepaintRect):
  8139. (WebCore::RenderPath::paint):
  8140. * rendering/RenderSVGContainer.cpp:
  8141. (WebCore::RenderSVGContainer::paint):
  8142. (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
  8143. * rendering/RenderSVGImage.cpp:
  8144. (WebCore::RenderSVGImage::paint):
  8145. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  8146. * rendering/SVGInlineFlowBox.cpp:
  8147. (WebCore::paintSVGInlineFlow):
  8148. 2006-11-18 Rob Buis <buis@kde.org>
  8149. Reviewed by Maciej.
  8150. http://bugs.webkit.org/show_bug.cgi?id=11321
  8151. Element with :target pseudo-class still matched after fragment identifier change
  8152. Make sure the page does a style recalculation and possible rendering
  8153. when navigating back from a page with an anchor to a page without
  8154. an anchor.
  8155. * loader/FrameLoader.cpp:
  8156. (WebCore::FrameLoader::gotoAnchor):
  8157. 2006-11-18 Peter Kasting <pkasting@google.com>
  8158. Reviewed by Sam Weinig.
  8159. http://bugs.webkit.org/show_bug.cgi?id=11634:
  8160. Fix segfault on startup for Windows build. Also fix segfault when
  8161. typing in a URL.
  8162. Clean up some of the style of the patch that landed in r17816.
  8163. * WebCore.vcproj/WebCore/WebCore.vcproj:
  8164. * bridge/win/ChromeClientWin.h:
  8165. (WebCore::ChromeClientWin::~ChromeClientWin):
  8166. (WebCore::ChromeClientWin::ref):
  8167. (WebCore::ChromeClientWin::deref):
  8168. * bridge/win/ContextMenuClientWin.h:
  8169. (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
  8170. (WebCore::ContextMenuClientWin::ref):
  8171. (WebCore::ContextMenuClientWin::deref):
  8172. * bridge/win/EditorClientWin.h:
  8173. (WebCore::EditorClientWin::~EditorClientWin):
  8174. (WebCore::EditorClientWin::ref):
  8175. (WebCore::EditorClientWin::deref):
  8176. * bridge/win/FrameWin.cpp:
  8177. (WebCore::FrameWin::FrameWin):
  8178. * bridge/win/FrameWin.h:
  8179. (WebCore::Win):
  8180. * loader/win/FrameLoaderClientWin.h: Added.
  8181. (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
  8182. (WebCore::FrameLoaderClientWin::ref):
  8183. (WebCore::FrameLoaderClientWin::deref):
  8184. * platform/win/TemporaryLinkStubs.cpp:
  8185. (WebCore::ChromeClientWin::createWindow):
  8186. (WebCore::ChromeClientWin::createModalDialog):
  8187. (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
  8188. (WebCore::EditorClientWin::isEditable):
  8189. (WebCore::EditorClientWin::shouldBeginEditing):
  8190. (WebCore::EditorClientWin::shouldEndEditing):
  8191. (WebCore::EditorClientWin::shouldApplyStyle):
  8192. (WebCore::EditorClientWin::didBeginEditing):
  8193. (WebCore::EditorClientWin::respondToChangedContents):
  8194. (WebCore::EditorClientWin::didEndEditing):
  8195. (WebCore::EditorClientWin::registerCommandForUndo):
  8196. (WebCore::EditorClientWin::registerCommandForRedo):
  8197. (WebCore::EditorClientWin::clearUndoRedoOperations):
  8198. (WebCore::EditorClientWin::canUndo):
  8199. (WebCore::EditorClientWin::canRedo):
  8200. (WebCore::EditorClientWin::undo):
  8201. (WebCore::EditorClientWin::redo):
  8202. (WebCore::FrameLoader::createFrame):
  8203. (WebCore::FrameLoader::createPlugin):
  8204. (WebCore::FrameLoaderClientWin::hasWebView):
  8205. (WebCore::FrameLoaderClientWin::hasFrameView):
  8206. (WebCore::FrameLoaderClientWin::hasBackForwardList):
  8207. (WebCore::FrameLoaderClientWin::resetBackForwardList):
  8208. (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
  8209. (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
  8210. (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
  8211. (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
  8212. (WebCore::FrameLoaderClientWin::makeDocumentView):
  8213. (WebCore::FrameLoaderClientWin::makeRepresentation):
  8214. (WebCore::FrameLoaderClientWin::forceLayout):
  8215. (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
  8216. (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
  8217. (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
  8218. (WebCore::FrameLoaderClientWin::updateHistoryForReload):
  8219. (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
  8220. (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
  8221. (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
  8222. (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
  8223. (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
  8224. (WebCore::FrameLoaderClientWin::resetAfterLoadError):
  8225. (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
  8226. (WebCore::FrameLoaderClientWin::willCloseDocument):
  8227. (WebCore::FrameLoaderClientWin::detachedFromParent1):
  8228. (WebCore::FrameLoaderClientWin::detachedFromParent2):
  8229. (WebCore::FrameLoaderClientWin::detachedFromParent3):
  8230. (WebCore::FrameLoaderClientWin::detachedFromParent4):
  8231. (WebCore::FrameLoaderClientWin::loadedFromPageCache):
  8232. (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
  8233. (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
  8234. (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
  8235. (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
  8236. (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
  8237. (WebCore::FrameLoaderClientWin::dispatchWillClose):
  8238. (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
  8239. (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
  8240. (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
  8241. (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
  8242. (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
  8243. (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
  8244. (WebCore::FrameLoaderClientWin::dispatchShow):
  8245. (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
  8246. (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
  8247. (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
  8248. (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
  8249. (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
  8250. (WebCore::FrameLoaderClientWin::revertToProvisionalState):
  8251. (WebCore::FrameLoaderClientWin::clearUnarchivingState):
  8252. (WebCore::FrameLoaderClientWin::progressStarted):
  8253. (WebCore::FrameLoaderClientWin::progressCompleted):
  8254. (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
  8255. (WebCore::FrameLoaderClientWin::willChangeTitle):
  8256. (WebCore::FrameLoaderClientWin::didChangeTitle):
  8257. (WebCore::FrameLoaderClientWin::finishedLoading):
  8258. (WebCore::FrameLoaderClientWin::finalSetupForReplace):
  8259. (WebCore::FrameLoaderClientWin::setDefersLoading):
  8260. (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
  8261. (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
  8262. (WebCore::FrameLoaderClientWin::clearArchivedResources):
  8263. (WebCore::FrameLoaderClientWin::canShowMIMEType):
  8264. (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
  8265. (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
  8266. (WebCore::FrameLoaderClientWin::frameLoadCompleted):
  8267. (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
  8268. (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
  8269. (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
  8270. (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
  8271. (WebCore::FrameLoaderClientWin::didFinishLoad):
  8272. (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
  8273. (WebCore::FrameLoaderClientWin::setTitle):
  8274. (WebCore::FrameLoaderClientWin::userAgent):
  8275. 2006-11-18 Alexey Proskuryakov <ap@webkit.org>
  8276. Reviewed by Rob (yay!).
  8277. http://bugs.webkit.org/show_bug.cgi?id=11640
  8278. XMLHttpRequest produces undefined:undefined HTTP authentication
  8279. * bindings/js/JSXMLHttpRequest.cpp:
  8280. (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
  8281. Treat undefined credentials as missing ones.
  8282. 2006-11-17 Lars Naesbye Christensen <lars@naesbye.dk>
  8283. Reviewed by Tim H.
  8284. http://bugs.webkit.org/show_bug.cgi?id=11638
  8285. [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
  8286. * Resources/aliasCursor.png: Added.
  8287. * Resources/noDropCursor.png: Added.
  8288. * Resources/progressCursor.png: Added.
  8289. * WebCore.xcodeproj/project.pbxproj:
  8290. * css/CSSComputedStyleDeclaration.cpp:
  8291. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  8292. * css/CSSValueKeywords.in:
  8293. * manual-tests/cursor.html:
  8294. * page/EventHandler.cpp:
  8295. (WebCore::selectCursor):
  8296. * platform/Cursor.h:
  8297. * platform/mac/CursorMac.mm:
  8298. (WebCore::handCursor):
  8299. (WebCore::aliasCursor):
  8300. (WebCore::progressCursor):
  8301. (WebCore::noDropCursor):
  8302. * rendering/RenderStyle.h:
  8303. (WebCore::):
  8304. 2006-11-18 Steve Falkenburg <sfalken@apple.com>
  8305. Reviewed by Adam.
  8306. Properly adjust CFAbsoluteTime to time_t to fix date calculations.
  8307. Compare lastModified w/ MAX_TIME_T when setting last modified date
  8308. instead of comparing expiration against MAX_TIME_T.
  8309. * platform/network/cf/ResourceResponseCFNet.cpp:
  8310. (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
  8311. 2006-11-17 Anders Carlsson <acarlsson@apple.com>
  8312. Reviewed by Geoff.
  8313. More conversions from DeprecatedValueList to Vector and HashSet.
  8314. * css/CSSValueList.cpp:
  8315. (WebCore::CSSValueList::~CSSValueList):
  8316. (WebCore::CSSValueList::append):
  8317. (WebCore::CSSValueList::cssText):
  8318. * css/CSSValueList.h:
  8319. (WebCore::CSSValueList::length):
  8320. (WebCore::CSSValueList::item):
  8321. * dom/Document.cpp:
  8322. (WebCore::Document::attachNodeIterator):
  8323. (WebCore::Document::notifyBeforeNodeRemoval):
  8324. * dom/Document.h:
  8325. * ksvg2/svg/SVGGradientElement.cpp:
  8326. (WebCore::SVGGradientElement::notifyAttributeChange):
  8327. * ksvg2/svg/SVGPatternElement.cpp:
  8328. (WebCore::SVGPatternElement::notifyClientsToRepaint):
  8329. * platform/graphics/svg/SVGResource.cpp:
  8330. (WebCore::SVGResource::invalidate):
  8331. (WebCore::SVGResource::addClient):
  8332. * platform/graphics/svg/SVGResource.h:
  8333. * rendering/RenderBlock.h:
  8334. === Safari-521.31 ===
  8335. 2006-11-17 Timothy Hatcher <timothy@apple.com>
  8336. Reviewed by Harrison.
  8337. <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
  8338. Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
  8339. * dom/ContainerNode.cpp:
  8340. (WebCore::ContainerNode::cloneChildNodes):
  8341. * editing/markup.cpp:
  8342. (WebCore::createFragmentFromNodes):
  8343. 2006-11-17 Justin Garcia <justin.garcia@apple.com>
  8344. Reviewed by harrison
  8345. <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
  8346. <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
  8347. * editing/ReplaceSelectionCommand.cpp:
  8348. (WebCore::isMailPasteAsQuotationNode): Added. Checks for the node
  8349. that Mail wraps around an incoming fragment when it wants it to be pasted
  8350. with quoting (no merging should be done).
  8351. (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
  8352. this virtual method in order to adjust the nodes that ReplaceSelectionCommand
  8353. tracks.
  8354. (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
  8355. inside a Mail Paste as Quotation node. Allow merging from Mail blockquotes.
  8356. (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
  8357. a Mail blockquote, we ignore the parts of the source document's default style
  8358. that are overriden by styles from the Mail blockquote. This is necessary in order
  8359. for text that's black (because black is the source document's default font color)
  8360. to appear blue/green/whatever when it's pasted into a Mail blockquote.
  8361. (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
  8362. Mail Paste as Quotation node into a normal Mail blockquote. This will prevent
  8363. a copied blockquote that was inserted into the document using Paste as Quotation
  8364. from triggering Paste as Quotation behavior when it's pasted.
  8365. (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
  8366. * editing/ReplaceSelectionCommand.h:
  8367. * editing/markup.cpp:
  8368. (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
  8369. (WebCore::removeEnclosingMailBlockquoteStyle): Added.
  8370. (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
  8371. styles that Mail blockquotes contribute, so that Mail blockquote styles can
  8372. be differentiated from styles that the user has applied. When creating markup
  8373. for elements, do the same thing.
  8374. (WebCore::createMarkup): Call the new subroutine.
  8375. 2006-11-17 Rob Buis <buis@kde.org>
  8376. Reviewed by Mitz.
  8377. http://bugs.webkit.org/show_bug.cgi?id=11635
  8378. Bug 11635: Fix potential issue with non-xslt build
  8379. Fix the issue and do style guideline corrections.
  8380. * dom/ProcessingInstruction.cpp:
  8381. (WebCore::ProcessingInstruction::checkStyleSheet):
  8382. (WebCore::ProcessingInstruction::sheetLoaded):
  8383. (WebCore::ProcessingInstruction::setCSSStyleSheet):
  8384. (WebCore::ProcessingInstruction::setXSLStyleSheet):
  8385. (WebCore::ProcessingInstruction::parseStyleSheet):
  8386. 2006-11-17 Timothy Hatcher <timothy@apple.com>
  8387. Reviewed by Harrison.
  8388. <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
  8389. Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
  8390. This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
  8391. * editing/EditCommand.cpp:
  8392. (WebCore::EditCommand::apply):
  8393. (WebCore::EditCommand::unapply):
  8394. (WebCore::EditCommand::reapply):
  8395. (WebCore::applyCommand):
  8396. * editing/EditCommand.h:
  8397. 2006-11-17 Zack Rusin <zack@kde.org>
  8398. Reviewed by Mitz. Landed by Niko.
  8399. Making platform Qt/KDE compile and work after
  8400. the latest api changes. Reported as
  8401. http://bugs.webkit.org/show_bug.cgi?id=11617
  8402. * CMakeLists.txt:
  8403. * page/qt/EventHandlerQt.cpp: Added.
  8404. (WebCore::isKeyboardOptionTab):
  8405. (WebCore::EventHandler::tabsToLinks):
  8406. (WebCore::EventHandler::tabsToAllControls):
  8407. (WebCore::EventHandler::freeClipboard):
  8408. (WebCore::EventHandler::focusDocumentView):
  8409. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  8410. (WebCore::EventHandler::passMouseDownEventToWidget):
  8411. (WebCore::EventHandler::lastEventIsMouseUp):
  8412. (WebCore::EventHandler::dragHysteresisExceeded):
  8413. (WebCore::EventHandler::handleDrag):
  8414. (WebCore::EventHandler::handleMouseUp):
  8415. (WebCore::EventHandler::passSubframeEventToSubframe):
  8416. (WebCore::EventHandler::passWheelEventToWidget):
  8417. (WebCore::EventHandler::shouldDragAutoNode):
  8418. (WebCore::EventHandler::dispatchDragSrcEvent):
  8419. (WebCore::EventHandler::passMousePressEventToSubframe):
  8420. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  8421. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  8422. (WebCore::EventHandler::passWheelEventToSubframe):
  8423. (WebCore::EventHandler::passMousePressEventToScrollbar):
  8424. * platform/ContextMenu.h:
  8425. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  8426. (WebCore::SVGResourceClipper::applyClip):
  8427. * platform/qt/ContextMenuClientQt.cpp: Added.
  8428. (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
  8429. (WebCore::ContextMenuClientQt::ref):
  8430. (WebCore::ContextMenuClientQt::deref):
  8431. * platform/qt/ContextMenuClientQt.h: Added.
  8432. * platform/qt/ContextMenuQt.cpp: Added.
  8433. (WebCore::ContextMenu::appendItem):
  8434. (WebCore::ContextMenu::itemCount):
  8435. (WebCore::ContextMenu::insertItem):
  8436. (WebCore::ContextMenu::setPlatformMenuDescription):
  8437. * platform/qt/EditorClientQt.cpp:
  8438. (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
  8439. (WebCore::EditorClientQt::isEditable):
  8440. (WebCore::EditorClientQt::registerCommandForUndo):
  8441. (WebCore::EditorClientQt::registerCommandForRedo):
  8442. (WebCore::EditorClientQt::clearUndoRedoOperations):
  8443. (WebCore::EditorClientQt::canUndo):
  8444. (WebCore::EditorClientQt::canRedo):
  8445. (WebCore::EditorClientQt::undo):
  8446. (WebCore::EditorClientQt::redo):
  8447. * platform/qt/EditorClientQt.h:
  8448. * platform/qt/ScrollViewCanvasQt.cpp:
  8449. (WebCore::ScrollViewCanvasQt::mousePressEvent):
  8450. * platform/qt/TemporaryLinkStubs.cpp:
  8451. (FrameView::updateBorder):
  8452. 2006-11-17 David Harrison <harrison@apple.com>
  8453. Reviewed by Adele.
  8454. <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
  8455. Replace an assert with a fixme that refers to this bug.
  8456. * page/Frame.cpp:
  8457. (WebCore::Frame::revealSelection):
  8458. 2006-11-16 Rob Buis <buis@kde.org>
  8459. Reviewed and landed by Brady
  8460. Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
  8461. REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
  8462. Fix the regression by setting m_loadCompleted correctly.
  8463. * css/CSSStyleSheet.cpp:
  8464. (WebCore::CSSStyleSheet::checkLoaded):
  8465. * dom/Node.h:
  8466. (WebCore::Node::sheetLoaded):
  8467. * dom/ProcessingInstruction.cpp:
  8468. (WebCore::ProcessingInstruction::sheetLoaded):
  8469. * dom/ProcessingInstruction.h:
  8470. * html/HTMLLinkElement.cpp:
  8471. (WebCore::HTMLLinkElement::sheetLoaded):
  8472. * html/HTMLLinkElement.h:
  8473. * html/HTMLStyleElement.cpp:
  8474. (WebCore::HTMLStyleElement::sheetLoaded):
  8475. * html/HTMLStyleElement.h:
  8476. 2006-11-16 David Harrison <harrison@apple.com>
  8477. Reviewed by Beth.
  8478. <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
  8479. The problem was triggered by the fact that the parent div was changing both
  8480. in position and in height. The renderer normally bifurcates its logic for
  8481. x-position changes vs height changes.
  8482. Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
  8483. Test added:
  8484. * manual-tests/delete-into-nested-block.html
  8485. * rendering/RenderBlock.cpp:
  8486. (WebCore::RenderBlock::layoutBlockChildren):
  8487. (WebCore::RenderBlock::positionNewFloats):
  8488. * rendering/RenderBox.cpp:
  8489. (WebCore::RenderBox::repaintDuringLayoutIfMoved):
  8490. * rendering/RenderBox.h:
  8491. * rendering/RenderFlexibleBox.cpp:
  8492. (WebCore::RenderFlexibleBox::placeChild):
  8493. * rendering/RenderObject.cpp:
  8494. (WebCore::RenderObject::repaintDuringLayoutIfMoved):
  8495. * rendering/RenderObject.h:
  8496. * rendering/RenderTableSection.cpp:
  8497. (WebCore::RenderTableSection::layoutRows):
  8498. 2006-11-16 Adele Peterson <adele@apple.com>
  8499. Reviewed by Adam.
  8500. Slider cleanup. Let the theme set the size of the slider thumb.
  8501. * rendering/RenderSlider.cpp:
  8502. (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
  8503. (WebCore::RenderSlider::createThumbStyle):
  8504. (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
  8505. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize): Added.
  8506. * rendering/RenderTheme.h: ditto.
  8507. * rendering/RenderThemeMac.h: ditto.
  8508. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
  8509. 2006-11-15 Anders Carlsson <acarlsson@apple.com>
  8510. Reviewed by Darin.
  8511. Use Vector instead of DeprecatedValueList in a few places.
  8512. * bindings/js/kjs_dom.cpp:
  8513. (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
  8514. (KJS::DOMNamedNodesCollection::lengthGetter):
  8515. (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
  8516. * bindings/js/kjs_dom.h:
  8517. * bindings/js/kjs_html.cpp:
  8518. (KJS::JSHTMLDocument::namedItemGetter):
  8519. (KJS::JSHTMLElement::classInfo):
  8520. (KJS::JSHTMLElement::accessors):
  8521. (KJS::JSHTMLCollection::getNamedItems):
  8522. * bindings/objc/DOM.mm:
  8523. * bridge/mac/FrameMac.mm:
  8524. (WebCore::FrameMac::dashboardRegionsDictionary):
  8525. * css/CSSStyleDeclaration.cpp:
  8526. (WebCore::CSSStyleDeclaration::diff):
  8527. * html/HTMLCollection.cpp:
  8528. (WebCore::HTMLCollection::namedItems):
  8529. * html/HTMLCollection.h:
  8530. * kcanvas/KCanvasFilters.cpp:
  8531. (WebCore::KCanvasFilter::externalRepresentation):
  8532. * kcanvas/KCanvasFilters.h:
  8533. (WebCore::KCanvasFEColorMatrix::values):
  8534. (WebCore::KCanvasFEColorMatrix::setValues):
  8535. (WebCore::KCanvasFEConvolveMatrix::kernel):
  8536. (WebCore::KCanvasFEConvolveMatrix::setKernel):
  8537. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  8538. (WebCore::KCanvasFilterQuartz::getCIFilterStack):
  8539. (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
  8540. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  8541. (WebCore::SVGFEColorMatrixElement::filterEffect):
  8542. * platform/graphics/svg/SVGResourceClipper.h:
  8543. * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
  8544. (WebCore::SVGResourceClipper::applyClip):
  8545. * platform/network/FormData.h:
  8546. * rendering/RenderPath.h:
  8547. * rendering/SVGRenderTreeAsText.h:
  8548. (WebCore::operator<<):
  8549. 2006-11-16 Anders Carlsson <acarlsson@apple.com>
  8550. Reviewed by Tim.
  8551. * editing/markup.cpp:
  8552. (WebCore::createMarkup):
  8553. Add null-checks for the frame, it might not exist for all documents.
  8554. 2006-11-16 Peter Kasting <pkasting@google.com>
  8555. Reviewed and landed by ap.
  8556. http://bugs.webkit.org/show_bug.cgi?id=11509:
  8557. Windows build bustage.
  8558. Also reorganizes WebCore.vcproj to add files whose absence wasn't
  8559. causing compile errors, but which should have been there, and to
  8560. make the include directory ordering (and contents) sane.
  8561. Also reorganizes TemporaryLinkStubs.cpp to put headers and
  8562. function groups in alphabetical order, and ensure that all functions
  8563. in the file call notImplemented().
  8564. * WebCore.vcproj/WebCore/WebCore.vcproj:
  8565. * bridge/win/ChromeClientWin.h:
  8566. (WebCore::ChromeClientWin::ref):
  8567. (WebCore::ChromeClientWin::deref):
  8568. * bridge/win/ContextMenuClientWin.h: Added.
  8569. (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
  8570. (WebCore::ContextMenuClientWin::ref):
  8571. (WebCore::ContextMenuClientWin::deref):
  8572. * bridge/win/EditorClientWin.h:
  8573. * bridge/win/FrameWin.cpp:
  8574. (WebCore::FrameWin::~FrameWin):
  8575. (WebCore::FrameWin::keyPress):
  8576. * bridge/win/FrameWin.h:
  8577. * bridge/win/PageWin.cpp: Removed.
  8578. * editing/EditCommand.h:
  8579. * loader/FormState.h:
  8580. * loader/FrameLoader.h:
  8581. * page/EventHandler.cpp:
  8582. * platform/MimeTypeRegistry.cpp:
  8583. (WebCore::initialiseSupportedImageMIMETypes):
  8584. * platform/graphics/win/ImageWin.cpp:
  8585. * platform/network/ResourceError.cpp:
  8586. * platform/network/ResourceHandleInternal.h:
  8587. * platform/network/win/ResourceHandleWin.cpp:
  8588. (WebCore::ResourceHandle::onHandleCreated):
  8589. (WebCore::ResourceHandle::onRequestRedirected):
  8590. (WebCore::ResourceHandle::start):
  8591. (WebCore::ResourceHandle::cancel):
  8592. * platform/win/ScreenWin.cpp:
  8593. (WebCore::monitorInfo):
  8594. (WebCore::screenRect):
  8595. (WebCore::screenAvailableRect):
  8596. (WebCore::screenDepth):
  8597. * platform/win/SoundWin.cpp: Added.
  8598. (WebCore::systemBeep):
  8599. * platform/win/TemporaryLinkStubs.cpp:
  8600. (WebCore::CacheObjectExpiresTime):
  8601. (WebCore::CheckCacheObjectStatus):
  8602. (WebCore::CheckIfReloading):
  8603. (WebCore::defaultLanguage):
  8604. (WebCore::fileButtonChooseFileLabel):
  8605. (WebCore::fileButtonNoFileSelectedLabel):
  8606. (WebCore::findNextSentenceFromIndex):
  8607. (WebCore::findNextWordFromIndex):
  8608. (WebCore::findSentenceBoundary):
  8609. (WebCore::findWordBoundary):
  8610. (WebCore::focusRingColor):
  8611. (WebCore::historyContains):
  8612. (WebCore::inputElementAltText):
  8613. (WebCore::IsResponseURLEqualToURL):
  8614. (WebCore::cellCursor):
  8615. (WebCore::contextMenuCursor):
  8616. (WebCore::moveCursor):
  8617. (WebCore::verticalTextCursor):
  8618. (WebCore::refreshPlugins):
  8619. (WebCore::resetButtonDefaultLabel):
  8620. (WebCore::ResponseIsMultipart):
  8621. (WebCore::ResponseMIMEType):
  8622. (WebCore::ResponseURL):
  8623. (WebCore::screenDepthPerComponent):
  8624. (WebCore::screenIsMonochrome):
  8625. (WebCore::searchableIndexIntroduction):
  8626. (WebCore::ServeSynchronousRequest):
  8627. (WebCore::setFocusRingColorChangeFunction):
  8628. (WebCore::submitButtonDefaultLabel):
  8629. (WebCore::CachedResource::setPlatformResponse):
  8630. (WebCore::CachedResource::setAllData):
  8631. (WebCore::ChromeClientWin::setWindowRect):
  8632. (WebCore::ChromeClientWin::windowRect):
  8633. (WebCore::ChromeClientWin::pageRect):
  8634. (WebCore::ChromeClientWin::scaleFactor):
  8635. (WebCore::ChromeClientWin::focus):
  8636. (WebCore::ChromeClientWin::unfocus):
  8637. (WebCore::ChromeClientWin::createWindow):
  8638. (WebCore::ChromeClientWin::createModalDialog):
  8639. (WebCore::ChromeClientWin::show):
  8640. (WebCore::ChromeClientWin::canRunModal):
  8641. (WebCore::ChromeClientWin::runModal):
  8642. (WebCore::ChromeClientWin::setToolbarsVisible):
  8643. (WebCore::ChromeClientWin::toolbarsVisible):
  8644. (WebCore::ChromeClientWin::setStatusbarVisible):
  8645. (WebCore::ChromeClientWin::statusbarVisible):
  8646. (WebCore::ChromeClientWin::setScrollbarsVisible):
  8647. (WebCore::ChromeClientWin::scrollbarsVisible):
  8648. (WebCore::ChromeClientWin::setMenubarVisible):
  8649. (WebCore::ChromeClientWin::menubarVisible):
  8650. (WebCore::ChromeClientWin::setResizable):
  8651. (WebCore::ContextMenu::appendItem):
  8652. (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
  8653. (WebCore::DocumentLoader::setFrame):
  8654. (WebCore::DocumentLoader::frameLoader):
  8655. (WebCore::DocumentLoader::URL):
  8656. (WebCore::DocumentLoader::isStopping):
  8657. (WebCore::DocumentLoader::stopLoading):
  8658. (WebCore::DocumentLoader::setLoading):
  8659. (WebCore::DocumentLoader::updateLoading):
  8660. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  8661. (WebCore::DocumentLoader::isLoadingInAPISense):
  8662. (WebCore::DocumentLoader::stopRecordingResponses):
  8663. (WebCore::EditorClientWin::shouldDeleteRange):
  8664. (WebCore::EditorClientWin::shouldShowDeleteInterface):
  8665. (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
  8666. (WebCore::EditorClientWin::isGrammarCheckingEnabled):
  8667. (WebCore::EditorClientWin::spellCheckerDocumentTag):
  8668. (WebCore::EventHandler::focusDocumentView):
  8669. (WebCore::EventHandler::handleDrag):
  8670. (WebCore::EventHandler::handleMouseUp):
  8671. (WebCore::EventHandler::lastEventIsMouseUp):
  8672. (WebCore::EventHandler::passMousePressEventToSubframe):
  8673. (WebCore::EventHandler::passMouseMoveEventToSubframe):
  8674. (WebCore::EventHandler::passMouseReleaseEventToSubframe):
  8675. (WebCore::EventHandler::passWheelEventToSubframe):
  8676. (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
  8677. (WebCore::EventHandler::passMousePressEventToScrollbar):
  8678. (WebCore::EventHandler::shouldDragAutoNode):
  8679. (WebCore::EventHandler::tabsToAllControls):
  8680. (WebCore::EventHandler::tabsToLinks):
  8681. (WebCore::Frame::setNeedsReapplyStyles):
  8682. (WebCore::FrameLoader::didFirstLayout):
  8683. (WebCore::FrameLoader::overrideMediaType):
  8684. (WebCore::FrameLoader::createJavaAppletWidget):
  8685. (WebCore::FrameLoader::redirectDataToPlugin):
  8686. (WebCore::FrameLoader::getHistoryLength):
  8687. (WebCore::FrameLoader::setTitle):
  8688. (WebCore::FrameLoader::referrer):
  8689. (WebCore::FrameLoader::saveDocumentState):
  8690. (WebCore::FrameLoader::restoreDocumentState):
  8691. (WebCore::FrameLoader::goBackOrForward):
  8692. (WebCore::FrameLoader::historyURL):
  8693. (WebCore::FrameLoader::urlSelected):
  8694. (WebCore::FrameLoader::createFrame):
  8695. (WebCore::FrameLoader::submitForm):
  8696. (WebCore::FrameLoader::partClearedInBegin):
  8697. (WebCore::FrameLoader::originalRequestURL):
  8698. (WebCore::FrameLoader::canGoBackOrForward):
  8699. (WebCore::FrameLoader::objectContentType):
  8700. (WebCore::FrameLoader::createPlugin):
  8701. (WebCore::FrameLoader::detachFromParent):
  8702. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  8703. (WebCore::FrameView::updateBorder):
  8704. (WebCore::FrameWin::bindingRootObject):
  8705. (WebCore::FrameWin::canPaste):
  8706. (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
  8707. (WebCore::FrameWin::markedTextRange):
  8708. (WebCore::FrameWin::passSubframeEventToSubframe):
  8709. (WebCore::FrameWin::lastEventIsMouseUp):
  8710. (WebCore::FrameWin::addMessageToConsole):
  8711. (WebCore::FrameWin::shouldChangeSelection):
  8712. (WebCore::FrameWin::respondToChangedSelection):
  8713. (WebCore::FrameWin::clearUndoRedoOperations):
  8714. (WebCore::FrameWin::markMisspellingsInAdjacentWords):
  8715. (WebCore::FrameWin::respondToChangedContents):
  8716. (WebCore::GraphicsContext::addRoundedRectClip):
  8717. (WebCore::GraphicsContext::setShadow):
  8718. (WebCore::GraphicsContext::clearShadow):
  8719. (WebCore::GraphicsContext::beginTransparencyLayer):
  8720. (WebCore::GraphicsContext::endTransparencyLayer):
  8721. (WebCore::GraphicsContext::clearRect):
  8722. (WebCore::GraphicsContext::strokeRect):
  8723. (WebCore::GraphicsContext::setLineWidth):
  8724. (WebCore::GraphicsContext::setLineCap):
  8725. (WebCore::GraphicsContext::setLineJoin):
  8726. (WebCore::GraphicsContext::setMiterLimit):
  8727. (WebCore::GraphicsContext::setAlpha):
  8728. (WebCore::GraphicsContext::setCompositeOperation):
  8729. (WebCore::GraphicsContext::clip):
  8730. (WebCore::GraphicsContext::rotate):
  8731. (WebCore::GraphicsContext::scale):
  8732. (WebCore::Icon::Icon):
  8733. (WebCore::Icon::~Icon):
  8734. (WebCore::Icon::newIconForFile):
  8735. (WebCore::Icon::paint):
  8736. (WebCore::IconDatabase::isIconExpiredForIconURL):
  8737. (WebCore::IconDatabase::hasEntryForIconURL):
  8738. (WebCore::IconDatabase::sharedIconDatabase):
  8739. (WebCore::IconDatabase::setIconURLForPageURL):
  8740. (WebCore::IconDatabase::setIconDataForIconURL):
  8741. (WebCore::Image::drawTiled):
  8742. (WebCore::Image::getHBITMAP):
  8743. (WebCore::Path::Path):
  8744. (WebCore::Path::~Path):
  8745. (WebCore::Path::contains):
  8746. (WebCore::Path::translate):
  8747. (WebCore::Path::boundingRect):
  8748. (WebCore::Path::operator=):
  8749. (WebCore::Path::clear):
  8750. (WebCore::Path::moveTo):
  8751. (WebCore::Path::addLineTo):
  8752. (WebCore::Path::addQuadCurveTo):
  8753. (WebCore::Path::addBezierCurveTo):
  8754. (WebCore::Path::addArcTo):
  8755. (WebCore::Path::closeSubpath):
  8756. (WebCore::Path::addArc):
  8757. (WebCore::Path::addRect):
  8758. (WebCore::Path::addEllipse):
  8759. (WebCore::Path::transform):
  8760. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  8761. (WebCore::PlatformScrollbar::PlatformScrollbar):
  8762. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  8763. (WebCore::PlatformScrollbar::width):
  8764. (WebCore::PlatformScrollbar::height):
  8765. (WebCore::PlatformScrollbar::setEnabled):
  8766. (WebCore::PlatformScrollbar::paint):
  8767. (WebCore::PlatformScrollbar::updateThumbPosition):
  8768. (WebCore::PlatformScrollbar::updateThumbProportion):
  8769. (WebCore::PlatformScrollbar::setRect):
  8770. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  8771. (WebCore::PlugInInfoStore::pluginCount):
  8772. (WebCore::PlugInInfoStore::supportsMIMEType):
  8773. (WebCore::PolicyCheck::PolicyCheck):
  8774. (WebCore::PolicyCheck::clear):
  8775. (WebCore::PolicyCheck::clearRequest):
  8776. (WebCore::PolicyCheck::call):
  8777. (WebCore::RenderThemeWin::systemFont):
  8778. (WebCore::RenderThemeWin::paintMenuList):
  8779. (WebCore::RenderThemeWin::adjustMenuListStyle):
  8780. (WebCore::ResourceLoader::cancel):
  8781. (WebCore::ScrollView::addChild):
  8782. (WebCore::ScrollView::removeChild):
  8783. (WebCore::ScrollView::scrollPointRecursively):
  8784. (WebCore::ScrollView::inWindow):
  8785. (WebCore::ScrollView::paint):
  8786. (WebCore::ScrollView::wheelEvent):
  8787. (WebCore::ScrollView::themeChanged):
  8788. (WebCore::ScrollView::convertChildToSelf):
  8789. (WebCore::ScrollView::convertSelfToChild):
  8790. (WebCore::ScrollView::geometryChanged):
  8791. (WebCore::ScrollView::scrollbarUnderMouse):
  8792. (WebCore::ScrollView::setFrameGeometry):
  8793. (WebCore::ScrollView::windowResizerRect):
  8794. (WebCore::ScrollView::resizerOverlapsContent):
  8795. (WebCore::TextField::selectAll):
  8796. (WebCore::TextField::addSearchResult):
  8797. (WebCore::TextField::selectionStart):
  8798. (WebCore::TextField::hasSelectedText):
  8799. (WebCore::TextField::selectedText):
  8800. (WebCore::TextField::setAutoSaveName):
  8801. (WebCore::TextField::checksDescendantsForFocus):
  8802. (WebCore::TextField::setSelection):
  8803. (WebCore::TextField::setMaxResults):
  8804. (WebCore::TextField::edited):
  8805. (WebCore::TextField::focusPolicy):
  8806. (WebCore::TextField::TextField):
  8807. (WebCore::TextField::~TextField):
  8808. (WebCore::TextField::setFont):
  8809. (WebCore::TextField::setAlignment):
  8810. (WebCore::TextField::setWritingDirection):
  8811. (WebCore::TextField::maxLength):
  8812. (WebCore::TextField::setMaxLength):
  8813. (WebCore::TextField::text):
  8814. (WebCore::TextField::setText):
  8815. (WebCore::TextField::cursorPosition):
  8816. (WebCore::TextField::setCursorPosition):
  8817. (WebCore::TextField::setEdited):
  8818. (WebCore::TextField::setReadOnly):
  8819. (WebCore::TextField::setPlaceholderString):
  8820. (WebCore::TextField::setColors):
  8821. (WebCore::TextField::sizeForCharacterWidth):
  8822. (WebCore::TextField::baselinePosition):
  8823. (WebCore::TextField::setLiveSearch):
  8824. (WebCore::Widget::enableFlushDrawing):
  8825. (WebCore::Widget::isEnabled):
  8826. (WebCore::Widget::focusPolicy):
  8827. (WebCore::Widget::disableFlushDrawing):
  8828. (WebCore::Widget::removeFromParent):
  8829. (WebCore::Widget::lockDrawingFocus):
  8830. (WebCore::Widget::unlockDrawingFocus):
  8831. (WebCore::Widget::capturingMouse):
  8832. (WebCore::Widget::setCapturingMouse):
  8833. (WebCore::Widget::capturingTarget):
  8834. (WebCore::Widget::capturingChild):
  8835. (WebCore::Widget::setCapturingChild):
  8836. (WebCore::Widget::convertChildToSelf):
  8837. (WebCore::Widget::convertSelfToChild):
  8838. (WebCore::Widget::setParent):
  8839. (WebCore::Widget::parent):
  8840. (WebCore::Widget::setEnabled):
  8841. (WebCore::Widget::paint):
  8842. (WebCore::Widget::setIsSelected):
  8843. (WebCore::Widget::invalidate):
  8844. (WebCore::Widget::invalidateRect):
  8845. * platform/win/WidgetWin.cpp:
  8846. (WebCore::Widget::clearFocus):
  8847. 2006-11-16 Timothy Hatcher <timothy@apple.com>
  8848. Reviewed by Adam.
  8849. <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
  8850. * editing/markup.cpp:
  8851. (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
  8852. 2006-11-16 George Staikos <staikos@kde.org>
  8853. Rubberstamped by Maciej.
  8854. Making the code valgrind clean.
  8855. * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
  8856. (WebCore::RenderTableCell::RenderTableCell):
  8857. * rendering/RenderTableCell.h: remove unused variable nWrap
  8858. 2006-11-16 David Harrison <harrison@apple.com>
  8859. Reviewed by Darin and Tim.
  8860. <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
  8861. * page/mac/EventHandlerMac.mm:
  8862. (WebCore::EventHandler::eventMayStartDrag):
  8863. Add nil check of hitTest's result.innerNode().
  8864. 2006-11-16 Timothy Hatcher <timothy@apple.com>
  8865. Reviewed by Darin.
  8866. <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
  8867. Consider the container of the selection range for deletion before asking enclosingNodeOfType().
  8868. * editing/DeleteButtonController.cpp:
  8869. (WebCore::enclosingDeletableElement):
  8870. 2006-11-16 Rob Buis <buis@kde.org>
  8871. Reviewed by hyatt.
  8872. Removal of unused m_styleElement.
  8873. * dom/Node.cpp:
  8874. (WebCore::Node::Node):
  8875. (WebCore::Node::dump):
  8876. * dom/Node.h:
  8877. (WebCore::Node::isLink): should be styleElement, a bug?
  8878. 2006-11-15 Adam Roben <aroben@apple.com>
  8879. Build fix.
  8880. Rename the items in the ContextMenuAction enum so that they don't
  8881. conflict with WebKit names.
  8882. * WebCore.xcodeproj/project.pbxproj:
  8883. * platform/ContextMenu.cpp:
  8884. (WebCore::ContextMenu::populate):
  8885. * platform/ContextMenu.h:
  8886. (WebCore::):
  8887. (WebCore::ContextMenuItem::ContextMenuItem):
  8888. 2006-11-15 Adam Roben <aroben@apple.com>
  8889. Reviewed by Anders.
  8890. Change m_contextMenu to an OwnPtr.
  8891. * WebCore.xcodeproj/project.pbxproj:
  8892. * page/ContextMenuController.cpp:
  8893. (WebCore::ContextMenuController::handleContextMenuEvent):
  8894. * page/ContextMenuController.h:
  8895. 2006-11-15 Adam Roben <aroben@apple.com>
  8896. Reviewed by Anders.
  8897. Add new ContextMenuController and ContextMenuClient classes, and move
  8898. context menu responsibilities from Chrome and ChromeClient to them.
  8899. * WebCore.exp:
  8900. * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
  8901. alphabetize some others.
  8902. * page/Chrome.cpp: Remove context menu-related code.
  8903. * page/Chrome.h: Ditto.
  8904. * page/ChromeClient.h:
  8905. * page/ContextMenuClient.h: Added.
  8906. * page/ContextMenuController.cpp: Added.
  8907. (WebCore::ContextMenuController::ContextMenuController):
  8908. (WebCore::ContextMenuController::~ContextMenuController):
  8909. (WebCore::ContextMenuController::handleContextMenuEvent):
  8910. (WebCore::ContextMenuController::contextMenuActionSelected):
  8911. * page/ContextMenuController.h: Added.
  8912. (WebCore::ContextMenuController::client):
  8913. * page/Page.cpp: Every Page now has a ContextMenuController.
  8914. (WebCore::Page::Page):
  8915. * page/Page.h: Made m_dragCaretController and m_chrome objects instead
  8916. of pointers to objects.
  8917. (WebCore::Page::contextMenuController):
  8918. * platform/ContextMenu.cpp:
  8919. (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
  8920. delegate to add its menu items, and moved the code from the static
  8921. addDefaultItems function into this method.
  8922. * platform/ContextMenu.h:
  8923. (WebCore::ContextMenu::show): Added an empty method body since this
  8924. method is now called from ContextMenuController (although no one calls
  8925. into ContextMenuController yet, so it's OK for this to be empty).
  8926. (WebCore::ContextMenu::hide): Ditto.
  8927. 2006-11-15 Anders Carlsson <acarlsson@apple.com>
  8928. Reviewed by Darin.
  8929. Add null checks on the node filter, they can be null if no filter was passed to the respective
  8930. create functions.
  8931. * bindings/js/JSNodeIteratorCustom.cpp:
  8932. (WebCore::JSNodeIterator::mark):
  8933. * bindings/js/JSTreeWalkerCustom.cpp:
  8934. (WebCore::JSTreeWalker::mark):
  8935. 2006-11-15 Oliver Hunt <oliver@apple.com>
  8936. Reviewed by Anders.
  8937. Allow <embed> and <object> tags to include non-plugin
  8938. content when plugins are disabled
  8939. Fixes <rdar://problems/4839488>
  8940. * html/HTMLEmbedElement.cpp:
  8941. (WebCore::HTMLEmbedElement::rendererIsNeeded):
  8942. * html/HTMLObjectElement.cpp:
  8943. (WebCore::HTMLObjectElement::rendererIsNeeded):
  8944. * loader/FrameLoader.cpp:
  8945. (WebCore::FrameLoader::requestObject):
  8946. 2006-11-15 Adele Peterson <adele@apple.com>
  8947. Build fix. Another type problem that I don't see locally.
  8948. * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
  8949. 2006-11-15 Adele Peterson <adele@apple.com>
  8950. Reviewed by Adam.
  8951. Adding MathExtras header.
  8952. * rendering/RenderSlider.cpp:
  8953. 2006-11-15 Timothy Hatcher <timothy@apple.com>
  8954. Reviewed by Harrison.
  8955. <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
  8956. * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
  8957. by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
  8958. * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
  8959. the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
  8960. * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
  8961. * editing/DeleteButtonController.cpp:
  8962. (WebCore::DeleteButtonController::DeleteButtonController):
  8963. (WebCore::isDeletableElement):
  8964. (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
  8965. (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
  8966. (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
  8967. (WebCore::DeleteButtonController::deleteTarget): check the enabled state
  8968. * editing/DeleteButtonController.h:
  8969. (WebCore::DeleteButtonController::disable):
  8970. (WebCore::DeleteButtonController::enable):
  8971. (WebCore::DeleteButtonController::enabled):
  8972. * editing/EditCommand.cpp:
  8973. (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
  8974. (WebCore::EditCommand::unapply): ditto
  8975. (WebCore::EditCommand::reapply): ditto
  8976. 2006-11-15 Adele Peterson <adele@apple.com>
  8977. Reviewed by Adam.
  8978. New implementation of slider control.
  8979. * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
  8980. * rendering/DeprecatedSlider.cpp: Removed.
  8981. * rendering/DeprecatedSlider.h: Removed.
  8982. * platform/Slider.h: Removed.
  8983. * platform/mac/SliderMac.mm: Removed.
  8984. * platform/win/TemporaryLinkStubs.cpp:
  8985. * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
  8986. * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
  8987. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector):
  8988. * rendering/RenderStyle.cpp:
  8989. (WebCore::):
  8990. (WebCore::pseudoBit):
  8991. * rendering/RenderStyle.h: (WebCore::RenderStyle::):
  8992. * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
  8993. * html/HTMLInputElement.cpp:
  8994. (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
  8995. (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
  8996. * page/EventHandler.cpp: Added concept of a node that will capture all mouse events. This will be used by the slider thumb, so it can
  8997. continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
  8998. (WebCore::EventHandler::EventHandler):
  8999. (WebCore::EventHandler::setCapturingMouseEventsNode):
  9000. (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
  9001. * page/EventHandler.h:
  9002. * rendering/RenderSlider.cpp: Added.
  9003. (WebCore::HTMLSliderThumbElement::isShadowNode):
  9004. (WebCore::HTMLSliderThumbElement::shadowParentNode):
  9005. (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
  9006. (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
  9007. (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
  9008. (WebCore::RenderSlider::RenderSlider):
  9009. (WebCore::RenderSlider::~RenderSlider):
  9010. (WebCore::RenderSlider::baselinePosition):
  9011. (WebCore::RenderSlider::calcMinMaxWidth):
  9012. (WebCore::RenderSlider::setStyle):
  9013. (WebCore::RenderSlider::createThumbStyle):
  9014. (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
  9015. (WebCore::RenderSlider::updateFromElement):
  9016. (WebCore::RenderSlider::mouseEventIsInThumb):
  9017. (WebCore::RenderSlider::setValueForPosition):
  9018. (WebCore::RenderSlider::setPositionFromValue):
  9019. (WebCore::RenderSlider::positionForOffset):
  9020. (WebCore::RenderSlider::valueChanged):
  9021. (WebCore::RenderSlider::currentPosition):
  9022. (WebCore::RenderSlider::setCurrentPosition):
  9023. (WebCore::RenderSlider::trackSize):
  9024. (WebCore::RenderSlider::forwardEvent):
  9025. (WebCore::RenderSlider::inDragMode):
  9026. * rendering/RenderSlider.h: Added.
  9027. (WebCore::RenderSlider::renderName):
  9028. * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
  9029. (WebCore::RenderTheme::adjustStyle):
  9030. (WebCore::RenderTheme::paint):
  9031. (WebCore::RenderTheme::paintBorderOnly):
  9032. (WebCore::RenderTheme::paintDecorations):
  9033. (WebCore::RenderTheme::adjustSliderTrackStyle):
  9034. (WebCore::RenderTheme::adjustSliderThumbStyle):
  9035. * rendering/RenderTheme.h:
  9036. (WebCore::RenderTheme::paintSliderTrack):
  9037. (WebCore::RenderTheme::paintSliderThumb):
  9038. * rendering/RenderThemeMac.h:
  9039. * rendering/RenderThemeMac.mm:
  9040. (WebCore::RenderThemeMac::RenderThemeMac):
  9041. (WebCore::TrackGradientInterpolate):
  9042. (WebCore::RenderThemeMac::paintSliderTrack):
  9043. (WebCore::RenderThemeMac::paintSliderThumb):
  9044. (WebCore::RenderThemeMac::adjustSliderTrackStyle):
  9045. (WebCore::RenderThemeMac::adjustSliderThumbStyle):
  9046. 2006-11-15 Beth Dakin <bdakin@apple.com>
  9047. Reviewed by Adam.
  9048. Oops! Forgot to add this!
  9049. * platform/mac/ContextMenuMac.mm: Added.
  9050. (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
  9051. (-[MenuTarget WebCore::]):
  9052. (-[MenuTarget setMenu:WebCore::]):
  9053. (-[MenuTarget forwardContextMenuAction:]):
  9054. (getNSMenuItem):
  9055. (ContextMenu::appendItem):
  9056. (ContextMenu::itemCount):
  9057. (ContextMenu::insertItem):
  9058. (ContextMenu::setPlatformMenuDescription):
  9059. 2006-11-15 Beth Dakin <bdakin@apple.com>
  9060. & Adam Roben <aroben@apple.com>
  9061. Reviewed by Adam and Beth.
  9062. Initial cut at pushing Context Menus into WebCore. Nobody actually
  9063. calls this code just yet.
  9064. * WebCore.exp:
  9065. * WebCore.xcodeproj/project.pbxproj:
  9066. * page/Chrome.cpp:
  9067. (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
  9068. call into addContextMenuItems on the UIDelegate.
  9069. * page/Chrome.h:
  9070. * page/ChromeClient.h:
  9071. * platform/ContextMenu.cpp: Added.
  9072. (WebCore::addDefaultItems):
  9073. (WebCore::ContextMenu::populate):
  9074. * platform/ContextMenu.h: Added.
  9075. (WebCore::):
  9076. (WebCore::ContextMenuItem::ContextMenuItem):
  9077. (WebCore::ContextMenu::ContextMenu):
  9078. (WebCore::ContextMenu::hitTestResult):
  9079. (WebCore::ContextMenu::platformMenuDescription):
  9080. 2006-11-15 Adele Peterson <adele@apple.com>
  9081. Reviewed by Hyatt.
  9082. - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
  9083. * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
  9084. 2006-11-15 David Harrison <harrison@apple.com>
  9085. Reviewed by Darin.
  9086. <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
  9087. Test:
  9088. * manual-tests/keep_spelling_markers.html:
  9089. Updated to include checking for this bug.
  9090. * bridge/mac/FrameMac.mm:
  9091. (WebCore::FrameMac::advanceToNextMisspelling):
  9092. it.advance() even when current string is a single space.
  9093. 2006-11-15 Brady Eidson <beidson@apple.com>
  9094. Reviewed by lamadio
  9095. Backing out macro expansion
  9096. * WebCore.xcodeproj/project.pbxproj:
  9097. * html/HTMLElement.cpp:
  9098. (WebCore::HTMLElement::isRecognizedTagName):
  9099. * ksvg2/scripts/make_names.pl:
  9100. 2006-11-15 David Harrison <harrison@apple.com>
  9101. Reviewed by Darin.
  9102. <rdar://problem/4770453> VO not honoring secure edit fields in web pages
  9103. The remaining problem was the password fields would return their contents
  9104. even though they did not advertise that they could. Apparently, VoiceOver
  9105. does not read the ads.
  9106. * bridge/mac/WebCoreAXObject.mm:
  9107. (isPasswordFieldElement):
  9108. (-[WebCoreAXObject isPasswordField]):
  9109. (-[WebCoreAXObject textMarkerForVisiblePosition:]):
  9110. (-[WebCoreAXObject accessibilityAttributeValue:]):
  9111. (-[WebCoreAXObject doAXStringForRange:]):
  9112. 2006-11-13 Lou Amadio <lamadio@apple.com>
  9113. Reviewed by Darin Adler, Maciej Stachowiak
  9114. Cleanup: Expanded macros in generated files
  9115. * html/HTMLElement.cpp:
  9116. (WebCore::HTMLElement::isRecognizedTagName):
  9117. * ksvg2/scripts/make_names.pl:
  9118. 2006-11-16 Anders Carlsson <acarlsson@apple.com>
  9119. Reviewed by Geoff.
  9120. Use Vector instead of DeprecatedPtrList.
  9121. * editing/ApplyStyleCommand.cpp:
  9122. (WebCore::ApplyStyleCommand::applyBlockStyle):
  9123. * editing/BreakBlockquoteCommand.cpp:
  9124. * rendering/RenderFlow.cpp:
  9125. (WebCore::RenderFlow::paintOutline):
  9126. 2006-11-15 Adam Roben <aroben@apple.com>
  9127. Build fix.
  9128. * page/EventHandler.h:
  9129. 2006-11-14 Beth Dakin <bdakin@apple.com>
  9130. Reviewed by Geoff.
  9131. Move things off the bridge, and move sendContextMenuEvent() from
  9132. EventHandlerMac to EventHandler.
  9133. * WebCore.exp:
  9134. * WebCore.xcodeproj/project.pbxproj:
  9135. * bridge/EditorClient.h:
  9136. * bridge/mac/WebCoreFrameBridge.h:
  9137. * editing/Editor.cpp:
  9138. (WebCore::Editor::selectWordBeforeMenuEvent):
  9139. (WebCore::Editor::clientIsEditable):
  9140. * editing/Editor.h:
  9141. * page/EventHandler.cpp:
  9142. (WebCore::EventHandler::sendContextMenuEvent):
  9143. * page/EventHandler.h:
  9144. * page/mac/EventHandlerMac.mm:
  9145. 2006-11-14 Timothy Hatcher <timothy@apple.com>
  9146. Reviewed by Harrison.
  9147. <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
  9148. Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
  9149. * bridge/mac/WebCoreSettings.mm:
  9150. (-[WebCoreSettings setEditableLinkBehavior:]):
  9151. * html/HTMLAnchorElement.cpp:
  9152. (WebCore::HTMLAnchorElement::defaultEventHandler):
  9153. (WebCore::HTMLAnchorElement::setActive):
  9154. (WebCore::HTMLAnchorElement::isLiveLink):
  9155. * page/FrameView.cpp:
  9156. (WebCore::selectCursor):
  9157. * page/Settings.h:
  9158. (WebCore::Settings::):
  9159. 2006-11-14 Mark Rowe <bdash@webkit.org>
  9160. Reviewed by Oliver.
  9161. Build fix
  9162. * bindings/scripts/CodeGenerator.pm:
  9163. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  9164. Turns out I wasn't forcing DWARF on the world at all,
  9165. it's now the default!
  9166. * WebCore.xcodeproj/project.pbxproj:
  9167. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  9168. I must stop trying to force DWARF on the world.
  9169. * WebCore.xcodeproj/project.pbxproj:
  9170. 2006-11-13 Justin Garcia <justin.garcia@apple.com>
  9171. Reviewed by harrison
  9172. <rdar://problem/4806874>
  9173. Missing background image after paste
  9174. * editing/markup.cpp:
  9175. (WebCore::createMarkup): If the body is fully selected, add a
  9176. div with its CSS properties to the markup. Migrated a use of
  9177. enclosingBlockFlowElement to enclosingBlock to fix an infinite
  9178. loop when pasting <div><input></div>.
  9179. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  9180. Reviewed by Adam.
  9181. Add Undo/Redo to execCommand.
  9182. * editing/Editor.cpp:
  9183. (WebCore::execRedo):
  9184. (WebCore::execUndo):
  9185. (WebCore::canRedo):
  9186. (WebCore::canUndo):
  9187. (WebCore::CommandEntry::):
  9188. 2006-11-14 Darin Adler <darin@apple.com>
  9189. Reviewed by Anders.
  9190. - created EventHandler class, moved event handling code from both
  9191. Frame and FrameView in there
  9192. - added ScrollTypes.h header so you can include the scroller-related
  9193. enums without all of Scrollbar.h
  9194. * page/EventHandler.cpp: Added.
  9195. * page/EventHandler.h: Added.
  9196. * page/mac/EventHandlerMac.mm: Added.
  9197. * platform/ScrollBarMode.h: Removed.
  9198. * platform/ScrollTypes.h: Added.
  9199. * WebCore.exp:
  9200. * WebCore.xcodeproj/project.pbxproj:
  9201. * bridge/mac/FrameMac.h:
  9202. * bridge/mac/FrameMac.mm:
  9203. (WebCore::FrameMac::FrameMac):
  9204. (WebCore::FrameMac::~FrameMac):
  9205. (WebCore::FrameMac::bridgeForWidget):
  9206. (WebCore::FrameMac::imageFromRect):
  9207. * bridge/mac/FrameViewMac.mm:
  9208. * bridge/mac/WebCoreFrameBridge.mm:
  9209. (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
  9210. (-[WebCoreFrameBridge nextKeyView]):
  9211. (-[WebCoreFrameBridge previousKeyView]):
  9212. (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
  9213. (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
  9214. (-[WebCoreFrameBridge _visiblePositionForPoint:]):
  9215. (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
  9216. (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
  9217. (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
  9218. (-[WebCoreFrameBridge dragSourceMovedTo:]):
  9219. (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
  9220. * dom/Document.cpp:
  9221. (WebCore::Document::hoveredNodeDetached):
  9222. * dom/Element.h:
  9223. * dom/EventTargetNode.cpp:
  9224. (WebCore::EventTargetNode::defaultEventHandler):
  9225. * editing/SelectionController.cpp:
  9226. (WebCore::SelectionController::SelectionController):
  9227. * editing/SelectionController.h:
  9228. (WebCore::SelectionController::setCaretBlinkingSuspended):
  9229. (WebCore::SelectionController::isCaretBlinkingSuspended):
  9230. * html/HTMLAnchorElement.cpp:
  9231. (WebCore::HTMLAnchorElement::isKeyboardFocusable):
  9232. * html/HTMLFrameElementBase.cpp:
  9233. (WebCore::HTMLFrameElementBase::setFocus):
  9234. * html/HTMLFrameElementBase.h:
  9235. * html/HTMLGenericFormElement.cpp:
  9236. (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
  9237. * html/HTMLInputElement.cpp:
  9238. (WebCore::HTMLInputElement::defaultEventHandler):
  9239. * html/HTMLSelectElement.cpp:
  9240. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  9241. * loader/FrameLoader.cpp:
  9242. (WebCore::FrameLoader::clear):
  9243. (WebCore::FrameLoader::open):
  9244. * page/Frame.cpp:
  9245. (WebCore::Frame::caretBlinkTimerFired):
  9246. (WebCore::Frame::frameForWidget):
  9247. (WebCore::Frame::eventHandler):
  9248. (WebCore::Frame::setProhibitsScrolling):
  9249. (WebCore::FramePrivate::FramePrivate):
  9250. * page/Frame.h:
  9251. * page/FramePrivate.h:
  9252. * page/FrameView.cpp:
  9253. (WebCore::FrameViewPrivate::FrameViewPrivate):
  9254. (WebCore::FrameViewPrivate::reset):
  9255. (WebCore::FrameView::FrameView):
  9256. (WebCore::FrameView::~FrameView):
  9257. (WebCore::FrameView::clear):
  9258. (WebCore::FrameView::adjustViewSize):
  9259. (WebCore::FrameView::addRepaintInfo):
  9260. (WebCore::FrameView::layout):
  9261. (WebCore::FrameView::scrollPointRecursively):
  9262. (WebCore::FrameView::setContentsPos):
  9263. (WebCore::FrameView::scheduleRelayoutOfSubtree):
  9264. (WebCore::FrameView::scheduleEvent):
  9265. (WebCore::FrameView::updateOverflowStatus):
  9266. (WebCore::FrameView::dispatchScheduledEvents):
  9267. (WebCore::FrameView::windowClipRectForLayer):
  9268. (WebCore::FrameView::handleMouseMoveEvent):
  9269. (WebCore::FrameView::handleMouseReleaseEvent):
  9270. * page/FrameView.h:
  9271. * page/PageState.cpp:
  9272. (WebCore::PageState::PageState):
  9273. (WebCore::PageState::restore):
  9274. * page/PageState.h:
  9275. * platform/ScrollBar.h:
  9276. * platform/ScrollView.h:
  9277. * platform/mac/ClipboardMac.mm:
  9278. * platform/mac/PopupMenuMac.mm:
  9279. (WebCore::PopupMenu::show):
  9280. * platform/mac/SliderMac.mm:
  9281. (-[WebCoreSlider becomeFirstResponder]):
  9282. (-[WebCoreSlider nextKeyView]):
  9283. (-[WebCoreSlider previousKeyView]):
  9284. (-[WebCoreSlider canBecomeKeyView]):
  9285. (Slider::focusPolicy):
  9286. * platform/mac/WebCoreTextField.mm:
  9287. (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
  9288. (-[WebCoreTextFieldController setHasFocus:]):
  9289. (-[WebCoreSearchField nextKeyView]):
  9290. (-[WebCoreSearchField previousKeyView]):
  9291. (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
  9292. * platform/mac/WidgetMac.mm:
  9293. (WebCore::Widget::hasFocus):
  9294. (WebCore::Widget::clearFocus):
  9295. * rendering/RenderFrameSet.cpp:
  9296. (WebCore::RenderFrameSet::setResizing):
  9297. * rendering/RenderLayer.cpp:
  9298. (WebCore::RenderLayer::autoscroll):
  9299. (WebCore::RenderLayer::resize):
  9300. (WebCore::RenderLayer::updateOverflowStatus):
  9301. * rendering/RenderLayer.h:
  9302. * rendering/RenderListBox.cpp:
  9303. (WebCore::RenderListBox::autoscroll):
  9304. * rendering/RenderObject.cpp:
  9305. (WebCore::RenderObject::draggableNode):
  9306. (WebCore::RenderObject::destroy):
  9307. * rendering/RenderObject.h:
  9308. (WebCore::RenderObject::RepaintInfo::RepaintInfo):
  9309. * rendering/RenderPartObject.cpp:
  9310. (WebCore::RenderPartObject::viewCleared):
  9311. 2006-11-14 Anders Carlsson <acarlsson@apple.com>
  9312. Reviewed by Darin.
  9313. Let the editor client handle undo/redo.
  9314. * WebCore.exp:
  9315. * WebCore.xcodeproj/project.pbxproj:
  9316. * bridge/EditorClient.h:
  9317. * bridge/mac/FrameMac.h:
  9318. * bridge/mac/FrameMac.mm:
  9319. (WebCore::FrameMac::canUndo):
  9320. (WebCore::FrameMac::canRedo):
  9321. * bridge/mac/WebCoreEditCommand.h: Removed.
  9322. * bridge/mac/WebCoreEditCommand.mm: Removed.
  9323. * bridge/mac/WebCoreFrameBridge.h:
  9324. * bridge/mac/WebCoreFrameBridge.mm:
  9325. * editing/Editor.cpp:
  9326. (WebCore::Editor::appliedEditing):
  9327. (WebCore::Editor::unappliedEditing):
  9328. (WebCore::Editor::reappliedEditing):
  9329. * editing/JSEditor.cpp:
  9330. * loader/FrameLoader.cpp:
  9331. (WebCore::FrameLoader::closeURL):
  9332. * page/Frame.cpp:
  9333. * page/Frame.h:
  9334. * rendering/RenderTextControl.cpp:
  9335. (WebCore::RenderTextControl::updateFromElement):
  9336. 2006-11-14 Nikolas Zimmermann <zimmermann@kde.org>
  9337. Reviewed and landed by Brady
  9338. Fix Qt/Linux build.
  9339. * ChangeLog:
  9340. * loader/qt/FrameLoaderQt.cpp:
  9341. (WebCore::FrameLoader::submitForm):
  9342. * platform/network/qt/ResourceHandleManager.cpp:
  9343. (WebCore::ResourceHandleManager::add):
  9344. * platform/qt/FrameQtClient.cpp:
  9345. (WebCore::FrameQtClientDefault::submitForm):
  9346. * platform/qt/FrameQtClient.h:
  9347. 2006-11-14 Brady Eidson <beidson@apple.com>
  9348. Reviewed by Anders
  9349. Cleanup of my patch last night and merging with aroben-style changes from this morning
  9350. (More ref-counted FormData stuff)
  9351. * html/HTMLFormElement.cpp:
  9352. (WebCore::HTMLFormElement::submit):
  9353. * loader/FrameLoader.cpp:
  9354. (WebCore::FrameLoader::submitForm):
  9355. * platform/network/ResourceHandle.cpp:
  9356. (WebCore::ResourceHandle::postData):
  9357. * platform/network/ResourceHandle.h:
  9358. * platform/network/cf/FormDataStreamCFNet.cpp:
  9359. (WebCore::setHTTPBody):
  9360. * platform/network/mac/FormDataStreamMac.h:
  9361. * platform/network/mac/FormDataStreamMac.mm:
  9362. (WebCore::getStreamFormDatas):
  9363. (WebCore::formCreate):
  9364. (WebCore::formFinalize):
  9365. (WebCore::setHTTPBody):
  9366. (WebCore::httpBodyFromStream):
  9367. * platform/network/mac/ResourceRequestMac.mm:
  9368. (WebCore::getResourceRequest):
  9369. 2006-11-14 Rob Buis <buis@kde.org>
  9370. Reviewed by Darin.
  9371. http://bugs.webkit.org/show_bug.cgi?id=11575
  9372. Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
  9373. Test: fast/css/css-imports.html
  9374. * css/CSSImportRule.cpp:
  9375. (WebCore::CSSImportRule::insertedIntoParent):
  9376. Fix the crash by testing for null pointer.
  9377. 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
  9378. Reviewed by Tim H.
  9379. Test for http://bugs.webkit.org/show_bug.cgi?id=3387
  9380. Redundant keydown, keypress, keyup events sent for arrow keys
  9381. * manual-tests/arrow-key-events.html: Added.
  9382. 2006-11-14 Darin Adler <darin@apple.com>
  9383. Reviewed by Adam.
  9384. Fix up usages of FormData within CFNet loader code.
  9385. * platform/network/ResourceRequest.h:
  9386. (WebCore::ResourceRequest::httpBody):
  9387. * platform/network/cf/FormDataStreamCFNet.cpp:
  9388. (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
  9389. streamFormDatas HashMap.
  9390. (WebCore::formCreate):
  9391. (WebCore::formFinalize): Removed delete because the remove() will deref
  9392. and delete if necessary.
  9393. (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
  9394. (WebCore::httpBodyFromStream):
  9395. * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
  9396. * platform/network/cf/ResourceRequestCFNet.cpp:
  9397. (WebCore::getResourceRequest):
  9398. 2006-11-14 Greg Jackson <gjspanner@gmail.com>
  9399. Reviewed by Darin.
  9400. Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
  9401. rather than overriding it based on platform detection.
  9402. * bindings/js/kjs_navigator.cpp:
  9403. 2006-11-13 Brady Eidson <beidson@apple.com>
  9404. Reviewed by Maciej
  9405. Made FormData Shared, and pass it around as such.
  9406. * WebCore.xcodeproj/project.pbxproj: Reordered some items
  9407. * html/HTMLFormElement.cpp:
  9408. (WebCore::HTMLFormElement::formData):
  9409. (WebCore::HTMLFormElement::submit):
  9410. * html/HTMLFormElement.h:
  9411. * loader/FrameLoader.cpp:
  9412. (WebCore::FormSubmission::FormSubmission):
  9413. (WebCore::FrameLoader::submitForm):
  9414. * loader/FrameLoader.h:
  9415. * loader/mac/FrameLoaderMac.mm:
  9416. (WebCore::FrameLoader::post):
  9417. (WebCore::FrameLoader::loadResourceSynchronously):
  9418. * loader/mac/SubresourceLoaderMac.mm:
  9419. (WebCore::SubresourceLoader::create):
  9420. * platform/network/FormData.h: Made FormData shared
  9421. * platform/network/ResourceHandle.h:
  9422. * platform/network/ResourceHandle.cpp:
  9423. (WebCore::ResourceHandle::postData):
  9424. * platform/network/ResourceRequest.h:
  9425. (WebCore::ResourceRequest::httpBody):
  9426. (WebCore::ResourceRequest::setHTTPBody):
  9427. * platform/network/mac/ResourceRequestMac.mm:
  9428. (WebCore::getResourceRequest):
  9429. (WebCore::nsURLRequest):
  9430. * platform/network/mac/FormDataStreamMac.h:
  9431. * platform/network/mac/FormDataStreamMac.mm:
  9432. (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
  9433. (WebCore::formCreate):
  9434. (WebCore::formFinalize):
  9435. (WebCore::setHTTPBody):
  9436. (WebCore::httpBodyFromStream):
  9437. * xml/xmlhttprequest.cpp:
  9438. (WebCore::XMLHttpRequest::send):
  9439. 2006-11-13 Justin Garcia <justin.garcia@apple.com>
  9440. Reviewed by harrison
  9441. <rdar://problem/4828264>
  9442. In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
  9443. The start of the selection is in an editable area, and the end is in an
  9444. input field inside that editable area. The code that should pull the end
  9445. of such a selection outside the input field didn't escape shadow nodes,
  9446. it would leave a dangling end, causing the crash in toRange.
  9447. * editing/Selection.cpp:
  9448. (WebCore::Selection::adjustForEditableContent): Added an ASSERT and a fixup
  9449. to prevent crashes like this in future Release builds.
  9450. * editing/htmlediting.cpp:
  9451. (WebCore::firstEditablePositionAfterPositionInRoot): Let this function
  9452. escape shadow nodes. We might eventually push this code down into
  9453. next/previous{VisuallyDistinct}Canditate.
  9454. (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
  9455. 2006-11-13 Justin Garcia <justin.garcia@apple.com>
  9456. Reviewed by darin
  9457. * editing/DeleteSelectionCommand.cpp:
  9458. (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
  9459. * editing/Editor.cpp:
  9460. (WebCore::Editor::appliedEditing):
  9461. * editing/Editor.h:
  9462. (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
  9463. 2006-11-10 Justin Garcia <justin.garcia@apple.com>
  9464. Reviewed by Oliver
  9465. <rdar://problem/4820026>
  9466. copy/paste of news.google.com yields text from hidden select element options
  9467. We were adding descendants of unrendered select elements.
  9468. * editing/markup.cpp:
  9469. (WebCore::createMarkup): Don't traverse into nodes without renderers, unless
  9470. they are grandfathered in by a rendered select element.
  9471. 2006-11-12 Simon Hausmann <hausmann@kde.org>
  9472. Reviewed by Sam Weinig.
  9473. Fix Qt build. Missing AbstractShared implementation.
  9474. http://bugs.webkit.org/show_bug.cgi?id=11581
  9475. * loader/qt/FrameLoaderClientQt.cpp:
  9476. (WebCore::FrameLoaderClientQt::ref):
  9477. (WebCore::FrameLoaderClientQt::deref):
  9478. * loader/qt/FrameLoaderClientQt.h:
  9479. * platform/qt/ChromeClientQt.cpp:
  9480. (WebCore::ChromeClientQt::ref):
  9481. (WebCore::ChromeClientQt::deref):
  9482. * platform/qt/ChromeClientQt.h:
  9483. * platform/qt/EditorClientQt.cpp:
  9484. (WebCore::EditorClientQt::ref):
  9485. (WebCore::EditorClientQt::deref):
  9486. * platform/qt/EditorClientQt.h:
  9487. 2006-11-13 Mark Rowe <bdash@webkit.org>
  9488. Reviewed by Mitz.
  9489. Fix some Linux/Gdk build issues noted by Alp Toker.
  9490. * Projects/gdk/webcore-gdk.bkl:
  9491. * WebCoreSources.bkl:
  9492. * platform/graphics/gdk/ImageGdk.cpp:
  9493. (WebCore::Image::loadPlatformResource):
  9494. 2006-11-12 Brady Eidson <beidson@apple.com>
  9495. Reviewed by Anders
  9496. Logging channel plumbing for future work
  9497. * platform/Logging.cpp:
  9498. (WebCore::):
  9499. * platform/Logging.h:
  9500. * platform/mac/LoggingMac.mm:
  9501. (WebCore::InitializeLoggingChannelsIfNecessary):
  9502. 2006-11-12 Mark Rowe <bdash@webkit.org>
  9503. Reviewed by Mitz.
  9504. Linux/Gdk compilation fixes, and bakefile cleanups. Based on patches by
  9505. Alp Toker.
  9506. * Projects/gdk/webcore-gdk.bkl:
  9507. * WebCoreSources.bkl:
  9508. * page/PageState.cpp:
  9509. * platform/gdk/ChromeClientGdk.h:
  9510. (WebCore::ChromeClientGdk::ref):
  9511. (WebCore::ChromeClientGdk::deref):
  9512. * platform/gdk/FrameGdk.cpp:
  9513. (WebCore::FrameGdkClientDefault::openURL):
  9514. (WebCore::FrameGdkClientDefault::didReceiveData):
  9515. (WebCore::FrameGdkClientDefault::receivedAllData):
  9516. (WebCore::FrameGdk::FrameGdk):
  9517. (WebCore::FrameGdk::~FrameGdk):
  9518. * platform/gdk/FrameGdk.h:
  9519. * platform/gdk/KeyEventGdk.cpp:
  9520. (WebCore::keyIdentifierForGdkKeyCode):
  9521. * platform/gdk/ScreenClientGdk.h: Removed.
  9522. * platform/gdk/TemporaryLinkStubs.cpp:
  9523. (FrameGdk::canPaste):
  9524. (FrameGdk::originalRequestURL):
  9525. (TextField::TextField):
  9526. * platform/network/gdk/ResourceHandleManager.cpp:
  9527. (WebCore::ResourceHandleManager::downloadTimerCallback):
  9528. (WebCore::ResourceHandleManager::add):
  9529. (WebCore::ResourceHandleManager::cancel):
  9530. * webcore-base.bkl:
  9531. 2006-11-11 Geoffrey Garen <ggaren@apple.com>
  9532. Reviewed by Maciej Stachowiak.
  9533. - Fixed loader crash by clarifying ownership of WebKit client objects.
  9534. WebCore objects own their WebKit clients, and ref and deref through
  9535. virtual methods, leaving WebKit free to use whatever client / reference-counting
  9536. implementation it likes.
  9537. * WebCore.exp:
  9538. * WebCore.xcodeproj/project.pbxproj:
  9539. * bridge/EditorClient.h: Fixed up function prototypes for style.
  9540. * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
  9541. was to implement an alternative ownership model.
  9542. (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
  9543. (WebCore::FrameLoader::setClient): This function now takes ownership
  9544. (WebCore::FrameLoader::client):
  9545. * loader/FrameLoader.h:
  9546. * loader/FrameLoaderClient.h:
  9547. * page/ChromeClient.h:
  9548. * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
  9549. complement to Shared.
  9550. (WebCore::AbstractShared::~AbstractShared):
  9551. 2006-11-11 George Staikos <staikos@kde.org>
  9552. Reviewed by Maciej.
  9553. Fix uninitialized variable.
  9554. * rendering/RenderStyle.h:
  9555. 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
  9556. Reviewed/landed by Adam.
  9557. Complete cleanup of the CMakeLists.txt.
  9558. Now all files to be built are sorted in alphabetic order.
  9559. General style cleanup, remove all tabs etc.
  9560. * CMakeLists.txt:
  9561. 2006-11-11 Geoffrey Garen <ggaren@apple.com>
  9562. Reviewed by Maciej Stachowiak.
  9563. Added missing initializer to ResourceRequest -- fixes some loader crashes
  9564. due to assuming a request always has a non-null httpMethod.
  9565. * platform/network/ResourceRequest.h:
  9566. (WebCore::ResourceRequest::ResourceRequest):
  9567. 2006-11-11 Brady Eidson <beidson@apple.com>
  9568. Reviewed by Maciej
  9569. Fixed header guard
  9570. * loader/FrameLoaderClient.h:
  9571. 2006-11-11 Darin Adler <darin@apple.com>
  9572. - attempt to fix Qt build
  9573. * platform/qt/CursorQt.cpp:
  9574. (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
  9575. (WebCore::cellCursor): Ditto.
  9576. (WebCore::contextMenuCursor): Ditto.
  9577. 2006-11-11 Rob Buis <buis@kde.org>
  9578. Reviewed by hyatt.
  9579. http://bugs.webkit.org/show_bug.cgi?id=10893
  9580. InsertRule can not handle @import statements
  9581. Allow @import as part of a css rule.
  9582. * css/CSSGrammar.y:
  9583. * css/CSSImportRule.cpp:
  9584. (WebCore::CSSImportRule::insertedIntoParent):
  9585. * css/CSSStyleSheet.cpp:
  9586. (WebCore::CSSStyleSheet::CSSStyleSheet):
  9587. (WebCore::CSSStyleSheet::checkLoaded):
  9588. * css/CSSStyleSheet.h:
  9589. (WebCore::CSSStyleSheet::loadCompleted):
  9590. 2006-11-11 Alexey Proskuryakov <ap@webkit.org>
  9591. Attempt to fix Qt build.
  9592. * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
  9593. 2006-11-11 Lars Naesbye Christensen <lars@naesbye.dk>
  9594. Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
  9595. [CSS 3] support for vertical-text, cell and context-menu cursors
  9596. http://bugs.webkit.org/show_bug.cgi?id=11494
  9597. * Resources/cellCursor.png: Added.
  9598. * Resources/contextMenuCursor.png: Added.
  9599. * Resources/verticalTextCursor.png: Added.
  9600. * WebCore.xcodeproj/project.pbxproj:
  9601. * css/CSSComputedStyleDeclaration.cpp:
  9602. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  9603. * css/CSSValueKeywords.in:
  9604. * manual-tests/cursor.html:
  9605. * page/FrameView.cpp:
  9606. (WebCore::selectCursor):
  9607. * platform/Cursor.h:
  9608. * platform/mac/CursorMac.mm:
  9609. (WebCore::verticalTextCursor):
  9610. (WebCore::cellCursor):
  9611. (WebCore::contextMenuCursor):
  9612. * rendering/RenderStyle.h:
  9613. (WebCore::):
  9614. 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
  9615. Reviewed by aroben and ap, landed by ap.
  9616. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
  9617. Group graphics related files in platform/graphics.
  9618. Move certain files from certain subdirectories
  9619. into platform/graphics/{win,mac,cg,gdk,qt}
  9620. * CMakeLists.txt:
  9621. * WebCore.xcodeproj/project.pbxproj:
  9622. * platform/AffineTransform.cpp: Removed.
  9623. * platform/AffineTransform.h: Removed.
  9624. * platform/Color.cpp: Removed.
  9625. * platform/Color.h: Removed.
  9626. * platform/FloatPoint.cpp: Removed.
  9627. * platform/FloatPoint.h: Removed.
  9628. * platform/FloatRect.cpp: Removed.
  9629. * platform/FloatRect.h: Removed.
  9630. * platform/FloatSize.cpp: Removed.
  9631. * platform/FloatSize.h: Removed.
  9632. * platform/Icon.h: Removed.
  9633. * platform/Image.cpp: Removed.
  9634. * platform/Image.h: Removed.
  9635. * platform/ImageSource.h: Removed.
  9636. * platform/IntPoint.h: Removed.
  9637. * platform/IntRect.cpp: Removed.
  9638. * platform/IntRect.h: Removed.
  9639. * platform/IntSize.h: Removed.
  9640. * platform/IntSizeHash.h: Removed.
  9641. * platform/Path.cpp: Removed.
  9642. * platform/Path.h: Removed.
  9643. * platform/Pen.cpp: Removed.
  9644. * platform/Pen.h: Removed.
  9645. * platform/cairo/AffineTransformCairo.cpp: Removed.
  9646. * platform/cairo/GraphicsContextCairo.cpp: Removed.
  9647. * platform/cairo/ImageCairo.cpp: Removed.
  9648. * platform/cairo/ImageSourceCairo.cpp: Removed.
  9649. * platform/cairo/cairo/AUTHORS: Removed.
  9650. * platform/cairo/cairo/COPYING: Removed.
  9651. * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
  9652. * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
  9653. * platform/cairo/cairo/INSTALL: Removed.
  9654. * platform/cairo/cairo/NEWS: Removed.
  9655. * platform/cairo/cairo/README: Removed.
  9656. * platform/cairo/cairo/TODO: Removed.
  9657. * platform/cairo/cairo/src/Makefile.in: Removed.
  9658. * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
  9659. * platform/cairo/cairo/src/cairo-arc.c: Removed.
  9660. * platform/cairo/cairo/src/cairo-array.c: Removed.
  9661. * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
  9662. * platform/cairo/cairo/src/cairo-atsui.h: Removed.
  9663. * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
  9664. * platform/cairo/cairo/src/cairo-beos.h: Removed.
  9665. * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
  9666. * platform/cairo/cairo/src/cairo-cache.c: Removed.
  9667. * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
  9668. * platform/cairo/cairo/src/cairo-clip.c: Removed.
  9669. * platform/cairo/cairo/src/cairo-color.c: Removed.
  9670. * platform/cairo/cairo/src/cairo-debug.c: Removed.
  9671. * platform/cairo/cairo/src/cairo-debug.h: Removed.
  9672. * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
  9673. * platform/cairo/cairo/src/cairo-directfb.h: Removed.
  9674. * platform/cairo/cairo/src/cairo-features.h: Removed.
  9675. * platform/cairo/cairo/src/cairo-features.h.in: Removed.
  9676. * platform/cairo/cairo/src/cairo-fixed.c: Removed.
  9677. * platform/cairo/cairo/src/cairo-font-options.c: Removed.
  9678. * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
  9679. * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
  9680. * platform/cairo/cairo/src/cairo-font.c: Removed.
  9681. * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
  9682. * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
  9683. * platform/cairo/cairo/src/cairo-ft.h: Removed.
  9684. * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
  9685. * platform/cairo/cairo/src/cairo-glitz.h: Removed.
  9686. * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
  9687. * platform/cairo/cairo/src/cairo-gstate.c: Removed.
  9688. * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
  9689. * platform/cairo/cairo/src/cairo-hash.c: Removed.
  9690. * platform/cairo/cairo/src/cairo-hull.c: Removed.
  9691. * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
  9692. * platform/cairo/cairo/src/cairo-matrix.c: Removed.
  9693. * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
  9694. * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
  9695. * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
  9696. * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
  9697. * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
  9698. * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
  9699. * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
  9700. * platform/cairo/cairo/src/cairo-path-data.c: Removed.
  9701. * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
  9702. * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
  9703. * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
  9704. * platform/cairo/cairo/src/cairo-path.c: Removed.
  9705. * platform/cairo/cairo/src/cairo-pattern.c: Removed.
  9706. * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
  9707. * platform/cairo/cairo/src/cairo-pdf.h: Removed.
  9708. * platform/cairo/cairo/src/cairo-pen.c: Removed.
  9709. * platform/cairo/cairo/src/cairo-platform.h: Removed.
  9710. * platform/cairo/cairo/src/cairo-png.c: Removed.
  9711. * platform/cairo/cairo/src/cairo-polygon.c: Removed.
  9712. * platform/cairo/cairo/src/cairo-private.h: Removed.
  9713. * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
  9714. * platform/cairo/cairo/src/cairo-ps.h: Removed.
  9715. * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
  9716. * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
  9717. * platform/cairo/cairo/src/cairo-quartz.h: Removed.
  9718. * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
  9719. * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
  9720. * platform/cairo/cairo/src/cairo-region.c: Removed.
  9721. * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
  9722. * platform/cairo/cairo/src/cairo-slope.c: Removed.
  9723. * platform/cairo/cairo/src/cairo-spline.c: Removed.
  9724. * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
  9725. * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
  9726. * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
  9727. * platform/cairo/cairo/src/cairo-surface.c: Removed.
  9728. * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
  9729. * platform/cairo/cairo/src/cairo-svg.h: Removed.
  9730. * platform/cairo/cairo/src/cairo-traps.c: Removed.
  9731. * platform/cairo/cairo/src/cairo-unicode.c: Removed.
  9732. * platform/cairo/cairo/src/cairo-wideint.c: Removed.
  9733. * platform/cairo/cairo/src/cairo-wideint.h: Removed.
  9734. * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
  9735. * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
  9736. * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
  9737. * platform/cairo/cairo/src/cairo-win32.h: Removed.
  9738. * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
  9739. * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
  9740. * platform/cairo/cairo/src/cairo-xcb.h: Removed.
  9741. * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
  9742. * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
  9743. * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
  9744. * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
  9745. * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
  9746. * platform/cairo/cairo/src/cairo-xlib.h: Removed.
  9747. * platform/cairo/cairo/src/cairo.c: Removed.
  9748. * platform/cairo/cairo/src/cairo.h: Removed.
  9749. * platform/cairo/cairo/src/cairoint.h: Removed.
  9750. * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
  9751. * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
  9752. * platform/cairo/cairo/src/test-meta-surface.c: Removed.
  9753. * platform/cairo/cairo/src/test-meta-surface.h: Removed.
  9754. * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
  9755. * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
  9756. * platform/cairo/pixman/AUTHORS: Removed.
  9757. * platform/cairo/pixman/COPYING: Removed.
  9758. * platform/cairo/pixman/README: Removed.
  9759. * platform/cairo/pixman/src/Makefile.in: Removed.
  9760. * platform/cairo/pixman/src/fbcompose.c: Removed.
  9761. * platform/cairo/pixman/src/fbedge.c: Removed.
  9762. * platform/cairo/pixman/src/fbedgeimp.h: Removed.
  9763. * platform/cairo/pixman/src/fbmmx.c: Removed.
  9764. * platform/cairo/pixman/src/fbmmx.h: Removed.
  9765. * platform/cairo/pixman/src/fbpict.c: Removed.
  9766. * platform/cairo/pixman/src/fbpict.h: Removed.
  9767. * platform/cairo/pixman/src/fbtrap.c: Removed.
  9768. * platform/cairo/pixman/src/icblt.c: Removed.
  9769. * platform/cairo/pixman/src/icbltone.c: Removed.
  9770. * platform/cairo/pixman/src/iccolor.c: Removed.
  9771. * platform/cairo/pixman/src/icformat.c: Removed.
  9772. * platform/cairo/pixman/src/icimage.c: Removed.
  9773. * platform/cairo/pixman/src/icimage.h: Removed.
  9774. * platform/cairo/pixman/src/icint.h: Removed.
  9775. * platform/cairo/pixman/src/icpixels.c: Removed.
  9776. * platform/cairo/pixman/src/icrect.c: Removed.
  9777. * platform/cairo/pixman/src/icrop.h: Removed.
  9778. * platform/cairo/pixman/src/icstipple.c: Removed.
  9779. * platform/cairo/pixman/src/ictransform.c: Removed.
  9780. * platform/cairo/pixman/src/ictrap.c: Removed.
  9781. * platform/cairo/pixman/src/ictri.c: Removed.
  9782. * platform/cairo/pixman/src/icutil.c: Removed.
  9783. * platform/cairo/pixman/src/pixman-remap.h: Removed.
  9784. * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
  9785. * platform/cairo/pixman/src/pixman.h: Removed.
  9786. * platform/cairo/pixman/src/pixregion.c: Removed.
  9787. * platform/cairo/pixman/src/pixregionint.h: Removed.
  9788. * platform/cairo/pixman/src/renderedge.c: Removed.
  9789. * platform/cairo/pixman/src/renderedge.h: Removed.
  9790. * platform/cairo/pixman/src/slim_internal.h: Removed.
  9791. * platform/cairo/rgb24-hacks.txt: Removed.
  9792. * platform/cairo/scale-removal.txt: Removed.
  9793. * platform/cg/AffineTransformCG.cpp: Removed.
  9794. * platform/cg/FloatPointCG.cpp: Removed.
  9795. * platform/cg/FloatRectCG.cpp: Removed.
  9796. * platform/cg/FloatSizeCG.cpp: Removed.
  9797. * platform/cg/GraphicsContextCG.cpp: Removed.
  9798. * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
  9799. * platform/cg/ImageCG.cpp: Removed.
  9800. * platform/cg/ImageSourceCG.cpp: Removed.
  9801. * platform/cg/IntPointCG.cpp: Removed.
  9802. * platform/cg/IntRectCG.cpp: Removed.
  9803. * platform/cg/IntSizeCG.cpp: Removed.
  9804. * platform/cg/PDFDocumentImage.cpp: Removed.
  9805. * platform/cg/PDFDocumentImage.h: Removed.
  9806. * platform/cg/PathCG.cpp: Removed.
  9807. * platform/gdk/ImageGdk.cpp: Removed.
  9808. * platform/mac/ColorMac.mm: Removed.
  9809. * platform/mac/FloatPointMac.mm: Removed.
  9810. * platform/mac/FloatRectMac.mm: Removed.
  9811. * platform/mac/FloatSizeMac.mm: Removed.
  9812. * platform/mac/GraphicsContextMac.mm:
  9813. * platform/mac/IconMac.mm: Removed.
  9814. * platform/mac/ImageMac.mm: Removed.
  9815. * platform/mac/IntPointMac.mm: Removed.
  9816. * platform/mac/IntRectMac.mm: Removed.
  9817. * platform/mac/IntSizeMac.mm: Removed.
  9818. * platform/qt/AffineTransformQt.cpp: Removed.
  9819. * platform/qt/ColorQt.cpp: Removed.
  9820. * platform/qt/FloatPointQt.cpp: Removed.
  9821. * platform/qt/FloatRectQt.cpp: Removed.
  9822. * platform/qt/IconQt.cpp: Removed.
  9823. * platform/qt/ImageQt.cpp: Removed.
  9824. * platform/qt/ImageSourceQt.cpp: Removed.
  9825. * platform/qt/IntPointQt.cpp: Removed.
  9826. * platform/qt/IntRectQt.cpp: Removed.
  9827. * platform/qt/IntSizeQt.cpp: Removed.
  9828. * platform/qt/PathQt.cpp: Removed.
  9829. * platform/win/ImageWin.cpp: Removed.
  9830. * platform/win/IntPointWin.cpp: Removed.
  9831. * platform/win/IntRectWin.cpp: Removed.
  9832. * platform/win/IntSizeWin.cpp: Removed.
  9833. 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
  9834. Reviewed by hyatt.
  9835. A layout test was added when this bug was fixed, so none needed now.
  9836. Cleanup after:
  9837. REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
  9838. http://bugs.webkit.org/show_bug.cgi?id=11570
  9839. * rendering/RenderStyle.h:
  9840. (WebCore::RenderStyle::isSpace): Removed.
  9841. * rendering/RenderText.cpp:
  9842. (WebCore::isSpace): Added.
  9843. (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
  9844. 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
  9845. Reviewed by mitz.
  9846. REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
  9847. http://bugs.webkit.org/show_bug.cgi?id=11570
  9848. * rendering/RenderStyle.h:
  9849. (WebCore::RenderStyle::isSpace): Added.
  9850. * rendering/RenderText.cpp:
  9851. (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
  9852. treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
  9853. 2006-11-10 Zalan Bujtas <zalan.bujtas@nokia.com>
  9854. Reviewed by Maciej.
  9855. Added basic types for symbian platform.
  9856. http://bugs.webkit.org/show_bug.cgi?id=11540
  9857. * config.h:
  9858. * platform/AtomicString.h:
  9859. (WebCore::AtomicString::AtomicString):
  9860. (WebCore::AtomicString::operator TPtrC):
  9861. * platform/DeprecatedString.cpp:
  9862. (WebCore::initializeHandleNodeBlock):
  9863. * platform/DeprecatedString.h: char _internalBuffer has to be in front of
  9864. the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
  9865. bitfields and breaks byte aligment
  9866. * platform/FloatPoint.h:
  9867. * platform/FloatRect.h:
  9868. * platform/IntPoint.h:
  9869. * platform/IntRect.h:
  9870. * platform/IntSize.h:
  9871. * platform/PlatformString.h:
  9872. (WebCore::String::operator TPtrC):
  9873. (WebCore::String::des):
  9874. * platform/StringImpl.h:
  9875. * platform/symbian/DeprecatedStringSymbian.cpp: Added.
  9876. (WebCore::DeprecatedString::setBufferFromDes):
  9877. (WebCore::DeprecatedString::fromDes):
  9878. (WebCore::DeprecatedString::des):
  9879. (WebCore::DeprecatedString::des8):
  9880. * platform/symbian/FloatPointSymbian.cpp: Added.
  9881. (WebCore::FloatPoint::FloatPoint):
  9882. (WebCore::FloatPoint::operator TPoint):
  9883. * platform/symbian/FloatRectSymbian.cpp: Added.
  9884. (WebCore::FloatRect::FloatRect):
  9885. (WebCore::FloatRect::operator TRect):
  9886. (WebCore::FloatRect::rect):
  9887. * platform/symbian/IntPointSymbian.cpp: Added.
  9888. (WebCore::IntPoint::IntPoint):
  9889. (WebCore::IntPoint::operator TPoint):
  9890. * platform/symbian/IntRectSymbian.cpp: Added.
  9891. (WebCore::IntRect::IntRect):
  9892. (WebCore::IntRect::operator TRect):
  9893. (WebCore::IntRect::Rect):
  9894. * platform/symbian/IntSizeSymbian.cpp: Added.
  9895. (WebCore::IntSize::IntSize):
  9896. (WebCore::IntSize::operator TSize):
  9897. * platform/symbian/StringImplSymbian.cpp: Added.
  9898. (WebCore::StringImpl::StringImpl):
  9899. (WebCore::StringImpl::des):
  9900. * platform/symbian/StringSymbian.cpp: Added.
  9901. (WebCore::String::String):
  9902. 2006-11-10 Zack Rusin <zack@kde.org>
  9903. Reviewed by Anders.
  9904. Adjust to the changes Brady made in the Qt code.
  9905. * loader/qt/FrameLoaderClientQt.cpp:
  9906. (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
  9907. * loader/qt/FrameLoaderClientQt.h:
  9908. 2006-11-10 Justin Garcia <justin.garcia@apple.com>
  9909. Reviewed by harrison
  9910. <rdar://problem/4069359>
  9911. Deleting hyperlink text, then typing uses link typing style but loses the link itself
  9912. The removed anchor element needs to stick around temporarily, in the same way
  9913. that the typing style hangs off the caret until the user moves it. Also text
  9914. insertion around anchors didn't match TextEdit.
  9915. * editing/DeleteSelectionCommand.cpp:
  9916. (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
  9917. (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
  9918. * editing/DeleteSelectionCommand.h:
  9919. * editing/EditCommand.cpp:
  9920. (WebCore::EditCommand::apply): Clear the removed anchor after any top level
  9921. editing command that doesn't preserve the typing style (matches TextEdit).
  9922. * editing/Editor.cpp:
  9923. (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call
  9924. setSelection with a message telling it to clear the typing style
  9925. (and the saved anchor) here. Save/restore the saved anchor because of this.
  9926. * editing/Editor.h:
  9927. (WebCore::Editor::removedAnchor): Getter.
  9928. (WebCore::Editor::setRemovedAnchor): Setter.
  9929. * editing/InsertTextCommand.cpp:
  9930. (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
  9931. if one exists.
  9932. * editing/SelectionController.cpp:
  9933. (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
  9934. we make a selection change that clears the typing style.
  9935. (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
  9936. * editing/htmlediting.cpp:
  9937. (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
  9938. made some changes to match TextEdit's behavior. First, insert content
  9939. inside the anchor when the caret is after it, unless the caret is at the
  9940. end of the document, or if the caret is before it and at the start of a
  9941. paragraph.
  9942. === Safari-521.30 ===
  9943. 2006-11-10 Timothy Hatcher <timothy@apple.com>
  9944. Reviewed by Hyatt.
  9945. Check for BHIDDEN in isVisible() also.
  9946. * rendering/RenderStyle.h:
  9947. (WebCore::BorderValue::isVisible):
  9948. 2006-11-10 Timothy Hatcher <timothy@apple.com>
  9949. Reviewed by Adam.
  9950. <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
  9951. Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
  9952. * editing/DeleteButtonController.cpp:
  9953. (WebCore::isDeletableElement):
  9954. * rendering/RenderStyle.h:
  9955. (WebCore::BorderValue::isVisible):
  9956. 2006-11-10 Adam Roben <aroben@apple.com>
  9957. Rubberstamped by Anders.
  9958. Back out some accidentally-committed changes from r17711.
  9959. * page/Frame.cpp:
  9960. (WebCore::Frame::command):
  9961. (WebCore::FramePrivate::FramePrivate):
  9962. * page/Frame.h:
  9963. * page/FramePrivate.h:
  9964. 2006-11-10 Anders Carlsson <acarlsson@apple.com>
  9965. Reviewed by Geoff.
  9966. Add more commands, make toggleBold and toggleItalic executable commands.
  9967. * WebCore.exp:
  9968. * editing/Editor.cpp:
  9969. (WebCore::execCopy):
  9970. (WebCore::execCut):
  9971. (WebCore::execDelete):
  9972. (WebCore::execForwardDelete):
  9973. (WebCore::execPaste):
  9974. (WebCore::execSelectAll):
  9975. (WebCore::execToggleBold):
  9976. (WebCore::execToggleItalic):
  9977. (WebCore::enabled):
  9978. (WebCore::canPaste):
  9979. (WebCore::hasEditableSelection):
  9980. (WebCore::hasEditableRangeSelection):
  9981. (WebCore::hasRangeSelection):
  9982. (WebCore::hasRichlyEditableSelection):
  9983. (WebCore::CommandEntry::):
  9984. * editing/Editor.h:
  9985. 2006-11-10 Anders Carlsson <acarlsson@apple.com>
  9986. Reviewed by Maciej, Geoff.
  9987. Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
  9988. the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
  9989. * WebCore.exp:
  9990. * bridge/mac/WebCoreFrameBridge.h:
  9991. * bridge/mac/WebCoreFrameBridge.mm:
  9992. * editing/Editor.cpp:
  9993. (WebCore::execMoveBackward):
  9994. (WebCore::execMoveBackwardAndModifySelection):
  9995. (WebCore::execMoveDown):
  9996. (WebCore::execMoveDownAndModifySelection):
  9997. (WebCore::execMoveForward):
  9998. (WebCore::execMoveForwardAndModifySelection):
  9999. (WebCore::execMoveLeft):
  10000. (WebCore::execMoveLeftAndModifySelection):
  10001. (WebCore::execMoveRight):
  10002. (WebCore::execMoveRightAndModifySelection):
  10003. (WebCore::execMoveToBeginningOfDocument):
  10004. (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
  10005. (WebCore::execMoveToBeginningOfSentence):
  10006. (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
  10007. (WebCore::execMoveToBeginningOfLine):
  10008. (WebCore::execMoveToBeginningOfLineAndModifySelection):
  10009. (WebCore::execMoveToBeginningOfParagraph):
  10010. (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
  10011. (WebCore::execMoveToEndOfDocument):
  10012. (WebCore::execMoveToEndOfDocumentAndModifySelection):
  10013. (WebCore::execMoveToEndOfSentence):
  10014. (WebCore::execMoveToEndOfSentenceAndModifySelection):
  10015. (WebCore::execMoveToEndOfLine):
  10016. (WebCore::execMoveToEndOfLineAndModifySelection):
  10017. (WebCore::execMoveToEndOfParagraph):
  10018. (WebCore::execMoveToEndOfParagraphAndModifySelection):
  10019. (WebCore::execMoveParagraphBackwardAndModifySelection):
  10020. (WebCore::execMoveParagraphForwardAndModifySelection):
  10021. (WebCore::execMoveUp):
  10022. (WebCore::execMoveUpAndModifySelection):
  10023. (WebCore::execMoveWordBackward):
  10024. (WebCore::execMoveWordBackwardAndModifySelection):
  10025. (WebCore::execMoveWordForward):
  10026. (WebCore::execMoveWordForwardAndModifySelection):
  10027. (WebCore::execMoveWordLeft):
  10028. (WebCore::execMoveWordLeftAndModifySelection):
  10029. (WebCore::execMoveWordRight):
  10030. (WebCore::execMoveWordRightAndModifySelection):
  10031. (WebCore::enabledAnySelection):
  10032. (WebCore::createCommandMap):
  10033. (WebCore::CommandEntry::):
  10034. (WebCore::Editor::execCommand):
  10035. * editing/Editor.h:
  10036. 2006-11-10 Brady Eidson <beidson@apple.com>
  10037. Reviewed by Darin
  10038. Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
  10039. * WebCore.exp:
  10040. * WebCore.xcodeproj/project.pbxproj:
  10041. * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
  10042. * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
  10043. * loader/FrameLoaderClient.h:
  10044. * loader/icon/IconDatabase.cpp:
  10045. (WebCore::IconDatabase::sharedIconDatabase):
  10046. (WebCore::IconDatabase::~IconDatabase):
  10047. * loader/icon/IconDatabase.h:
  10048. (WebCore::IconDatabase::isPrivateBrowsingEnabled):
  10049. (WebCore::IconDatabase::enabled):
  10050. * loader/icon/IconLoader.cpp:
  10051. (WebCore::IconLoader::finishLoading):
  10052. * loader/mac/FrameLoaderMac.mm:
  10053. 2006-11-10 Zack Rusin <zack@kde.org>
  10054. Reviewed and landed by Anders.
  10055. Adjust platform Qt/KDE code to the recent loader
  10056. changes.
  10057. * CMakeLists.txt:
  10058. * loader/DocumentLoader.h:
  10059. * loader/FrameLoader.cpp:
  10060. (WebCore::FrameLoader::createEmptyDocument):
  10061. * loader/FrameLoader.h:
  10062. * loader/FrameLoaderClient.h:
  10063. * loader/qt/DocumentLoaderQt.cpp: Added.
  10064. (WebCore::canonicalizedTitle):
  10065. (WebCore::DocumentLoader::DocumentLoader):
  10066. (WebCore::DocumentLoader::frameLoader):
  10067. (WebCore::DocumentLoader::~DocumentLoader):
  10068. (WebCore::DocumentLoader::URL):
  10069. (WebCore::DocumentLoader::unreachableURL):
  10070. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  10071. (WebCore::DocumentLoader::isStopping):
  10072. (WebCore::DocumentLoader::clearErrors):
  10073. (WebCore::DocumentLoader::stopLoading):
  10074. (WebCore::DocumentLoader::setupForReplace):
  10075. (WebCore::DocumentLoader::commitIfReady):
  10076. (WebCore::DocumentLoader::finishedLoading):
  10077. (WebCore::DocumentLoader::setCommitted):
  10078. (WebCore::DocumentLoader::isCommitted):
  10079. (WebCore::DocumentLoader::setLoading):
  10080. (WebCore::DocumentLoader::isLoading):
  10081. (WebCore::DocumentLoader::doesProgressiveLoad):
  10082. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  10083. (WebCore::DocumentLoader::updateLoading):
  10084. (WebCore::DocumentLoader::setFrame):
  10085. (WebCore::DocumentLoader::attachToFrame):
  10086. (WebCore::DocumentLoader::detachFromFrame):
  10087. (WebCore::DocumentLoader::prepareForLoadStart):
  10088. (WebCore::DocumentLoader::loadingStartedTime):
  10089. (WebCore::DocumentLoader::setIsClientRedirect):
  10090. (WebCore::DocumentLoader::isClientRedirect):
  10091. (WebCore::DocumentLoader::setPrimaryLoadComplete):
  10092. (WebCore::DocumentLoader::isLoadingInAPISense):
  10093. (WebCore::DocumentLoader::stopRecordingResponses):
  10094. (WebCore::DocumentLoader::title):
  10095. (WebCore::DocumentLoader::triggeringAction):
  10096. (WebCore::DocumentLoader::setTriggeringAction):
  10097. (WebCore::DocumentLoader::setOverrideEncoding):
  10098. (WebCore::DocumentLoader::overrideEncoding):
  10099. (WebCore::DocumentLoader::setTitle):
  10100. (WebCore::DocumentLoader::URLForHistory):
  10101. * loader/qt/FrameLoaderClientQt.cpp: Added.
  10102. (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
  10103. (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
  10104. (WebCore::FrameLoaderClientQt::detachFrameLoader):
  10105. (WebCore::FrameLoaderClientQt::hasWebView):
  10106. (WebCore::FrameLoaderClientQt::hasFrameView):
  10107. (WebCore::FrameLoaderClientQt::hasBackForwardList):
  10108. (WebCore::FrameLoaderClientQt::resetBackForwardList):
  10109. (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
  10110. (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
  10111. (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
  10112. (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
  10113. (WebCore::FrameLoaderClientQt::makeDocumentView):
  10114. (WebCore::FrameLoaderClientQt::makeRepresentation):
  10115. (WebCore::FrameLoaderClientQt::forceLayout):
  10116. (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
  10117. (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
  10118. (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
  10119. (WebCore::FrameLoaderClientQt::updateHistoryForReload):
  10120. (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
  10121. (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
  10122. (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
  10123. (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
  10124. (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
  10125. (WebCore::FrameLoaderClientQt::resetAfterLoadError):
  10126. (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
  10127. (WebCore::FrameLoaderClientQt::willCloseDocument):
  10128. (WebCore::FrameLoaderClientQt::detachedFromParent1):
  10129. (WebCore::FrameLoaderClientQt::detachedFromParent2):
  10130. (WebCore::FrameLoaderClientQt::detachedFromParent3):
  10131. (WebCore::FrameLoaderClientQt::detachedFromParent4):
  10132. (WebCore::FrameLoaderClientQt::loadedFromPageCache):
  10133. (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
  10134. (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
  10135. (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
  10136. (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
  10137. (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
  10138. (WebCore::FrameLoaderClientQt::dispatchWillClose):
  10139. (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
  10140. (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
  10141. (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
  10142. (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
  10143. (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
  10144. (WebCore::FrameLoaderClientQt::dispatchShow):
  10145. (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
  10146. (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
  10147. (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
  10148. (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
  10149. (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
  10150. (WebCore::FrameLoaderClientQt::revertToProvisionalState):
  10151. (WebCore::FrameLoaderClientQt::clearUnarchivingState):
  10152. (WebCore::FrameLoaderClientQt::progressStarted):
  10153. (WebCore::FrameLoaderClientQt::progressCompleted):
  10154. (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
  10155. (WebCore::FrameLoaderClientQt::willChangeTitle):
  10156. (WebCore::FrameLoaderClientQt::didChangeTitle):
  10157. (WebCore::FrameLoaderClientQt::finishedLoading):
  10158. (WebCore::FrameLoaderClientQt::finalSetupForReplace):
  10159. (WebCore::FrameLoaderClientQt::setDefersLoading):
  10160. (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
  10161. (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
  10162. (WebCore::FrameLoaderClientQt::clearArchivedResources):
  10163. (WebCore::FrameLoaderClientQt::canShowMIMEType):
  10164. (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
  10165. (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
  10166. (WebCore::FrameLoaderClientQt::frameLoadCompleted):
  10167. (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
  10168. (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
  10169. (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
  10170. (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
  10171. (WebCore::FrameLoaderClientQt::didFinishLoad):
  10172. (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
  10173. (WebCore::FrameLoaderClientQt::setTitle):
  10174. (WebCore::FrameLoaderClientQt::userAgent):
  10175. * loader/qt/FrameLoaderClientQt.h: Added.
  10176. * loader/qt/FrameLoaderQt.cpp:
  10177. (WebCore::FrameLoader::submitForm):
  10178. (WebCore::FrameLoader::overrideMediaType):
  10179. (WebCore::FrameLoader::getHistoryLength):
  10180. (WebCore::FrameLoader::referrer):
  10181. (WebCore::FrameLoader::detachFromParent):
  10182. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  10183. (WebCore::FrameLoader::goBackOrForward):
  10184. (WebCore::FrameLoader::historyURL):
  10185. (WebCore::FrameLoader::didFirstLayout):
  10186. (WebCore::FrameLoader::canGoBackOrForward):
  10187. (WebCore::FrameLoader::partClearedInBegin):
  10188. (WebCore::FrameLoader::saveDocumentState):
  10189. (WebCore::FrameLoader::restoreDocumentState):
  10190. (WebCore::FrameLoader::didChangeTitle):
  10191. (WebCore::FrameLoader::redirectDataToPlugin):
  10192. (WebCore::PolicyCheck::PolicyCheck):
  10193. (WebCore::PolicyCheck::clear):
  10194. (WebCore::PolicyCheck::set):
  10195. (WebCore::PolicyCheck::call):
  10196. (WebCore::PolicyCheck::clearRequest):
  10197. * loader/qt/NavigationActionQt.cpp: Added.
  10198. (WebCore::navigationType):
  10199. (WebCore::NavigationAction::NavigationAction):
  10200. * loader/qt/ResourceLoaderQt.cpp: Added.
  10201. (WebCore::ResourceLoader::ResourceLoader):
  10202. (WebCore::ResourceLoader::~ResourceLoader):
  10203. (WebCore::ResourceLoader::setDefersLoading):
  10204. (WebCore::ResourceLoader::cancel):
  10205. (WebCore::ResourceLoader::loadsBlocked):
  10206. * platform/MimeTypeRegistry.cpp:
  10207. (WebCore::initialiseSupportedImageMIMETypes):
  10208. * platform/network/qt/ResourceHandleManager.cpp:
  10209. (WebCore::ResourceHandleManager::slotResult):
  10210. (WebCore::ResourceHandleManager::cancel):
  10211. * platform/qt/ChromeClientQt.cpp: Added.
  10212. (WebCore::rootWindowForFrame):
  10213. (WebCore::ChromeClientQt::ChromeClientQt):
  10214. (WebCore::ChromeClientQt::~ChromeClientQt):
  10215. (WebCore::ChromeClientQt::setWindowRect):
  10216. (WebCore::ChromeClientQt::windowRect):
  10217. (WebCore::ChromeClientQt::pageRect):
  10218. (WebCore::ChromeClientQt::scaleFactor):
  10219. (WebCore::ChromeClientQt::focus):
  10220. (WebCore::ChromeClientQt::unfocus):
  10221. (WebCore::ChromeClientQt::createWindow):
  10222. (WebCore::ChromeClientQt::createModalDialog):
  10223. (WebCore::ChromeClientQt::show):
  10224. (WebCore::ChromeClientQt::canRunModal):
  10225. (WebCore::ChromeClientQt::runModal):
  10226. (WebCore::ChromeClientQt::setToolbarsVisible):
  10227. (WebCore::ChromeClientQt::toolbarsVisible):
  10228. (WebCore::ChromeClientQt::setStatusbarVisible):
  10229. (WebCore::ChromeClientQt::statusbarVisible):
  10230. (WebCore::ChromeClientQt::setScrollbarsVisible):
  10231. (WebCore::ChromeClientQt::scrollbarsVisible):
  10232. (WebCore::ChromeClientQt::setMenubarVisible):
  10233. (WebCore::ChromeClientQt::menubarVisible):
  10234. (WebCore::ChromeClientQt::setResizable):
  10235. * platform/qt/ChromeClientQt.h: Added.
  10236. * platform/qt/EditorClientQt.cpp:
  10237. (WebCore::EditorClientQt::shouldBeginEditing):
  10238. (WebCore::EditorClientQt::shouldEndEditing):
  10239. (WebCore::EditorClientQt::shouldApplyStyle):
  10240. (WebCore::EditorClientQt::didBeginEditing):
  10241. (WebCore::EditorClientQt::respondToChangedContents):
  10242. (WebCore::EditorClientQt::didEndEditing):
  10243. * platform/qt/EditorClientQt.h:
  10244. * platform/qt/FrameQt.cpp:
  10245. (WebCore::FrameQt::FrameQt):
  10246. (WebCore::FrameQt::~FrameQt):
  10247. (WebCore::FrameQt::keyEvent):
  10248. * platform/qt/FrameQt.h:
  10249. * platform/qt/FrameQtClient.cpp:
  10250. (WebCore::FrameQtClientDefault::openURL):
  10251. (WebCore::FrameQtClientDefault::didReceiveData):
  10252. (WebCore::FrameQtClientDefault::receivedAllData):
  10253. * platform/qt/ImageQt.cpp:
  10254. * platform/qt/MimeTypeRegistryQt.cpp: Added.
  10255. (WebCore::getMIMETypeForUTI):
  10256. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  10257. * platform/qt/PageQt.cpp:
  10258. * platform/qt/PlatformKeyboardEventQt.cpp:
  10259. (WebCore::keyIdentifierForQtKeyCode):
  10260. * platform/qt/ScreenQt.cpp:
  10261. * platform/qt/TemporaryLinkStubs.cpp:
  10262. (WebCore::TextField::TextField):
  10263. (WebCore::screenDepth):
  10264. (WebCore::screenDepthPerComponent):
  10265. (WebCore::screenIsMonochrome):
  10266. (WebCore::screenRect):
  10267. (WebCore::screenAvailableRect):
  10268. 2006-11-10 Brady Eidson <beidson@apple.com>
  10269. Reviewed by Mitz
  10270. http://bugs.webkit.org/show_bug.cgi?id=11554
  10271. Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
  10272. in case the icon load fails after some data has been received.
  10273. * loader/icon/IconLoader.cpp:
  10274. (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
  10275. on error. Also, as a loader re-factoring sanity check, added an assertion
  10276. (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon
  10277. is already committed to the DB. Skip doing that step twice.
  10278. 2006-11-09 Oliver Hunt <oliver@apple.com>
  10279. Reviewed by Brady.
  10280. Pulled MIME type handling out of WebFrameBridge and added
  10281. a general C++ class to store/query MIME info
  10282. Added an Obj-C bridge to provide WebKit with access to the
  10283. MimeTypeRegistry for non-Obj-C++ classes.
  10284. * WebCore.exp:
  10285. * WebCore.xcodeproj/project.pbxproj:
  10286. * bridge/mac/WebCoreFrameBridge.h:
  10287. * bridge/mac/WebCoreFrameBridge.mm:
  10288. * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
  10289. * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
  10290. (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
  10291. (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
  10292. (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
  10293. (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
  10294. (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
  10295. * platform/Image.cpp:
  10296. (WebCore::Image::supportsType):
  10297. * platform/Image.h:
  10298. * platform/MimeTypeRegistry.cpp: Added.
  10299. (WebCore::initialiseSupportedImageMIMETypes):
  10300. (WebCore::initialiseSupportedNonImageMimeTypes):
  10301. (WebCore::initialiseMimeTypeRegistry):
  10302. (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
  10303. (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
  10304. (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
  10305. (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
  10306. (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
  10307. (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
  10308. * platform/MimeTypeRegistry.h: Added.
  10309. * platform/mac/ImageMac.mm:
  10310. * platform/mac/MimeTypeRegistryMac.mm: Added.
  10311. (WebCore::getMIMETypeForUTI):
  10312. (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
  10313. 2006-11-09 Maciej Stachowiak <mjs@apple.com>
  10314. Reviewed by Oliver.
  10315. - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
  10316. for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
  10317. for you and use vsnprintf.
  10318. * bindings/js/kjs_window.cpp:
  10319. (KJS::Window::isSafeScript):
  10320. * css/cssparser.cpp:
  10321. (WebCore::CSSParser::parseColorFromValue):
  10322. * dom/StyledElement.cpp:
  10323. (WebCore::StyledElement::addCSSColor):
  10324. * dom/XMLTokenizer.cpp:
  10325. (WebCore::XMLTokenizer::handleError):
  10326. * ksvg2/css/SVGCSSParser.cpp:
  10327. (WebCore::CSSParser::parseSVGPaint):
  10328. (WebCore::CSSParser::parseSVGColor):
  10329. * ksvg2/svg/SVGPathSegArc.h:
  10330. (WebCore::SVGPathSegArcAbs::toString):
  10331. (WebCore::SVGPathSegArcRel::toString):
  10332. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  10333. (WebCore::SVGPathSegCurvetoCubicAbs::toString):
  10334. (WebCore::SVGPathSegCurvetoCubicRel::toString):
  10335. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  10336. (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
  10337. (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
  10338. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  10339. (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
  10340. (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
  10341. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  10342. (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
  10343. (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
  10344. * ksvg2/svg/SVGPathSegLineto.h:
  10345. (WebCore::SVGPathSegLinetoAbs::toString):
  10346. (WebCore::SVGPathSegLinetoRel::toString):
  10347. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  10348. (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
  10349. (WebCore::SVGPathSegLinetoHorizontalRel::toString):
  10350. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  10351. (WebCore::SVGPathSegLinetoVerticalAbs::toString):
  10352. (WebCore::SVGPathSegLinetoVerticalRel::toString):
  10353. * ksvg2/svg/SVGPathSegMoveto.h:
  10354. (WebCore::SVGPathSegMovetoAbs::toString):
  10355. (WebCore::SVGPathSegMovetoRel::toString):
  10356. * ksvg2/svg/SVGPolyElement.cpp:
  10357. (WebCore::SVGPolyElement::notifyAttributeChange):
  10358. * ksvg2/svg/SVGUseElement.cpp:
  10359. (WebCore::SVGUseElement::closeRenderer):
  10360. * loader/icon/IconDatabase.cpp:
  10361. (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
  10362. * loader/icon/SQLDatabase.cpp:
  10363. (WebCore::SQLDatabase::setSynchronous):
  10364. * platform/Color.cpp:
  10365. (WebCore::Color::name):
  10366. * platform/DeprecatedString.cpp:
  10367. (WebCore::DeprecatedString::setNum):
  10368. (WebCore::DeprecatedString::format):
  10369. * platform/DeprecatedString.h:
  10370. * platform/PlatformString.h:
  10371. * platform/String.cpp:
  10372. (WebCore::String::format):
  10373. (WebCore::String::number):
  10374. * platform/mac/KeyEventMac.mm:
  10375. (WebCore::keyIdentifierForKeyEvent):
  10376. * platform/win/KeyEventWin.cpp:
  10377. (WebCore::keyIdentifierForWindowsKeyCode):
  10378. * rendering/RenderListMarker.cpp:
  10379. (WebCore::RenderListMarker::calcMinMaxWidth):
  10380. 2006-11-09 Maciej Stachowiak <mjs@apple.com>
  10381. Reviewed by Anders.
  10382. - fixed "Regression: Can't log into gmail.com"
  10383. - fixed "iBench doesn't report results - tests run but no number is recorded"
  10384. * platform/network/cf/FormDataStreamCFNet.cpp:
  10385. (WebCore::setHTTPBody): Removed extra ! character.
  10386. 2006-11-09 Beth Dakin <bdakin@apple.com>
  10387. Reviewed by Hyatt.
  10388. Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in
  10389. WebCore::RenderBlock::skipWhitespace
  10390. Note that this will still crash on Debug builds because it will hit
  10391. an assertion failure in editing. (One of the reasons there is no
  10392. layout test along with this fix.) There is definitely some editing
  10393. wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
  10394. id=10144 for updates on the assertion failure bug.
  10395. * rendering/RootInlineBox.cpp:
  10396. (WebCore::RootInlineBox::childRemoved): It is possible for a
  10397. prevRootBox and its prevRootBox to share a lineBreakObj. So instead
  10398. of just clearing the lineBreakObj of the prevRootBox, cycle through
  10399. all prevRootBoxs with the same lineBreakObj.
  10400. 2006-11-09 Adam Roben <aroben@apple.com>
  10401. Reviewed by Geoff.
  10402. Fix the change in behavior I caused in r17680 with my build fix.
  10403. * rendering/RenderObject.cpp:
  10404. (WebCore::RenderObject::maxTopMargin):
  10405. (WebCore::RenderObject::maxBottomMargin):
  10406. 2006-11-09 Anders Carlsson <acarlsson@apple.com>
  10407. Reviewed by Adam, Oliver.
  10408. Move more functions to Editor.
  10409. * bridge/EditorClient.h:
  10410. * bridge/mac/FrameMac.h:
  10411. * bridge/mac/FrameMac.mm:
  10412. * bridge/mac/WebCoreFrameBridge.h:
  10413. * editing/EditCommand.cpp:
  10414. (WebCore::EditCommand::apply):
  10415. (WebCore::EditCommand::unapply):
  10416. (WebCore::EditCommand::reapply):
  10417. * editing/Editor.cpp:
  10418. (WebCore::Editor::respondToChangedContents):
  10419. (WebCore::dispatchEditableContentChangedEvents):
  10420. (WebCore::Editor::appliedEditing):
  10421. (WebCore::Editor::unappliedEditing):
  10422. (WebCore::Editor::reappliedEditing):
  10423. * editing/Editor.h:
  10424. * editing/TypingCommand.cpp:
  10425. (WebCore::TypingCommand::typingAddedToOpenCommand):
  10426. * page/Frame.cpp:
  10427. * page/Frame.h:
  10428. 2006-11-09 Darin Adler <darin@apple.com>
  10429. * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
  10430. 2006-11-09 Alice Liu <alice.liu@apple.com>
  10431. Reviewed by Beth Dakin.
  10432. Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
  10433. All existing layout tests pass
  10434. * html/HTMLTableElement.cpp:
  10435. (WebCore::HTMLTableElement::deleteRow):
  10436. check lastSection before deleting row
  10437. 2006-11-09 Darin Adler <darin@apple.com>
  10438. - improved version of last night's build fix (should not do using namespace in a header)
  10439. * rendering/RenderObject.h:
  10440. * rendering/RenderObject.cpp:
  10441. (WebCore::RenderObject::maxTopMargin):
  10442. (WebCore::RenderObject::maxBottomMargin):
  10443. 2006-11-08 Maciej Stachowiak <mjs@apple.com>
  10444. Reviewed by Geoff.
  10445. - added ResourceError class and didFailWithError client method
  10446. * WebCore.xcodeproj/project.pbxproj:
  10447. * loader/icon/IconLoader.cpp:
  10448. (WebCore::IconLoader::didFailWithError):
  10449. (WebCore::IconLoader::didFinishLoading):
  10450. * loader/icon/IconLoader.h:
  10451. * loader/loader.cpp:
  10452. (WebCore::Loader::receivedAllData):
  10453. (WebCore::Loader::didFailWithError):
  10454. * loader/loader.h:
  10455. * loader/mac/SubresourceLoaderMac.mm:
  10456. (WebCore::SubresourceLoader::didFail):
  10457. (WebCore::SubresourceLoader::didCancel):
  10458. * platform/cf/RetainPtr.h:
  10459. (WebCore::):
  10460. (WebCore::adoptCFReference):
  10461. (WebCore::RetainPtr::RetainPtr):
  10462. (WebCore::::adopt):
  10463. * platform/network/ResourceError.cpp: Added.
  10464. * platform/network/ResourceError.h: Added.
  10465. (WebCore::ResourceError::ResourceError):
  10466. (WebCore::ResourceError::domain):
  10467. (WebCore::ResourceError::errorCode):
  10468. (WebCore::ResourceError::failingURL):
  10469. (WebCore::ResourceError::localizedDescription):
  10470. (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
  10471. * platform/network/ResourceHandle.cpp:
  10472. * platform/network/ResourceHandle.h:
  10473. * platform/network/ResourceHandleClient.h:
  10474. (WebCore::ResourceHandleClient::didFailWithError):
  10475. * platform/network/cf/ResourceHandleCFNet.cpp:
  10476. (WebCore::didFail):
  10477. (WebCore::ResourceHandle::cancel):
  10478. * platform/network/mac/ResourceErrorMac.mm: Added.
  10479. (-[NSError WebCore]):
  10480. * platform/network/mac/ResourceHandleMac.mm:
  10481. (WebCore::ResourceHandle::reportError):
  10482. * xml/xmlhttprequest.cpp:
  10483. (WebCore::XMLHttpRequest::didFailWithError):
  10484. (WebCore::XMLHttpRequest::didFinishLoading):
  10485. * xml/xmlhttprequest.h:
  10486. 2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  10487. Reviewed by Maciej.
  10488. Linux\Gdk fixes.
  10489. * platform/gdk/ChromeClientGdk.h:
  10490. (WebCore::ChromeClientGdk::~ChromeClientGdk):
  10491. * platform/gdk/CursorGdk.cpp:
  10492. (WebCore::Cursor::Cursor):
  10493. (WebCore::moveCursor):
  10494. * platform/gdk/FrameGdk.cpp:
  10495. (WebCore::FrameGdk::FrameGdk):
  10496. (WebCore::FrameGdk::submitForm):
  10497. (WebCore::FrameGdk::urlSelected):
  10498. * platform/gdk/PageGdk.cpp:
  10499. * platform/gdk/ScreenClientGdk.h: Added.
  10500. (WebCore::ScreenClientGdk::~ScreenClientGdk):
  10501. * platform/gdk/ScreenGdk.cpp:
  10502. (WebCore::ScreenClientGdk::depth):
  10503. (WebCore::ScreenClientGdk::depthPerComponent):
  10504. (WebCore::ScreenClientGdk::isMonochrome):
  10505. (WebCore::ScreenClientGdk::rect):
  10506. (WebCore::ScreenClientGdk::usableRect):
  10507. * platform/gdk/TemporaryLinkStubs.cpp:
  10508. (FrameGdk::historyURL):
  10509. (ChromeClientGdk::windowRect):
  10510. (ChromeClientGdk::setWindowRect):
  10511. (ChromeClientGdk::pageRect):
  10512. (ChromeClientGdk::scaleFactor):
  10513. (ChromeClientGdk::focus):
  10514. (ChromeClientGdk::unfocus):
  10515. (ChromeClientGdk::createWindow):
  10516. (ChromeClientGdk::createModalDialog):
  10517. (ChromeClientGdk::show):
  10518. (ChromeClientGdk::canRunModal):
  10519. (ChromeClientGdk::runModal):
  10520. (ChromeClientGdk::setToolbarsVisible):
  10521. (ChromeClientGdk::toolbarsVisible):
  10522. (ChromeClientGdk::setStatusbarVisible):
  10523. (ChromeClientGdk::statusbarVisible):
  10524. (ChromeClientGdk::setScrollbarsVisible):
  10525. (ChromeClientGdk::scrollbarsVisible):
  10526. (ChromeClientGdk::setMenubarVisible):
  10527. (ChromeClientGdk::menubarVisible):
  10528. (ChromeClientGdk::setResizable):
  10529. * platform/network/ResourceHandleInternal.h:
  10530. (WebCore::ResourceHandleInternal::client):
  10531. * platform/network/gdk/ResourceHandleManager.cpp:
  10532. (WebCore::writeCallback):
  10533. (WebCore::ResourceHandleManager::downloadTimerCallback):
  10534. (WebCore::ResourceHandleManager::remove):
  10535. 2006-11-08 Adam Roben <aroben@apple.com>
  10536. Build fix.
  10537. * rendering/RenderObject.h:
  10538. (WebCore::RenderObject::maxTopMargin):
  10539. (WebCore::RenderObject::maxBottomMargin):
  10540. 2006-11-08 Geoffrey Garen <ggaren@apple.com>
  10541. Reviewed by Anders Carlsson.
  10542. Made Screen a good platform citizen by removing its reference to Page. This
  10543. made a class unnecessary, so all screen fuctions are stand-alone now.
  10544. * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
  10545. when computing the screen's available dimensions.
  10546. 2006-11-08 Sam Weinig <sam.weinig@gmail.com>
  10547. Reviewed by Mitz.
  10548. Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
  10549. Cleanup RenderObject
  10550. * rendering/RenderObject.cpp:
  10551. (WebCore::RenderObject::operator delete):
  10552. (WebCore::RenderObject::createObject):
  10553. (WebCore::RenderObjectCounter::~RenderObjectCounter):
  10554. (WebCore::RenderObject::RenderObject):
  10555. (WebCore::RenderObject::isDescendantOf):
  10556. (WebCore::RenderObject::isRoot):
  10557. (WebCore::RenderObject::addChild):
  10558. (WebCore::RenderObject::removeChildNode):
  10559. (WebCore::RenderObject::removeChild):
  10560. (WebCore::RenderObject::appendChildNode):
  10561. (WebCore::RenderObject::insertChildNode):
  10562. (WebCore::RenderObject::nextInPreOrder):
  10563. (WebCore::RenderObject::nextInPreOrderAfterChildren):
  10564. (WebCore::RenderObject::previousInPreOrder):
  10565. (WebCore::RenderObject::isEditable):
  10566. (WebCore::RenderObject::nextEditable):
  10567. (WebCore::RenderObject::previousEditable):
  10568. (WebCore::RenderObject::firstLeafChild):
  10569. (WebCore::RenderObject::lastLeafChild):
  10570. (WebCore::RenderObject::addLayers):
  10571. (WebCore::RenderObject::removeLayers):
  10572. (WebCore::RenderObject::moveLayers):
  10573. (WebCore::RenderObject::findNextLayer):
  10574. (WebCore::RenderObject::enclosingLayer):
  10575. (WebCore::RenderObject::updateFirstLetter):
  10576. (WebCore::RenderObject::offsetParent):
  10577. (WebCore::RenderObject::scroll):
  10578. (WebCore::RenderObject::hasStaticX):
  10579. (WebCore::RenderObject::setNeedsLayout):
  10580. (WebCore::RenderObject::setChildNeedsLayout):
  10581. (WebCore::RenderObject::markContainingBlocksForLayout):
  10582. (WebCore::RenderObject::containingBlock):
  10583. (WebCore::RenderObject::containingBlockWidth):
  10584. (WebCore::RenderObject::containingBlockHeight):
  10585. (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
  10586. (WebCore::RenderObject::drawBorderArc):
  10587. (WebCore::RenderObject::drawBorder):
  10588. (WebCore::RenderObject::paintBorderImage):
  10589. (WebCore::RenderObject::paintBorder):
  10590. (WebCore::RenderObject::absoluteRects):
  10591. (WebCore::RenderObject::addPDFURLRect):
  10592. (WebCore::RenderObject::addFocusRingRects):
  10593. (WebCore::RenderObject::paintOutline):
  10594. (WebCore::RenderObject::repaint):
  10595. (WebCore::RenderObject::repaintRectangle):
  10596. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  10597. (WebCore::RenderObject::repaintObjectsBeforeLayout):
  10598. (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
  10599. (WebCore::RenderObject::information):
  10600. (WebCore::RenderObject::dump):
  10601. (WebCore::selectStartNode):
  10602. (WebCore::RenderObject::shouldSelect):
  10603. (WebCore::RenderObject::draggableNode):
  10604. (WebCore::RenderObject::createAnonymousBlock):
  10605. (WebCore::RenderObject::handleDynamicFloatPositionChange):
  10606. (WebCore::RenderObject::setStyle):
  10607. (WebCore::RenderObject::setStyleInternal):
  10608. (WebCore::RenderObject::updateBackgroundImages):
  10609. (WebCore::RenderObject::absolutePosition):
  10610. (WebCore::RenderObject::caretRect):
  10611. (WebCore::RenderObject::paddingTop):
  10612. (WebCore::RenderObject::paddingBottom):
  10613. (WebCore::RenderObject::paddingLeft):
  10614. (WebCore::RenderObject::paddingRight):
  10615. (WebCore::RenderObject::tabWidth):
  10616. (WebCore::RenderObject::container):
  10617. (WebCore::RenderObject::removeFromObjectLists):
  10618. (WebCore::RenderObject::destroy):
  10619. (WebCore::RenderObject::arenaDelete):
  10620. (WebCore::RenderObject::hitTest):
  10621. (WebCore::RenderObject::setInnerNode):
  10622. (WebCore::RenderObject::nodeAtPoint):
  10623. (WebCore::RenderObject::verticalPositionHint):
  10624. (WebCore::RenderObject::getVerticalPosition):
  10625. (WebCore::RenderObject::lineHeight):
  10626. (WebCore::RenderObject::invalidateVerticalPositions):
  10627. (WebCore::RenderObject::recalcMinMaxWidths):
  10628. (WebCore::RenderObject::scheduleRelayout):
  10629. (WebCore::RenderObject::setInlineBoxWrapper):
  10630. (WebCore::RenderObject::firstLineStyle):
  10631. (WebCore::RenderObject::getPseudoStyle):
  10632. (WebCore::RenderObject::getTextDecorationColors):
  10633. (WebCore::RenderObject::addDashboardRegions):
  10634. (WebCore::RenderObject::collectDashboardRegions):
  10635. (WebCore::RenderObject::avoidsFloats):
  10636. (WebCore::RenderObject::findCounter):
  10637. (WebCore::RenderObject::backslashAsCurrencySymbol):
  10638. (WebCore::RenderObject::imageChanged):
  10639. (WebCore::RenderObject::previousOffset):
  10640. (WebCore::RenderObject::nextOffset):
  10641. (WebCore::RenderObject::inlineBox):
  10642. * rendering/RenderObject.h:
  10643. (WebCore::):
  10644. (WebCore::RenderObject::renderName):
  10645. (WebCore::RenderObject::parent):
  10646. (WebCore::RenderObject::previousSibling):
  10647. (WebCore::RenderObject::nextSibling):
  10648. (WebCore::RenderObject::firstChild):
  10649. (WebCore::RenderObject::lastChild):
  10650. (WebCore::RenderObject::getOverflowClipRect):
  10651. (WebCore::RenderObject::getClipRect):
  10652. (WebCore::RenderObject::getBaselineOfFirstLineBox):
  10653. (WebCore::RenderObject::setEdited):
  10654. (WebCore::RenderObject::setStaticX):
  10655. (WebCore::RenderObject::setStaticY):
  10656. (WebCore::RenderObject::setPreviousSibling):
  10657. (WebCore::RenderObject::setNextSibling):
  10658. (WebCore::RenderObject::setParent):
  10659. (WebCore::RenderObject::isInlineBlockOrInlineTable):
  10660. (WebCore::RenderObject::isRenderView):
  10661. (WebCore::RenderObject::childrenInline):
  10662. (WebCore::RenderObject::setChildrenInline):
  10663. (WebCore::RenderObject::isAnonymousBlock):
  10664. (WebCore::RenderObject::isDragging):
  10665. (WebCore::RenderObject::needsLayout):
  10666. (WebCore::RenderObject::setMinMaxKnown):
  10667. (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
  10668. (WebCore::RenderObject::setPositioned):
  10669. (WebCore::RenderObject::setRelPositioned):
  10670. (WebCore::RenderObject::setFloating):
  10671. (WebCore::RenderObject::setInline):
  10672. (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
  10673. (WebCore::RenderObject::setReplaced):
  10674. (WebCore::RenderObject::PaintInfo::PaintInfo):
  10675. (WebCore::RenderObject::paintBackgroundExtended):
  10676. (WebCore::RenderObject::calcWidth):
  10677. (WebCore::RenderObject::updateFromElement):
  10678. (WebCore::RenderObject::RepaintInfo::RepaintInfo):
  10679. (WebCore::RenderObject::setOverrideSize):
  10680. (WebCore::RenderObject::setPos):
  10681. (WebCore::RenderObject::setWidth):
  10682. (WebCore::RenderObject::setHeight):
  10683. (WebCore::RenderObject::absolutePositionForContent):
  10684. (WebCore::RenderObject::overflowHeight):
  10685. (WebCore::RenderObject::overflowWidth):
  10686. (WebCore::RenderObject::setOverflowHeight):
  10687. (WebCore::RenderObject::setOverflowWidth):
  10688. (WebCore::RenderObject::overflowLeft):
  10689. (WebCore::RenderObject::overflowTop):
  10690. (WebCore::RenderObject::overflowRect):
  10691. (WebCore::RenderObject::stopAutoscroll):
  10692. (WebCore::RenderObject::collapsedMarginTop):
  10693. (WebCore::RenderObject::collapsedMarginBottom):
  10694. (WebCore::RenderObject::maxTopMargin):
  10695. (WebCore::RenderObject::maxBottomMargin):
  10696. (WebCore::RenderObject::):
  10697. (WebCore::RenderObject::setTable):
  10698. (WebCore::RenderObject::isFloatingOrPositioned):
  10699. (WebCore::RenderObject::containsFloat):
  10700. (WebCore::RenderObject::setSelectionState):
  10701. (WebCore::RenderObject::SelectionInfo::SelectionInfo):
  10702. (WebCore::RenderObject::lowestPosition):
  10703. (WebCore::RenderObject::rightmostPosition):
  10704. (WebCore::RenderObject::leftmostPosition):
  10705. (WebCore::RenderObject::calcVerticalMargins):
  10706. (WebCore::RenderObject::font):
  10707. 2006-11-08 Darin Adler <darin@apple.com>
  10708. Reviewed by Anders.
  10709. - added event parameters to focus-related functions so we can
  10710. implement the "option-tab to all links" behavior without relying
  10711. on a global "current event" -- also makes it work with DOM events
  10712. * page/Frame.h: Removed unneeded includes. Moved some functions
  10713. that were misplaced into the appropriate sections.
  10714. * page/Frame.cpp:
  10715. (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
  10716. PlatformKeyboardEvent to the DOM keyboard event class.
  10717. (WebCore::Frame::tabsToLinks): Added event parameter.
  10718. (WebCore::Frame::tabsToAllControls): Ditto.
  10719. (WebCore::scanForForm): Fixed code that incorrectly assumes
  10720. that an iframe is an HTMLFrameElement (no longer true since Geoff
  10721. changed the class hierarchy a bit).
  10722. (WebCore::Frame::hitTestResultAtPoint): Ditto.
  10723. * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
  10724. that were misplaced into the appropriate sections.
  10725. * bridge/mac/FrameMac.mm:
  10726. (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
  10727. a PlatformKeyboardEvent.
  10728. (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
  10729. and pass event into next/previousFocusNode.
  10730. (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
  10731. the AppKit current event, if it's a keyboard event. Really just a hack that's
  10732. needed to preserve some code we can remove once we deal with the last NSView-
  10733. based form control.
  10734. (WebCore::isKeyboardOptionTab): Added.
  10735. (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
  10736. option (alt) key is down.
  10737. (WebCore::FrameMac::tabsToAllControls): Ditto.
  10738. (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
  10739. call resetMultipleFormSubmissionProtection() explicitly instead.
  10740. (WebCore::FrameMac::mouseDown): Ditto.
  10741. * bridge/mac/WebCoreAXObject.mm:
  10742. (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
  10743. assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
  10744. changed the class hierarchy a bit).
  10745. (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
  10746. prepareForUserAction() to call resetMultipleFormSubmissionProtection()
  10747. explicitly instead.
  10748. * page/FrameView.h:
  10749. * page/FrameView.cpp:
  10750. (WebCore::FrameView::advanceFocus): Changed function to take an
  10751. event parameter, and decide the direction based on the shift key
  10752. modifier instead of a passed-in boolean.
  10753. * dom/Document.h:
  10754. * dom/Document.cpp:
  10755. (WebCore::Document::nextFocusNode): Added event parameter.
  10756. (WebCore::Document::previousFocusNode): Ditto.
  10757. * dom/Node.h:
  10758. * dom/Node.cpp:
  10759. (WebCore::Node::isKeyboardFocusable): Ditto.
  10760. * html/HTMLAnchorElement.h:
  10761. * html/HTMLAnchorElement.cpp:
  10762. (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
  10763. * html/HTMLGenericFormElement.h:
  10764. * html/HTMLGenericFormElement.cpp:
  10765. (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
  10766. * html/HTMLInputElement.h:
  10767. * html/HTMLInputElement.cpp:
  10768. (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
  10769. (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
  10770. * html/HTMLSelectElement.h:
  10771. * html/HTMLSelectElement.cpp:
  10772. (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
  10773. * html/HTMLTextAreaElement.h:
  10774. * html/HTMLTextAreaElement.cpp:
  10775. (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
  10776. * dom/EventTargetNode.cpp:
  10777. (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
  10778. advanceFocus function.
  10779. * platform/TextField.h:
  10780. * platform/mac/TextFieldMac.mm: Removed the non-search field code.
  10781. * platform/mac/WebCoreTextField.h:
  10782. * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
  10783. (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
  10784. call to FrameMac::handleKeyboardOptionTabInView, which is no longer
  10785. needed since the default handler in HTMLInputElement takes care of
  10786. option-tab.
  10787. * platform/mac/SliderMac.mm:
  10788. (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
  10789. and pass event into tabsToAllControls.
  10790. (Slider::focusPolicy): Ditto.
  10791. * rendering/RenderLineEdit.cpp:
  10792. (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
  10793. (WebCore::RenderLineEdit::updateFromElement): Ditto.
  10794. 2006-11-08 Brady Eidson <beidson@apple.com>
  10795. Reviewed by Dave Harrison, Oliver, and Darin
  10796. (oh my! where was superkevin on this one?)
  10797. <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
  10798. More "free nil checking" we lost in the transition from ObjC to C++
  10799. * loader/mac/FrameLoaderMac.mm:
  10800. (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
  10801. (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
  10802. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  10803. Reviewed by Adam.
  10804. Move more code into editor.
  10805. * WebCore.exp:
  10806. * bridge/EditorClient.h:
  10807. * bridge/mac/FrameMac.h:
  10808. * bridge/mac/FrameMac.mm:
  10809. * bridge/mac/WebCoreFrameBridge.h:
  10810. * dom/Document.cpp:
  10811. (WebCore::Document::relinquishesEditingFocus):
  10812. (WebCore::Document::acceptsEditingFocus):
  10813. (WebCore::Document::didBeginEditing):
  10814. (WebCore::Document::didEndEditing):
  10815. * editing/Editor.cpp:
  10816. (WebCore::Editor::indent):
  10817. (WebCore::Editor::outdent):
  10818. * editing/Editor.h:
  10819. * page/Frame.cpp:
  10820. * page/Frame.h:
  10821. 2006-11-08 Beth Dakin <bdakin@apple.com>
  10822. Reviewed by Adam.
  10823. Add ability to HitTestResult to ask if the inner non-shared node is
  10824. content editable.
  10825. * WebCore.exp: Export HitTestResult::isContentEditable()
  10826. * rendering/HitTestResult.cpp:
  10827. (WebCore::HitTestResult::isContentEditable):
  10828. * rendering/HitTestResult.h:
  10829. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  10830. Build fix.
  10831. * WebCore.xcodeproj/project.pbxproj:
  10832. Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
  10833. 2006-11-08 Timothy Hatcher <timothy@apple.com>
  10834. Reviewed by Darin.
  10835. <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
  10836. <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
  10837. Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
  10838. * bindings/objc/DOM.mm:
  10839. (WebCore::kit):
  10840. (-[DOMNode lineBoxRects]):
  10841. (-[DOMRange boundingBox]):
  10842. (-[DOMRange lineBoxRects]):
  10843. * bindings/objc/DOMPrivate.h:
  10844. * dom/Range.cpp:
  10845. (WebCore::Range::boundingBox):
  10846. (WebCore::Range::addLineBoxRects):
  10847. * dom/Range.h:
  10848. * rendering/RenderContainer.cpp:
  10849. (WebCore::RenderContainer::addLineBoxRects):
  10850. * rendering/RenderContainer.h:
  10851. * rendering/RenderObject.cpp:
  10852. (WebCore::RenderObject::addLineBoxRects):
  10853. * rendering/RenderObject.h:
  10854. * rendering/RenderText.cpp:
  10855. (WebCore::RenderText::addLineBoxRects):
  10856. * rendering/RenderText.h:
  10857. 2006-11-08 Anders Carlsson <acarlsson@apple.com>
  10858. Reviewed by Oliver.
  10859. Move methods from the bridge and frame into editor.
  10860. * WebCore.exp:
  10861. * bridge/EditorClient.h:
  10862. * bridge/mac/WebCoreFrameBridge.h:
  10863. * bridge/mac/WebCoreFrameBridge.mm:
  10864. * editing/Editor.cpp:
  10865. (WebCore::Editor::removeFormattingAndStyle):
  10866. (WebCore::Editor::applyStyle):
  10867. (WebCore::Editor::applyParagraphStyle):
  10868. (WebCore::Editor::applyStyleToSelection):
  10869. (WebCore::Editor::applyParagraphStyleToSelection):
  10870. (WebCore::Editor::toggleBold):
  10871. (WebCore::Editor::toggleItalic):
  10872. (WebCore::Editor::selectionStartHasStyle):
  10873. * editing/Editor.h:
  10874. * editing/JSEditor.cpp:
  10875. * page/Frame.cpp:
  10876. * page/Frame.h:
  10877. 2006-11-08 Geoffrey Garen <ggaren@apple.com>
  10878. Reviewed by Beth.
  10879. Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
  10880. be able to dispatch user events even when off-screen, so we have to support
  10881. off-screen windows when handling mouse events.
  10882. * platform/Screen.h:
  10883. * platform/mac/PlatformMouseEventMac.mm:
  10884. (WebCore::globalPoint): Grab the best screen instead of the screen you're
  10885. on, since you might be off-screen.
  10886. * platform/mac/ScreenMac.mm:
  10887. (WebCore::screenForWindow):
  10888. 2006-11-08 Darin Adler <darin@apple.com>
  10889. - fix bug caused by last-minute change to my check-in last night
  10890. that is causing layout tests to hang
  10891. * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
  10892. * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
  10893. a null string into an empty string before calling completeURL.
  10894. 2006-11-08 Brady Eidson <beidson@apple.com>
  10895. Reviewed by Maciej
  10896. If the request has already been aborted, bail out of didFinishLoading()
  10897. immediately. This prevents state change notifications that aren't
  10898. needed.
  10899. * xml/xmlhttprequest.cpp:
  10900. (WebCore::XMLHttpRequest::didFinishLoading):
  10901. 2006-11-08 Darin Adler <darin@apple.com>
  10902. - another attempt to fix Qt build
  10903. * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
  10904. 2006-11-08 Darin Adler <darin@apple.com>
  10905. Reviewed by Geoff.
  10906. - stray bits of my FrameLoader patch that I left out by accident
  10907. * loader/FrameLoader.cpp:
  10908. (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
  10909. inside the FrameLoader class.
  10910. (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
  10911. (WebCore::FrameLoader::clear): Stop the redirection timer.
  10912. (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
  10913. entire function in an if statement. Use less DeprecatedString.
  10914. (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
  10915. (WebCore::FrameLoader::scheduleRefresh): Ditto.
  10916. (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
  10917. inside the FrameLoader class.
  10918. * loader/mac/FrameLoaderMac.mm:
  10919. (WebCore::FrameLoader::load): Ditto.
  10920. (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
  10921. 2006-11-07 Beth Dakin <bdakin@apple.com>
  10922. Reviewed by Hyatt.
  10923. Another go at fix for <rdar://problem/4820814> A crash occurs at
  10924. WebCore::HitTestResult::spellingToolTip() when mousing down on
  10925. iframe at www.macsurfer.com
  10926. The fix from yesterday caused a layout test regression which
  10927. exposed an existing bug. The existing bug was that we allowed text
  10928. nodes to stay in the head tag, but other browsers move them to the
  10929. body. The previous fix also caused a performance regression, which
  10930. was seemingly easy to fix by moving the new clause in
  10931. HTMLParser::handleError() to be below the HTMLElement case.
  10932. * html/HTMLDocument.cpp:
  10933. (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to
  10934. be the child of the document.
  10935. * html/HTMLHeadElement.cpp:
  10936. (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
  10937. whitespace text nodes to be children of the head.
  10938. * html/HTMLHeadElement.h:
  10939. * html/HTMLParser.cpp:
  10940. (WebCore::HTMLParser::handleError): Error case for comment nodes.
  10941. * page/FrameView.cpp:
  10942. (WebCore::FrameView::handleMousePressEvent): Safety-net null check
  10943. for the original crash.
  10944. 2006-11-07 Darin Adler <darin@apple.com>
  10945. - another attempt to fix Qt build
  10946. * loader/icon/IconLoader.h: Added missing include.
  10947. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  10948. Reviewed by Tim Hatcher.
  10949. Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
  10950. None of Screen's responsibilities require up-calls to WebKit or delegates,
  10951. so WebCore can handle it all.
  10952. Moved Screen back from page/ to platform/ because it's a platform
  10953. abstraction again.
  10954. Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
  10955. since the two were always used together.
  10956. Changed pixel depth queries to query the deepest screen. Darin mentioned
  10957. that it might have been a feature, not a bug, to use the main/menubar screen
  10958. regardless of the screen you were on. For scaling and flipping that's not
  10959. the case, but for querying pixel depth I think it is. You want to know
  10960. about the highest pixel depth your content may display on.
  10961. Tests still pass.
  10962. * WebCore.exp:
  10963. * WebCore.xcodeproj/project.pbxproj:
  10964. * page/Page.cpp:
  10965. (WebCore::Page::Page):
  10966. * page/Page.h:
  10967. * page/Screen.cpp: Removed.
  10968. * page/Screen.h: Removed.
  10969. * page/ScreenClient.h: Removed.
  10970. * platform/mac/PlatformMouseEventMac.mm:
  10971. (WebCore::globalPoint):
  10972. * platform/mac/ScreenMac.mm:
  10973. (WebCore::window):
  10974. (WebCore::bestScreen):
  10975. (WebCore::Screen::depth):
  10976. (WebCore::Screen::depthPerComponent):
  10977. (WebCore::Screen::isMonochrome):
  10978. (WebCore::Screen::rect):
  10979. (WebCore::Screen::usableRect):
  10980. (WebCore::toUserSpace):
  10981. (WebCore::toDeviceSpace):
  10982. 2006-11-07 Darin Adler <darin@apple.com>
  10983. - try to fix Qt build
  10984. * CMakeLists.txt: Updated for some file changes.
  10985. * WebCoreSources.bkl: Ditto.
  10986. 2006-11-07 Darin Adler <darin@apple.com>
  10987. Reviewed by Geoff.
  10988. - moved loader code from Frame/FrameMac to FrameLoader
  10989. * WebCore.exp:
  10990. * WebCore.xcodeproj/project.pbxproj:
  10991. * bindings/js/JSXSLTProcessor.h:
  10992. * bindings/js/kjs_events.cpp:
  10993. (KJS::JSLazyEventListener::parseCode):
  10994. * bindings/js/kjs_html.cpp:
  10995. (KJS::JSHTMLDocument::putValueProperty):
  10996. * bindings/js/kjs_navigator.cpp:
  10997. (KJS::Navigator::getValueProperty):
  10998. * bindings/js/kjs_proxy.cpp:
  10999. (WebCore::KJSProxy::initScriptIfNeeded):
  11000. * bindings/js/kjs_window.cpp:
  11001. (KJS::Screen::Screen):
  11002. (KJS::createNewWindow):
  11003. (KJS::Window::getValueProperty):
  11004. (KJS::Window::put):
  11005. (KJS::Window::isSafeScript):
  11006. (KJS::WindowFunc::callAsFunction):
  11007. (KJS::ScheduledAction::execute):
  11008. (KJS::Location::getValueProperty):
  11009. (KJS::Location::put):
  11010. (KJS::Location::toString):
  11011. (KJS::LocationFunc::callAsFunction):
  11012. (KJS::History::getValueProperty):
  11013. (KJS::HistoryFunc::callAsFunction):
  11014. * bindings/objc/DOM.mm:
  11015. (+[DOMNode _nodeWith:WebCore::]):
  11016. * bridge/mac/FrameMac.h:
  11017. * bridge/mac/FrameMac.mm:
  11018. (WebCore::FrameMac::~FrameMac):
  11019. (WebCore::FrameMac::setView):
  11020. (WebCore::FrameMac::setStatusBarText):
  11021. * bridge/mac/WebCoreFrameBridge.h:
  11022. * bridge/mac/WebCoreFrameBridge.mm:
  11023. (-[WebCoreFrameBridge close]):
  11024. (-[WebCoreFrameBridge addData:]):
  11025. (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
  11026. (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
  11027. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  11028. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
  11029. (-[WebCoreFrameBridge baseURL]):
  11030. (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
  11031. (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
  11032. (-[WebCoreFrameBridge canProvideDocumentSource]):
  11033. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  11034. * css/cssparser.cpp:
  11035. (WebCore::CSSParser::parseContent):
  11036. * dom/DOMImplementation.cpp:
  11037. (WebCore::DOMImplementation::createDocument):
  11038. (WebCore::DOMImplementation::createHTMLDocument):
  11039. * dom/DOMImplementation.h:
  11040. * dom/Document.cpp:
  11041. (WebCore::Document::readyState):
  11042. (WebCore::Document::updateTitle):
  11043. (WebCore::Document::open):
  11044. (WebCore::Document::close):
  11045. (WebCore::Document::implicitClose):
  11046. (WebCore::Document::processHttpEquiv):
  11047. (WebCore::Document::referrer):
  11048. (WebCore::Document::finishedParsing):
  11049. * dom/ProcessingInstruction.cpp:
  11050. (WebCore::ProcessingInstruction::checkStyleSheet):
  11051. * dom/XMLTokenizer.cpp:
  11052. (WebCore::XMLTokenizer::endElementNs):
  11053. (WebCore::ignorableWhitespaceHandler):
  11054. (WebCore::XMLTokenizer::notifyFinished):
  11055. * editing/TextIterator.cpp:
  11056. (WebCore::TextIterator::rangeFromLocationAndLength):
  11057. * html/HTMLAnchorElement.cpp:
  11058. (WebCore::HTMLAnchorElement::defaultEventHandler):
  11059. * html/HTMLBaseElement.cpp:
  11060. (WebCore::HTMLBaseElement::process):
  11061. * html/HTMLDocument.cpp:
  11062. (WebCore::HTMLDocument::lastModified):
  11063. * html/HTMLFormElement.cpp:
  11064. (WebCore::HTMLFormElement::formData):
  11065. (WebCore::HTMLFormElement::submit):
  11066. * html/HTMLFrameElementBase.cpp:
  11067. (WebCore::HTMLFrameElementBase::isURLAllowed):
  11068. (WebCore::HTMLFrameElementBase::openURL):
  11069. (WebCore::HTMLFrameElementBase::willRemove):
  11070. * html/HTMLInputElement.cpp:
  11071. (WebCore::HTMLInputElement::setValueFromRenderer):
  11072. * html/HTMLLinkElement.cpp:
  11073. (WebCore::HTMLLinkElement::process):
  11074. * html/HTMLParser.cpp:
  11075. (WebCore::HTMLParser::handleError):
  11076. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  11077. * html/HTMLPreElement.idl:
  11078. * html/HTMLScriptElement.cpp:
  11079. (WebCore::HTMLScriptElement::parseMappedAttribute):
  11080. (WebCore::HTMLScriptElement::insertedIntoDocument):
  11081. * html/HTMLTokenizer.cpp:
  11082. (WebCore::HTMLTokenizer::scriptExecution):
  11083. (WebCore::HTMLTokenizer::parseTag):
  11084. (WebCore::HTMLTokenizer::write):
  11085. (WebCore::HTMLTokenizer::stopParsing):
  11086. (WebCore::HTMLTokenizer::timerFired):
  11087. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  11088. (WebCore::KCanvasFilterQuartz::prepareFilter):
  11089. * ksvg2/svg/SVGAElement.cpp:
  11090. (WebCore::SVGAElement::defaultEventHandler):
  11091. * ksvg2/svg/SVGElement.cpp:
  11092. (WebCore::SVGElement::sendSVGLoadEventIfPossible):
  11093. * loader/DocLoader.cpp:
  11094. (WebCore::DocLoader::setLoadInProgress):
  11095. * loader/FrameLoader.cpp:
  11096. (WebCore::FormSubmission::FormSubmission):
  11097. (WebCore::ScheduledRedirection::):
  11098. (WebCore::ScheduledRedirection::ScheduledRedirection):
  11099. (WebCore::cancelAll):
  11100. (WebCore::getString):
  11101. (WebCore::isBackForwardLoadType):
  11102. (WebCore::numRequests):
  11103. (WebCore::FrameLoader::FrameLoader):
  11104. (WebCore::FrameLoader::~FrameLoader):
  11105. (WebCore::FrameLoader::createWindow):
  11106. (WebCore::FrameLoader::changeLocation):
  11107. (WebCore::FrameLoader::urlSelected):
  11108. (WebCore::FrameLoader::requestFrame):
  11109. (WebCore::FrameLoader::loadSubframe):
  11110. (WebCore::FrameLoader::submitFormAgain):
  11111. (WebCore::FrameLoader::submitForm):
  11112. (WebCore::FrameLoader::stopLoading):
  11113. (WebCore::FrameLoader::stop):
  11114. (WebCore::FrameLoader::closeURL):
  11115. (WebCore::FrameLoader::cancelRedirection):
  11116. (WebCore::FrameLoader::iconURL):
  11117. (WebCore::FrameLoader::didOpenURL):
  11118. (WebCore::FrameLoader::didExplicitOpen):
  11119. (WebCore::FrameLoader::replaceContentsWithScriptResult):
  11120. (WebCore::FrameLoader::executeScript):
  11121. (WebCore::FrameLoader::cancelAndClear):
  11122. (WebCore::FrameLoader::clear):
  11123. (WebCore::FrameLoader::receivedFirstData):
  11124. (WebCore::FrameLoader::responseMIMEType):
  11125. (WebCore::FrameLoader::setResponseMIMEType):
  11126. (WebCore::FrameLoader::begin):
  11127. (WebCore::FrameLoader::write):
  11128. (WebCore::FrameLoader::end):
  11129. (WebCore::FrameLoader::endIfNotLoading):
  11130. (WebCore::FrameLoader::startIconLoader):
  11131. (WebCore::FrameLoader::commitIconURLToIconDatabase):
  11132. (WebCore::FrameLoader::gotoAnchor):
  11133. (WebCore::FrameLoader::finishedParsing):
  11134. (WebCore::FrameLoader::loadDone):
  11135. (WebCore::FrameLoader::checkCompleted):
  11136. (WebCore::FrameLoader::checkEmitLoadEvent):
  11137. (WebCore::FrameLoader::baseURL):
  11138. (WebCore::FrameLoader::baseTarget):
  11139. (WebCore::FrameLoader::completeURL):
  11140. (WebCore::FrameLoader::scheduleRedirection):
  11141. (WebCore::FrameLoader::scheduleLocationChange):
  11142. (WebCore::FrameLoader::scheduleRefresh):
  11143. (WebCore::FrameLoader::isScheduledLocationChangePending):
  11144. (WebCore::FrameLoader::scheduleHistoryNavigation):
  11145. (WebCore::FrameLoader::redirectionTimerFired):
  11146. (WebCore::FrameLoader::encoding):
  11147. (WebCore::FrameLoader::requestObject):
  11148. (WebCore::FrameLoader::shouldUsePlugin):
  11149. (WebCore::FrameLoader::loadPlugin):
  11150. (WebCore::FrameLoader::clearRecordedFormValues):
  11151. (WebCore::FrameLoader::recordFormValue):
  11152. (WebCore::FrameLoader::parentCompleted):
  11153. (WebCore::FrameLoader::outgoingReferrer):
  11154. (WebCore::FrameLoader::lastModified):
  11155. (WebCore::FrameLoader::opener):
  11156. (WebCore::FrameLoader::setOpener):
  11157. (WebCore::FrameLoader::openedByJavaScript):
  11158. (WebCore::FrameLoader::setOpenedByJavaScript):
  11159. (WebCore::FrameLoader::handleFallbackContent):
  11160. (WebCore::FrameLoader::provisionalLoadStarted):
  11161. (WebCore::FrameLoader::userGestureHint):
  11162. (WebCore::FrameLoader::didNotOpenURL):
  11163. (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
  11164. (WebCore::FrameLoader::setEncoding):
  11165. (WebCore::FrameLoader::addData):
  11166. (WebCore::FrameLoader::canCachePage):
  11167. (WebCore::FrameLoader::updatePolicyBaseURL):
  11168. (WebCore::FrameLoader::setPolicyBaseURL):
  11169. (WebCore::FrameLoader::scrollToAnchor):
  11170. (WebCore::FrameLoader::isComplete):
  11171. (WebCore::FrameLoader::isLoadingMainResource):
  11172. (WebCore::FrameLoader::url):
  11173. (WebCore::FrameLoader::startRedirectionTimer):
  11174. (WebCore::FrameLoader::stopRedirectionTimer):
  11175. (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
  11176. (WebCore::FrameLoader::completed):
  11177. (WebCore::FrameLoader::started):
  11178. (WebCore::FrameLoader::containsPlugins):
  11179. (WebCore::FrameLoader::prepareForLoadStart):
  11180. (WebCore::FrameLoader::setupForReplace):
  11181. (WebCore::FrameLoader::setupForReplaceByMIMEType):
  11182. (WebCore::FrameLoader::finalSetupForReplace):
  11183. (WebCore::FrameLoader::load):
  11184. (WebCore::FrameLoader::canTarget):
  11185. (WebCore::FrameLoader::stopLoadingPlugIns):
  11186. (WebCore::FrameLoader::stopLoadingSubresources):
  11187. (WebCore::FrameLoader::stopLoadingSubframes):
  11188. (WebCore::FrameLoader::stopAllLoaders):
  11189. (WebCore::FrameLoader::cancelMainResourceLoad):
  11190. (WebCore::FrameLoader::cancelPendingArchiveLoad):
  11191. (WebCore::FrameLoader::activeDocumentLoader):
  11192. (WebCore::FrameLoader::addPlugInStreamLoader):
  11193. (WebCore::FrameLoader::removePlugInStreamLoader):
  11194. (WebCore::FrameLoader::hasMainResourceLoader):
  11195. (WebCore::FrameLoader::isLoadingSubresources):
  11196. (WebCore::FrameLoader::isLoadingPlugIns):
  11197. (WebCore::FrameLoader::isLoading):
  11198. (WebCore::FrameLoader::addSubresourceLoader):
  11199. (WebCore::FrameLoader::removeSubresourceLoader):
  11200. (WebCore::FrameLoader::releaseMainResourceLoader):
  11201. (WebCore::FrameLoader::setDocumentLoader):
  11202. (WebCore::FrameLoader::documentLoader):
  11203. (WebCore::FrameLoader::setPolicyDocumentLoader):
  11204. (WebCore::FrameLoader::provisionalDocumentLoader):
  11205. (WebCore::FrameLoader::setProvisionalDocumentLoader):
  11206. (WebCore::FrameLoader::state):
  11207. (WebCore::FrameLoader::timeOfLastCompletedLoad):
  11208. (WebCore::FrameLoader::setState):
  11209. (WebCore::FrameLoader::clearProvisionalLoad):
  11210. (WebCore::FrameLoader::markLoadComplete):
  11211. (WebCore::FrameLoader::commitProvisionalLoad):
  11212. (WebCore::FrameLoader::privateBrowsingEnabled):
  11213. (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
  11214. (WebCore::FrameLoader::clientRedirected):
  11215. (WebCore::FrameLoader::shouldReload):
  11216. (WebCore::FrameLoader::closeOldDataSources):
  11217. (WebCore::FrameLoader::open):
  11218. (WebCore::FrameLoader::isStopping):
  11219. (WebCore::FrameLoader::finishedLoading):
  11220. (WebCore::FrameLoader::URL):
  11221. (WebCore::FrameLoader::isArchiveLoadPending):
  11222. (WebCore::FrameLoader::isHostedByObjectElement):
  11223. (WebCore::FrameLoader::isLoadingMainFrame):
  11224. (WebCore::FrameLoader::canShowMIMEType):
  11225. (WebCore::FrameLoader::representationExistsForURLScheme):
  11226. (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
  11227. (WebCore::FrameLoader::cancelContentPolicyCheck):
  11228. (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
  11229. (WebCore::FrameLoader::finishedLoadingDocument):
  11230. (WebCore::FrameLoader::isReplacing):
  11231. (WebCore::FrameLoader::setReplacing):
  11232. (WebCore::FrameLoader::revertToProvisional):
  11233. (WebCore::FrameLoader::subframeIsLoading):
  11234. (WebCore::FrameLoader::willChangeTitle):
  11235. (WebCore::FrameLoader::loadType):
  11236. (WebCore::FrameLoader::stopPolicyCheck):
  11237. (WebCore::FrameLoader::continueAfterContentPolicy):
  11238. (WebCore::FrameLoader::continueAfterWillSubmitForm):
  11239. (WebCore::FrameLoader::didFirstLayout):
  11240. (WebCore::FrameLoader::frameLoadCompleted):
  11241. (WebCore::FrameLoader::firstLayoutDone):
  11242. (WebCore::FrameLoader::isQuickRedirectComing):
  11243. (WebCore::FrameLoader::closeDocument):
  11244. (WebCore::FrameLoader::detachChildren):
  11245. (WebCore::FrameLoader::checkLoadComplete):
  11246. (WebCore::FrameLoader::numPendingOrLoadingRequests):
  11247. (WebCore::FrameLoader::setClient):
  11248. (WebCore::FrameLoader::client):
  11249. (WebCore::FrameLoader::userAgent):
  11250. (WebCore::FrameLoader::createEmptyDocument):
  11251. (WebCore::FrameLoader::tokenizerProcessedData):
  11252. (WebCore::FrameLoader::didTellBridgeAboutLoad):
  11253. (WebCore::FrameLoader::haveToldBridgeAboutLoad):
  11254. (WebCore::FrameLoader::handledOnloadEvents):
  11255. (WebCore::FrameLoader::frameDetached):
  11256. (WebCore::FrameLoader::setTitle):
  11257. (WebCore::FrameLoaderClient::~FrameLoaderClient):
  11258. * loader/FrameLoader.h:
  11259. (WebCore::):
  11260. * loader/FrameLoaderClient.h:
  11261. * loader/PluginDocument.cpp:
  11262. (WebCore::PluginTokenizer::createDocumentStructure):
  11263. (WebCore::PluginTokenizer::writeRawData):
  11264. * loader/ResourceLoader.h:
  11265. * loader/TextResourceDecoder.cpp:
  11266. (WebCore::TextResourceDecoder::checkForHeadCharset):
  11267. * loader/icon/IconLoader.cpp:
  11268. (WebCore::IconLoader::startLoading):
  11269. (WebCore::IconLoader::finishLoading):
  11270. * loader/loader.cpp:
  11271. (WebCore::Loader::didReceiveResponse):
  11272. * loader/mac/DocumentLoaderMac.mm:
  11273. (WebCore::DocumentLoader::~DocumentLoader):
  11274. (WebCore::DocumentLoader::stopLoading):
  11275. (WebCore::DocumentLoader::finishedLoading):
  11276. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  11277. (WebCore::DocumentLoader::setPrimaryLoadComplete):
  11278. * loader/mac/FrameLoaderMac.mm:
  11279. (WebCore::FrameLoader::load):
  11280. (WebCore::FrameLoader::startLoading):
  11281. (WebCore::FrameLoader::cancelMainResourceLoad):
  11282. (WebCore::FrameLoader::receivedMainResourceError):
  11283. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  11284. (WebCore::FrameLoader::commitProvisionalLoad):
  11285. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  11286. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  11287. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
  11288. (WebCore::FrameLoader::detachFromParent):
  11289. (WebCore::FrameLoader::addExtraFieldsToRequest):
  11290. (WebCore::FrameLoader::loadResourceSynchronously):
  11291. (WebCore::FrameLoader::createFrame):
  11292. (WebCore::FrameLoader::objectContentType):
  11293. (WebCore::nsArray):
  11294. (WebCore::FrameLoader::createPlugin):
  11295. (WebCore::FrameLoader::redirectDataToPlugin):
  11296. (WebCore::FrameLoader::createJavaAppletWidget):
  11297. (WebCore::FrameLoader::partClearedInBegin):
  11298. (WebCore::FrameLoader::saveDocumentState):
  11299. (WebCore::FrameLoader::restoreDocumentState):
  11300. (WebCore::FrameLoader::overrideMediaType):
  11301. (WebCore::FrameLoader::mainResourceData):
  11302. (WebCore::FrameLoader::canGoBackOrForward):
  11303. (WebCore::FrameLoader::originalRequestURL):
  11304. (WebCore::FrameLoader::getHistoryLength):
  11305. (WebCore::FrameLoader::goBackOrForward):
  11306. (WebCore::FrameLoader::historyURL):
  11307. (WebCore::FrameLoader::didFinishLoad):
  11308. * loader/mac/LoaderFunctionsMac.mm:
  11309. (WebCore::ServeSynchronousRequest):
  11310. (WebCore::CheckCacheObjectStatus):
  11311. * loader/mac/ResourceLoaderMac.mm:
  11312. (WebCore::ResourceLoader::cancel):
  11313. * loader/mac/SubresourceLoaderMac.mm:
  11314. (WebCore::SubresourceLoader::create):
  11315. * loader/qt/FrameLoaderQt.cpp: Added.
  11316. (WebCore::FrameLoader::submitForm):
  11317. (WebCore::FrameLoader::urlSelected):
  11318. (WebCore::FrameLoader::setTitle):
  11319. (WebCore::FrameLoader::createFrame):
  11320. (WebCore::FrameLoader::objectContentType):
  11321. (WebCore::FrameLoader::createPlugin):
  11322. (WebCore::FrameLoader::createJavaAppletWidget):
  11323. (WebCore::FrameLoader::originalRequestURL):
  11324. * page/DOMWindow.cpp:
  11325. (WebCore::DOMWindow::document):
  11326. * page/Frame.cpp:
  11327. (WebCore::Frame::~Frame):
  11328. (WebCore::Frame::reparseConfiguration):
  11329. (WebCore::Frame::shouldDragAutoNode):
  11330. (WebCore::Frame::prepareForUserAction):
  11331. (WebCore::FramePrivate::FramePrivate):
  11332. (WebCore::FramePrivate::~FramePrivate):
  11333. * page/Frame.h:
  11334. * page/FramePrivate.h:
  11335. * page/FrameView.cpp:
  11336. (WebCore::FrameView::layout):
  11337. (WebCore::FrameView::mediaType):
  11338. * page/FrameView.h:
  11339. * page/PageState.cpp:
  11340. (WebCore::PageState::PageState):
  11341. (WebCore::PageState::restoreJavaScriptState):
  11342. * platform/mac/CookieJar.mm:
  11343. (WebCore::setCookies):
  11344. * platform/mac/TextCodecMac.cpp:
  11345. * platform/mac/WebFontCache.mm:
  11346. (+[WebFontCache fontWithFamily:traits:size:]):
  11347. * platform/network/cf/ResourceHandleCFNet.cpp:
  11348. (WebCore::ResourceHandle::start):
  11349. * platform/network/mac/ResourceHandleMac.mm:
  11350. (WebCore::ResourceHandle::start):
  11351. * platform/qt/FrameQt.cpp:
  11352. * platform/qt/FrameQt.h:
  11353. * rendering/RenderApplet.cpp:
  11354. (WebCore::RenderApplet::createWidgetIfNecessary):
  11355. * rendering/RenderBlock.h:
  11356. * rendering/RenderPartObject.cpp:
  11357. (WebCore::isURLAllowed):
  11358. (WebCore::RenderPartObject::updateWidget):
  11359. * xml/DOMParser.cpp:
  11360. (WebCore::DOMParser::parseFromString):
  11361. * xml/XSLTProcessor.cpp:
  11362. (WebCore::XSLTProcessor::createDocumentFromSource):
  11363. * xml/xmlhttprequest.cpp:
  11364. (WebCore::XMLHttpRequest::getResponseXML):
  11365. 2006-11-07 Anders Carlsson <acarlsson@apple.com>
  11366. Reviewed by Geoff.
  11367. Get rid of some duplicate editing enums. Also rename EAlter to EAlteration.
  11368. * bridge/mac/FrameMac.mm:
  11369. (WebCore::FrameMac::registerCommandForUndoOrRedo):
  11370. * bridge/mac/WebCoreFrameBridge.h:
  11371. * bridge/mac/WebCoreFrameBridge.mm:
  11372. (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
  11373. (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
  11374. (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::verticalDistance:]):
  11375. (-[WebCoreFrameBridge selectionGranularity]):
  11376. (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
  11377. (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
  11378. (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
  11379. (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
  11380. (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
  11381. * editing/SelectionController.cpp:
  11382. (WebCore::SelectionController::setModifyBias):
  11383. (WebCore::SelectionController::modify):
  11384. * editing/SelectionController.h:
  11385. (WebCore::SelectionController::):
  11386. * editing/TextGranularity.h:
  11387. 2006-11-07 Brady Eidson <beidson@apple.com>
  11388. Reviewed by Maciej
  11389. Changed the check for "top level frame" to something much more valid
  11390. * page/Frame.cpp:
  11391. (WebCore::Frame::endIfNotLoading):
  11392. 2006-11-07 Beth Dakin <bdakin@apple.com>
  11393. Reviewed by Hyatt (yesterday).
  11394. Here is part of my patch from yesterday that is safe to roll back
  11395. in. It will make the BuildBot happy.
  11396. * rendering/HitTestResult.cpp:
  11397. (WebCore::HitTestResult::spellingToolTip): Null-check
  11398. m_innerNonSharedNode.
  11399. 2006-11-07 Darin Adler <darin@apple.com>
  11400. * loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse):
  11401. Comment grammar fix.
  11402. 2006-11-07 Darin Adler <darin@apple.com>
  11403. Rolled out change for <rdar://problem/4820814>.
  11404. Beth's planning on landing a new change for it soon, but in the mean time
  11405. we need layout tests succeeding again.
  11406. 2006-11-07 Darin Adler <darin@apple.com>
  11407. Reviewed by Brady.
  11408. - fix <rdar://problem/4752069> 9A274: World of Warcraft Launcher
  11409. crashes on launch in WebCore::ResourceLoader::start
  11410. No layout test, because this depends on cached icons, although there's
  11411. perhaps a way to write a test for it with some further ingenuity.
  11412. * loader/icon/IconLoader.h: Make IconLoader inherit from Noncopyable
  11413. to make explicit the fact that it can't be successfully copied.
  11414. Remove notifyIconChanged function and put the contents in the caller.
  11415. This eliminates the need for IconLoaderMac.mm. Added finishedLoading
  11416. and clearLoadingState functions to share code. Removed m_url, since the
  11417. resource handle already stores the URL. Renamed m_resourceLoader to
  11418. m_handle to reflect the class's name change. Removed the 4096-byte
  11419. inline buffer from m_data, since the malloc savings is not sufficient
  11420. to offset the additional memory use. Removed m_httpStatusCode because
  11421. we can instead cancel the load when we get a status code that reflects
  11422. failure. Added m_loadIsInProgress boolean because we need to detect
  11423. loads that complete during the ResourceHandle::create function call.
  11424. * loader/icon/IconLoader.cpp:
  11425. (WebCore::IconLoader::IconLoader): Initialize m_loadIsInProgress.
  11426. Don't initialize m_httpStatusCode.
  11427. (WebCore::IconLoader::~IconLoader): Updated for name change.
  11428. (WebCore::IconLoader::startLoading): Added code to use the
  11429. m_loadIsInProgress flag to detect if the load completed while inside
  11430. the ResourceHandle::create function. Removed code to set m_url.
  11431. (WebCore::IconLoader::stopLoading): Call clearLoadingState to share
  11432. more code.
  11433. (WebCore::IconLoader::didReceiveResponse): Kill the ResourceHandle
  11434. and finish loading if the HTTP status code indicates failure.
  11435. (WebCore::IconLoader::didReceiveData): Removed assertion that checks
  11436. the ResourceHandle, since we can't do that any more.
  11437. (WebCore::IconLoader::didFinishLoading): Changed to call finishLoading
  11438. so we can share code with the new didReceiveResponse code path.
  11439. (WebCore::IconLoader::finishLoading): Moved code here from the
  11440. didFinishLoading callback. Pass a URL when calling
  11441. commitIconURLToIconDatabase. Call notifyIconChanged directly here
  11442. instead of using a separate function. Call clearLoadingState to
  11443. share more code with stopLoading.
  11444. (WebCore::IconLoader::clearLoadingState): Added.
  11445. * loader/mac/IconLoaderMac.mm: Removed.
  11446. * WebCore.xcodeproj/project.pbxproj: Removed IconLoaderMac.mm.
  11447. 2006-11-06 David Harrison <harrison@apple.com>
  11448. Reviewed by Darin.
  11449. <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
  11450. * editing/pasteboard/3976872-expected.txt:
  11451. * editing/pasteboard/4076267-2-expected.txt:
  11452. * editing/pasteboard/4076267-3-expected.txt:
  11453. * editing/pasteboard/4076267-expected.txt:
  11454. * editing/pasteboard/8145-1-expected.txt:
  11455. * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
  11456. * editing/pasteboard/paste-match-style-001-expected.txt:
  11457. * editing/pasteboard/paste-match-style-002-expected.txt:
  11458. * editing/pasteboard/paste-text-019-expected.txt:
  11459. * editing/pasteboard/pasting-tabs-expected.txt:
  11460. Updated because pasting text with no newlines does not use intermediate div.
  11461. * editing/markup.cpp:
  11462. (WebCore::fillContainerFromString):
  11463. First parameter is now a Container so a fragment can be passed.
  11464. (WebCore::createFragmentFromText):
  11465. A string with no newlines gets added inline, rather than being put into a paragraph.
  11466. 2006-11-06 Beth Dakin <bdakin@apple.com>
  11467. Reviewed by Hyatt.
  11468. Fix for <rdar://problem/4820814> A crash occurs at
  11469. WebCore::HitTestResult::spellingToolTip() when mousing down on
  11470. iframe at www.macsurfer.com
  11471. The bug here is that the source of the iframe is only a comment,
  11472. and we were not properly constructing the frame because it was
  11473. sort-of empty but not.
  11474. * html/HTMLDocument.cpp:
  11475. (WebCore::HTMLDocument::childAllowed): newChild is NOT allowed if
  11476. it is a comment node.
  11477. * html/HTMLParser.cpp:
  11478. (WebCore::HTMLParser::handleError): if n is a comment node and
  11479. there is no head, we create a head, insert in the document, and add
  11480. the comment node as a child. This is what Firefox does too.
  11481. * page/FrameView.cpp:
  11482. (WebCore::FrameView::handleMousePressEvent): Safe-guard for the
  11483. fix. It is possible to get a mouse event without a target node, so
  11484. we null check it. (Of course, in the case of this bug, it should
  11485. not have been null, but it is a good thing to check for anyway.
  11486. * rendering/HitTestResult.cpp:
  11487. (WebCore::HitTestResult::spellingToolTip): Null-check
  11488. m_innerNonSharedNode.
  11489. 2006-11-06 Justin Garcia <justin.garcia@apple.com>
  11490. Reviewed by harrison
  11491. <rdar://problem/4641880>
  11492. Setting bullets to existing text grabs subsequent paragraph
  11493. When a selection ends at the start of a paragraph, we rarely paint
  11494. the selection gap before that paragraph, because there often is no gap.
  11495. In a case like this, it's not obvious to the user that the selection
  11496. ends "inside" that paragraph, so it would be confusing if
  11497. InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.
  11498. * editing/FormatBlockCommand.cpp:
  11499. (WebCore::FormatBlockCommand::doApply): Moved the check for editability of
  11500. the selection to a more appropriate place. Change the endingSelection
  11501. if it ends at the start of a paragraph.
  11502. * editing/IndentOutdentCommand.cpp:
  11503. (WebCore::IndentOutdentCommand::doApply): Ditto.
  11504. * editing/InsertListCommand.cpp:
  11505. (WebCore::InsertListCommand::doApply): Ditto.
  11506. 2006-11-06 Brady Eidson <beidson@apple.com>
  11507. Reviewed by Sarge
  11508. <rdar://problem/4822911> - ASSERTION was a little overzealous.
  11509. Toned it down a bit.
  11510. * xml/xmlhttprequest.cpp:
  11511. (WebCore::XMLHttpRequest::didFinishLoading): Toned down assertion
  11512. 2006-11-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  11513. Reviewed by Maciej.
  11514. Linux\Gdk build fixes.
  11515. * loader/icon/IconDatabase.cpp:
  11516. * loader/icon/SQLStatement.h:
  11517. * platform/gdk/ChromeClientGdk.h: Added.
  11518. (WebCore::ChromeClientGdk::~ChromeClientGdk):
  11519. * platform/gdk/CursorGdk.cpp:
  11520. (WebCore::pointerCursor):
  11521. * platform/gdk/FrameGdk.cpp:
  11522. (WebCore::doScroll):
  11523. (WebCore::FrameGdk::FrameGdk):
  11524. (WebCore::FrameGdk::submitForm):
  11525. (WebCore::FrameGdk::urlSelected):
  11526. (WebCore::FrameGdk::openURL):
  11527. (WebCore::FrameGdk::handleGdkEvent):
  11528. * platform/gdk/FrameGdk.h:
  11529. (WebCore::FrameGdk::client):
  11530. * platform/gdk/RenderPopupMenuGdk.cpp:
  11531. (WebCore::PopupMenu::updateFromElement):
  11532. * platform/gdk/ScreenGdk.cpp:
  11533. * platform/gdk/TemporaryLinkStubs.cpp:
  11534. (Slider::focusPolicy):
  11535. (WebCore::ServeSynchronousRequest):
  11536. (FrameGdk::goBackOrForward):
  11537. (FrameGdk::getHistoryLength):
  11538. (FrameGdk::historyURL):
  11539. (ChromeClientGdk::canRunModal):
  11540. (ChromeClientGdk::runModal):
  11541. (WebCore::systemBeep):
  11542. (WebCore::CachedResource::setPlatformResponse):
  11543. (Path::transform):
  11544. (ResourceLoader::loadsBlocked):
  11545. (IconLoader::notifyIconChanged):
  11546. * platform/network/gdk/ResourceHandleManager.cpp:
  11547. (WebCore::writeCallback):
  11548. (WebCore::ResourceHandleManager::downloadTimerCallback):
  11549. (WebCore::ResourceHandleManager::remove):
  11550. (WebCore::ResourceHandleManager::add):
  11551. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  11552. build fix.
  11553. * WebCore.xcodeproj/project.pbxproj:
  11554. 2006-11-06 Geoffrey Garen <ggaren@apple.com>
  11555. Reviewed by Maciej, Anders, Darin.
  11556. Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
  11557. Fixed a minor where WebCore would always assume it was displayed on the
  11558. monitor containing the menubar. window.open and window.showModalDialog
  11559. are now cross-platform.
  11560. Layout tests, manual-tests/show-modal-dialog, and manual-tests/
  11561. window-open-features-parsing all pass. I verified the new screen functionality
  11562. by running in DRT, and checking whether WebCore knew it was off-screen.
  11563. Some refactoring remains, as all were not pleased by this design. I see
  11564. in my future another patch.
  11565. * bindings/js/kjs_window.cpp: Screen is now a stand-alone object with a
  11566. client, to encapsulate asking the platform questions about the screen occupied by
  11567. the page. (Previously, we always assumed we were on screen 0, which was a bug.)
  11568. * bridge/mac/WebCoreFrameBridge.mm:
  11569. (createMouseEventFromDraggingInfo): Reversed argument order, to match other
  11570. functions.
  11571. (-[WebCoreFrameBridge dragSourceMovedTo:]): ditto
  11572. (-[WebCoreFrameBridge dragSourceEndedAt:operation:]): ditto
  11573. * bridge/mac/WebCoreFrameNamespaces.h: Removed. Dead Code.
  11574. * bridge/mac/WebCoreFrameNamespaces.mm: Removed. Dead Code.
  11575. * bridge/mac/WebCorePageBridge.h: Removed. Dead Code.
  11576. * bridge/mac/WebCorePageBridge.mm: Removed. Dead Code.
  11577. * manual-tests/window-open-features-parsing.html: Updated for accuracy.
  11578. (In this case, neither size nor position is specified, so you should
  11579. get the default window size and position.)
  11580. * page/Screen.cpp: Added. Includes screen-related helper functions used
  11581. in WebCore and WebKit.
  11582. * platform/PlatformMouseEvent.h: Exported common code so it doesn't have
  11583. to be duplicated. Renamed "position" to "point" since both were used,
  11584. and "point" seemed clearer.
  11585. * platform/Screen.h: Removed. Dead Code.
  11586. * platform/mac/LoggingMac.mm: Added. Moved code here from WebCorePageBridge
  11587. initialization.
  11588. 2006-11-06 Graham Dennis <graham.dennis@gmail.com>
  11589. Reviewed by Tim Hatcher.
  11590. Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
  11591. Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
  11592. No layout tests added as this must be tested manually by the test
  11593. WebCore/manual-tests/contenteditable-link.html
  11594. * WebCore.exp: Exported HitTestResult::isLiveLink().
  11595. * html/HTMLAnchorElement.cpp:
  11596. (WebCore::HTMLAnchorElement::HTMLAnchorElement):
  11597. (WebCore::HTMLAnchorElement::defaultEventHandler):
  11598. (WebCore::HTMLAnchorElement::isLiveLink):
  11599. * html/HTMLAnchorElement.h: added m_wasShiftKeyDownOnMouseDown variable
  11600. to track shift key status.
  11601. * manual-tests/contenteditable-link.html: Added description about link
  11602. dragging behaviour.
  11603. * rendering/HitTestResult.cpp:
  11604. (WebCore::HitTestResult::isLiveLink): Added.
  11605. * rendering/HitTestResult.h:
  11606. 2006-11-06 Brady Eidson <beidson@apple.com>
  11607. Reviewed by Oliver
  11608. Fixes <rdar://problem/4812674> and http://bugs.webkit.org/show_bug.cgi?id=11530
  11609. For now, we have to not load favicons when we have no Document - linking directly
  11610. to PDFs being the common case
  11611. * loader/icon/IconLoader.cpp:
  11612. (WebCore::IconLoader::startLoading): Check for the document and return if none
  11613. 2006-11-06 Brady Eidson <beidson@apple.com>
  11614. Reviewed by Dave Harrison
  11615. <rdar://problem/4801066>
  11616. Added a critical null frameLoader() check
  11617. * loader/mac/MainResourceLoaderMac.mm:
  11618. (WebCore::MainResourceLoader::loadNow):
  11619. 2006-11-06 David Harrison <harrison@apple.com>
  11620. Reviewed by Darin.
  11621. <rdar://problem/4813973> Pressing delete key to remove empty quoted line leaves cursor mis-positioned
  11622. Test:
  11623. * editing/deleting/delete-br-012.html
  11624. * editing/DeleteSelectionCommand.cpp:
  11625. (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
  11626. Update m_endingPosition when preventing merge.
  11627. Also removed setting of m_mergeBlocksAfterDelete when this function returns true, because is is not checked in this case.
  11628. 2006-11-06 Mark Rowe <bdash@webkit.org>
  11629. Reviewed by Maciej.
  11630. http://bugs.webkit.org/show_bug.cgi?id=11526
  11631. Bug 11526: REGRESSION(r17610): Layout test failure in svg/custom/create-metadata-element.svg
  11632. Update DOMNode::toString to always use className rather than preferring nodeName.
  11633. * bindings/js/kjs_dom.cpp:
  11634. (KJS::DOMNode::toString): Match the format returned by valueOf.
  11635. 2006-11-06 Oliver Hunt <oliver@apple.com>
  11636. Reviewed by Maciej.
  11637. Fix RTL text in SVG to have correct positioning
  11638. * rendering/SVGRootInlineBox.cpp:
  11639. (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
  11640. 2006-11-06 Alexey Proskuryakov <ap@webkit.org>
  11641. Reviewed by Maciej.
  11642. http://bugs.webkit.org/show_bug.cgi?id=11517
  11643. REGRESSION: Flash clicks/interactivity not working properly
  11644. * bridge/mac/FrameMac.mm:
  11645. (WebCore::FrameMac::handleMouseMoveEvent):
  11646. (WebCore::FrameMac::handleMouseReleaseEvent):
  11647. Restore parts of event dispatching that were removed when fixing
  11648. bug 7323 - just bypass those for subframes.
  11649. 2006-11-05 Darin Adler <darin@apple.com>
  11650. - quick attempt to fix the no-SVG build
  11651. * platform/graphics/svg/SVGResource.cpp:
  11652. * platform/graphics/svg/SVGResource.h:
  11653. * platform/graphics/svg/SVGResourceClipper.cpp:
  11654. * platform/graphics/svg/SVGResourceClipper.h:
  11655. * platform/graphics/svg/SVGResourceImage.h:
  11656. * platform/graphics/svg/SVGResourceMarker.cpp:
  11657. * platform/graphics/svg/SVGResourceMarker.h:
  11658. * platform/graphics/svg/SVGResourceMasker.cpp:
  11659. * platform/graphics/svg/SVGResourceMasker.h:
  11660. * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
  11661. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  11662. * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
  11663. * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
  11664. Added #ifdef SVG_SUPPORT to these files.
  11665. 2006-11-05 Darin Fisher <darin@chromium.org>
  11666. Reviewed & landed by Maciej.
  11667. Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
  11668. * platform/win/ResourceLoaderWin.cpp:
  11669. (WebCore::transferJobStatusCallback):
  11670. (WebCore::ResourceLoader::start):
  11671. 2006-11-04 Maciej Stachowiak <mjs@apple.com>
  11672. Reviewed by Oliver.
  11673. - moved FormData and FormDataStream to platform/network directory
  11674. * WebCore.xcodeproj/project.pbxproj:
  11675. * bridge/mac/WebCoreFrameBridge.mm:
  11676. * loader/FormData.cpp: Removed.
  11677. * loader/FormData.h: Removed.
  11678. * loader/mac/FormDataStream.h: Removed.
  11679. * loader/mac/FormDataStream.m: Removed.
  11680. * loader/mac/FrameLoaderMac.mm:
  11681. * loader/mac/SubresourceLoaderMac.mm:
  11682. * platform/network/mac/FormDataStreamMac.h: Added.
  11683. * platform/network/mac/FormDataStreamMac.mm: Added.
  11684. * platform/network/mac/ResourceRequestMac.mm:
  11685. 2006-11-05 Steve Falkenburg <sfalken@apple.com>
  11686. Fix build breaks
  11687. * loader/DocumentLoader.h:
  11688. * platform/win/ScreenWin.cpp:
  11689. 2006-11-05 Darin Adler <darin@apple.com>
  11690. Reviewed by Geoff.
  11691. - more preparation for splitting up Frame into sub-pieces
  11692. - removed unnecessary includes from Frame.h
  11693. * page/Frame.h: Removed unneeded includes and forward declarations.
  11694. Added additional forward declarations. Removed the constant
  11695. NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
  11696. Created sections of functions to be moved into Chrome, Editor,
  11697. EventHandler, FrameLoader, SelectionController, and the Platform
  11698. directory, as well as marking one function for deletion.
  11699. * page/FramePrivate.h: Removed the definition of the constructor and
  11700. destructor and removed unnecessary includes.
  11701. * page/FrameView.h: Removed unneeded forward declarations and friend
  11702. declarations. Created a section of functions and data to be moved into
  11703. EventHandler.
  11704. * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
  11705. Created sections of functions and data to be moved into Chrome,
  11706. Editor, EventHandler, FrameLoader, and the Platform directory.
  11707. * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
  11708. Removed unused methods areScrollbarsVisible,
  11709. nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
  11710. * page/Frame.cpp:
  11711. (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
  11712. to include KURL.h just for the KURL default constructor.
  11713. (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
  11714. (WebCore::FramePrivate::~FramePrivate): Ditto.
  11715. * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
  11716. booleans, scrollbarMoved and cleared funcitons.
  11717. (WebCore::FrameView::clear): Moved the code from the cleared
  11718. function in here.
  11719. (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
  11720. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
  11721. for changes to header.
  11722. * editing/SelectionController.cpp:
  11723. (WebCore::SelectionController::setSelection):
  11724. (WebCore::SelectionController::xPosForVerticalArrowNavigation):
  11725. Moved NoXPosForVerticalArrowNavigation into this file.
  11726. * bindings/js/kjs_events.cpp:
  11727. * bindings/js/kjs_html.cpp:
  11728. * bindings/js/kjs_window.cpp:
  11729. * bridge/mac/WebCoreAXObject.mm:
  11730. * bridge/mac/WebCoreFrameBridge.mm:
  11731. * css/cssstyleselector.cpp:
  11732. * dom/Document.cpp:
  11733. * dom/Element.cpp:
  11734. * dom/EventTargetNode.cpp:
  11735. * dom/MouseRelatedEvent.cpp:
  11736. * dom/XMLTokenizer.cpp:
  11737. * html/HTMLBaseElement.cpp:
  11738. * html/HTMLDocument.cpp:
  11739. * html/HTMLEmbedElement.cpp:
  11740. * html/HTMLFrameElementBase.cpp:
  11741. * html/HTMLGenericFormElement.cpp:
  11742. * html/HTMLObjectElement.cpp:
  11743. * html/HTMLTokenizer.cpp:
  11744. * loader/mac/FrameLoaderMac.mm:
  11745. * page/PageState.cpp:
  11746. * rendering/RenderApplet.cpp:
  11747. * rendering/RenderBlock.cpp:
  11748. * rendering/RenderLayer.cpp:
  11749. * rendering/RenderObject.cpp:
  11750. * rendering/RenderPartObject.cpp:
  11751. * rendering/RenderTreeAsText.cpp:
  11752. * xml/XSLTProcessor.cpp:
  11753. Added includes as needed to keep compiling, since there are fewer
  11754. includes in Frame.h.
  11755. 2006-11-05 Alexey Proskuryakov <ap@nypop.com>
  11756. Reviewed by Dave Harrison.
  11757. http://bugs.webkit.org/show_bug.cgi?id=11402
  11758. REGRESSION: onChange does not work anymore for 1st item in popup
  11759. * html/HTMLSelectElement.cpp:
  11760. (WebCore::HTMLSelectElement::HTMLSelectElement):
  11761. (WebCore::HTMLSelectElement::reset):
  11762. Set m_lastOnChangeIndex to -1.
  11763. 2006-11-04 Darin Adler <darin@apple.com>
  11764. Reviewed by Anders.
  11765. - fix http://bugs.webkit.org/show_bug.cgi?id=11453
  11766. REGRESSION: Status bar always shows cancelled opening the page
  11767. * platform/network/mac/ResourceHandleMac.mm:
  11768. (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
  11769. Since the subresource owns the resource handle, there's no need to cancel.
  11770. This arrangement is only temporary, anyway, since Maciej will soon change
  11771. things so that the subresource loader uses the resource handle and the
  11772. resource handle doesn't know anything about the subresource loader.
  11773. 2006-11-04 Darin Adler <darin@apple.com>
  11774. Reviewed by Maciej.
  11775. - converted more of the loader machinery to work with cross-platform
  11776. data structures instead of Macintosh-specific ones
  11777. converted most uses of NSURL to KURL and NSEvent to DOM Event in
  11778. loader classes
  11779. moved download function out of FrameLoader.h to avoid reference to
  11780. NSURLConnection
  11781. added DOM Event parameters to various functions so that the handlers
  11782. can use the DOM Event instead of the global "current NSEvent";
  11783. includes Frame::submitForm, HTMLFormElement::prepareSubmit,
  11784. HTMLFormElement::submit, FrameLoader::load
  11785. moved the setMainFrame call that hands ownership to the Page
  11786. into one of the Frame constructors, and removed it from all
  11787. the clients
  11788. removed const from Event parameter to the urlSelected function
  11789. (we rarely use const with DOM elements)
  11790. removed some redundant includes and declarations from various
  11791. header files
  11792. removed NSURL parameter from userAgent function -- if we need it we
  11793. can add it back, but converting from NSURL to KURL and back is
  11794. inefficient enough that it's best to have it out for now (since it's
  11795. been unused for years) -- if we add it back, we can choose an
  11796. appropriate parameter type that's always inexpensive to pass
  11797. did some basic cleanup in the IconLoader class, including removing
  11798. an unnecessary loop that added icon data a byte at a time
  11799. renamed safeLoad to load, since it's no different from the other
  11800. FrameLoader load functions, safety-wise
  11801. fixed some code that was trying to distinguish null frame name from
  11802. empty string frame name -- both should be handled the same, but callers
  11803. were doing it by checking for empty and turning it into null (in a way
  11804. that was causing extra round trips between NSString and WebCore::String)
  11805. corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
  11806. and got rid of case-insensitive compares of methods
  11807. * WebCore.exp:
  11808. * WebCore.xcodeproj/project.pbxproj:
  11809. * bindings/js/kjs_navigator.cpp:
  11810. (KJS::Navigator::getValueProperty):
  11811. * bridge/mac/FrameMac.h:
  11812. * bridge/mac/FrameMac.mm:
  11813. (WebCore::FrameMac::submitForm):
  11814. (WebCore::FrameMac::urlSelected):
  11815. (WebCore::FrameMac::userAgent):
  11816. * bridge/mac/FrameViewMac.mm:
  11817. * bridge/mac/WebCoreAXObject.mm:
  11818. (-[WebCoreAXObject rendererForView:]):
  11819. * bridge/mac/WebCorePageBridge.h:
  11820. * bridge/mac/WebCorePageBridge.mm:
  11821. * bridge/mac/WebCoreSettings.mm:
  11822. * bridge/win/FrameWin.cpp:
  11823. (WebCore::FrameWin::urlSelected):
  11824. (WebCore::FrameWin::submitForm):
  11825. * bridge/win/FrameWin.h:
  11826. * dom/MouseRelatedEvent.cpp:
  11827. * dom/MouseRelatedEvent.h:
  11828. * dom/UIEvent.cpp:
  11829. (WebCore::UIEvent::~UIEvent):
  11830. * dom/UIEvent.h:
  11831. * dom/UIEventWithKeyState.h:
  11832. * dom/XMLTokenizer.cpp:
  11833. (WebCore::openFunc):
  11834. * html/HTMLAnchorElement.cpp:
  11835. (WebCore::HTMLAnchorElement::defaultEventHandler):
  11836. * html/HTMLButtonElement.cpp:
  11837. (WebCore::HTMLButtonElement::defaultEventHandler):
  11838. * html/HTMLFormElement.cpp:
  11839. (WebCore::HTMLFormElement::submitClick):
  11840. (WebCore::HTMLFormElement::prepareSubmit):
  11841. (WebCore::HTMLFormElement::submit):
  11842. * html/HTMLFormElement.h:
  11843. * html/HTMLInputElement.cpp:
  11844. (WebCore::HTMLInputElement::defaultEventHandler):
  11845. * html/HTMLSelectElement.cpp:
  11846. (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
  11847. * loader/DocumentLoader.h:
  11848. * loader/FrameLoader.h:
  11849. * loader/FrameLoaderClient.h:
  11850. * loader/NavigationAction.h:
  11851. (WebCore::NavigationAction::event):
  11852. * loader/icon/IconLoader.cpp:
  11853. (WebCore::IconLoader::create):
  11854. (WebCore::IconLoader::startLoading):
  11855. (WebCore::IconLoader::didReceiveData):
  11856. (WebCore::IconLoader::didFinishLoading):
  11857. * loader/icon/IconLoader.h:
  11858. * loader/loader.cpp:
  11859. * loader/mac/DocumentLoaderMac.mm:
  11860. (WebCore::DocumentLoader::URL):
  11861. (WebCore::DocumentLoader::unreachableURL):
  11862. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  11863. (WebCore::DocumentLoader::URLForHistory):
  11864. * loader/mac/FrameLoaderMac.mm:
  11865. (WebCore::FrameLoader::load):
  11866. (WebCore::FrameLoader::willSendRequest):
  11867. (WebCore::FrameLoader::clientRedirected):
  11868. (WebCore::FrameLoader::shouldReload):
  11869. (WebCore::FrameLoader::notifyIconChanged):
  11870. (WebCore::FrameLoader::URL):
  11871. (WebCore::FrameLoader::reloadAllowingStaleData):
  11872. (WebCore::FrameLoader::reload):
  11873. (WebCore::FrameLoader::didChangeTitle):
  11874. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  11875. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  11876. (WebCore::FrameLoader::post):
  11877. (WebCore::FrameLoader::addExtraFieldsToRequest):
  11878. (WebCore::FrameLoader::loadResourceSynchronously):
  11879. * loader/mac/IconLoaderMac.mm:
  11880. (WebCore::IconLoader::notifyIconChanged):
  11881. * loader/mac/LoaderFunctionsMac.mm:
  11882. * loader/mac/MainResourceLoaderMac.mm:
  11883. (WebCore::shouldLoadAsEmptyDocument):
  11884. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  11885. * loader/mac/NavigationActionMac.mm:
  11886. (WebCore::navigationType):
  11887. (WebCore::NavigationAction::NavigationAction):
  11888. * loader/mac/ResourceLoaderMac.mm:
  11889. * loader/mac/SubresourceLoaderMac.mm:
  11890. * page/Frame.cpp:
  11891. (WebCore::Frame::Frame):
  11892. (WebCore::Frame::urlSelected):
  11893. (WebCore::Frame::submitFormAgain):
  11894. (WebCore::Frame::submitForm):
  11895. (WebCore::Frame::endIfNotLoading):
  11896. (WebCore::Frame::hitTestResultAtPoint):
  11897. * page/Frame.h:
  11898. * page/FramePrivate.h:
  11899. * platform/gdk/FrameGdk.cpp:
  11900. (WebCore::FrameGdk::FrameGdk):
  11901. (WebCore::FrameGdk::submitForm):
  11902. (WebCore::FrameGdk::urlSelected):
  11903. * platform/gdk/FrameGdk.h:
  11904. * platform/mac/TextFieldMac.mm:
  11905. * platform/network/HTTPHeaderMap.h:
  11906. * platform/network/ResourceHandle.h:
  11907. * platform/network/ResourceHandleClient.h:
  11908. * platform/network/ResourceHandleInternal.h:
  11909. * platform/network/mac/ResourceHandleMac.mm:
  11910. * platform/network/mac/ResourceResponseMac.h:
  11911. * platform/network/mac/ResourceResponseMac.mm:
  11912. (-[NSURLResponse WebCore]):
  11913. * platform/network/win/ResourceHandleWin.cpp:
  11914. * platform/qt/FrameQt.cpp:
  11915. (WebCore::FrameQt::submitForm):
  11916. (WebCore::FrameQt::urlSelected):
  11917. * platform/qt/FrameQt.h:
  11918. * rendering/RenderLineEdit.cpp:
  11919. (WebCore::RenderLineEdit::returnPressed):
  11920. * xml/XSLTProcessor.cpp:
  11921. (WebCore::docLoaderFunc):
  11922. * xml/xmlhttprequest.cpp:
  11923. 2006-11-03 Maciej Stachowiak <mjs@apple.com>
  11924. Reviewed by Adele.
  11925. - replaced receivedRedirect with new willSendRequest delegate
  11926. - removed most mac-specific loader functions
  11927. - use ResourceResponse more in loader code
  11928. * WebCore.xcodeproj/project.pbxproj: Add new files.
  11929. * bridge/mac/WebCoreFrameBridge.mm:
  11930. (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
  11931. for CachedResource method renames.
  11932. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  11933. Ditto.
  11934. * loader/CachedCSSStyleSheet.cpp:
  11935. (WebCore::CachedCSSStyleSheet::checkNotify): simplified
  11936. based on ResourceResponse
  11937. * loader/CachedImage.cpp:
  11938. (WebCore::CachedImage::createImage): adapt for ResourceResponse
  11939. * loader/CachedResource.cpp:
  11940. (WebCore::CachedResource::CachedResource): store a ResourceResponse;
  11941. platform response is now called platformResponse and expiration date
  11942. is removed.
  11943. (WebCore::CachedResource::~CachedResource): ditto
  11944. (WebCore::CachedResource::isExpired): ditto
  11945. * loader/CachedResource.h:
  11946. (WebCore::CachedResource::platformResponse): ditto
  11947. (WebCore::CachedResource::setResponse): ditto
  11948. (WebCore::CachedResource::canDelete): ditto
  11949. * loader/LoaderFunctions.h:
  11950. * loader/loader.cpp:
  11951. (WebCore::Loader::receivedResponse): Adjusted for renames.
  11952. (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
  11953. in the CachedResource.
  11954. * loader/loader.h:
  11955. * loader/mac/FormDataStream.h:
  11956. * loader/mac/FormDataStream.m:
  11957. (WebCore::getStreamFormDatas): Rearranged things so it's
  11958. possible to get a FormData back out of a form data stream.
  11959. (WebCore::formCreate): ditto
  11960. (WebCore::formFinalize): ditto
  11961. (WebCore::httpBodyFromStream): ditto
  11962. * loader/mac/ImageDocumentMac.mm:
  11963. (WebCore::finishImageLoad): s/response/platformResponse/
  11964. * loader/mac/LoaderFunctionsMac.mm:
  11965. (WebCore::CheckCacheObjectStatus): ditto
  11966. (WebCore::CachedResource::setPlatformResponse): ditto
  11967. * loader/mac/SubresourceLoaderMac.mm:
  11968. (WebCore::SubresourceLoader::willSendRequest): send redirect
  11969. to client appropriately
  11970. * platform/network/ResourceHandle.h:
  11971. * platform/network/ResourceHandleClient.h:
  11972. (WebCore::ResourceHandleClient::willSendRequest): new entry
  11973. point for SubresourceLoader, dispatch to client.
  11974. * platform/network/ResourceRequest.h:
  11975. (WebCore::ResourceRequest::allowHTTPCookies): implemented
  11976. (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
  11977. * platform/network/ResourceResponse.h:
  11978. (WebCore::ResourceResponse::ResourceResponse): initialize expiration
  11979. date(!)
  11980. * platform/network/cf/FormDataStreamCFNet.cpp: Added.
  11981. (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
  11982. (WebCore::openNextStream): ditto
  11983. (WebCore::formCreate): ditto
  11984. (WebCore::formFinalize): ditto
  11985. (WebCore::formCanRead): ditto
  11986. (WebCore::formEventCallback): ditto
  11987. (WebCore::setHTTPBody): ditto
  11988. (WebCore::httpBodyFromStream): ditto
  11989. * platform/network/cf/FormDataStreamCFNet.h: Added.
  11990. * platform/network/cf/ResourceHandleCFNet.cpp:
  11991. (WebCore::willSendRequest): implemented
  11992. (WebCore::ResourceHandle::start): use new ResourceRequest stuff
  11993. * platform/network/cf/ResourceResponseCFNet.cpp:
  11994. (WebCore::getResourceResponse): do nothing for a null response
  11995. * platform/network/mac/ResourceHandleMac.mm:
  11996. (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
  11997. * platform/network/mac/ResourceRequestMac.h: Added.
  11998. * platform/network/mac/ResourceRequestMac.mm: Added.
  11999. (WebCore::getResourceRequest): Added way to convert an NSURLRequest
  12000. to a ResourceRequest.
  12001. (WebCore::nsURLRequest): Opposite of the above.
  12002. * platform/network/cf/ResourceRequestCFNet.h: Added.
  12003. * platform/network/cf/ResourceRequestCFNet.cpp: Added.
  12004. (WebCore::getResourceRequest): Added way to convert an CFURLRequest
  12005. to a ResourceRequest.
  12006. (WebCore::cfURLRequest): Opposite of the above.
  12007. * xml/xmlhttprequest.cpp:
  12008. (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
  12009. adjusted.
  12010. * xml/xmlhttprequest.h:
  12011. 2006-11-04 Darin Adler <darin@apple.com>
  12012. Change suggested by Mitz.
  12013. - fix http://bugs.webkit.org/show_bug.cgi?id=11514
  12014. REGRESSION (r17438): Repro crash when opening a web archive
  12015. * bridge/mac/WebCorePageState.mm:
  12016. (-[WebCorePageState dealloc]): Add null check.
  12017. (-[WebCorePageState finalize]): Ditto.
  12018. 2006-11-04 Bertrand Guiheneuf <guiheneuf@gmail.com>
  12019. Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Peter Kasting).
  12020. http://bugs.webkit.org/show_bug.cgi?id=11433
  12021. Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
  12022. * WebCore.vcproj/WebCore/WebCore.vcproj:
  12023. Added platform/graphics platform/network and platform/network/win to headers search paths
  12024. Created platform/graphics and platform/network filters in hierarchy
  12025. Moved GraphicsContext and GraphicsTypes to their respective filters
  12026. Added EditorClient.h
  12027. Added FrameLoader* files in loader/
  12028. Added HitTest* files in rendering/
  12029. Added Editor.* files in editing/
  12030. Added DeleteButton.* and DeleteButtonController.* in editing/
  12031. * bridge/win/ChromeClientWin.h: Added.
  12032. (WebCore::ChromeClientWin::~ChromeClientWin):
  12033. * bridge/win/EditorClientWin.h: Added.
  12034. (WebCore::EditorClientWin::~EditorClientWin):
  12035. * bridge/win/FrameWin.cpp:
  12036. (WebCore::FrameWin::FrameWin):
  12037. (WebCore::FrameWin::urlSelected):
  12038. (WebCore::FrameWin::submitForm):
  12039. (WebCore::FrameWin::createNewWindow):
  12040. * bridge/win/FrameWin.h:
  12041. Added EditorClient parameter to constructor
  12042. Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
  12043. Removed openURL() and openURLRequest from class definition
  12044. * bridge/win/PageWin.cpp:
  12045. * platform/AffineTransform.h:
  12046. * platform/cairo/AffineTransformCairo.cpp: Added.
  12047. (WebCore::AffineTransform::AffineTransform):
  12048. (WebCore::AffineTransform::setMatrix):
  12049. (WebCore::AffineTransform::map):
  12050. (WebCore::AffineTransform::mapRect):
  12051. (WebCore::AffineTransform::isIdentity):
  12052. (WebCore::AffineTransform::m11):
  12053. (WebCore::AffineTransform::m12):
  12054. (WebCore::AffineTransform::m21):
  12055. (WebCore::AffineTransform::m22):
  12056. (WebCore::AffineTransform::dx):
  12057. (WebCore::AffineTransform::dy):
  12058. (WebCore::AffineTransform::reset):
  12059. (WebCore::AffineTransform::scale):
  12060. (WebCore::AffineTransform::rotate):
  12061. (WebCore::AffineTransform::translate):
  12062. (WebCore::AffineTransform::shear):
  12063. (WebCore::AffineTransform::det):
  12064. (WebCore::AffineTransform::invert):
  12065. (WebCore::AffineTransform::operator cairo_matrix_t):
  12066. (WebCore::AffineTransform::operator== ):
  12067. (WebCore::AffineTransform::operator*= ):
  12068. (WebCore::AffineTransform::operator* ):
  12069. * platform/cairo/GraphicsContextCairo.cpp:
  12070. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  12071. * platform/network/win/ResourceHandleWin.cpp:
  12072. (WebCore::ResourceHandle::onHandleCreated):
  12073. (WebCore::ResourceHandle::start):
  12074. (WebCore::ResourceHandle::fileLoadTimer):
  12075. (WebCore::ResourceHandle::cancel):
  12076. * platform/win/TemporaryLinkStubs.cpp:
  12077. (WebCore::FrameWin::goBackOrForward):
  12078. (WebCore::FrameWin::getHistoryLength):
  12079. (WebCore::FrameWin::historyURL):
  12080. (WebCore::ServeSynchronousRequest):
  12081. (WebCore::ChromeClientWin::canRunModal):
  12082. (WebCore::ChromeClientWin::runModal):
  12083. (WebCore::EditorClientWin::shouldDeleteRange):
  12084. (WebCore::EditorClientWin::shouldShowDeleteInterface):
  12085. (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
  12086. (WebCore::EditorClientWin::isGrammarCheckingEnabled):
  12087. (WebCore::EditorClientWin::spellCheckerDocumentTag):
  12088. (WebCore::Path::transform):
  12089. (WebCore::PopupMenu::updateFromElement):
  12090. (WebCore::ResourceLoader::loadsBlocked):
  12091. (WebCore::systemBeep):
  12092. * rendering/RenderThemeWin.cpp:
  12093. (WebCore::RenderThemeWin::paintButton):
  12094. (WebCore::RenderThemeWin::paintTextField):
  12095. 2006-11-04 Alexey Proskuryakov <ap@nypop.com>
  12096. Reviewed by Maciej.
  12097. http://bugs.webkit.org/show_bug.cgi?id=11448
  12098. &lang; and &rang; entities are mapped to the incorrect Unicode codepoint
  12099. * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
  12100. 2006-11-03 Mark Rowe <bdash@webkit.org>
  12101. Reviewed by Oliver.
  12102. Update Windows and Qt project files for file removals in r17585.
  12103. * CMakeLists.txt:
  12104. * WebCore.vcproj/WebCore/WebCore.vcproj:
  12105. 2006-11-03 Zack Rusin <zack@kde.org>
  12106. Reviewed by Maciej.
  12107. The patch fixes text field drawing on the Qt platform.
  12108. * platform/qt/RenderThemeQt.cpp:
  12109. (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
  12110. render the text field
  12111. 2006-11-03 Oliver Hunt <oliver@apple.com>
  12112. Reviewed by Tim.
  12113. Correct incorrect call to SetCursor
  12114. * rendering/RenderFrameSet.cpp:
  12115. (WebCore::RenderFrameSet::userResize):
  12116. 2006-11-03 Adele Peterson <adele@apple.com>
  12117. Reviewed by Oliver.
  12118. Removed DeprecatedRenderSelect and ListBox classes.
  12119. * WebCore.xcodeproj/project.pbxproj:
  12120. * css/html4.css:
  12121. * html/HTMLOptionElement.h:
  12122. * html/HTMLSelectElement.cpp:
  12123. (WebCore::HTMLSelectElement::recalcStyle):
  12124. (WebCore::HTMLSelectElement::isKeyboardFocusable):
  12125. (WebCore::HTMLSelectElement::isMouseFocusable):
  12126. (WebCore::HTMLSelectElement::createRenderer):
  12127. (WebCore::HTMLSelectElement::setRecalcListItems):
  12128. (WebCore::HTMLSelectElement::notifyOptionSelected):
  12129. (WebCore::HTMLSelectElement::defaultEventHandler):
  12130. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  12131. (WebCore::HTMLSelectElement::updateListBoxSelection):
  12132. * html/HTMLSelectElement.h:
  12133. * platform/ListBox.h: Removed.
  12134. * platform/mac/FontCacheMac.mm:
  12135. * platform/mac/ListBoxMac.mm: Removed.
  12136. * platform/win/TemporaryLinkStubs.cpp:
  12137. * rendering/DeprecatedRenderSelect.cpp: Removed.
  12138. * rendering/DeprecatedRenderSelect.h: Removed.
  12139. 2006-11-03 Maciej Stachowiak <mjs@apple.com>
  12140. Not reviewed, fix for accidental commit.
  12141. - rolled back more of the accidentall commit that I forgot.
  12142. * platform/network/mac/ResourceRequestMac.h: Removed.
  12143. * platform/network/mac/ResourceRequestMac.mm: Removed.
  12144. 2006-11-03 Maciej Stachowiak <mjs@apple.com>
  12145. Not reviewed, fix for accidental commit.
  12146. - roll back some network changes accidentally committed with a previous patch.
  12147. * WebCore.xcodeproj/project.pbxproj:
  12148. * bridge/mac/WebCoreFrameBridge.mm:
  12149. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  12150. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  12151. * loader/CachedCSSStyleSheet.cpp:
  12152. (WebCore::CachedCSSStyleSheet::checkNotify):
  12153. * loader/CachedImage.cpp:
  12154. (WebCore::CachedImage::createImage):
  12155. * loader/CachedResource.cpp:
  12156. (WebCore::CachedResource::CachedResource):
  12157. (WebCore::CachedResource::~CachedResource):
  12158. (WebCore::CachedResource::setExpireDate):
  12159. (WebCore::CachedResource::isExpired):
  12160. * loader/CachedResource.h:
  12161. (WebCore::CachedResource::response):
  12162. * loader/LoaderFunctions.h:
  12163. * loader/loader.cpp:
  12164. (WebCore::Loader::receivedResponse):
  12165. (WebCore::Loader::didReceivedResponse):
  12166. * loader/loader.h:
  12167. * loader/mac/FormDataStream.h:
  12168. * loader/mac/FormDataStream.m:
  12169. (WebCore::formCreate):
  12170. (WebCore::formFinalize):
  12171. * loader/mac/ImageDocumentMac.mm:
  12172. (WebCore::finishImageLoad):
  12173. * loader/mac/LoaderFunctionsMac.mm:
  12174. (WebCore::CheckCacheObjectStatus):
  12175. (WebCore::CachedResource::setResponse):
  12176. * loader/mac/SubresourceLoaderMac.mm:
  12177. (WebCore::SubresourceLoader::willSendRequest):
  12178. * platform/network/ResourceHandle.h:
  12179. * platform/network/ResourceHandleClient.h:
  12180. (WebCore::ResourceHandleClient::receivedRedirect):
  12181. * platform/network/ResourceRequest.h:
  12182. * platform/network/ResourceResponse.h:
  12183. (WebCore::ResourceResponse::ResourceResponse):
  12184. * platform/network/mac/ResourceHandleMac.mm:
  12185. (WebCore::ResourceHandle::redirectedToURL):
  12186. * xml/xmlhttprequest.cpp:
  12187. (WebCore::XMLHttpRequest::receivedRedirect):
  12188. * xml/xmlhttprequest.h:
  12189. 2006-11-03 Anders Carlsson <acarlsson@apple.com>
  12190. Rubber-stamped by Oliver.
  12191. Remove these, they have been merged with SVGRenderTreeAsText.
  12192. * rendering/SVGRenderAsText.cpp: Removed.
  12193. * rendering/SVGRenderAsText.h: Removed.
  12194. 2006-11-03 Anders Carlsson <acarlsson@apple.com>
  12195. Build fix.
  12196. * platform/network/cf/ResourceHandleCFNet.cpp:
  12197. (WebCore::willSendRequest):
  12198. 2006-11-02 Geoffrey Garen <ggaren@apple.com>
  12199. Reviewed by Darin, Beth.
  12200. First cut at factoring Page's UIDelegate-related functions into Chrome
  12201. and ChromeClient.
  12202. Layout tests pass.
  12203. * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
  12204. setBridge method to replace it.
  12205. (WebCore::Page::setBridge):
  12206. * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
  12207. that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
  12208. and, now that it uses PassRefPtr, can't be.
  12209. * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
  12210. * page/Page.h:
  12211. (WebCore::Page::dragCaretController): Made this function non-const so that
  12212. m_dragCaretController doesn't have to be mutable.
  12213. 2006-11-03 Alexey Proskuryakov <ap@nypop.com>
  12214. Reviewed by Adele.
  12215. http://bugs.webkit.org/show_bug.cgi?id=7323
  12216. REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
  12217. * bridge/mac/FrameMac.h: Moved drag source information to a static variable
  12218. in FrameMac.mm. There can be only one drag active at any moment, and having
  12219. this information here was making sharing this information between
  12220. subframes hard.
  12221. * bridge/mac/FrameMac.mm:
  12222. (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
  12223. (WebCore::FrameMac::freeClipboard):
  12224. (WebCore::FrameMac::dragHysteresisExceeded):
  12225. (WebCore::FrameMac::handleMouseMoveEvent):
  12226. (WebCore::FrameMac::handleMouseReleaseEvent):
  12227. (WebCore::FrameMac::mouseDown):
  12228. (WebCore::FrameMac::dragSourceMovedTo):
  12229. (WebCore::FrameMac::dragSourceEndedAt):
  12230. (WebCore::FrameMac::dispatchDragSrcEvent):
  12231. Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
  12232. Also removed some old code that was forwarding mouse events to subviews to make
  12233. HTML editing work in subframes.
  12234. * page/FrameView.cpp:
  12235. (WebCore::FrameView::updateDragAndDrop):
  12236. (WebCore::FrameView::cancelDragAndDrop):
  12237. (WebCore::FrameView::performDragAndDrop):
  12238. Forward events to subframes for dispatching - this fixes drag target events.
  12239. 2006-11-03 Zack Rusin <zack@kde.org>
  12240. Reviewed by Tim.
  12241. Fixing compile.
  12242. * platform/qt/LoaderFunctionsQt.cpp:
  12243. (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
  12244. 2006-11-01 Zack Rusin <zack@kde.org>
  12245. Reviewed by Maciej.
  12246. Moving the word/sentence seperators into a file of their own
  12247. and implementing findWordBoundary.
  12248. * CMakeLists.txt:
  12249. * platform/qt/TemporaryLinkStubs.cpp:
  12250. * platform/qt/TextBoundaries.cpp: Added.
  12251. (WebCore::findNextSentenceFromIndex):
  12252. (WebCore::findSentenceBoundary):
  12253. (WebCore::findNextWordFromIndex):
  12254. (WebCore::findWordBoundary):
  12255. 2006-11-03 Zack Rusin <zack@kde.org>
  12256. Reviewed by Maciej.
  12257. Compile on both KDE and Qt platforms
  12258. * CMakeLists.txt: add zlib explicitly
  12259. * platform/network/qt/ResourceHandleManager.cpp:
  12260. (WebCore::ResourceHandleManager::self):
  12261. (WebCore::QtJob::QtJob):
  12262. (WebCore::QtJob::timerEvent): Integrate both implementations
  12263. so that moc can parse it
  12264. (WebCore::ResourceHandleManager::deliverJobData):
  12265. (WebCore::ResourceHandleManager::remove):
  12266. * platform/network/qt/ResourceHandleManager.h:
  12267. 2006-11-03 Maciej Stachowiak <mjs@apple.com>
  12268. No review, suggested by Mitz.
  12269. - fix a #if to be #ifdef
  12270. * platform/graphics/svg/cg/SVGResourceImageCg.cpp:
  12271. 2006-11-03 Zack Rusin <zack@kde.org>
  12272. Reviewed and landed by Maciej.
  12273. Compile on the Qt platform.
  12274. * ksvg2/misc/KCanvasRenderingStyle.h:
  12275. * platform/qt/RenderThemeQt.cpp:
  12276. (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
  12277. 2006-11-03 Zack Rusin <zack@kde.org>
  12278. Reviewed by Hyatt. Landed by Maciej.
  12279. Adding setPlatformPen/setPlatformFont/setPlatformFillColor
  12280. to graphics context to be able to set consistant state
  12281. on the platform specific painter without having to change
  12282. fill/stroke/font on every operation. This fixes color/stroke/fill
  12283. and font handling in the Qt port.
  12284. * platform/graphics/GraphicsContext.cpp:
  12285. (WebCore::GraphicsContext::setFont):
  12286. (WebCore::GraphicsContext::setPen):
  12287. (WebCore::GraphicsContext::setFillColor):
  12288. (WebCore::GraphicsContext::setPlatformPen):
  12289. (WebCore::GraphicsContext::setPlatformFillColor):
  12290. (WebCore::GraphicsContext::setPlatformFont):
  12291. * platform/graphics/GraphicsContext.h:
  12292. * platform/qt/GraphicsContextQt.cpp:
  12293. (WebCore::toQtCompositionMode):
  12294. (WebCore::toQtLineCap):
  12295. (WebCore::toQtLineJoin):
  12296. (WebCore::toQPenStyle):
  12297. (WebCore::penToQPen):
  12298. (WebCore::TransparencyLayer::TransparencyLayer):
  12299. (WebCore::GraphicsContext::addRoundedRectClip):
  12300. (WebCore::GraphicsContext::setPlatformFont):
  12301. (WebCore::GraphicsContext::setPlatformPen):
  12302. (WebCore::GraphicsContext::setPlatformFillColor):
  12303. * platform/qt/ScrollViewCanvasQt.cpp:
  12304. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  12305. (WebCore::ScrollViewCanvasQt::paintEvent):
  12306. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  12307. * platform/qt/ScrollViewCanvasQt.h:
  12308. 2006-11-02 Adele Peterson <adele@apple.com>
  12309. Reviewed by Anders.
  12310. - Fix for http://bugs.webkit.org/show_bug.cgi?id=9581
  12311. REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.
  12312. Test: fast/forms/textarea-no-scroll-on-blur.html
  12313. * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::forwardEvent):
  12314. On blur, only scroll back to the start for text fields.
  12315. 2006-11-02 Anders Carlsson <acarlsson@apple.com>
  12316. Another build fix.
  12317. * rendering/RenderFileUploadControl.cpp:
  12318. (WebCore::RenderFileUploadControl::paintObject):
  12319. 2006-11-02 Anders Carlsson <acarlsson@apple.com>
  12320. Build fix.
  12321. * page/FramePrivate.h:
  12322. (WebCore::FramePrivate::FramePrivate):
  12323. 2006-11-02 Kevin Ollivier <kevino@theolliviers.com>
  12324. Reviewed by Geoff, landed by Anders.
  12325. Fix dependency problems caused when running move-js-headers.sh
  12326. * move-js-headers.sh:
  12327. Use cp -p instead of just cp so that the modification time
  12328. of the original files are used.
  12329. 2006-11-02 Adam Roben <aroben@apple.com>
  12330. Reviewed by Tim H, landed by Anders.
  12331. Fixes http://bugs.webkit.org/show_bug.cgi?id=10840
  12332. REGRESSION: Shadow of file upload button is clipped
  12333. * rendering/RenderFileUploadControl.cpp:
  12334. (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
  12335. height to keep from clipping in the shadow
  12336. 2006-11-02 Eike Preuss <mail@eikepreuss.de>
  12337. Reviewed by Maciej, landed by Anders.
  12338. * platform/qt/ScrollViewQt.cpp: Fix translation of coordinates between
  12339. content and window. ScrollViewQt already receives correct content
  12340. coordinates from QScrollArea.
  12341. (WebCore::ScrollView::contentsToWindow):
  12342. (WebCore::ScrollView::windowToContents):
  12343. 2006-11-02 Simon Hausmann <hausmann@kde.org>
  12344. Reviewed by Maciej, landed by Anders
  12345. * CMakeLists.txt: Make linkage against KDE libraries conditional
  12346. * platform/network/qt/ResourceHandleManager.cpp: Added a simple
  12347. Qt base resource handler that supports only requests to the
  12348. local filesystem. Used when compiling without KDE support.
  12349. ResourceHandleManager.cpp/h are to be split up into ResourceHandleManagerKDE
  12350. and ResourceHandleManagerQt in the future, as well as QtJob.cpp/h.
  12351. (WebCore::QtJob::QtJob):
  12352. (WebCore::QtJob::timerEvent):
  12353. (WebCore::ResourceHandleManager::ResourceHandleManager):
  12354. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  12355. (WebCore::ResourceHandleManager::self):
  12356. (WebCore::ResourceHandleManager::remove):
  12357. (WebCore::ResourceHandleManager::add):
  12358. (WebCore::ResourceHandleManager::cancel):
  12359. (WebCore::ResourceHandleManager::deliverJobData):
  12360. * platform/network/qt/ResourceHandleManager.h:
  12361. * platform/qt/FrameQtClient.cpp:
  12362. (WebCore::FrameQtClientDefault::runJavaScriptAlert):
  12363. (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
  12364. (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
  12365. * platform/qt/LoaderFunctionsQt.cpp: Use the Qt messagebox and
  12366. input dialog functions when compiling without KDE support
  12367. (WebCore::ServeSynchronousRequest):
  12368. 2006-11-02 David Carson <dacarson@gmail.com>
  12369. Reviewed by Geoff, landed by Anders.
  12370. Fix for: http://bugs.webkit.org/show_bug.cgi?id=11471
  12371. Initializing variable in constructor.
  12372. * page/FramePrivate.h:
  12373. (WebCore::FramePrivate::FramePrivate):
  12374. 2006-11-02 Anders Carlsson <acarlsson@apple.com>
  12375. Reviewed by Geoff.
  12376. Use CFMutableURLRequestRef instead of CFHTTPMessageRef since not all URL requests are http requests.
  12377. * platform/network/cf/ResourceHandleCFNet.cpp:
  12378. (WebCore::addHeadersFromHashMap):
  12379. Don't set all headers at once since that clears any previous headers set.
  12380. (WebCore::ResourceHandle::start):
  12381. 2006-11-02 Adele Peterson <adele@apple.com>
  12382. Reviewed by Mitz and Geoff.
  12383. - Fix for:
  12384. <rdar://problem/4650271> REGRESSION(NativeTextArea): Textareas don't get scrollbars when text gets too big for content area (10105)
  12385. <rdar://problem/4650813> REGRESSION(tiger-leopard): typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
  12386. <rdar://problem/4658779> REGRESSION: Text selection is weird in textareas in Trac wiki editing pages
  12387. Test: fast/forms/textarea-scrollbar.html
  12388. To avoid some of our flexbox bugs for textareas, we're moving the text controls back to RenderBlock. This should make them
  12389. a lot more stable. In the future, when we've worked out more of the flexbox kinks, we may want to consider moving them back.
  12390. * rendering/RenderTextControl.h: Convert text controls back to RenderBlock instead of RenderFlexibleBox.
  12391. * rendering/RenderTextControl.cpp:
  12392. (WebCore::RenderTextControl::RenderTextControl):
  12393. (WebCore::RenderTextControl::setStyle):
  12394. (WebCore::RenderTextControl::createDivStyle):
  12395. (WebCore::RenderTextControl::updateFromElement):
  12396. (WebCore::RenderTextControl::calcHeight):
  12397. (WebCore::RenderTextControl::baselinePosition):
  12398. (WebCore::RenderTextControl::nodeAtPoint):
  12399. (WebCore::RenderTextControl::layout): Set the inner div's height explicitly before doing a normal layout.
  12400. (WebCore::RenderTextControl::scrollWidth):
  12401. (WebCore::RenderTextControl::scrollHeight):
  12402. (WebCore::RenderTextControl::scrollLeft):
  12403. (WebCore::RenderTextControl::scrollTop):
  12404. * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout): Make subtree layout optimization work for textareas.
  12405. 2006-11-02 John Sullivan <sullivan@apple.com>
  12406. Reviewed by Geoff Garen
  12407. * editing/Selection.cpp:
  12408. (WebCore::Selection::showTreeForThis):
  12409. this debugging method now displays start offset and end offset, at Darin's suggestion
  12410. 2006-11-01 Justin Garcia <justin.garcia@apple.com>
  12411. Reviewed by darin
  12412. <rdar://problem/4062865>
  12413. Copy/paste of a select element fails to include the options
  12414. * editing/SelectionController.cpp:
  12415. (WebCore::SelectionController::modify): Added paragraphBoundary.
  12416. * editing/htmlediting.cpp:
  12417. (WebCore::canHaveChildrenForEditing): Added checks for input elements
  12418. and textareas. Insertion operations would fail when performed just
  12419. before/after one of these elements b/c the content would be put inside
  12420. the element.
  12421. (WebCore::enclosingNodeWithTag): Fixed a problem when calling these in non
  12422. editable content, and made the code to stop at an root faster (don't check
  12423. isDescendantOf on every iteration).
  12424. (WebCore::enclosingNodeOfType): Ditto.
  12425. (WebCore::enclosingList): Ditto.
  12426. (WebCore::enclosingListChild): Ditto. Added a FIXME, this function seems
  12427. inappropriately named.
  12428. * editing/markup.cpp:
  12429. (WebCore::startMarkup): Use the text node's value instead of its rendered
  12430. content for text nodes inside select elements. One might also turn off
  12431. annotation when createMarkup enters a select element, but createMarkup
  12432. is iterative, not recursive, so doing so would be complicated.
  12433. (WebCore::createMarkup): Add markup for unrendered nodes if they are
  12434. descendants of a select element.
  12435. * editing/visible_units.cpp:
  12436. (WebCore::startOfParagraph): Migrate to isBlock/enclosingBlock. Fixes bug
  12437. where various replaced elements can't be copied when they are the only
  12438. thing selected.
  12439. (WebCore::endOfParagraph): Ditto.
  12440. 2006-11-01 Oliver Hunt <oliver@apple.com>
  12441. Reviewed by Adam.
  12442. Converting more or kcanvas/quartz from Obj-C to C++
  12443. Minor SVG updates
  12444. compatibility fixes
  12445. * WebCore.xcodeproj/project.pbxproj:
  12446. * kcanvas/device/KRenderingPaintServer.h:
  12447. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Added.
  12448. (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
  12449. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: Removed.
  12450. * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Added.
  12451. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: Removed.
  12452. * kcanvas/device/quartz/QuartzSupport.h:
  12453. * ksvg2/css/SVGCSSStyleSelector.cpp:
  12454. * ksvg2/misc/KCanvasRenderingStyle.h:
  12455. * ksvg2/scripts/cssmakeprops:
  12456. * ksvg2/scripts/cssmakevalues:
  12457. * ksvg2/scripts/make_names.pl:
  12458. * ksvg2/svg/SVGAnimateColorElement.cpp:
  12459. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  12460. * ksvg2/svg/SVGAnimationElement.cpp:
  12461. * ksvg2/svg/SVGMaskElement.cpp:
  12462. * ksvg2/svg/SVGPatternElement.cpp:
  12463. * ksvg2/svg/svgpathparser.cpp:
  12464. * platform/Path.cpp:
  12465. * platform/graphics/svg/SVGResourceImage.h:
  12466. * rendering/RenderPath.cpp:
  12467. * rendering/SVGRenderAsText.cpp:
  12468. 2006-11-02 Mitz Pettel <mitz@webkit.org>
  12469. Reviewed by Adele.
  12470. - Fix a regression from r17521: painting of and crash caused by tables
  12471. with collapsed borders
  12472. * rendering/RenderTable.cpp:
  12473. (WebCore::RenderTable::paint): Changed 'paintInfo' to 'info'. Prior to
  12474. r17521, 'paintInfo' was the local variable. Now 'info' is the local variable
  12475. and 'paintInfo' is the parameter, which we were accidently modifying.
  12476. 2006-11-01 Adele Peterson <adele@apple.com>
  12477. Reviewed by Mitz.
  12478. - Fix for http://bugs.webkit.org/show_bug.cgi?id=11277
  12479. REGRESSION: Incomplete repaint of overflow areas when deleting
  12480. Restrict the repaint rect for overflow blocks after the height has been fully computed.
  12481. Also, adjust the repaint rect coordinates for the scroll offset.
  12482. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock):
  12483. * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren):
  12484. 2006-11-01 Sam Weinig <sam.weinig@gmail.com>
  12485. Reviewed by Mitz.
  12486. Fix for http://bugs.webkit.org/show_bug.cgi?id=11474
  12487. Rename the "p" member variable of the PaintInfo struct to "context"
  12488. - Renames the 'p' and 'r' member variables of the PaintInfo struct to
  12489. 'context' and 'rect' respectively.
  12490. - Assorted surrounding cleanups.
  12491. * rendering/EllipsisBox.cpp:
  12492. (WebCore::EllipsisBox::paint):
  12493. * rendering/EllipsisBox.h:
  12494. * rendering/InlineBox.cpp:
  12495. (WebCore::InlineBox::paint):
  12496. * rendering/InlineFlowBox.cpp:
  12497. (WebCore::InlineFlowBox::paint):
  12498. (WebCore::InlineFlowBox::paintBackground):
  12499. (WebCore::InlineFlowBox::paintBackgroundAndBorder):
  12500. (WebCore::InlineFlowBox::paintDecorations):
  12501. * rendering/InlineFlowBox.h:
  12502. * rendering/InlineRunBox.h:
  12503. * rendering/InlineTextBox.cpp:
  12504. (WebCore::InlineTextBox::paint):
  12505. * rendering/InlineTextBox.h:
  12506. * rendering/RenderBlock.cpp:
  12507. (WebCore::RenderBlock::paint):
  12508. (WebCore::RenderBlock::paintChildren):
  12509. (WebCore::RenderBlock::paintCaret):
  12510. (WebCore::RenderBlock::paintObject):
  12511. (WebCore::RenderBlock::paintFloats):
  12512. (WebCore::RenderBlock::paintEllipsisBoxes):
  12513. (WebCore::RenderBlock::paintSelection):
  12514. (WebCore::RenderBlock::fillSelectionGaps):
  12515. (WebCore::RenderBlock::fillInlineSelectionGaps):
  12516. (WebCore::RenderBlock::fillBlockSelectionGaps):
  12517. (WebCore::RenderBlock::fillHorizontalSelectionGap):
  12518. (WebCore::RenderBlock::fillVerticalSelectionGap):
  12519. (WebCore::RenderBlock::fillLeftSelectionGap):
  12520. (WebCore::RenderBlock::fillRightSelectionGap):
  12521. * rendering/RenderBox.cpp:
  12522. (WebCore::RenderBox::paint):
  12523. (WebCore::RenderBox::paintRootBoxDecorations):
  12524. (WebCore::RenderBox::paintBoxDecorations):
  12525. * rendering/RenderBox.h:
  12526. * rendering/RenderButton.cpp:
  12527. (WebCore::RenderButton::paintObject):
  12528. * rendering/RenderFieldset.cpp:
  12529. (WebCore::RenderFieldset::paintBoxDecorations):
  12530. * rendering/RenderFileUploadControl.cpp:
  12531. (WebCore::RenderFileUploadControl::paintObject):
  12532. * rendering/RenderFlow.cpp:
  12533. (WebCore::RenderFlow::continuationBefore):
  12534. (WebCore::RenderFlow::addChildWithContinuation):
  12535. (WebCore::RenderFlow::addChild):
  12536. (WebCore::RenderFlow::attachLineBox):
  12537. (WebCore::RenderFlow::destroy):
  12538. (WebCore::RenderFlow::dirtyLinesFromChangedChild):
  12539. (WebCore::RenderFlow::dirtyLineBoxes):
  12540. (WebCore::RenderFlow::createInlineBox):
  12541. (WebCore::RenderFlow::paintLines):
  12542. (WebCore::RenderFlow::getAbsoluteRepaintRect):
  12543. (WebCore::RenderFlow::lowestPosition):
  12544. (WebCore::RenderFlow::rightmostPosition):
  12545. (WebCore::RenderFlow::leftmostPosition):
  12546. (WebCore::RenderFlow::caretRect):
  12547. (WebCore::RenderFlow::addFocusRingRects):
  12548. (WebCore::RenderFlow::paintOutline):
  12549. (WebCore::RenderFlow::paintOutlineForLine):
  12550. * rendering/RenderForeignObject.cpp:
  12551. (WebCore::RenderForeignObject::paint):
  12552. * rendering/RenderHTMLCanvas.cpp:
  12553. (WebCore::RenderHTMLCanvas::paint):
  12554. * rendering/RenderImage.cpp:
  12555. (WebCore::RenderImage::paint):
  12556. * rendering/RenderLayer.cpp:
  12557. (WebCore::RenderLayer::paintLayer):
  12558. * rendering/RenderListBox.cpp:
  12559. (WebCore::RenderListBox::paintObject):
  12560. (WebCore::RenderListBox::paintScrollbar):
  12561. (WebCore::RenderListBox::paintItemForeground):
  12562. (WebCore::RenderListBox::paintItemBackground):
  12563. * rendering/RenderListMarker.cpp:
  12564. (WebCore::RenderListMarker::paint):
  12565. * rendering/RenderMenuList.cpp:
  12566. (WebCore::RenderMenuList::paintObject):
  12567. * rendering/RenderObject.cpp:
  12568. (WebCore::RenderObject::paint):
  12569. * rendering/RenderObject.h:
  12570. (WebCore::RenderObject::PaintInfo::PaintInfo):
  12571. (WebCore::RenderObject::paintBoxDecorations):
  12572. (WebCore::RenderObject::paintingRootForChildren):
  12573. (WebCore::RenderObject::shouldPaintWithinRoot):
  12574. (WebCore::RenderObject::printBoxDecorations):
  12575. * rendering/RenderPath.cpp:
  12576. (WebCore::RenderPath::paint):
  12577. * rendering/RenderReplaced.cpp:
  12578. (WebCore::RenderReplaced::shouldPaint):
  12579. * rendering/RenderSVGContainer.cpp:
  12580. (WebCore::RenderSVGContainer::paint):
  12581. * rendering/RenderSVGContainer.h:
  12582. * rendering/RenderSVGImage.cpp:
  12583. (WebCore::RenderSVGImage::paint):
  12584. * rendering/RenderSVGText.cpp:
  12585. (WebCore::RenderSVGText::paint):
  12586. * rendering/RenderSVGText.h:
  12587. (WebCore::RenderSVGText::renderName):
  12588. * rendering/RenderTable.cpp:
  12589. (WebCore::RenderTable::paint):
  12590. (WebCore::RenderTable::paintBoxDecorations):
  12591. * rendering/RenderTable.h:
  12592. * rendering/RenderTableCell.cpp:
  12593. (WebCore::RenderTableCell::paint):
  12594. (WebCore::RenderTableCell::paintBackgroundsBehindCell):
  12595. (WebCore::RenderTableCell::paintBoxDecorations):
  12596. * rendering/RenderTableCell.h:
  12597. * rendering/RenderTableRow.cpp:
  12598. (WebCore::RenderTableRow::paint):
  12599. * rendering/RenderTableRow.h:
  12600. * rendering/RenderTableSection.cpp:
  12601. (WebCore::RenderTableSection::paint):
  12602. * rendering/RenderTableSection.h:
  12603. (WebCore::RenderTableSection::getBaseline):
  12604. (WebCore::RenderTableSection::setNeedCellRecalc):
  12605. * rendering/RenderText.h:
  12606. (WebCore::RenderText::renderName):
  12607. (WebCore::RenderText::paint):
  12608. (WebCore::RenderText::element):
  12609. * rendering/RenderTheme.cpp:
  12610. (WebCore::RenderTheme::paint):
  12611. (WebCore::RenderTheme::paintBorderOnly):
  12612. (WebCore::RenderTheme::paintDecorations):
  12613. * rendering/RenderTheme.h:
  12614. (WebCore::RenderTheme::RenderTheme):
  12615. (WebCore::RenderTheme::~RenderTheme):
  12616. (WebCore::RenderTheme::controlSupportsTints):
  12617. (WebCore::RenderTheme::adjustRepaintRect):
  12618. (WebCore::RenderTheme::themeChanged):
  12619. (WebCore::RenderTheme::supportsHover):
  12620. (WebCore::RenderTheme::paintCheckbox):
  12621. (WebCore::RenderTheme::setCheckboxSize):
  12622. (WebCore::RenderTheme::paintRadio):
  12623. (WebCore::RenderTheme::setRadioSize):
  12624. (WebCore::RenderTheme::paintButton):
  12625. (WebCore::RenderTheme::setButtonSize):
  12626. (WebCore::RenderTheme::paintTextField):
  12627. (WebCore::RenderTheme::paintTextArea):
  12628. (WebCore::RenderTheme::paintMenuList):
  12629. (WebCore::RenderTheme::paintMenuListButton):
  12630. * rendering/RenderThemeMac.mm:
  12631. (WebCore::RenderThemeMac::paintCheckbox):
  12632. (WebCore::RenderThemeMac::paintRadio):
  12633. (WebCore::RenderThemeMac::paintButton):
  12634. (WebCore::RenderThemeMac::paintTextField):
  12635. (WebCore::RenderThemeMac::paintTextArea):
  12636. (WebCore::RenderThemeMac::paintMenuList):
  12637. (WebCore::RenderThemeMac::paintMenuListButtonGradients):
  12638. (WebCore::RenderThemeMac::paintMenuListButton):
  12639. * rendering/RenderView.cpp:
  12640. (WebCore::RenderView::paint):
  12641. (WebCore::RenderView::paintBoxDecorations):
  12642. * rendering/RenderView.h:
  12643. * rendering/RenderWidget.cpp:
  12644. (WebCore::RenderWidget::paint):
  12645. * rendering/RenderWidget.h:
  12646. (WebCore::RenderWidget::isWidget):
  12647. * rendering/RootInlineBox.cpp:
  12648. (WebCore::RootInlineBox::paintEllipsisBox):
  12649. (WebCore::RootInlineBox::paintCustomHighlight):
  12650. (WebCore::RootInlineBox::paint):
  12651. (WebCore::RootInlineBox::fillLineSelectionGap):
  12652. * rendering/RootInlineBox.h:
  12653. * rendering/SVGInlineFlowBox.cpp:
  12654. (WebCore::paintSVGInlineFlow):
  12655. 2006-11-01 Anders Carlsson <acarlsson@apple.com>
  12656. Reviewed by Oliver, Brady.
  12657. * platform/network/ResourceResponse.h:
  12658. (WebCore::ResourceResponse::setLastModifiedDate):
  12659. (WebCore::ResourceResponse::lastModifiedDate):
  12660. Add getters and setters for last modified dadte.
  12661. * platform/network/cf/ResourceResponseCFNet.cpp:
  12662. (WebCore::getResourceResponse):
  12663. Fetch the last modified date. Add correct offset to expired date.
  12664. 2006-11-01 David Kilzer <ddkilzer@kilzer.net>
  12665. Reviewed by Mitz.
  12666. Added missing "break;" statement in switch statement from r17493.
  12667. Bug 11442: [CSS 3] support for cursor: all-scroll
  12668. http://bugs.webkit.org/show_bug.cgi?id=11442
  12669. * css/CSSComputedStyleDeclaration.cpp:
  12670. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  12671. 2006-10-31 Mitz Pettel <mitz@webkit.org>
  12672. Reviewed by Maciej.
  12673. - fix image dragging
  12674. This is covered by editing/selection/drag-to-contenteditable-iframe.html
  12675. * rendering/HitTestResult.cpp:
  12676. (WebCore::HitTestResult::altDisplayString): Changed imageTag to imgTag, for
  12677. HTML IMG elements.
  12678. (WebCore::HitTestResult::absoluteImageURL): Ditto.
  12679. 2006-10-31 Beth Dakin <bdakin@apple.com>
  12680. Reviewed by Maciej.
  12681. This adds the back-end of the remaining WebElementDictionary
  12682. functions into HitTestResult.
  12683. * WebCore.exp:
  12684. * rendering/HitTestResult.cpp:
  12685. (WebCore::HitTestResult::title):
  12686. (WebCore::displayString): This is nearly identical to the
  12687. displayString() defined in DOMInternal.mm except that it returns a
  12688. String instead of an NSString. The old code path used the
  12689. DOMInternal method, so I made a new one here for the new code path.
  12690. (WebCore::HitTestResult::altDisplayString):
  12691. (WebCore::HitTestResult::image):
  12692. (WebCore::HitTestResult::absoluteImageURL):
  12693. (WebCore::HitTestResult::absoluteLinkURL):
  12694. (WebCore::HitTestResult::titleDisplayString):
  12695. (WebCore::HitTestResult::textContent):
  12696. * rendering/HitTestResult.h:
  12697. 2006-10-31 John Sullivan <sullivan@apple.com>
  12698. * bridge/mac/FrameMac.mm:
  12699. (WebCore::FrameMac::markMisspellings):
  12700. Tiger build fix: added an #ifndef BUILDING_ON_TIGER where one was needed.
  12701. 2006-10-31 John Sullivan <sullivan@apple.com>
  12702. Reviewed by Maciej
  12703. - fixed <rdar://problem/4804627> ToolTips do not appear for grammar suggestions
  12704. The foundation of this was in my last checkin. This checkin is all about displaying
  12705. the correct string in the toolTip.
  12706. * dom/DocumentMarker.h:
  12707. New description field in this struct.
  12708. * bridge/mac/FrameMac.mm:
  12709. (WebCore::FrameMac::advanceToNextMisspelling):
  12710. When adding a grammar marker, supply the appropriate description. Also, added a comment
  12711. about the remaining work to make grammar checking return sensible answers.
  12712. (WebCore::FrameMac::markMisspellings):
  12713. ditto (yes, still needs some refactoring to minimize duplicated code)
  12714. * dom/Document.h:
  12715. * dom/Document.cpp:
  12716. (WebCore::Document::addMarker):
  12717. Now takes an optional description string
  12718. (WebCore::Document::markerContainingPoint):
  12719. New function, returns a pointer to the (first) marker of the specified type whose rect
  12720. contains the specified point, or 0 if none.
  12721. * rendering/HitTestResult.cpp:
  12722. (WebCore::HitTestResult::spellingToolTip):
  12723. Replaced hardwired string placeholder implementation with code that uses markerContainingPoint
  12724. and gets the description from the marker.
  12725. 2006-10-31 Geoffrey Garen <ggaren@apple.com>
  12726. Reviewed by Maciej.
  12727. Fixed crash resulting from Darin's last patch to remove BrowserExtension.
  12728. * loader/mac/FrameLoaderMac.mm:
  12729. (WebCore::FrameLoader::createWindow):
  12730. * manual-tests/window-open-features-parsing.html: Updated for clarity.
  12731. 2006-10-31 Geoffrey Garen <ggaren@apple.com>
  12732. Reviewed by Alice.
  12733. Moved some Editing code from WebKit, the bridge, and WebCore::Frame down
  12734. to WebCore::Editor.
  12735. Layout tests pass.
  12736. Renamed "may*" to "can*" because "can" is more accurate (these functions
  12737. aren't just about permission) and it matches WebKit.
  12738. (WebCore::FrameMac::handleMouseMoveEvent): Directly test for dragging in a
  12739. password field. Now that WebCore fully implements canCopy(), it doesn't just
  12740. mean "the selection is not in a password field" anymore.
  12741. (-[WebCoreFrameBridge _shouldAllowAccessFrom:]): Removed this #ifed-out code.
  12742. The fact that it's not called anymore may represent a security issue, but I
  12743. don't see how commented-out code will help reveal the issue, and the
  12744. bridge is going away, anyway.
  12745. * editing/SelectionController.h: Changed selection() calls to references
  12746. to m_sel, to match the rest of the file.
  12747. 2006-10-31 Justin Garcia <justin.garcia@apple.com>
  12748. Reviewed by harrison
  12749. <rdar://problem/4711063>
  12750. Pasting 10K lines into Mail/Blot takes ~7sec, in TextEdit it takes ~1.5sec
  12751. * editing/ReplaceSelectionCommand.cpp:
  12752. (WebCore::ReplacementFragment::ReplacementFragment): Don't do the test
  12753. insertion and plain text string creation unless we need the string
  12754. for a BeforeTextInserted event handler or for a plain text only region.
  12755. (WebCore::ReplacementFragment::removeInterchangeNodes): Added, moved
  12756. code here from ReplacementFragment's constructor.
  12757. (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Added a
  12758. FIXME.
  12759. * editing/ReplaceSelectionCommand.h:
  12760. 2006-10-31 Ada Chan <adachan@apple.com>
  12761. Reviewed by Adam
  12762. Correct forward declarations of the HitTestRequest struct.
  12763. * rendering/EllipsisBox.h:
  12764. * rendering/InlineBox.h:
  12765. * rendering/InlineFlowBox.h:
  12766. * rendering/RenderLayer.h:
  12767. * rendering/RenderObject.h:
  12768. 2006-10-31 John Sullivan <sullivan@apple.com>
  12769. Reviewed by Beth and Adam
  12770. Support for displaying tooltips for bad grammar. Currently this always displays the same tooltip;
  12771. next I'll make it use a string that's relevant for a specific grammar error.
  12772. * WebCore.exp:
  12773. export symbol for spellingToolTip function
  12774. * rendering/HitTestResult.h:
  12775. * rendering/HitTestResult.cpp:
  12776. (WebCore::HitTestResult::spellingToolTip):
  12777. new function, returns the string to be used in a tool tip that describes the questionable grammar
  12778. * rendering/InlineTextBox.h:
  12779. * rendering/InlineTextBox.cpp:
  12780. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  12781. now takes a style and font, needed to compute the rect representing the range containing
  12782. questionable grammar. Computes the rect and associates it with the marker.
  12783. (WebCore::InlineTextBox::paintDocumentMarkers):
  12784. Pass in the style and font now needed by paintSpellingOrGrammarMarker
  12785. 2006-10-31 Adele Peterson <adele@apple.com>
  12786. Removed commented out variable from last checkin.
  12787. * html/HTMLSelectElement.cpp:
  12788. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  12789. 2006-10-31 Brady Eidson <beidson@apple.com>
  12790. Build fix (unused variable in release builds)
  12791. * html/HTMLSelectElement.cpp:
  12792. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
  12793. 2006-10-31 Adele Peterson <adele@apple.com>
  12794. Reviewed by Adam.
  12795. - Fix for http://bugs.webkit.org/show_bug.cgi?id=11127 NativeListBox: arrow and drag selection should pivot around one list item
  12796. and http://bugs.webkit.org/show_bug.cgi?id=11173 REGRESSION (NativeListBox): Shift-clicking items in list box doesn't expand the current selection
  12797. and http://bugs.webkit.org/show_bug.cgi?id=11417 REGRESSION: onchange does not fire for list-style select elements
  12798. Tests:
  12799. * LayoutTests/fast/forms/listbox-selection.html
  12800. * LayoutTests/fast/forms/listbox-onchange.html
  12801. * html/HTMLSelectElement.h: Added m_selectedListIndexBase and m_selectedListIndexExtent to track indices for the active selection in progress.
  12802. Added 2 vectors to cache selection state. One is kept so that the previous selection state can be restored as the active selection grows and shrinks.
  12803. And one for onChange, that is updated after onChange is fired.
  12804. Added m_activeSelectionState to keep track of whether the current drag selection is selecting or deselecting.
  12805. * html/HTMLSelectElement.cpp:
  12806. (WebCore::HTMLSelectElement::HTMLSelectElement): Initialized new variables.
  12807. (WebCore::HTMLSelectElement::setSelectedIndex): If needed, initialize m_selectedListIndexBase and m_selectedListIndexExtent.
  12808. (WebCore::HTMLSelectElement::dispatchBlurEvent): Only fire the onChange event here for menu lists.
  12809. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Updates base and extent variables for mouse and key events.
  12810. (WebCore::HTMLSelectElement::setBase): Added. Also caches the selection state.
  12811. (WebCore::HTMLSelectElement::setExtent): Added.
  12812. (WebCore::HTMLSelectElement::updateListBoxSelection): Added.
  12813. (WebCore::HTMLSelectElement::listBoxOnChange): Added.
  12814. * rendering/RenderListBox.cpp:
  12815. (WebCore::RenderListBox::updateFromElement): Only scroll to reveal the first index if both the first and last indices aren't visible.
  12816. (WebCore::RenderListBox::listIndexAtOffset): Added. Replaces optionAtPoint, which is no longer used.
  12817. (WebCore::RenderListBox::autoscroll): Now sets the selection using the select's base and extent.
  12818. (WebCore::RenderListBox::stopAutoscroll): Added. Tells the select element to fire onChange. This is needed because the autoscroll can end from a mouseUp
  12819. outside of the list box, and the select element won't get a mouseUp event directly. But the frame will stop the autoscroll at that point, and now we can
  12820. notify the select element from here.
  12821. (WebCore::RenderListBox::scrollToRevealElementAtListIndex): Checks new listIndexIsVisible method.
  12822. (WebCore::RenderListBox::listIndexIsVisible): Added.
  12823. (WebCore::RenderListBox::valueChanged): Removed unnecessary printf.
  12824. * page/Frame.cpp: (WebCore::Frame::stopAutoscrollTimer): Added rendererIsBeingDestroyed argument, so when the renderer calls this during destruction,
  12825. we don't try to use the pointer to that renderer to call stopAutoscroll. This is done so a renderer that's still alive has a chance to do some cleanup after autoscroll.
  12826. * rendering/RenderListBox.h: (WebCore::RenderListBox::shouldAutoscroll): Always returns true now, since we're also updating selection from the autoscroll timer.
  12827. * rendering/RenderObject.h: (WebCore::RenderObject::stopAutoscroll): Added.
  12828. * rendering/RenderObject.cpp: (WebCore::RenderObject::destroy): Calls stopAutoscrollTimer with rendererIsBeingDestroyed argument.
  12829. 2006-10-31 Beth Dakin <bdakin@apple.com>
  12830. Forgot to check this in a minute ago. Oops!! Thanks Mitz!
  12831. * rendering/HitTestRequest.h: Added.
  12832. (WebCore::HitTestRequest::HitTestRequest):
  12833. 2006-10-31 Beth Dakin <bdakin@apple.com>
  12834. Reviewed by Maciej.
  12835. Fix for http://bugs.webkit.org/show_bug.cgi?id=11461 HitTestResult
  12836. should be split into HitTestRequest and HitTestResult
  12837. This patch creates a new struct called HitTestRequest that holds
  12838. the three boolean values (readonly, active, and mouseMove) that
  12839. were formerly a part of HitTestResult. All hitTest() and
  12840. nodeAtPoint() functions now take a HitTestRequest in addition to
  12841. the HitTestResult.
  12842. * WebCore.exp:
  12843. * WebCore.xcodeproj/project.pbxproj:
  12844. * bridge/mac/FrameMac.mm:
  12845. (WebCore::FrameMac::eventMayStartDrag):
  12846. (WebCore::FrameMac::handleMouseMoveEvent):
  12847. * bridge/mac/WebCoreAXObject.mm:
  12848. (-[WebCoreAXObject doAXTextMarkerForPosition:]):
  12849. (-[WebCoreAXObject accessibilityHitTest:]):
  12850. * dom/Document.cpp:
  12851. (WebCore::Document::elementFromPoint):
  12852. (WebCore::Document::prepareMouseEvent):
  12853. * editing/SelectionController.cpp:
  12854. (WebCore::SelectionController::contains):
  12855. * page/Frame.cpp:
  12856. (WebCore::Frame::hitTestResultAtPoint):
  12857. * page/FrameView.cpp:
  12858. (WebCore::FrameView::handleWheelEvent):
  12859. * rendering/EllipsisBox.cpp:
  12860. (WebCore::EllipsisBox::nodeAtPoint):
  12861. * rendering/EllipsisBox.h:
  12862. * rendering/HitTestResult.cpp:
  12863. (WebCore::HitTestResult::HitTestResult):
  12864. (WebCore::HitTestResult::operator=):
  12865. * rendering/HitTestResult.h:
  12866. * rendering/InlineBox.cpp:
  12867. (WebCore::InlineBox::nodeAtPoint):
  12868. * rendering/InlineBox.h:
  12869. * rendering/InlineFlowBox.cpp:
  12870. (WebCore::InlineFlowBox::nodeAtPoint):
  12871. * rendering/InlineFlowBox.h:
  12872. * rendering/InlineTextBox.cpp:
  12873. (WebCore::InlineTextBox::nodeAtPoint):
  12874. * rendering/InlineTextBox.h:
  12875. * rendering/RenderBlock.cpp:
  12876. (WebCore::RenderBlock::nodeAtPoint):
  12877. * rendering/RenderBlock.h:
  12878. * rendering/RenderBox.cpp:
  12879. (WebCore::RenderBox::nodeAtPoint):
  12880. * rendering/RenderBox.h:
  12881. * rendering/RenderFlow.cpp:
  12882. (WebCore::RenderFlow::hitTestLines):
  12883. * rendering/RenderFlow.h:
  12884. * rendering/RenderForeignObject.cpp:
  12885. (WebCore::RenderForeignObject::nodeAtPoint):
  12886. * rendering/RenderForeignObject.h:
  12887. * rendering/RenderFrameSet.cpp:
  12888. (WebCore::RenderFrameSet::nodeAtPoint):
  12889. * rendering/RenderFrameSet.h:
  12890. * rendering/RenderImage.cpp:
  12891. (WebCore::RenderImage::nodeAtPoint):
  12892. * rendering/RenderImage.h:
  12893. * rendering/RenderInline.cpp:
  12894. (WebCore::RenderInline::nodeAtPoint):
  12895. * rendering/RenderInline.h:
  12896. * rendering/RenderLayer.cpp:
  12897. (WebCore::RenderLayer::autoscroll):
  12898. (WebCore::RenderLayer::hitTest):
  12899. (WebCore::RenderLayer::hitTestLayer):
  12900. (WebCore::RenderLayer::updateHoverActiveState):
  12901. * rendering/RenderLayer.h:
  12902. * rendering/RenderObject.cpp:
  12903. (WebCore::RenderObject::hitTest):
  12904. (WebCore::RenderObject::nodeAtPoint):
  12905. * rendering/RenderObject.h:
  12906. * rendering/RenderPath.cpp:
  12907. (WebCore::RenderPath::nodeAtPoint):
  12908. * rendering/RenderPath.h:
  12909. * rendering/RenderSVGImage.cpp:
  12910. (WebCore::RenderSVGImage::nodeAtPoint):
  12911. * rendering/RenderSVGImage.h:
  12912. * rendering/RenderSVGText.cpp:
  12913. (WebCore::RenderSVGText::nodeAtPoint):
  12914. * rendering/RenderSVGText.h:
  12915. * rendering/RenderTableRow.cpp:
  12916. (WebCore::RenderTableRow::nodeAtPoint):
  12917. * rendering/RenderTableRow.h:
  12918. * rendering/RenderTableSection.cpp:
  12919. (WebCore::RenderTableSection::nodeAtPoint):
  12920. * rendering/RenderTableSection.h:
  12921. * rendering/RenderText.h:
  12922. (WebCore::RenderText::nodeAtPoint):
  12923. * rendering/RenderTextControl.cpp:
  12924. (WebCore::RenderTextControl::nodeAtPoint):
  12925. * rendering/RenderTextControl.h:
  12926. * rendering/RootInlineBox.cpp:
  12927. (WebCore::RootInlineBox::nodeAtPoint):
  12928. * rendering/RootInlineBox.h:
  12929. 2006-10-31 Lars Naesbye Christensen <lars@naesbye.dk>
  12930. Reviewed by Maciej.
  12931. Bug 11442: [CSS 3] support for cursor: all-scroll
  12932. http://bugs.webkit.org/show_bug.cgi?id=11442
  12933. * css/CSSComputedStyleDeclaration.cpp:
  12934. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  12935. * css/CSSValueKeywords.in:
  12936. * css/cssparser.cpp:
  12937. (WebCore::CSSParser::parseValue):
  12938. * page/FrameView.cpp:
  12939. (WebCore::selectCursor):
  12940. * rendering/RenderStyle.h:
  12941. 2006-10-31 Oliver Hunt <oliver@apple.com>
  12942. Reviewed by Geoff.
  12943. Converting Obj-C++ to C++ in kcanvas
  12944. * WebCore.xcodeproj/project.pbxproj:
  12945. * kcanvas/device/quartz/KCanvasFilterQuartz.h:
  12946. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  12947. * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Added.
  12948. * kcanvas/device/quartz/KCanvasItemQuartz.mm: Removed.
  12949. * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Added.
  12950. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  12951. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: Removed.
  12952. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  12953. * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
  12954. * kcanvas/device/quartz/QuartzSupport.cpp: Added.
  12955. * kcanvas/device/quartz/QuartzSupport.h:
  12956. * kcanvas/device/quartz/QuartzSupport.mm: Removed.
  12957. * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Added.
  12958. (WebCore::SVGResourceClipper::applyClip):
  12959. * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Removed.
  12960. * platform/graphics/svg/cg/SVGResourceImageCg.cpp: Added.
  12961. * platform/graphics/svg/cg/SVGResourceImageCg.mm: Removed.
  12962. 2006-10-31 Justin Garcia <justin.garcia@apple.com>
  12963. Reviewed by harrison
  12964. <rdar://problem/4808375>
  12965. REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) [11460}
  12966. Completely back out r17276 because of performance issues.
  12967. * editing/TextIterator.cpp:
  12968. (WebCore::TextIterator::TextIterator):
  12969. (WebCore::TextIterator::advance):
  12970. (WebCore::TextIterator::handleTextNode):
  12971. (WebCore::TextIterator::handleTextBox):
  12972. (WebCore::TextIterator::handleReplacedElement):
  12973. (WebCore::TextIterator::handleNonTextNode):
  12974. (WebCore::TextIterator::exitNode):
  12975. (WebCore::TextIterator::emitCharacter):
  12976. (WebCore::TextIterator::range):
  12977. (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
  12978. (WebCore::SimplifiedBackwardsTextIterator::advance):
  12979. (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
  12980. (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement):
  12981. (WebCore::SimplifiedBackwardsTextIterator::emitCharacter):
  12982. (WebCore::SimplifiedBackwardsTextIterator::emitNewline):
  12983. (WebCore::SimplifiedBackwardsTextIterator::range):
  12984. (WebCore::CharacterIterator::range):
  12985. (WebCore::TextIterator::rangeFromLocationAndLength):
  12986. * editing/TextIterator.h:
  12987. (WebCore::TextIterator::atEnd):
  12988. (WebCore::SimplifiedBackwardsTextIterator::atEnd):
  12989. 2006-10-31 Darin Adler <darin@apple.com>
  12990. Reviewed by Brady.
  12991. - got "action dictionary" code out of FrameLoader,
  12992. replacing with a class called NavigationAction
  12993. * loader/DocumentLoader.h: Changed m_triggeringAction to a NavigationAction.
  12994. * loader/mac/DocumentLoaderMac.mm:
  12995. (WebCore::DocumentLoader::triggeringAction): Ditto.
  12996. (WebCore::DocumentLoader::setTriggeringAction): Ditto.
  12997. * loader/FrameLoader.h: Changed action parameters to NavigationAction.
  12998. * loader/FrameLoaderClient.h: Changed action parameters to NavigationAction.
  12999. Removed elementForEvent.
  13000. * loader/mac/FrameLoaderMac.mm:
  13001. (WebCore::FrameLoader::load): Ditto.
  13002. (WebCore::FrameLoader::reload): Ditto.
  13003. (WebCore::FrameLoader::checkNewWindowPolicy): Ditto.
  13004. (WebCore::FrameLoader::checkNavigationPolicy): Ditto.
  13005. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): Ditto.
  13006. (WebCore::FrameLoader::post): Ditto.
  13007. * loader/NavigationAction.h: Added.
  13008. * loader/NavigationAction.cpp: Added.
  13009. * loader/mac/NavigationActionMac.mm: Added.
  13010. * loader/mac/MainResourceLoaderMac.mm: Fixed copyright.
  13011. * WebCore.xcodeproj/project.pbxproj: Updated for new files.
  13012. * WebCore.exp: Updated.
  13013. 2006-10-31 Steve Falkenburg <sfalken@apple.com>
  13014. Reviewed by Adam.
  13015. Build fix
  13016. * platform/win/CookieJarWin.cpp:
  13017. (WebCore::cookies):
  13018. 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
  13019. Reviewed by Maciej. Landed by Adam.
  13020. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11463
  13021. Move KCanvasTreeDebug into rendering, named as SVGRenderTreeAsText.*,
  13022. as dicussed with Dave. Also kill the outdated DESIGN document.
  13023. * CMakeLists.txt:
  13024. * WebCore.xcodeproj/project.pbxproj:
  13025. * kcanvas/DESIGN: Removed.
  13026. * kcanvas/KCanvasFilters.cpp:
  13027. * kcanvas/KCanvasTreeDebug.cpp: Moved to rendering/SVGRenderTreeAsText
  13028. * kcanvas/KCanvasTreeDebug.h: Ditto.
  13029. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  13030. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  13031. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  13032. * platform/graphics/svg/SVGResourceClipper.cpp:
  13033. * rendering/RenderTreeAsText.cpp:
  13034. * rendering/SVGRenderTreeAsText.cpp: Added.
  13035. * rendering/SVGRenderTreeAsText.h: Added.
  13036. (WebCore::operator<<):
  13037. 2006-10-31 Darin Fisher <darin@chromium.org>
  13038. Reviewed by Maciej.
  13039. Fixes http://bugs.webkit.org/show_bug.cgi?id=11286
  13040. Includes some CRLF -> LF fixups.
  13041. * platform/win/CookieJarWin.cpp:
  13042. (WebCore::cookies):
  13043. 2006-10-31 Adam Roben <aroben@apple.com>
  13044. Reviewed by Steve.
  13045. Fix some incorrect forward declarations.
  13046. * loader/FrameLoader.h:
  13047. * page/Frame.h:
  13048. 2006-10-31 Darin Adler <darin@apple.com>
  13049. * WebCore.xcodeproj/project.pbxproj: Change GraphicsTypes.h to a private header to
  13050. try to fix the build on the buildbot.
  13051. 2006-10-31 Darin Adler <darin@apple.com>
  13052. * bridge/mac/FrameMac.mm:
  13053. (WebCore::FrameMac::advanceToNextMisspelling): Build fix for release Tiger builds.
  13054. (WebCore::FrameMac::markMisspellings): Ditto.
  13055. 2006-10-31 John Sullivan <sullivan@apple.com>
  13056. * bridge/mac/FrameMac.mm:
  13057. (WebCore::FrameMac::advanceToNextMisspelling):
  13058. build fix: needed #ifndef BUILDING_ON_TIGER in one more place
  13059. 2006-10-30 John Sullivan <sullivan@apple.com>
  13060. Reviewed by Adam Roben
  13061. - fixes <rdar://problem/4804614> Bad grammar ranges are not visibly marked
  13062. This patch introduces much of the guts of grammar checking, though still not enough to actually
  13063. check grammar sensibly, due to:
  13064. <rdar://problem/4811175> Many false reports of bad grammar appear, caused by insufficient
  13065. context passed to grammar checker
  13066. * platform/Logging.h:
  13067. * platform/Logging.cpp:
  13068. new log channel SpellingAndGrammar
  13069. * bridge/mac/WebCorePageBridge.mm:
  13070. (initializeLoggingChannelsIfNecessary):
  13071. initialize new log channel
  13072. * bridge/mac/FrameMac.mm:
  13073. (WebCore::FrameMac::advanceToNextMisspelling):
  13074. Compute bad grammar range when computing misspelling range. Find first detailed grammar range from the
  13075. set NSSpellChecker determines. Compare it with misspelling range to see which is earliest (or shortest
  13076. in the event of a tie), and do further processing with that one (select range; create marker that
  13077. causes range to be visibly marked with a funky underline; update spelling panel appropriately).
  13078. (WebCore::FrameMac::markMisspellings):
  13079. More or less the same types of changes as in advanceToNextMisspelling The loops are structured just
  13080. differently enough to make sharing code between these two functions a little tricky, so I decided to
  13081. save that for a later patch.
  13082. (WebCore::FrameMac::respondToChangedSelection):
  13083. remove grammar markers when we remove spelling markers
  13084. 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
  13085. Reviewed by Mitz.
  13086. Fix Qt/Linux build with older gcc3.3.4.
  13087. * bindings/js/kjs_window.cpp:
  13088. (KJS::WindowFunc::callAsFunction):
  13089. 2006-10-31 Zack Rusin <zack@kde.org>
  13090. Reviewed by Mitz.
  13091. Fix the Qt build after last nights changes.
  13092. * WebCore/platform/qt/FrameQt.cpp:
  13093. * WebCore/platform/qt/EditorClientQt.h:
  13094. * WebCore/platform/qt/EditorClientQt.cpp:
  13095. * WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp:
  13096. * WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
  13097. * WebCore/CMakeLists.txt:
  13098. * WebCore/kcanvas/device/qt/KRenderingDeviceQt.cpp:
  13099. * WebKitQt/QtLauncher/CMakeLists.txt:
  13100. * WebKitQt/WebKitPart/CMakeLists.txt:
  13101. 2006-10-30 Darin Adler <darin@apple.com>
  13102. Reviewed by Anders.
  13103. - remove BrowserExtension
  13104. * WebCore.vcproj/WebCore/WebCore.vcproj:
  13105. * WebCore.xcodeproj/project.pbxproj:
  13106. * bindings/js/kjs_window.cpp:
  13107. (KJS::createNewWindow):
  13108. (KJS::WindowFunc::callAsFunction):
  13109. * bridge/BrowserExtension.h: Removed.
  13110. * bridge/mac/BrowserExtensionMac.h: Removed.
  13111. * bridge/mac/BrowserExtensionMac.mm: Removed.
  13112. * bridge/mac/FrameMac.mm:
  13113. (WebCore::FrameMac::FrameMac):
  13114. (WebCore::FrameMac::submitForm):
  13115. (WebCore::FrameMac::urlSelected):
  13116. * bridge/win/BrowserExtensionWin.cpp: Removed.
  13117. * bridge/win/BrowserExtensionWin.h: Removed.
  13118. * bridge/win/FrameWin.cpp:
  13119. (WebCore::FrameWin::FrameWin):
  13120. * loader/FrameLoader.cpp:
  13121. (WebCore::FrameLoader::createWindow):
  13122. * loader/FrameLoader.h:
  13123. * loader/icon/IconLoader.cpp:
  13124. * loader/mac/FrameLoaderMac.mm:
  13125. (WebCore::FrameLoader::safeLoad):
  13126. (WebCore::FrameLoader::load):
  13127. (WebCore::FrameLoader::createWindow):
  13128. * page/Frame.cpp:
  13129. (WebCore::Frame::urlSelected):
  13130. (WebCore::Frame::requestFrame):
  13131. (WebCore::Frame::submitForm):
  13132. (WebCore::Frame::scheduleHistoryNavigation):
  13133. (WebCore::Frame::redirectionTimerFired):
  13134. * page/Frame.h:
  13135. * page/FrameLoadRequest.h:
  13136. (WebCore::FrameLoadRequest::FrameLoadRequest):
  13137. (WebCore::FrameLoadRequest::isEmpty):
  13138. (WebCore::FrameLoadRequest::resourceRequest):
  13139. (WebCore::FrameLoadRequest::frameName):
  13140. (WebCore::FrameLoadRequest::setFrameName):
  13141. * page/FramePrivate.h:
  13142. (WebCore::FramePrivate::FramePrivate):
  13143. (WebCore::FramePrivate::~FramePrivate):
  13144. * platform/gdk/BrowserExtensionGdk.h: Removed.
  13145. * platform/gdk/FrameGdk.cpp:
  13146. (WebCore::FrameGdk::FrameGdk):
  13147. * platform/gdk/TemporaryLinkStubs.cpp:
  13148. * platform/network/ResourceRequest.h:
  13149. (WebCore::ResourceRequest::isEmpty):
  13150. 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
  13151. Reviewed by Oliver.
  13152. Modified from original due to earlier reversion
  13153. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11436
  13154. Better SVG integration in WebKit, Part I.
  13155. The patch is mostly about creating a new platform/graphics directory, and
  13156. moving the kcanvas resources (clipper/masker/marker) there (in svg budir),
  13157. with a new name (KCanvasClipper -> SVGResourceClipper). Also fix several ownership
  13158. issues, by using ref counting (the SVG classes now store RefPtrs to the resources).
  13159. KCanvasFilters is still left in kcanvas/ subdirectory, to be converted in a next patch.
  13160. All details of the patch, and upcoming patches can be found in the bug report.
  13161. * CMakeLists.txt:
  13162. * WebCore.xcodeproj/project.pbxproj:
  13163. * graphics/svg/SVGResource.cpp: Removed.
  13164. * graphics/svg/SVGResourceClipper.cpp: Removed.
  13165. * graphics/svg/SVGResourceClipper.h: Removed.
  13166. * graphics/svg/SVGResourceImage.h: Removed.
  13167. * graphics/svg/SVGResourceListener.h: Removed.
  13168. * graphics/svg/SVGResourceMarker.cpp: Removed.
  13169. * graphics/svg/SVGResourceMarker.h: Removed.
  13170. * graphics/svg/SVGResourceMasker.cpp: Removed.
  13171. * graphics/svg/SVGResourceMasker.h: Removed.
  13172. * kcanvas/KCanvasClipper.cpp: Removed.
  13173. * kcanvas/KCanvasClipper.h: Removed.
  13174. * kcanvas/KCanvasCreator.cpp: Removed.
  13175. * kcanvas/KCanvasCreator.h: Removed.
  13176. * kcanvas/KCanvasFilters.cpp:
  13177. (WebCore::getFilterById):
  13178. * kcanvas/KCanvasFilters.h:
  13179. * kcanvas/KCanvasImage.h: Removed.
  13180. * kcanvas/KCanvasMarker.cpp: Removed.
  13181. * kcanvas/KCanvasMarker.h: Removed.
  13182. * kcanvas/KCanvasMasker.cpp: Removed.
  13183. * kcanvas/KCanvasMasker.h: Removed.
  13184. * kcanvas/KCanvasResource.cpp: Removed.
  13185. * kcanvas/KCanvasResource.h: Removed.
  13186. * kcanvas/KCanvasResourceListener.h: Removed.
  13187. * kcanvas/KCanvasTreeDebug.cpp:
  13188. (WebCore::writeRenderResources):
  13189. * kcanvas/device/KRenderingDevice.h:
  13190. * kcanvas/device/KRenderingPaintServer.h:
  13191. (WebCore::KRenderingPaintServer::KRenderingPaintServer):
  13192. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  13193. (WebCore::KRenderingPaintServerGradient::listener):
  13194. (WebCore::KRenderingPaintServerGradient::setListener):
  13195. * kcanvas/device/KRenderingPaintServerGradient.h:
  13196. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  13197. (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
  13198. (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
  13199. (WebCore::KRenderingPaintServerPattern::tile):
  13200. (WebCore::KRenderingPaintServerPattern::setTile):
  13201. (WebCore::KRenderingPaintServerPattern::listener):
  13202. (WebCore::KRenderingPaintServerPattern::setListener):
  13203. * kcanvas/device/KRenderingPaintServerPattern.h:
  13204. * kcanvas/device/KRenderingPaintServerSolid.h:
  13205. * kcanvas/device/qt/KCanvasClipperQt.cpp: Removed.
  13206. * kcanvas/device/qt/KCanvasClipperQt.h:
  13207. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  13208. (WebCore::KRenderingDeviceQt::contextForImage):
  13209. (WebCore::KRenderingDeviceQt::createResource):
  13210. (WebCore::KRenderingDeviceQt::createPaintServer):
  13211. * kcanvas/device/qt/KRenderingDeviceQt.h:
  13212. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  13213. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
  13214. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  13215. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
  13216. * kcanvas/device/qt/RenderPathQt.h: Removed.
  13217. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  13218. (WebCore::KCanvasFilterQuartz::getCIFilterStack):
  13219. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  13220. * kcanvas/device/quartz/KCanvasMaskerQuartz.h: Removed.
  13221. * kcanvas/device/quartz/KCanvasMaskerQuartz.mm: Removed.
  13222. * kcanvas/device/quartz/KCanvasResourcesQuartz.h: Removed.
  13223. * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: Removed.
  13224. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  13225. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  13226. (WebCore::KRenderingDeviceQuartz::contextForImage):
  13227. (WebCore::KRenderingDeviceQuartz::createPaintServer):
  13228. (WebCore::KRenderingDeviceQuartz::createResource):
  13229. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  13230. (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
  13231. (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
  13232. (WebCore::KRenderingPaintServerGradientQuartz::setup):
  13233. (WebCore::KRenderingPaintServerGradientQuartz::teardown):
  13234. * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
  13235. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  13236. (WebCore::patternCallback):
  13237. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  13238. * kcanvas/device/quartz/QuartzSupport.mm:
  13239. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  13240. (WebCore::sharedSolidPaintServer):
  13241. * ksvg2/svg/SVGClipPathElement.cpp:
  13242. (WebCore::SVGClipPathElement::SVGClipPathElement):
  13243. (WebCore::SVGClipPathElement::~SVGClipPathElement):
  13244. (WebCore::SVGClipPathElement::canvasResource):
  13245. * ksvg2/svg/SVGClipPathElement.h:
  13246. * ksvg2/svg/SVGFEImageElement.cpp:
  13247. * ksvg2/svg/SVGFilterElement.cpp:
  13248. (WebCore::SVGFilterElement::SVGFilterElement):
  13249. (WebCore::SVGFilterElement::~SVGFilterElement):
  13250. (WebCore::SVGFilterElement::canvasResource):
  13251. * ksvg2/svg/SVGFilterElement.h:
  13252. * ksvg2/svg/SVGGradientElement.cpp:
  13253. (WebCore::SVGGradientElement::SVGGradientElement):
  13254. (WebCore::SVGGradientElement::~SVGGradientElement):
  13255. (WebCore::SVGGradientElement::canvasResource):
  13256. (WebCore::SVGGradientElement::resourceNotification):
  13257. * ksvg2/svg/SVGGradientElement.h:
  13258. * ksvg2/svg/SVGImageElement.cpp:
  13259. * ksvg2/svg/SVGLinearGradientElement.cpp:
  13260. (WebCore::SVGLinearGradientElement::buildGradient):
  13261. * ksvg2/svg/SVGLinearGradientElement.h:
  13262. * ksvg2/svg/SVGMarkerElement.cpp:
  13263. (WebCore::SVGMarkerElement::SVGMarkerElement):
  13264. (WebCore::SVGMarkerElement::~SVGMarkerElement):
  13265. (WebCore::SVGMarkerElement::canvasResource):
  13266. * ksvg2/svg/SVGMarkerElement.h:
  13267. * ksvg2/svg/SVGMaskElement.cpp:
  13268. (WebCore::SVGMaskElement::SVGMaskElement):
  13269. (WebCore::SVGMaskElement::~SVGMaskElement):
  13270. (WebCore::SVGMaskElement::drawMaskerContent):
  13271. (WebCore::SVGMaskElement::canvasResource):
  13272. * ksvg2/svg/SVGMaskElement.h:
  13273. * ksvg2/svg/SVGPatternElement.cpp:
  13274. (WebCore::SVGPatternElement::SVGPatternElement):
  13275. (WebCore::SVGPatternElement::~SVGPatternElement):
  13276. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  13277. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  13278. (WebCore::SVGPatternElement::canvasResource):
  13279. * ksvg2/svg/SVGPatternElement.h:
  13280. * ksvg2/svg/SVGRadialGradientElement.cpp:
  13281. (WebCore::SVGRadialGradientElement::buildGradient):
  13282. * ksvg2/svg/SVGRadialGradientElement.h:
  13283. * ksvg2/svg/SVGStyledElement.h:
  13284. (WebCore::SVGStyledElement::canvasResource):
  13285. * platform/GraphicsContext.cpp: Removed.
  13286. * platform/GraphicsContext.h: Removed.
  13287. * platform/GraphicsTypes.cpp: Removed.
  13288. * platform/GraphicsTypes.h: Removed.
  13289. * platform/graphics/GraphicsContext.cpp:
  13290. (WebCore::GraphicsContextState::GraphicsContextState):
  13291. (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
  13292. (WebCore::GraphicsContext::createGraphicsContextPrivate):
  13293. (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
  13294. (WebCore::GraphicsContext::save):
  13295. (WebCore::GraphicsContext::restore):
  13296. (WebCore::GraphicsContext::font):
  13297. (WebCore::GraphicsContext::setFont):
  13298. (WebCore::GraphicsContext::pen):
  13299. (WebCore::GraphicsContext::setPen):
  13300. (WebCore::GraphicsContext::setFillColor):
  13301. (WebCore::GraphicsContext::fillColor):
  13302. (WebCore::GraphicsContext::updatingControlTints):
  13303. (WebCore::GraphicsContext::setUpdatingControlTints):
  13304. (WebCore::GraphicsContext::setPaintingDisabled):
  13305. (WebCore::GraphicsContext::paintingDisabled):
  13306. (WebCore::GraphicsContext::drawImage):
  13307. (WebCore::GraphicsContext::drawText):
  13308. (WebCore::GraphicsContext::drawHighlightForText):
  13309. (WebCore::GraphicsContext::initFocusRing):
  13310. (WebCore::GraphicsContext::clearFocusRing):
  13311. (WebCore::GraphicsContext::focusRingBoundingRect):
  13312. (WebCore::GraphicsContext::addFocusRingRect):
  13313. (WebCore::GraphicsContext::focusRingWidth):
  13314. (WebCore::GraphicsContext::focusRingOffset):
  13315. (WebCore::GraphicsContext::focusRingRects):
  13316. (WebCore::GraphicsContext::drawTiledImage):
  13317. * platform/graphics/GraphicsContext.h:
  13318. * platform/graphics/GraphicsTypes.cpp:
  13319. (WebCore::):
  13320. (WebCore::parseCompositeOperator):
  13321. (WebCore::compositeOperatorName):
  13322. (WebCore::parseLineCap):
  13323. (WebCore::lineCapName):
  13324. (WebCore::parseLineJoin):
  13325. (WebCore::lineJoinName):
  13326. * platform/graphics/GraphicsTypes.h:
  13327. (WebCore::):
  13328. * platform/graphics/svg/SVGResource.cpp: Added.
  13329. (WebCore::SVGResource::SVGResource):
  13330. (WebCore::SVGResource::~SVGResource):
  13331. (WebCore::SVGResource::invalidate):
  13332. (WebCore::SVGResource::addClient):
  13333. (WebCore::SVGResource::clients):
  13334. (WebCore::SVGResource::idInRegistry):
  13335. (WebCore::SVGResource::setIdInRegistry):
  13336. (WebCore::SVGResource::externalRepresentation):
  13337. (WebCore::getResourceById):
  13338. (WebCore::getPaintServerById):
  13339. (WebCore::operator<<):
  13340. * platform/graphics/svg/SVGResource.h: Added.
  13341. (WebCore::):
  13342. (WebCore::SVGResource::isPaintServer):
  13343. (WebCore::SVGResource::isFilter):
  13344. (WebCore::SVGResource::isClipper):
  13345. (WebCore::SVGResource::isMarker):
  13346. (WebCore::SVGResource::isMasker):
  13347. (WebCore::SVGResourceListener::~SVGResourceListener):
  13348. * platform/graphics/svg/SVGResourceClipper.cpp: Added.
  13349. (WebCore::SVGResourceClipper::SVGResourceClipper):
  13350. (WebCore::SVGResourceClipper::~SVGResourceClipper):
  13351. (WebCore::SVGResourceClipper::resetClipData):
  13352. (WebCore::SVGResourceClipper::addClipData):
  13353. (WebCore::SVGResourceClipper::clipData):
  13354. (WebCore::SVGResourceClipper::externalRepresentation):
  13355. (WebCore::operator<<):
  13356. (WebCore::getClipperById):
  13357. * platform/graphics/svg/SVGResourceClipper.h: Added.
  13358. (WebCore::ClipDataList::addPath):
  13359. (WebCore::SVGResourceClipper::isClipper):
  13360. * platform/graphics/svg/SVGResourceImage.h: Added.
  13361. * platform/graphics/svg/SVGResourceMarker.cpp: Added.
  13362. (WebCore::SVGResourceMarker::SVGResourceMarker):
  13363. (WebCore::SVGResourceMarker::~SVGResourceMarker):
  13364. (WebCore::SVGResourceMarker::setMarker):
  13365. (WebCore::SVGResourceMarker::setRef):
  13366. (WebCore::SVGResourceMarker::draw):
  13367. (WebCore::SVGResourceMarker::externalRepresentation):
  13368. (WebCore::getMarkerById):
  13369. * platform/graphics/svg/SVGResourceMarker.h: Added.
  13370. (WebCore::SVGResourceMarker::refX):
  13371. (WebCore::SVGResourceMarker::refY):
  13372. (WebCore::SVGResourceMarker::setAngle):
  13373. (WebCore::SVGResourceMarker::setAutoAngle):
  13374. (WebCore::SVGResourceMarker::angle):
  13375. (WebCore::SVGResourceMarker::setUseStrokeWidth):
  13376. (WebCore::SVGResourceMarker::useStrokeWidth):
  13377. (WebCore::SVGResourceMarker::isMarker):
  13378. * platform/graphics/svg/SVGResourceMasker.cpp: Added.
  13379. (WebCore::SVGResourceMasker::SVGResourceMasker):
  13380. (WebCore::SVGResourceMasker::~SVGResourceMasker):
  13381. (WebCore::SVGResourceMasker::setMask):
  13382. (WebCore::SVGResourceMasker::mask):
  13383. (WebCore::SVGResourceMasker::externalRepresentation):
  13384. (WebCore::getMaskerById):
  13385. * platform/graphics/svg/SVGResourceMasker.h: Added.
  13386. (WebCore::SVGResourceMasker::isMasker):
  13387. * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Added.
  13388. (WebCore::SVGResourceClipper::applyClip):
  13389. * platform/graphics/svg/cg/SVGResourceImageCg.mm: Added.
  13390. (WebCore::SVGResourceImage::SVGResourceImage):
  13391. (WebCore::SVGResourceImage::~SVGResourceImage):
  13392. (WebCore::SVGResourceImage::init):
  13393. (WebCore::SVGResourceImage::size):
  13394. (WebCore::SVGResourceImage::cgLayer):
  13395. (WebCore::SVGResourceImage::setCGLayer):
  13396. * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Added.
  13397. (WebCore::applyLuminanceToAlphaFilter):
  13398. (WebCore::applyExpandAlphatoGrayscaleFilter):
  13399. (WebCore::transformImageIntoGrayscaleMask):
  13400. (WebCore::SVGResourceMasker::applyMask):
  13401. * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Added.
  13402. (WebCore::SVGResourceClipper::applyClip):
  13403. * platform/graphics/svg/qt/SVGResourceImageQt.cpp: Added.
  13404. (WebCore::SVGResourceImage::init):
  13405. (WebCore::SVGResourceImage::size):
  13406. * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Added.
  13407. (WebCore::SVGResourceMasker::applyMask):
  13408. * platform/qt/GraphicsContextQt.cpp:
  13409. * rendering/RenderPath.cpp:
  13410. (WebCore::RenderPath::paint):
  13411. (WebCore::DrawMarkersData::DrawMarkersData):
  13412. (WebCore::RenderPath::drawMarkersIfNeeded):
  13413. * rendering/RenderSVGContainer.cpp:
  13414. (WebCore::RenderSVGContainer::paint):
  13415. * rendering/RenderSVGImage.cpp:
  13416. (WebCore::RenderSVGImage::paint):
  13417. * rendering/SVGInlineFlowBox.cpp:
  13418. (WebCore::paintSVGInlineFlow):
  13419. 2006-10-30 John Sullivan <sullivan@apple.com>
  13420. Reviewed by Brady
  13421. - minor cleanup to make future patches clearer
  13422. * bridge/mac/FrameMac.mm:
  13423. (WebCore::FrameMac::advanceToNextMisspelling):
  13424. renamed misspelling to misspellingNSRange for clarity; changed > 0 test to == 0 test
  13425. with "continue" to better match structure of similar code in markMisspellings; a few
  13426. other style tweaks.
  13427. (WebCore::FrameMac::markMisspellings):
  13428. renamed misspelling to misspellingNSRange for clarity; removed unnecessary braces around
  13429. a block just after a break and outdented accordingly.
  13430. 2006-10-30 John Sullivan <sullivan@apple.com>
  13431. Reviewed by Geoff Garen
  13432. WebCore part of change to push the code that updates the spelling panel
  13433. into WebCore, in preparation for some grammar-checking stuff.
  13434. * bridge/mac/FrameMac.h:
  13435. * bridge/mac/FrameMac.mm:
  13436. (WebCore::FrameMac::advanceToNextMisspelling):
  13437. no more return value for this method, and update the spelling panel with
  13438. the misspelled word here rather than in the WebKit callers.
  13439. 2006-10-30 Oliver Hunt <oliver@apple.com>
  13440. Reviewed by Anders.
  13441. Roll out last patch
  13442. * CMakeLists.txt:
  13443. * ChangeLog:
  13444. * WebCore.xcodeproj/project.pbxproj:
  13445. * graphics/svg/SVGResource.cpp:
  13446. * graphics/svg/SVGResourceClipper.cpp:
  13447. * graphics/svg/SVGResourceClipper.h:
  13448. * graphics/svg/SVGResourceImage.h:
  13449. * graphics/svg/SVGResourceListener.h:
  13450. * graphics/svg/SVGResourceMarker.cpp:
  13451. * graphics/svg/SVGResourceMarker.h:
  13452. * graphics/svg/SVGResourceMasker.cpp:
  13453. * graphics/svg/SVGResourceMasker.h:
  13454. * kcanvas/KCanvasClipper.cpp: Added.
  13455. (WebCore::operator<<):
  13456. (WebCore::KCanvasClipper::KCanvasClipper):
  13457. (WebCore::KCanvasClipper::~KCanvasClipper):
  13458. (WebCore::KCanvasClipper::resetClipData):
  13459. (WebCore::KCanvasClipper::addClipData):
  13460. (WebCore::KCanvasClipper::clipData):
  13461. (WebCore::KCanvasClipper::externalRepresentation):
  13462. (WebCore::getClipperById):
  13463. * kcanvas/KCanvasClipper.h: Added.
  13464. (WebCore::KCClipData::windRule):
  13465. (WebCore::KCClipDataList::KCClipDataList):
  13466. (WebCore::KCClipDataList::addPath):
  13467. (WebCore::KCanvasClipper::isClipper):
  13468. * kcanvas/KCanvasFilters.cpp:
  13469. (WebCore::getFilterById):
  13470. * kcanvas/KCanvasFilters.h:
  13471. * kcanvas/KCanvasImage.h: Added.
  13472. (WebCore::KCanvasImage::KCanvasImage):
  13473. (WebCore::KCanvasImage::~KCanvasImage):
  13474. * kcanvas/KCanvasMarker.cpp: Added.
  13475. (WebCore::KCanvasMarker::KCanvasMarker):
  13476. (WebCore::KCanvasMarker::~KCanvasMarker):
  13477. (WebCore::KCanvasMarker::setMarker):
  13478. (WebCore::KCanvasMarker::setRef):
  13479. (WebCore::KCanvasMarker::refX):
  13480. (WebCore::KCanvasMarker::refY):
  13481. (WebCore::KCanvasMarker::setAngle):
  13482. (WebCore::KCanvasMarker::angle):
  13483. (WebCore::KCanvasMarker::setAutoAngle):
  13484. (WebCore::KCanvasMarker::setUseStrokeWidth):
  13485. (WebCore::KCanvasMarker::useStrokeWidth):
  13486. (WebCore::KCanvasMarker::draw):
  13487. (WebCore::KCanvasMarker::externalRepresentation):
  13488. (WebCore::getMarkerById):
  13489. * kcanvas/KCanvasMarker.h: Added.
  13490. (WebCore::KCanvasMarker::isMarker):
  13491. * kcanvas/KCanvasMasker.cpp: Added.
  13492. (WebCore::KCanvasMasker::KCanvasMasker):
  13493. (WebCore::KCanvasMasker::~KCanvasMasker):
  13494. (WebCore::KCanvasMasker::setMask):
  13495. (WebCore::KCanvasMasker::externalRepresentation):
  13496. (WebCore::getMaskerById):
  13497. * kcanvas/KCanvasMasker.h: Added.
  13498. (WebCore::KCanvasMasker::isMasker):
  13499. (WebCore::KCanvasMasker::mask):
  13500. * kcanvas/KCanvasResource.cpp: Added.
  13501. (WebCore::operator<<):
  13502. (WebCore::KCanvasResource::KCanvasResource):
  13503. (WebCore::KCanvasResource::~KCanvasResource):
  13504. (WebCore::KCanvasResource::addClient):
  13505. (WebCore::KCanvasResource::clients):
  13506. (WebCore::KCanvasResource::invalidate):
  13507. (WebCore::KCanvasResource::idInRegistry):
  13508. (WebCore::KCanvasResource::setIdInRegistry):
  13509. (WebCore::KCanvasResource::externalRepresentation):
  13510. (WebCore::getResourceById):
  13511. (WebCore::getPaintServerById):
  13512. * kcanvas/KCanvasResource.h:
  13513. (WebCore::):
  13514. (WebCore::KCanvasResource::isPaintServer):
  13515. (WebCore::KCanvasResource::isFilter):
  13516. (WebCore::KCanvasResource::isClipper):
  13517. (WebCore::KCanvasResource::isMarker):
  13518. (WebCore::KCanvasResource::isMasker):
  13519. * kcanvas/KCanvasResourceListener.h: Added.
  13520. (KCanvasResourceListener::KCanvasResourceListener):
  13521. (KCanvasResourceListener::~KCanvasResourceListener):
  13522. * kcanvas/KCanvasTreeDebug.cpp:
  13523. (WebCore::writeRenderResources):
  13524. * kcanvas/device/KRenderingDevice.h:
  13525. * kcanvas/device/KRenderingPaintServer.h:
  13526. (WebCore::KRenderingPaintServer::KRenderingPaintServer):
  13527. (WebCore::KRenderingPaintServer::idInRegistry):
  13528. (WebCore::KRenderingPaintServer::setIdInRegistry):
  13529. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  13530. (WebCore::KRenderingPaintServerGradient::listener):
  13531. (WebCore::KRenderingPaintServerGradient::setListener):
  13532. * kcanvas/device/KRenderingPaintServerGradient.h:
  13533. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  13534. (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
  13535. (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
  13536. (WebCore::KRenderingPaintServerPattern::tile):
  13537. (WebCore::KRenderingPaintServerPattern::setTile):
  13538. (WebCore::KRenderingPaintServerPattern::listener):
  13539. (WebCore::KRenderingPaintServerPattern::setListener):
  13540. * kcanvas/device/KRenderingPaintServerPattern.h:
  13541. * kcanvas/device/KRenderingPaintServerSolid.h:
  13542. * kcanvas/device/qt/KCanvasClipperQt.cpp:
  13543. (WebCore::KCanvasClipperQt::applyClip):
  13544. * kcanvas/device/qt/KCanvasClipperQt.h:
  13545. (WebCore::KCanvasClipperQt::KCanvasClipperQt):
  13546. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  13547. (WebCore::KRenderingDeviceQt::contextForImage):
  13548. (WebCore::KRenderingDeviceQt::createResource):
  13549. (WebCore::KRenderingDeviceQt::createPaintServer):
  13550. * kcanvas/device/qt/KRenderingDeviceQt.h:
  13551. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  13552. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
  13553. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  13554. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
  13555. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  13556. (WebCore::KCanvasFilterQuartz::getCIFilterStack):
  13557. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  13558. * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
  13559. (WebCore::KCanvasMaskerQuartz::KCanvasMaskerQuartz):
  13560. * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
  13561. (WebCore::applyLuminanceToAlphaFilter):
  13562. (WebCore::applyExpandAlphatoGrayscaleFilter):
  13563. (WebCore::transformImageIntoGrayscaleMask):
  13564. (WebCore::KCanvasMaskerQuartz::applyMask):
  13565. * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
  13566. (WebCore::KCanvasClipperQuartz::KCanvasClipperQuartz):
  13567. (WebCore::KCanvasImageQuartz::KCanvasImageQuartz):
  13568. (WebCore::KCanvasImageQuartz::init):
  13569. (WebCore::KCanvasImageQuartz::size):
  13570. * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
  13571. (WebCore::KCanvasClipperQuartz::applyClip):
  13572. (WebCore::KCanvasImageQuartz::~KCanvasImageQuartz):
  13573. (WebCore::KCanvasImageQuartz::cgLayer):
  13574. (WebCore::KCanvasImageQuartz::setCGLayer):
  13575. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  13576. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  13577. (WebCore::KRenderingDeviceQuartz::contextForImage):
  13578. (WebCore::KRenderingDeviceQuartz::createPaintServer):
  13579. (WebCore::KRenderingDeviceQuartz::createResource):
  13580. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  13581. (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
  13582. (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
  13583. (WebCore::KRenderingPaintServerGradientQuartz::setup):
  13584. (WebCore::KRenderingPaintServerGradientQuartz::teardown):
  13585. * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
  13586. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  13587. (WebCore::patternCallback):
  13588. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  13589. * kcanvas/device/quartz/QuartzSupport.mm:
  13590. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  13591. (WebCore::sharedSolidPaintServer):
  13592. * ksvg2/svg/SVGClipPathElement.cpp:
  13593. (WebCore::SVGClipPathElement::SVGClipPathElement):
  13594. (WebCore::SVGClipPathElement::~SVGClipPathElement):
  13595. (WebCore::SVGClipPathElement::canvasResource):
  13596. * ksvg2/svg/SVGClipPathElement.h:
  13597. * ksvg2/svg/SVGFEImageElement.cpp:
  13598. * ksvg2/svg/SVGFilterElement.cpp:
  13599. (WebCore::SVGFilterElement::SVGFilterElement):
  13600. (WebCore::SVGFilterElement::~SVGFilterElement):
  13601. (WebCore::SVGFilterElement::canvasResource):
  13602. * ksvg2/svg/SVGFilterElement.h:
  13603. * ksvg2/svg/SVGGradientElement.cpp:
  13604. (WebCore::SVGGradientElement::SVGGradientElement):
  13605. (WebCore::SVGGradientElement::~SVGGradientElement):
  13606. (WebCore::SVGGradientElement::canvasResource):
  13607. (WebCore::SVGGradientElement::resourceNotification):
  13608. * ksvg2/svg/SVGGradientElement.h:
  13609. * ksvg2/svg/SVGImageElement.cpp:
  13610. * ksvg2/svg/SVGLinearGradientElement.cpp:
  13611. (WebCore::SVGLinearGradientElement::buildGradient):
  13612. * ksvg2/svg/SVGLinearGradientElement.h:
  13613. * ksvg2/svg/SVGMarkerElement.cpp:
  13614. (WebCore::SVGMarkerElement::SVGMarkerElement):
  13615. (WebCore::SVGMarkerElement::~SVGMarkerElement):
  13616. (WebCore::SVGMarkerElement::canvasResource):
  13617. * ksvg2/svg/SVGMarkerElement.h:
  13618. * ksvg2/svg/SVGMaskElement.cpp:
  13619. (WebCore::SVGMaskElement::SVGMaskElement):
  13620. (WebCore::SVGMaskElement::~SVGMaskElement):
  13621. (WebCore::SVGMaskElement::drawMaskerContent):
  13622. (WebCore::SVGMaskElement::canvasResource):
  13623. * ksvg2/svg/SVGMaskElement.h:
  13624. * ksvg2/svg/SVGPatternElement.cpp:
  13625. (WebCore::SVGPatternElement::SVGPatternElement):
  13626. (WebCore::SVGPatternElement::~SVGPatternElement):
  13627. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  13628. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  13629. (WebCore::SVGPatternElement::canvasResource):
  13630. * ksvg2/svg/SVGPatternElement.h:
  13631. * ksvg2/svg/SVGRadialGradientElement.cpp:
  13632. (WebCore::SVGRadialGradientElement::buildGradient):
  13633. * ksvg2/svg/SVGRadialGradientElement.h:
  13634. * ksvg2/svg/SVGStyledElement.h:
  13635. (WebCore::SVGStyledElement::canvasResource):
  13636. * platform/GraphicsContext.cpp: Added.
  13637. (WebCore::GraphicsContextState::GraphicsContextState):
  13638. (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
  13639. (WebCore::GraphicsContext::createGraphicsContextPrivate):
  13640. (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
  13641. (WebCore::GraphicsContext::save):
  13642. (WebCore::GraphicsContext::restore):
  13643. (WebCore::GraphicsContext::font):
  13644. (WebCore::GraphicsContext::setFont):
  13645. (WebCore::GraphicsContext::pen):
  13646. (WebCore::GraphicsContext::setPen):
  13647. (WebCore::GraphicsContext::setFillColor):
  13648. (WebCore::GraphicsContext::fillColor):
  13649. (WebCore::GraphicsContext::updatingControlTints):
  13650. (WebCore::GraphicsContext::setUpdatingControlTints):
  13651. (WebCore::GraphicsContext::setPaintingDisabled):
  13652. (WebCore::GraphicsContext::paintingDisabled):
  13653. (WebCore::GraphicsContext::drawImage):
  13654. (WebCore::GraphicsContext::drawText):
  13655. (WebCore::GraphicsContext::drawHighlightForText):
  13656. (WebCore::GraphicsContext::initFocusRing):
  13657. (WebCore::GraphicsContext::clearFocusRing):
  13658. (WebCore::GraphicsContext::focusRingBoundingRect):
  13659. (WebCore::GraphicsContext::addFocusRingRect):
  13660. (WebCore::GraphicsContext::focusRingWidth):
  13661. (WebCore::GraphicsContext::focusRingOffset):
  13662. (WebCore::GraphicsContext::focusRingRects):
  13663. (WebCore::GraphicsContext::drawTiledImage):
  13664. * platform/GraphicsContext.h: Added.
  13665. * platform/GraphicsTypes.cpp: Added.
  13666. (WebCore::):
  13667. (WebCore::parseCompositeOperator):
  13668. (WebCore::compositeOperatorName):
  13669. (WebCore::parseLineCap):
  13670. (WebCore::lineCapName):
  13671. (WebCore::parseLineJoin):
  13672. (WebCore::lineJoinName):
  13673. * platform/GraphicsTypes.h: Added.
  13674. (WebCore::):
  13675. * platform/graphics/GraphicsContext.cpp:
  13676. * platform/graphics/GraphicsContext.h:
  13677. * platform/graphics/GraphicsTypes.cpp:
  13678. * platform/graphics/GraphicsTypes.h:
  13679. * platform/qt/GraphicsContextQt.cpp:
  13680. * rendering/RenderPath.cpp:
  13681. (WebCore::RenderPath::paint):
  13682. (WebCore::DrawMarkersData::DrawMarkersData):
  13683. (WebCore::RenderPath::drawMarkersIfNeeded):
  13684. * rendering/RenderSVGContainer.cpp:
  13685. (WebCore::RenderSVGContainer::paint):
  13686. * rendering/RenderSVGImage.cpp:
  13687. (WebCore::RenderSVGImage::paint):
  13688. * rendering/SVGInlineFlowBox.cpp:
  13689. (WebCore::paintSVGInlineFlow):
  13690. 2006-10-30 John Sullivan <sullivan@apple.com>
  13691. Reviewed by Geoff Garen.
  13692. Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
  13693. grammar-related method.
  13694. * bridge/EditorClient.h:
  13695. declare isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
  13696. isGrammarCheckingEnabled()
  13697. * bridge/mac/WebCoreFrameBridge.h:
  13698. removed bridge equivalents
  13699. * bridge/mac/FrameMac.mm:
  13700. (WebCore::FrameMac::advanceToNextMisspelling):
  13701. convert bridge-using code to editor()->client()-using code
  13702. (WebCore::FrameMac::markMisspellingsInAdjacentWords):
  13703. ditto
  13704. (WebCore::FrameMac::markMisspellings):
  13705. ditto
  13706. (WebCore::FrameMac::respondToChangedSelection):
  13707. ditto
  13708. * editing/Editor.h:
  13709. * editing/Editor.cpp:
  13710. (WebCore::Editor::client):
  13711. new method, returns EditorClient pointer. In an ideal world all the code that needed to
  13712. access the EditorClient would be in Editor.cpp, and we wouldn't need this accessor.
  13713. But for now it's too tricky to extricate the spelling-related code from FrameMac.mm.
  13714. 2006-10-30 Geoffrey Garen <ggaren@apple.com>
  13715. Reviewed by Darin.
  13716. Removed a number of editing and selection methods from the bridge.
  13717. I moved cross-platform editing and selection code into Editor and
  13718. SelectionController, respecitvely.
  13719. I moved ObjC and AppKit stuff up into WebKit, so I ended up exporting
  13720. everything + the kitchen sink.
  13721. Specific comments below for interesting things.
  13722. * bindings/objc/DOMInternal.h: Moved exception handling helper methods into
  13723. a new file so that WebKit can use them, too. Added a helper method for
  13724. handling exceptions when selecting a Range.
  13725. * bridge/mac/FrameMac.h: Moved attributedString creation and helper functions into
  13726. WebKit, since they have to do with creating an NSAttributedString for API
  13727. consumption, and not much to do with general Frame functionality.
  13728. * editing/Editor.h: Moved lastEditCommand tracking (at least the data,
  13729. for now) into the Editor. Eventually, the Frame will not have to notify
  13730. the Editor of what the lastEditCommand was, since the Editor will perform
  13731. all EditCommands.
  13732. * editing/SelectionController.h: The code here is just stuff moved from the bridge.
  13733. * editing/SelectionController.cpp:
  13734. (WebCore::SelectionController::setSelectedRange): We now explicitly check from DOM exceptions
  13735. and return them. The bridge method to select a DOM range did this implicitly,
  13736. since all ObjC DOM operations handle DOM exceptions by throwing them as
  13737. ObjC exceptions.
  13738. * editing/TextAffinity.h: Added helper functions for conversion to NSSelectionAffinity.
  13739. The two enumerations are numerically identical, but that's an implementation
  13740. detail of TextAffinity that clients shouldn't be required to know about.
  13741. 2006-10-30 Timothy Hatcher <timothy@apple.com>
  13742. Rolling out the following change because this crash:
  13743. <rdar://problem/4806705> REGRESSION: Crash occurs at WebCore::Font::lineSpacing() when loading site (http://www.photoplusexpo.com/ppe/index.jsp)
  13744. And this regression:
  13745. <rdar://problem/4728514> REGRESSION: Safari applies the wrong font to BODY element at http://www.apple.com/downloads/dashboard/
  13746. 2006-09-06 David Harrison <harrison@apple.com>
  13747. Reviewed and tweaked by Tim H.
  13748. <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation
  13749. If we don't find the font in the available fonts list, call [NSFont fontWithName:size:]
  13750. to trigger a search that will include auto activation. No PLT or iBench perf impact.
  13751. No layout tests affected. Not testable in an automated way that will work on all systems.
  13752. * platform/mac/WebFontCache.mm:
  13753. (+[WebFontCache fontWithFamily:traits:size:]):
  13754. 2006-10-30 Justin Garcia <justin.garcia@apple.com>
  13755. Reviewed by harrison
  13756. <rdar://problem/4808375>
  13757. REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) (11460)
  13758. * editing/TextIterator.cpp:
  13759. (WebCore::TextIterator::exitNode): Only create VisiblePositions
  13760. when we're going to use them to create a range for an emitted character.
  13761. We should further speed TextIterators up by avoiding creating VisiblePositions
  13762. for TIs that are only used for the characters they emit (like the one that
  13763. plainText uses).
  13764. 2006-10-30 Sam Weinig <sam.weinig@gmail.com>
  13765. Reviewed by Mitz.
  13766. Fix for http://bugs.webkit.org/show_bug.cgi?id=11441
  13767. More rendering code cleaning
  13768. * WebCore.xcodeproj/project.pbxproj:
  13769. * rendering/RenderApplet.cpp:
  13770. (WebCore::RenderApplet::RenderApplet):
  13771. (WebCore::RenderApplet::createWidgetIfNecessary):
  13772. * rendering/RenderApplet.h:
  13773. * rendering/RenderArena.cpp:
  13774. (WebCore::):
  13775. (WebCore::RenderArena::RenderArena):
  13776. (WebCore::RenderArena::allocate):
  13777. (WebCore::RenderArena::free):
  13778. * rendering/RenderArena.h:
  13779. * rendering/RenderBR.cpp:
  13780. (WebCore::RenderBR::RenderBR):
  13781. (WebCore::RenderBR::baselinePosition):
  13782. (WebCore::RenderBR::lineHeight):
  13783. (WebCore::RenderBR::setStyle):
  13784. (WebCore::RenderBR::caretMinOffset):
  13785. (WebCore::RenderBR::positionForCoordinates):
  13786. (WebCore::RenderBR::inlineBox):
  13787. * rendering/RenderBR.h:
  13788. * rendering/RenderBlock.cpp:
  13789. * rendering/RenderBlock.h:
  13790. (WebCore::RenderBlock::maxTopMargin):
  13791. (WebCore::RenderBlock::maxBottomMargin):
  13792. (WebCore::RenderBlock::initMaxMarginValues):
  13793. (WebCore::RenderBlock::containsFloats):
  13794. (WebCore::RenderBlock::setHasMarkupTruncation):
  13795. (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
  13796. (WebCore::RenderBlock::BlockSelectionInfo::block):
  13797. (WebCore::RenderBlock::BlockSelectionInfo::state):
  13798. (WebCore::RenderBlock::FloatingObject::FloatingObject):
  13799. (WebCore::RenderBlock::CompactInfo::clear):
  13800. * rendering/RenderButton.cpp:
  13801. (WebCore::RenderButton::removeChild):
  13802. (WebCore::RenderButton::paintObject):
  13803. * rendering/RenderButton.h:
  13804. (WebCore::RenderButton::renderName):
  13805. (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
  13806. * rendering/RenderContainer.cpp:
  13807. (WebCore::RenderContainer::RenderContainer):
  13808. * rendering/RenderContainer.h:
  13809. (WebCore::RenderContainer::firstChild):
  13810. (WebCore::RenderContainer::lastChild):
  13811. (WebCore::RenderContainer::calcMinMaxWidth):
  13812. * rendering/RenderCounter.cpp:
  13813. (WebCore::RenderCounter::RenderCounter):
  13814. (WebCore::toRoman):
  13815. (WebCore::toHebrew):
  13816. (WebCore::RenderCounter::calcMinMaxWidth):
  13817. * rendering/RenderCounter.h:
  13818. * rendering/RenderFieldset.cpp:
  13819. (WebCore::RenderFieldset::paintBoxDecorations):
  13820. (WebCore::RenderFieldset::paintBorderMinusLegend):
  13821. (WebCore::RenderFieldset::setStyle):
  13822. * rendering/RenderFileUploadControl.cpp:
  13823. (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
  13824. (WebCore::RenderFileUploadControl::setStyle):
  13825. (WebCore::RenderFileUploadControl::paintObject):
  13826. (WebCore::RenderFileUploadControl::calcMinMaxWidth):
  13827. * rendering/RenderFileUploadControl.h:
  13828. (WebCore::RenderFileUploadControl::renderName):
  13829. * rendering/RenderFlexibleBox.h:
  13830. * rendering/RenderFlow.cpp:
  13831. * rendering/RenderFlow.h:
  13832. * rendering/RenderForeignObject.cpp:
  13833. (WebCore::RenderForeignObject::RenderForeignObject):
  13834. (WebCore::RenderForeignObject::paint):
  13835. (WebCore::RenderForeignObject::computeAbsoluteRepaintRect):
  13836. (WebCore::RenderForeignObject::layout):
  13837. (WebCore::RenderForeignObject::nodeAtPoint):
  13838. * rendering/RenderForeignObject.h:
  13839. (WebCore::RenderForeignObject::renderName):
  13840. * rendering/RenderFormElement.cpp:
  13841. (WebCore::RenderFormElement::setStyle):
  13842. (WebCore::RenderFormElement::layout):
  13843. (WebCore::RenderFormElement::textAlignment):
  13844. * rendering/RenderFormElement.h:
  13845. * rendering/RenderFrame.cpp:
  13846. * rendering/RenderFrame.h:
  13847. (WebCore::RenderFrame::element):
  13848. * rendering/RenderFrameSet.cpp:
  13849. * rendering/RenderFrameSet.h:
  13850. (WebCore::RenderFrameSet::element):
  13851. * rendering/RenderHTMLCanvas.cpp:
  13852. (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
  13853. (WebCore::RenderHTMLCanvas::paint):
  13854. * rendering/RenderHTMLCanvas.h:
  13855. (WebCore::RenderHTMLCanvas::renderName):
  13856. * rendering/RenderImage.cpp:
  13857. (WebCore::RenderImage::RenderImage):
  13858. (WebCore::RenderImage::setStyle):
  13859. (WebCore::RenderImage::setContentObject):
  13860. (WebCore::RenderImage::setCachedImage):
  13861. (WebCore::RenderImage::imageChanged):
  13862. (WebCore::RenderImage::paint):
  13863. (WebCore::RenderImage::layout):
  13864. (WebCore::RenderImage::updateAltText):
  13865. * rendering/RenderImage.h:
  13866. (WebCore::RenderImage::element):
  13867. * rendering/RenderInline.cpp:
  13868. (WebCore::RenderInline::RenderInline):
  13869. (WebCore::RenderInline::~RenderInline):
  13870. (WebCore::RenderInline::setStyle):
  13871. (WebCore::RenderInline::addChildToFlow):
  13872. (WebCore::RenderInline::cloneInline):
  13873. (WebCore::RenderInline::splitInlines):
  13874. (WebCore::RenderInline::splitFlow):
  13875. (WebCore::RenderInline::paint):
  13876. (WebCore::RenderInline::absoluteRects):
  13877. (WebCore::RenderInline::calcMinMaxWidth):
  13878. (WebCore::RenderInline::requiresLayer):
  13879. (WebCore::RenderInline::width):
  13880. (WebCore::RenderInline::height):
  13881. (WebCore::RenderInline::renderName):
  13882. (WebCore::RenderInline::nodeAtPoint):
  13883. (WebCore::RenderInline::positionForCoordinates):
  13884. * rendering/RenderInline.h:
  13885. (WebCore::RenderInline::layout):
  13886. * rendering/RenderLayer.cpp:
  13887. * rendering/RenderLayer.h:
  13888. (WebCore::ClipRects::ClipRects):
  13889. (WebCore::RenderLayer::nextSibling):
  13890. (WebCore::RenderLayer::root):
  13891. (WebCore::RenderLayer::setPos):
  13892. (WebCore::RenderLayer::height):
  13893. (WebCore::RenderLayer::relativePositionOffset):
  13894. * rendering/RenderLineEdit.cpp:
  13895. (WebCore::RenderLineEdit::setStyle):
  13896. (WebCore::RenderLineEdit::updateFromElement):
  13897. (WebCore::RenderLineEdit::selectionStart):
  13898. (WebCore::RenderLineEdit::selectionEnd):
  13899. (WebCore::RenderLineEdit::setSelectionStart):
  13900. (WebCore::RenderLineEdit::setSelectionEnd):
  13901. (WebCore::RenderLineEdit::setSelectionRange):
  13902. * rendering/RenderLineEdit.h:
  13903. * rendering/RenderListBox.cpp:
  13904. * rendering/RenderListBox.h:
  13905. (WebCore::RenderListBox::renderName):
  13906. * rendering/RenderListItem.cpp:
  13907. (WebCore::RenderListItem::setStyle):
  13908. (WebCore::getParentOfFirstLineBox):
  13909. (WebCore::RenderListItem::updateMarkerLocation):
  13910. (WebCore::RenderListItem::positionListMarker):
  13911. (WebCore::RenderListItem::paint):
  13912. * rendering/RenderListItem.h:
  13913. * rendering/RenderListMarker.cpp:
  13914. * rendering/RenderListMarker.h:
  13915. (WebCore::RenderListMarker::renderName):
  13916. (WebCore::RenderListMarker::isListMarker):
  13917. 2006-10-30 Timothy Hatcher <timothy@apple.com>
  13918. Reviewed by Hyatt.
  13919. <rdar://problem/4478625> Basic table editing and culling
  13920. Refined the criteria for deletable elements, rely on the renderer more.
  13921. Corrected the interface positioning for elements that have borders.
  13922. * editing/DeleteButtonController.cpp:
  13923. (WebCore::isDeletableElement):
  13924. (WebCore::DeleteButtonController::show):
  13925. 2006-10-30 Darin Adler <darin@apple.com>
  13926. - fix build
  13927. * loader/ResourceLoader.h: Added header guard.
  13928. 2006-10-31 Darin Adler <darin@apple.com>
  13929. Reviewed by Adam.
  13930. - fix FrameLoader files so they can be built on non-Mac platforms
  13931. * page/FramePrivate.h:
  13932. (WebCore::FramePrivate::FramePrivate): Added code to create the frame loader.
  13933. (WebCore::FramePrivate::~FramePrivate): Added code to delete the frame loader.
  13934. * page/Page.h:
  13935. * page/Page.cpp: (WebCore::Page::setDefersLoading): Removed the
  13936. #if PLATFORM(MAC) that Adam added as a stop-gap when I did this wrong
  13937. the other day.
  13938. * bridge/mac/FrameMac.mm:
  13939. (WebCore::FrameMac::FrameMac): Removed code to create the frame loader.
  13940. (WebCore::FrameMac::~FrameMac): Removed code to delete the frame loader.
  13941. * loader/FrameLoader.h: Changed import to include, added #if PLATFORM(MAC)
  13942. around the PolicyCheck definition.
  13943. * loader/FormState.cpp: Changed import to include.
  13944. * loader/FrameLoader.cpp: Ditto.
  13945. * loader/MainResourceLoader.h: Ditto.
  13946. * loader/FrameLoaderTypes.h: Added a header guard.
  13947. * loader/NetscapePlugInStreamLoader.h: Changed import to include.
  13948. Added #if PLATFORM(MAC) around Mac-specific details.
  13949. * loader/SubresourceLoader.h: Ditto.
  13950. * page/Frame.cpp: (WebCore::Frame::loader): Updated name of loader to
  13951. m_loader from m_frameLoader.
  13952. * CMakeLists.txt: Updated.
  13953. * WebCoreSources.bkl: Updated.
  13954. 2006-10-30 Nikolas Zimmermann <zimmermann@kde.org>
  13955. Reviewed and landed by Anders.
  13956. Patch by Zack rusin to fix:
  13957. http://bugs.webkit.org/show_bug.cgi?id=11429
  13958. Fix startup crash.
  13959. * platform/qt/FrameQtClient.cpp:
  13960. (WebCore::FrameQtClientDefault::openURL):
  13961. 2006-10-30 Zach Rusin <zack@kde.org>
  13962. Reviewed and landed by Anders.
  13963. * platform/network/qt/ResourceHandleQt.cpp:
  13964. (WebCore::ResourceHandle::receivedResponse):
  13965. * platform/qt/FrameQtClient.cpp:
  13966. (WebCore::FrameQtClientDefault::FrameQtClientDefault):
  13967. * platform/qt/LoaderFunctionsQt.cpp:
  13968. (WebCore::ServeSynchronousRequest):
  13969. More build fixes.
  13970. 2006-10-30 Simon Hausmann <hausmann@kde.org>
  13971. Reviewed and landed by Anders.
  13972. - fix Qt build
  13973. * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
  13974. ResourceHandleClient
  13975. 2006-10-30 Darin Adler <darin@apple.com>
  13976. Reviewed by John Sullivan.
  13977. - work toward removing Objective-C data types from FrameLoader.h:
  13978. removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
  13979. and WebCoreResourceHandle
  13980. - moved bodyBackgroundColor function from Frame to WebFrame in WebKit
  13981. * page/PageState.h:
  13982. * page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
  13983. * bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
  13984. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
  13985. double for the date instead of an NSDate.
  13986. * bridge/mac/WebCoreFrameBridge.h:
  13987. * bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
  13988. saveDocumentToPageCache methods.
  13989. * bridge/mac/WebCorePageState.h:
  13990. * bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
  13991. an Objective-C wrapper for PageState.
  13992. * loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
  13993. NSDate and WebCorePageState.
  13994. * loader/FrameLoaderClient.h: Changed NSDate to double.
  13995. * loader/mac/FrameLoaderMac.mm:
  13996. (WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
  13997. here that used to be in invalidateCurrentItemPageCache on the WebKit side.
  13998. (WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
  13999. (WebCore::FrameLoader::open): Moved one of the open functions that was part of
  14000. commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
  14001. extract the parameters from the response. Changed the open function that takes
  14002. a PageState to use the new C++ PageState.
  14003. (WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
  14004. function; tightened up logic, removing a few cases that could never happen, as
  14005. well as the unused reload boolean.
  14006. * ForwardingHeaders/kjs/property_map.h: Added.
  14007. * WebCore.exp: Updated.
  14008. * WebCore.xcodeproj/project.pbxproj: Updated.
  14009. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  14010. Reviewed by Anders.
  14011. - added ResourceResponse class and didReceiveResponse delegate call
  14012. * WebCore.xcodeproj/project.pbxproj: Added new files.
  14013. * bridge/mac/WebCoreFrameBridge.h: Removed no longer needed
  14014. expiresTimeForResponse: method.
  14015. * dom/XMLTokenizer.cpp:
  14016. (WebCore::openFunc): Updated to use ResourceResponse.
  14017. * loader/FrameLoader.h: Update loadResourceSynchronously to
  14018. use ResourceResponse.
  14019. * loader/LoaderFunctions.h:
  14020. * loader/icon/IconLoader.cpp:
  14021. (IconLoader::didReceiveResponse): Updated from receivedResponse
  14022. and made cross-platform.
  14023. * loader/icon/IconLoader.h: updated for above change
  14024. * loader/loader.cpp:
  14025. (WebCore::Loader::receivedResponse): reduced to just saving
  14026. the PlatformResponse (ideally we'd phase out use of this).
  14027. (WebCore::Loader::didReceivedResponse): most of the ReceivedResponse
  14028. logic.
  14029. * loader/loader.h:
  14030. * loader/mac/FrameLoaderMac.mm:
  14031. (WebCore::FrameLoader::loadResourceSynchronously): Return results
  14032. as ResourceResponse.
  14033. * loader/mac/IconLoaderMac.mm: remove receivedResponse.
  14034. * loader/mac/LoaderFunctionsMac.mm:
  14035. (WebCore::ServeSynchronousRequest): take ResourceResponse as
  14036. argument.
  14037. * platform/network/ResourceHandle.cpp:
  14038. * platform/network/ResourceHandle.h: Remove calls for
  14039. broken out response pieces.
  14040. * platform/network/ResourceHandleClient.h:
  14041. (WebCore::ResourceHandleClient::didReceiveResponse): New
  14042. delegate method.
  14043. * platform/network/ResourceHandleInternal.h:
  14044. (WebCore::ResourceHandleInternal::ResourceHandleInternal): Remove
  14045. storage of response bits, we're not gonna return them
  14046. seprately any more.
  14047. * platform/network/ResourceResponse.h: Added.
  14048. (WebCore::ResourceResponse::ResourceResponse): Freshly
  14049. implemented. Same for below.
  14050. (WebCore::ResourceResponse::url):
  14051. (WebCore::ResourceResponse::mimeType):
  14052. (WebCore::ResourceResponse::expectedContentLength):
  14053. (WebCore::ResourceResponse::textEncodingName):
  14054. (WebCore::ResourceResponse::suggestedFilename):
  14055. (WebCore::ResourceResponse::httpStatusCode):
  14056. (WebCore::ResourceResponse::setHTTPStatusCode):
  14057. (WebCore::ResourceResponse::httpHeaderField):
  14058. (WebCore::ResourceResponse::httpHeaderFields):
  14059. (WebCore::ResourceResponse::isMultipart):
  14060. (WebCore::ResourceResponse::setExpirationDate):
  14061. (WebCore::ResourceResponse::expirationDate):
  14062. * platform/network/cf/ResourceHandleCFNet.cpp:
  14063. (WebCore::didReceiveResponse): Send didReceiveResponse
  14064. client method.
  14065. * platform/network/cf/ResourceResponseCFNet.h: Added.
  14066. * platform/network/cf/ResourceResponseCFNet.mm: Added.
  14067. (getResourceResponse): Helper function to get a ResourceResponse
  14068. from CFURLResponseRef.
  14069. * platform/network/mac/ResourceHandleMac.mm:
  14070. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14071. Don't bother cleaning up fields we no longer have.
  14072. (WebCore::ResourceHandle::receivedResponse): Send
  14073. didReceiveResponse client method.
  14074. * platform/network/mac/ResourceResponseMac.h: Added.
  14075. * platform/network/mac/ResourceResponseMac.mm: Added.
  14076. (getResourceResponse): Helper function to get a ResourceResponse
  14077. from an NSURLResponse*.
  14078. * rendering/HitTestResult.cpp:
  14079. * xml/XSLTProcessor.cpp:
  14080. (WebCore::docLoaderFunc): Prepare for use of ResourceResponse.
  14081. * xml/xmlhttprequest.cpp:
  14082. (WebCore::XMLHttpRequest::getResponseText): Store http response
  14083. info in the form of a ResourceResponse, change all methods to
  14084. account for this.
  14085. (WebCore::XMLHttpRequest::getResponseXML):
  14086. (WebCore::XMLHttpRequest::XMLHttpRequest):
  14087. (WebCore::XMLHttpRequest::open):
  14088. (WebCore::XMLHttpRequest::send):
  14089. (WebCore::XMLHttpRequest::getAllResponseHeaders):
  14090. (WebCore::XMLHttpRequest::getResponseHeader):
  14091. (WebCore::XMLHttpRequest::getStatus):
  14092. (WebCore::XMLHttpRequest::getStatusText):
  14093. (WebCore::XMLHttpRequest::processSyncLoadResults):
  14094. (WebCore::XMLHttpRequest::didFinishLoading):
  14095. (WebCore::XMLHttpRequest::didReceiveResponse):
  14096. (WebCore::XMLHttpRequest::didReceiveData):
  14097. * xml/xmlhttprequest.h:
  14098. 2006-10-29 Darin Adler <darin@apple.com>
  14099. - fix build
  14100. * loader/DocumentLoader.h: Add declarations so this compiles without ObjC.
  14101. * loader/NetscapePlugInStreamLoader.h: Ditto.
  14102. * loader/ResourceLoader.h: Ditto.
  14103. 2006-10-29 Darin Adler <darin@apple.com>
  14104. - one last name change -- WebFormState.h to FormState.h
  14105. - added more empty placeholder platform-independent files
  14106. for currently-Mac-specific loader classes
  14107. * loader/FormState.cpp: Updated include.
  14108. * loader/FrameLoader.cpp: Updated include.
  14109. * loader/mac/FrameLoaderMac.mm: Updated include.
  14110. * loader/WebFormState.h: Removed.
  14111. * loader/FormState.h: Added.
  14112. * loader/DocumentLoader.cpp: Added.
  14113. * loader/MainResourceLoader.cpp: Added.
  14114. * loader/NetscapePlugInStreamLoader.cpp: Added.
  14115. * loader/ResourceLoader.cpp: Added.
  14116. * loader/SubresourceLoader.cpp: Added.
  14117. * WebCore.xcodeproj/project.pbxproj: Updated for changes above.
  14118. 2006-10-29 Darin Adler <darin@apple.com>
  14119. - did the do-webcore-rename renames, including a number of changes
  14120. to the names of loader files (and WebResourceLoader -> ResourceLoader),
  14121. jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
  14122. and improvements to the names of decoder classes and their source
  14123. files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
  14124. * CMakeLists.txt:
  14125. * WebCore.exp:
  14126. * WebCore.vcproj/WebCore/WebCore.vcproj:
  14127. * WebCore.xcodeproj/project.pbxproj:
  14128. * WebCoreSources.bkl:
  14129. * bindings/js/kjs_binding.cpp:
  14130. (KJS::ScriptInterpreter::updateDOMNodeDocument):
  14131. * bindings/js/kjs_events.cpp:
  14132. (KJS::JSAbstractEventListener::handleEvent):
  14133. (KJS::JSLazyEventListener::parseCode):
  14134. * bindings/js/kjs_html.cpp:
  14135. (KJS::JSHTMLElement::implementsCall):
  14136. * bindings/js/kjs_traversal.cpp:
  14137. (KJS::JSNodeFilterCondition::acceptNode):
  14138. * bindings/js/kjs_window.cpp:
  14139. (KJS::Window::interpreter):
  14140. (KJS::Window::retrieveWindow):
  14141. (KJS::Window::retrieve):
  14142. (KJS::ScheduledAction::execute):
  14143. * bindings/objc/DOMInternal.mm:
  14144. (-[WebScriptObject _initializeScriptDOMNodeImp]):
  14145. * bridge/mac/FrameMac.mm:
  14146. (WebCore::FrameMac::executionContextForDOM):
  14147. (WebCore::FrameMac::bindingRootObject):
  14148. (WebCore::FrameMac::windowScriptObject):
  14149. (WebCore::FrameMac::windowScriptNPObject):
  14150. (WebCore::FrameMac::partClearedInBegin):
  14151. * bridge/mac/WebCoreEncodings.mm:
  14152. * bridge/mac/WebCoreFrameBridge.mm:
  14153. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
  14154. (-[WebCoreFrameBridge stringWithData:]):
  14155. (-[WebCoreFrameBridge executionContextForView:]):
  14156. * bridge/win/FrameWin.cpp:
  14157. * dom/Document.cpp:
  14158. (WebCore::Document::inputEncoding):
  14159. (WebCore::Document::setCharset):
  14160. (WebCore::Document::createHTMLEventListener):
  14161. (WebCore::Document::setDecoder):
  14162. * dom/Document.h:
  14163. (WebCore::Document::decoder):
  14164. * dom/EventTargetNode.cpp:
  14165. (WebCore::EventTargetNode::dispatchGenericEvent):
  14166. * html/HTMLParser.cpp:
  14167. (WebCore::HTMLParser::noscriptCreateErrorCheck):
  14168. (WebCore::HTMLParser::canvasCreateErrorCheck):
  14169. (WebCore::HTMLParser::isInline):
  14170. * html/HTMLPlugInElement.cpp:
  14171. (WebCore::HTMLPlugInElement::createNPObject):
  14172. * html/HTMLScriptElement.cpp:
  14173. (WebCore::HTMLScriptElement::evaluateScript):
  14174. * html/HTMLTokenizer.cpp:
  14175. (WebCore::HTMLTokenizer::parseTag):
  14176. (WebCore::HTMLTokenizer::processToken):
  14177. * ksvg2/misc/SVGDocumentExtensions.cpp:
  14178. (WebCore::SVGDocumentExtensions::createSVGEventListener):
  14179. * loader/CachedCSSStyleSheet.cpp:
  14180. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  14181. (WebCore::CachedCSSStyleSheet::setEncoding):
  14182. * loader/CachedCSSStyleSheet.h:
  14183. * loader/CachedXBLDocument.cpp:
  14184. (WebCore::CachedXBLDocument::CachedXBLDocument):
  14185. (WebCore::CachedXBLDocument::setEncoding):
  14186. * loader/CachedXBLDocument.h:
  14187. * loader/CachedXSLStyleSheet.cpp:
  14188. (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
  14189. (WebCore::CachedXSLStyleSheet::setEncoding):
  14190. * loader/CachedXSLStyleSheet.h:
  14191. * loader/Decoder.cpp: Removed.
  14192. * loader/Decoder.h: Removed.
  14193. * loader/FrameLoader.cpp:
  14194. * loader/FrameLoader.h:
  14195. * loader/FrameLoaderClient.h:
  14196. * loader/MainResourceLoader.h: Added.
  14197. * loader/NetscapePlugInStreamLoader.h: Added.
  14198. * loader/Request.h:
  14199. (WebCore::Request::cachedResource):
  14200. * loader/ResourceLoader.h: Added.
  14201. * loader/SubresourceLoader.h: Added.
  14202. * loader/TextResourceDecoder.cpp: Added.
  14203. (WebCore::TextResourceDecoder::determineContentType):
  14204. (WebCore::TextResourceDecoder::defaultEncoding):
  14205. (WebCore::TextResourceDecoder::TextResourceDecoder):
  14206. (WebCore::TextResourceDecoder::~TextResourceDecoder):
  14207. (WebCore::TextResourceDecoder::setEncoding):
  14208. (WebCore::TextResourceDecoder::checkForBOM):
  14209. (WebCore::TextResourceDecoder::checkForCSSCharset):
  14210. (WebCore::TextResourceDecoder::checkForHeadCharset):
  14211. (WebCore::TextResourceDecoder::detectJapaneseEncoding):
  14212. (WebCore::TextResourceDecoder::decode):
  14213. (WebCore::TextResourceDecoder::flush):
  14214. * loader/TextResourceDecoder.h: Added.
  14215. * loader/WebDocumentLoader.h: Removed.
  14216. * loader/WebLoader.h: Removed.
  14217. * loader/WebMainResourceLoader.h: Removed.
  14218. * loader/WebNetscapePlugInStreamLoader.h: Removed.
  14219. * loader/WebSubresourceLoader.h: Removed.
  14220. * loader/loader.cpp:
  14221. (WebCore::Loader::servePendingRequests):
  14222. (WebCore::Loader::receivedAllData):
  14223. (WebCore::Loader::receivedResponse):
  14224. (WebCore::Loader::didReceiveData):
  14225. (WebCore::Loader::cancelRequests):
  14226. (WebCore::Loader::jobForRequest):
  14227. * loader/mac/DocumentLoaderMac.mm:
  14228. * loader/mac/FormDataStream.m: Added.
  14229. * loader/mac/FrameLoaderMac.mm:
  14230. (WebCore::FrameLoader::cancelPendingArchiveLoad):
  14231. (WebCore::FrameLoader::addPlugInStreamLoader):
  14232. (WebCore::FrameLoader::removePlugInStreamLoader):
  14233. (WebCore::FrameLoader::addSubresourceLoader):
  14234. (WebCore::FrameLoader::removeSubresourceLoader):
  14235. (WebCore::FrameLoader::willSendRequest):
  14236. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  14237. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  14238. (WebCore::FrameLoader::didReceiveResponse):
  14239. (WebCore::FrameLoader::didReceiveData):
  14240. (WebCore::FrameLoader::didFinishLoad):
  14241. (WebCore::FrameLoader::didFailToLoad):
  14242. (WebCore::FrameLoader::open):
  14243. (WebCore::FrameLoader::willUseArchive):
  14244. (WebCore::FrameLoader::isArchiveLoadPending):
  14245. * loader/mac/ImageDocumentMac.mm:
  14246. * loader/mac/LoaderFunctionsMac.mm:
  14247. (WebCore::CheckCacheObjectStatus):
  14248. * loader/mac/MainResourceLoaderMac.mm:
  14249. (WebCore::MainResourceLoader::MainResourceLoader):
  14250. (WebCore::MainResourceLoader::releaseDelegate):
  14251. (WebCore::MainResourceLoader::didCancel):
  14252. (WebCore::MainResourceLoader::addData):
  14253. (WebCore::MainResourceLoader::willSendRequest):
  14254. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  14255. (WebCore::MainResourceLoader::didReceiveData):
  14256. (WebCore::MainResourceLoader::didFinishLoading):
  14257. (WebCore::MainResourceLoader::setDefersLoading):
  14258. * loader/mac/NetscapePlugInStreamLoaderMac.mm:
  14259. (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
  14260. (WebCore::NetscapePlugInStreamLoader::releaseResources):
  14261. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  14262. (WebCore::NetscapePlugInStreamLoader::didReceiveData):
  14263. (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  14264. (WebCore::NetscapePlugInStreamLoader::didFail):
  14265. (WebCore::NetscapePlugInStreamLoader::didCancel):
  14266. * loader/mac/ResourceLoaderMac.mm:
  14267. (WebCore::ResourceLoader::ResourceLoader):
  14268. (WebCore::ResourceLoader::~ResourceLoader):
  14269. (WebCore::ResourceLoader::releaseResources):
  14270. (WebCore::ResourceLoader::load):
  14271. (WebCore::ResourceLoader::setDefersLoading):
  14272. (WebCore::ResourceLoader::frameLoader):
  14273. (WebCore::ResourceLoader::addData):
  14274. (WebCore::ResourceLoader::resourceData):
  14275. (WebCore::ResourceLoader::clearResourceData):
  14276. (WebCore::ResourceLoader::willSendRequest):
  14277. (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
  14278. (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
  14279. (WebCore::ResourceLoader::didReceiveResponse):
  14280. (WebCore::ResourceLoader::didReceiveData):
  14281. (WebCore::ResourceLoader::willStopBufferingData):
  14282. (WebCore::ResourceLoader::didFinishLoading):
  14283. (WebCore::ResourceLoader::didFinishLoadingOnePart):
  14284. (WebCore::ResourceLoader::didFail):
  14285. (WebCore::ResourceLoader::willCacheResponse):
  14286. (WebCore::ResourceLoader::didCancel):
  14287. (WebCore::ResourceLoader::cancel):
  14288. (WebCore::ResourceLoader::setIdentifier):
  14289. (WebCore::ResourceLoader::response):
  14290. (WebCore::ResourceLoader::inConnectionCallback):
  14291. (WebCore::ResourceLoader::cancelledError):
  14292. (WebCore::ResourceLoader::receivedCredential):
  14293. (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
  14294. (WebCore::ResourceLoader::receivedCancellation):
  14295. (WebCore::ResourceLoader::delegate):
  14296. (WebCore::ResourceLoader::releaseDelegate):
  14297. (-[WebCoreResourceLoaderAsDelegate initWithLoader:]):
  14298. * loader/mac/SubresourceLoaderMac.mm:
  14299. (WebCore::SubresourceLoader::SubresourceLoader):
  14300. (WebCore::SubresourceLoader::willSendRequest):
  14301. (WebCore::SubresourceLoader::didReceiveResponse):
  14302. (WebCore::SubresourceLoader::didReceiveData):
  14303. (WebCore::SubresourceLoader::didFinishLoading):
  14304. (WebCore::SubresourceLoader::didFail):
  14305. (WebCore::SubresourceLoader::didCancel):
  14306. * loader/mac/WebFormDataStream.h: Removed.
  14307. * loader/mac/WebFormDataStream.m: Removed.
  14308. * page/Frame.cpp:
  14309. (WebCore::Frame::javaScriptEnabled):
  14310. (WebCore::Frame::scriptProxy):
  14311. (WebCore::Frame::executeScript):
  14312. (WebCore::Frame::write):
  14313. (WebCore::Frame::userGestureHint):
  14314. (WebCore::Frame::saveInterpreterBuiltins):
  14315. (WebCore::Frame::restoreInterpreterBuiltins):
  14316. (WebCore::Frame::backslashAsCurrencySymbol):
  14317. * page/Frame.h:
  14318. * page/FramePrivate.h:
  14319. * platform/StreamingTextDecoder.cpp: Removed.
  14320. * platform/StreamingTextDecoder.h: Removed.
  14321. * platform/StreamingTextDecoderICU.cpp: Removed.
  14322. * platform/StreamingTextDecoderICU.h: Removed.
  14323. * platform/TextCodec.cpp: Added.
  14324. * platform/TextCodec.h: Added.
  14325. * platform/TextCodecICU.cpp: Added.
  14326. * platform/TextCodecICU.h: Added.
  14327. * platform/TextCodecLatin1.h:
  14328. * platform/TextCodecUTF16.h:
  14329. * platform/TextDecoder.h:
  14330. * platform/TextEncoding.cpp:
  14331. * platform/TextEncodingRegistry.cpp:
  14332. * platform/image-decoders/jpeg/jmorecfg.h:
  14333. * platform/mac/StreamingTextDecoderMac.cpp: Removed.
  14334. * platform/mac/StreamingTextDecoderMac.h: Removed.
  14335. * platform/mac/TextCodecMac.cpp: Added.
  14336. * platform/mac/TextCodecMac.h: Added.
  14337. * platform/network/ResourceHandleInternal.h:
  14338. * platform/network/mac/ResourceHandleMac.mm:
  14339. * platform/qt/FrameQt.cpp:
  14340. (WebCore::FrameQt::bindingRootObject):
  14341. * platform/qt/LoaderFunctionsQt.cpp:
  14342. (WebCore::CheckCacheObjectStatus):
  14343. * rendering/RenderObject.cpp:
  14344. (WebCore::RenderObject::backslashAsCurrencySymbol):
  14345. * xml/XSLTProcessor.cpp:
  14346. (WebCore::XSLTProcessor::createDocumentFromSource):
  14347. * xml/xmlhttprequest.cpp:
  14348. (WebCore::XMLHttpRequest::didReceiveData):
  14349. * xml/xmlhttprequest.h:
  14350. 2006-10-29 Darin Adler <darin@apple.com>
  14351. Rubber stamped by Adam (kinda).
  14352. - add Mac suffixes and correct filenames inside loader/mac
  14353. * WebCore.xcodeproj/project.pbxproj: Updated for changes below.
  14354. * loader/mac/FrameLoader.mm: Removed.
  14355. * loader/mac/WebDocumentLoader.mm: Removed.
  14356. * loader/mac/WebLoader.mm: Removed.
  14357. * loader/mac/WebMainResourceLoader.mm: Removed.
  14358. * loader/mac/WebNetscapePlugInStreamLoader.mm: Removed.
  14359. * loader/mac/WebSubresourceLoader.mm: Removed.
  14360. * loader/mac/FrameLoaderMac.mm: Added.
  14361. * loader/mac/DocumentLoaderMac.mm: Added.
  14362. * loader/mac/ResourceLoaderMac.mm: Added.
  14363. * loader/mac/MainResourceLoaderMac.mm: Added.
  14364. * loader/mac/WebNetscapePlugInStreamLoaderMac.mm: Added.
  14365. * loader/mac/SubresourceLoaderMac.mm: Removed.
  14366. 2006-10-29 Darin Adler <darin@apple.com>
  14367. Reviewed by Adam.
  14368. - moving towards use of FrameLoader cross-platform; get FrameLoader.h
  14369. and FrameLoader.cpp mostly ready
  14370. * WebCore.xcodeproj/project.pbxproj: Added FrameLoader.cpp and
  14371. FormState.cpp. Removed WebFormState.mm.
  14372. * loader/FrameLoader.h: Put in lots of #if statements to see if we can
  14373. get this header compiling on non-Mac.
  14374. * loader/FrameLoader.cpp: Added. Has non-Mac-specific bits of FrameLoader.
  14375. * loader/mac/FrameLoader.mm: Moved some non-Mac-specific bits out.
  14376. * loader/FrameLoaderClient.h: Added some ifdefs.
  14377. * loader/WebDocumentLoader.h: Ditto.
  14378. * loader/WebLoader.h: Ditto.
  14379. * loader/WebMainResourceLoader.h: Ditto.
  14380. * loader/mac/WebDocumentLoader.mm:
  14381. (WebCore::DocumentLoader::isLoadingInAPISense):
  14382. Rewrote to work without bridge, partly to remove the need for ObjC
  14383. bridge type in the header, and also because we're tearing down the bridge.
  14384. * loader/mac/WebMainResourceLoader.mm:
  14385. (WebCore::MainResourceLoader::MainResourceLoader): Removed unused
  14386. m_contentLength and m_bytesReceived.
  14387. (WebCore::MainResourceLoader::didReceiveResponse): Ditto.
  14388. (WebCore::MainResourceLoader::didReceiveData): Ditto.
  14389. * bridge/mac/WebCoreFrameBridge.h: Removed doneProcessingData.
  14390. * bridge/mac/WebCoreFrameBridge.mm: Ditto.
  14391. * loader/mac/FormState.mm: Removed.
  14392. * loader/FormState.cpp: Added.
  14393. 2006-10-29 Darin Adler <darin@apple.com>
  14394. Rubber stamped by Adam.
  14395. - moving towards use of FrameLoader cross-platform; move the headers
  14396. for the Mac loader from loader/mac into loader, in preparation for
  14397. making them useful on non-Mac
  14398. * WebCore.xcodeproj/project.pbxproj:
  14399. * loader/mac/FrameLoader.h: Removed.
  14400. * loader/mac/WebDocumentLoader.h: Removed.
  14401. * loader/mac/WebFormState.h: Removed.
  14402. * loader/mac/WebLoader.h: Removed.
  14403. * loader/mac/WebMainResourceLoader.h: Removed.
  14404. * loader/mac/WebNetscapePlugInStreamLoader.h: Removed.
  14405. * loader/mac/WebSubresourceLoader.h: Removed.
  14406. * loader/FrameLoader.h: Added.
  14407. * loader/WebDocumentLoader.h: Added.
  14408. * loader/WebFormState.h: Added.
  14409. * loader/WebLoader.h: Added.
  14410. * loader/WebMainResourceLoader.h: Added.
  14411. * loader/WebNetscapePlugInStreamLoader.h: Added.
  14412. * loader/WebSubresourceLoader.h: Added.
  14413. 2006-10-29 Adam Roben <aroben@apple.com>
  14414. Reviewed by Geoff.
  14415. Finish Darin's clean up of the use of __APPLE__ in WebCore, begun in
  14416. r17405.
  14417. * platform/DeprecatedString.h:
  14418. 2006-10-29 Beth Dakin <bdakin@apple.com>
  14419. Rubber stamped by Geoff.
  14420. This is a followup to my HitTestResult checkin. Most of the
  14421. HitTestResult local variables in the code were named i or info for
  14422. when the class was named NodeInfo. This patch renames all of these
  14423. local variables to result.
  14424. * dom/Document.cpp:
  14425. (WebCore::Document::prepareMouseEvent):
  14426. * html/HTMLAreaElement.cpp:
  14427. (WebCore::HTMLAreaElement::mapMouseEvent):
  14428. * html/HTMLMapElement.cpp:
  14429. (WebCore::HTMLMapElement::mapMouseEvent):
  14430. * rendering/EllipsisBox.cpp:
  14431. (WebCore::EllipsisBox::nodeAtPoint):
  14432. * rendering/EllipsisBox.h:
  14433. * rendering/InlineBox.cpp:
  14434. (WebCore::InlineBox::nodeAtPoint):
  14435. * rendering/InlineFlowBox.cpp:
  14436. (WebCore::InlineFlowBox::nodeAtPoint):
  14437. * rendering/InlineTextBox.cpp:
  14438. (WebCore::InlineTextBox::nodeAtPoint):
  14439. * rendering/RenderBlock.cpp:
  14440. (WebCore::RenderBlock::isPointInScrollbar):
  14441. (WebCore::RenderBlock::nodeAtPoint):
  14442. * rendering/RenderBlock.h:
  14443. * rendering/RenderBox.cpp:
  14444. (WebCore::RenderBox::nodeAtPoint):
  14445. * rendering/RenderBox.h:
  14446. * rendering/RenderFlow.cpp:
  14447. (WebCore::RenderFlow::hitTestLines):
  14448. * rendering/RenderFlow.h:
  14449. * rendering/RenderForeignObject.cpp:
  14450. (WebCore::RenderForeignObject::nodeAtPoint):
  14451. * rendering/RenderFrameSet.cpp:
  14452. (WebCore::RenderFrameSet::nodeAtPoint):
  14453. * rendering/RenderImage.cpp:
  14454. (WebCore::RenderImage::nodeAtPoint):
  14455. * rendering/RenderInline.cpp:
  14456. (WebCore::RenderInline::nodeAtPoint):
  14457. * rendering/RenderInline.h:
  14458. * rendering/RenderLayer.cpp:
  14459. (WebCore::RenderLayer::autoscroll):
  14460. (WebCore::RenderLayer::hitTest):
  14461. (WebCore::RenderLayer::hitTestLayer):
  14462. (WebCore::RenderLayer::updateHoverActiveState):
  14463. * rendering/RenderListBox.cpp:
  14464. (WebCore::RenderListBox::isPointInScrollbar):
  14465. * rendering/RenderObject.cpp:
  14466. (WebCore::RenderObject::hitTest):
  14467. (WebCore::RenderObject::setInnerNode):
  14468. (WebCore::RenderObject::nodeAtPoint):
  14469. * rendering/RenderObject.h:
  14470. * rendering/RenderPath.cpp:
  14471. (WebCore::RenderPath::nodeAtPoint):
  14472. * rendering/RenderSVGImage.cpp:
  14473. (WebCore::RenderSVGImage::nodeAtPoint):
  14474. * rendering/RenderSVGText.cpp:
  14475. (WebCore::RenderSVGText::nodeAtPoint):
  14476. * rendering/RenderTableRow.cpp:
  14477. (WebCore::RenderTableRow::nodeAtPoint):
  14478. * rendering/RenderTableRow.h:
  14479. * rendering/RenderTableSection.cpp:
  14480. (WebCore::RenderTableSection::nodeAtPoint):
  14481. * rendering/RenderTableSection.h:
  14482. * rendering/RenderTextControl.cpp:
  14483. (WebCore::RenderTextControl::nodeAtPoint):
  14484. * rendering/RootInlineBox.cpp:
  14485. (WebCore::RootInlineBox::nodeAtPoint):
  14486. * rendering/RootInlineBox.h:
  14487. 2006-10-29 Adam Roben <aroben@apple.com>
  14488. More semi-fixes.
  14489. * page/Page.cpp: Forgot to wrap the actual definition of
  14490. setDefersLoading() in PLATFORM(MAC).
  14491. * platform/PlatformWheelEvent.h: Fix up preprocessor directives.
  14492. 2006-10-29 Adam Roben <aroben@apple.com>
  14493. Build semi-fix.
  14494. Move all FrameLoader-related code in Page.{cpp,h} within #if
  14495. PLATFORM(MAC), since this class currently only exists on Mac.
  14496. * page/Page.cpp:
  14497. * page/Page.h:
  14498. 2006-10-29 Geoffrey Garen <ggaren@apple.com>
  14499. build fix.
  14500. * platform/PlatformString.h:
  14501. (WebCore::String::operator NSString*):
  14502. 2006-10-29 Geoffrey Garen <ggaren@apple.com>
  14503. Rolled out accidental commit.
  14504. * platform/AtomicString.h:
  14505. (WebCore::AtomicString::AtomicString):
  14506. (WebCore::AtomicString::operator NSString*):
  14507. 2006-10-29 Geoffrey Garen <ggaren@apple.com>
  14508. RS by Darin.
  14509. Rolled out change to map NULL Strings to nil NSStrings because it caused
  14510. even more AppKit crashes. Maybe we should remove the NSString * operator
  14511. entirely, since its use is not straight-forward, and require callers to
  14512. specify explicitly whether they tolerate NULL.
  14513. * platform/AtomicString.h:
  14514. * platform/PlatformString.h:
  14515. (WebCore::String::operator NSString*):
  14516. * platform/mac/TextFieldMac.mm:
  14517. (-[NSSearchFieldCell _addStringToRecentSearches:]):
  14518. 2006-10-29 Darin Adler <darin@apple.com>
  14519. Reviewed by Geoff.
  14520. - fixed storage leak showing up on the buildbot
  14521. * loader/mac/WebSubresourceLoader.mm: (WebCore::SubresourceLoader::create):
  14522. Release the NSURLRequest after passing it to load. Also clean up logic a bit.
  14523. 2006-10-29 Darin Adler <darin@apple.com>
  14524. Rubber stamped by Adam.
  14525. - renamed WebFrameLoaderClient to match the class name inside it
  14526. * loader/mac/WebFrameLoaderClient.h: Removed.
  14527. * loader/FrameLoaderClient.h: Moved it here.
  14528. * WebCore.xcodeproj/project.pbxproj: Updated project.
  14529. * bridge/mac/FrameMac.mm: Updated includes.
  14530. * bridge/mac/WebCoreFrameBridge.mm: Ditto.
  14531. * loader/mac/FrameLoader.mm: Ditto.
  14532. * loader/mac/WebLoader.h: Ditto.
  14533. 2006-10-29 Darin Adler <darin@apple.com>
  14534. Reviewed by Mitz.
  14535. - fix crash visible on buildbot and also when running the test
  14536. anchor-image-scrolled-x-y.html under libgmalloc
  14537. * loader/mac/WebSubresourceLoader.h: Renamed m_loader to m_handle
  14538. now that the class is named ResourceHandle.
  14539. * loader/mac/WebSubresourceLoader.mm: Renaming, plus:
  14540. (WebCore::SubresourceLoader::didFinishLoading): Get the handle into
  14541. a local RefPtr before calling finishJobAndHandle, since we might get
  14542. cancelled inside that function, so we should not rely on m_handle to
  14543. keep the ResourceHandle alive.
  14544. (WebCore::SubresourceLoader::didFail): Ditto.
  14545. (WebCore::SubresourceLoader::didCancel): Ditto.
  14546. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  14547. - build fix
  14548. * platform/network/mac/ResourceHandleMac.mm:
  14549. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  14550. Rubber stamped by Darin.
  14551. - renamed ResourceLoader to ResourceHandle (and same for related classes)
  14552. * CMakeLists.txt:
  14553. * Projects/gdk/webcore-gdk.bkl:
  14554. * WebCore.vcproj/WebCore/WebCore.vcproj:
  14555. * WebCore.xcodeproj/project.pbxproj:
  14556. * WebCoreSources.bkl:
  14557. * bridge/mac/FrameMac.mm:
  14558. * bridge/win/FrameWin.cpp:
  14559. * dom/XMLTokenizer.cpp:
  14560. * loader/Cache.cpp:
  14561. * loader/CachedResource.h:
  14562. * loader/LoaderFunctions.h:
  14563. * loader/icon/IconLoader.cpp:
  14564. (IconLoader::startLoading):
  14565. (IconLoader::didReceiveData):
  14566. (IconLoader::didFinishLoading):
  14567. * loader/icon/IconLoader.h:
  14568. * loader/loader.cpp:
  14569. (WebCore::Loader::servePendingRequests):
  14570. (WebCore::Loader::receivedAllData):
  14571. (WebCore::Loader::receivedResponse):
  14572. (WebCore::Loader::didReceiveData):
  14573. (WebCore::Loader::cancelRequests):
  14574. (WebCore::Loader::jobForRequest):
  14575. * loader/loader.h:
  14576. * loader/mac/IconLoaderMac.mm:
  14577. (IconLoader::receivedResponse):
  14578. * loader/mac/LoaderFunctionsMac.mm:
  14579. * loader/mac/WebLoader.h:
  14580. * loader/mac/WebSubresourceLoader.h:
  14581. * loader/mac/WebSubresourceLoader.mm:
  14582. (WebCore::SubresourceLoader::SubresourceLoader):
  14583. (WebCore::SubresourceLoader::create):
  14584. * platform/gdk/FrameGdk.cpp:
  14585. (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
  14586. (WebCore::FrameGdkClientDefault::openURL):
  14587. (WebCore::FrameGdkClientDefault::submitForm):
  14588. (WebCore::FrameGdkClientDefault::receivedResponse):
  14589. (WebCore::FrameGdkClientDefault::didReceiveData):
  14590. (WebCore::FrameGdkClientDefault::receivedAllData):
  14591. * platform/gdk/FrameGdk.h:
  14592. * platform/gdk/TemporaryLinkStubs.cpp:
  14593. (WebCore::ServeSynchronousRequest):
  14594. (WebCore::ResourceHandle::assembleResponseHeaders):
  14595. (WebCore::ResourceHandle::retrieveCharset):
  14596. * platform/network/ResourceHandle.cpp: Added.
  14597. (WebCore::ResourceHandle::ResourceHandle):
  14598. (WebCore::ResourceHandle::create):
  14599. (WebCore::ResourceHandle::isErrorPage):
  14600. (WebCore::ResourceHandle::error):
  14601. (WebCore::ResourceHandle::setError):
  14602. (WebCore::ResourceHandle::responseEncoding):
  14603. (WebCore::ResourceHandle::responseHTTPHeadersAsString):
  14604. (WebCore::ResourceHandle::kill):
  14605. (WebCore::ResourceHandle::requestHeaders):
  14606. (WebCore::ResourceHandle::url):
  14607. (WebCore::ResourceHandle::postData):
  14608. (WebCore::ResourceHandle::method):
  14609. (WebCore::ResourceHandle::client):
  14610. * platform/network/ResourceHandle.h: Added.
  14611. (WebCore::ResourceHandle::getInternal):
  14612. * platform/network/ResourceHandleClient.h: Added.
  14613. (WebCore::ResourceHandleClient::~ResourceHandleClient):
  14614. (WebCore::ResourceHandleClient::didReceiveData):
  14615. (WebCore::ResourceHandleClient::didFinishLoading):
  14616. (WebCore::ResourceHandleClient::receivedRedirect):
  14617. (WebCore::ResourceHandleClient::receivedResponse):
  14618. (WebCore::ResourceHandleClient::receivedAllData):
  14619. * platform/network/ResourceHandleInternal.h: Added.
  14620. (WebCore::ResourceHandleInternal::ResourceHandleInternal):
  14621. * platform/network/ResourceLoader.cpp: Removed.
  14622. * platform/network/ResourceLoader.h: Removed.
  14623. * platform/network/ResourceLoaderClient.h: Removed.
  14624. * platform/network/ResourceLoaderInternal.h: Removed.
  14625. * platform/network/cf/ResourceHandleCFNet.cpp: Added.
  14626. (WebCore::willSendRequest):
  14627. (WebCore::didReceiveResponse):
  14628. (WebCore::didReceiveData):
  14629. (WebCore::didFinishLoading):
  14630. (WebCore::didFail):
  14631. (WebCore::willCacheResponse):
  14632. (WebCore::didReceiveChallenge):
  14633. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14634. (WebCore::ResourceHandle::~ResourceHandle):
  14635. (WebCore::ResourceHandle::start):
  14636. (WebCore::ResourceHandle::cancel):
  14637. * platform/network/cf/ResourceLoaderCFNet.cpp: Removed.
  14638. * platform/network/gdk/ResourceHandleCurl.cpp: Added.
  14639. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14640. (WebCore::ResourceHandle::~ResourceHandle):
  14641. (WebCore::ResourceHandle::start):
  14642. (WebCore::ResourceHandle::cancel):
  14643. * platform/network/gdk/ResourceHandleManager.cpp: Added.
  14644. (WebCore::ResourceHandleManager::ResourceHandleManager):
  14645. (WebCore::ResourceHandleManager::get):
  14646. (WebCore::ResourceHandleManager::useSimpleTransfer):
  14647. (WebCore::writeCallback):
  14648. (WebCore::ResourceHandleManager::downloadTimerCallback):
  14649. (WebCore::ResourceHandleManager::remove):
  14650. (WebCore::ResourceHandleManager::add):
  14651. (WebCore::ResourceHandleManager::cancel):
  14652. * platform/network/gdk/ResourceHandleManager.h: Added.
  14653. * platform/network/gdk/ResourceLoaderCurl.cpp: Removed.
  14654. * platform/network/gdk/ResourceLoaderManager.cpp: Removed.
  14655. * platform/network/gdk/ResourceLoaderManager.h: Removed.
  14656. * platform/network/mac/ResourceHandleMac.mm: Added.
  14657. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14658. (WebCore::ResourceHandle::~ResourceHandle):
  14659. (WebCore::ResourceHandle::start):
  14660. (WebCore::ResourceHandle::assembleResponseHeaders):
  14661. (WebCore::ResourceHandle::retrieveResponseEncoding):
  14662. (WebCore::ResourceHandle::receivedResponse):
  14663. (WebCore::ResourceHandle::cancel):
  14664. (WebCore::ResourceHandle::redirectedToURL):
  14665. (WebCore::ResourceHandle::addData):
  14666. (WebCore::ResourceHandle::finishJobAndHandle):
  14667. (WebCore::ResourceHandle::reportError):
  14668. * platform/network/mac/ResourceLoaderMac.mm: Removed.
  14669. * platform/network/qt/ResourceHandleManager.cpp: Added.
  14670. (WebCore::ResourceHandleManager::ResourceHandleManager):
  14671. (WebCore::ResourceHandleManager::~ResourceHandleManager):
  14672. (WebCore::ResourceHandleManager::self):
  14673. (WebCore::ResourceHandleManager::slotData):
  14674. (WebCore::ResourceHandleManager::slotMimetype):
  14675. (WebCore::ResourceHandleManager::slotResult):
  14676. (WebCore::ResourceHandleManager::remove):
  14677. (WebCore::ResourceHandleManager::add):
  14678. (WebCore::ResourceHandleManager::cancel):
  14679. * platform/network/qt/ResourceHandleManager.h: Added.
  14680. * platform/network/qt/ResourceHandleQt.cpp: Added.
  14681. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14682. (WebCore::ResourceHandle::~ResourceHandle):
  14683. (WebCore::ResourceHandle::start):
  14684. (WebCore::ResourceHandle::cancel):
  14685. (WebCore::ResourceHandle::assembleResponseHeaders):
  14686. (WebCore::ResourceHandle::retrieveResponseEncoding):
  14687. (WebCore::ResourceHandle::receivedResponse):
  14688. (WebCore::ResourceHandle::extractCharsetFromHeaders):
  14689. * platform/network/qt/ResourceLoaderManager.cpp: Removed.
  14690. * platform/network/qt/ResourceLoaderManager.h: Removed.
  14691. * platform/network/qt/ResourceLoaderQt.cpp: Removed.
  14692. * platform/network/win/ResourceHandleWin.cpp: Added.
  14693. (WebCore::):
  14694. (WebCore::addToOutstandingJobs):
  14695. (WebCore::lookupResourceHandle):
  14696. (WebCore::ResourceHandleWndProc):
  14697. (WebCore::initializeOffScreenResourceHandleWindow):
  14698. (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
  14699. (WebCore::ResourceHandle::~ResourceHandle):
  14700. (WebCore::ResourceHandle::onHandleCreated):
  14701. (WebCore::ResourceHandle::onRequestRedirected):
  14702. (WebCore::ResourceHandle::onRequestComplete):
  14703. (WebCore::ResourceHandle::start):
  14704. (WebCore::ResourceHandle::fileLoadTimer):
  14705. (WebCore::ResourceHandle::cancel):
  14706. (WebCore::ResourceHandle::setHasReceivedResponse):
  14707. (WebCore::ResourceHandle::hasReceivedResponse):
  14708. * platform/network/win/ResourceHandleWin.h: Added.
  14709. * platform/network/win/ResourceLoaderWin.cpp: Removed.
  14710. * platform/network/win/ResourceLoaderWin.h: Removed.
  14711. * platform/qt/FrameQt.cpp:
  14712. * platform/qt/FrameQtClient.cpp:
  14713. (WebCore::FrameQtClientDefault::openURL):
  14714. (WebCore::FrameQtClientDefault::submitForm):
  14715. (WebCore::FrameQtClientDefault::receivedResponse):
  14716. (WebCore::FrameQtClientDefault::didReceiveData):
  14717. (WebCore::FrameQtClientDefault::receivedAllData):
  14718. * platform/qt/FrameQtClient.h:
  14719. * platform/win/TemporaryLinkStubs.cpp:
  14720. (WebCore::ResourceHandle::assembleResponseHeaders):
  14721. (WebCore::ResourceHandle::retrieveResponseEncoding):
  14722. (WebCore::ServeSynchronousRequest):
  14723. * xml/XSLTProcessor.cpp:
  14724. * xml/xmlhttprequest.cpp:
  14725. (WebCore::XMLHttpRequest::send):
  14726. (WebCore::XMLHttpRequest::didFinishLoading):
  14727. (WebCore::XMLHttpRequest::receivedRedirect):
  14728. (WebCore::XMLHttpRequest::didReceiveData):
  14729. * xml/xmlhttprequest.h:
  14730. t2006-10-29 Darin Adler <darin@apple.com>
  14731. Reviewed by Maciej.
  14732. - eliminate use of NSArray to carry form data around
  14733. * WebCore.exp:
  14734. * WebCore.xcodeproj/project.pbxproj:
  14735. * bridge/mac/FormDataMac.h: Removed.
  14736. * bridge/mac/FormDataMac.mm: Removed.
  14737. * bridge/mac/FrameMac.h:
  14738. * bridge/mac/WebCoreFrameBridge.h:
  14739. * bridge/mac/WebCoreFrameBridge.mm:
  14740. * html/HTMLFormElement.cpp:
  14741. (WebCore::HTMLFormElement::submit):
  14742. * loader/FormData.h:
  14743. (WebCore::FormData::isEmpty):
  14744. * loader/mac/FrameLoader.h:
  14745. * loader/mac/FrameLoader.mm:
  14746. (WebCore::FrameLoader::load):
  14747. (WebCore::FrameLoader::post):
  14748. (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
  14749. (WebCore::FrameLoader::loadResourceSynchronously):
  14750. * loader/mac/LoaderFunctionsMac.mm:
  14751. (WebCore::ServeSynchronousRequest):
  14752. * loader/mac/WebFormDataStream.h:
  14753. * loader/mac/WebFormDataStream.m:
  14754. (WebCore::pairRetain):
  14755. (WebCore::pairRelease):
  14756. (WebCore::pairEqual):
  14757. (WebCore::pairHash):
  14758. (WebCore::closeCurrentStream):
  14759. (WebCore::scheduleWithPair):
  14760. (WebCore::advanceCurrentStream):
  14761. (WebCore::openNextStream):
  14762. (WebCore::formCreate):
  14763. (WebCore::formFinalize):
  14764. (WebCore::formOpen):
  14765. (WebCore::formRead):
  14766. (WebCore::formCanRead):
  14767. (WebCore::formClose):
  14768. (WebCore::formSchedule):
  14769. (WebCore::formUnschedule):
  14770. (WebCore::formEventCallback):
  14771. (WebCore::setHTTPBody):
  14772. * loader/mac/WebSubresourceLoader.h:
  14773. * loader/mac/WebSubresourceLoader.mm:
  14774. (WebCore::SubresourceLoader::create):
  14775. * platform/network/mac/ResourceLoaderMac.mm:
  14776. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  14777. Reviewed by Darin.
  14778. - create SubresourceLoader with a ResourceRequest, not broken out request bits
  14779. * loader/mac/WebSubresourceLoader.h:
  14780. * loader/mac/WebSubresourceLoader.mm:
  14781. (WebCore::SubresourceLoader::create):
  14782. * platform/network/mac/ResourceLoaderMac.mm:
  14783. (WebCore::ResourceLoader::start):
  14784. 2006-10-29 Maciej Stachowiak <mjs@apple.com>
  14785. Reviewed by Darin.
  14786. - removed ObjC glue between ResourceLoader and SubresourceLoader, then now talk to each other directly
  14787. Removed WebCoreResourceLoader, WebCoreResourceHandle and WebCoreResourceLoaderImp
  14788. * WebCore.xcodeproj/project.pbxproj:
  14789. * bridge/mac/WebCoreFrameBridge.h:
  14790. * loader/mac/FrameLoader.h:
  14791. * loader/mac/FrameLoader.mm:
  14792. * loader/mac/LoaderFunctionsMac.mm:
  14793. * loader/mac/WebLoader.h:
  14794. * loader/mac/WebSubresourceLoader.h:
  14795. * loader/mac/WebSubresourceLoader.mm:
  14796. (WebCore::SubresourceLoader::SubresourceLoader):
  14797. (WebCore::SubresourceLoader::create):
  14798. (WebCore::SubresourceLoader::willSendRequest):
  14799. (WebCore::SubresourceLoader::didReceiveResponse):
  14800. (WebCore::SubresourceLoader::didReceiveData):
  14801. (WebCore::SubresourceLoader::didFinishLoading):
  14802. (WebCore::SubresourceLoader::didFail):
  14803. (WebCore::SubresourceLoader::didCancel):
  14804. * platform/network/ResourceLoader.h:
  14805. * platform/network/ResourceLoaderInternal.h:
  14806. * platform/network/mac/ResourceLoaderMac.mm:
  14807. (WebCore::ResourceLoader::~ResourceLoader):
  14808. (WebCore::ResourceLoader::start):
  14809. (WebCore::ResourceLoader::receivedResponse):
  14810. (WebCore::ResourceLoader::cancel):
  14811. (WebCore::ResourceLoader::redirectedToURL):
  14812. (WebCore::ResourceLoader::addData):
  14813. (WebCore::ResourceLoader::finishJobAndHandle):
  14814. (WebCore::ResourceLoader::reportError):
  14815. * platform/network/mac/WebCoreResourceLoader.h: Removed.
  14816. * platform/network/mac/WebCoreResourceLoaderImp.h: Removed.
  14817. * platform/network/mac/WebCoreResourceLoaderImp.mm: Removed.
  14818. 2006-10-28 Darin Adler <darin@apple.com>
  14819. Reviewed by Maciej.
  14820. - eliminated the use of Objective-C for the policy decider
  14821. machinery, obviating the need for WebPolicyDecider,
  14822. WebCoreFrameLoaderAsDelegate, and
  14823. WebCoreMainResourceLoaderAsPolicyDelegate
  14824. - grouped the state related to policy decisions into a PolicyCheck
  14825. class to simplify the FrameLoader logic
  14826. - removed six methods from the bridge, reducing FrameLoader's use of
  14827. the bridge to a single method
  14828. - changed form state to always use HashMap instead of NSDictionary
  14829. - moved the defersLoading flag from WebView to WebCore::Page
  14830. and changed code to consistently call it defersLoading rather
  14831. than defersCallbacks
  14832. - updated for rename of PassRefPtr::release to releaseRef
  14833. - replaced all uses of __APPLE__ with appropriate PLATFORM defines
  14834. - cleaned up kjs_binding.h a bit
  14835. - cleaned up FrameMac.h a bit
  14836. * loader/mac/WebPolicyDecider.h: Removed.
  14837. * loader/mac/WebPolicyDecider.mm: Removed.
  14838. * WebCore.xcodeproj/project.pbxproj: Updated for removal.
  14839. * WebCore.exp:
  14840. * bindings/js/kjs_binding.cpp:
  14841. (KJS::ScriptInterpreter::ScriptInterpreter):
  14842. (KJS::ScriptInterpreter::wasRunByUserGesture):
  14843. * bindings/js/kjs_binding.h:
  14844. (KJS::ScriptInterpreter::setCurrentEvent):
  14845. (KJS::ScriptInterpreter::setInlineCode):
  14846. (KJS::ScriptInterpreter::setProcessingTimerCallback):
  14847. (KJS::ScriptInterpreter::getCurrentEvent):
  14848. (KJS::cacheDOMObject):
  14849. (KJS::DOMExceptionTranslator::DOMExceptionTranslator):
  14850. * bridge/AXObjectCache.h:
  14851. * bridge/mac/BrowserExtensionMac.mm:
  14852. (WebCore::BrowserExtensionMac::createNewWindow):
  14853. * bridge/mac/FrameMac.h:
  14854. * bridge/mac/FrameMac.mm:
  14855. (WebCore::FrameMac::loadRequest):
  14856. (WebCore::FrameMac::submitForm):
  14857. (WebCore::FrameMac::urlSelected):
  14858. (WebCore::FrameMac::userAgent):
  14859. (WebCore::FrameMac::passMouseDownEventToWidget):
  14860. (WebCore::FrameMac::handleMouseMoveEvent):
  14861. * bridge/mac/PageMac.mm:
  14862. (WebCore::Page::Page):
  14863. * bridge/mac/WebCoreEditCommand.mm:
  14864. * bridge/mac/WebCoreFrameBridge.h:
  14865. * bridge/mac/WebCoreFrameBridge.mm:
  14866. (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
  14867. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  14868. * css/CSSComputedStyleDeclaration.cpp:
  14869. (WebCore::):
  14870. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  14871. * css/CSSPrimitiveValue.cpp:
  14872. (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
  14873. (WebCore::CSSPrimitiveValue::cleanup):
  14874. (WebCore::CSSPrimitiveValue::cssText):
  14875. * css/CSSPrimitiveValue.h:
  14876. (WebCore::CSSPrimitiveValue::):
  14877. * css/CSSValueList.cpp:
  14878. (WebCore::CSSValueList::append):
  14879. * css/cssparser.cpp:
  14880. (WebCore::CSSParser::parseValue):
  14881. * css/cssparser.h:
  14882. * css/cssstyleselector.cpp:
  14883. (WebCore::CSSStyleSelector::applyProperty):
  14884. * dom/Document.cpp:
  14885. (WebCore::Document::Document):
  14886. (WebCore::Document::updateSelection):
  14887. (WebCore::Document::implicitClose):
  14888. (WebCore::Document::setFocusNode):
  14889. * dom/Document.h:
  14890. * editing/ReplaceSelectionCommand.h:
  14891. * html/HTMLParser.cpp:
  14892. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  14893. * loader/mac/FrameLoader.h:
  14894. (WebCore::PolicyCheck::request):
  14895. * loader/mac/FrameLoader.mm:
  14896. (WebCore::FrameLoader::~FrameLoader):
  14897. (WebCore::FrameLoader::safeLoad):
  14898. (WebCore::FrameLoader::load):
  14899. (WebCore::FrameLoader::open):
  14900. (WebCore::FrameLoader::stopLoading):
  14901. (WebCore::setAllDefersLoading):
  14902. (WebCore::FrameLoader::setDefersLoading):
  14903. (WebCore::FrameLoader::willSendRequest):
  14904. (WebCore::FrameLoader::receivedMainResourceError):
  14905. (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
  14906. (WebCore::FrameLoader::commitProvisionalLoad):
  14907. (WebCore::FrameLoader::checkNavigationPolicy):
  14908. (WebCore::FrameLoader::checkContentPolicy):
  14909. (WebCore::FrameLoader::cancelContentPolicyCheck):
  14910. (WebCore::FrameLoader::stopPolicyCheck):
  14911. (WebCore::FrameLoader::checkNewWindowPolicy):
  14912. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  14913. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  14914. (WebCore::FrameLoader::continueAfterContentPolicy):
  14915. (WebCore::FrameLoader::continueAfterWillSubmitForm):
  14916. (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
  14917. (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
  14918. (WebCore::FrameLoader::closeDocument):
  14919. (WebCore::FrameLoader::transitionToCommitted):
  14920. (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
  14921. (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
  14922. (WebCore::FrameLoader::post):
  14923. (WebCore::FrameLoader::detachFromParent):
  14924. (WebCore::FrameLoader::addExtraFieldsToRequest):
  14925. (WebCore::PolicyCheck::PolicyCheck):
  14926. (WebCore::PolicyCheck::clear):
  14927. (WebCore::PolicyCheck::set):
  14928. (WebCore::PolicyCheck::call):
  14929. (WebCore::PolicyCheck::dropRequest):
  14930. (WebCore::FrameLoaderClient::~FrameLoaderClient):
  14931. * loader/mac/WebFormState.h:
  14932. * loader/mac/WebFormState.mm:
  14933. * loader/mac/WebFrameLoaderClient.h:
  14934. * loader/mac/WebLoader.h:
  14935. (WebCore::WebResourceLoader::defersLoading):
  14936. * loader/mac/WebLoader.mm:
  14937. (WebCore::WebResourceLoader::WebResourceLoader):
  14938. (WebCore::WebResourceLoader::load):
  14939. (WebCore::WebResourceLoader::setDefersLoading):
  14940. * loader/mac/WebMainResourceLoader.h:
  14941. * loader/mac/WebMainResourceLoader.mm:
  14942. (WebCore::MainResourceLoader::MainResourceLoader):
  14943. (WebCore::MainResourceLoader::releaseDelegate):
  14944. (WebCore::MainResourceLoader::didCancel):
  14945. (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
  14946. (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
  14947. (WebCore::MainResourceLoader::willSendRequest):
  14948. (WebCore::MainResourceLoader::callContinueAfterContentPolicy):
  14949. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  14950. (WebCore::MainResourceLoader::didReceiveResponse):
  14951. (WebCore::MainResourceLoader::didReceiveData):
  14952. (WebCore::MainResourceLoader::didFinishLoading):
  14953. (WebCore::MainResourceLoader::didFail):
  14954. (WebCore::MainResourceLoader::loadNow):
  14955. (WebCore::MainResourceLoader::load):
  14956. (WebCore::MainResourceLoader::setDefersLoading):
  14957. * page/Frame.cpp:
  14958. (WebCore::Frame::paint):
  14959. * page/FrameView.cpp:
  14960. (WebCore::FrameView::layout):
  14961. * page/FrameView.h:
  14962. * page/Page.cpp:
  14963. (WebCore::Page::setDefersLoading):
  14964. * page/Page.h:
  14965. (WebCore::Page::defersLoading):
  14966. * platform/DeprecatedString.h:
  14967. * platform/DeprecatedStringList.h:
  14968. * platform/FontFallbackList.h:
  14969. * platform/PlatformKeyboardEvent.h:
  14970. * platform/PlatformMouseEvent.h:
  14971. * platform/PlatformWheelEvent.h:
  14972. * platform/mac/ClipboardMac.h:
  14973. * platform/mac/ClipboardMac.mm:
  14974. (WebCore::ClipboardMac::setDragImage):
  14975. (WebCore::ClipboardMac::dragNSImage):
  14976. (WebCore::ClipboardMac::sourceOperation):
  14977. (WebCore::ClipboardMac::destinationOperation):
  14978. * rendering/RenderObject.cpp:
  14979. (WebCore::RenderObject::setStyle):
  14980. * rendering/break_lines.cpp:
  14981. (WebCore::nextBreakablePosition):
  14982. 2006-10-28 Adam Roben <aroben@apple.com>
  14983. Reviewed by Maciej.
  14984. Fix layout tests that broke after r17399. Mitz discovered that the
  14985. failures were caused by HitTestResult::m_point being uninitialized
  14986. much of the time. HitTestResults are now always constructed with a
  14987. point, and RenderLayer::hitTest and RenderLayer::hitTestLayer use that
  14988. point instead of being passed one explicitly.
  14989. * WebCore.exp: Change constructor symbol.
  14990. * bridge/mac/FrameMac.mm:
  14991. (WebCore::FrameMac::eventMayStartDrag): Update to new constructor and
  14992. hitTest().
  14993. (WebCore::FrameMac::handleMouseMoveEvent): Ditto.
  14994. * bridge/mac/WebCoreAXObject.mm:
  14995. (-[WebCoreAXObject doAXTextMarkerForPosition:]): Ditto.
  14996. (-[WebCoreAXObject accessibilityHitTest:]): Ditto.
  14997. * dom/Document.cpp:
  14998. (WebCore::Document::elementFromPoint): Ditto.
  14999. (WebCore::Document::prepareMouseEvent): Ditto.
  15000. * page/Frame.cpp:
  15001. (WebCore::Frame::isPointInsideSelection): Ditto.
  15002. (WebCore::Frame::hitTestResultAtPoint): Ditto.
  15003. * page/FrameView.cpp:
  15004. (WebCore::FrameView::handleWheelEvent): Ditto.
  15005. * rendering/HitTestResult.cpp:
  15006. (WebCore::HitTestResult::HitTestResult): Initalize m_point with the
  15007. passed point.
  15008. * rendering/HitTestResult.h: Update constructor declaration.
  15009. * rendering/RenderLayer.cpp:
  15010. (WebCore::RenderLayer::autoscroll): Update to new constructor and
  15011. hitTest().
  15012. (WebCore::RenderLayer::hitTest): Use the IntPoint stored in the
  15013. HitTestResult instead of being passed one.
  15014. (WebCore::RenderLayer::hitTestLayer): Ditto.
  15015. * rendering/RenderLayer.h: Update declarations.
  15016. 2006-10-28 Nikolas Zimmermann <zimmermann@kde.org>
  15017. Reviewed by Anders.
  15018. Fix Qt/Linux build.
  15019. * CMakeLists.txt:
  15020. * platform/qt/FrameQtClient.cpp:
  15021. (WebCore::numRequests):
  15022. (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
  15023. * platform/qt/PopupMenuQt.cpp:
  15024. (WebCore::PopupMenu::updateFromElement):
  15025. 2006-10-28 David Carson <dacarson@gmail.com>
  15026. Tweaked by Sam. Reviewed by Brady.
  15027. Fix for: http://bugs.webkit.org/show_bug.cgi?id=11437
  15028. Initialize m_modifyBiasSet to false, as it sometimes gets
  15029. used before it has been initalized.
  15030. * editing/SelectionController.cpp:
  15031. (WebCore::SelectionController::SelectionController):
  15032. 2006-10-28 Beth Dakin <bdakin@apple.com>
  15033. Reviewed by Darin.
  15034. This is the WebCore half of pushing elementAtPoint and the backend
  15035. of WebElementDictionary into WebCore. Most of the changes below are
  15036. to accommodate one of the following:
  15037. -NodeInfo is now a stand-alone class called HitTestResult.
  15038. Previously it was defined in RenderObject.h, but not for
  15039. any particular reason. The WebElementDictionary
  15040. functionality that was pushed into WebCore has been pushed
  15041. specifically into the this class. In fact,
  15042. WebElementDictionary now keeps a HitTestResult as a member
  15043. varibale.
  15044. -The enumeration AccessPolicy is now called
  15045. ClipboardAccessPolicy and is defined in its own header. It
  15046. was previously defined in ClipboardMac.h, but is now
  15047. defined independently to avoid including ClipboardMac.h
  15048. from within FrameMac.h since FrameMac.h is now included in
  15049. WebElementDictionary.m in WebKit.
  15050. -Element now has a virtual target() for the sake of
  15051. NodeInfo::targetFrame()
  15052. * WebCore.exp: Several WebCore functions are newly called from
  15053. WebKit, so they have been added here.
  15054. * WebCore.xcodeproj/project.pbxproj:
  15055. * bindings/objc/DOM.mm: Must include Image.h because of adjustments
  15056. to ClipboardMac.
  15057. * bridge/mac/FrameMac.h: Adjust to HitTestResult changes.
  15058. * bridge/mac/FrameMac.mm:
  15059. (WebCore::FrameMac::freeClipboard): Adjust to ClipboardAccessPolicy
  15060. and HitTestResult changes.
  15061. (WebCore::FrameMac::eventMayStartDrag): Same.
  15062. (WebCore::FrameMac::handleMouseMoveEvent): Same.
  15063. (WebCore::FrameMac::dispatchCPPEvent): Same.
  15064. (WebCore::FrameMac::mayDHTMLCut): Same.
  15065. (WebCore::FrameMac::mayDHTMLCopy): Same.
  15066. (WebCore::FrameMac::mayDHTMLPaste): Same.
  15067. (WebCore::FrameMac::tryDHTMLCut): Same
  15068. (WebCore::FrameMac::tryDHTMLCopy): Same.
  15069. (WebCore::FrameMac::tryDHTMLPaste): Same.
  15070. * bridge/mac/WebCoreAXObject.mm:
  15071. (-[WebCoreAXObject doAXTextMarkerForPosition:]): Adjust to
  15072. HitTestResult changes.
  15073. (-[WebCoreAXObject accessibilityHitTest:]): Same.
  15074. * bridge/mac/WebCoreFrameBridge.h: Same.
  15075. * bridge/mac/WebCoreFrameBridge.mm:
  15076. (-[WebCoreFrameBridge dragOperationForDraggingInfo:]): Adjust for
  15077. ClipboardAccessPolicy changes.
  15078. (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]): Same.
  15079. (-[WebCoreFrameBridge concludeDragForDraggingInfo:]): Same.
  15080. * dom/Document.cpp:
  15081. (WebCore::Document::elementFromPoint): Adjust for HitTestResult
  15082. changes.
  15083. (WebCore::Document::prepareMouseEvent): Same.
  15084. * dom/Element.h:
  15085. (WebCore::Element::target): Now has a virtual target()
  15086. * html/HTMLAnchorElement.h: Same.
  15087. * html/HTMLAreaElement.cpp:
  15088. (WebCore::HTMLAreaElement::mapMouseEvent): Adjust for HitTestResult
  15089. changes.
  15090. * html/HTMLAreaElement.h: Virtual target()
  15091. * html/HTMLBaseElement.h:
  15092. (WebCore::HTMLBaseElement::target): Same.
  15093. * html/HTMLFormElement.h: Same.
  15094. * html/HTMLLinkElement.h: Same.
  15095. * html/HTMLMapElement.cpp:
  15096. (WebCore::HTMLMapElement::mapMouseEvent): Adjust for HitTestResult
  15097. changes.
  15098. * html/HTMLMapElement.h: Same.
  15099. * page/Frame.cpp:
  15100. (WebCore::Frame::isPointInsideSelection): Same.
  15101. (WebCore::Frame::hitTestResultAtPoint): Same.
  15102. * page/Frame.h: Same.
  15103. * page/FrameView.cpp:
  15104. (WebCore::FrameView::handleWheelEvent): Same.
  15105. * platform/mac/ClipboardAccessPolicy.h: Added.
  15106. (WebCore::):
  15107. * platform/mac/ClipboardMac.h: Remove definition of AccessPolicy,
  15108. include ClipboardAccessPolicy.h, and rename AccessPolicy to
  15109. ClipboardAccessPolicy.
  15110. * platform/mac/ClipboardMac.mm: Rename ClipboardAccessPolicy.
  15111. (WebCore::ClipboardMac::ClipboardMac):
  15112. (WebCore::ClipboardMac::setAccessPolicy):
  15113. (WebCore::ClipboardMac::clearData):
  15114. (WebCore::ClipboardMac::clearAllData):
  15115. (WebCore::ClipboardMac::getData):
  15116. (WebCore::ClipboardMac::setData):
  15117. (WebCore::ClipboardMac::types):
  15118. (WebCore::ClipboardMac::setDragImage):
  15119. (WebCore::ClipboardMac::setDropEffect):
  15120. (WebCore::ClipboardMac::setEffectAllowed):
  15121. * rendering/EllipsisBox.cpp:
  15122. (WebCore::EllipsisBox::nodeAtPoint): Adjust for HitTestResult
  15123. changes.
  15124. * rendering/EllipsisBox.h:
  15125. * rendering/HitTestResult.cpp: Added.
  15126. (WebCore::HitTestResult::HitTestResult):
  15127. (WebCore::HitTestResult::~HitTestResult):
  15128. (WebCore::HitTestResult::operator=):
  15129. (WebCore::HitTestResult::setInnerNode):
  15130. (WebCore::HitTestResult::setInnerNonSharedNode):
  15131. (WebCore::HitTestResult::setURLElement):
  15132. (WebCore::HitTestResult::setScrollbar):
  15133. (WebCore::HitTestResult::targetFrame):
  15134. (WebCore::HitTestResult::boundingBox):
  15135. (WebCore::HitTestResult::isSelected):
  15136. (WebCore::HitTestResult::title):
  15137. * rendering/HitTestResult.h: Added.
  15138. (WebCore::HitTestResult::readonly):
  15139. (WebCore::HitTestResult::active):
  15140. (WebCore::HitTestResult::mouseMove):
  15141. (WebCore::HitTestResult::innerNode):
  15142. (WebCore::HitTestResult::innerNonSharedNode):
  15143. (WebCore::HitTestResult::point):
  15144. (WebCore::HitTestResult::URLElement):
  15145. (WebCore::HitTestResult::scrollbar):
  15146. (WebCore::HitTestResult::setPoint):
  15147. (WebCore::HitTestResult::setReadonly):
  15148. (WebCore::HitTestResult::setActive):
  15149. (WebCore::HitTestResult::setMouseMove):
  15150. * rendering/InlineBox.cpp:
  15151. (WebCore::InlineBox::nodeAtPoint): Adjust to HitTestResult changes.
  15152. * rendering/InlineBox.h: Same.
  15153. * rendering/InlineFlowBox.cpp:
  15154. (WebCore::InlineFlowBox::nodeAtPoint): Same.
  15155. * rendering/InlineFlowBox.h: Same.
  15156. * rendering/InlineTextBox.cpp:
  15157. (WebCore::InlineTextBox::nodeAtPoint): Same.
  15158. * rendering/InlineTextBox.h: Same.
  15159. * rendering/RenderBlock.cpp:
  15160. (WebCore::RenderBlock::isPointInScrollbar): Same.
  15161. (WebCore::RenderBlock::nodeAtPoint): Same.
  15162. * rendering/RenderBlock.h: Same.
  15163. * rendering/RenderBox.cpp:
  15164. (WebCore::RenderBox::nodeAtPoint): Same.
  15165. * rendering/RenderBox.h: Same.
  15166. * rendering/RenderFlow.cpp:
  15167. (WebCore::RenderFlow::hitTestLines): Same.
  15168. * rendering/RenderFlow.h: Same.
  15169. * rendering/RenderForeignObject.cpp:
  15170. (WebCore::RenderForeignObject::nodeAtPoint): Same.
  15171. * rendering/RenderForeignObject.h: Same.
  15172. * rendering/RenderFrameSet.cpp:
  15173. (WebCore::RenderFrameSet::nodeAtPoint): Same.
  15174. * rendering/RenderFrameSet.h: Same.
  15175. * rendering/RenderImage.cpp:
  15176. (WebCore::RenderImage::nodeAtPoint): Same.
  15177. * rendering/RenderImage.h: Same.
  15178. * rendering/RenderInline.cpp:
  15179. (WebCore::RenderInline::nodeAtPoint): Same.
  15180. * rendering/RenderInline.h: Same.
  15181. * rendering/RenderLayer.cpp:
  15182. (WebCore::RenderLayer::autoscroll): Same.
  15183. (WebCore::RenderLayer::hitTest): Same.
  15184. (WebCore::RenderLayer::hitTestLayer): Same.
  15185. (WebCore::RenderLayer::updateHoverActiveState): Same.
  15186. * rendering/RenderLayer.h: Same.
  15187. * rendering/RenderListBox.cpp:
  15188. (WebCore::RenderListBox::isPointInScrollbar): Same.
  15189. * rendering/RenderListBox.h: Same.
  15190. * rendering/RenderObject.cpp:
  15191. (WebCore::RenderObject::hitTest): Same.
  15192. (WebCore::RenderObject::setInnerNode): Same.
  15193. (WebCore::RenderObject::nodeAtPoint): Same.
  15194. * rendering/RenderObject.h: Remove NodeInfo class and forward
  15195. declare HitTestResult.
  15196. * rendering/RenderPath.cpp:
  15197. (WebCore::RenderPath::nodeAtPoint): Adjust to HitTestResult
  15198. changes.
  15199. * rendering/RenderPath.h: Same.
  15200. * rendering/RenderSVGImage.cpp:
  15201. (WebCore::RenderSVGImage::nodeAtPoint): Same.
  15202. * rendering/RenderSVGImage.h: Same
  15203. * rendering/RenderSVGText.cpp:
  15204. (WebCore::RenderSVGText::nodeAtPoint): Same.
  15205. * rendering/RenderSVGText.h: Same.
  15206. * rendering/RenderTableRow.cpp:
  15207. (WebCore::RenderTableRow::nodeAtPoint): Same.
  15208. * rendering/RenderTableRow.h: Same.
  15209. * rendering/RenderTableSection.cpp:
  15210. (WebCore::RenderTableSection::nodeAtPoint): Same.
  15211. * rendering/RenderTableSection.h: Same.
  15212. * rendering/RenderText.h: Same.
  15213. (WebCore::RenderText::nodeAtPoint): Same.
  15214. * rendering/RenderTextControl.cpp:
  15215. (WebCore::RenderTextControl::nodeAtPoint): Same.
  15216. * rendering/RenderTextControl.h: Same.
  15217. * rendering/RootInlineBox.cpp:
  15218. (WebCore::RootInlineBox::nodeAtPoint): Same.
  15219. * rendering/RootInlineBox.h: Same.
  15220. 2006-10-27 Maciej Stachowiak <mjs@apple.com>
  15221. Reviewed by Anders.
  15222. - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=11212, later we will address the performance
  15223. impact of fixing it again.
  15224. * bridge/mac/FrameMac.mm:
  15225. (WebCore::FrameMac::clear):
  15226. 2006-10-27 Maciej Stachowiak <mjs@apple.com>
  15227. Reviewed by John & Adam.
  15228. - assorted speedups to fix perf regression from fixing correctness regression
  15229. * WebCore.exp: exported new methods.
  15230. * WebCore.xcodeproj/project.pbxproj: Added CachedResourceMac.mm
  15231. * bridge/mac/WebCoreFrameBridge.h:
  15232. * bridge/mac/WebCoreFrameBridge.mm:
  15233. * loader/CachedResource.cpp: Removed now obsolete getCFURL.
  15234. * loader/CachedResource.h:
  15235. * loader/mac/CachedResourceMac.mm: Added.
  15236. (WebCore::CachedResource::getNSURLRequest): New method; the NSURLRequest is
  15237. now cached in the CachedObject.
  15238. * loader/mac/FrameLoader.h:
  15239. * loader/mac/FrameLoader.mm:
  15240. (WebCore::FrameLoader::loadedResourceFromMemoryCache): New method - lets
  15241. the WebKit side do faster dispatch for clients that implement the fast path delegate.
  15242. * loader/mac/LoaderFunctionsMac.mm:
  15243. (WebCore::CheckCacheObjectStatus): Instead of calling several FrameLoader methods,
  15244. just call loadedResourceFromMemoryCache.
  15245. * loader/mac/WebFrameLoaderClient.h:
  15246. 2006-10-27 Oliver Hunt <oliver@apple.com>
  15247. Reviewed by Maciej.
  15248. build fix
  15249. * dom/Document.cpp:
  15250. (WebCore::Document::referrer):
  15251. 2006-10-27 Geoffrey Garen <ggaren@apple.com>
  15252. Reviewed by Maciej.
  15253. Moved some WebCoreFrameBridge functions into FrameLoader.
  15254. I had to make FrameLoader.h capable of compiling in C++-only source files
  15255. by adding some forward declarations and __OBJC__ #ifdefs.
  15256. * WebCore.exp:
  15257. * bridge/mac/FrameMac.h:
  15258. * bridge/mac/FrameMac.mm:
  15259. (WebCore::FrameMac::createEmptyDocument):
  15260. (WebCore::FrameMac::tokenizerProcessedData):
  15261. * bridge/mac/WebCoreFrameBridge.h:
  15262. * bridge/mac/WebCoreFrameBridge.mm:
  15263. * dom/Document.cpp:
  15264. (WebCore::Document::processHttpEquiv):
  15265. (WebCore::Document::referrer):
  15266. * loader/LoaderFunctions.h:
  15267. * loader/mac/FrameLoader.h:
  15268. * loader/mac/FrameLoader.mm:
  15269. (WebCore::numRequests):
  15270. (WebCore::FrameLoader::numPendingOrLoadingRequests):
  15271. (WebCore::FrameLoader::isReloading):
  15272. (WebCore::FrameLoader::referrer):
  15273. (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
  15274. (WebCore::FrameLoader::startLoadingResource):
  15275. * loader/mac/LoaderFunctionsMac.mm:
  15276. (WebCore::CheckIfReloading):
  15277. * page/Frame.h:
  15278. * page/FrameTree.cpp:
  15279. (WebCore::FrameTree::isDescendantOf):
  15280. (WebCore::FrameTree::traverseNext):
  15281. * page/FrameTree.h:
  15282. * platform/network/mac/ResourceLoaderMac.mm:
  15283. (WebCore::ResourceLoader::start):
  15284. 2006-10-27 Timothy Hatcher <timothy@apple.com>
  15285. Reviewed by Darin.
  15286. <rdar://problem/4478625> HTML Editing: Basic table editing and culling
  15287. Expanded the Deletion UI to lists, positioned block element and block elementss with borders.
  15288. * editing/DeleteButtonController.cpp:
  15289. (WebCore::isDeletableElement):
  15290. (WebCore::enclosingDeletableElement):
  15291. (WebCore::DeleteButtonController::respondToChangedSelection):
  15292. 2006-10-27 John Sullivan <sullivan@apple.com>
  15293. Reviewed by Kevin Decker
  15294. Some more grammar-checking plumbing. No additional grammar jokes will have been made by the time
  15295. you haven't not finished reading this.
  15296. * rendering/InlineTextBox.h:
  15297. * rendering/InlineTextBox.cpp:
  15298. (WebCore::InlineTextBox::paint):
  15299. Updated for changed signature of paintDocumentMarkers, which causes grammar markers to be
  15300. considered also.
  15301. (WebCore::InlineTextBox::paintDocumentMarkers):
  15302. Renamed from paintAllMarkersOfType; now takes a bool for whether background or foreground
  15303. markers should be painted, instead of a marker type. This avoids walking the collection of
  15304. markers multiple times back to back. Now handles grammar markers.
  15305. 2006-10-27 Timothy Hatcher <timothy@apple.com>
  15306. Reviewed by Beth.
  15307. Renamed Copy Files to Copy Generated Headers.
  15308. Copy 4 DOM*Internal.h headers.
  15309. * WebCore.xcodeproj/project.pbxproj:
  15310. * bindings/scripts/CodeGeneratorObjC.pm:
  15311. 2006-10-27 John Sullivan <sullivan@apple.com>
  15312. Reviewed by Anders
  15313. * WebCore.exp:
  15314. exported symbol for FrameMac->advanceToNextSpelling()
  15315. * bridge/mac/WebCoreFrameBridge.h:
  15316. * bridge/mac/WebCoreFrameBridge.mm:
  15317. removed advanceToNextMisspelling callers. Clients in WebKit must now call FrameMac directly.
  15318. 2006-10-27 Justin Garcia <justin.garcia@apple.com>
  15319. Reviewed by harrison
  15320. <http://bugs.webkit.org/show_bug.cgi?id=11423>
  15321. REGRESSION: First newline missing from textarea's value
  15322. The regression is that foo, return, bar in a textarea serializes as 'foobar'.
  15323. Before my change in r17223, return (an InsertLineBreak) would insert a '\n'
  15324. (the line break) then a br to prevent the '\n' from collapsing, since the
  15325. insertion is being done at the end of a block (the textarea's shadow div). Then,
  15326. inserting "bar" would displace the br, and "foo\nbar" would serialize as "foo\nbar".
  15327. After my change in r17223, InsertLineBreak would insert a br then a '\n' (reversed
  15328. the order). Then inserting "bar" would displace the '\n' and "foo"<br>"bar" would
  15329. serialize as "foobar" because when serializing RenderTextControl intentionally asks
  15330. textContent to not convert brs to newlines. It seems to think that the only brs in
  15331. the shadow div will be placeholders or collapsed.
  15332. We could remove this assumption, but, for consistancy's sake, I changed InsertLineBreak
  15333. to insert two '\n's when at the end of a block in white-space:pre text. This alone
  15334. would have fixed the bug, but introduced a new one, because foo, return, bar would
  15335. produce "foo\nbar\n" which would serialize as "foo\nbar\n" (even though the second
  15336. '\n' is collapsed, because of 9661). So, then I changed placeholder displacement to
  15337. displace a '\n' if it's acting as a placeholder. A "placeholder" is now defined as
  15338. a br or '\n' that will collapse (become superfluous) when content is inserted just
  15339. before it.
  15340. * editing/CompositeEditCommand.cpp:
  15341. (WebCore::CompositeEditCommand::removePlaceholderAt): Renamed. Remove
  15342. a br or '\n' if content inserted just before it will cause it to collapse.
  15343. * editing/CompositeEditCommand.h:
  15344. * editing/InsertLineBreakCommand.cpp:
  15345. (WebCore::InsertLineBreakCommand::doApply): Insert the same type of node
  15346. to prevent a collapse as was used for the line break. Fixed comments.
  15347. * editing/InsertTextCommand.cpp:
  15348. (WebCore::InsertTextCommand::input): Call the renamed function.
  15349. 2006-10-27 Geoffrey Garen <ggaren@apple.com>
  15350. Reviewed by Brady.
  15351. Fixed semantic inaccuracy in String::operator NSString *(), where a NULL
  15352. String became an empty NSString *, instead of nil. This will become important
  15353. as we start using this conversion more.
  15354. Added work-around for AppKit crash that semantic accuracy revealed.
  15355. No testcase because I don't think there's a way to reflect this change
  15356. in a webpage yet.
  15357. * platform/PlatformString.h:
  15358. (WebCore::String::operator NSString*):
  15359. * platform/mac/TextFieldMac.mm:
  15360. (-[NSSearchFieldCell _addStringToRecentSearches:]):
  15361. 2006-10-27 David Harrison <harrison@apple.com>
  15362. Reviewed by Maciej,
  15363. <rdar://problem/4003820> Expose blockquotes in AXAttributedStringForTextMarkerRange
  15364. * bridge/mac/WebCoreAXObject.mm:
  15365. (blockquoteLevel):
  15366. Calculate and return the blockquote level of the element.
  15367. (AXAttributeStringSetBlockquoteLevel):
  15368. Add, if non-zero, or clear the block quote level attribute.
  15369. (AXAttributedStringAppendText):
  15370. Send AXAttributeStringSetBlockquoteLevel.
  15371. 2006-10-27 Darin Adler <darin@apple.com>
  15372. - fix one error in the Qt build
  15373. * platform/qt/GraphicsContextQt.cpp:
  15374. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  15375. Updated.
  15376. 2006-10-27 Darin Adler <darin@apple.com>
  15377. Reviewed by Maciej.
  15378. * WebCore.exp: Export more symbols needed by WebKit.
  15379. 2006-10-26 Geoffrey Garen <ggaren@apple.com>
  15380. Reviewed by the Baroness Esmeralda Von Scratch N' Purr XIV.
  15381. Fixed layout test crash. Oops.
  15382. * loader/mac/WebDocumentLoader.mm:
  15383. (WebCore::canonicalizedTitle):
  15384. 2006-10-26 John Sullivan <sullivan@apple.com>
  15385. Reviewed by Brady
  15386. - fixed <rdar://problem/4806064> Repro crash in FrameMac::loadRequest following iTunes music store link from salon.com
  15387. This restores some of the nil-handling that was implicit before some of the code was converted from
  15388. Objective-C to C++.
  15389. * bridge/mac/FrameMac.mm:
  15390. (WebCore::FrameMac::loadRequest):
  15391. handle nil FrameMac
  15392. * bridge/mac/WebCoreFrameBridge.mm:
  15393. (-[WebCoreFrameBridge canTargetLoadInFrame:]):
  15394. handle nil Frame
  15395. 2006-10-26 Geoffrey Garen <ggaren@apple.com>
  15396. Reviewed by Darin, Maciej.
  15397. Removed many uses of NSString *.
  15398. Moved a few methods from WebCoreFrameBridge to FrameLoader, replacing
  15399. stringByCollapsingNonPrintingCharacters with a c++ equivalent.
  15400. PLT says no performance regression.
  15401. * WebCore.exp:
  15402. * bridge/mac/WebCoreFrameBridge.mm:
  15403. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  15404. * loader/mac/FrameLoader.h:
  15405. * loader/mac/FrameLoader.mm:
  15406. (WebCore::FrameLoader::setupForReplaceByMIMEType):
  15407. (WebCore::FrameLoader::load):
  15408. (WebCore::FrameLoader::canShowMIMEType):
  15409. (WebCore::FrameLoader::representationExistsForURLScheme):
  15410. (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
  15411. (WebCore::FrameLoader::checkContentPolicy):
  15412. (WebCore::FrameLoader::reloadAllowingStaleData):
  15413. (WebCore::FrameLoader::invalidatePendingPolicyDecision):
  15414. (WebCore::FrameLoader::checkNewWindowPolicy):
  15415. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  15416. (WebCore::FrameLoader::transitionToCommitted):
  15417. (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
  15418. (WebCore::FrameLoader::post):
  15419. * loader/mac/WebDocumentLoader.h:
  15420. * loader/mac/WebDocumentLoader.mm:
  15421. (WebCore::DocumentLoader::doesProgressiveLoad):
  15422. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  15423. (WebCore::DocumentLoader::title):
  15424. (WebCore::DocumentLoader::setOverrideEncoding):
  15425. (WebCore::DocumentLoader::overrideEncoding):
  15426. (WebCore::DocumentLoader::setTitle):
  15427. * loader/mac/WebFrameLoaderClient.h:
  15428. * loader/mac/WebMainResourceLoader.mm:
  15429. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  15430. 2006-10-26 Timothy Hatcher <timothy@apple.com>
  15431. Reviewed by Adam.
  15432. <rdar://problem/4796941> Table deletion outline is misplaced at nytimes.com
  15433. The main table at nytimes.com has a fixed width of 874px, but the table ends
  15434. up overflowing to 963px. We now use overflowWidth() and overflowHeight() to correct
  15435. this. The other bug was a missing top and left of 0px on the container element,
  15436. causing the deletion UI to sometimes be offset below the table.
  15437. Now check for the element's renderer at the beginning of show() and
  15438. return early if it is null.
  15439. * editing/DeleteButtonController.cpp:
  15440. (WebCore::DeleteButtonController::updateOutlineStyle):
  15441. (WebCore::DeleteButtonController::show):
  15442. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  15443. Build fix.
  15444. * html/CanvasRenderingContext2D.cpp:
  15445. Include MathExtras.h
  15446. 2006-10-26 John Sullivan <sullivan@apple.com>
  15447. Reviewed by Anders.
  15448. Some changes to support new grammar checking code in WebKit.
  15449. * WebCore.exp:
  15450. added mangled symbol for Document->removeMarkers() so I can call it from WebKit
  15451. * WebCore.xcodeproj/project.pbxproj:
  15452. Made Document.h and DocumentMarker.h private so I can include them from WebKit.
  15453. Made HTMLCollection.h private because Document.h uses it.
  15454. * bridge/mac/WebCoreFrameBridge.h:
  15455. * bridge/mac/WebCoreFrameBridge.mm:
  15456. removed unmarkAllMisspellings(); WebKit now calls through to the Document directly
  15457. 2006-10-26 Anders Carlsson <acarlsson@apple.com>
  15458. Reviewed by Brady.
  15459. Add reverseFind to String and use it instead of findRev.
  15460. Use CString instead of DeprecatedCString in one place.
  15461. * html/HTMLFormElement.cpp:
  15462. (WebCore::HTMLFormElement::formData):
  15463. * ksvg2/svg/SVGURIReference.cpp:
  15464. (WebCore::SVGURIReference::getTarget):
  15465. * loader/Decoder.cpp:
  15466. (WebCore::Decoder::checkForCSSCharset):
  15467. * platform/PlatformString.h:
  15468. (WebCore::String::reverseFind):
  15469. * platform/StringImpl.cpp:
  15470. (WebCore::StringImpl::reverseFind):
  15471. * platform/StringImpl.h:
  15472. 2006-10-26 John Sullivan <sullivan@apple.com>
  15473. Reviewed by Darin
  15474. More plumbing for grammar checking. Still no grammars is checked.
  15475. * dom/DocumentMarker.h:
  15476. (WebCore::DocumentMarker::):
  15477. added Grammar to enum of marker types; removed explicit enum values; removed unnecessary "enum"
  15478. * platform/GraphicsContext.h:
  15479. renamed method drawLineForMisspelling to drawLineForMisspellingOrBadGrammar;
  15480. now takes a bool parameter for whether it represents bad grammar or a misspelling
  15481. * platform/mac/GraphicsContextMac.mm:
  15482. (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
  15483. Renamed from drawLineForMisspelling; uses green dot instead of red dot for grammar case. Changed
  15484. an existing "assert" to "ASSERT".
  15485. * rendering/InlineTextBox.h:
  15486. renamed function paintSpellingMarker to paintSpellingOrGrammarMarker;
  15487. * rendering/InlineTextBox.cpp:
  15488. (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
  15489. Renamed from paintSpellingMarker; now takes a bool parameter for whether it represents
  15490. bad grammar or a misspelling
  15491. (WebCore::InlineTextBox::paintAllMarkersOfType):
  15492. now handles markers of type Grammar
  15493. === Safari-521.29 ===
  15494. 2006-10-26 Sam Weinig <sam.weinig@gmail.com>
  15495. Reviewed by Mitz.
  15496. Fix for http://bugs.webkit.org/show_bug.cgi?id=11424
  15497. Cleanup rendering code
  15498. - Assorted code cleanup.
  15499. * rendering/AutoTableLayout.cpp:
  15500. * rendering/AutoTableLayout.h:
  15501. (WebCore::AutoTableLayout::totalPercent):
  15502. * rendering/CounterListItem.h:
  15503. * rendering/CounterNode.cpp:
  15504. * rendering/CounterNode.h:
  15505. (WebCore::CounterNode::~CounterNode):
  15506. (WebCore::CounterNode::isReset):
  15507. * rendering/CounterResetNode.cpp:
  15508. * rendering/CounterResetNode.h:
  15509. * rendering/DataRef.h:
  15510. (WebCore::DataRef::DataRef):
  15511. * rendering/DeprecatedRenderSelect.h:
  15512. * rendering/DeprecatedSlider.cpp:
  15513. * rendering/DeprecatedSlider.h:
  15514. * rendering/EllipsisBox.cpp:
  15515. * rendering/EllipsisBox.h:
  15516. (WebCore::EllipsisBox::EllipsisBox):
  15517. * rendering/FixedTableLayout.cpp:
  15518. * rendering/FixedTableLayout.h:
  15519. * rendering/GapRects.h:
  15520. * rendering/InlineBox.cpp:
  15521. * rendering/InlineBox.h:
  15522. (WebCore::InlineBox::InlineBox):
  15523. (WebCore::InlineBox::setConstructed):
  15524. (WebCore::InlineBox::clearTruncation):
  15525. (WebCore::InlineBox::markDirty):
  15526. * rendering/InlineFlowBox.cpp:
  15527. * rendering/InlineFlowBox.h:
  15528. (WebCore::InlineFlowBox::InlineFlowBox):
  15529. (WebCore::InlineFlowBox::setConstructed):
  15530. (WebCore::InlineFlowBox::setEdges):
  15531. (WebCore::InlineFlowBox::setVerticalOverflowPositions):
  15532. (WebCore::InlineFlowBox::setVerticalSelectionPositions):
  15533. * rendering/InlineRunBox.h:
  15534. (WebCore::InlineRunBox::paintBackgroundAndBorder):
  15535. (WebCore::InlineRunBox::paintDecorations):
  15536. * rendering/InlineTextBox.cpp:
  15537. * rendering/InlineTextBox.h:
  15538. (WebCore::InlineTextBox::InlineTextBox):
  15539. (WebCore::InlineTextBox::end):
  15540. (WebCore::InlineTextBox::textObject):
  15541. * rendering/Length.h:
  15542. (WebCore::Length::Length):
  15543. * rendering/ListMarkerBox.cpp:
  15544. * rendering/ListMarkerBox.h:
  15545. * rendering/RenderPartObject.h:
  15546. * rendering/RootInlineBox.cpp:
  15547. * rendering/RootInlineBox.h:
  15548. * rendering/SVGInlineFlowBox.cpp:
  15549. * rendering/SVGInlineFlowBox.h:
  15550. (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
  15551. * rendering/SVGRootInlineBox.cpp:
  15552. * rendering/SVGRootInlineBox.h:
  15553. (WebCore::SVGRootInlineBox::SVGRootInlineBox):
  15554. * rendering/TableLayout.h:
  15555. (WebCore::TableLayout::TableLayout):
  15556. (WebCore::TableLayout::~TableLayout):
  15557. * rendering/bidi.h:
  15558. (WebCore::BidiStatus::BidiStatus):
  15559. (WebCore::BidiRun::BidiRun):
  15560. * rendering/break_lines.h:
  15561. 2006-10-26 Justin Garcia <justin.garcia@apple.com>
  15562. Reviewed by john
  15563. <http://bugs.webkit.org/show_bug.cgi?id=11329>
  15564. Gmail Editor: Can't remove styling applied to selection after clicking "Remove Formatting" toolbar icon.
  15565. * editing/Editor.cpp:
  15566. (WebCore::Editor::removeFormattingAndStyle): Moved from JSEditor.
  15567. Wrapped the plain text fragment in a style span with the document
  15568. default style so that it will appear unstyled regardless of where
  15569. it is inserted. Could have also inserted the plain text fragment
  15570. and then applied the document default style to it, but there is not
  15571. yet any redundant style prevention in ApplyStyleCommand, so this
  15572. is cleaner.
  15573. * editing/Editor.h:
  15574. * editing/JSEditor.cpp:
  15575. 2006-10-26 Oliver Hunt <oliver@apple.com>
  15576. Reviewed by Anders.
  15577. Fixes <rdar://problem/4800518> -- needed to update existing
  15578. canvas path elements when transforms are performed on the
  15579. context.
  15580. * html/CanvasRenderingContext2D.cpp:
  15581. (WebCore::CanvasRenderingContext2D::scale):
  15582. (WebCore::CanvasRenderingContext2D::rotate):
  15583. (WebCore::CanvasRenderingContext2D::translate):
  15584. 2006-10-26 Nikolas Zimmermann <zimmermann@kde.org>
  15585. Reviewed by Darin.
  15586. Fix Qt/Linux build.
  15587. * platform/network/qt/ResourceLoaderManager.cpp:
  15588. (WebCore::ResourceLoaderManager::slotData):
  15589. (WebCore::ResourceLoaderManager::slotMimetype):
  15590. (WebCore::ResourceLoaderManager::remove):
  15591. (WebCore::ResourceLoaderManager::add):
  15592. * platform/network/qt/ResourceLoaderQt.cpp:
  15593. (WebCore::ResourceLoader::receivedResponse):
  15594. * platform/qt/FrameQtClient.cpp:
  15595. (WebCore::FrameQtClientDefault::openURL):
  15596. * platform/qt/LoaderFunctionsQt.cpp:
  15597. (WebCore::ServeSynchronousRequest):
  15598. 2006-10-26 Adam Roben <aroben@apple.com>
  15599. Reviewed by Adele.
  15600. Fix: <rdar://problem/3951815> add "type-to-select" feature for list
  15601. boxes (<select> elements)
  15602. Fix: http://bugs.webkit.org/show_bug.cgi?id=9764 New popup menus
  15603. should have type-ahead selection without popping up menu
  15604. * WebCore.xcodeproj/project.pbxproj: Version wars.
  15605. * html/HTMLSelectElement.h: Add new instance variables for type-ahead
  15606. find.
  15607. * html/HTMLSelectElement.cpp:
  15608. (WebCore::HTMLSelectElement::HTMLSelectElement): Initialize new
  15609. instance variables.
  15610. (WebCore::HTMLSelectElement::defaultEventHandler): Perform type-ahead
  15611. find on printable character presses.
  15612. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Remove
  15613. redundant check that the listIndex has changed (setSelectedIndex does
  15614. this for us), and fix indentation.
  15615. (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Change an if
  15616. to an else-if.
  15617. (WebCore::stripLeadingWhiteSpace): Helper function for typeAheadFind()
  15618. to strip leading whitespace (including non-breaking spaces) from a
  15619. string.
  15620. (WebCore::HTMLSelectElement::typeAheadFind): New method to perform
  15621. type-ahead find.
  15622. * platform/PopupMenu.h: Added new updateFromElement() method to be
  15623. called from RenderMenuList::updateFromElement().
  15624. * platform/mac/PopupMenuMac.mm:
  15625. (WebCore::PopupMenu::updateFromElement): While we are using
  15626. NSPopUpButtonCell for our popups, this method can stay empty.
  15627. * rendering/RenderListBox.cpp:
  15628. (WebCore::RenderListBox::updateFromElement): Scroll to reveal the first
  15629. selected element.
  15630. * rendering/RenderMenuList.cpp:
  15631. (WebCore::RenderMenuList::updateFromElement): Tell the popup to update
  15632. if it's visible.
  15633. 2006-10-26 Darin Adler <darin@apple.com>
  15634. Reviewed by Anders.
  15635. - fix http://bugs.webkit.org/show_bug.cgi?id=11360
  15636. editing/pasteboard/copy-paste-bidi intermittently fails due to disappearance of anonymous RenderBlock
  15637. * editing/ReplaceSelectionCommand.cpp:
  15638. (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
  15639. Use two vectors instead of a hash map: more efficient, deterministic. There was no
  15640. reason to use a hash table.
  15641. 2006-10-26 Maciej Stachowiak <mjs@apple.com>
  15642. Reviewed by Anders.
  15643. - .5% speed improvement by avoiding excess CFURLRef allocation
  15644. * loader/CachedResource.cpp:
  15645. (WebCore::CachedResource::getCFURL): New method. For Mac only (for now), cache the CFURL
  15646. here for later reuse.
  15647. * loader/CachedResource.h:
  15648. * loader/mac/LoaderFunctionsMac.mm:
  15649. (WebCore::CheckCacheObjectStatus): Use the cached CFURL, don't make a whole new one.
  15650. 2006-10-25 Darin Adler <darin@apple.com>
  15651. Reviewed by Anders.
  15652. - removed 55 methods from WebCoreFrameBridge
  15653. - changed callers to use Frame directly instead
  15654. - put FrameLoaderTypes.h types into the WebCore namespace
  15655. - first steps to get FrameLoader.h ready for cross-platform duty
  15656. * WebCore.exp:
  15657. * WebCore.xcodeproj/project.pbxproj:
  15658. * bridge/mac/BrowserExtensionMac.mm:
  15659. (WebCore::BrowserExtensionMac::createNewWindow):
  15660. * bridge/mac/FrameMac.h:
  15661. * bridge/mac/FrameMac.mm:
  15662. (WebCore::FrameMac::loadRequest):
  15663. (WebCore::FrameMac::startRedirectionTimer):
  15664. (WebCore::FrameMac::stopRedirectionTimer):
  15665. (WebCore::FrameMac::passSubframeEventToSubframe):
  15666. (WebCore::FrameMac::handledOnloadEvents):
  15667. (WebCore::FrameMac::isLoadTypeReload):
  15668. * bridge/mac/WebCoreFrameBridge.h:
  15669. * bridge/mac/WebCoreFrameBridge.mm:
  15670. (-[WebCoreFrameBridge executionContextForView:]):
  15671. (updateRenderingForBindings):
  15672. (-[WebCoreFrameBridge canTargetLoadInFrame:]):
  15673. (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]):
  15674. (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
  15675. (-[WebCoreFrameBridge installInFrame:]):
  15676. (-[WebCoreFrameBridge numPendingOrLoadingRequests]):
  15677. (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
  15678. (-[WebCoreFrameBridge baseWritingDirectionForSelectionStart]):
  15679. (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
  15680. (stringByCollapsingNonPrintingCharacters):
  15681. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  15682. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  15683. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  15684. * loader/FrameLoaderTypes.h:
  15685. * loader/mac/FrameLoader.h:
  15686. * loader/mac/FrameLoader.mm:
  15687. (WebCore::FrameLoader::FrameLoader):
  15688. (WebCore::FrameLoader::setupForReplace):
  15689. (WebCore::FrameLoader::load):
  15690. (WebCore::FrameLoader::activeDocumentLoader):
  15691. (WebCore::FrameLoader::state):
  15692. (WebCore::FrameLoader::setState):
  15693. (WebCore::FrameLoader::clearProvisionalLoad):
  15694. (WebCore::FrameLoader::markLoadComplete):
  15695. (WebCore::FrameLoader::commitProvisionalLoad):
  15696. (WebCore::FrameLoader::receivedMainResourceError):
  15697. (WebCore::FrameLoader::handleFallbackContent):
  15698. (WebCore::FrameLoader::isLoadingMainFrame):
  15699. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  15700. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  15701. (WebCore::FrameLoader::continueAfterWillSubmitForm):
  15702. (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
  15703. (WebCore::FrameLoader::transitionToCommitted):
  15704. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  15705. (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
  15706. (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
  15707. (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
  15708. (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
  15709. * loader/mac/ImageDocumentMac.mm:
  15710. (WebCore::finishImageLoad):
  15711. * loader/mac/WebDocumentLoader.mm:
  15712. (WebCore::DocumentLoader::isLoadingInAPISense):
  15713. * loader/mac/WebMainResourceLoader.h:
  15714. * loader/mac/WebMainResourceLoader.mm:
  15715. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  15716. (-[WebCoreMainResourceLoaderAsPolicyDelegate continueAfterContentPolicy:]):
  15717. * loader/mac/WebSubresourceLoader.mm:
  15718. (-[WebCoreSubresourceHandle initWithLoader:]):
  15719. * platform/mac/ListBoxMac.mm:
  15720. (-[WebCoreTableView keyDown:]):
  15721. (-[WebCoreTableView keyUp:]):
  15722. * platform/mac/WebCoreTextField.mm:
  15723. (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
  15724. 2006-10-25 Steve Falkenburg <sfalken@apple.com>
  15725. Reviewed by Darin.
  15726. Printing fixes
  15727. * page/Frame.cpp:
  15728. (WebCore::Frame::adjustPageHeight):
  15729. * page/Frame.h:
  15730. (WebCore::Frame::setupRootForPrinting):
  15731. (WebCore::Frame::computePageRects):
  15732. 2006-10-25 Anders Carlsson <acarlsson@apple.com>
  15733. Reviewed by Geoff.
  15734. <rdar://problem/4799088>
  15735. REGRESSION: Translation widget fails to convert data and reports a "Data unavailable" error.
  15736. * loader/mac/WebSubresourceLoader.h:
  15737. * loader/mac/WebSubresourceLoader.mm:
  15738. (-[WebCoreSubresourceHandle initWithLoader:]):
  15739. Set the HTTP method before the HTTP body.
  15740. 2006-10-25 Geoffrey Garen <ggaren@apple.com>
  15741. Reviewed by Adam.
  15742. Renamed WebFrameLoader to FrameLoader, to match class name.
  15743. * WebCore.xcodeproj/project.pbxproj:
  15744. * bridge/mac/FrameMac.mm:
  15745. * bridge/mac/WebCoreFrameBridge.mm:
  15746. * loader/mac/FrameLoader.mm: Added.
  15747. * loader/mac/IconLoaderMac.mm:
  15748. * loader/mac/WebDocumentLoader.mm:
  15749. * loader/mac/WebFrameLoader.h: Removed.
  15750. * loader/mac/WebFrameLoader.mm: Removed.
  15751. * loader/mac/WebLoader.mm:
  15752. * loader/mac/WebMainResourceLoader.mm:
  15753. * loader/mac/WebNetscapePlugInStreamLoader.mm:
  15754. * loader/mac/WebSubresourceLoader.mm:
  15755. 2006-10-25 Darin Adler <darin@apple.com>
  15756. - fix full builds
  15757. * WebCore.xcodeproj/project.pbxproj: Mark bridge/mac/WebCoreResourceLoader.h as private.
  15758. 2006-10-25 David Smith <catfish.man@gmail.com>
  15759. Reviewed by Mitz.
  15760. Fixed REGRESSION (r17280): Repro crash when clicking a link with target="_blank"
  15761. http://bugs.webkit.org/show_bug.cgi?id=11411
  15762. * bridge/mac/WebCoreFrameBridge.mm:
  15763. (-[WebCoreFrameBridge canTargetLoadInFrame:]): Check that the target has a frame before using it.
  15764. 2006-10-25 Maciej Stachowiak <mjs@apple.com>
  15765. Rubber stamped by Mitz.
  15766. - moved some files that are essentially part of the ResourceLoader implementation to platform/network/mac
  15767. * WebCore.xcodeproj/project.pbxproj:
  15768. * bridge/mac/WebCoreResourceLoader.h: Moved to platform/network/mac.
  15769. * bridge/mac/WebCoreResourceLoaderImp.h: Moved to platform/network/mac.
  15770. * bridge/mac/WebCoreResourceLoaderImp.mm: Moved to platform/network/mac.
  15771. 2006-10-25 Maciej Stachowiak <mjs@apple.com>
  15772. Rubber stamped by Mark.
  15773. - remove no longer existing symbol that was breaking linking
  15774. * WebCore.exp:
  15775. 2006-10-25 Maciej Stachowiak <mjs@apple.com>
  15776. Reviewed by Mitz.
  15777. - fixed "REGRESSION: Activity window doesn't always list all files until refresh"
  15778. http://bugs.webkit.org/show_bug.cgi?id=11212
  15779. I couldn't figure out how to write a test case.
  15780. * bindings/js/kjs_window.cpp:
  15781. (KJS::Window::clear): Avoid crashing if already detached.
  15782. * bridge/mac/FrameMac.h:
  15783. * bridge/mac/FrameMac.mm:
  15784. (WebCore::FrameMac::clear): Change prototype to make this a proper
  15785. overload for Frame::clear once again(!).
  15786. 2006-10-24 Darin Adler <darin@apple.com>
  15787. Reviewed by Anders.
  15788. - converted WebFrameLoaderClient to C++
  15789. - renamed frame->frameLoader() function to frame->loader()
  15790. - renamed [bridge impl] to [bridge _frame]
  15791. - removed some bridge methods
  15792. * WebCore.exp: Added more exports.
  15793. * WebCore.xcodeproj/project.pbxproj: Made FrameTree.h private instead of project-internal
  15794. so it can be used in WebKit.
  15795. * bridge/mac/BrowserExtensionMac.mm:
  15796. (WebCore::BrowserExtensionMac::createNewWindow):
  15797. * bridge/mac/FrameMac.mm:
  15798. (WebCore::FrameMac::createFrame):
  15799. (WebCore::FrameMac::didFirstLayout):
  15800. * bridge/mac/WebCoreAXObject.mm:
  15801. (-[WebCoreAXObject rendererForView:]):
  15802. * bridge/mac/WebCoreFrameBridge.h:
  15803. * bridge/mac/WebCoreFrameBridge.mm:
  15804. (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
  15805. (-[WebCoreFrameBridge canTargetLoadInFrame:]):
  15806. (-[WebCoreFrameBridge setOpener:]):
  15807. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  15808. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  15809. (-[WebCoreFrameBridge setTitle:]):
  15810. (-[WebCoreFrameBridge originalRequestURL]):
  15811. (-[WebCoreFrameBridge isLoadTypeReload]):
  15812. (-[WebCoreFrameBridge frameDetached]):
  15813. (-[WebCoreFrameBridge tokenizerProcessedData]):
  15814. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  15815. (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  15816. (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  15817. (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
  15818. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  15819. (-[WebCoreFrameBridge incomingReferrer]):
  15820. (-[WebCoreFrameBridge isReloading]):
  15821. (-[WebCoreFrameBridge handledOnloadEvents]):
  15822. (-[WebCoreFrameBridge mainResourceURLResponse]):
  15823. (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
  15824. (-[WebCoreFrameBridge _frame]):
  15825. (-[WebCoreFrameBridge executionContextForView:]):
  15826. * bridge/mac/WebCorePageBridge.mm:
  15827. (-[WebCorePageBridge setMainFrame:]):
  15828. * dom/Position.cpp:
  15829. (WebCore::Position::upstream):
  15830. * loader/mac/IconLoaderMac.mm:
  15831. (IconLoader::notifyIconChanged):
  15832. * loader/mac/WebDocumentLoader.mm:
  15833. (WebCore::DocumentLoader::frameLoader):
  15834. (WebCore::DocumentLoader::stopLoading):
  15835. (WebCore::DocumentLoader::finishedLoading):
  15836. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  15837. * loader/mac/WebFormState.mm:
  15838. (WebCore::FormState::FormState):
  15839. * loader/mac/WebFrameLoader.h:
  15840. * loader/mac/WebFrameLoader.mm:
  15841. (WebCore::FrameLoader::~FrameLoader):
  15842. (WebCore::FrameLoader::prepareForLoadStart):
  15843. (WebCore::FrameLoader::finalSetupForReplace):
  15844. (WebCore::FrameLoader::safeLoad):
  15845. (WebCore::FrameLoader::load):
  15846. (WebCore::FrameLoader::startLoading):
  15847. (WebCore::FrameLoader::stopLoadingSubframes):
  15848. (WebCore::FrameLoader::stopLoading):
  15849. (WebCore::FrameLoader::cancelPendingArchiveLoad):
  15850. (WebCore::FrameLoader::defersCallbacksChanged):
  15851. (WebCore::FrameLoader::setDefersCallbacks):
  15852. (WebCore::FrameLoader::setDocumentLoader):
  15853. (WebCore::FrameLoader::provisionalLoadStarted):
  15854. (WebCore::FrameLoader::clearProvisionalLoad):
  15855. (WebCore::FrameLoader::identifierForInitialRequest):
  15856. (WebCore::FrameLoader::willSendRequest):
  15857. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  15858. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  15859. (WebCore::FrameLoader::didReceiveResponse):
  15860. (WebCore::FrameLoader::didReceiveData):
  15861. (WebCore::FrameLoader::didFinishLoad):
  15862. (WebCore::FrameLoader::didFailToLoad):
  15863. (WebCore::FrameLoader::privateBrowsingEnabled):
  15864. (WebCore::FrameLoader::receivedMainResourceError):
  15865. (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
  15866. (WebCore::FrameLoader::clientRedirected):
  15867. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  15868. (WebCore::FrameLoader::closeOldDataSources):
  15869. (WebCore::FrameLoader::opened):
  15870. (WebCore::FrameLoader::commitProvisionalLoad):
  15871. (WebCore::FrameLoader::download):
  15872. (WebCore::FrameLoader::finishedLoading):
  15873. (WebCore::FrameLoader::notifyIconChanged):
  15874. (WebCore::FrameLoader::cancelledError):
  15875. (WebCore::FrameLoader::fileDoesNotExistError):
  15876. (WebCore::FrameLoader::willUseArchive):
  15877. (WebCore::FrameLoader::isArchiveLoadPending):
  15878. (WebCore::FrameLoader::handleUnimplementablePolicy):
  15879. (WebCore::FrameLoader::cannotShowMIMEType):
  15880. (WebCore::FrameLoader::interruptionForPolicyChangeError):
  15881. (WebCore::FrameLoader::canShowMIMEType):
  15882. (WebCore::FrameLoader::representationExistsForURLScheme):
  15883. (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
  15884. (WebCore::FrameLoader::checkContentPolicy):
  15885. (WebCore::FrameLoader::reloadAllowingStaleData):
  15886. (WebCore::FrameLoader::reload):
  15887. (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
  15888. (WebCore::FrameLoader::finishedLoadingDocument):
  15889. (WebCore::FrameLoader::committedLoad):
  15890. (WebCore::FrameLoader::revertToProvisional):
  15891. (WebCore::FrameLoader::setMainDocumentError):
  15892. (WebCore::FrameLoader::mainReceivedCompleteError):
  15893. (WebCore::FrameLoader::subframeIsLoading):
  15894. (WebCore::FrameLoader::willChangeTitle):
  15895. (WebCore::FrameLoader::didChangeTitle):
  15896. (WebCore::FrameLoader::checkNewWindowPolicy):
  15897. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  15898. (WebCore::FrameLoader::checkNavigationPolicy):
  15899. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  15900. (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
  15901. (WebCore::FrameLoader::didFirstLayout):
  15902. (WebCore::FrameLoader::frameLoadCompleted):
  15903. (WebCore::FrameLoader::transitionToCommitted):
  15904. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  15905. (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
  15906. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  15907. (WebCore::FrameLoader::requestFromDelegate):
  15908. (WebCore::FrameLoader::post):
  15909. (WebCore::FrameLoader::detachChildren):
  15910. (WebCore::FrameLoader::detachFromParent):
  15911. (WebCore::FrameLoader::addExtraFieldsToRequest):
  15912. (WebCore::FrameLoader::actionInformation):
  15913. (WebCore::FrameLoader::checkLoadComplete):
  15914. (WebCore::FrameLoader::setClient):
  15915. (WebCore::FrameLoader::client):
  15916. (WebCore::FrameLoaderClient::~FrameLoaderClient):
  15917. * loader/mac/WebFrameLoaderClient.h:
  15918. * loader/mac/WebLoader.mm:
  15919. (WebCore::WebResourceLoader::frameLoader):
  15920. * loader/mac/WebSubresourceLoader.mm:
  15921. (-[WebCoreSubresourceHandle initWithLoader:]):
  15922. * page/Frame.cpp:
  15923. (WebCore::Frame::loader):
  15924. * page/Frame.h:
  15925. * platform/mac/SliderMac.mm:
  15926. (Slider::focusPolicy):
  15927. 2006-10-24 Darin Adler <darin@apple.com>
  15928. Rubber stamped by Anders.
  15929. - get rid of the assertion firing while running the layout tests
  15930. This does not fix the real problem, which is that we need to map offsets within
  15931. possibly-text-transformed text in the render tree to DOM tree offsets and vice
  15932. versa -- but it gets the tests running again.
  15933. * dom/Position.cpp: (WebCore::Position::upstream): Commented out the assertion.
  15934. 2006-10-24 Maciej Stachowiak <mjs@apple.com>
  15935. Reviewed by Oliver.
  15936. - more ResourceLoader cleanup
  15937. - moved HTTPHeaderMap out of ResourceRequest class, so ResourceResponse will be able to use it too
  15938. - took out attempts to suppress setting of "HEAD" and "GET" methods, since underlying bugs are now fixed
  15939. * loader/LoaderFunctions.h:
  15940. * loader/mac/LoaderFunctionsMac.mm:
  15941. (WebCore::ServeSynchronousRequest):
  15942. * loader/mac/WebSubresourceLoader.mm:
  15943. (-[WebCoreSubresourceHandle initWithLoader:]):
  15944. * platform/network/HTTPHeaderMap.h: Added.
  15945. * platform/network/ResourceLoader.cpp:
  15946. (WebCore::ResourceLoader::requestHeaders):
  15947. * platform/network/ResourceLoader.h:
  15948. * platform/network/ResourceRequest.h:
  15949. * platform/network/cf/ResourceLoaderCFNet.cpp:
  15950. (WebCore::addHeadersFromHashMap):
  15951. * xml/xmlhttprequest.cpp:
  15952. (WebCore::XMLHttpRequest::send):
  15953. * xml/xmlhttprequest.h:
  15954. 2006-10-24 Justin Garcia <justin.garcia@apple.com>
  15955. Reviewed by darin
  15956. <http://bugs.webkit.org/show_bug.cgi?id=10993>
  15957. GMail Editor: Caret doesn't always position itself after list marker
  15958. List creation uses moveParagraphs to push content into list items.
  15959. moveParagraphs uses a TextIterator to restore selections after moves.
  15960. Some characters emitted by the TextIterator had bad ranges associated
  15961. with them. rangeFromLocationAndLength would skip past the range it
  15962. should have used when asked for ranges of length 0.
  15963. * editing/TextIterator.cpp:
  15964. (WebCore::TextIterator::TextIterator): No longer need to initialize a
  15965. removed member variable.
  15966. (WebCore::TextIterator::advance): An extra newline is emitted when leaving
  15967. some blocks. Use the same range for this newline as for the first newline.
  15968. We should remove this code and just emit two '\n's.
  15969. (WebCore::TextIterator::handleTextNode): Setup m_range.
  15970. (WebCore::TextIterator::handleTextBox): Ditto.
  15971. (WebCore::TextIterator::handleReplacedElement): Ditto.
  15972. (WebCore::TextIterator::handleNonTextNode): Ditto.
  15973. (WebCore::TextIterator::exitNode): Use an m_range from the last VisiblePosition
  15974. in the block we're leaving to that VP after that one.
  15975. (WebCore::TextIterator::emitCharacter): This function now takes in the start
  15976. and the end of the range associated with the emited character, and sets up m_range.
  15977. (WebCore::TextIterator::range): Return m_range. If it is null (we are atEnd),
  15978. return the end of the range used to create the iterator, as a convenience to
  15979. callers that use call range() on an iterator that is atEnd.
  15980. (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
  15981. Same as the changes made to TextIterator's constructor.
  15982. (WebCore::SimplifiedBackwardsTextIterator::advance): Use a null m_range instead of
  15983. a null m_positionNode to signal that we're finished.
  15984. (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
  15985. (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement): Similar to changes
  15986. made to TextIterator.
  15987. (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
  15988. (WebCore::SimplifiedBackwardsTextIterator::emitNewline): Simplified.
  15989. (WebCore::SimplifiedBackwardsTextIterator::range): Similar to the changes made to
  15990. TextIterator::range.
  15991. (WebCore::CharacterIterator::range): This function assumed that an iterator's
  15992. range() was safe to modify.
  15993. (WebCore::TextIterator::rangeFromLocationAndLength):
  15994. If the range we're looking for starts in the current chunk, this function assumed
  15995. that if the chunk started in a text node, it would end in the same text node. This
  15996. is no longer the case.
  15997. If the range we're looking for starts in the middle of the current chunk, I assume
  15998. that the chunk is inside a text node, because those are the only chunks with length
  15999. greater than one at the moment.
  16000. If the range we're looking for is a zero length range that starts/ends at the end of the
  16001. current chunk, we used to return the start of the next chunk, but that's wrong and
  16002. is what caused this bug.
  16003. * editing/TextIterator.h:
  16004. (WebCore::TextIterator::atEnd): The iterator is atEnd when m_range is null.
  16005. (WebCore::SimplifiedBackwardsTextIterator::atEnd):
  16006. * editing/visible_units.cpp:
  16007. (WebCore::previousBoundary): Cleaned up by using a convenience function.
  16008. (WebCore::nextBoundary): Ditto.
  16009. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  16010. Reviewed by Maciej.
  16011. * platform/network/mac/ResourceLoaderMac.mm:
  16012. (WebCore::ResourceLoader::start):
  16013. Don't retain the header dictionary.
  16014. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  16015. Reviewed by Anders.
  16016. Fixed http://bugs.webkit.org/show_bug.cgi?id=11404
  16017. REGRESSION: Reproducible assertion failure in Shared<WebCore::StringImpl>::ref()
  16018. running svg/custom/svg/custom/gradient-attr-update.svg
  16019. SVGRenderStyle wasn't ref-ing the shared objects it held onto. Oops.
  16020. * ksvg2/css/SVGRenderStyle.h:
  16021. * ksvg2/css/SVGRenderStyleDefs.h:
  16022. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  16023. Reviewed by Mitz.
  16024. * platform/network/ResourceRequest.h:
  16025. (WebCore::ResourceRequest::ResourceRequest):
  16026. Set the http method to "GET" in the constructor that takes a String.
  16027. 2006-10-24 Sam Weinig <sam.weinig@gmail.com>
  16028. Reviewed by Tim H.
  16029. Move kcanvas/Render* and kcanvas/SVG* to rendering/Render*
  16030. and rendering/SVG* respectively. Fix Xcode project and
  16031. CMakeLists.txt to account for the moves.
  16032. * CMakeLists.txt:
  16033. * WebCore.xcodeproj/project.pbxproj:
  16034. * kcanvas/RenderForeignObject.cpp: Removed.
  16035. * kcanvas/RenderForeignObject.h: Removed.
  16036. * kcanvas/RenderPath.cpp: Removed.
  16037. * kcanvas/RenderPath.h: Removed.
  16038. * kcanvas/RenderSVGContainer.cpp: Removed.
  16039. * kcanvas/RenderSVGContainer.h: Removed.
  16040. * kcanvas/RenderSVGImage.cpp: Removed.
  16041. * kcanvas/RenderSVGImage.h: Removed.
  16042. * kcanvas/RenderSVGInline.cpp: Removed.
  16043. * kcanvas/RenderSVGInline.h: Removed.
  16044. * kcanvas/RenderSVGInlineText.cpp: Removed.
  16045. * kcanvas/RenderSVGInlineText.h: Removed.
  16046. * kcanvas/RenderSVGTSpan.cpp: Removed.
  16047. * kcanvas/RenderSVGTSpan.h: Removed.
  16048. * kcanvas/RenderSVGText.cpp: Removed.
  16049. * kcanvas/RenderSVGText.h: Removed.
  16050. * kcanvas/SVGInlineFlowBox.cpp: Removed.
  16051. * kcanvas/SVGInlineFlowBox.h: Removed.
  16052. * kcanvas/SVGRootInlineBox.cpp: Removed.
  16053. * kcanvas/SVGRootInlineBox.h: Removed.
  16054. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  16055. Rolling back in, now fixed:
  16056. Nixed a few more redundant loading functions in Frame. Did my best to update
  16057. the non-Mac builds.
  16058. * bridge/mac/FrameMac.h:
  16059. * bridge/mac/FrameMac.mm:
  16060. (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture
  16061. always 'true', because changing it broke the world, and testing seems to
  16062. indicate that the one caller that might have passed 'false' didn't need to.
  16063. * page/Frame.cpp:
  16064. (WebCore::Frame::requestFrame):
  16065. (WebCore::Frame::frameLoader):
  16066. (WebCore::Frame::redirectionTimerFired):
  16067. * page/Frame.h:
  16068. * platform/gdk/FrameGdk.cpp:
  16069. * platform/gdk/FrameGdk.h:
  16070. * platform/gdk/TemporaryLinkStubs.cpp:
  16071. (FrameGdk::issueCopyCommand):
  16072. * platform/qt/FrameQt.cpp:
  16073. * platform/qt/FrameQt.h:
  16074. * platform/win/TemporaryLinkStubs.cpp:
  16075. (WebCore::FrameWin::shouldInterruptJavaScript):
  16076. (WebCore::FrameWin::issueCopyCommand):
  16077. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  16078. Fix the build (Update for changes to ResourceLoader)
  16079. * platform/network/cf/ResourceLoaderCFNet.cpp:
  16080. (WebCore::addHeadersFromHashMap):
  16081. (WebCore::ResourceLoader::start):
  16082. (WebCore::ResourceLoader::cancel):
  16083. 2006-10-24 Sam Weinig <sam.weinig@gmail.com>
  16084. Reviewed by Mitz.
  16085. Change #includes using <kcanvas/*.h> to use "*.h" instead
  16086. to prepare for moving the kcanvas files.
  16087. * kcanvas/RenderSVGContainer.h:
  16088. * ksvg2/svg/SVGAElement.cpp:
  16089. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  16090. * ksvg2/svg/SVGFETileElement.cpp:
  16091. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  16092. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  16093. 2006-10-24 Maciej Stachowiak <mjs@apple.com>
  16094. Reviewed by Darin.
  16095. - More movement towards the final network API.
  16096. Changed ResourceLoader::create to take a ResurceRequest and start
  16097. the load. Removed methods relating to setting request
  16098. headers. Removed methods relating to metaData. Added some more
  16099. convenience methods to ResourceRequest.
  16100. * dom/XMLTokenizer.cpp:
  16101. (WebCore::openFunc):
  16102. * loader/LoaderFunctions.h:
  16103. * loader/icon/IconLoader.cpp:
  16104. (IconLoader::startLoading):
  16105. (IconLoader::didFinishLoading):
  16106. * loader/icon/IconLoader.h:
  16107. * loader/loader.cpp:
  16108. (WebCore::Loader::servePendingRequests):
  16109. * loader/mac/LoaderFunctionsMac.mm:
  16110. (WebCore::ServeSynchronousRequest):
  16111. * platform/gdk/FrameGdk.cpp:
  16112. (WebCore::FrameGdkClientDefault::openURL):
  16113. (WebCore::FrameGdkClientDefault::submitForm):
  16114. * platform/network/ResourceLoader.cpp:
  16115. (WebCore::ResourceLoader::ResourceLoader):
  16116. (WebCore::ResourceLoader::create):
  16117. (WebCore::ResourceLoader::responseHTTPHeadersAsString):
  16118. (WebCore::ResourceLoader::url):
  16119. (WebCore::ResourceLoader::postData):
  16120. (WebCore::ResourceLoader::method):
  16121. (WebCore::ResourceLoader::client):
  16122. * platform/network/ResourceLoader.h:
  16123. * platform/network/ResourceLoaderInternal.h:
  16124. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  16125. * platform/network/ResourceRequest.h:
  16126. (WebCore::ResourceRequest::ResourceRequest):
  16127. (WebCore::ResourceRequest::httpAccept):
  16128. (WebCore::ResourceRequest::setHTTPAccept):
  16129. (WebCore::ResourceRequest::addHTTPHeaderFields):
  16130. * platform/network/mac/ResourceLoaderMac.mm:
  16131. (WebCore::ResourceLoader::start):
  16132. (WebCore::ResourceLoader::receivedResponse):
  16133. * platform/qt/FrameQtClient.cpp:
  16134. (WebCore::FrameQtClientDefault::openURL):
  16135. (WebCore::FrameQtClientDefault::submitForm):
  16136. * platform/win/TemporaryLinkStubs.cpp:
  16137. (WebCore::ResourceLoader::retrieveResponseEncoding):
  16138. * xml/XSLTProcessor.cpp:
  16139. (WebCore::docLoaderFunc):
  16140. * xml/xmlhttprequest.cpp:
  16141. (WebCore::XMLHttpRequest::send):
  16142. (WebCore::XMLHttpRequest::didFinishLoading):
  16143. (WebCore::XMLHttpRequest::didReceiveData):
  16144. * xml/xmlhttprequest.h:
  16145. 2006-10-24 Anders Carlsson <acarlsson@apple.com>
  16146. Reviewed by Geoff.
  16147. * loader/FormData.cpp:
  16148. (WebCore::FormData::FormData):
  16149. * loader/FormData.h:
  16150. (WebCore::FormData::FormData):
  16151. Add new constructor that takes a void* and a size.
  16152. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  16153. Rolling out my last change because it broke the world.
  16154. * bridge/mac/FrameMac.h:
  16155. * bridge/mac/FrameMac.mm:
  16156. (WebCore::FrameMac::openURL):
  16157. (WebCore::FrameMac::openURLRequest):
  16158. (WebCore::FrameMac::urlSelected):
  16159. * page/Frame.cpp:
  16160. (WebCore::Frame::openURL):
  16161. (WebCore::Frame::frameLoader):
  16162. (WebCore::Frame::requestFrame):
  16163. (WebCore::Frame::redirectionTimerFired):
  16164. * page/Frame.h:
  16165. * platform/gdk/FrameGdk.cpp:
  16166. (WebCore::FrameGdk::openURL):
  16167. * platform/gdk/FrameGdk.h:
  16168. * platform/gdk/TemporaryLinkStubs.cpp:
  16169. * platform/qt/FrameQt.cpp:
  16170. (WebCore::FrameQt::openURL):
  16171. (WebCore::FrameQt::openURLRequest):
  16172. * platform/qt/FrameQt.h:
  16173. * platform/win/TemporaryLinkStubs.cpp:
  16174. (WebCore::FrameWin::openURL):
  16175. (WebCore::FrameWin::openURLRequest):
  16176. 2006-10-24 Nikolas Zimmermann <zimmermann@kde.org>
  16177. Reviewed by Adam.
  16178. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11396
  16179. Kill KRenderingFillPainter/KRenderingStrokePainter. Those are not needed
  16180. anymore, since kcanvas/ksvg2 are tightly integrated. No LayoutTests fixed
  16181. or broken.
  16182. * CMakeLists.txt:
  16183. * WebCore.xcodeproj/project.pbxproj:
  16184. * kcanvas/KCanvasTreeDebug.cpp:
  16185. (WebCore::operator<<):
  16186. (WebCore::writeStyle):
  16187. * kcanvas/RenderPath.cpp:
  16188. (WebCore::RenderPath::fillContains):
  16189. * kcanvas/device/KRenderingFillPainter.cpp:
  16190. * kcanvas/device/KRenderingFillPainter.h:
  16191. * kcanvas/device/KRenderingStrokePainter.cpp:
  16192. * kcanvas/device/KRenderingStrokePainter.h:
  16193. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  16194. (WebCore::KRenderingPaintServerLinearGradientQt::setup):
  16195. (WebCore::KRenderingPaintServerRadialGradientQt::setup):
  16196. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
  16197. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  16198. (WebCore::KRenderingPaintServerQt::setPenProperties):
  16199. * kcanvas/device/qt/KRenderingPaintServerQt.h:
  16200. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
  16201. (WebCore::KRenderingPaintServerSolidQt::setup):
  16202. * kcanvas/device/qt/RenderPathQt.cpp:
  16203. (WebCore::getPathStroke):
  16204. (WebCore::RenderPath::strokeBBox):
  16205. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  16206. (WebCore::RenderPath::strokeBBox):
  16207. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  16208. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  16209. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  16210. (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
  16211. (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
  16212. * kcanvas/device/quartz/QuartzSupport.h:
  16213. (WebCore::CGLineCapFromKC):
  16214. (WebCore::CGLineJoinFromKC):
  16215. * kcanvas/device/quartz/QuartzSupport.mm:
  16216. (WebCore::applyStrokeStyleToContext):
  16217. (WebCore::strokeBoundingBox):
  16218. * ksvg2/css/SVGCSSStyleSelector.cpp:
  16219. (WebCore::CSSStyleSelector::applySVGProperty):
  16220. * ksvg2/css/SVGRenderStyle.h:
  16221. (WebCore::SVGRenderStyle::InheritedFlags::):
  16222. * ksvg2/css/SVGRenderStyleDefs.h:
  16223. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  16224. (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
  16225. * ksvg2/misc/KCanvasRenderingStyle.h:
  16226. * ksvg2/svg/SVGFEImageElement.cpp:
  16227. 2006-10-24 Geoffrey Garen <ggaren@apple.com>
  16228. Reviewed by Anders.
  16229. Nixed a few more redundant loading functions in Frame. Did my best to update
  16230. the non-Mac builds.
  16231. * bridge/mac/FrameMac.h:
  16232. * bridge/mac/FrameMac.mm:
  16233. (WebCore::FrameMac::urlSelected): Changed always 'true' argument for userGesture
  16234. to actually check for a user gesture. New callers rely on this behavior,
  16235. and it seems like the previous behavior must have been a bug.
  16236. * page/Frame.cpp:
  16237. (WebCore::Frame::requestFrame):
  16238. (WebCore::Frame::frameLoader):
  16239. (WebCore::Frame::redirectionTimerFired):
  16240. * page/Frame.h:
  16241. * platform/gdk/FrameGdk.cpp:
  16242. * platform/gdk/FrameGdk.h:
  16243. * platform/gdk/TemporaryLinkStubs.cpp:
  16244. (FrameGdk::issueCopyCommand):
  16245. * platform/qt/FrameQt.cpp:
  16246. * platform/qt/FrameQt.h:
  16247. * platform/win/TemporaryLinkStubs.cpp:
  16248. (WebCore::FrameWin::shouldInterruptJavaScript):
  16249. (WebCore::FrameWin::issueCopyCommand):
  16250. 2006-10-24 Nikolas Zimmermann <zimmermann@kde.org>
  16251. Reviewed by Maciej.
  16252. Fix Qt/Linux build.
  16253. - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
  16254. - Fix CMakeLists.txt to include platform/network.
  16255. * CMakeLists.txt:
  16256. * platform/qt/BrowserExtensionQt.cpp: Removed.
  16257. * platform/qt/BrowserExtensionQt.h: Removed.
  16258. * platform/qt/FrameQt.cpp:
  16259. (WebCore::FrameQt::FrameQt):
  16260. (WebCore::FrameQt::createNewWindow):
  16261. (WebCore::FrameQt::goBackOrForward):
  16262. (WebCore::FrameQt::historyURL):
  16263. (WebCore::FrameQt::getHistoryLength):
  16264. * platform/qt/FrameQt.h:
  16265. * platform/qt/PageQt.cpp:
  16266. (WebCore::Page::canRunModal):
  16267. (WebCore::Page::canRunModalNow):
  16268. (WebCore::Page::runModal):
  16269. 2006-10-24 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  16270. Reviewed by Tim H.
  16271. Fix for http://bugs.webkit.org/show_bug.cgi?id=11314
  16272. Fix build when XSLT_SUPPORT is not defined
  16273. Fix unconditional use of XSLT support.
  16274. * dom/XMLTokenizer.cpp:
  16275. (WebCore::XMLTokenizer::end):
  16276. 2006-10-24 Simon Hausmann <hausmann@kde.org>
  16277. Reviewed by Darin.
  16278. * CMakeLists.txt: Added project name to kde4_automoc macro, as
  16279. required by the latest KDE4 cmake module.
  16280. 2006-10-24 Mitz Pettel <mitz@webkit.org>
  16281. Reviewed by Tim H.
  16282. - fix http://bugs.webkit.org/show_bug.cgi?id=11394
  16283. HTMLViewSourceDocuments are leaking
  16284. * html/HTMLViewSourceDocument.h: Changed RefPtr to plain pointer to avoid
  16285. ref cycle.
  16286. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  16287. Reviewed by Darin.
  16288. Removed one of Frame's redundant urlSelected methods.
  16289. * bridge/mac/FrameMac.h:
  16290. * bridge/mac/FrameMac.mm:
  16291. (WebCore::FrameMac::urlSelected):
  16292. since it's unused.
  16293. * html/HTMLAnchorElement.cpp:
  16294. (WebCore::HTMLAnchorElement::defaultEventHandler): Changed DeprecatedString
  16295. to String because the former is deprecated and its performance is irrelevant
  16296. here. Added call to completeURL because Frame no longer does it for us.
  16297. Having the call here also improves clarity about the element's behavior.
  16298. * ksvg2/svg/SVGAElement.cpp:
  16299. (WebCore::SVGAElement::defaultEventHandler): ditto. Also removed bizarre
  16300. irrelevent NULL checks on ownerDocument() because I couldn't help myself.
  16301. * page/Frame.cpp:
  16302. (WebCore::Frame::changeLocation):
  16303. (WebCore::Frame::urlSelected):
  16304. * page/Frame.h:
  16305. * platform/network/ResourceRequest.h: Removed explicit keyword on constructor
  16306. because we want to be able to use these constructors instead of helper functions
  16307. mimicking their behavior sprinkled across different classes.
  16308. (WebCore::ResourceRequest::ResourceRequest):
  16309. 2006-10-24 Brady Eidson <beidson@apple.com>
  16310. Reviewed by Maciej
  16311. Moved FrameLoader from WebCoreFrameBridge to Frame. Frame.h/cpp have generic accessors to the FrameLoader itself
  16312. and creation/deletion is currently managed in FrameMac.mm
  16313. Besides explicitly commented-upon methods, most of the touched code simply changes to get the FrameLoader from the
  16314. frame instead of the bridge.
  16315. The method [WebCoreFrameBridge frameLoader] remains but only for WebKit's use - No new WebCore code should make
  16316. use of it as its days are numbered!
  16317. * bridge/mac/FrameMac.mm:
  16318. (WebCore::FrameMac::FrameMac): Create the FrameLoader
  16319. (WebCore::FrameMac::~FrameMac): Nuke it
  16320. (WebCore::FrameMac::loadRequest):
  16321. * bridge/mac/WebCoreFrameBridge.h: No longer holds an m_frameLoader
  16322. * bridge/mac/WebCoreFrameBridge.mm:
  16323. (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]): No longer creates the FrameLoader
  16324. (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]): Ditto
  16325. (-[WebCoreFrameBridge clearFrame]): No longer tears down the FrameLoader
  16326. (-[WebCoreFrameBridge setFrameLoaderClient:]):
  16327. (-[WebCoreFrameBridge frameLoader]):
  16328. (-[WebCoreFrameBridge setTitle:]):
  16329. (-[WebCoreFrameBridge didFirstLayout]):
  16330. (-[WebCoreFrameBridge notifyIconChanged:]):
  16331. (-[WebCoreFrameBridge originalRequestURL]):
  16332. (-[WebCoreFrameBridge isLoadTypeReload]):
  16333. (-[WebCoreFrameBridge frameDetached]):
  16334. (-[WebCoreFrameBridge tokenizerProcessedData]):
  16335. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  16336. (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  16337. (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  16338. (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
  16339. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  16340. (-[WebCoreFrameBridge incomingReferrer]):
  16341. (-[WebCoreFrameBridge isReloading]):
  16342. (-[WebCoreFrameBridge handledOnloadEvents]):
  16343. (-[WebCoreFrameBridge mainResourceURLResponse]):
  16344. (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
  16345. * loader/mac/WebDocumentLoader.mm:
  16346. (WebCore::DocumentLoader::frameLoader):
  16347. * loader/mac/WebFrameLoader.mm:
  16348. (WebCore::FrameLoader::load):
  16349. (WebCore::FrameLoader::stopLoadingSubframes):
  16350. (WebCore::FrameLoader::defersCallbacksChanged):
  16351. (WebCore::FrameLoader::setState):
  16352. (WebCore::FrameLoader::closeOldDataSources):
  16353. (WebCore::FrameLoader::subframeIsLoading):
  16354. (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
  16355. (WebCore::FrameLoader::post):
  16356. (WebCore::FrameLoader::detachChildren):
  16357. (WebCore::FrameLoader::checkLoadComplete):
  16358. * loader/mac/WebLoader.mm:
  16359. (WebCore::WebResourceLoader::frameLoader):
  16360. * loader/mac/WebSubresourceLoader.mm:
  16361. (-[WebCoreSubresourceHandle initWithLoader:]):
  16362. * page/Frame.cpp:
  16363. (WebCore::Frame::frameLoader):
  16364. * page/Frame.h:
  16365. * page/FramePrivate.h:
  16366. (WebCore::FramePrivate::FramePrivate):
  16367. 2006-10-24 Darin Adler <darin@apple.com>
  16368. Reviewed by Maciej.
  16369. - fixed two crashes in layout tests I just introduced
  16370. * loader/mac/WebFrameLoader.mm:
  16371. (WebCore::FrameLoader::load): Add null check.
  16372. (WebCore::FrameLoader::setState): Ditto.
  16373. 2006-10-23 Darin Adler <darin@apple.com>
  16374. Reviewed by Geoff.
  16375. - converted WebDocumentLoader to C++
  16376. * WebCore.exp:
  16377. * bridge/mac/WebCoreFrameBridge.mm:
  16378. (-[WebCoreFrameBridge setTitle:]):
  16379. (-[WebCoreFrameBridge originalRequestURL]):
  16380. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  16381. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  16382. (-[WebCoreFrameBridge incomingReferrer]):
  16383. (-[WebCoreFrameBridge isReloading]):
  16384. (-[WebCoreFrameBridge mainResourceURLResponse]):
  16385. * loader/mac/WebDocumentLoader.h:
  16386. * loader/mac/WebDocumentLoader.mm:
  16387. (WebCore::DocumentLoader::DocumentLoader):
  16388. (WebCore::DocumentLoader::frameLoader):
  16389. (WebCore::DocumentLoader::~DocumentLoader):
  16390. (WebCore::DocumentLoader::setMainResourceData):
  16391. (WebCore::DocumentLoader::mainResourceData):
  16392. (WebCore::DocumentLoader::originalRequest):
  16393. (WebCore::DocumentLoader::originalRequestCopy):
  16394. (WebCore::DocumentLoader::request):
  16395. (WebCore::DocumentLoader::initialRequest):
  16396. (WebCore::DocumentLoader::actualRequest):
  16397. (WebCore::DocumentLoader::URL):
  16398. (WebCore::DocumentLoader::unreachableURL):
  16399. (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
  16400. (WebCore::DocumentLoader::setRequest):
  16401. (WebCore::DocumentLoader::setResponse):
  16402. (WebCore::DocumentLoader::isStopping):
  16403. (WebCore::DocumentLoader::bridge):
  16404. (WebCore::DocumentLoader::setMainDocumentError):
  16405. (WebCore::DocumentLoader::mainDocumentError):
  16406. (WebCore::DocumentLoader::clearErrors):
  16407. (WebCore::DocumentLoader::mainReceivedError):
  16408. (WebCore::DocumentLoader::stopLoading):
  16409. (WebCore::DocumentLoader::setupForReplace):
  16410. (WebCore::DocumentLoader::commitIfReady):
  16411. (WebCore::DocumentLoader::finishedLoading):
  16412. (WebCore::DocumentLoader::setCommitted):
  16413. (WebCore::DocumentLoader::isCommitted):
  16414. (WebCore::DocumentLoader::setLoading):
  16415. (WebCore::DocumentLoader::isLoading):
  16416. (WebCore::DocumentLoader::commitLoad):
  16417. (WebCore::DocumentLoader::doesProgressiveLoad):
  16418. (WebCore::DocumentLoader::receivedData):
  16419. (WebCore::DocumentLoader::setupForReplaceByMIMEType):
  16420. (WebCore::DocumentLoader::updateLoading):
  16421. (WebCore::DocumentLoader::response):
  16422. (WebCore::DocumentLoader::setFrame):
  16423. (WebCore::DocumentLoader::attachToFrame):
  16424. (WebCore::DocumentLoader::detachFromFrame):
  16425. (WebCore::DocumentLoader::prepareForLoadStart):
  16426. (WebCore::DocumentLoader::loadingStartedTime):
  16427. (WebCore::DocumentLoader::setIsClientRedirect):
  16428. (WebCore::DocumentLoader::isClientRedirect):
  16429. (WebCore::DocumentLoader::setPrimaryLoadComplete):
  16430. (WebCore::DocumentLoader::isLoadingInAPISense):
  16431. (WebCore::DocumentLoader::addResponse):
  16432. (WebCore::DocumentLoader::stopRecordingResponses):
  16433. (WebCore::DocumentLoader::title):
  16434. (WebCore::DocumentLoader::setLastCheckedRequest):
  16435. (WebCore::DocumentLoader::lastCheckedRequest):
  16436. (WebCore::DocumentLoader::triggeringAction):
  16437. (WebCore::DocumentLoader::setTriggeringAction):
  16438. (WebCore::DocumentLoader::responses):
  16439. (WebCore::DocumentLoader::setOverrideEncoding):
  16440. (WebCore::DocumentLoader::overrideEncoding):
  16441. (WebCore::DocumentLoader::setTitle):
  16442. (WebCore::DocumentLoader::URLForHistory):
  16443. * loader/mac/WebFrameLoader.h:
  16444. * loader/mac/WebFrameLoader.mm:
  16445. (WebCore::FrameLoader::setupForReplaceByMIMEType):
  16446. (WebCore::FrameLoader::finalSetupForReplace):
  16447. (WebCore::FrameLoader::safeLoad):
  16448. (WebCore::FrameLoader::load):
  16449. (WebCore::FrameLoader::startLoading):
  16450. (WebCore::FrameLoader::stopLoading):
  16451. (WebCore::FrameLoader::activeDocumentLoader):
  16452. (WebCore::FrameLoader::addPlugInStreamLoader):
  16453. (WebCore::FrameLoader::removePlugInStreamLoader):
  16454. (WebCore::FrameLoader::addSubresourceLoader):
  16455. (WebCore::FrameLoader::removeSubresourceLoader):
  16456. (WebCore::FrameLoader::setDocumentLoader):
  16457. (WebCore::FrameLoader::documentLoader):
  16458. (WebCore::FrameLoader::setPolicyDocumentLoader):
  16459. (WebCore::FrameLoader::provisionalDocumentLoader):
  16460. (WebCore::FrameLoader::setProvisionalDocumentLoader):
  16461. (WebCore::FrameLoader::setState):
  16462. (WebCore::FrameLoader::clearProvisionalLoad):
  16463. (WebCore::FrameLoader::commitProvisionalLoad):
  16464. (WebCore::FrameLoader::didReceiveResponse):
  16465. (WebCore::FrameLoader::originalRequest):
  16466. (WebCore::FrameLoader::receivedMainResourceError):
  16467. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  16468. (WebCore::FrameLoader::opened):
  16469. (WebCore::FrameLoader::initialRequest):
  16470. (WebCore::FrameLoader::receivedData):
  16471. (WebCore::FrameLoader::setRequest):
  16472. (WebCore::FrameLoader::isStopping):
  16473. (WebCore::FrameLoader::setResponse):
  16474. (WebCore::FrameLoader::mainReceivedError):
  16475. (WebCore::FrameLoader::finishedLoading):
  16476. (WebCore::FrameLoader::notifyIconChanged):
  16477. (WebCore::FrameLoader::URL):
  16478. (WebCore::FrameLoader::checkContentPolicy):
  16479. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  16480. (WebCore::FrameLoader::reloadAllowingStaleData):
  16481. (WebCore::FrameLoader::reload):
  16482. (WebCore::FrameLoader::finishedLoadingDocument):
  16483. (WebCore::FrameLoader::committedLoad):
  16484. (WebCore::FrameLoader::revertToProvisional):
  16485. (WebCore::FrameLoader::setMainDocumentError):
  16486. (WebCore::FrameLoader::mainReceivedCompleteError):
  16487. (WebCore::FrameLoader::subframeIsLoading):
  16488. (WebCore::FrameLoader::willChangeTitle):
  16489. (WebCore::FrameLoader::didChangeTitle):
  16490. (WebCore::FrameLoader::checkNavigationPolicy):
  16491. (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
  16492. (WebCore::FrameLoader::transitionToCommitted):
  16493. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  16494. (WebCore::FrameLoader::detachFromParent):
  16495. * loader/mac/WebFrameLoaderClient.h:
  16496. 2006-10-23 Brady Eidson <beidson@apple.com>
  16497. Lovingly reviewed by Maciej
  16498. Moved loadURL and postURL logic out of WebCoreFrameBridge to FrameMac::loadRequest
  16499. This is a big step towards moving FrameLoader out of the Bridge into Frame/Mac itself
  16500. * bridge/mac/BrowserExtensionMac.mm:
  16501. (WebCore::BrowserExtensionMac::createNewWindow): Use FrameMac::loadRequest
  16502. * bridge/mac/FrameMac.mm:
  16503. (WebCore::FrameMac::loadRequest): loadURL and postURL logic moved from WebCoreFrameBridge to here
  16504. * bridge/mac/WebCoreFrameBridge.h: Nuked loadURL and postURL
  16505. * bridge/mac/WebCoreFrameBridge.mm: Ditto
  16506. * loader/mac/WebFrameLoader.mm:
  16507. (-[WebFrameLoader safeLoadURL:]): Use FrameMac::loadRequest
  16508. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  16509. RS by Maciej.
  16510. Inside Frame, moved the plethora of load() and stopLoading() functions next
  16511. to each other to facilitate merging and crying.
  16512. * bridge/mac/FrameMac.h:
  16513. * bridge/mac/FrameMac.mm:
  16514. (WebCore::FrameMac::loadRequest):
  16515. (WebCore::FrameMac::submitForm):
  16516. (WebCore::FrameMac::openURL):
  16517. (WebCore::FrameMac::openURLRequest):
  16518. (WebCore::FrameMac::urlSelected):
  16519. (WebCore::FrameMac::openURLFromPageCache):
  16520. (WebCore::FrameMac::createFrame):
  16521. * page/Frame.cpp:
  16522. (WebCore::Frame::openURL):
  16523. (WebCore::Frame::changeLocation):
  16524. (WebCore::Frame::urlSelected):
  16525. (WebCore::Frame::requestFrame):
  16526. (WebCore::Frame::loadSubframe):
  16527. (WebCore::Frame::submitFormAgain):
  16528. (WebCore::Frame::submitForm):
  16529. (WebCore::Frame::stop):
  16530. (WebCore::Frame::closeURL):
  16531. (WebCore::Frame::cancelRedirection):
  16532. (WebCore::Frame::iconURL):
  16533. (WebCore::Frame::didOpenURL):
  16534. (WebCore::Frame::didExplicitOpen):
  16535. * page/Frame.h:
  16536. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  16537. RS by Maciej.
  16538. Moved our plethora of load() and stopLoading() functions next to each other
  16539. to facilitate merging and laughter.
  16540. * loader/mac/WebFrameLoader.h:
  16541. * loader/mac/WebFrameLoader.mm:
  16542. (WebCore::cancelAll):
  16543. (WebCore::FrameLoader::prepareForLoadStart):
  16544. (WebCore::FrameLoader::setupForReplace):
  16545. (WebCore::FrameLoader::setupForReplaceByMIMEType):
  16546. (WebCore::FrameLoader::finalSetupForReplace):
  16547. (WebCore::FrameLoader::safeLoad):
  16548. (WebCore::FrameLoader::load):
  16549. (WebCore::FrameLoader::startLoadingMainResource):
  16550. (WebCore::FrameLoader::startLoading):
  16551. (WebCore::FrameLoader::stopLoadingPlugIns):
  16552. (WebCore::FrameLoader::stopLoadingSubresources):
  16553. (WebCore::FrameLoader::stopLoading):
  16554. (WebCore::FrameLoader::stopLoadingSubframes):
  16555. (WebCore::FrameLoader::cancelMainResourceLoad):
  16556. (WebCore::FrameLoader::cancelPendingArchiveLoad):
  16557. (WebCore::FrameLoader::removeSubresourceLoader):
  16558. (WebCore::FrameLoader::mainResourceData):
  16559. (WebCore::FrameLoader::releaseMainResourceLoader):
  16560. 2006-10-23 Darin Adler <darin@apple.com>
  16561. Reviewed by Maciej.
  16562. - converted WebFrameLoader to C++
  16563. * WebCore.exp: Added many new entry points for WebKit.
  16564. * WebCore.xcodeproj/project.pbxproj: Made more files private (SPI).
  16565. * bridge/mac/WebCoreFrameBridge.h:
  16566. * bridge/mac/WebCoreFrameBridge.mm:
  16567. (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
  16568. (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
  16569. (-[WebCoreFrameBridge dealloc]):
  16570. (-[WebCoreFrameBridge close]):
  16571. (-[WebCoreFrameBridge clearFrame]):
  16572. (-[WebCoreFrameBridge setFrameLoaderClient:]):
  16573. (-[WebCoreFrameBridge frameLoader]):
  16574. (-[WebCoreFrameBridge setTitle:]):
  16575. (-[WebCoreFrameBridge didFirstLayout]):
  16576. (-[WebCoreFrameBridge notifyIconChanged:]):
  16577. (-[WebCoreFrameBridge originalRequestURL]):
  16578. (-[WebCoreFrameBridge isLoadTypeReload]):
  16579. (-[WebCoreFrameBridge frameDetached]):
  16580. (-[WebCoreFrameBridge tokenizerProcessedData]):
  16581. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  16582. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  16583. (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  16584. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  16585. (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  16586. (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
  16587. (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  16588. (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  16589. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  16590. (-[WebCoreFrameBridge incomingReferrer]):
  16591. (-[WebCoreFrameBridge isReloading]):
  16592. (-[WebCoreFrameBridge handledOnloadEvents]):
  16593. (-[WebCoreFrameBridge mainResourceURLResponse]):
  16594. (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
  16595. * loader/mac/WebDocumentLoader.h:
  16596. * loader/mac/WebDocumentLoader.mm:
  16597. (-[WebDocumentLoader frameLoader]):
  16598. (-[WebDocumentLoader dealloc]):
  16599. (-[WebDocumentLoader mainResourceData]):
  16600. (-[WebDocumentLoader setRequest:]):
  16601. (-[WebDocumentLoader bridge]):
  16602. (-[WebDocumentLoader setMainDocumentError:]):
  16603. (-[WebDocumentLoader mainReceivedError:complete:]):
  16604. (-[WebDocumentLoader stopLoading]):
  16605. (-[WebDocumentLoader setupForReplace]):
  16606. (-[WebDocumentLoader commitIfReady]):
  16607. (-[WebDocumentLoader finishedLoading]):
  16608. (-[WebDocumentLoader commitLoadWithData:]):
  16609. (-[WebDocumentLoader doesProgressiveLoadWithMIMEType:]):
  16610. (-[WebDocumentLoader setupForReplaceByMIMEType:]):
  16611. (-[WebDocumentLoader updateLoading]):
  16612. (-[WebDocumentLoader setFrame:]):
  16613. (-[WebDocumentLoader attachToFrame]):
  16614. (-[WebDocumentLoader detachFromFrame]):
  16615. (-[WebDocumentLoader prepareForLoadStart]):
  16616. (-[WebDocumentLoader setPrimaryLoadComplete:]):
  16617. (-[WebDocumentLoader isLoadingInAPISense]):
  16618. (-[WebDocumentLoader setTitle:]):
  16619. * loader/mac/WebFrameLoader.h:
  16620. (WebCore::FrameLoader::frame):
  16621. * loader/mac/WebFrameLoader.mm:
  16622. (WebCore::FrameLoader::FrameLoader):
  16623. (WebCore::FrameLoader::~FrameLoader):
  16624. (WebCore::FrameLoader::activeDocumentLoader):
  16625. (WebCore::FrameLoader::addPlugInStreamLoader):
  16626. (WebCore::FrameLoader::removePlugInStreamLoader):
  16627. (WebCore::FrameLoader::defersCallbacksChanged):
  16628. (WebCore::FrameLoader::defersCallbacks):
  16629. (WebCore::setAllDefersCallbacks):
  16630. (WebCore::FrameLoader::setDefersCallbacks):
  16631. (WebCore::cancelAll):
  16632. (WebCore::FrameLoader::stopLoadingPlugIns):
  16633. (WebCore::FrameLoader::isLoadingMainResource):
  16634. (WebCore::FrameLoader::isLoadingSubresources):
  16635. (WebCore::FrameLoader::isLoadingPlugIns):
  16636. (WebCore::FrameLoader::isLoading):
  16637. (WebCore::FrameLoader::stopLoadingSubresources):
  16638. (WebCore::FrameLoader::addSubresourceLoader):
  16639. (WebCore::FrameLoader::removeSubresourceLoader):
  16640. (WebCore::FrameLoader::mainResourceData):
  16641. (WebCore::FrameLoader::releaseMainResourceLoader):
  16642. (WebCore::FrameLoader::cancelMainResourceLoad):
  16643. (WebCore::FrameLoader::startLoadingMainResource):
  16644. (WebCore::FrameLoader::stopLoading):
  16645. (WebCore::FrameLoader::setDocumentLoader):
  16646. (WebCore::FrameLoader::documentLoader):
  16647. (WebCore::FrameLoader::setPolicyDocumentLoader):
  16648. (WebCore::FrameLoader::provisionalDocumentLoader):
  16649. (WebCore::FrameLoader::setProvisionalDocumentLoader):
  16650. (WebCore::FrameLoader::state):
  16651. (WebCore::FrameLoader::timeOfLastCompletedLoad):
  16652. (WebCore::FrameLoader::provisionalLoadStarted):
  16653. (WebCore::FrameLoader::setState):
  16654. (WebCore::FrameLoader::clearProvisionalLoad):
  16655. (WebCore::FrameLoader::markLoadComplete):
  16656. (WebCore::FrameLoader::commitProvisionalLoad):
  16657. (WebCore::FrameLoader::stopLoadingSubframes):
  16658. (WebCore::FrameLoader::startLoading):
  16659. (WebCore::FrameLoader::setupForReplace):
  16660. (WebCore::FrameLoader::identifierForInitialRequest):
  16661. (WebCore::FrameLoader::willSendRequest):
  16662. (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
  16663. (WebCore::FrameLoader::didCancelAuthenticationChallenge):
  16664. (WebCore::FrameLoader::didReceiveResponse):
  16665. (WebCore::FrameLoader::didReceiveData):
  16666. (WebCore::FrameLoader::didFinishLoad):
  16667. (WebCore::FrameLoader::didFailToLoad):
  16668. (WebCore::FrameLoader::privateBrowsingEnabled):
  16669. (WebCore::FrameLoader::originalRequest):
  16670. (WebCore::FrameLoader::receivedMainResourceError):
  16671. (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
  16672. (WebCore::FrameLoader::clientRedirected):
  16673. (WebCore::FrameLoader::shouldReload):
  16674. (WebCore::FrameLoader::load):
  16675. (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
  16676. (WebCore::FrameLoader::closeOldDataSources):
  16677. (WebCore::FrameLoader::opened):
  16678. (WebCore::FrameLoader::initialRequest):
  16679. (WebCore::FrameLoader::receivedData):
  16680. (WebCore::FrameLoader::setRequest):
  16681. (WebCore::FrameLoader::download):
  16682. (WebCore::FrameLoader::bridge):
  16683. (WebCore::FrameLoader::handleFallbackContent):
  16684. (WebCore::FrameLoader::isStopping):
  16685. (WebCore::FrameLoader::setupForReplaceByMIMEType):
  16686. (WebCore::FrameLoader::setResponse):
  16687. (WebCore::FrameLoader::mainReceivedError):
  16688. (WebCore::FrameLoader::finishedLoading):
  16689. (WebCore::FrameLoader::notifyIconChanged):
  16690. (WebCore::FrameLoader::URL):
  16691. (WebCore::FrameLoader::cancelledError):
  16692. (WebCore::FrameLoader::fileDoesNotExistError):
  16693. (WebCore::FrameLoader::willUseArchive):
  16694. (WebCore::FrameLoader::isArchiveLoadPending):
  16695. (WebCore::FrameLoader::cancelPendingArchiveLoad):
  16696. (WebCore::FrameLoader::handleUnimplementablePolicy):
  16697. (WebCore::FrameLoader::cannotShowMIMEType):
  16698. (WebCore::FrameLoader::interruptionForPolicyChangeError):
  16699. (WebCore::FrameLoader::isHostedByObjectElement):
  16700. (WebCore::FrameLoader::isLoadingMainFrame):
  16701. (WebCore::FrameLoader::canShowMIMEType):
  16702. (WebCore::FrameLoader::representationExistsForURLScheme):
  16703. (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
  16704. (WebCore::FrameLoader::checkNavigationPolicy):
  16705. (WebCore::FrameLoader::checkContentPolicy):
  16706. (WebCore::FrameLoader::cancelContentPolicyCheck):
  16707. (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
  16708. (WebCore::FrameLoader::reloadAllowingStaleData):
  16709. (WebCore::FrameLoader::reload):
  16710. (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
  16711. (WebCore::FrameLoader::finishedLoadingDocument):
  16712. (WebCore::FrameLoader::committedLoad):
  16713. (WebCore::FrameLoader::isReplacing):
  16714. (WebCore::FrameLoader::setReplacing):
  16715. (WebCore::FrameLoader::revertToProvisional):
  16716. (WebCore::FrameLoader::setMainDocumentError):
  16717. (WebCore::FrameLoader::mainReceivedCompleteError):
  16718. (WebCore::FrameLoader::finalSetupForReplace):
  16719. (WebCore::FrameLoader::prepareForLoadStart):
  16720. (WebCore::FrameLoader::subframeIsLoading):
  16721. (WebCore::FrameLoader::willChangeTitle):
  16722. (WebCore::FrameLoader::didChangeTitle):
  16723. (WebCore::FrameLoader::loadType):
  16724. (WebCore::FrameLoader::invalidatePendingPolicyDecision):
  16725. (WebCore::FrameLoader::checkNewWindowPolicy):
  16726. (WebCore::FrameLoader::continueAfterNewWindowPolicy):
  16727. (WebCore::FrameLoader::continueAfterNavigationPolicy):
  16728. (WebCore::FrameLoader::continueAfterWillSubmitForm):
  16729. (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
  16730. (WebCore::FrameLoader::didFirstLayout):
  16731. (WebCore::FrameLoader::frameLoadCompleted):
  16732. (WebCore::FrameLoader::firstLayoutDone):
  16733. (WebCore::FrameLoader::isQuickRedirectComing):
  16734. (WebCore::FrameLoader::transitionToCommitted):
  16735. (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
  16736. (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
  16737. (WebCore::FrameLoader::sendRemainingDelegateMessages):
  16738. (WebCore::FrameLoader::requestFromDelegate):
  16739. (WebCore::FrameLoader::post):
  16740. (WebCore::FrameLoader::detachChildren):
  16741. (WebCore::FrameLoader::detachFromParent):
  16742. (WebCore::FrameLoader::addExtraFieldsToRequest):
  16743. (WebCore::FrameLoader::safeLoad):
  16744. (WebCore::FrameLoader::actionInformation):
  16745. (WebCore::FrameLoader::checkLoadComplete):
  16746. (WebCore::FrameLoader::setFrameLoaderClient):
  16747. (WebCore::FrameLoader::client):
  16748. (WebCore::FrameLoader::asDelegate):
  16749. (-[WebCoreFrameLoaderAsDelegate initWithLoader:]):
  16750. (-[WebCoreFrameLoaderAsDelegate detachFromLoader]):
  16751. (-[WebCoreFrameLoaderAsDelegate continueFragmentScrollAfterNavigationPolicy:formState:]):
  16752. (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
  16753. (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
  16754. (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
  16755. (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNavigationPolicy:formState:]):
  16756. (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  16757. * loader/mac/WebLoader.h:
  16758. (WebCore::WebResourceLoader::identifier):
  16759. (WebCore::WebResourceLoader::reachedTerminalState):
  16760. (WebCore::WebResourceLoader::cancelled):
  16761. * loader/mac/WebLoader.mm:
  16762. (WebCore::WebResourceLoader::WebResourceLoader):
  16763. (WebCore::WebResourceLoader::releaseResources):
  16764. (WebCore::WebResourceLoader::load):
  16765. (WebCore::WebResourceLoader::frameLoader):
  16766. (WebCore::WebResourceLoader::willSendRequest):
  16767. (WebCore::WebResourceLoader::didReceiveAuthenticationChallenge):
  16768. (WebCore::WebResourceLoader::didCancelAuthenticationChallenge):
  16769. (WebCore::WebResourceLoader::didReceiveResponse):
  16770. (WebCore::WebResourceLoader::didReceiveData):
  16771. (WebCore::WebResourceLoader::didFinishLoading):
  16772. (WebCore::WebResourceLoader::didFinishLoadingOnePart):
  16773. (WebCore::WebResourceLoader::didFail):
  16774. (WebCore::WebResourceLoader::willCacheResponse):
  16775. (WebCore::WebResourceLoader::didCancel):
  16776. (WebCore::WebResourceLoader::cancel):
  16777. (WebCore::WebResourceLoader::cancelledError):
  16778. (WebCore::WebResourceLoader::delegate):
  16779. * loader/mac/WebMainResourceLoader.h:
  16780. * loader/mac/WebMainResourceLoader.mm:
  16781. (WebCore::MainResourceLoader::MainResourceLoader):
  16782. (WebCore::MainResourceLoader::create):
  16783. (WebCore::MainResourceLoader::receivedError):
  16784. (WebCore::MainResourceLoader::didCancel):
  16785. (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
  16786. (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
  16787. (WebCore::MainResourceLoader::addData):
  16788. (WebCore::MainResourceLoader::willSendRequest):
  16789. (WebCore::MainResourceLoader::continueAfterContentPolicy):
  16790. (WebCore::MainResourceLoader::didReceiveResponse):
  16791. (WebCore::MainResourceLoader::didReceiveData):
  16792. (WebCore::MainResourceLoader::didFinishLoading):
  16793. (WebCore::MainResourceLoader::didFail):
  16794. (WebCore::MainResourceLoader::loadNow):
  16795. (WebCore::MainResourceLoader::policyDelegate):
  16796. * loader/mac/WebNetscapePlugInStreamLoader.h:
  16797. * loader/mac/WebNetscapePlugInStreamLoader.mm:
  16798. (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
  16799. (WebCore::NetscapePlugInStreamLoader::create):
  16800. (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
  16801. (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
  16802. (WebCore::NetscapePlugInStreamLoader::didFail):
  16803. (WebCore::NetscapePlugInStreamLoader::didCancel):
  16804. * loader/mac/WebSubresourceLoader.h:
  16805. * loader/mac/WebSubresourceLoader.mm:
  16806. (-[WebCoreSubresourceHandle initWithLoader:]):
  16807. 2006-10-23 Geoffrey Garen <ggaren@apple.com>
  16808. Reviewed by Bradee.
  16809. Shrunk BrowserExtension in preparation for its imminent death, moving page-
  16810. level operations to Page and frame-level operations to Frame.
  16811. Removed bizarre Mac(this) syntax inside virtual FrameMac member functions,
  16812. because 'this' is guaranteed by the compiler to be a FrameMac*.
  16813. * bindings/js/kjs_window.cpp: Added NULL checks for m_frame in places
  16814. where it can be NULL.
  16815. * bindings/js/kjs_window.cpp:
  16816. (KJS::canShowModalDialog):
  16817. (KJS::canShowModalDialogNow):
  16818. (KJS::showModalDialog):
  16819. (KJS::History::getValueProperty):
  16820. (KJS::HistoryFunc::callAsFunction):
  16821. * bridge/BrowserExtension.h:
  16822. (WebCore::BrowserExtension::~BrowserExtension):
  16823. * bridge/mac/BrowserExtensionMac.h:
  16824. * bridge/mac/BrowserExtensionMac.mm:
  16825. (WebCore::BrowserExtensionMac::createNewWindow):
  16826. * bridge/mac/FrameMac.h:
  16827. * bridge/mac/FrameMac.mm:
  16828. (WebCore::FrameMac::frameDetached):
  16829. (WebCore::FrameMac::unfocusWindow):
  16830. (WebCore::FrameMac::bridgeForWidget):
  16831. (WebCore::FrameMac::documentViewForNode):
  16832. (WebCore::FrameMac::passSubframeEventToSubframe):
  16833. (WebCore::Frame::setNeedsReapplyStyles):
  16834. (WebCore::FrameMac::customHighlightLineRect):
  16835. (WebCore::FrameMac::paintCustomHighlight):
  16836. (WebCore::FrameMac::getHistoryLength):
  16837. (WebCore::FrameMac::goBackOrForward):
  16838. (WebCore::FrameMac::historyURL):
  16839. * bridge/mac/PageMac.mm:
  16840. (WebCore::Page::canRunModal):
  16841. (WebCore::Page::canRunModalNow):
  16842. (WebCore::Page::runModal):
  16843. * bridge/mac/WebCoreFrameBridge.h:
  16844. * bridge/mac/WebCorePageBridge.h:
  16845. * bridge/win/BrowserExtensionWin.h:
  16846. * page/Frame.cpp:
  16847. (WebCore::Frame::scheduleHistoryNavigation):
  16848. (WebCore::Frame::redirectionTimerFired):
  16849. * page/Frame.h:
  16850. * page/Page.h:
  16851. 2006-10-23 Justin Garcia <justin.garcia@apple.com>
  16852. Reviewed by mjs
  16853. <http://bugs.webkit.org/show_bug.cgi?id=11334>
  16854. Writely Editor: Placing caret in a list "highlights" both Numbered List and Bulleted List toolbar icons
  16855. * WebCore.xcodeproj/project.pbxproj:
  16856. * editing/Editor.cpp:
  16857. (WebCore::Editor::selectionUnorderedListState): Added.
  16858. (WebCore::Editor::selectionOrderedListState): Added.
  16859. * editing/Editor.h:
  16860. * editing/JSEditor.cpp:
  16861. * page/Frame.cpp:
  16862. * page/Frame.h:
  16863. 2006-10-23 John Sullivan <sullivan@apple.com>
  16864. Reviewed by Tim H
  16865. * WebCore.xcodeproj/project.pbxproj:
  16866. Include WebCorePrefix.h in Xcode project for convenience and for consistency with WebKit
  16867. 2006-10-23 Sam Weinig <sam.weinig@gmail.com>
  16868. Reviewed by Tim H.
  16869. Patch for http://bugs.webkit.org/show_bug.cgi?id=11291
  16870. PNG as cursor image format instead of TIFF
  16871. Original patch by Lars Naesbye Christensen (lars@naesbye.dk)
  16872. - Convert cursor images from TIFF to PNG.
  16873. * Resources/eastResizeCursor.png: Added.
  16874. * Resources/eastResizeCursor.tiff: Removed.
  16875. * Resources/eastWestResizeCursor.png: Added.
  16876. * Resources/eastWestResizeCursor.tiff: Removed.
  16877. * Resources/helpCursor.png: Added.
  16878. * Resources/helpCursor.tiff: Removed.
  16879. * Resources/linkCursor.png: Added.
  16880. * Resources/linkCursor.tiff: Removed.
  16881. * Resources/moveCursor.png: Added.
  16882. * Resources/moveCursor.tiff: Removed.
  16883. * Resources/northEastResizeCursor.png: Added.
  16884. * Resources/northEastResizeCursor.tiff: Removed.
  16885. * Resources/northEastSouthWestResizeCursor.png: Added.
  16886. * Resources/northEastSouthWestResizeCursor.tiff: Removed.
  16887. * Resources/northResizeCursor.png: Added.
  16888. * Resources/northResizeCursor.tiff: Removed.
  16889. * Resources/northSouthResizeCursor.png: Added.
  16890. * Resources/northSouthResizeCursor.tiff: Removed.
  16891. * Resources/northWestResizeCursor.png: Added.
  16892. * Resources/northWestResizeCursor.tiff: Removed.
  16893. * Resources/northWestSouthEastResizeCursor.png: Added.
  16894. * Resources/northWestSouthEastResizeCursor.tiff: Removed.
  16895. * Resources/southEastResizeCursor.png: Added.
  16896. * Resources/southEastResizeCursor.tiff: Removed.
  16897. * Resources/southResizeCursor.png: Added.
  16898. * Resources/southResizeCursor.tiff: Removed.
  16899. * Resources/southWestResizeCursor.png: Added.
  16900. * Resources/southWestResizeCursor.tiff: Removed.
  16901. * Resources/waitCursor.png: Added.
  16902. * Resources/waitCursor.tiff: Removed.
  16903. * Resources/westResizeCursor.png: Added.
  16904. * Resources/westResizeCursor.tiff: Removed.
  16905. * WebCore.xcodeproj/project.pbxproj:
  16906. * platform/mac/CursorMac.mm:
  16907. (WebCore::leakNamedCursor):
  16908. 2006-10-23 Maciej Stachowiak <mjs@apple.com>
  16909. - fixed build from last change.
  16910. * bridge/mac/FrameMac.h:
  16911. * bridge/mac/FrameMac.mm:
  16912. (WebCore::FrameMac::loadRequest):
  16913. (WebCore::FrameMac::openURL):
  16914. 2006-10-23 Adam Roben <aroben@apple.com>
  16915. Reviewed by Adele.
  16916. Move border-radius rule for <select>s into RenderThemeMac, as this is
  16917. really a platform-specific look.
  16918. * css/html4.css:
  16919. * rendering/RenderThemeMac.mm:
  16920. (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
  16921. 2006-10-23 Maciej Stachowiak <mjs@apple.com>
  16922. Reviewed by Brady.
  16923. - moved things around so loadURL:... is only called from one place
  16924. * bridge/mac/FrameMac.h:
  16925. * bridge/mac/FrameMac.mm:
  16926. (WebCore::FrameMac::frameDetached):
  16927. (WebCore::FrameMac::loadRequest):
  16928. (WebCore::FrameMac::submitForm):
  16929. (WebCore::FrameMac::openURL):
  16930. (WebCore::FrameMac::openURLRequest):
  16931. (WebCore::FrameMac::urlSelected):
  16932. 2006-10-23 Justin Garcia <justin.garcia@apple.com>
  16933. Reviewed by john
  16934. <http://bugs.webkit.org/show_bug.cgi?id=11333>
  16935. Writely Editor: After inserting a HR element, pressing return key creates a copy of this HR element in the document
  16936. Added special cases in InsertLineBreakCommand for inserting before
  16937. and after tables and horizontal rules. Also, perform InsertLineBreak
  16938. instead of InsertParagraphSeparator at these positions.
  16939. * editing/InsertLineBreakCommand.cpp:
  16940. (WebCore::InsertLineBreakCommand::doApply): Use the canonical form
  16941. of the caret position when we check for the new special cases because
  16942. we know that we canonicalize VisiblePositions to those positions.
  16943. Added code to handle inserting before/after tables and horizontal rules.
  16944. Fixed a bug when inserting at the end of a block (it checked for a collapse
  16945. of the inserted br by looking for the absence of a br, but the line break
  16946. might have been a '\n' in white-space:pre text). Removed unused LOGs.
  16947. * editing/InsertParagraphSeparatorCommand.cpp:
  16948. (WebCore::InsertParagraphSeparatorCommand::doApply): Perform an
  16949. InsertLineBreakCommand when before/after a table or a horizontal rule
  16950. so that we don't have to maintain two pieces of special case code.
  16951. Migrated to enclosingBlock.
  16952. * editing/htmlediting.cpp: Added a FIXME.
  16953. * editing/visible_units.cpp:
  16954. (WebCore::startOfParagraph): Added a workaround for 8622.
  16955. 2006-10-23 Adam Roben <aroben@apple.com>
  16956. Reviewed by Adele.
  16957. Make popups a little more flexible.
  16958. * platform/PopupMenu.h:
  16959. 2006-10-23 Sam Weinig <sam.weinig@gmail.com>
  16960. Reviewed by Tim H.
  16961. Cleanup CodeGeneratorJS.pm
  16962. * bindings/scripts/CodeGeneratorJS.pm:
  16963. 2006-10-23 Adam Roben <aroben@apple.com>
  16964. Rubberstamped by Brady.
  16965. * loader/icon/IconLoader.h: Changed angle-brackets to quotes for
  16966. #include of ResourceLoader.h, since it's a WebCore header.
  16967. 2006-10-23 Darin Adler <darin@apple.com>
  16968. - fixed mistake that was preventing any loading from happening
  16969. * platform/network/ResourceLoaderClient.h: (WebCore::ResourceLoaderClient::didReceiveData):
  16970. Changed parameter back to int. Perhaps we want to move to "long long" consistently, but
  16971. I'll leave that up to Maciej.
  16972. 2006-10-23 Maciej Stachowiak <mjs@apple.com>
  16973. Reviewed by Anders.
  16974. - start converting ResourceLoaderClient to new API
  16975. Did the bits I could do without introducing new types:
  16976. - renamed receivedData to didReceiveData
  16977. - renamed version of receivedAllData that doesn't pass any data to didFinishLoading
  16978. * bridge/mac/WebCoreResourceLoaderImp.mm:
  16979. (-[WebCoreResourceLoaderImp addData:]):
  16980. (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
  16981. * loader/icon/IconLoader.cpp:
  16982. (IconLoader::didReceiveData):
  16983. (IconLoader::didFinishLoading):
  16984. * loader/icon/IconLoader.h:
  16985. * loader/loader.cpp:
  16986. (WebCore::Loader::didReceiveData):
  16987. * loader/loader.h:
  16988. * platform/gdk/FrameGdk.cpp:
  16989. (WebCore::FrameGdkClientDefault::didReceiveData):
  16990. * platform/gdk/FrameGdk.h:
  16991. * platform/network/ResourceLoaderClient.h:
  16992. (WebCore::ResourceLoaderClient::didReceiveData):
  16993. (WebCore::ResourceLoaderClient::didFinishLoading):
  16994. (WebCore::ResourceLoaderClient::receivedResponse):
  16995. * platform/network/cf/ResourceLoaderCFNet.cpp:
  16996. (WebCore::didReceiveData):
  16997. (WebCore::didFinishLoading):
  16998. (WebCore::didFail):
  16999. (WebCore::ResourceLoader::cancel):
  17000. * platform/network/gdk/ResourceLoaderManager.cpp:
  17001. (WebCore::writeCallback):
  17002. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  17003. (WebCore::ResourceLoaderManager::remove):
  17004. * platform/network/qt/ResourceLoaderManager.cpp:
  17005. (WebCore::ResourceLoaderManager::slotData):
  17006. (WebCore::ResourceLoaderManager::remove):
  17007. * platform/network/win/ResourceLoaderWin.cpp:
  17008. (WebCore::ResourceLoader::onRequestComplete):
  17009. (WebCore::ResourceLoader::fileLoadTimer):
  17010. (WebCore::ResourceLoader::cancel):
  17011. * platform/qt/FrameQtClient.cpp:
  17012. (WebCore::FrameQtClientDefault::didReceiveData):
  17013. * platform/qt/FrameQtClient.h:
  17014. * xml/xmlhttprequest.cpp:
  17015. (WebCore::XMLHttpRequest::processSyncLoadResults):
  17016. (WebCore::XMLHttpRequest::didFinishLoading):
  17017. (WebCore::XMLHttpRequest::didReceiveData):
  17018. * xml/xmlhttprequest.h:
  17019. 2006-10-23 Maciej Stachowiak <mjs@apple.com>
  17020. Rubber stamped by Anders.
  17021. - marked files executable
  17022. * ksvg2/scripts/csscssmakeprops:
  17023. * ksvg2/scripts/csscssmakevalues:
  17024. 2006-10-22 Maciej Stachowiak <mjs@apple.com>
  17025. Reviewed by Anders.
  17026. - moved ResourceLoader and related files to platform/network
  17027. in preparation for building out this API.
  17028. I tried to update all the build systems but I'm not sure they are
  17029. all fixed properly
  17030. * page/ResourceRequest.h: Moved to platform/network.
  17031. * platform/ResourceLoader.cpp: Moved to platform/network.
  17032. * platform/ResourceLoader.h: Moved to platform/network.
  17033. * platform/ResourceLoaderClient.h: Moved to platform/network.
  17034. * platform/ResourceLoaderInternal.h: Moved to platform/network.
  17035. * platform/cf/ResourceLoaderCFNet.cpp: Moved to platform/network/cf.
  17036. * platform/gdk/ResourceLoaderCurl.cpp: Moved to platform/network/gdk.
  17037. * platform/gdk/ResourceLoaderManager.cpp: Moved to platform/network/gdk.
  17038. * platform/gdk/ResourceLoaderManager.h: Moved to platform/network/gdk.
  17039. * platform/mac/ResourceLoaderMac.mm: Moved to platform/network/mac.
  17040. * platform/qt/ResourceLoaderManager.cpp: Moved to platform/network/qt.
  17041. * platform/qt/ResourceLoaderManager.h: Moved to platform/network/qt.
  17042. * platform/qt/ResourceLoaderQt.cpp: Moved to platform/network/qt.
  17043. * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win.
  17044. * platform/win/ResourceLoaderWin.h: Moved to platform/network/win.
  17045. * webcore-base.bkl: Updated for new paths.
  17046. * CMakeLists.txt: ditto
  17047. * Projects/gdk/webcore-gdk.bkl: ditto
  17048. * WebCore.xcodeproj/project.pbxproj: ditto
  17049. * WebCoreSources.bkl: ditto
  17050. 2006-10-22 Sam Weinig <sam.weinig@gmail.com>
  17051. Reviewed by Tim H.
  17052. - Add DOMHTMLFormElementPrivate.h to the project.
  17053. * WebCore.xcodeproj/project.pbxproj:
  17054. * bindings/objc/DOMPrivate.h:
  17055. 2006-10-22 Darin Adler <darin@apple.com>
  17056. - another try at fixing Qt
  17057. * CMakeLists.txt: Added DeleteButton.cpp and DeleteButtonController.cpp.
  17058. - and fix a couple warnings while I'm at it
  17059. * platform/image-decoders/ImageDecoder.h: (WebCore::RGBA32Buffer::setRGBA):
  17060. Don't do unsigned *= float.
  17061. * rendering/break_lines.cpp: (WebCore::nextBreakablePosition): Move unused variable
  17062. inside #if so it's consistent.
  17063. 2006-10-21 Darin Adler <darin@apple.com>
  17064. - fix the Qt build
  17065. * platform/qt/EditorClientQt.cpp:
  17066. (WebCore::EditorClientQt::shouldShowDeleteInterface):
  17067. * platform/qt/EditorClientQt.h:
  17068. * platform/qt/FrameQt.cpp:
  17069. 2006-10-21 Darin Adler <darin@apple.com>
  17070. Reviewed by Adele.
  17071. - convert WebLoader and its 3 subclasses to C++ (this time with a leak fixed)
  17072. Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
  17073. there's currently another class with that name).
  17074. Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
  17075. Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
  17076. Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
  17077. Converted the classes to C++ and added Objective-C delegates to forward from
  17078. API that still requires Objective-C.
  17079. Did not yet rename the source files.
  17080. * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
  17081. classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
  17082. classes.
  17083. * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
  17084. * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
  17085. * loader/mac/WebLoader.h:
  17086. * loader/mac/WebLoader.mm:
  17087. * loader/mac/WebMainResourceLoader.h:
  17088. * loader/mac/WebMainResourceLoader.mm:
  17089. * loader/mac/WebNetscapePlugInStreamLoader.h:
  17090. * loader/mac/WebNetscapePlugInStreamLoader.mm:
  17091. * loader/mac/WebSubresourceLoader.h:
  17092. * loader/mac/WebSubresourceLoader.mm:
  17093. Translate to C++.
  17094. * bridge/mac/WebCoreFrameBridge.mm:
  17095. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  17096. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  17097. * loader/mac/WebFrameLoader.h:
  17098. * loader/mac/WebFrameLoader.mm:
  17099. (isCaseInsensitiveEqual):
  17100. (isBackForwardLoadType):
  17101. (-[WebFrameLoader dealloc]):
  17102. (-[WebFrameLoader addPlugInStreamLoader:]):
  17103. (-[WebFrameLoader removePlugInStreamLoader:]):
  17104. (-[WebFrameLoader setDefersCallbacks:]):
  17105. (-[WebFrameLoader stopLoadingPlugIns]):
  17106. (-[WebFrameLoader isLoadingMainResource]):
  17107. (-[WebFrameLoader isLoadingSubresources]):
  17108. (-[WebFrameLoader isLoadingPlugIns]):
  17109. (-[WebFrameLoader stopLoadingSubresources]):
  17110. (-[WebFrameLoader addSubresourceLoader:]):
  17111. (-[WebFrameLoader removeSubresourceLoader:]):
  17112. (-[WebFrameLoader mainResourceData]):
  17113. (-[WebFrameLoader releaseMainResourceLoader]):
  17114. (-[WebFrameLoader cancelMainResourceLoad]):
  17115. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  17116. (-[WebFrameLoader stopLoadingWithError:]):
  17117. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  17118. (-[WebFrameLoader archiveLoadPendingForLoader:]):
  17119. (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
  17120. * loader/mac/WebFrameLoaderClient.h:
  17121. Call the new C++ API.
  17122. 2006-10-21 Adam Roben <aroben@apple.com>
  17123. Reviewed by Anders.
  17124. Popup tweaks.
  17125. * platform/PopupMenu.h:
  17126. 2006-10-21 Darin Adler <darin@apple.com>
  17127. * editing/DeleteButtonController.cpp: (WebCore::enclosingDeletableTable):
  17128. Oops, edited this before landing it and introduced a null-deref! This fixes it.
  17129. 2006-10-21 Darin Adler <darin@apple.com>
  17130. Reviewed by Anders.
  17131. - fix http://bugs.webkit.org/show_bug.cgi?id=11379
  17132. assertion failure seen in editing tests (in new DeleteButtonController)
  17133. I cleaned up the relationship between the Frame, Editor, EditorClient, and
  17134. DeleteButtonController a bit while also making the simple change to fix the
  17135. assertion failure.
  17136. * bridge/mac/FrameMac.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
  17137. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
  17138. * page/Frame.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
  17139. * page/Frame.cpp:
  17140. (WebCore::Frame::Frame): Ditto.
  17141. (WebCore::Frame::appliedEditing): Removed unneeded parameter to the respondToChangedContents
  17142. function, and moved it to Editor rather than right on the DeleteButtonController.
  17143. (WebCore::Frame::unappliedEditing): Ditto.
  17144. (WebCore::Frame::reappliedEditing): Ditto.
  17145. * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): More of the same.
  17146. * editing/DeleteButtonController.h:
  17147. * editing/DeleteButtonController.cpp:
  17148. (WebCore::DeleteButtonController::DeleteButtonController): Replaced Editor* with a Frame*.
  17149. The general pattern is that we always use the Frame* as the frame identifier. See FrameTree,
  17150. for example.
  17151. (WebCore::enclosingDeletableTable): Added. Helper function used by the respondToChangedSelection
  17152. function. Includes an additional check for whether the container is contentEditable, which
  17153. was missing from the old version. This prevents the assertion failure. Also added a check that
  17154. the table itself is editable.
  17155. (WebCore::DeleteButtonController::respondToChangedSelection): Rewrote to use the helper.
  17156. (WebCore::DeleteButtonController::respondToChangedContents): Removed the unnecessary
  17157. selection parameter. No need to pass in the state of the frame since we can get it if we need it.
  17158. (WebCore::DeleteButtonController::show): Updated to use frame pointer rather than editor pointer.
  17159. * editing/Editor.cpp: Fixed formatting. Even the temporary placeholder functions should be
  17160. formatted on multiple lines as usual.
  17161. (WebCore::Editor::respondToChangedSelection): Added. Forwards to the delete button controller.
  17162. (WebCore::Editor::respondToChangedContents): Ditto.
  17163. (WebCore::Editor::Editor): Changed EditorClient parameter to a PassRefPtr since we take ownership.
  17164. * editing/Editor.h: Changed the DeleteButtonController to use an OwnPtr instead of being
  17165. defined inline to decouple so that we don't have to include DeleteButtonController.h. That way
  17166. changes to DeleteButtonController.h cause very little to recompile.
  17167. * editing/SelectionController.cpp: (WebCore::SelectionController::setSelection):
  17168. Updated to call the editor instead of the delete button controller for the selection change.
  17169. 2006-10-21 Anders Carlsson <acarlsson@apple.com>
  17170. Reviewed by Darin.
  17171. * loader/mac/LoaderFunctionsMac.mm:
  17172. (WebCore::ServeSynchronousRequest):
  17173. * platform/mac/ResourceLoaderMac.mm:
  17174. (WebCore::ResourceLoader::start):
  17175. Don't leak the header dictionary.
  17176. 2006-10-21 Darin Adler <darin@apple.com>
  17177. Reviewed by Adam.
  17178. - http://bugs.webkit.org/show_bug.cgi?id=11376
  17179. build scripts should invoke make with "-j" option for multiple processors
  17180. * WebCore.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
  17181. 2006-10-21 Timothy Hatcher <timothy@apple.com>
  17182. Reviewed by Geoff.
  17183. <rdar://problem/4478625> HTML Editing: Basic table editing and culling
  17184. Initial implementaltion of table deletion user interface:
  17185. * Interface shows up on the nearest table containing the entire selection.
  17186. * Shows a Dashboard style close button in the top left corner.
  17187. * Shows a 60% opaque black outline around the table.
  17188. * Adds a new EditorClient function shouldShowDeleteInterface.
  17189. Also adds a new constructor CachedImage and setter functions on
  17190. HTMLImageElement and HTMLImageLoader allowing an Image object to be set
  17191. and image element in the page. This change also paves the way to allow an
  17192. NSImage setter on DOMHTMLImageElement.
  17193. * Resources/deleteButton.tiff: Added.
  17194. * Resources/deleteButtonPressed.tiff: Added.
  17195. * WebCore.xcodeproj/project.pbxproj:
  17196. * bridge/EditorClient.h:
  17197. * editing/DeleteButton.cpp: Added.
  17198. (WebCore::DeleteButton::DeleteButton):
  17199. (WebCore::DeleteButton::defaultEventHandler): notify the controller to delete on click
  17200. * editing/DeleteButton.h: Added.
  17201. * editing/DeleteButtonController.cpp: Added.
  17202. (WebCore::DeleteButtonController::DeleteButtonController):
  17203. (WebCore::DeleteButtonController::respondToChangedSelection): move the interface to the new element, or hide
  17204. (WebCore::DeleteButtonController::respondToChangedContents): call updateOutlineStyle
  17205. (WebCore::DeleteButtonController::updateOutlineStyle): resize the outline if the table changed size
  17206. (WebCore::DeleteButtonController::show): shows the interface on a new element
  17207. (WebCore::DeleteButtonController::hide): hides the existing interface
  17208. (WebCore::DeleteButtonController::deleteTarget): deletes the targeted element
  17209. * editing/DeleteButtonController.h: Added.
  17210. (WebCore::DeleteButtonController::target): getter for the current target
  17211. * editing/Editor.cpp:
  17212. (WebCore::Editor::shouldShowDeleteInterface): call the new shouldShowDeleteInterface client function
  17213. (WebCore::Editor::Editor): remove the manual ref now that we use RefPtr for m_client
  17214. (WebCore::Editor::~Editor): remove the manual deref now that we use RefPtr for m_client
  17215. * editing/Editor.h:
  17216. (WebCore::Editor::frame): new getter
  17217. (WebCore::Editor::deleteButtonController): ditto
  17218. * editing/SelectionController.cpp:
  17219. (WebCore::SelectionController::setSelection): notify the DeleteButtonController about the new selection
  17220. * html/HTMLImageElement.h:
  17221. (WebCore::HTMLImageElement::setCachedImage): new setter that replaces the CachedImage
  17222. * html/HTMLImageLoader.cpp:
  17223. (WebCore::HTMLImageLoader::setImage): ditto
  17224. * html/HTMLImageLoader.h:
  17225. * loader/CachedImage.cpp:
  17226. (WebCore::CachedImage::CachedImage): new constructor that takes an Image
  17227. * loader/CachedImage.h: ditto
  17228. * page/Frame.cpp:
  17229. (WebCore::Frame::selectionController): cleanup coding style
  17230. (WebCore::Frame::editor): ditto
  17231. (WebCore::Frame::command): ditto
  17232. (WebCore::Frame::appliedEditing): tell the delete button outline to update
  17233. (WebCore::Frame::unappliedEditing): ditto
  17234. (WebCore::Frame::reappliedEditing): ditto
  17235. * rendering/RenderTable.cpp:
  17236. (WebCore::RenderTable::addChild): workaround until bug 11363 is fixed
  17237. 2006-10-21 Sam Weinig <sam.weinig@gmail.com>
  17238. Reviewed by Tim H.
  17239. Cleanup bindings generation a little through re-factoring
  17240. and general style cleanup.
  17241. * bindings/scripts/CodeGenerator.pm:
  17242. * bindings/scripts/CodeGeneratorJS.pm:
  17243. * bindings/scripts/CodeGeneratorObjC.pm:
  17244. 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
  17245. Reviewed by Mitz.
  17246. Fix crashes on Qt/Linux. Offer a default EditorClient and pass it down to Frame ctor.
  17247. * CMakeLists.txt:
  17248. * platform/qt/EditorClientQt.cpp: Added.
  17249. (WebCore::EditorClientQt::shouldDeleteRange):
  17250. * platform/qt/EditorClientQt.h: Added.
  17251. (WebCore::EditorClientQt::~EditorClientQt):
  17252. * platform/qt/FrameQt.cpp:
  17253. (WebCore::FrameQt::FrameQt):
  17254. * platform/qt/FrameQt.h:
  17255. 2006-10-21 Sam Weinig <sam.weinig@gmail.com>
  17256. Reviewed by Tim H.
  17257. Fix for http://bugs.webkit.org/show_bug.cgi?id=11372
  17258. Auto-generate a few more Objective-C DOM methods.
  17259. - Auto-generate getMatchedCSSRules and getComputedStyle methods.
  17260. * bindings/objc/DOMCSS.h:
  17261. * bindings/objc/DOMCSS.mm:
  17262. * bindings/objc/DOMExtensions.h:
  17263. * bindings/objc/PublicDOMInterfaces.h:
  17264. * bindings/scripts/CodeGeneratorObjC.pm:
  17265. * dom/Document.idl:
  17266. * page/DOMWindow.idl:
  17267. 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
  17268. Reviewed by aliu, landed by aliu.
  17269. Fix Qt/Linux build.
  17270. * CMakeLists.txt:
  17271. * platform/qt/FrameQt.cpp:
  17272. (WebCore::FrameQt::FrameQt):
  17273. * platform/qt/SoundQt.cpp: Added.
  17274. (WebCore::systemBeep):
  17275. 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
  17276. Reviewed by Mitz, landed by ap.
  17277. Fix obscure crashes in RenderTableSection on Rob's musicdb file.
  17278. The problem was a missing layout() call on the frame view.
  17279. Thanks go to Mitz Pettel for the initial hint!
  17280. * platform/qt/ScrollViewCanvasQt.cpp:
  17281. (WebCore::ScrollViewCanvasQt::paintEvent):
  17282. 2006-10-20 Steve Falkenburg <sfalken@apple.com>
  17283. Reviewed by Anders.
  17284. Send User-Agent on requests.
  17285. Send custom request headers properly.
  17286. * platform/cf/ResourceLoaderCFNet.cpp:
  17287. (WebCore::addHeadersFromHashMap): Switch over to HashMap iteration from string parsing
  17288. (WebCore::ResourceLoader::start): Send proper User-Agent, change call to add headers
  17289. 2006-10-20 Timothy Hatcher <timothy@apple.com>
  17290. Reviewed by Hyatt.
  17291. Fix some bad formatting.
  17292. * css/cssstyleselector.cpp:
  17293. (WebCore::CSSStyleSelector::checkOneSelector):
  17294. 2006-10-20 Darin Adler <darin@apple.com>
  17295. Reviewed by John.
  17296. - fixed <rdar://problem/4795716> REGRESSION: User names and passwords aren't being saved (.Mac, etc.) -- WebKit formState passing empty strings
  17297. * loader/mac/WebFormState.mm: (WebCore::FormState::FormState): Fix typo -- need to pass "key"
  17298. as the key, not the dictionary itself.
  17299. 2006-10-20 Alice Liu <alice.liu@apple.com>
  17300. Reviewed by Maciej.
  17301. This is the initial foundation for the EditingController class and
  17302. everything else it needs to work. The idea is that the Frame has an
  17303. EditingController object that it calls to handle editing commands, the
  17304. most simple examples being copy/paste. This controller will handle
  17305. these editing commands in WebCore, and only hand off to WebKit to call
  17306. editing delegates (to the let the app intercept editing actions if it
  17307. wants to). Thus we need a platform-specific client to which the
  17308. EditingController hands off the delegate calls,
  17309. WebCoreEditingControllerClient. On the WebCore side this is an
  17310. abstract base class, and on the WebKit(Mac) side this is an ObjC++
  17311. subclass, WebEditingControllerClient. How does the EditingController
  17312. get a handle to its platform-specific client? In WebKit, the creator
  17313. of a platform-specific Frame creates the client (which is ref-counted)
  17314. and passes it down the chain of constructors until it gets back to the
  17315. EditingController, which then refs it in its constructor and derefs in
  17316. its destructor.
  17317. No Layout tests needed.
  17318. * WebCore.xcodeproj/project.pbxproj:
  17319. Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile
  17320. * bridge/EditorClient.h: Added.
  17321. (WebCore::EditorClient::~EditorClient):
  17322. * bridge/mac/FrameMac.h:
  17323. Added an EditingClient to the constructor, to pass down to Frame constructor
  17324. * bridge/mac/FrameMac.mm:
  17325. (WebCore::FrameMac::FrameMac):
  17326. Passed client down to Frame constructor
  17327. * bridge/mac/WebCoreFrameBridge.h:
  17328. Added an EditingClient to the constructor, to pass down to FrameMac constructor
  17329. * bridge/mac/WebCoreFrameBridge.mm:
  17330. (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
  17331. (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
  17332. Passed client down to FrameMac constructor
  17333. * editing/Editor.cpp: Added.
  17334. Mostly stuf implementations of the following functions, except for a couple. These are all needed by cut, copy, paste, delete.
  17335. (WebCore::generalPasteboard):
  17336. (WebCore::Editor::canCopy):
  17337. (WebCore::Editor::canCut):
  17338. (WebCore::Editor::canDelete):
  17339. (WebCore::Editor::canDeleteRange):
  17340. (WebCore::Editor::canPaste):
  17341. (WebCore::Editor::canSmartCopyOrDelete):
  17342. (WebCore::Editor::deleteSelection):
  17343. (WebCore::Editor::deleteSelectionWithSmartDelete):
  17344. (WebCore::Editor::isSelectionRichlyEditable):
  17345. (WebCore::Editor::pasteAsPlainTextWithPasteboard):
  17346. (WebCore::Editor::pasteWithPasteboard):
  17347. (WebCore::Editor::selectedRange):
  17348. (WebCore::Editor::shouldDeleteRange):
  17349. (WebCore::Editor::tryDHTMLCopy):
  17350. (WebCore::Editor::tryDHTMLCut):
  17351. (WebCore::Editor::tryDHTMLPaste):
  17352. (WebCore::Editor::writeSelectionToPasteboard):
  17353. (WebCore::Editor::Editor):
  17354. (WebCore::Editor::~Editor):
  17355. (WebCore::Editor::cut):
  17356. (WebCore::Editor::copy):
  17357. (WebCore::Editor::paste):
  17358. (WebCore::Editor::performDelete):
  17359. * editing/Editor.h: Added.
  17360. * page/Frame.h:
  17361. Added an EditingClient to the constructor, to pass down to Editor constructor
  17362. * page/Frame.cpp:
  17363. (WebCore::Frame::Frame):
  17364. Passed down to Editor constructor
  17365. (WebCore::Frame::editor):
  17366. Accessor for Editor stored in FramePrivate
  17367. * page/FramePrivate.h:
  17368. (WebCore::FramePrivate::FramePrivate):
  17369. Added an Editor object to the FramePrivate data
  17370. * platform/Sound.h: Added.
  17371. Made a platform-independent accessor to a beep function
  17372. * platform/mac/SoundMac.mm: Added.
  17373. (WebCore::systemBeep):
  17374. calls mac system beep
  17375. 2006-10-20 David Hyatt <hyatt@apple.com>
  17376. Make sure to support the "encoding" property on form elements for
  17377. legacy compatibility.
  17378. Reviewed by darin/john
  17379. No test cases added. Not sure how to do a form submission of
  17380. various encodings as a layout test.
  17381. * html/HTMLFormElement.h:
  17382. (WebCore::HTMLFormElement::encoding):
  17383. (WebCore::HTMLFormElement::setEncoding):
  17384. * html/HTMLFormElement.idl:
  17385. 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
  17386. Reviewed and by Anders.
  17387. Fix warnings in JS generation by killing the whole isRefPtr logic,
  17388. and just using WTF::getPtr as Sam Weinig suggested. Also kill some
  17389. places using get() where getPtr() is cleaner - not for m_impl.get().
  17390. * CMakeLists.txt: Tiny cleanup + add deps for CodeGenerator(JS).pm on all IDLs.
  17391. * bindings/scripts/CodeGeneratorJS.pm:
  17392. 2006-10-20 Darin Adler <darin@apple.com>
  17393. - rolled out my loader change; caused world leak and possibly a plug-in crash
  17394. 2006-10-20 Anders Carlsson <acarlsson@apple.com>
  17395. Reviewed by Tim H
  17396. * loader/mac/LoaderFunctionsMac.mm:
  17397. Autorelease the header NSDictionary.
  17398. 2006-10-20 Anders Carlsson <acarlsson@apple.com>
  17399. Reviewed by Geoff.
  17400. * bindings/js/kjs_window.cpp:
  17401. (KJS::Window::timerFired):
  17402. Check if the timeout id is still in the table before trying to access it. If it isn't in the table
  17403. it has been deleted inside of the execute method.
  17404. 2006-10-20 Anders Carlsson <acarlsson@apple.com>
  17405. Reviewed by Darin and Geoff.
  17406. Remove debugging output.
  17407. * xml/xmlhttprequest.cpp:
  17408. (WebCore::XMLHttpRequest::send):
  17409. 2006-10-20 David Harrison <harrison@apple.com>
  17410. Reviewed by John.
  17411. <rdar://problem/4792755> REGRESSON: Drag selecting is erratic
  17412. No test because it would require autoscrolling, which is not available to layout tests.
  17413. * rendering/RenderLayer.cpp:
  17414. (WebCore::RenderLayer::autoscroll):
  17415. Use hitTest() to find the correct node.
  17416. (WebCore::RenderLayer::hitTest):
  17417. Trivial source formatting.
  17418. 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
  17419. Reviewed and landed by Anders.
  17420. Fix regression introduced during the ResourceLoader transition (Maciej's rewrite).
  17421. * platform/qt/ResourceLoaderManager.cpp:
  17422. (WebCore::ResourceLoaderManager::add):
  17423. 2006-10-20 Darin Adler <darin@apple.com>
  17424. Reviewed by Adele.
  17425. - convert WebLoader and its 3 subclasses to C++
  17426. Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
  17427. there's currently another class with that name).
  17428. Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
  17429. Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
  17430. Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
  17431. Converted the classes to C++ and added Objective-C delegates to forward from
  17432. API that still requires Objective-C.
  17433. Did not yet rename the source files.
  17434. * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
  17435. classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
  17436. classes.
  17437. * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
  17438. * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
  17439. * loader/mac/WebLoader.h:
  17440. * loader/mac/WebLoader.mm:
  17441. * loader/mac/WebMainResourceLoader.h:
  17442. * loader/mac/WebMainResourceLoader.mm:
  17443. * loader/mac/WebNetscapePlugInStreamLoader.h:
  17444. * loader/mac/WebNetscapePlugInStreamLoader.mm:
  17445. * loader/mac/WebSubresourceLoader.h:
  17446. * loader/mac/WebSubresourceLoader.mm:
  17447. Translate to C++.
  17448. * bridge/mac/WebCoreFrameBridge.mm:
  17449. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  17450. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  17451. * loader/mac/WebFrameLoader.h:
  17452. * loader/mac/WebFrameLoader.mm:
  17453. (isCaseInsensitiveEqual):
  17454. (isBackForwardLoadType):
  17455. (-[WebFrameLoader dealloc]):
  17456. (-[WebFrameLoader addPlugInStreamLoader:]):
  17457. (-[WebFrameLoader removePlugInStreamLoader:]):
  17458. (-[WebFrameLoader setDefersCallbacks:]):
  17459. (-[WebFrameLoader stopLoadingPlugIns]):
  17460. (-[WebFrameLoader isLoadingMainResource]):
  17461. (-[WebFrameLoader isLoadingSubresources]):
  17462. (-[WebFrameLoader isLoadingPlugIns]):
  17463. (-[WebFrameLoader stopLoadingSubresources]):
  17464. (-[WebFrameLoader addSubresourceLoader:]):
  17465. (-[WebFrameLoader removeSubresourceLoader:]):
  17466. (-[WebFrameLoader mainResourceData]):
  17467. (-[WebFrameLoader releaseMainResourceLoader]):
  17468. (-[WebFrameLoader cancelMainResourceLoad]):
  17469. (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
  17470. (-[WebFrameLoader stopLoadingWithError:]):
  17471. (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
  17472. (-[WebFrameLoader archiveLoadPendingForLoader:]):
  17473. (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
  17474. * loader/mac/WebFrameLoaderClient.h:
  17475. Call the new C++ API.
  17476. 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
  17477. Reviewed and landed by Anders.
  17478. Offer a way for WebKitPart to be able to detect when
  17479. the webpage has been completly loaded (including subresources).
  17480. Also fix Qt/Linux build by removing PopupMenu.cpp from CMakeLists.txt
  17481. and removing some functions from PopupMenuQt.cpp, and alter FrameQt.cpp.
  17482. * CMakeLists.txt:
  17483. * platform/qt/FrameQt.cpp:
  17484. (WebCore::FrameQt::submitForm):
  17485. (WebCore::FrameQt::client):
  17486. * platform/qt/FrameQt.h:
  17487. * platform/qt/FrameQtClient.cpp:
  17488. (WebCore::FrameQtClientDefault::setFrame):
  17489. (WebCore::FrameQtClientDefault::openURL):
  17490. (WebCore::FrameQtClientDefault::submitForm):
  17491. (WebCore::FrameQtClientDefault::checkLoaded):
  17492. (WebCore::FrameQtClientDefault::traverseNextFrameStayWithin):
  17493. (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
  17494. (WebCore::FrameQtClientDefault::receivedAllData):
  17495. * platform/qt/FrameQtClient.h:
  17496. * platform/qt/LoaderFunctionsQt.cpp:
  17497. (WebCore::CheckCacheObjectStatus):
  17498. * platform/qt/PopupMenuQt.cpp:
  17499. * platform/qt/ResourceLoaderManager.cpp:
  17500. (WebCore::ResourceLoaderManager::ResourceLoaderManager):
  17501. (WebCore::ResourceLoaderManager::slotResult):
  17502. (WebCore::ResourceLoaderManager::add):
  17503. * platform/qt/ResourceLoaderManager.h:
  17504. * platform/qt/ResourceLoaderQt.cpp:
  17505. (WebCore::ResourceLoader::start):
  17506. 2006-10-20 Steve Falkenburg <sfalken@apple.com>
  17507. Reviewed by Geoff.
  17508. Fix compiler warnings
  17509. * platform/ResourceLoaderClient.h:
  17510. 2006-10-20 Sam Weinig <sam.weinig@gmail.com>
  17511. Reviewed by Mitz.
  17512. Win32 build fix and cleanup.
  17513. * WebCore.vcproj/WebCore/WebCore.vcproj:
  17514. * bridge/win/FrameWin.cpp:
  17515. (WebCore::FrameWin::FrameWin):
  17516. (WebCore::FrameWin::submitForm):
  17517. * page/ResourceRequest.h:
  17518. (WebCore::ResourceRequest::addHTTPHeaderField):
  17519. * platform/win/TemporaryLinkStubs.cpp:
  17520. (WebCore::Slider::~Slider):
  17521. (WebCore::Slider::setMinValue):
  17522. (WebCore::searchableIndexIntroduction):
  17523. (WebCore::findNextSentenceFromIndex):
  17524. (WebCore::findSentenceBoundary):
  17525. (WebCore::findNextWordFromIndex):
  17526. (WebCore::FrameWin::getObjectInstanceForWidget):
  17527. (WebCore::FrameWin::getEmbedInstanceForWidget):
  17528. (WebCore::FrameWin::runJavaScriptPrompt):
  17529. (WebCore::FrameWin::restoreDocumentState):
  17530. (WebCore::FrameWin::partClearedInBegin):
  17531. (WebCore::FrameWin::createEmptyDocument):
  17532. (WebCore::FrameWin::overrideMediaType):
  17533. (WebCore::FrameWin::markedTextRange):
  17534. (WebCore::FrameWin::passSubframeEventToSubframe):
  17535. (WebCore::FrameWin::lastEventIsMouseUp):
  17536. (WebCore::FrameWin::addMessageToConsole):
  17537. (WebCore::FrameWin::shouldChangeSelection):
  17538. (WebCore::FrameWin::respondToChangedSelection):
  17539. (WebCore::FrameWin::createFrame):
  17540. (WebCore::FrameWin::saveDocumentState):
  17541. (WebCore::FrameWin::clearUndoRedoOperations):
  17542. (WebCore::FrameWin::incomingReferrer):
  17543. (WebCore::FrameWin::markMisspellingsInAdjacentWords):
  17544. (WebCore::FrameWin::respondToChangedContents):
  17545. (WebCore::FrameWin::handledOnloadEvents):
  17546. (WebCore::FrameWin::createPlugin):
  17547. (WebCore::FrameWin::objectContentType):
  17548. (WebCore::screenDepthPerComponent):
  17549. (WebCore::screenIsMonochrome):
  17550. (WebCore::historyContains):
  17551. (WebCore::submitButtonDefaultLabel):
  17552. (WebCore::inputElementAltText):
  17553. (WebCore::resetButtonDefaultLabel):
  17554. (WebCore::fileButtonChooseFileLabel):
  17555. (WebCore::fileButtonNoFileSelectedLabel):
  17556. (WebCore::defaultLanguage):
  17557. (WebCore::findWordBoundary):
  17558. (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
  17559. (WebCore::PlugInInfoStore::supportsMIMEType):
  17560. (WebCore::refreshPlugins):
  17561. (WebCore::ResourceLoader::assembleResponseHeaders):
  17562. (WebCore::ResourceLoader::retrieveResponseEncoding):
  17563. (WebCore::ResourceLoader::startHTTPRequest):
  17564. (WebCore::TextField::TextField):
  17565. (WebCore::focusRingColor):
  17566. (WebCore::setFocusRingColorChangeFunction):
  17567. (WebCore::PopupMenu::~PopupMenu):
  17568. (WebCore::PopupMenu::hide):
  17569. 2006-10-20 Rob Buis <buis@kde.org>
  17570. Reviewed by Darin.
  17571. http://bugs.webkit.org/show_bug.cgi?id=11303
  17572. Path::transform() should be implemented on Qt build
  17573. Use QPainterPath API to implement Path::transform.
  17574. This fixes svg/custom/clip-path-with-transform.svg on
  17575. the qt build.
  17576. * platform/qt/PathQt.cpp:
  17577. (WebCore::Path::transform):
  17578. 2006-10-20 Rob Buis <buis@kde.org>
  17579. Reviewed by Mitz.
  17580. http://bugs.webkit.org/show_bug.cgi?id=11217
  17581. Cleanup svg coding style
  17582. Cleanup coding style in svg clipping and painting classes.
  17583. * ksvg2/svg/SVGClipPathElement.cpp:
  17584. (WebCore::SVGClipPathElement::parseMappedAttribute):
  17585. (WebCore::SVGClipPathElement::canvasResource):
  17586. * ksvg2/svg/SVGClipPathElement.h:
  17587. * ksvg2/svg/SVGMarkerElement.cpp:
  17588. (WebCore::SVGMarkerElement::SVGMarkerElement):
  17589. (WebCore::SVGMarkerElement::parseMappedAttribute):
  17590. (WebCore::SVGMarkerElement::setOrientToAngle):
  17591. (WebCore::SVGMarkerElement::canvasResource):
  17592. * ksvg2/svg/SVGMarkerElement.h:
  17593. (WebCore::SVGMarkerElement::rendererIsNeeded):
  17594. * ksvg2/svg/SVGMaskElement.cpp:
  17595. (WebCore::SVGMaskElement::SVGMaskElement):
  17596. (WebCore::SVGMaskElement::parseMappedAttribute):
  17597. (WebCore::SVGMaskElement::drawMaskerContent):
  17598. (WebCore::SVGMaskElement::canvasResource):
  17599. * ksvg2/svg/SVGMaskElement.h:
  17600. (WebCore::SVGMaskElement::rendererIsNeeded):
  17601. * ksvg2/svg/SVGPaint.cpp:
  17602. (WebCore::SVGPaint::setPaint):
  17603. (WebCore::SVGPaint::cssText):
  17604. * ksvg2/svg/SVGPaint.h:
  17605. 2006-10-20 David Hyatt <hyatt@apple.com>
  17606. Make sure to do the code that checks the repeatInterval before the timer has been
  17607. deleted. (Duh.)
  17608. Reviewed by andersca
  17609. * bindings/js/kjs_window.cpp:
  17610. (KJS::DOMWindowTimer::setNestingLevel):
  17611. (KJS::Window::timerFired):
  17612. (KJS::DOMWindowTimer::fired):
  17613. * platform/Timer.h:
  17614. 2006-10-20 David Hyatt <hyatt@apple.com>
  17615. Honor tiny timer intervals for JS timeouts as they are nested until a cutoff point is reached.
  17616. At that point clamp to 10ms to prevent excessive CPU usage.
  17617. Reviewed by anders
  17618. * bindings/js/kjs_window.cpp:
  17619. (KJS::DOMWindowTimer::DOMWindowTimer):
  17620. (KJS::DOMWindowTimer::nestingLevel):
  17621. (KJS::Window::installTimeout):
  17622. (KJS::Window::pauseTimeouts):
  17623. (KJS::Window::resumeTimeouts):
  17624. (KJS::DOMWindowTimer::fired):
  17625. * platform/Timer.h:
  17626. (WebCore::TimerBase::startRepeating):
  17627. (WebCore::TimerBase::startOneShot):
  17628. (WebCore::TimerBase::repeatInterval):
  17629. (WebCore::TimerBase::augmentRepeatInterval):
  17630. (WebCore::TimerBase::inHeap):
  17631. (WebCore::Timer::Timer):
  17632. (WebCore::Timer::fired):
  17633. 2006-10-20 Steve Falkenburg <sfalken@apple.com>
  17634. Build fix
  17635. * ksvg2/svg/SVGAElement.cpp:
  17636. (WebCore::SVGAElement::defaultEventHandler):
  17637. 2006-10-19 Steve Falkenburg <sfalken@apple.com>
  17638. Reviewed by Adam.
  17639. Use GetKeyState rather than GetAsyncKeyState since we're
  17640. calling in these cases in direct response to an event, and want the
  17641. key state associated with that event.
  17642. Pass triggering event to url selection method.
  17643. * bridge/mac/FrameMac.h: Add triggeringEvent parameter
  17644. * bridge/mac/FrameMac.mm:
  17645. (WebCore::FrameMac::urlSelected): Add triggeringEvent parameter
  17646. * bridge/win/FrameWin.cpp:
  17647. (WebCore::FrameWin::urlSelected): Add triggeringEvent parameter
  17648. * bridge/win/FrameWin.h: Add triggeringEvent parameter
  17649. * html/HTMLAnchorElement.cpp:
  17650. (WebCore::HTMLAnchorElement::defaultEventHandler): Pass triggering event to URL selection method
  17651. * page/Frame.cpp:
  17652. (WebCore::Frame::changeLocation): Add 0 as triggeringEvent
  17653. (WebCore::Frame::urlSelected): Pass through triggeringEvent
  17654. * page/Frame.h: Add triggeringEvent parameter to urlSelected methods
  17655. * platform/win/KeyEventWin.cpp:
  17656. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Use GetKeyState instead of GetAsyncKeyState
  17657. * platform/win/MouseEventWin.cpp: Use GetKeyState instead of GetAsyncKeyState
  17658. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  17659. 2006-10-19 David Hyatt <hyatt@apple.com>
  17660. Correct typos from changing "flush" to "prune" using automated search/replace.
  17661. Change the cache heuristic for flushing to allow a higher watermark before initiating an
  17662. aggressive prune. This ensures that small cache sizes are no worse in terms of performance
  17663. than the old buggy cache.
  17664. Make sizes unsigned instead of ints in the cache's APIs and member variables.
  17665. * loader/Cache.cpp:
  17666. (WebCore::Cache::prune):
  17667. (WebCore::Cache::setMaximumSize):
  17668. * loader/Cache.h:
  17669. (WebCore::Cache::maximumSize):
  17670. 2006-10-19 Anders Carlsson <acarlsson@apple.com>
  17671. Reviewed by Daddy Hyatt.
  17672. Use a real hash map for the headers.
  17673. * loader/LoaderFunctions.h:
  17674. * loader/mac/LoaderFunctionsMac.mm:
  17675. (WebCore::ServeSynchronousRequest):
  17676. * platform/ResourceLoader.cpp:
  17677. (WebCore::ResourceLoader::setRequestHeaders):
  17678. (WebCore::ResourceLoader::requestHeaders):
  17679. * platform/ResourceLoader.h:
  17680. * platform/ResourceLoaderInternal.h:
  17681. * platform/mac/ResourceLoaderMac.mm:
  17682. (WebCore::ResourceLoader::start):
  17683. * xml/xmlhttprequest.cpp:
  17684. (WebCore::XMLHttpRequest::open):
  17685. (WebCore::XMLHttpRequest::send):
  17686. (WebCore::XMLHttpRequest::setRequestHeader):
  17687. (WebCore::XMLHttpRequest::getRequestHeader):
  17688. * xml/xmlhttprequest.h:
  17689. 2006-10-19 Adam Roben <aroben@apple.com>
  17690. Reviewed by Ada.
  17691. Pippity-poppity popup tweaks.
  17692. * WebCore.xcodeproj/project.pbxproj: Removed PopupMenu.cpp from project.
  17693. * html/HTMLSelectElement.cpp:
  17694. (WebCore::HTMLSelectElement::setSelectedIndex): Only fire onChange if
  17695. requested and the new index is actually different than the old one.
  17696. * platform/IntPoint.h: Added another casting operator.
  17697. * platform/PopupMenu.cpp: Removed. The code in here, while
  17698. platform-independent, was only useful for the NSPopUpButtonCell
  17699. implementation of popup menus, so I've moved it to PopupMenuMac.mm.
  17700. * platform/PopupMenu.h: Moved the definition of PopupMenu::create into
  17701. the header since it's fairly simple. Made some more methods private now
  17702. that we don't have subclasses and virtual methods anymore.
  17703. (WebCore::PopupMenu::create):
  17704. (WebCore::PopupMenu::menuList):
  17705. (WebCore::PopupMenu::itemHeight):
  17706. (WebCore::PopupMenu::windowRect):
  17707. (WebCore::PopupMenu::listIndexAtPoint):
  17708. (WebCore::PopupMenu::focusedIndex):
  17709. (WebCore::PopupMenu::setWasClicked):
  17710. (WebCore::PopupMenu::wasClicked):
  17711. (WebCore::PopupMenu::setScrollOffset):
  17712. (WebCore::PopupMenu::scrollOffset):
  17713. (WebCore::PopupMenu::wheelDelta):
  17714. * platform/mac/PopupMenuMac.mm: Added the code from PopupMenu.cpp.
  17715. (WebCore::PopupMenu::populate): Call our own clear() method to clear
  17716. the menu.
  17717. * platform/win/IntPointWin.cpp: New casting operator.
  17718. (WebCore::IntPoint::IntPoint):
  17719. (WebCore::IntPoint::operator POINTS):
  17720. 2006-10-19 Adam Roben <aroben@apple.com>
  17721. Reviewed by Darin.
  17722. Cleaning up Document::nextFocusNode and Document::previousFocusNode.
  17723. * dom/Document.cpp:
  17724. (WebCore::Document::nextFocusNode):
  17725. (WebCore::Document::previousFocusNode):
  17726. 2006-10-19 Maciej Stachowiak <mjs@apple.com>
  17727. Reviewed by Geoff.
  17728. - implement new ResourceRequest API and fix up code as appropriate
  17729. * bindings/js/kjs_window.cpp:
  17730. (KJS::createNewWindow):
  17731. (KJS::WindowFunc::callAsFunction):
  17732. * bridge/mac/BrowserExtensionMac.mm:
  17733. (WebCore::BrowserExtensionMac::createNewWindow):
  17734. * bridge/mac/FrameMac.mm:
  17735. (WebCore::FrameMac::submitForm):
  17736. (WebCore::FrameMac::openURLRequest):
  17737. (WebCore::FrameMac::urlSelected):
  17738. * bridge/mac/WebCoreFrameBridge.mm:
  17739. (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
  17740. * dom/DOMImplementation.cpp:
  17741. (WebCore::addString):
  17742. (WebCore::isSVG10Feature):
  17743. (WebCore::isSVG11Feature):
  17744. * dom/Document.h:
  17745. * editing/CommandByName.cpp:
  17746. * editing/JSEditor.cpp:
  17747. * page/Frame.cpp:
  17748. (WebCore::Frame::changeLocation):
  17749. (WebCore::Frame::urlSelected):
  17750. (WebCore::Frame::requestFrame):
  17751. (WebCore::Frame::submitForm):
  17752. * page/Frame.h:
  17753. * page/FramePrivate.h:
  17754. * page/ResourceRequest.h:
  17755. (WebCore::):
  17756. (WebCore::ResourceRequest::ResourceRequest):
  17757. (WebCore::ResourceRequest::cachePolicy):
  17758. (WebCore::ResourceRequest::setCachePolicy):
  17759. (WebCore::ResourceRequest::timeoutInterval):
  17760. (WebCore::ResourceRequest::setTimeoutInterval):
  17761. (WebCore::ResourceRequest::mainDocumentURL):
  17762. (WebCore::ResourceRequest::setMainDocumentURL):
  17763. (WebCore::ResourceRequest::httpMethod):
  17764. (WebCore::ResourceRequest::setHTTPMethod):
  17765. (WebCore::ResourceRequest::httpHeaderField):
  17766. (WebCore::ResourceRequest::setHTTPHeaderField):
  17767. (WebCore::ResourceRequest::httpContentType):
  17768. (WebCore::ResourceRequest::setHTTPContentType):
  17769. (WebCore::ResourceRequest::httpReferrer):
  17770. (WebCore::ResourceRequest::setHTTPReferrer):
  17771. (WebCore::ResourceRequest::httpUserAgent):
  17772. (WebCore::ResourceRequest::setHTTPUserAgent):
  17773. (WebCore::ResourceRequest::httpBody):
  17774. (WebCore::ResourceRequest::setHTTPBody):
  17775. (WebCore::ResourceRequest::addHTTPHeaderField):
  17776. * platform/FontCache.cpp:
  17777. (WebCore::computeHash):
  17778. * platform/StringHash.h:
  17779. (WTF::):
  17780. * platform/StringImpl.cpp:
  17781. (WebCore::equalIgnoringCase):
  17782. * rendering/RenderPartObject.cpp:
  17783. (WebCore::RenderPartObject::updateWidget):
  17784. 2006-10-19 Justin Garcia <justin.garcia@apple.com>
  17785. Reviewed by levi
  17786. <rdar://problem/4447885>
  17787. API: WebView should have a method something like incrementLeftMarginBy: or indentBy:
  17788. Fixed indent/outdent to only increment the left margin, to match other browsers.
  17789. Used blockquote class="webkit-indent-blockquote" to do this. Mail can now
  17790. implement indent/outdent by customizing the appearance of these blockquotes,
  17791. instead of using a new API.
  17792. * css/html4.css: Added margin: 0 0 0 40px for webkit-indent-blockquotes.
  17793. * editing/IndentOutdentCommand.cpp:
  17794. (WebCore::indentBlockquoteString): Added.
  17795. (WebCore::createIndentBlockquoteElement): Added.
  17796. (WebCore::isIndentBlockquote): Added.
  17797. (WebCore::isListOrBlockquote): Added.
  17798. (WebCore::IndentOutdentCommand::IndentOutdentCommand):
  17799. (WebCore::IndentOutdentCommand::prepareBlockquoteLevelForInsertion): Fixed
  17800. a bug in the code that added an extra br if the placeholder collapsed upon insertion.
  17801. Used the new indentBlockquote checks and enclosing element getters.
  17802. (WebCore::IndentOutdentCommand::indentRegion): Ditto.
  17803. (WebCore::IndentOutdentCommand::outdentParagraph): Ditto. Cleaned up the
  17804. logic to pull the selection out of a list a bit.
  17805. * editing/htmlediting.cpp:
  17806. (WebCore::enclosingNodeOfType): Added this generic enclosing element getter.
  17807. * editing/htmlediting.h:
  17808. 2006-10-19 Timothy Hatcher <timothy@apple.com>
  17809. Rolling out the this change since it caused a bad regression:
  17810. <rdar://problem/4788524> REGRESSION: Incomplete repaint of text area when deleting (11277)
  17811. 2006-10-12 Adele Peterson <adele@apple.com>
  17812. Reviewed by Dave Harrison.
  17813. - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
  17814. * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
  17815. Make subtree layouts work for textareas as well as text fields.
  17816. 2006-10-19 Nikolas Zimmermann <zimmermann@kde.org>
  17817. Reviewed and landed by Anders.
  17818. Fix Qt/Linux build.
  17819. * CMakeLists.txt:
  17820. * loader/Cache.h:
  17821. * platform/qt/BrowserExtensionQt.cpp:
  17822. * platform/qt/BrowserExtensionQt.h:
  17823. * platform/qt/CursorQt.cpp:
  17824. (WebCore::pointerCursor):
  17825. * platform/qt/LoaderFunctionsQt.cpp:
  17826. (WebCore::NumberOfPendingOrLoadingRequests):
  17827. (WebCore::CheckCacheObjectStatus):
  17828. * platform/qt/ResourceLoaderQt.cpp:
  17829. (WebCore::ResourceLoader::retrieveResponseEncoding):
  17830. (WebCore::ResourceLoader::receivedResponse):
  17831. 2006-10-19 Sam Weinig <sam.weinig@gmail.com>
  17832. Reviewed by ap.
  17833. Win32 build fix.
  17834. * bridge/win/FrameWin.cpp:
  17835. * bridge/win/FrameWin.h:
  17836. * platform/win/TemporaryLinkStubs.cpp:
  17837. (WebCore::ResourceLoader::retrieveResponseEncoding):
  17838. 2006-10-19 Alexey Proskuryakov <ap@nypop.com>
  17839. Reviewed by Mitz.
  17840. http://bugs.webkit.org/show_bug.cgi?id=11141
  17841. REGRESSION(r16681-r16691): CSS '@import' doesn't respect HTML Base element
  17842. Undo one misguided change made in bug 11011 - stop setting inline stylesheet's href
  17843. to document URL. This matches WinIE and partially matches Firefox - although the latter
  17844. reports the href as if it were inherited, it still doesn't use it when resolving URIs in
  17845. @import rules.
  17846. Test: http/tests/uri/css-href.php
  17847. * html/HTMLStyleElement.cpp:
  17848. (WebCore::HTMLStyleElement::childrenChanged):
  17849. * ksvg2/svg/SVGStyleElement.cpp:
  17850. (WebCore::SVGStyleElement::childrenChanged):
  17851. 2006-10-19 Anders Carlsson <acarlsson@apple.com>
  17852. * loader/Cache.cpp:
  17853. Get rid of #include "loader.h", Cache.h already includes this and it breaks on operating systems
  17854. with case-sensitive file systems.
  17855. 2006-10-19 Anders Carlsson <acarlsson@apple.com>
  17856. Reviewed by Maciej, Brady.
  17857. Remove "charset" from the ResourceLoader metadata map and use
  17858. a getter function instead. Also, rename charset to encoding in a couple of places.
  17859. * loader/CachedCSSStyleSheet.cpp:
  17860. (WebCore::CachedCSSStyleSheet::setEncoding):
  17861. * loader/CachedCSSStyleSheet.h:
  17862. * loader/CachedResource.h:
  17863. (WebCore::CachedResource::setEncoding):
  17864. * loader/CachedScript.cpp:
  17865. (WebCore::CachedScript::setEncoding):
  17866. * loader/CachedScript.h:
  17867. * loader/CachedXBLDocument.cpp:
  17868. (WebCore::CachedXBLDocument::setEncoding):
  17869. * loader/CachedXBLDocument.h:
  17870. * loader/CachedXSLStyleSheet.cpp:
  17871. (WebCore::CachedXSLStyleSheet::setEncoding):
  17872. * loader/CachedXSLStyleSheet.h:
  17873. * loader/loader.cpp:
  17874. (WebCore::Loader::receivedResponse):
  17875. * platform/ResourceLoader.cpp:
  17876. (WebCore::ResourceLoader::responseEncoding):
  17877. (WebCore::ResourceLoader::queryMetaData):
  17878. * platform/ResourceLoader.h:
  17879. * platform/ResourceLoaderInternal.h:
  17880. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  17881. * platform/mac/ResourceLoaderMac.mm:
  17882. (WebCore::ResourceLoader::retrieveResponseEncoding):
  17883. (WebCore::ResourceLoader::receivedResponse):
  17884. * xml/xmlhttprequest.cpp:
  17885. (WebCore::XMLHttpRequest::receivedData):
  17886. 2006-10-19 David Hyatt <hyatt@apple.com>
  17887. Rewrite of the WebCore memory cache. The following changes have been made (along with many more):
  17888. (1) Referenced objects are now also cached.
  17889. (2) Pruning of the cache will occur once the cache is both full and in addition
  17890. more than half full with unreferenced objects.
  17891. (3) The prune is much more aggressive now, since referenced objects are counted when
  17892. pruning. The cache will therefore often prune out every unreferenced object if lots of
  17893. windows/tabs are open.
  17894. (4) Consolidated the request methods for various types of resources to go through a single
  17895. requestResource bottleneck function.
  17896. (5) deref on CachedResource is no longer virtual, since the implementation in every subclass was
  17897. identical.
  17898. (6) Changed "object" to "resource" everywhere.
  17899. (7) The Cache is now an actual object, obtained via cache().
  17900. (8) Fixed bugs with the autoload images preference so that it would really work properly when disabled
  17901. and enabled.
  17902. (9) Tweaked ImageDocuments to set up the status properly for the CachedResource that they use.
  17903. (10) Fixed the LRU-SP algorithm so that the LRU aspect really kicks in (by leaving the live objects
  17904. in the LRU lists). Also fixed a bug with the "-SP" part of the algorithm where the access count was
  17905. being incorrectly weighted too much due to a math error.
  17906. (11) Fixed a bug where the old cache could grow without bound because it didn't know anything about
  17907. the size of referenced resources.
  17908. Reviewed by Maciej, bradee-oh
  17909. * bridge/mac/WebCoreCache.mm:
  17910. (+[WebCoreCache statistics]):
  17911. (+[WebCoreCache empty]):
  17912. (+[WebCoreCache setDisabled:]):
  17913. * bridge/mac/WebCoreFrameBridge.mm:
  17914. (-[WebCoreFrameBridge initMainFrameWithPage:]):
  17915. (-[WebCoreFrameBridge getData:andResponse:forURL:]):
  17916. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
  17917. * css/CSSImageValue.cpp:
  17918. (WebCore::CSSImageValue::image):
  17919. * dom/XMLTokenizer.cpp:
  17920. (WebCore::openFunc):
  17921. * html/HTMLImageLoader.cpp:
  17922. (WebCore::HTMLImageLoader::updateFromElement):
  17923. * loader/Cache.cpp:
  17924. (WebCore::cache):
  17925. (WebCore::Cache::Cache):
  17926. (WebCore::createResource):
  17927. (WebCore::Cache::requestResource):
  17928. (WebCore::Cache::resourceForURL):
  17929. (WebCore::Cache::prune):
  17930. (WebCore::Cache::setMaximumSize):
  17931. (WebCore::Cache::remove):
  17932. (WebCore::Cache::addDocLoader):
  17933. (WebCore::Cache::removeDocLoader):
  17934. (WebCore::fastLog2):
  17935. (WebCore::Cache::lruListFor):
  17936. (WebCore::Cache::removeFromLRUList):
  17937. (WebCore::Cache::insertInLRUList):
  17938. (WebCore::Cache::resourceAccessed):
  17939. (WebCore::Cache::adjustSize):
  17940. (WebCore::Cache::getStatistics):
  17941. (WebCore::Cache::setDisabled):
  17942. * loader/Cache.h:
  17943. (WebCore::LRUList::LRUList):
  17944. (WebCore::Cache::loader):
  17945. (WebCore::Cache::maximumSize):
  17946. (WebCore::Cache::disabled):
  17947. (WebCore::Cache::addToLiveObjectSize):
  17948. (WebCore::Cache::removeFromLiveObjectSize):
  17949. (WebCore::Cache::TypeStatistic::TypeStatistic):
  17950. * loader/CachedCSSStyleSheet.cpp:
  17951. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  17952. * loader/CachedCSSStyleSheet.h:
  17953. * loader/CachedImage.cpp:
  17954. (WebCore::CachedImage::CachedImage):
  17955. (WebCore::CachedImage::~CachedImage):
  17956. (WebCore::brokenImage):
  17957. (WebCore::nullImage):
  17958. (WebCore::CachedImage::image):
  17959. (WebCore::CachedImage::data):
  17960. * loader/CachedImage.h:
  17961. (WebCore::CachedImage::stillNeedsLoad):
  17962. * loader/CachedResource.cpp:
  17963. (WebCore::CachedResource::CachedResource):
  17964. (WebCore::CachedResource::~CachedResource):
  17965. (WebCore::CachedResource::finish):
  17966. (WebCore::CachedResource::setExpireDate):
  17967. (WebCore::CachedResource::isExpired):
  17968. (WebCore::CachedResource::setRequest):
  17969. (WebCore::CachedResource::ref):
  17970. (WebCore::CachedResource::deref):
  17971. (WebCore::CachedResource::setSize):
  17972. * loader/CachedResource.h:
  17973. (WebCore::CachedResource::):
  17974. (WebCore::CachedResource::setCharset):
  17975. (WebCore::CachedResource::url):
  17976. (WebCore::CachedResource::type):
  17977. (WebCore::CachedResource::referenced):
  17978. (WebCore::CachedResource::count):
  17979. (WebCore::CachedResource::status):
  17980. (WebCore::CachedResource::size):
  17981. (WebCore::CachedResource::isLoaded):
  17982. (WebCore::CachedResource::setLoading):
  17983. (WebCore::CachedResource::isImage):
  17984. (WebCore::CachedResource::accessCount):
  17985. (WebCore::CachedResource::increaseAccessCount):
  17986. (WebCore::CachedResource::setInCache):
  17987. (WebCore::CachedResource::inCache):
  17988. (WebCore::CachedResource::cachePolicy):
  17989. (WebCore::CachedResource::response):
  17990. (WebCore::CachedResource::allData):
  17991. (WebCore::CachedResource::canDelete):
  17992. (WebCore::CachedResource::schedule):
  17993. (WebCore::CachedResource::accept):
  17994. (WebCore::CachedResource::setAccept):
  17995. * loader/CachedScript.cpp:
  17996. (WebCore::CachedScript::CachedScript):
  17997. * loader/CachedScript.h:
  17998. * loader/CachedXBLDocument.cpp:
  17999. * loader/CachedXBLDocument.h:
  18000. * loader/CachedXSLStyleSheet.cpp:
  18001. (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
  18002. * loader/CachedXSLStyleSheet.h:
  18003. * loader/DocLoader.cpp:
  18004. (WebCore::DocLoader::DocLoader):
  18005. (WebCore::DocLoader::~DocLoader):
  18006. (WebCore::DocLoader::checkForReload):
  18007. (WebCore::DocLoader::requestImage):
  18008. (WebCore::DocLoader::requestCSSStyleSheet):
  18009. (WebCore::DocLoader::requestScript):
  18010. (WebCore::DocLoader::requestXSLStyleSheet):
  18011. (WebCore::DocLoader::requestXBLDocument):
  18012. (WebCore::DocLoader::requestResource):
  18013. (WebCore::DocLoader::setAutoLoadImages):
  18014. (WebCore::DocLoader::removeCachedResource):
  18015. * loader/DocLoader.h:
  18016. (WebCore::DocLoader::cachedResource):
  18017. (WebCore::DocLoader::allCachedResources):
  18018. (WebCore::DocLoader::autoLoadImages):
  18019. (WebCore::DocLoader::cachePolicy):
  18020. (WebCore::DocLoader::expireDate):
  18021. (WebCore::DocLoader::frame):
  18022. (WebCore::DocLoader::doc):
  18023. (WebCore::DocLoader::loadInProgress):
  18024. * loader/ImageDocument.cpp:
  18025. (WebCore::ImageTokenizer::finish):
  18026. * loader/loader.cpp:
  18027. (WebCore::Loader::receivedAllData):
  18028. (WebCore::Loader::cancelRequests):
  18029. * loader/mac/LoaderFunctionsMac.mm:
  18030. (WebCore::NumberOfPendingOrLoadingRequests):
  18031. (WebCore::CheckCacheObjectStatus):
  18032. * page/Frame.cpp:
  18033. (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
  18034. (WebCore::Frame::Frame):
  18035. (WebCore::Frame::stopLoading):
  18036. (WebCore::Frame::setAutoLoadImages):
  18037. (WebCore::Frame::autoLoadImages):
  18038. (WebCore::Frame::begin):
  18039. (WebCore::Frame::checkCompleted):
  18040. (WebCore::Frame::reparseConfiguration):
  18041. * page/Frame.h:
  18042. * xml/XSLTProcessor.cpp:
  18043. (WebCore::docLoaderFunc):
  18044. * xml/xmlhttprequest.cpp:
  18045. (WebCore::XMLHttpRequest::send):
  18046. 2006-10-18 Maciej Stachowiak <mjs@apple.com>
  18047. Reviewed by Geoff.
  18048. - remove vestiges of KXMLCore name (former name of WTF).
  18049. * config.h:
  18050. 2006-10-18 Geoffrey Garen <ggaren@apple.com>
  18051. Reviewed by Beth.
  18052. Fixed http://bugs.webkit.org/show_bug.cgi?id=11222
  18053. Some global JS objects lacked references to their property hashtables,
  18054. so for-in enumeration didn't work. I added the references, and then removed
  18055. a few bogus properties from the tables. The bogus ones got in there through
  18056. bit rot.
  18057. We should come up with some solution to these hand-written bindings bugs.
  18058. Maybe we could use a script to autogenerate them or something.
  18059. * bindings/js/kjs_window.cpp:
  18060. (KJS::):
  18061. (KJS::History::getValueProperty):
  18062. 2006-10-18 Adam Roben <aroben@apple.com>
  18063. Reviewed by Brady.
  18064. Change Shift-Tab to generate keyIdentifier U+000009 (Tab) instead of
  18065. U+000019 (Backtab). This matches our windowsKeyCode for this key
  18066. combination.
  18067. * platform/mac/KeyEventMac.mm:
  18068. (WebCore::keyIdentifierForKeyEvent):
  18069. 2006-10-18 Steve Falkenburg <sfalken@apple.com>
  18070. Reviewed by Adam, Brady.
  18071. Loader tweaks.
  18072. * platform/cf/ResourceLoaderCFNet.cpp:
  18073. (WebCore::didFinishLoading):
  18074. (WebCore::didFail):
  18075. (WebCore::didReceiveChallenge):
  18076. (WebCore::runLoaderThread):
  18077. (WebCore::ResourceLoader::start):
  18078. (WebCore::ResourceLoader::cancel):
  18079. 2006-10-18 Timothy Hatcher <timothy@apple.com>
  18080. Reviewed by Darin.
  18081. <rdar://problem/4752138> Manipulating popup in HTML page crashed Xcode
  18082. - Store the Mac popup button cell as a RetainPtr to prevent GC collection.
  18083. - Convert more ObjC local statics and member variables to use RetainPtr.
  18084. - Convert more CFRetain/CFRelease to HardRetain/HardRelease.
  18085. * bindings/objc/DOM.mm:
  18086. (ObjCNodeFilterCondition::ObjCNodeFilterCondition): use HardRetain and not CFRetain
  18087. (ObjCNodeFilterCondition::~ObjCNodeFilterCondition): use HardRelease and not CFRelease
  18088. * bridge/mac/AXObjectCacheMac.mm:
  18089. (WebCore::AXObjectCache::~AXObjectCache): use HardRelease and not CFRelease
  18090. (WebCore::AXObjectCache::get): use HardRetain and not CFRetain
  18091. (WebCore::AXObjectCache::remove): use HardRelease and not CFRelease
  18092. * bridge/mac/WebCoreFrameBridge.mm:
  18093. (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): use RetainPtr
  18094. (+[WebCoreFrameBridge supportedImageMIMETypes]): ditto
  18095. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  18096. (+[WebCoreIconDatabaseBridge sharedInstance]): use RetainPtr
  18097. * platform/PopupMenu.h: renamed popup to m_popup and switched to RetainPtr<NSPopUpButtonCell>
  18098. * platform/cf/RetainPtr.h:
  18099. (WTF::::operator): implement a missing operator= template function
  18100. * platform/mac/PopupMenuMac.mm:
  18101. (WebCore::PopupMenu::PopupMenu): remove nil initialization
  18102. (WebCore::PopupMenu::~PopupMenu): use .get(), remove release message and rename to m_popup
  18103. (WebCore::PopupMenu::clear): use .get() when sending a message and rename to m_popup
  18104. (WebCore::PopupMenu::populate): ditto
  18105. (WebCore::PopupMenu::show): ditto
  18106. (WebCore::PopupMenu::hide): ditto
  18107. (WebCore::PopupMenu::addSeparator): ditto
  18108. (WebCore::PopupMenu::addGroupLabel): ditto
  18109. (WebCore::PopupMenu::addOption): ditto
  18110. 2006-10-18 Geoffrey Garen <ggaren@apple.com>
  18111. Reviewed by Adele.
  18112. Fixed <rdar://problem/3673233> JavaScript timers do not fire if controls
  18113. are tracking or menus are down (run loop modes)
  18114. I spent a few hours trying to write an automated test, but DRT doesn't
  18115. seem to support it. Manual tests attached to related bugs.
  18116. * bridge/mac/FrameMac.mm:
  18117. (WebCore::FrameMac::passMouseDownEventToWidget):
  18118. * platform/mac/SharedTimerMac.cpp:
  18119. (WebCore::setSharedTimerFireTime):
  18120. 2006-10-18 Sam Weinig <sam.weinig@gmail.com>
  18121. Reviewed by Maciej.
  18122. More Win32 buildfix.
  18123. * bridge/win/FrameWin.h:
  18124. 2006-10-18 Sam Weinig <sam.weinig@gmail.com>
  18125. Reviewed by Mitz
  18126. Win32 build fix.
  18127. * bridge/win/BrowserExtensionWin.cpp:
  18128. (WebCore::BrowserExtensionWin::BrowserExtensionWin):
  18129. (WebCore::BrowserExtensionWin::createNewWindow):
  18130. * bridge/win/BrowserExtensionWin.h:
  18131. * bridge/win/FrameWin.cpp:
  18132. (WebCore::FrameWin::createNewWindow):
  18133. * bridge/win/FrameWin.h:
  18134. * platform/win/CursorWin.cpp:
  18135. * platform/win/TemporaryLinkStubs.cpp:
  18136. (Image::getHBITMAP):
  18137. 2006-10-18 Justin Garcia <justin.garcia@apple.com>
  18138. Reviewed by harrison
  18139. <rdar://problem/4784823>
  18140. GMail Editor: Hang occurs when removing list styling on text in a rich text message
  18141. List removal moves the contents of every list item out of the list it's
  18142. in. When the code tried to move the contents of an empty list item (an li
  18143. with no child nodes, not even a placeholder br), moveParagraph didn't prune
  18144. the li, like it would if the li had a placeholder inside it. So the list
  18145. removal code went into an infinite loop, continually attempting to de-list
  18146. an empty list item.
  18147. * editing/CompositeEditCommand.cpp:
  18148. (WebCore::CompositeEditCommand::moveParagraphs): If the selection
  18149. to move was empty and in an empty block that doesn't require a
  18150. placeholder to prop itself open (like a bordered div or an li),
  18151. remove it during the move.
  18152. 2006-10-18 Adele Peterson <adele@apple.com>
  18153. Reviewed by Beth.
  18154. - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
  18155. REGRESSION (r16975): fast/events/objc-event-api is failing
  18156. When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
  18157. a call to invalidateClick. This change moves it back to the sequence that existed before. This allows
  18158. the click count to get properly reset during a selection.
  18159. * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
  18160. 2006-10-17 Geoffrey Garen <ggaren@apple.com>
  18161. Reviewed by Anders.
  18162. Factored common scaling code into a helper function.
  18163. * platform/mac/ScreenMac.mm:
  18164. (WebCore::scale):
  18165. (WebCore::scaleScreenRectToPageCoordinates):
  18166. (WebCore::scalePageRectToScreenCoordinates):
  18167. 2006-10-17 Steve Falkenburg <sfalken@apple.com>
  18168. Build fixes
  18169. * bridge/win/BrowserExtensionWin.cpp:
  18170. (WebCore::BrowserExtensionWin::createNewWindow):
  18171. * bridge/win/BrowserExtensionWin.h:
  18172. * bridge/win/FrameWin.cpp:
  18173. (WebCore::FrameWin::createNewWindow):
  18174. * bridge/win/FrameWin.h:
  18175. * platform/gdk/BrowserExtensionGdk.h:
  18176. * platform/gdk/TemporaryLinkStubs.cpp:
  18177. (BrowserExtensionGdk::createNewWindow):
  18178. * platform/qt/BrowserExtensionQt.cpp:
  18179. (WebCore::BrowserExtensionQt::createNewWindow):
  18180. * platform/qt/BrowserExtensionQt.h:
  18181. 2006-10-17 Geoffrey Garen <ggaren@apple.com>
  18182. Reviewed by Anders.
  18183. Renamed WindowArgs to WindowFeatures, and moved it into its own header.
  18184. ("Features" is the term of art in IE documentation. "Args" is pirate
  18185. talk.)
  18186. * WebCore.xcodeproj/project.pbxproj:
  18187. * bindings/js/kjs_window.cpp:
  18188. (KJS::createNewWindow):
  18189. (KJS::showModalDialog):
  18190. (KJS::setWindowFeature):
  18191. (KJS::parseWindowFeatures):
  18192. (KJS::constrainToVisible):
  18193. (KJS::WindowFunc::callAsFunction):
  18194. * bridge/BrowserExtension.h:
  18195. * bridge/WindowFeatures.h: Added.
  18196. * bridge/mac/BrowserExtensionMac.h:
  18197. * bridge/mac/BrowserExtensionMac.mm:
  18198. (WebCore::BrowserExtensionMac::createNewWindow):
  18199. 2006-10-17 Sam Weinig <sam.weinig@gmail.com>
  18200. Reviewed by Tim H.
  18201. Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
  18202. Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
  18203. - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
  18204. - Moves the contents of ksvg/bindings/js/ to bindings/js/.
  18205. - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
  18206. - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching
  18207. the other CSSValue classing, and allowing the bindings to allocate
  18208. appropriately.
  18209. - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
  18210. generation for Objective-C.
  18211. - Assorted style cleanups.
  18212. * DerivedSources.make:
  18213. * WebCore.xcodeproj/project.pbxproj:
  18214. * bindings/objc/DOMCSS.mm:
  18215. (+[DOMCSSValue _CSSValueWith:WebCore::]):
  18216. * bindings/objc/DOMEvents.mm:
  18217. (+[DOMEvent _eventWith:WebCore::]):
  18218. * bindings/objc/DOMSVG.h:
  18219. * bindings/objc/DOMSVGNumber.mm:
  18220. (-[DOMSVGNumber dealloc]):
  18221. (-[DOMSVGNumber finalize]):
  18222. (-[DOMSVGNumber value]):
  18223. (-[DOMSVGNumber setValue:]):
  18224. (-[DOMSVGNumber _SVGNumber]):
  18225. (-[DOMSVGNumber _initWithFloat:]):
  18226. (+[DOMSVGNumber _SVGNumberWith:]):
  18227. * bindings/objc/DOMSVGPoint.mm:
  18228. (-[DOMSVGPoint dealloc]):
  18229. (-[DOMSVGPoint finalize]):
  18230. (-[DOMSVGPoint x]):
  18231. (-[DOMSVGPoint setX:]):
  18232. (-[DOMSVGPoint y]):
  18233. (-[DOMSVGPoint setY:]):
  18234. (-[DOMSVGPoint WebCore::]):
  18235. (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
  18236. (+[DOMSVGPoint _SVGPointWith:WebCore::]):
  18237. * bindings/objc/DOMSVGRect.mm:
  18238. (-[DOMSVGRect dealloc]):
  18239. (-[DOMSVGRect finalize]):
  18240. (-[DOMSVGRect x]):
  18241. (-[DOMSVGRect setX:]):
  18242. (-[DOMSVGRect y]):
  18243. (-[DOMSVGRect setY:]):
  18244. (-[DOMSVGRect width]):
  18245. (-[DOMSVGRect setWidth:]):
  18246. (-[DOMSVGRect height]):
  18247. (-[DOMSVGRect setHeight:]):
  18248. (-[DOMSVGRect WebCore::]):
  18249. (-[DOMSVGRect _initWithFloatRect:WebCore::]):
  18250. (+[DOMSVGRect _SVGRectWith:WebCore::]):
  18251. * bindings/scripts/CodeGeneratorObjC.pm:
  18252. * css/StyleBase.h:
  18253. (WebCore::StyleBase::isSVGColor):
  18254. (WebCore::StyleBase::isSVGPaint):
  18255. * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
  18256. * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
  18257. * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
  18258. * ksvg2/bindings/js/JSSVGNumber.h: Removed.
  18259. * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
  18260. * ksvg2/bindings/js/JSSVGPoint.h: Removed.
  18261. * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
  18262. * ksvg2/bindings/js/JSSVGRect.h: Removed.
  18263. * ksvg2/svg/SVGColor.h:
  18264. (WebCore::SVGColor::isSVGColor):
  18265. * ksvg2/svg/SVGFECompositeElement.idl:
  18266. * ksvg2/svg/SVGFEFloodElement.idl:
  18267. * ksvg2/svg/SVGLocatable.idl:
  18268. * ksvg2/svg/SVGMarkerElement.idl:
  18269. * ksvg2/svg/SVGPaint.h:
  18270. (WebCore::SVGPaint::isSVGPaint):
  18271. * ksvg2/svg/SVGRectElement.idl:
  18272. * ksvg2/svg/SVGZoomEvent.idl: Removed.
  18273. 2006-10-17 David Hyatt <hyatt@apple.com>
  18274. Prepare for the elimination of the RenderLayer for <html> elements. The layer is still present,
  18275. but this patch makes everything work without a root layer being around.
  18276. Reviewed by beth
  18277. * rendering/RenderBlock.cpp:
  18278. (WebCore::RenderBlock::paint):
  18279. (WebCore::RenderBlock::paintChildren):
  18280. (WebCore::RenderBlock::nodeAtPoint):
  18281. * rendering/RenderLayer.cpp:
  18282. (WebCore::frameVisibleRect):
  18283. (WebCore::RenderLayer::hitTest):
  18284. (WebCore::RenderLayer::hitTestLayer):
  18285. (WebCore::RenderLayer::intersectsDamageRect):
  18286. * rendering/RenderObject.cpp:
  18287. (WebCore::RenderObject::setInnerNode):
  18288. * rendering/RenderView.cpp:
  18289. (WebCore::RenderView::paint):
  18290. 2006-10-17 David Hyatt <hyatt@apple.com>
  18291. Back out my previous patch to the WebCore memory cache.
  18292. * loader/Cache.cpp:
  18293. (WebCore::Cache::flush):
  18294. (WebCore::Cache::setSize):
  18295. (WebCore::Cache::getLRUListFor):
  18296. (WebCore::Cache::removeFromLRUList):
  18297. (WebCore::Cache::insertInLRUList):
  18298. * loader/Cache.h:
  18299. * loader/CachedCSSStyleSheet.cpp:
  18300. (WebCore::CachedCSSStyleSheet::deref):
  18301. * loader/CachedCSSStyleSheet.h:
  18302. * loader/CachedImage.cpp:
  18303. (WebCore::CachedImage::deref):
  18304. * loader/CachedImage.h:
  18305. * loader/CachedResource.cpp:
  18306. (WebCore::CachedResource::setRequest):
  18307. (WebCore::CachedResource::deref):
  18308. * loader/CachedResource.h:
  18309. (WebCore::CachedResource::allowInLRUList):
  18310. * loader/CachedScript.cpp:
  18311. (WebCore::CachedScript::deref):
  18312. * loader/CachedScript.h:
  18313. * loader/CachedXBLDocument.cpp:
  18314. (WebCore::CachedXBLDocument::deref):
  18315. * loader/CachedXBLDocument.h:
  18316. * loader/CachedXSLStyleSheet.cpp:
  18317. (WebCore::CachedXSLStyleSheet::deref):
  18318. * loader/CachedXSLStyleSheet.h:
  18319. 2006-10-17 Oliver Hunt <oliver@apple.com>
  18320. Reviewed by Anders.
  18321. Make north and east resize cursors use correct image
  18322. * platform/win/CursorWin.cpp:
  18323. (WebCore::eastResizeCursor):
  18324. (WebCore::northResizeCursor):
  18325. 2006-10-17 Oliver Hunt <oliver@apple.com>
  18326. Reviewed by Brady
  18327. Various cursor fixes
  18328. * page/FrameView.cpp:
  18329. (WebCore::FrameView::handleMouseMoveEvent):
  18330. * platform/Cursor.h:
  18331. * platform/mac/CursorMac.mm:
  18332. (WebCore::pointerCursor):
  18333. * platform/win/CursorWin.cpp:
  18334. (WebCore::supportsAlphaCursors):
  18335. (WebCore::Cursor::Cursor):
  18336. (WebCore::Cursor::~Cursor):
  18337. (WebCore::pointerCursor):
  18338. 2006-10-17 Justin Garcia <justin.garcia@apple.com>
  18339. Reviewed by harrison
  18340. <rdar://problem/4776665>
  18341. REGRESSION: In Mail, caret is visible when the message body isn't focused
  18342. * page/Frame.cpp:
  18343. (WebCore::Frame::paintCaret): If a caret blink timer is ever on in error
  18344. (like when the frame that contains the caret isn't focused) then we don't
  18345. want to paint the caret. We should eventually move to using a single bool
  18346. for caret painting.
  18347. 2006-10-17 Justin Garcia <justin.garcia@apple.com>
  18348. Reviewed by harrison
  18349. <rdar://problem/4774354>
  18350. REGRESSION: In Gmail, caret reappears when dragging a selection over some text in the message body
  18351. Functions call recomputCaretRect to see if the caret rect has changed,
  18352. and, if it has, they invalidate (repaint) it. recomputeCaretRect was
  18353. returning false if the caret turned into a range selection or was blown
  18354. away.
  18355. * editing/SelectionController.cpp:
  18356. (WebCore::SelectionController::recomputeCaretRect): Don't early return if
  18357. !isCaret(). Obtain the FrameView* using the m_frame pointer, because m_sel
  18358. may now be null.
  18359. 2006-10-17 Geoffrey Garen <ggaren@apple.com>
  18360. Reviewed by Brady.
  18361. BrowserExtension cleanup.
  18362. - Removed unnecessary #include of BrowserExtension in Frame.h, added
  18363. #includes to compensate in other files.
  18364. - Removed unused versions of createNewWindow.
  18365. * bindings/js/kjs_window.cpp:
  18366. * bridge/BrowserExtension.h:
  18367. * bridge/mac/BrowserExtensionMac.h:
  18368. * bridge/mac/BrowserExtensionMac.mm:
  18369. (WebCore::BrowserExtensionMac::createNewWindow):
  18370. * bridge/mac/WebCoreFrameBridge.mm:
  18371. * html/HTMLFormElement.cpp:
  18372. * loader/mac/LoaderFunctionsMac.mm:
  18373. * page/Frame.h:
  18374. * page/FramePrivate.h:
  18375. 2006-10-15 Geoffrey Garen <ggaren@apple.com>
  18376. Reviewed by Adam.
  18377. - Fixed "FIXME: Violates Liskov Substitution principle."
  18378. IFRAME was never a true subclass of FRAME, since they disagreed on a
  18379. number of behaviors, which, confusingly, IFRAME just overrode and contradicted.
  18380. The fix here is to factor out things common to IFRAME and FRAME into a
  18381. common base class, HTMLFrameElementBase.
  18382. I also changed some " *" to "* " and added #includes in files that implicitly
  18383. assumed that HTMLIFrameElement.h #included HTMLFrameElement.h.
  18384. 2006-10-16 Justin Garcia <justin.garcia@apple.com>
  18385. Reviewed by sullivan
  18386. <rdar://problem/4776765>
  18387. REGRESSION: Caret's ghost left behind after inserting a paragraph separator (11237)
  18388. We set m_needsLayout to false and call caretRect() in the hopes that it will give us
  18389. the old caret rect. It in fact corrects the caret rect for an offset that it
  18390. believes is due to scrolling but which is actually due to a change in selection
  18391. without an accompanying layout. So it returns the new caret rect regardless of
  18392. what m_needsLayout is set to.
  18393. * editing/SelectionController.cpp:
  18394. (WebCore::repaintRectForCaret): Moved the code from caretRepaintRect that
  18395. adds a one pixel slop to this new function.
  18396. (WebCore::SelectionController::caretRepaintRect): Moved this code to
  18397. repaintRectForCaret.
  18398. (WebCore::SelectionController::recomputeCaretRect): Compare the old
  18399. caret rect to the new one that's computed with a fresh layout. If
  18400. they are different, invalidate both repaint rects.
  18401. 2006-10-17 David Harrison <harrison@apple.com>
  18402. Reviewed by Adele.
  18403. <rdar://problem/4770453> VO not honoring secure edit fields in web pages
  18404. * bridge/mac/WebCoreAXObject.mm:
  18405. (-[WebCoreAXObject isPasswordField]):
  18406. New. Checks for input with inputType() of PASSWORD.
  18407. (-[WebCoreAXObject subrole]):
  18408. Returns NSAccessibilitySecureTextFieldSubrole if [self isPasswordField].
  18409. (-[WebCoreAXObject roleDescription]):
  18410. Pass [self subrole] instead of nil when calling NSAccessibilityRoleDescription.
  18411. (-[WebCoreAXObject value]):
  18412. Return nil if [self isPasswordField].
  18413. (-[WebCoreAXObject accessibilityAttributeNames]):
  18414. Return generic attributes if [self isPasswordField].
  18415. (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
  18416. Return empty array if [self isPasswordField].
  18417. 2006-10-17 David Hyatt <hyatt@apple.com>
  18418. Fix "flash to white' problem on yahoo.com as it finishes loading. Refine the FOUC suppression
  18419. code so that it will only run if the body still has no renderer.
  18420. * dom/Document.cpp:
  18421. (WebCore::Document::updateLayoutIgnorePendingStylesheets):
  18422. 2006-10-17 David Hyatt <hyatt@apple.com>
  18423. Fix a bug where the WebCore memory cache could grow without bound during extended browsing
  18424. sessions.
  18425. Reviewed by mjs
  18426. * loader/Cache.cpp:
  18427. (WebCore::Cache::flush):
  18428. (WebCore::Cache::setSize):
  18429. (WebCore::Cache::getLRUListFor):
  18430. (WebCore::Cache::removeFromLRUList):
  18431. (WebCore::Cache::insertInLRUList):
  18432. * loader/Cache.h:
  18433. * loader/CachedCSSStyleSheet.cpp:
  18434. * loader/CachedCSSStyleSheet.h:
  18435. * loader/CachedImage.cpp:
  18436. * loader/CachedImage.h:
  18437. * loader/CachedResource.cpp:
  18438. (WebCore::CachedResource::setRequest):
  18439. (WebCore::CachedResource::deref):
  18440. * loader/CachedResource.h:
  18441. (WebCore::CachedResource::allowInLRUList):
  18442. * loader/CachedScript.cpp:
  18443. * loader/CachedScript.h:
  18444. * loader/CachedXBLDocument.cpp:
  18445. * loader/CachedXBLDocument.h:
  18446. * loader/CachedXSLStyleSheet.cpp:
  18447. * loader/CachedXSLStyleSheet.h:
  18448. 2006-10-13 Justin Garcia <justin.garcia@apple.com>
  18449. Reviewed by harrison
  18450. <rdar://problem/3655385>
  18451. Editing: -indent: method unimplemented
  18452. Added Frame and bridge methods.
  18453. * bridge/mac/WebCoreFrameBridge.h:
  18454. * bridge/mac/WebCoreFrameBridge.mm:
  18455. (-[WebCoreFrameBridge indent]):
  18456. (-[WebCoreFrameBridge outdent]):
  18457. * page/Frame.cpp:
  18458. (WebCore::Frame::indent):
  18459. (WebCore::Frame::outdent):
  18460. * page/Frame.h:
  18461. 2006-10-16 Adam Roben <aroben@apple.com>
  18462. Reviewed by John.
  18463. More menulist cleanup/tweaking.
  18464. * html/HTMLSelectElement.cpp:
  18465. (WebCore::HTMLSelectElement::setSelectedIndex): Renamed 'index'
  18466. parameter to 'optionIndex' for clarity.
  18467. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Skip over
  18468. items that are not enabled <option> elements when using arrow keys, and
  18469. make sure we pass an option index to setSelectedIndex.
  18470. * platform/PopupMenu.h:
  18471. (WebCore::PopupMenu::setWasClicked): Specify default argument.
  18472. * rendering/RenderMenuList.cpp:
  18473. (WebCore::RenderMenuList::setTextFromOption): Strip whitespace from
  18474. option text before setting the control text so that options within
  18475. <optgroup>s don't appear indented in the actual control.
  18476. 2006-10-16 Sam Weinig <sam.weinig@gmail.com>
  18477. Reviewed by Adam.
  18478. Win32 build fix.
  18479. * WebCore.vcproj/WebCore/WebCore.vcproj:
  18480. * bridge/win/BrowserExtensionWin.cpp:
  18481. (WebCore::BrowserExtensionWin::createNewWindow):
  18482. * bridge/win/FrameWin.cpp:
  18483. (WebCore::FrameWin::urlSelected):
  18484. (WebCore::FrameWin::submitForm):
  18485. (WebCore::FrameWin::createNewWindow):
  18486. * bridge/win/FrameWin.h:
  18487. * loader/loader.cpp:
  18488. (WebCore::Loader::receivedResponse):
  18489. * platform/win/GraphicsContextWin.cpp:
  18490. (WebCore::GraphicsContext::getWindowsContext):
  18491. (WebCore::GraphicsContext::releaseWindowsContext):
  18492. * platform/win/TemporaryLinkStubs.cpp:
  18493. (FrameWin::openURLRequest):
  18494. (WebCore::ServeSynchronousRequest):
  18495. (WebCore::CheckIfReloading):
  18496. (WebCore::IsResponseURLEqualToURL):
  18497. (WebCore::ResponseMIMEType):
  18498. (WebCore::ResponseIsMultipart):
  18499. (WebCore::CacheObjectExpiresTime):
  18500. (CachedResource::setResponse):
  18501. (CachedResource::setAllData):
  18502. * rendering/RenderThemeWin.cpp:
  18503. (WebCore::doneDrawing):
  18504. (WebCore::RenderThemeWin::paintButton):
  18505. (WebCore::RenderThemeWin::paintTextField):
  18506. 2006-10-16 David Hyatt <hyatt@apple.com>
  18507. Fix for bug 9347, positioned elements have the wrong containing block. This is a change from CSS2 to
  18508. CSS2.1. In the absence of any other enclosing positioned elements, the containing block for a positioned
  18509. element is the initial containing block (our RenderView).
  18510. Reviewed by mjs
  18511. Test cases added to fast/block/positioning for quirks and strict modes.
  18512. * rendering/RenderBlock.cpp:
  18513. (WebCore::RenderBlock::lowestPosition):
  18514. (WebCore::RenderBlock::rightmostPosition):
  18515. (WebCore::RenderBlock::leftmostPosition):
  18516. * rendering/RenderBox.cpp:
  18517. (WebCore::RenderBox::containingBlockHeightForPositioned):
  18518. (WebCore::RenderBox::calcAbsoluteVertical):
  18519. * rendering/RenderObject.cpp:
  18520. (WebCore::RenderObject::containingBlock):
  18521. (WebCore::RenderObject::container):
  18522. 2006-10-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  18523. Reviewed by Anders.
  18524. Misc Gdk/Linux build fixes.
  18525. * platform/gdk/BrowserExtensionGdk.h:
  18526. * platform/gdk/FrameGdk.cpp:
  18527. (WebCore::FrameGdk::submitForm):
  18528. (WebCore::FrameGdk::urlSelected):
  18529. * platform/gdk/FrameGdk.h:
  18530. * platform/gdk/RenderPopupMenuGdk.cpp:
  18531. (WebCore::PopupMenu::PopupMenu):
  18532. (WebCore::PopupMenu::~PopupMenu):
  18533. (WebCore::PopupMenu::clear):
  18534. (WebCore::PopupMenu::populate):
  18535. (WebCore::PopupMenu::show):
  18536. (WebCore::PopupMenu::hide):
  18537. (WebCore::PopupMenu::addSeparator):
  18538. (WebCore::PopupMenu::addGroupLabel):
  18539. (WebCore::PopupMenu::addOption):
  18540. * platform/gdk/RenderPopupMenuGdk.h:
  18541. * platform/gdk/RenderThemeGdk.cpp:
  18542. * platform/gdk/RenderThemeGdk.h:
  18543. (WebCore::RenderThemeGdk::RenderThemeGdk):
  18544. * platform/gdk/TemporaryLinkStubs.cpp:
  18545. (BrowserExtensionGdk::createNewWindow):
  18546. (BrowserExtensionGdk::BrowserExtensionGdk):
  18547. (BrowserExtensionGdk::setTypedIconURL):
  18548. (BrowserExtensionGdk::setIconURL):
  18549. (BrowserExtensionGdk::getHistoryLength):
  18550. (WebCore::CheckIfReloading):
  18551. (WebCore::CacheObjectExpiresTime):
  18552. (WebCore::ResponseURL):
  18553. (WebCore::IsResponseURLEqualToURL):
  18554. (WebCore::ResponseIsMultipart):
  18555. (WebCore::ResponseMIMEType):
  18556. (WebCore::CachedResource::setResponse):
  18557. (WebCore::CachedResource::setAllData):
  18558. (FileChooser::disconnectUploadControl):
  18559. * rendering/RenderTheme.h:
  18560. * rendering/RenderThemeMac.h:
  18561. 2006-10-15 Sam Weinig <sam.weinig@gmail.com>
  18562. Reviewed by Mitz.
  18563. Fix for http://bugs.webkit.org/show_bug.cgi?id=11294
  18564. Add getModifierState method to KeyboardEvent
  18565. * bindings/objc/DOMEvents.h:
  18566. * bindings/objc/DOMEvents.mm:
  18567. * bindings/objc/PublicDOMInterfaces.h:
  18568. * dom/KeyboardEvent.cpp:
  18569. (WebCore::KeyboardEvent::getModifierState):
  18570. * dom/KeyboardEvent.h:
  18571. * dom/KeyboardEvent.idl:
  18572. 2006-10-15 Nikolas Zimmermann <zimmermann@kde.org>
  18573. Reviewed and landed by ap.
  18574. Changed PlatformResponse handling for Qt. Don't just store
  18575. a QString object containing the data but a new PlatformResponseQt struct
  18576. containing data and url, and store it as pointer. This is compatible
  18577. to the OS X handling and removes the Qt plaform specific hacks from
  18578. CachedCSSStyleSheet, CachedResource & loader.
  18579. Add new file LoaderFunctionsQt, similar to LoaderFunctionsMac, and move
  18580. all methods from TemporaryLinkStubs related to loading in there, and implement
  18581. some like ServeSynchronousRequest (yay for xslt handling!).
  18582. * CMakeLists.txt:
  18583. * loader/CachedCSSStyleSheet.cpp:
  18584. (WebCore::CachedCSSStyleSheet::checkNotify):
  18585. * loader/CachedResource.h:
  18586. (WebCore::CachedResource::CachedResource):
  18587. * loader/loader.cpp:
  18588. (WebCore::Loader::receivedResponse):
  18589. * platform/ResourceLoaderClient.h:
  18590. * platform/ResourceLoaderInternal.h:
  18591. * platform/qt/FrameQt.cpp:
  18592. (WebCore::FrameQt::~FrameQt):
  18593. (WebCore::FrameQt::createEmptyDocument):
  18594. * platform/qt/FrameQt.h:
  18595. (WebCore::QtFrame):
  18596. * platform/qt/FrameQtClient.cpp:
  18597. (WebCore::FrameQtClientDefault::setFrame):
  18598. (WebCore::FrameQtClientDefault::openURL):
  18599. (WebCore::FrameQtClientDefault::loadFinished):
  18600. (WebCore::FrameQtClientDefault::receivedAllData):
  18601. * platform/qt/FrameQtClient.h:
  18602. * platform/qt/LoaderFunctionsQt.cpp: Added.
  18603. (WebCore::ServeSynchronousRequest):
  18604. (WebCore::NumberOfPendingOrLoadingRequests):
  18605. (WebCore::CheckIfReloading):
  18606. (WebCore::CheckCacheObjectStatus):
  18607. (WebCore::IsResponseURLEqualToURL):
  18608. (WebCore::ResponseURL):
  18609. (WebCore::ResponseMIMEType):
  18610. (WebCore::ResponseIsMultipart):
  18611. (WebCore::CacheObjectExpiresTime):
  18612. (WebCore::CachedResource::setResponse):
  18613. (WebCore::CachedResource::setAllData):
  18614. * platform/qt/ResourceLoaderManager.cpp:
  18615. (WebCore::ResourceLoaderManager::remove):
  18616. * platform/qt/ResourceLoaderQt.cpp:
  18617. (WebCore::ResourceLoader::~ResourceLoader):
  18618. (WebCore::ResourceLoader::start):
  18619. (WebCore::ResourceLoader::assembleResponseHeaders):
  18620. (WebCore::ResourceLoader::receivedResponse):
  18621. * platform/qt/TemporaryLinkStubs.cpp:
  18622. 2006-10-14 Rob Buis <buis@kde.org>
  18623. Reviewed by Mitz.
  18624. http://bugs.webkit.org/show_bug.cgi?id=11217
  18625. Cleanup svg coding style
  18626. Cleanup coding style in svg basic datastructure classes.
  18627. * ksvg2/svg/SVGAngle.cpp:
  18628. (WebCore::SVGAngle::valueAsString):
  18629. (WebCore::SVGAngle::context):
  18630. (WebCore::SVGAngle::setContext):
  18631. * ksvg2/svg/SVGAngle.h:
  18632. * ksvg2/svg/SVGColor.cpp:
  18633. * ksvg2/svg/SVGColor.h:
  18634. * ksvg2/svg/SVGElement.cpp:
  18635. (WebCore::SVGElement::ownerSVGElement):
  18636. (WebCore::SVGElement::viewportElement):
  18637. (WebCore::SVGElement::parseMappedAttribute):
  18638. (WebCore::SVGElement::childShouldCreateRenderer):
  18639. * ksvg2/svg/SVGElement.h:
  18640. (WebCore::svg_dynamic_cast):
  18641. * ksvg2/svg/SVGFitToViewBox.cpp:
  18642. (WebCore::SVGFitToViewBox::parseViewBox):
  18643. * ksvg2/svg/SVGFitToViewBox.h:
  18644. * ksvg2/svg/SVGLangSpace.cpp:
  18645. (WebCore::SVGLangSpace::parseMappedAttribute):
  18646. * ksvg2/svg/SVGLangSpace.h:
  18647. * ksvg2/svg/SVGLength.cpp:
  18648. (WebCore::SVGLength::SVGLength):
  18649. (WebCore::SVGLength::setValueAsString):
  18650. (WebCore::SVGLength::dpi):
  18651. (WebCore::SVGLength::updateValue):
  18652. (WebCore::SVGLength::updateValueInSpecifiedUnits):
  18653. (WebCore::SVGLength::context):
  18654. (WebCore::SVGLength::setContext):
  18655. * ksvg2/svg/SVGLength.h:
  18656. * ksvg2/svg/SVGLengthList.cpp:
  18657. * ksvg2/svg/SVGLengthList.h:
  18658. * ksvg2/svg/SVGLocatable.cpp:
  18659. (WebCore::SVGLocatable::nearestViewportElement):
  18660. (WebCore::SVGLocatable::farthestViewportElement):
  18661. (WebCore::SVGLocatable::getBBox):
  18662. (WebCore::SVGLocatable::getCTM):
  18663. (WebCore::SVGLocatable::getScreenCTM):
  18664. * ksvg2/svg/SVGNumberList.cpp:
  18665. * ksvg2/svg/SVGNumberList.h:
  18666. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  18667. (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
  18668. (WebCore::SVGPreserveAspectRatio::getCTM):
  18669. * ksvg2/svg/SVGPreserveAspectRatio.h:
  18670. * ksvg2/svg/SVGStringList.cpp:
  18671. (WebCore::SVGStringList::reset):
  18672. * ksvg2/svg/SVGStringList.h:
  18673. * ksvg2/svg/SVGStylable.cpp:
  18674. * ksvg2/svg/SVGStylable.h:
  18675. * ksvg2/svg/SVGTests.cpp:
  18676. (WebCore::SVGTests::requiredFeatures):
  18677. (WebCore::SVGTests::requiredExtensions):
  18678. (WebCore::SVGTests::systemLanguage):
  18679. (WebCore::SVGTests::isValid):
  18680. (WebCore::SVGTests::parseMappedAttribute):
  18681. * ksvg2/svg/SVGTests.h:
  18682. * ksvg2/svg/SVGTransformable.cpp:
  18683. (WebCore::SVGTransformable::parseTransformAttribute):
  18684. * ksvg2/svg/SVGTransformable.h:
  18685. * ksvg2/svg/SVGURIReference.cpp:
  18686. (WebCore::SVGURIReference::parseMappedAttribute):
  18687. * ksvg2/svg/SVGZoomAndPan.cpp:
  18688. (WebCore::SVGZoomAndPan::parseMappedAttribute):
  18689. * ksvg2/svg/SVGZoomAndPan.h:
  18690. 2006-10-15 Nikolas Zimmermann <zimmermann@kde.org>
  18691. Reviewed by Oliver.
  18692. Implement some functions in FrameQt / ScrollViewQt.
  18693. Added comments what needs to be done in quite some places,
  18694. marked some functions as no-ops.
  18695. * CMakeLists.txt:
  18696. * platform/qt/FrameQt.cpp:
  18697. (WebCore::FrameQt::FrameQt):
  18698. (WebCore::FrameQt::runJavaScriptConfirm):
  18699. (WebCore::FrameQt::locationbarVisible):
  18700. (WebCore::FrameQt::createFrame):
  18701. (WebCore::FrameQt::passSubframeEventToSubframe):
  18702. (WebCore::FrameQt::menubarVisible):
  18703. (WebCore::FrameQt::personalbarVisible):
  18704. (WebCore::FrameQt::statusbarVisible):
  18705. (WebCore::FrameQt::toolbarVisible):
  18706. (WebCore::FrameQt::markedTextRange):
  18707. (WebCore::FrameQt::lastEventIsMouseUp):
  18708. (WebCore::FrameQt::openURLRequest):
  18709. (WebCore::FrameQt::scheduleClose):
  18710. (WebCore::FrameQt::unfocusWindow):
  18711. (WebCore::FrameQt::focusWindow):
  18712. (WebCore::FrameQt::overrideMediaType):
  18713. (WebCore::FrameQt::runJavaScriptPrompt):
  18714. (WebCore::FrameQt::bindingRootObject):
  18715. (WebCore::FrameQt::addPluginRootObject):
  18716. (WebCore::FrameQt::registerCommandForUndo):
  18717. (WebCore::FrameQt::registerCommandForRedo):
  18718. (WebCore::FrameQt::clearUndoRedoOperations):
  18719. (WebCore::FrameQt::respondToChangedSelection):
  18720. (WebCore::FrameQt::respondToChangedContents):
  18721. (WebCore::FrameQt::shouldChangeSelection):
  18722. (WebCore::FrameQt::canGoBackOrForward):
  18723. (WebCore::FrameQt::canPaste):
  18724. (WebCore::FrameQt::canRedo):
  18725. (WebCore::FrameQt::canUndo):
  18726. * platform/qt/FrameQt.h:
  18727. * platform/qt/FrameQtClient.cpp:
  18728. (WebCore::FrameQtClientDefault::runJavaScriptAlert):
  18729. (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
  18730. (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
  18731. (WebCore::FrameQtClientDefault::menubarVisible):
  18732. (WebCore::FrameQtClientDefault::toolbarVisible):
  18733. (WebCore::FrameQtClientDefault::statusbarVisible):
  18734. (WebCore::FrameQtClientDefault::personalbarVisible):
  18735. (WebCore::FrameQtClientDefault::locationbarVisible):
  18736. * platform/qt/FrameQtClient.h:
  18737. * platform/qt/ImageSourceQt.cpp:
  18738. * platform/qt/RenderThemeQt.cpp:
  18739. * platform/qt/ScrollViewQt.cpp:
  18740. (WebCore::ScrollView::scrollPointRecursively):
  18741. * platform/qt/TemporaryLinkStubs.cpp:
  18742. (WebCore::CachedResource::setResponse):
  18743. (WebCore::CachedResource::setAllData):
  18744. 2006-10-14 David Harrison <harrison@apple.com>
  18745. Reviewed by Geoff.
  18746. <rdar://problem/4775213> REGRESSION: Can't from tab from last link on the page to URL address field
  18747. <rdar://problem/4783926> REGRESSION: Typing tab key enters no text
  18748. The problem is that EventTargetNode::defaultEventHandler() calls event->setDefaultHandled() regardless
  18749. of whether frame->view()->advanceFocus() actually changed the focus.
  18750. Trivial fix is to preventDefault() only if advanceFocus() returns true.
  18751. * No test is possible because DumpRenderTree sets the WebView preference to
  18752. tab to links, and that preference cannot be changed dynamically after
  18753. the webview is initialized. Also, the "tab from last link" is not testable
  18754. because DumpRenderTree uses the WebView for the whole window, so tabs can't
  18755. shift focus out of the WebView regardless.
  18756. * dom/EventTargetNode.cpp:
  18757. (WebCore::EventTargetNode::defaultEventHandler):
  18758. 2006-10-14 Nikolas Zimmermann <zimmermann@kde.org>
  18759. Reviewed by Mitz.
  18760. Fix Qt/Linux build & some little fixes:
  18761. - Adapt to Maciej's FrameLoadRequest changes.
  18762. - Fix response handling - don't try to compare with '0' - for us it's a non-ptr QString object.
  18763. - Actually call setAllData from loader/loader.cpp (David Carson forgot that in his last commit)
  18764. - Fix CacheObjectExpiresTime/ResponseIsMultipart signature.
  18765. * loader/CachedCSSStyleSheet.cpp:
  18766. (WebCore::CachedCSSStyleSheet::checkNotify):
  18767. * loader/CachedResource.h:
  18768. (WebCore::CachedResource::CachedResource):
  18769. * loader/loader.cpp:
  18770. (WebCore::Loader::receivedAllData):
  18771. (WebCore::Loader::receivedResponse):
  18772. * platform/qt/BrowserExtensionQt.cpp:
  18773. (WebCore::BrowserExtensionQt::createNewWindow):
  18774. * platform/qt/BrowserExtensionQt.h:
  18775. * platform/qt/FrameQt.cpp:
  18776. (WebCore::FrameQt::submitForm):
  18777. (WebCore::FrameQt::urlSelected):
  18778. (WebCore::FrameQt::openURLRequest):
  18779. * platform/qt/FrameQt.h:
  18780. * platform/qt/GraphicsContextQt.cpp:
  18781. (WebCore::GraphicsContext::setURLForRect):
  18782. * platform/qt/TemporaryLinkStubs.cpp:
  18783. (WebCore::CacheObjectExpiresTime):
  18784. (WebCore::ResponseIsMultipart):
  18785. (WebCore::CachedResource::setResponse):
  18786. (WebCore::CachedResource::setAllData):
  18787. 2006-10-14 David Carson <dacarson@gmail.com>
  18788. Reviewed by Maciej.
  18789. Fix: http://bugs.webkit.org/show_bug.cgi?id=11257
  18790. Removed Mac platform dependance, changed WebCore functions to
  18791. use PlatformResponse/PlatformData rather than NSURLResponse/
  18792. NSData.
  18793. * loader/CachedCSSStyleSheet.cpp:
  18794. (WebCore::CachedCSSStyleSheet::checkNotify):
  18795. * loader/CachedImage.cpp:
  18796. (WebCore::CachedImage::createImage):
  18797. * loader/CachedResource.cpp:
  18798. (WebCore::CachedResource::~CachedResource):
  18799. * loader/CachedResource.h:
  18800. (WebCore::CachedResource::CachedResource):
  18801. (WebCore::CachedResource::response):
  18802. (WebCore::CachedResource::allData):
  18803. * loader/LoaderFunctions.h:
  18804. * loader/loader.cpp:
  18805. (WebCore::Loader::receivedResponse):
  18806. * loader/mac/LoaderFunctionsMac.mm:
  18807. (WebCore::ResponseMIMEType):
  18808. (WebCore::ResponseIsMultipart):
  18809. (WebCore::CacheObjectExpiresTime):
  18810. (WebCore::CachedResource::setResponse):
  18811. (WebCore::CachedResource::setAllData):
  18812. * platform/qt/TemporaryLinkStubs.cpp:
  18813. (WebCore::CacheObjectExpiresTime):
  18814. (WebCore::ResponseIsMultipart):
  18815. (WebCore::ResponseMIMEType):
  18816. (WebCore::CachedResource::setResponse):
  18817. (WebCore::CachedResource::setAllData):
  18818. * platform/win/TemporaryLinkStubs.cpp:
  18819. (WebCore::CacheObjectExpiresTime):
  18820. (WebCore::ResponseIsMultipart):
  18821. (WebCore::ResponseMIMEType):
  18822. (WebCore::CachedResource::setResponse):
  18823. (WebCore::CachedResource::setAllData):
  18824. 2006-10-14 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  18825. Reviewed by Maciej.
  18826. Fix GDK build by defining FrameGdkClient() constructor as non-virtual.
  18827. Pure virtual classes require non-pure destructor, who knew.
  18828. Make CURL networking dependent on USE(CURL) instead of PLATFORM(GDK),
  18829. so that other platforms can also use CURL, if they wish.
  18830. Silence compiler warning about unused variable in SharedTimerLinux.cpp
  18831. * platform/ResourceLoaderInternal.h:
  18832. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  18833. * platform/gdk/FrameGdk.h:
  18834. (WebCore::FrameGdkClient::~FrameGdkClient):
  18835. * platform/gdk/ResourceLoaderManager.cpp:
  18836. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  18837. * platform/gdk/SharedTimerLinux.cpp:
  18838. (WebCore::stopSharedTimer):
  18839. 2006-10-13 Beth Dakin <bdakin@apple.com>
  18840. Reviewed by Geoff.
  18841. Build fix from my last check-in. Make hasOutlineAnnotation() non-
  18842. inline so that we don't have to include Document.h in
  18843. RenderObject.h
  18844. Doing so causes a build failure in WebKit, and it probably isn't a
  18845. good idea anyway.
  18846. * rendering/RenderObject.cpp:
  18847. (WebCore::RenderObject::hasOutlineAnnotation):
  18848. * rendering/RenderObject.h:
  18849. (WebCore::RenderObject::hasOutline):
  18850. 2006-10-13 Beth Dakin <bdakin@apple.com>
  18851. Patch written mostly by Ken Kraisler, but also by me.
  18852. Reviewed by Hyatt.
  18853. Fix for http://bugs.webkit.org/show_bug.cgi?id=10216 and <rdar://
  18854. problem/3391162> PDF created by printing should have live
  18855. hyperlinks
  18856. * platform/GraphicsContext.cpp:
  18857. (WebCore::GraphicsContext::focusRingBoundingRect):
  18858. * platform/GraphicsContext.h:
  18859. * platform/cairo/GraphicsContextCairo.cpp:
  18860. (WebCore::GraphicsContext::setURLForRect):
  18861. * platform/cg/GraphicsContextCG.cpp:
  18862. (WebCore::GraphicsContext::setURLForRect): Implement method to add
  18863. URL link to PDF document.
  18864. * rendering/InlineFlowBox.cpp:
  18865. (WebCore::InlineFlowBox::paint): Ask hasOutline() instead of
  18866. querying the outline width
  18867. * rendering/RenderBlock.cpp:
  18868. (WebCore::RenderBlock::paintObject): Same as above.
  18869. * rendering/RenderFlow.cpp:
  18870. (WebCore::RenderFlow::paintLines): Call the new paintOutline()
  18871. (WebCore::RenderFlow::paintOutline): Take care of focus ring and
  18872. pdf url rects, and outline painting.
  18873. * rendering/RenderFlow.h:
  18874. * rendering/RenderObject.cpp:
  18875. (WebCore::RenderObject::addPDFURLRect): Declaration to apply a PDF
  18876. link to a rectanglular region.
  18877. (WebCore::RenderObject::paintOutline): Take care of pdf rects as
  18878. well as focus ring painting.
  18879. * rendering/RenderObject.h:
  18880. (WebCore::RenderObject::hasOutlineAnnotation): Returns true is the
  18881. element is a link and we are printing.
  18882. (WebCore::RenderObject::hasOutline): Returns true is the style has
  18883. an outline and hasOutlineAnnotation() is true.
  18884. * rendering/RenderStyle.h:
  18885. (WebCore::RenderStyle::hasOutline): Returns true if outlineWidth is
  18886. greater than 0 and outlineStyle is greater than BHIDDEN.
  18887. 2006-10-13 Justin Garcia <justin.garcia@apple.com>
  18888. Reviewed by ggaren and harrison
  18889. <rdar://problem/4744008>
  18890. 9A270: Mail crashes when I try to paste large items from Safari
  18891. * editing/ReplaceSelectionCommand.cpp:
  18892. (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
  18893. Even though we put nodes in the hash map in pre-order, they don't necessary
  18894. come out of the iterator that way. If a node is a redundant style span
  18895. and one of its pruned ancestors comes off the hash map after it, and that
  18896. ancestor is a redundant style span or font tag, we will try to remove it
  18897. even though it has already been removed and we'll crash.
  18898. The test case added with the fix depends on our hash map implementation
  18899. because it requires that a particular redundant style span come out of
  18900. the iterator before its parent. So, it may eventually not provide
  18901. coverage for the fix.
  18902. 2006-10-13 Maciej Stachowiak <mjs@apple.com>
  18903. Reviewed by Darin.
  18904. - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
  18905. * WebCore.xcodeproj/project.pbxproj:
  18906. * bindings/js/kjs_window.cpp:
  18907. (KJS::createNewWindow):
  18908. (KJS::WindowFunc::callAsFunction):
  18909. * bridge/BrowserExtension.h:
  18910. * bridge/mac/BrowserExtensionMac.h:
  18911. * bridge/mac/BrowserExtensionMac.mm:
  18912. (WebCore::BrowserExtensionMac::createNewWindow):
  18913. * bridge/mac/FrameMac.h:
  18914. * bridge/mac/FrameMac.mm:
  18915. (WebCore::FrameMac::submitForm):
  18916. (WebCore::FrameMac::openURLRequest):
  18917. (WebCore::FrameMac::urlSelected):
  18918. * bridge/win/BrowserExtensionWin.h:
  18919. * page/Frame.cpp:
  18920. (WebCore::Frame::changeLocation):
  18921. (WebCore::Frame::urlSelected):
  18922. (WebCore::Frame::requestFrame):
  18923. (WebCore::Frame::submitForm):
  18924. * page/Frame.h:
  18925. * page/FrameLoadRequest.h: Added.
  18926. (WebCore::FrameLoadRequest::FrameLoadRequest):
  18927. (WebCore::FrameLoadRequest::lockHistory):
  18928. (WebCore::FrameLoadRequest::setLockHistory):
  18929. * page/ResourceRequest.h:
  18930. (WebCore::ResourceRequest::ResourceRequest):
  18931. 2006-10-13 John Sullivan <sullivan@apple.com>
  18932. Reviewed by Maciej
  18933. * loader/mac/WebFrameLoader.mm:
  18934. (-[WebFrameLoader loadDocumentLoader:]):
  18935. Replace ASSERT(!policyDocumentLoader) with code that handles this case. This can
  18936. happen when loading a page during a decidePolicyForNavigationAction callback.
  18937. 2006-10-13 Dave Hyatt <hyatt@apple.com>
  18938. Transparency layer work.
  18939. Reviewed by aroben
  18940. * platform/GraphicsContext.h:
  18941. * platform/cg/GraphicsContextCG.cpp:
  18942. (WebCore::GraphicsContext::beginTransparencyLayer):
  18943. (WebCore::GraphicsContext::endTransparencyLayer):
  18944. * platform/cg/GraphicsContextPlatformPrivate.h:
  18945. (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
  18946. (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
  18947. 2006-10-13 Rob Buis <buis@kde.org>
  18948. Reviewed by Mitz.
  18949. http://bugs.webkit.org/show_bug.cgi?id=11217
  18950. Cleanup svg coding style
  18951. Cleanup coding style in svg paint server classes.
  18952. * ksvg2/svg/SVGGradientElement.cpp:
  18953. (WebCore::SVGGradientElement::SVGGradientElement):
  18954. (WebCore::SVGGradientElement::parseMappedAttribute):
  18955. (WebCore::SVGGradientElement::notifyAttributeChange):
  18956. (WebCore::SVGGradientElement::canvasResource):
  18957. (WebCore::SVGGradientElement::rebuildStops):
  18958. * ksvg2/svg/SVGGradientElement.h:
  18959. * ksvg2/svg/SVGLinearGradientElement.cpp:
  18960. (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
  18961. (WebCore::SVGLinearGradientElement::parseMappedAttribute):
  18962. (WebCore::SVGLinearGradientElement::buildGradient):
  18963. * ksvg2/svg/SVGLinearGradientElement.h:
  18964. * ksvg2/svg/SVGPatternElement.cpp:
  18965. (WebCore::SVGPatternElement::SVGPatternElement):
  18966. (WebCore::SVGPatternElement::parseMappedAttribute):
  18967. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  18968. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  18969. (WebCore::SVGPatternElement::notifyClientsToRepaint):
  18970. (WebCore::SVGPatternElement::notifyAttributeChange):
  18971. (WebCore::SVGPatternElement::canvasResource):
  18972. (WebCore::SVGPatternElement::getCTM):
  18973. * ksvg2/svg/SVGPatternElement.h:
  18974. (WebCore::SVGPatternElement::rendererIsNeeded):
  18975. * ksvg2/svg/SVGRadialGradientElement.cpp:
  18976. (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
  18977. (WebCore::SVGRadialGradientElement::parseMappedAttribute):
  18978. (WebCore::SVGRadialGradientElement::buildGradient):
  18979. * ksvg2/svg/SVGRadialGradientElement.h:
  18980. * ksvg2/svg/SVGStopElement.cpp:
  18981. (WebCore::SVGStopElement::SVGStopElement):
  18982. (WebCore::SVGStopElement::parseMappedAttribute):
  18983. * ksvg2/svg/SVGStopElement.h:
  18984. 2006-10-13 Geoffrey Garen <ggaren@apple.com>
  18985. Reviewed by Darin, John.
  18986. - Merged more frame and iframe code
  18987. - Fixed a bug where iframes returned incorrect values for renderer-dependent
  18988. properties during javascript: loads because they didn't have renderers at
  18989. load time
  18990. PLT insists this is a small performance win. Don't believe its lies.
  18991. * bindings/js/kjs_html.cpp:
  18992. (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
  18993. width and height, for consistency with the rest of the DOM.
  18994. * dom/ContainerNode.cpp:
  18995. (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
  18996. queue that gets drained after the render tree is fully constructed. Currently,
  18997. this is only used for frame loading.
  18998. (WebCore::ContainerNode::attach):
  18999. * dom/ContainerNode.h:
  19000. * html/HTMLFrameElement.cpp:
  19001. (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
  19002. attach() because loading iframes during attach() causes a crash.
  19003. Moved frame loading logic into insertedIntoDocument(). That's a more
  19004. logical place for it because document insertion is what
  19005. triggers frame loading. Made frame loading a post-attach callback, instead
  19006. of an immediate action, to fix the incorrect values bug.
  19007. (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
  19008. in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon
  19009. require this call, once I remove the call from WebKit.
  19010. (WebCore::HTMLFrameElement::setLocation):
  19011. (WebCore::HTMLFrameElement::width):
  19012. (WebCore::HTMLFrameElement::height):
  19013. * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
  19014. killing of puppies.
  19015. * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
  19016. (WebCore::HTMLIFrameElement::rendererIsNeeded):
  19017. (WebCore::HTMLIFrameElement::createRenderer):
  19018. (WebCore::HTMLIFrameElement::insertedIntoDocument):
  19019. (WebCore::HTMLIFrameElement::removedFromDocument):
  19020. (WebCore::HTMLIFrameElement::attach):
  19021. * page/FrameView.h: Removed unused method.
  19022. 2006-10-13 David Harrison <harrison@apple.com>
  19023. Reviewed by Justin.
  19024. <rdar://problem/4746860> Mail crash in WebCore::CSSMutableStyleDeclaration::merge(WebCore::CSSMutableStyleDeclaration*, bool)
  19025. Tests added or changed:
  19026. * editing/style/style-boundary-005.html: Added. Matches steps from bug.
  19027. * editing/execCommand/hilitecolor-expected.txt: Updated (no empty Apple style spans).
  19028. * editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Updated (no empty Apple style spans).
  19029. * editing/style/remove-underline-in-bold-expected.txt: Updated (no empty Apple style spans).
  19030. * editing/style/typing-style-003-expected.txt: Updated (no empty Apple style spans).
  19031. * dom/Text.cpp:
  19032. (WebCore::Text::splitText):
  19033. Comment changes.
  19034. * editing/ApplyStyleCommand.cpp:
  19035. (WebCore::isUnstyledStyleSpan):
  19036. Renamed from isEmptyStyleSpan.
  19037. (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
  19038. Rename emptySpans local to unstyledSpans.
  19039. (WebCore::dummySpanAncestorForNode):
  19040. New. To locate Apple style span created when splitting a text node.
  19041. (WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
  19042. Renamed from cleanUpEmptyStyleSpans. Algorithm changed to scan children
  19043. of dummy span's parents, rather than traversing up from start and
  19044. end locations. Old algorithm would miss empty spans in the bug case.
  19045. (WebCore::ApplyStyleCommand::applyInlineStyle):
  19046. Use dummySpanAncestorForNode() and cleanupUnstyledAppleStyleSpans().
  19047. (WebCore::ApplyStyleCommand::removeCSSStyle):
  19048. Renamed isEmptyStyleSpan() to isUnstyledStyleSpan().
  19049. (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
  19050. Comment changes.
  19051. * editing/ApplyStyleCommand.h:
  19052. Renamed cleanUpEmptyStyleSpans() to cleanupUnstyledAppleStyleSpans().
  19053. * editing/ReplaceSelectionCommand.cpp:
  19054. (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
  19055. Allow for Apple style span to be unstyled, because old email may have this in the DOM.
  19056. Use !node->hasChildNodes() instead of !node->firstChild().
  19057. * editing/SplitTextNodeCommand.cpp:
  19058. (WebCore::SplitTextNodeCommand::doApply):
  19059. Comment changes.
  19060. * rendering/RenderTreeAsText.cpp:
  19061. (WebCore::isEmptyOrUnstyledAppleStyleSpan):
  19062. (WebCore::operator<<):
  19063. Flag empty or unstyled AppleStyleSpa nbecause we never want to leave them in the DOM
  19064. 2006-10-13 Nikolas Zimmermann <zimmermann@kde.org>
  19065. Reviewed by Eric.
  19066. Fix Qt/Linux build after Adele's popup menu changes.
  19067. * CMakeLists.txt:
  19068. * platform/qt/FileChooserQt.cpp:
  19069. (WebCore::FileChooser::disconnectUploadControl):
  19070. * platform/qt/PopupMenuQt.cpp: Added.
  19071. (WebCore::PopupMenu::PopupMenu):
  19072. (WebCore::PopupMenu::~PopupMenu):
  19073. (WebCore::PopupMenu::clear):
  19074. (WebCore::PopupMenu::populate):
  19075. (WebCore::PopupMenu::show):
  19076. (WebCore::PopupMenu::hide):
  19077. (WebCore::PopupMenu::addSeparator):
  19078. (WebCore::PopupMenu::addGroupLabel):
  19079. (WebCore::PopupMenu::addOption):
  19080. * platform/qt/RenderPopupMenuQt.cpp: Removed.
  19081. * platform/qt/RenderPopupMenuQt.h: Removed.
  19082. * platform/qt/RenderThemeQt.cpp:
  19083. 2006-10-13 Kevin McCullough <KMcCullough@apple.com>
  19084. Reviewed by Darin.
  19085. fixed build failure
  19086. * WebCore.xcodeproj/project.pbxproj:
  19087. * loader/mac/WebFrameLoader.mm:
  19088. 2006-10-13 Darin Adler <darin@apple.com>
  19089. Reviewed by Adele.
  19090. - converted WebFormState from Objective-C to C++
  19091. * WebCore.exp: Added a new symbol, changed one symbol from C to C++.
  19092. * WebCore.xcodeproj/project.pbxproj: Made lots of headers "private" instead of "project".
  19093. Added UChar.h and FrameLoaderTypes.h.
  19094. * loader/FrameLoaderTypes.h: Added. Has enums from WebFrameLoader.h.
  19095. * loader/mac/WebFormState.h: Converted class to C++.
  19096. * loader/mac/WebFormState.mm: Ditto.
  19097. * loader/mac/WebFrameLoader.h:
  19098. * loader/mac/WebFrameLoader.mm:
  19099. (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
  19100. (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
  19101. (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
  19102. (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
  19103. (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
  19104. (-[WebFrameLoader continueAfterNewWindowPolicy:]):
  19105. (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
  19106. (-[WebFrameLoader continueAfterNavigationPolicy:]):
  19107. (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
  19108. (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
  19109. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  19110. (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  19111. Changed Objective-C WebFormState uses to C++ WebCore::FormState.
  19112. 2006-10-13 Adele Peterson <adele@apple.com>
  19113. Reviewed by Maciej.
  19114. - Fix for <rdar://problem/4768591> REGRESSION: List box selection color should just be a darker version of regular selection color
  19115. * rendering/RenderListBox.cpp:
  19116. (WebCore::RenderListBox::paintItemForeground):
  19117. * rendering/RenderTheme.cpp:
  19118. (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
  19119. (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
  19120. (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
  19121. (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
  19122. * rendering/RenderThemeMac.h:
  19123. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
  19124. 2006-10-13 Rob Buis <buis@kde.org>
  19125. Reviewed by Mitz.
  19126. http://bugs.webkit.org/show_bug.cgi?id=11217
  19127. Cleanup svg coding style
  19128. Cleanup coding style in svg structure classes.
  19129. * ksvg2/svg/SVGDefsElement.cpp:
  19130. (WebCore::SVGDefsElement::SVGDefsElement):
  19131. * ksvg2/svg/SVGDefsElement.h:
  19132. * ksvg2/svg/SVGDescElement.cpp:
  19133. (WebCore::SVGDescElement::SVGDescElement):
  19134. * ksvg2/svg/SVGDescElement.h:
  19135. * ksvg2/svg/SVGDocument.cpp:
  19136. * ksvg2/svg/SVGDocument.h:
  19137. * ksvg2/svg/SVGElementInstance.cpp:
  19138. (WebCore::SVGElementInstance::SVGElementInstance):
  19139. (WebCore::SVGElementInstance::correspondingElement):
  19140. (WebCore::SVGElementInstance::correspondingUseElement):
  19141. (WebCore::SVGElementInstance::parentNode):
  19142. (WebCore::SVGElementInstance::childNodes):
  19143. (WebCore::SVGElementInstance::previousSibling):
  19144. (WebCore::SVGElementInstance::nextSibling):
  19145. (WebCore::SVGElementInstance::firstChild):
  19146. (WebCore::SVGElementInstance::lastChild):
  19147. * ksvg2/svg/SVGElementInstance.h:
  19148. * ksvg2/svg/SVGElementInstanceList.cpp:
  19149. * ksvg2/svg/SVGElementInstanceList.h:
  19150. * ksvg2/svg/SVGGElement.cpp:
  19151. (WebCore::SVGGElement::SVGGElement):
  19152. (WebCore::SVGGElement::parseMappedAttribute):
  19153. (WebCore::SVGDummyElement::SVGDummyElement):
  19154. * ksvg2/svg/SVGGElement.h:
  19155. (WebCore::SVGGElement::rendererIsNeeded):
  19156. * ksvg2/svg/SVGImageElement.cpp:
  19157. (WebCore::SVGImageElement::createRenderer):
  19158. * ksvg2/svg/SVGImageElement.h:
  19159. * ksvg2/svg/SVGSVGElement.cpp:
  19160. (WebCore::SVGSVGElement::SVGSVGElement):
  19161. (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
  19162. (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
  19163. (WebCore::SVGSVGElement::currentScale):
  19164. (WebCore::SVGSVGElement::setCurrentScale):
  19165. (WebCore::SVGSVGElement::currentTranslate):
  19166. (WebCore::SVGSVGElement::parseMappedAttribute):
  19167. (WebCore::SVGSVGElement::suspendRedraw):
  19168. (WebCore::SVGSVGElement::unsuspendRedraw):
  19169. (WebCore::SVGSVGElement::unsuspendRedrawAll):
  19170. (WebCore::SVGSVGElement::forceRedraw):
  19171. (WebCore::SVGSVGElement::getIntersectionList):
  19172. (WebCore::SVGSVGElement::getEnclosureList):
  19173. (WebCore::SVGSVGElement::checkIntersection):
  19174. (WebCore::SVGSVGElement::checkEnclosure):
  19175. (WebCore::SVGSVGElement::deselectAll):
  19176. (WebCore::SVGSVGElement::createSVGLength):
  19177. (WebCore::SVGSVGElement::createSVGAngle):
  19178. (WebCore::SVGSVGElement::createSVGMatrix):
  19179. (WebCore::SVGSVGElement::createSVGTransform):
  19180. (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
  19181. (WebCore::SVGSVGElement::getCTM):
  19182. (WebCore::SVGSVGElement::getScreenCTM):
  19183. (WebCore::SVGSVGElement::setCurrentTime):
  19184. * ksvg2/svg/SVGSVGElement.h:
  19185. (WebCore::SVGSVGElement::rendererIsNeeded):
  19186. * ksvg2/svg/SVGSwitchElement.cpp:
  19187. (WebCore::SVGSwitchElement::SVGSwitchElement):
  19188. (WebCore::SVGSwitchElement::childShouldCreateRenderer):
  19189. * ksvg2/svg/SVGSwitchElement.h:
  19190. (WebCore::SVGSwitchElement::rendererIsNeeded):
  19191. * ksvg2/svg/SVGSymbolElement.cpp:
  19192. (WebCore::SVGSymbolElement::SVGSymbolElement):
  19193. (WebCore::SVGSymbolElement::parseMappedAttribute):
  19194. * ksvg2/svg/SVGSymbolElement.h:
  19195. (WebCore::SVGSymbolElement::shouldAttachChild):
  19196. * ksvg2/svg/SVGTitleElement.cpp:
  19197. (WebCore::SVGTitleElement::SVGTitleElement):
  19198. * ksvg2/svg/SVGTitleElement.h:
  19199. * ksvg2/svg/SVGUseElement.cpp:
  19200. (WebCore::SVGUseElement::parseMappedAttribute):
  19201. (WebCore::SVGUseElement::closeRenderer):
  19202. * ksvg2/svg/SVGUseElement.h:
  19203. (WebCore::SVGUseElement::rendererIsNeeded):
  19204. 2006-10-12 Adele Peterson <adele@apple.com>
  19205. Reviewed by Anders.
  19206. - Fix for http://bugs.webkit.org/show_bug.cgi?id=11172
  19207. REGRESSION (NativeListBox): OPTION text paints over the edge of the select element at http://jobs.apple.com/
  19208. Test: fast/forms/listbox-width-change.html
  19209. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement):
  19210. When the options change, call setNeedsLayoutAndMinMaxRecalc.
  19211. 2006-10-12 Maciej Stachowiak <mjs@apple.com>
  19212. Reviewed by Oliver.
  19213. - moved a bunch of WebFrameBridge code down to WebCoreFrameBridge, now that it no longer has any WebKit dependencies
  19214. * WebCore.xcodeproj/project.pbxproj:
  19215. * bridge/mac/WebCoreFrameBridge.h:
  19216. * bridge/mac/WebCoreFrameBridge.mm:
  19217. (stringByCollapsingNonPrintingCharacters):
  19218. (-[WebCoreFrameBridge setTitle:]):
  19219. (-[WebCoreFrameBridge didFirstLayout]):
  19220. (-[WebCoreFrameBridge notifyIconChanged:]):
  19221. (-[WebCoreFrameBridge originalRequestURL]):
  19222. (-[WebCoreFrameBridge isLoadTypeReload]):
  19223. (-[WebCoreFrameBridge frameDetached]):
  19224. (-[WebCoreFrameBridge tokenizerProcessedData]):
  19225. (-[WebCoreFrameBridge receivedData:textEncodingName:]):
  19226. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
  19227. (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
  19228. (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
  19229. (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
  19230. (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
  19231. (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
  19232. (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
  19233. (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
  19234. (-[WebCoreFrameBridge incomingReferrer]):
  19235. (-[WebCoreFrameBridge isReloading]):
  19236. (-[WebCoreFrameBridge handledOnloadEvents]):
  19237. (-[WebCoreFrameBridge mainResourceURLResponse]):
  19238. (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
  19239. * loader/mac/LoaderNSURLExtras.h:
  19240. * loader/mac/LoaderNSURLRequestExtras.h: Added.
  19241. * loader/mac/LoaderNSURLRequestExtras.m: Added.
  19242. (isConditionalRequest):
  19243. (setHTTPReferrer):
  19244. * loader/mac/WebFrameLoader.mm:
  19245. * loader/mac/WebSubresourceLoader.mm:
  19246. 2006-10-12 Adele Peterson <adele@apple.com>
  19247. RS by Geoff.
  19248. Renamed menuListIsDetaching to disconnectMenuList,
  19249. uploadControlDetaching to disconnectUploadControl, and fileChooserDetachingSoon to disconnectFileChooser.
  19250. These names match similar methods in WebCore a little better.
  19251. * platform/FileChooser.h:
  19252. * platform/PopupMenu.h: (WebCore::PopupMenu::disconnectMenuList):
  19253. * platform/mac/FileChooserMac.mm: (-[OpenPanelController disconnectFileChooser]):
  19254. (WebCore::FileChooser::disconnectUploadControl):
  19255. * platform/win/TemporaryLinkStubs.cpp: (FileChooser::disconnectUploadControl):
  19256. * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
  19257. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList):
  19258. 2006-10-12 Adele Peterson <adele@apple.com>
  19259. Reviewed by Maciej.
  19260. WebCore part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
  19261. Added private delegate method for clients that want access to a PopupMenu's NSMenu.
  19262. * bridge/mac/FrameMac.h:
  19263. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::willPopupMenu):
  19264. * bridge/mac/WebCoreFrameBridge.h:
  19265. * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Calls willPopupMenu with the NSMenu about to be popped up.
  19266. 2006-10-12 Adele Peterson <adele@apple.com>
  19267. Reviewed by Alice.
  19268. - Fix for <rdar://problem/4707372>
  19269. After timers fix, crash in -[NSMenu performActionForItemAtIndex:] after moving/detroying active popup menu
  19270. * platform/PopupMenu.h: (WebCore::PopupMenu::menuListIsDetaching): Added. Zeros out the pointer to the menu list.
  19271. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList): Calls menuListIsDetaching.
  19272. * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added a RefPtr to protect the PopupMenu while the NSMenu is up,
  19273. in case the RenderMenuList goes away. Also, checks the pointer to the menu list immediately afterwards.
  19274. 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
  19275. Reviewed by Maciej.
  19276. Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
  19277. document.open(); document.write(..); and NO document.close(). On the Qt platform this
  19278. leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
  19279. DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
  19280. Hmpf, this took me nine hours to debug today.
  19281. Result: Couldn't find the real fix, going for a workaround for now.
  19282. 540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
  19283. * platform/qt/FrameQt.cpp:
  19284. (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
  19285. * platform/qt/FrameQtClient.cpp:
  19286. (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
  19287. 2006-10-12 Adam Roben <aroben@apple.com>
  19288. Reviewed by Adele.
  19289. Move popup menu code out of rendering/ and into platform/.
  19290. RenderPopupMenu becomes PopupMenu, the
  19291. RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
  19292. virtual methods go away, RenderTheme gets to stop worrying about popup
  19293. menus, PopupMenu becomes ref-counted, and everyone becomes happy.
  19294. * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
  19295. * WebCore.xcodeproj/project.pbxproj: Ditto.
  19296. * html/HTMLSelectElement.cpp: Remove unnecessary #include.
  19297. * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
  19298. Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
  19299. from RenderMenuList::showPopup/hidePopup.
  19300. (WebCore::PopupMenu::create): New static creation method to hand back a
  19301. PassRefPtr<PopupMenu>.
  19302. (WebCore::PopupMenu::addItems): This platform-independent method should
  19303. be called by PopupMenu::populate when the platform-specific
  19304. implementation is ready to receive the menu items. Fixed an ASSERT
  19305. while I was at it.
  19306. * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
  19307. need for virtual methods.
  19308. (WebCore::PopupMenu::wasClicked):
  19309. (WebCore::PopupMenu::setWasClicked):
  19310. (WebCore::PopupMenu::popupHandle):
  19311. * platform/mac/PopupMenuMac.mm: Moved from
  19312. rendering/RenderPopupMenuMac.mm. Much renaming ensues.
  19313. (WebCore::PopupMenu::PopupMenu):
  19314. (WebCore::PopupMenu::~PopupMenu):
  19315. (WebCore::PopupMenu::clear):
  19316. (WebCore::PopupMenu::populate):
  19317. (WebCore::PopupMenu::show):
  19318. (WebCore::PopupMenu::hide):
  19319. (WebCore::PopupMenu::addSeparator):
  19320. (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
  19321. RenderStyle anymore, just pick up the style from our RenderMenuList.
  19322. (WebCore::PopupMenu::addOption): Ditto.
  19323. * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
  19324. (PopupMenu::PopupMenu):
  19325. (PopupMenu::~PopupMenu):
  19326. (PopupMenu::clear):
  19327. (PopupMenu::populate):
  19328. (PopupMenu::show):
  19329. (PopupMenu::hide):
  19330. (PopupMenu::addSeparator):
  19331. (PopupMenu::addGroupLabel):
  19332. (PopupMenu::addOption):
  19333. * rendering/RenderMenuList.cpp:
  19334. (WebCore::RenderMenuList::~RenderMenuList):
  19335. (WebCore::RenderMenuList::showPopup): Use nice new simple
  19336. PopupMenu::create to make the popup.
  19337. (WebCore::RenderMenuList::hidePopup):
  19338. * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
  19339. RenderPopupMenu*.
  19340. (WebCore::RenderMenuList::popup):
  19341. * rendering/RenderPopupMenu.cpp: Removed.
  19342. * rendering/RenderPopupMenu.h: Removed.
  19343. * rendering/RenderPopupMenuMac.h: Removed.
  19344. * rendering/RenderPopupMenuMac.mm: Removed.
  19345. * rendering/RenderPopupMenuWin.h: Removed.
  19346. * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
  19347. * rendering/RenderTheme.h: Ditto.
  19348. * rendering/RenderThemeMac.h: Ditto.
  19349. * rendering/RenderThemeMac.mm: Ditto.
  19350. * rendering/RenderThemeWin.cpp: Ditto.
  19351. * rendering/RenderThemeWin.h: Ditto.
  19352. 2006-10-12 Adele Peterson <adele@apple.com>
  19353. Reviewed by Dave Harrison.
  19354. - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
  19355. * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
  19356. Make subtree layouts work for textareas as well as text fields.
  19357. 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
  19358. Reviewed by MacDome.
  19359. Finally found a way to remove our begin() trickery in FrameQt.
  19360. The (probably misnamed) Frame::setEncoding() function automatically
  19361. calls Frame::receivedFirstData() which calls being on the working
  19362. url, which has been passed to didOpenUrl(). Took me some hours
  19363. to figure out that the missing charset logic, forced us to do hacks.
  19364. * platform/ResourceLoader.h:
  19365. * platform/ResourceLoaderInternal.h:
  19366. * platform/qt/FrameQt.cpp:
  19367. (WebCore::FrameQt::tokenizerProcessedData):
  19368. * platform/qt/FrameQt.h:
  19369. * platform/qt/FrameQtClient.cpp:
  19370. (WebCore::FrameQtClientDefault::FrameQtClientDefault):
  19371. (WebCore::FrameQtClientDefault::openURL):
  19372. (WebCore::FrameQtClientDefault::submitForm):
  19373. (WebCore::FrameQtClientDefault::receivedData):
  19374. (WebCore::FrameQtClientDefault::receivedAllData):
  19375. * platform/qt/FrameQtClient.h:
  19376. * platform/qt/ResourceLoaderManager.cpp:
  19377. (WebCore::ResourceLoaderManager::slotData):
  19378. (WebCore::ResourceLoaderManager::slotMimetype):
  19379. (WebCore::ResourceLoaderManager::slotResult):
  19380. (WebCore::ResourceLoaderManager::remove):
  19381. * platform/qt/ResourceLoaderQt.cpp:
  19382. (WebCore::ResourceLoader::retrieveCharset):
  19383. (WebCore::ResourceLoader::extractCharsetFromHeaders):
  19384. 2006-10-12 Adam Roben <aroben@apple.com>
  19385. Reviewed by Hyatt.
  19386. Bandaid-ing a null-dereference crash until a real fix is made.
  19387. * page/FrameView.cpp:
  19388. (WebCore::FrameView::windowClipRect):
  19389. 2006-10-12 Rob Buis <buis@kde.org>
  19390. Reviewed by Mitz.
  19391. http://bugs.webkit.org/show_bug.cgi?id=11217
  19392. Cleanup svg coding style
  19393. Cleanup coding style in svg text classes.
  19394. * ksvg2/svg/SVGTRefElement.cpp:
  19395. (WebCore::SVGTRefElement::SVGTRefElement):
  19396. (WebCore::SVGTRefElement::updateReferencedText):
  19397. (WebCore::SVGTRefElement::parseMappedAttribute):
  19398. (WebCore::SVGTRefElement::childShouldCreateRenderer):
  19399. (WebCore::SVGTRefElement::createRenderer):
  19400. * ksvg2/svg/SVGTRefElement.h:
  19401. (WebCore::SVGTRefElement::rendererIsNeeded):
  19402. * ksvg2/svg/SVGTSpanElement.cpp:
  19403. (WebCore::SVGTSpanElement::SVGTSpanElement):
  19404. (WebCore::SVGTSpanElement::childShouldCreateRenderer):
  19405. (WebCore::SVGTSpanElement::createRenderer):
  19406. * ksvg2/svg/SVGTSpanElement.h:
  19407. (WebCore::SVGTSpanElement::rendererIsNeeded):
  19408. * ksvg2/svg/SVGTextContentElement.cpp:
  19409. (WebCore::SVGTextContentElement::SVGTextContentElement):
  19410. (WebCore::SVGTextContentElement::parseMappedAttribute):
  19411. * ksvg2/svg/SVGTextContentElement.h:
  19412. * ksvg2/svg/SVGTextElement.cpp:
  19413. (WebCore::SVGTextElement::SVGTextElement):
  19414. (WebCore::SVGTextElement::localMatrix):
  19415. (WebCore::SVGTextElement::parseMappedAttribute):
  19416. (WebCore::SVGTextElement::updateLocalTransform):
  19417. (WebCore::SVGTextElement::nearestViewportElement):
  19418. (WebCore::SVGTextElement::farthestViewportElement):
  19419. (WebCore::SVGTextElement::getScreenCTM):
  19420. (WebCore::SVGTextElement::getCTM):
  19421. (WebCore::SVGTextElement::createRenderer):
  19422. (WebCore::SVGTextElement::childShouldCreateRenderer):
  19423. * ksvg2/svg/SVGTextElement.h:
  19424. (WebCore::SVGTextElement::getTransformToElement):
  19425. (WebCore::SVGTextElement::rendererIsNeeded):
  19426. * ksvg2/svg/SVGTextPositioningElement.cpp:
  19427. (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
  19428. (WebCore::SVGTextPositioningElement::parseMappedAttribute):
  19429. * ksvg2/svg/SVGTextPositioningElement.h:
  19430. 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
  19431. Reviewed by Maciej.
  19432. Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
  19433. * platform/qt/FrameQt.cpp:
  19434. (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
  19435. * platform/qt/FrameQtClient.cpp:
  19436. (WebCore::FrameQtClientDefault::runJavaScriptAlert):
  19437. * platform/qt/FrameQtClient.h:
  19438. 2006-10-12 Maciej Stachowiak <mjs@apple.com>
  19439. Reviewed by Eric.
  19440. - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
  19441. * page/FramePrivate.h: Add m_responseMIMEType
  19442. * page/ResourceRequest.h: Remove m_responseMIMEType
  19443. * page/Frame.cpp:
  19444. (WebCore::Frame::setResponseMIMEType): added
  19445. (WebCore::Frame::responseMIMEType): added
  19446. (WebCore::Frame::begin): get MIME type from the right place
  19447. (WebCore::Frame::write): ditto
  19448. * page/Frame.h:
  19449. * bindings/js/kjs_window.cpp:
  19450. (KJS::createNewWindow): updated to use new Frame methods
  19451. (KJS::WindowFunc::callAsFunction): ditto
  19452. * bridge/mac/WebCoreFrameBridge.mm:
  19453. (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
  19454. (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
  19455. * loader/PluginDocument.cpp:
  19456. (WebCore::PluginTokenizer::createDocumentStructure): ditto
  19457. 2006-10-12 Maciej Stachowiak <mjs@apple.com>
  19458. Reviewed by Eric.
  19459. <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
  19460. We really need some way to test loadHTMLString since it keeps breaking!
  19461. * loader/mac/WebFrameLoader.mm:
  19462. (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
  19463. 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
  19464. Reviewed by Eric.
  19465. Fix Qt/Linux build.
  19466. * CMakeLists.txt:
  19467. * platform/qt/FileChooserQt.cpp:
  19468. (WebCore::FileChooser::create):
  19469. 2006-10-12 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  19470. Reviewed by Maciej.
  19471. Update Gdk\Linux build for recent changes, based on Qt code
  19472. * platform/gdk/FrameGdk.cpp:
  19473. (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
  19474. (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
  19475. (WebCore::FrameGdkClientDefault::setFrame):
  19476. (WebCore::FrameGdkClientDefault::openURL):
  19477. (WebCore::FrameGdkClientDefault::submitForm):
  19478. (WebCore::FrameGdkClientDefault::receivedResponse):
  19479. (WebCore::FrameGdkClientDefault::receivedData):
  19480. (WebCore::FrameGdkClientDefault::receivedAllData):
  19481. (WebCore::FrameGdk::FrameGdk):
  19482. (WebCore::FrameGdk::openURL):
  19483. (WebCore::FrameGdk::submitForm):
  19484. (WebCore::FrameGdk::urlSelected):
  19485. * platform/gdk/FrameGdk.h:
  19486. * platform/gdk/TemporaryLinkStubs.cpp:
  19487. (FrameGdk::createJavaAppletWidget):
  19488. (FileChooser::create):
  19489. 2006-10-12 Dave Hyatt <hyatt@apple.com>
  19490. Patch to add more clipping retrieval functionality for widgets.
  19491. Reviewed by mjs
  19492. * page/Frame.h:
  19493. Remove windowResizerRect. This is in the wrong place.
  19494. * page/FrameView.cpp:
  19495. (WebCore::FrameView::windowClipRect):
  19496. (WebCore::FrameView::windowClipRectForLayer):
  19497. Break out windowClipRect into helper functions that can be called separately (to make
  19498. it easier for scrollbars in overflow sections and list boxes to get to an enclosing
  19499. layer and get the right clip.
  19500. * page/FrameView.h:
  19501. Add the new windowClipRect helper methods.
  19502. * platform/ScrollBar.h:
  19503. Add a new interface to ScrollbarClient so that scrollbars can hand back proper
  19504. clip rects for themselves depending on how they are used.
  19505. * platform/ScrollView.h:
  19506. Stub out methods for talking to a double buffer backing store on Win32.
  19507. * platform/Widget.h:
  19508. Add the ability to query for invalidation suppression.
  19509. * rendering/RenderLayer.cpp:
  19510. (WebCore::RenderLayer::windowClipRect):
  19511. (WebCore::RenderLayer::paintOverflowControls):
  19512. (WebCore::RenderLayer::calculateRects):
  19513. (WebCore::RenderLayer::childrenClipRect):
  19514. (WebCore::RenderLayer::selfClipRect):
  19515. * rendering/RenderLayer.h:
  19516. Enhance layers so that they can return either their foreground or background
  19517. document clip rects. Make sure a layer scrollbar can return a proper clip.
  19518. * rendering/RenderListBox.cpp:
  19519. (WebCore::RenderListBox::windowClipRect):
  19520. * rendering/RenderListBox.h:
  19521. Make sure a list box scrollbar can return a proper clip.
  19522. * rendering/RenderObject.cpp:
  19523. (WebCore::RenderObject::enclosingLayer):
  19524. * rendering/RenderObject.h:
  19525. Make enclosingLayer const.
  19526. 2006-10-11 Darin Adler <darin@apple.com>
  19527. Reviewed by John.
  19528. - some changes to prepare for converting more code to C++
  19529. * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
  19530. self-sufficient.
  19531. * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
  19532. Needed since the class is used in this header (for some work I have not landed yet).
  19533. * loader/mac/LoaderNSURLExtras.h:
  19534. * loader/mac/WebFormDataStream.h:
  19535. Added extern "C" so this code can be used from C++.
  19536. * loader/mac/LoaderNSURLExtras.m:
  19537. * loader/mac/WebDataProtocol.mm:
  19538. * loader/mac/WebDocumentLoader.mm:
  19539. * loader/mac/WebFormDataStream.m:
  19540. * loader/mac/WebLoader.mm:
  19541. * loader/mac/WebMainResourceLoader.mm:
  19542. * loader/mac/WebNetscapePlugInStreamLoader.mm:
  19543. * loader/mac/WebPolicyDecider.mm:
  19544. * loader/mac/WebSubresourceLoader.mm:
  19545. Added missing includes of config.h.
  19546. 2006-10-11 John Sullivan <sullivan@apple.com>
  19547. Darin wrote this code; we tested it; I give it the thumbs up.
  19548. - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
  19549. The hash table to look up an element class given a QualifiedName was
  19550. not working at all.
  19551. * dom/QualifiedName.h:
  19552. (WebCore::QualifiedName::impl):
  19553. Added. This new accessor method for impl is needed if we want to use
  19554. a QualifiedName as a hash table key without doing the kind of specialization
  19555. we do for String. Maybe later we can do the String thing.
  19556. * bindings/objc/DOM.mm:
  19557. (WebCore::addElementClass):
  19558. Use QualifiedName.impl instead of the QualifiedName pointer itself.
  19559. The QualifiedName pointer is *not* unique so almost nothing would be found
  19560. in this hash table!
  19561. (WebCore::elementClass):
  19562. ditto
  19563. 2006-10-11 Adam Roben <aroben@apple.com>
  19564. Rubberstamped by Anders.
  19565. Clean up FileChooser::create and Icon::newIconForFile.
  19566. * WebCore.xcodeproj/project.pbxproj:
  19567. * platform/mac/FileChooserMac.mm:
  19568. (WebCore::FileChooser::create):
  19569. * platform/mac/IconMac.mm:
  19570. (WebCore::Icon::newIconForFile):
  19571. 2006-10-11 Oliver Hunt <oliver@apple.com>
  19572. Reviewed by Adam.
  19573. Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
  19574. Corrects canvas tag to not throw JS exception when drawing
  19575. zero sized rects, arcs, etc
  19576. * html/CanvasRenderingContext2D.cpp:
  19577. (WebCore::CanvasRenderingContext2D::arcTo):
  19578. (WebCore::CanvasRenderingContext2D::arc):
  19579. (WebCore::CanvasRenderingContext2D::rect):
  19580. (WebCore::CanvasRenderingContext2D::clearRect):
  19581. (WebCore::CanvasRenderingContext2D::fillRect):
  19582. (WebCore::CanvasRenderingContext2D::strokeRect):
  19583. 2006-10-11 Rob Buis <buis@kde.org>
  19584. Reviewed by Mitz.
  19585. http://bugs.webkit.org/show_bug.cgi?id=11221
  19586. REGRESSION: iExploder crash due to style="cursor: url()"
  19587. Take better care of empty cursor lists.
  19588. Test: fast/css/invalid-cursor-property-crash.html
  19589. * css/cssparser.cpp:
  19590. (WebCore::CSSParser::parseValue):
  19591. 2006-10-11 Adam Roben <aroben@apple.com>
  19592. Fixing Windows for real this time.
  19593. * platform/win/TemporaryLinkStubs.cpp:
  19594. (FileChooser::create):
  19595. 2006-10-11 Adam Roben <aroben@apple.com>
  19596. Fix Windows build.
  19597. * platform/win/TemporaryLinkStubs.cpp:
  19598. (FileChooser::create):
  19599. 2006-10-11 Antti Koivisto <koivisto@iki.fi>
  19600. Reviewed by Hyatt.
  19601. http://bugs.webkit.org/show_bug.cgi?id=4377
  19602. Respect css visibility semantics for layers too
  19603. * rendering/RenderContainer.cpp:
  19604. (WebCore::RenderContainer::removeChildNode):
  19605. (WebCore::RenderContainer::appendChildNode):
  19606. (WebCore::RenderContainer::insertChildNode):
  19607. * rendering/RenderLayer.cpp:
  19608. (WebCore::RenderLayer::RenderLayer):
  19609. (WebCore::RenderLayer::updateLayerPositions):
  19610. (WebCore::RenderLayer::setHasVisibleContent):
  19611. (WebCore::RenderLayer::dirtyVisibleContentStatus):
  19612. (WebCore::RenderLayer::childVisibilityChanged):
  19613. (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
  19614. (WebCore::RenderLayer::updateVisibilityStatus):
  19615. (WebCore::RenderLayer::addChild):
  19616. (WebCore::RenderLayer::removeChild):
  19617. (WebCore::RenderLayer::updateZOrderLists):
  19618. (WebCore::RenderLayer::collectLayers):
  19619. * rendering/RenderLayer.h:
  19620. (WebCore::RenderLayer::hasVisibleContent):
  19621. * rendering/RenderObject.cpp:
  19622. (WebCore::RenderObject::setStyle):
  19623. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  19624. Reviewed by Oliver.
  19625. - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
  19626. * WebCore.xcodeproj/project.pbxproj:
  19627. * platform/cf/RetainPtr.h: Added.
  19628. (WTF::):
  19629. (WTF::RetainPtr::RetainPtr):
  19630. (WTF::RetainPtr::~RetainPtr):
  19631. (WTF::RetainPtr::get):
  19632. (WTF::RetainPtr::operator*):
  19633. (WTF::RetainPtr::operator->):
  19634. (WTF::RetainPtr::operator!):
  19635. (WTF::RetainPtr::operator UnspecifiedBoolType):
  19636. (WTF::::operator):
  19637. (WTF::::swap):
  19638. (WTF::swap):
  19639. (WTF::operator==):
  19640. (WTF::operator!=):
  19641. (WTF::static_pointer_cast):
  19642. (WTF::const_pointer_cast):
  19643. (WTF::getPtr):
  19644. - use it in WidgetMac so it gets tested in at least one place
  19645. * platform/mac/WidgetMac.mm:
  19646. (WebCore::Widget::Widget):
  19647. (WebCore::Widget::~Widget):
  19648. (WebCore::Widget::setEnabled):
  19649. (WebCore::Widget::isEnabled):
  19650. (WebCore::Widget::setCursor):
  19651. (WebCore::Widget::getView):
  19652. (WebCore::Widget::setView):
  19653. (WebCore::Widget::getOuterView):
  19654. 2006-10-10 Brady Eidson <beidson@apple.com>
  19655. Reviewed by Maciej.
  19656. Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
  19657. * bridge/mac/WebCoreFrameBridge.h:
  19658. * bridge/mac/WebCoreFrameBridge.mm:
  19659. (-[WebCoreFrameBridge initMainFrameWithPage:]):
  19660. (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
  19661. (-[WebCoreFrameBridge dealloc]):
  19662. (-[WebCoreFrameBridge close]):
  19663. (-[WebCoreFrameBridge setFrameLoaderClient:]):
  19664. (-[WebCoreFrameBridge frameLoader]):
  19665. * loader/mac/WebFrameLoader.h:
  19666. * loader/mac/WebFrameLoader.mm:
  19667. (-[WebFrameLoader initWithFrameBridge:]):
  19668. (-[WebFrameLoader setFrameLoaderClient:]):
  19669. 2006-10-10 Adam Roben <aroben@apple.com>
  19670. Reviewed by Oliver.
  19671. Make FileChooser ref-counted.
  19672. * platform/FileChooser.h:
  19673. * platform/mac/FileChooserMac.mm:
  19674. (WebCore::FileChooser::create):
  19675. * rendering/RenderFileUploadControl.cpp:
  19676. (WebCore::RenderFileUploadControl::RenderFileUploadControl):
  19677. (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
  19678. * rendering/RenderFileUploadControl.h:
  19679. 2006-10-10 Sam Weinig <sam.weinig@gmail.com>
  19680. Reviewed by Tim H.
  19681. Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
  19682. Even More auto-generated Objective-C DOM bindings changes
  19683. - Auto-generate DOMSVGPathElement.
  19684. - Auto-generate the internal interfaces even for classes that have
  19685. custom internal implementations. Change IDL property from ObjCNoInternal
  19686. to ObjCCustomInternalImpl to indicate the change.
  19687. - Add SVG classes to DOMNode and DOMEvent internal interfaces.
  19688. - Add isSVGZoomEvent() method to Event class to match other Event subclasses
  19689. and make DOM binding possible.
  19690. - Assorted cleanups.
  19691. * DerivedSources.make:
  19692. * WebCore.xcodeproj/project.pbxproj:
  19693. * bindings/objc/DOM.mm:
  19694. (WebCore::addElementClass):
  19695. (WebCore::createElementClassMap):
  19696. (WebCore::elementClass):
  19697. (-[DOMNode description]):
  19698. (+[DOMNode _nodeWith:WebCore::]):
  19699. (-[DOMNode addEventListener:listener:useCapture:]):
  19700. (-[DOMNode removeEventListener:listener:useCapture:]):
  19701. (-[DOMElement _NPObject]):
  19702. (WebCore::ObjCEventListener::handleEvent):
  19703. * bindings/objc/DOMEvents.mm:
  19704. (+[DOMEvent _eventWith:WebCore::]):
  19705. * bindings/objc/DOMInternal.h:
  19706. * bindings/objc/DOMRGBColor.mm:
  19707. (-[DOMRGBColor WebCore::]):
  19708. * bindings/objc/DOMSVGPathSegInternal.h: Removed.
  19709. * bindings/scripts/CodeGeneratorObjC.pm:
  19710. * css/CSSRule.idl:
  19711. * css/CSSValue.idl:
  19712. * css/StyleSheet.idl:
  19713. * dom/Event.cpp:
  19714. (WebCore::Event::isSVGZoomEvent):
  19715. * dom/Event.h:
  19716. * dom/Event.idl:
  19717. * dom/Node.idl:
  19718. * ksvg2/events/SVGZoomEvent.cpp:
  19719. (WebCore::SVGZoomEvent::isSVGZoomEvent):
  19720. * ksvg2/events/SVGZoomEvent.h:
  19721. * ksvg2/svg/SVGAnimatedAngle.idl:
  19722. * ksvg2/svg/SVGCircleElement.idl:
  19723. * ksvg2/svg/SVGClipPathElement.idl:
  19724. * ksvg2/svg/SVGPathElement.idl:
  19725. * ksvg2/svg/SVGPathSeg.idl:
  19726. 2006-10-10 Oliver Hunt <oliver@apple.com>
  19727. rubber stamped by Anders.
  19728. More buildbot bustage
  19729. * kcanvas/SVGInlineFlowBox.cpp:
  19730. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  19731. 2006-10-10 Oliver Hunt <oliver@apple.com>
  19732. Reviewed by Anders
  19733. Unbreak build bots
  19734. * dom/Text.cpp:
  19735. * kcanvas/RenderSVGText.cpp:
  19736. (WebCore::RenderSVGText::layout):
  19737. * kcanvas/SVGInlineFlowBox.cpp:
  19738. (WebCore::placePositionedBoxesHorizontally):
  19739. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  19740. 2006-10-10 Oliver Hunt <oliver@apple.com>
  19741. Reviewed by hyatt.
  19742. Fixes bugs #6423, #6559, #10380 and #10839
  19743. * WebCore.xcodeproj/project.pbxproj:
  19744. * css/svg.css:
  19745. * dom/Text.cpp:
  19746. (WebCore::Text::createRenderer):
  19747. * kcanvas/RenderSVGInline.cpp: Added.
  19748. (WebCore::RenderSVGInline::RenderSVGInline):
  19749. (WebCore::RenderSVGInline::createInlineBox):
  19750. * kcanvas/RenderSVGInline.h: Added.
  19751. (WebCore::RenderSVGInline::renderName):
  19752. (WebCore::RenderSVGInline::requiresLayer):
  19753. * kcanvas/RenderSVGInlineText.cpp: Added.
  19754. (WebCore::RenderSVGInlineText::RenderSVGInlineText):
  19755. (WebCore::RenderSVGInlineText::absoluteRects):
  19756. (WebCore::RenderSVGInlineText::selectionRect):
  19757. * kcanvas/RenderSVGInlineText.h: Added.
  19758. (WebCore::RenderSVGInlineText::renderName):
  19759. (WebCore::RenderSVGInlineText::requiresLayer):
  19760. * kcanvas/RenderSVGTSpan.cpp: Added.
  19761. (WebCore::RenderSVGTSpan::RenderSVGTSpan):
  19762. (WebCore::RenderSVGTSpan::absoluteRects):
  19763. * kcanvas/RenderSVGTSpan.h: Added.
  19764. (WebCore::RenderSVGTSpan::renderName):
  19765. * kcanvas/RenderSVGText.cpp:
  19766. (WebCore::RenderSVGText::RenderSVGText):
  19767. (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
  19768. (WebCore::RenderSVGText::layout):
  19769. (WebCore::RenderSVGText::createInlineBox):
  19770. (WebCore::RenderSVGText::nodeAtPoint):
  19771. (WebCore::RenderSVGText::absoluteRects):
  19772. (WebCore::RenderSVGText::paint):
  19773. (WebCore::RenderSVGText::relativeBBox):
  19774. * kcanvas/RenderSVGText.h:
  19775. (WebCore::RenderSVGText::renderName):
  19776. * kcanvas/SVGInlineFlowBox.cpp: Added.
  19777. (WebCore::SVGInlineFlowBox::paint):
  19778. (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
  19779. (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
  19780. (WebCore::paintSVGInlineFlow):
  19781. (WebCore::translateBox):
  19782. (WebCore::placePositionedBoxesHorizontally):
  19783. (WebCore::placeSVGFlowHorizontally):
  19784. (WebCore::placeBoxesVerticallyWithAbsBaseline):
  19785. (WebCore::placeSVGFlowVertically):
  19786. * kcanvas/SVGInlineFlowBox.h: Added.
  19787. (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
  19788. * kcanvas/SVGRootInlineBox.cpp: Added.
  19789. (WebCore::SVGRootInlineBox::paint):
  19790. (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
  19791. (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
  19792. * kcanvas/SVGRootInlineBox.h: Added.
  19793. (WebCore::SVGRootInlineBox::SVGRootInlineBox):
  19794. * ksvg2/svg/SVGTRefElement.cpp:
  19795. (SVGTRefElement::createRenderer):
  19796. * ksvg2/svg/SVGTSpanElement.cpp:
  19797. (SVGTSpanElement::createRenderer):
  19798. * rendering/InlineFlowBox.h:
  19799. 2006-10-10 Adam Roben <aroben@apple.com>
  19800. Reviewed by Adele.
  19801. Improve popup menu behavior.
  19802. * html/HTMLSelectElement.cpp:
  19803. (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
  19804. m_lastOnChangeIndex so we know when to fire onChange.
  19805. (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
  19806. specify whether we should fire onChange.
  19807. (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
  19808. (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
  19809. onChange when using the Enter key to change the selection.
  19810. * html/HTMLSelectElement.h:
  19811. * rendering/RenderMenuList.cpp:
  19812. (WebCore::RenderMenuList::updateFromElement): Extract setText logic
  19813. into its own method.
  19814. (WebCore::RenderMenuList::setTextFromOption): New method.
  19815. (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
  19816. onChange instead of calling it directly here.
  19817. * rendering/RenderMenuList.h:
  19818. 2006-10-10 Adele Peterson <adele@apple.com>
  19819. Reviewed by Beth.
  19820. - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
  19821. and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
  19822. Moved autoscroll code to the Frame class
  19823. * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
  19824. * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags. Moved autoscroll code to Frame::handleMouseMoveEvent.
  19825. (WebCore::FrameMac::FrameMac):
  19826. (WebCore::FrameMac::handleMousePressEvent):
  19827. (WebCore::FrameMac::eventMayStartDrag):
  19828. (WebCore::FrameMac::handleMouseMoveEvent):
  19829. (WebCore::FrameMac::mouseDown):
  19830. * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
  19831. Now we scroll our views in WebCore.
  19832. * page/Frame.cpp:
  19833. (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
  19834. (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate. Moved from FrameMac.
  19835. (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
  19836. (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
  19837. (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
  19838. (WebCore::Frame::mouseDownMayStartDrag): Added.
  19839. (WebCore::Frame::setMouseDownMayStartDrag): Added.
  19840. (WebCore::Frame::autoscrollRenderer): Added
  19841. (WebCore::Frame::setAutoscrollRenderer): Added.
  19842. (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
  19843. (WebCore::Frame::autoscrollTimerFired): ditto.
  19844. (WebCore::Frame::stopAutoscrollTimer): ditto.
  19845. * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
  19846. * page/FramePrivate.h:
  19847. (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags. Moved from FrameMac.
  19848. * page/FrameView.cpp: Store the current mouse position in window coordinates. The callers can convert to their own coordinate space.
  19849. (WebCore::FrameView::handleMousePressEvent):
  19850. (WebCore::FrameView::handleMouseDoubleClickEvent):
  19851. (WebCore::FrameView::handleMouseMoveEvent):
  19852. (WebCore::FrameView::handleMouseReleaseEvent):
  19853. * rendering/RenderLayer.cpp:
  19854. (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).
  19855. We also need to update the selection here, since autoscroll can occur without a mouseMove event, and the selection needs to get reset as we scroll.
  19856. * rendering/RenderListBox.cpp:
  19857. (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
  19858. * rendering/RenderObject.cpp:
  19859. (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
  19860. (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
  19861. 2006-10-10 Darin Adler <darin@apple.com>
  19862. Rubber stamped by Maciej.
  19863. - convert many of the loader source files to Objective-C++ to prepare
  19864. to convert some of them to C++
  19865. * WebCore.xcodeproj/project.pbxproj:
  19866. * loader/mac/WebDataProtocol.m: Removed.
  19867. * loader/mac/WebDocumentLoader.m: Removed.
  19868. * loader/mac/WebFormState.m: Removed.
  19869. * loader/mac/WebFrameLoader.m: Removed.
  19870. * loader/mac/WebLoader.m: Removed.
  19871. * loader/mac/WebMainResourceLoader.m: Removed.
  19872. * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
  19873. * loader/mac/WebPolicyDecider.m: Removed.
  19874. * loader/mac/WebSubresourceLoader.m: Removed.
  19875. * loader/mac/WebDataProtocol.mm: Added.
  19876. * loader/mac/WebDocumentLoader.mm: Added.
  19877. * loader/mac/WebFormState.mm: Added.
  19878. * loader/mac/WebFrameLoader.mm: Added.
  19879. * loader/mac/WebLoader.mm: Added.
  19880. * loader/mac/WebMainResourceLoader.mm: Added.
  19881. * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
  19882. * loader/mac/WebPolicyDecider.mm: Added.
  19883. * loader/mac/WebSubresourceLoader.mm: Added.
  19884. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  19885. Reviewed by Mitz.
  19886. - fixed REGRESSION (r16960): crash on navigating to site
  19887. http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
  19888. * loader/mac/WebFrameLoader.m:
  19889. (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
  19890. Add back a mistakenly removed retain.
  19891. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  19892. - fixed release build
  19893. * WebCore.xcodeproj/project.pbxproj:
  19894. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  19895. Rubber stamped by Eric.
  19896. - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
  19897. * WebCore.exp:
  19898. * WebCore.xcodeproj/project.pbxproj:
  19899. * loader/mac/LoaderNSURLExtras.m: Added.
  19900. * loader/mac/WebDataProtocol.m: Added.
  19901. * loader/mac/WebDocumentLoader.m: Added.
  19902. * loader/mac/WebFormDataStream.m: Added.
  19903. * loader/mac/WebFrameLoader.m: Added.
  19904. * loader/mac/WebLoader.m: Added.
  19905. (-[NSURLProtocol didReceiveResponse:]):
  19906. (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
  19907. * loader/mac/WebMainResourceLoader.m: Added.
  19908. (-[WebMainResourceLoader didReceiveResponse:]):
  19909. * loader/mac/WebPolicyDecider.m: Added.
  19910. * loader/mac/WebSubresourceLoader.h: Added.
  19911. * loader/mac/WebSubresourceLoader.m: Added.
  19912. 2006-10-10 Maciej Stachowiak <mjs@apple.com>
  19913. Reviewed by Oliver (sort of?)
  19914. - WebCore part of moving down NSURL extras
  19915. * WebCore.exp:
  19916. * platform/mac/WebCoreSystemInterface.h:
  19917. * platform/mac/WebCoreSystemInterface.mm:
  19918. 2006-10-09 Rob Buis <buis@kde.org>
  19919. Reviewed by Mitz.
  19920. http://bugs.webkit.org/show_bug.cgi?id=11217
  19921. Cleanup svg coding style
  19922. Cleanup coding style in svg animation classes.
  19923. * ksvg2/svg/SVGAnimateColorElement.cpp:
  19924. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  19925. * ksvg2/svg/SVGAnimateElement.cpp:
  19926. (WebCore::SVGAnimateElement::SVGAnimateElement):
  19927. (WebCore::SVGAnimateElement::handleTimerEvent):
  19928. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  19929. (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
  19930. (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
  19931. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  19932. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  19933. (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
  19934. (WebCore::SVGAnimateTransformElement::initialMatrix):
  19935. (WebCore::SVGAnimateTransformElement::transformMatrix):
  19936. * ksvg2/svg/SVGAnimateTransformElement.h:
  19937. * ksvg2/svg/SVGAnimatedPathData.cpp:
  19938. * ksvg2/svg/SVGAnimatedPathData.h:
  19939. * ksvg2/svg/SVGAnimatedPoints.cpp:
  19940. * ksvg2/svg/SVGAnimatedPoints.h:
  19941. * ksvg2/svg/SVGAnimationElement.cpp:
  19942. (WebCore::SVGAnimationElement::targetElement):
  19943. 2006-10-09 Maciej Stachowiak <mjs@apple.com>
  19944. Reviewed by Oliver.
  19945. - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
  19946. * bridge/mac/WebCoreFrameBridge.h:
  19947. * bridge/mac/WebCoreFrameBridge.mm:
  19948. (-[WebCoreFrameBridge isMainFrame]):
  19949. 2006-10-09 Adam Roben <aroben@apple.com>
  19950. Backing out accidental commit.
  19951. * page/Frame.cpp:
  19952. (WebCore::Frame::finishedParsing):
  19953. 2006-10-09 Adam Roben <aroben@apple.com>
  19954. Reviewed by Darin.
  19955. Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
  19956. this could cause recursive calls to the destructor. RefPtr now also
  19957. inherits from Noncopyable.
  19958. * dom/NodeFilter.h:
  19959. * dom/Traversal.h:
  19960. * page/DOMWindow.h:
  19961. * page/Frame.cpp:
  19962. (WebCore::Frame::finishedParsing):
  19963. * page/Frame.h:
  19964. * page/Plugin.h:
  19965. * platform/FontFallbackList.h:
  19966. * platform/Icon.h:
  19967. * platform/Shared.h:
  19968. (WebCore::Shared::Shared):
  19969. (WebCore::Shared::ref):
  19970. (WebCore::Shared::deref):
  19971. (WebCore::Shared::hasOneRef):
  19972. (WebCore::Shared::refCount):
  19973. * platform/StringImpl.h:
  19974. 2006-10-09 Oliver Hunt <ohunt@apple.com>
  19975. Reviewed by Anders.
  19976. Correcting ifdef's
  19977. * html/CanvasGradient.cpp:
  19978. (WebCore::CanvasGradient::CanvasGradient):
  19979. (WebCore::CanvasGradient::~CanvasGradient):
  19980. (WebCore::CanvasGradient::addColorStop):
  19981. * html/CanvasGradient.h:
  19982. * html/CanvasPattern.cpp:
  19983. (WebCore::CanvasPattern::CanvasPattern):
  19984. (WebCore::CanvasPattern::~CanvasPattern):
  19985. * html/CanvasPattern.h:
  19986. * html/CanvasRenderingContext2D.cpp:
  19987. (WebCore::CanvasRenderingContext2D::fill):
  19988. (WebCore::CanvasRenderingContext2D::stroke):
  19989. (WebCore::CanvasRenderingContext2D::fillRect):
  19990. (WebCore::CanvasRenderingContext2D::setShadow):
  19991. (WebCore::CanvasRenderingContext2D::applyShadow):
  19992. (WebCore::CanvasRenderingContext2D::drawImage):
  19993. (WebCore::CanvasRenderingContext2D::createPattern):
  19994. (WebCore::CanvasRenderingContext2D::applyStrokePattern):
  19995. (WebCore::CanvasRenderingContext2D::applyFillPattern):
  19996. * html/CanvasRenderingContext2D.h:
  19997. * html/CanvasStyle.cpp:
  19998. (WebCore::CanvasStyle::applyStrokeColor):
  19999. (WebCore::CanvasStyle::applyFillColor):
  20000. * html/HTMLCanvasElement.cpp:
  20001. (WebCore::HTMLCanvasElement::paint):
  20002. (WebCore::HTMLCanvasElement::createDrawingContext):
  20003. * html/HTMLCanvasElement.h:
  20004. 2006-10-09 Adam Roben <aroben@apple.com>
  20005. Reviewed by Maciej.
  20006. Fix a possible recursive destructor call.
  20007. * page/Frame.cpp:
  20008. (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
  20009. (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
  20010. we're already being destroyed.
  20011. 2006-10-09 Sam Weinig <sam.weinig@gmail.com>
  20012. Reviewed by Tim H.
  20013. Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
  20014. Assorted Objective-C bindings changes
  20015. - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath,
  20016. DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel,
  20017. DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel,
  20018. DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel,
  20019. DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel,
  20020. DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs,
  20021. DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel,
  20022. DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel,
  20023. DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
  20024. - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
  20025. DOMHTMLObjectElement.
  20026. - Auto-generate the internal methods for classes with ivars (notably
  20027. DOMNodeIterator and DOMTreeWalker)
  20028. - Put more methods in the WebCore namespace and factor out the
  20029. displayString method into DOMInternal.h as done by Darin in his
  20030. patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
  20031. * DerivedSources.make:
  20032. * WebCore.xcodeproj/project.pbxproj:
  20033. * bindings/objc/DOM.mm:
  20034. (-[DOMNode _initWithNode:WebCore::]):
  20035. (+[DOMNode _nodeWith:WebCore::]):
  20036. (-[DOMNode addEventListener:listener:useCapture:]):
  20037. (-[DOMNode removeEventListener:listener:useCapture:]):
  20038. (-[DOMNode dispatchEvent:]):
  20039. (-[DOMElement _imageTIFFRepresentation]):
  20040. (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
  20041. (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
  20042. (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
  20043. (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
  20044. * bindings/objc/DOMCSS.mm:
  20045. (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
  20046. (+[DOMStyleSheet _styleSheetWith:WebCore::]):
  20047. (-[DOMCSSRule _initWithCSSRule:WebCore::]):
  20048. (+[DOMCSSRule _CSSRuleWith:WebCore::]):
  20049. (-[DOMCSSValue _initWithCSSValue:WebCore::]):
  20050. (+[DOMCSSValue _CSSValueWith:WebCore::]):
  20051. * bindings/objc/DOMEvents.mm:
  20052. (-[DOMEvent _initWithEvent:WebCore::]):
  20053. (+[DOMEvent _eventWith:WebCore::]):
  20054. * bindings/objc/DOMExtensions.h:
  20055. * bindings/objc/DOMHTML.mm:
  20056. (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
  20057. * bindings/objc/DOMInternal.h:
  20058. (-[DOMNodeFilter WebCore::]):
  20059. * bindings/objc/DOMInternal.mm:
  20060. (-[WebScriptObject _init]):
  20061. (-[WebScriptObject _initializeScriptDOMNodeImp]):
  20062. (WebCore::displayString):
  20063. * bindings/objc/DOMObject.mm:
  20064. (-[DOMObject dealloc]):
  20065. (-[DOMObject finalize]):
  20066. * bindings/objc/DOMRGBColor.mm:
  20067. (-[DOMRGBColor dealloc]):
  20068. (-[DOMRGBColor finalize]):
  20069. (-[DOMRGBColor color]):
  20070. (-[DOMRGBColor _initWithRGB:WebCore::]):
  20071. (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
  20072. * bindings/objc/DOMSVG.h:
  20073. * bindings/objc/DOMSVGPathSegInternal.h: Added.
  20074. * bindings/objc/DOMSVGPathSegInternal.mm: Added.
  20075. (-[DOMSVGPathSeg WebCore::]):
  20076. (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
  20077. (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
  20078. * bindings/objc/DOMXPath.mm:
  20079. (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
  20080. (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
  20081. * bindings/objc/PublicDOMInterfaces.h:
  20082. * bindings/scripts/CodeGeneratorObjC.pm:
  20083. * dom/NodeIterator.idl:
  20084. * dom/TreeWalker.idl:
  20085. * html/HTMLInputElement.idl:
  20086. * html/HTMLObjectElement.idl:
  20087. * ksvg2/svg/SVGDocument.idl:
  20088. * ksvg2/svg/SVGElement.idl:
  20089. * ksvg2/svg/SVGPathSeg.idl:
  20090. * ksvg2/svg/SVGPathSegArcAbs.idl:
  20091. * ksvg2/svg/SVGPathSegArcRel.idl:
  20092. * ksvg2/svg/SVGPathSegClosePath.idl:
  20093. * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
  20094. * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
  20095. * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
  20096. * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
  20097. * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
  20098. * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
  20099. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
  20100. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
  20101. * ksvg2/svg/SVGPathSegLinetoAbs.idl:
  20102. * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
  20103. * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
  20104. * ksvg2/svg/SVGPathSegLinetoRel.idl:
  20105. * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
  20106. * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
  20107. * ksvg2/svg/SVGPathSegMovetoAbs.idl:
  20108. * ksvg2/svg/SVGPathSegMovetoRel.idl:
  20109. 2006-10-09 Peter Kasting <pkasting@google.com>
  20110. Unreviewed build fix.
  20111. Fix windows build bustage.
  20112. * platform/win/TemporaryLinkStubs.cpp:
  20113. 2006-10-09 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  20114. Reviewed by Geoff.
  20115. Fix memory leaks discovered via valgrind. Gdk build fixes.
  20116. * Projects/gdk/webcore-gdk.bkl:
  20117. * make-generated-sources.sh:
  20118. * platform/cairo/ImageCairo.cpp:
  20119. (WebCore::Image::draw):
  20120. * platform/gdk/FrameGdk.cpp:
  20121. (WebCore::FrameGdk::handleGdkEvent):
  20122. * platform/gdk/FrameGdk.h:
  20123. * platform/gdk/PlatformScrollBar.h:
  20124. (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
  20125. (WebCore::PlatformScrollbar::verticalScrollbarWidth):
  20126. 2006-10-09 Nikolas Zimmermann <zimmermann@kde.org>
  20127. Reviewed by Beth.
  20128. Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
  20129. * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
  20130. (WebCore::GlyphMap::fillPage):
  20131. 2006-10-09 Nikolas Zimmermann <zimmermann@kde.org>
  20132. Unreviewed build fix.
  20133. Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
  20134. * platform/qt/FrameQt.cpp:
  20135. (WebCore::FrameQt::createJavaAppletWidget):
  20136. * platform/qt/FrameQt.h:
  20137. * platform/qt/TemporaryLinkStubs.cpp:
  20138. 2006-10-09 Brady Eidson <beidson@apple.com>
  20139. Reviewed by Maciej
  20140. Tiny changes to help reorganize WebFrameLoader code in WebKit
  20141. * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
  20142. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  20143. (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
  20144. 2006-10-09 Adam Roben <aroben@apple.com>
  20145. Reviewed by Adele.
  20146. Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
  20147. already called frome ~FrameMac.
  20148. * page/Frame.cpp:
  20149. (WebCore::Frame::~Frame):
  20150. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  20151. * bridge/win/FrameWin.h:
  20152. Add function declaration.
  20153. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  20154. * platform/win/TemporaryLinkStubs.cpp:
  20155. (FrameWin::createJavaAppletWidget):
  20156. Try fixing the Win32 build.
  20157. 2006-10-09 Anders Carlsson <acarlsson@apple.com>
  20158. Reviewed by Adam.
  20159. Move applet widget creation to Frame and get rid of JavaAppletWidget.
  20160. * WebCore.xcodeproj/project.pbxproj:
  20161. * bridge/JavaAppletWidget.h: Removed.
  20162. * bridge/mac/FrameMac.h:
  20163. * bridge/mac/FrameMac.mm:
  20164. (WebCore::FrameMac::createJavaAppletWidget):
  20165. * bridge/mac/JavaAppletWidget.mm: Removed.
  20166. * page/Frame.h:
  20167. * rendering/RenderApplet.cpp:
  20168. (WebCore::RenderApplet::createWidgetIfNecessary):
  20169. 2006-10-09 Mitz Pettel <mitz@webkit.org>
  20170. Reviewed by Darin.
  20171. - http://bugs.webkit.org/show_bug.cgi?id=11220
  20172. Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
  20173. Subversion does not support resource forks and HFS metadata, so
  20174. the resources for this test need to be on a disk image.
  20175. * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
  20176. * manual-tests/resources/plain-text-paste.dmg: Added.
  20177. * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
  20178. * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
  20179. * manual-tests/resources/plain-text-paste/._4.txt: Removed.
  20180. * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
  20181. * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
  20182. * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
  20183. * manual-tests/resources/plain-text-paste/3.gif: Removed.
  20184. * manual-tests/resources/plain-text-paste/4.txt: Removed.
  20185. * manual-tests/resources/plain-text-paste/5.webloc: Removed.
  20186. 2006-10-09 Rob Buis <buis@kde.org>
  20187. Reviewed by Darin.
  20188. http://bugs.webkit.org/show_bug.cgi?id=11217
  20189. Cleanup svg coding style
  20190. Cleanup coding style in filter classes.
  20191. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  20192. (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
  20193. (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
  20194. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  20195. * ksvg2/svg/SVGFEBlendElement.cpp:
  20196. (WebCore::SVGFEBlendElement::SVGFEBlendElement):
  20197. (WebCore::SVGFEBlendElement::parseMappedAttribute):
  20198. (WebCore::SVGFEBlendElement::filterEffect):
  20199. * ksvg2/svg/SVGFEBlendElement.h:
  20200. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  20201. (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
  20202. (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
  20203. (WebCore::SVGFEColorMatrixElement::filterEffect):
  20204. * ksvg2/svg/SVGFEColorMatrixElement.h:
  20205. * ksvg2/svg/SVGFECompositeElement.cpp:
  20206. (WebCore::SVGFECompositeElement::parseMappedAttribute):
  20207. * ksvg2/svg/SVGFECompositeElement.h:
  20208. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  20209. (WebCore::SVGFEDisplacementMapElement::stringToChannel):
  20210. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  20211. * ksvg2/svg/SVGFEFloodElement.cpp:
  20212. (WebCore::SVGFEFloodElement::filterEffect):
  20213. * ksvg2/svg/SVGFEFuncAElement.cpp:
  20214. (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
  20215. * ksvg2/svg/SVGFEFuncBElement.cpp:
  20216. (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
  20217. * ksvg2/svg/SVGFEFuncGElement.cpp:
  20218. (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
  20219. * ksvg2/svg/SVGFEFuncRElement.cpp:
  20220. (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
  20221. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  20222. (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
  20223. (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
  20224. (WebCore::SVGFEGaussianBlurElement::filterEffect):
  20225. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  20226. * ksvg2/svg/SVGFELightElement.cpp:
  20227. (WebCore::SVGFELightElement::SVGFELightElement):
  20228. (WebCore::SVGFELightElement::parseMappedAttribute):
  20229. * ksvg2/svg/SVGFELightElement.h:
  20230. * ksvg2/svg/SVGFEMergeElement.cpp:
  20231. (WebCore::SVGFEMergeElement::SVGFEMergeElement):
  20232. 2006-10-09 Rob Buis <buis@kde.org>
  20233. Reviewed by olliej.
  20234. http://bugs.webkit.org/show_bug.cgi?id=11217
  20235. Cleanup svg coding style
  20236. Cleanup coding style in SVGPath* classes.
  20237. * ksvg2/svg/SVGPathElement.cpp:
  20238. (WebCore::SVGPathElement::SVGPathElement):
  20239. (WebCore::SVGPathElement::getPointAtLength):
  20240. (WebCore::SVGPathElement::createSVGPathSegClosePath):
  20241. (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
  20242. (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
  20243. (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
  20244. (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
  20245. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
  20246. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
  20247. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
  20248. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
  20249. (WebCore::SVGPathElement::createSVGPathSegArcAbs):
  20250. (WebCore::SVGPathElement::createSVGPathSegArcRel):
  20251. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
  20252. (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
  20253. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
  20254. (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
  20255. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
  20256. (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
  20257. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
  20258. (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
  20259. (WebCore::SVGPathElement::svgMoveTo):
  20260. (WebCore::SVGPathElement::svgLineTo):
  20261. (WebCore::SVGPathElement::svgLineToHorizontal):
  20262. (WebCore::SVGPathElement::svgLineToVertical):
  20263. (WebCore::SVGPathElement::svgCurveToCubic):
  20264. (WebCore::SVGPathElement::svgCurveToCubicSmooth):
  20265. (WebCore::SVGPathElement::svgCurveToQuadratic):
  20266. (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
  20267. (WebCore::SVGPathElement::svgArcTo):
  20268. (WebCore::SVGPathElement::parseMappedAttribute):
  20269. (WebCore::SVGPathElement::pathSegList):
  20270. (WebCore::SVGPathElement::normalizedPathSegList):
  20271. (WebCore::SVGPathElement::animatedPathSegList):
  20272. (WebCore::SVGPathElement::animatedNormalizedPathSegList):
  20273. (WebCore::SVGPathElement::toPathData):
  20274. * ksvg2/svg/SVGPathElement.h:
  20275. (WebCore::SVGPathElement::rendererIsNeeded):
  20276. * ksvg2/svg/SVGPathSeg.h:
  20277. * ksvg2/svg/SVGPathSegArc.cpp:
  20278. 2006-10-09 Rob Buis <buis@kde.org>
  20279. Reviewed by aroben.
  20280. http://bugs.webkit.org/show_bug.cgi?id=11217
  20281. Cleanup svg coding style
  20282. Cleanup coding style in svg shape classes.
  20283. * ksvg2/svg/SVGCircleElement.cpp:
  20284. (WebCore::SVGCircleElement::SVGCircleElement):
  20285. (WebCore::SVGCircleElement::parseMappedAttribute):
  20286. (WebCore::SVGCircleElement::pushAttributeContext):
  20287. * ksvg2/svg/SVGCircleElement.h:
  20288. (WebCore::SVGCircleElement::rendererIsNeeded):
  20289. * ksvg2/svg/SVGEllipseElement.cpp:
  20290. * ksvg2/svg/SVGEllipseElement.h:
  20291. (WebCore::SVGEllipseElement::rendererIsNeeded):
  20292. * ksvg2/svg/SVGLineElement.cpp:
  20293. (WebCore::SVGLineElement::parseMappedAttribute):
  20294. (WebCore::SVGLineElement::pushAttributeContext):
  20295. * ksvg2/svg/SVGLineElement.h:
  20296. (WebCore::SVGLineElement::rendererIsNeeded):
  20297. * ksvg2/svg/SVGPolyElement.cpp:
  20298. (WebCore::SVGPolyElement::SVGPolyElement):
  20299. (WebCore::SVGPolyElement::points):
  20300. (WebCore::SVGPolyElement::animatedPoints):
  20301. (WebCore::SVGPolyElement::parseMappedAttribute):
  20302. (WebCore::SVGPolyElement::notifyAttributeChange):
  20303. * ksvg2/svg/SVGPolyElement.h:
  20304. (WebCore::SVGPolyElement::rendererIsNeeded):
  20305. * ksvg2/svg/SVGPolygonElement.cpp:
  20306. (WebCore::SVGPolygonElement::SVGPolygonElement):
  20307. (WebCore::SVGPolygonElement::toPathData):
  20308. * ksvg2/svg/SVGPolygonElement.h:
  20309. * ksvg2/svg/SVGPolylineElement.cpp:
  20310. (WebCore::SVGPolylineElement::SVGPolylineElement):
  20311. (WebCore::SVGPolylineElement::toPathData):
  20312. * ksvg2/svg/SVGPolylineElement.h:
  20313. * ksvg2/svg/SVGRectElement.cpp:
  20314. (WebCore::SVGRectElement::parseMappedAttribute):
  20315. (WebCore::SVGRectElement::pushAttributeContext):
  20316. * ksvg2/svg/SVGRectElement.h:
  20317. (WebCore::SVGRectElement::rendererIsNeeded):
  20318. 2006-10-08 Darin Adler <darin@apple.com>
  20319. Reviewed by Maciej.
  20320. - added a bit more WebCoreSystemInterface
  20321. wkGetNSURLResponseCalculatedExpiration
  20322. wkGetNSURLResponseLastModifiedDate
  20323. wkGetNSURLResponseMustRevalidate
  20324. * WebCore.exp: Added the new symbols.
  20325. * platform/mac/WebCoreSystemInterface.h: Ditto.
  20326. * platform/mac/WebCoreSystemInterface.mm: Ditto.
  20327. - quiet down the code generation script
  20328. * bindings/scripts/CodeGenerator.pm:
  20329. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  20330. Reviewed by Darin.
  20331. - more code laundering - add wkSupportsMultipartXMixedReplace
  20332. * WebCore.exp:
  20333. * platform/mac/WebCoreSystemInterface.h:
  20334. * platform/mac/WebCoreSystemInterface.mm:
  20335. 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
  20336. Reviewed by Darin and Oliver.
  20337. Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
  20338. * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
  20339. (WebCore::GraphicsContext::drawConvexPolygon):
  20340. 2006-10-08 Anders Carlsson <acarlsson@apple.com>
  20341. Reviewed by Darin.
  20342. * page/Frame.cpp:
  20343. (WebCore::Frame::submitForm):
  20344. No need to use latin1() here.
  20345. 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
  20346. Reviewed by Darin.
  20347. Kill warnings when generating IDL files on Qt/Linux, as the
  20348. SOURCE_ROOT environment variable is not defined (and not needed) for us.
  20349. * bindings/scripts/CodeGenerator.pm:
  20350. 2006-10-08 Maciej Stachowiak <mjs@apple.com>
  20351. Reviewed by Darin.
  20352. - split didNotOpenURL: into general and page-cache-specific parts
  20353. * bridge/mac/WebCoreFrameBridge.h:
  20354. * bridge/mac/WebCoreFrameBridge.mm:
  20355. (-[WebCoreFrameBridge didNotOpenURL:]):
  20356. (-[WebCoreFrameBridge invalidatePageCache:]):
  20357. 2006-10-08 Anders Carlsson <acarlsson@apple.com>
  20358. Reviewed by Darin.
  20359. * loader/loader.cpp:
  20360. Remove DeprecatedStringList.h include.
  20361. * page/Frame.cpp:
  20362. (WebCore::Frame::submitForm):
  20363. Don't remove "attach" from mailto URLs, we don't do it anywhere else.
  20364. 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
  20365. Reviewed by Darin.
  20366. Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
  20367. Yet another round of Objective-C SVG DOM bindings auto-generation
  20368. - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
  20369. DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
  20370. DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
  20371. DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
  20372. DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
  20373. DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
  20374. DOMSVGZoomAndPan and DOMSVGZoomEvent.
  20375. - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
  20376. using the new [ConvertFromString] property.
  20377. - Add forward declarations for NS* types to auto-generated classes.
  20378. * DerivedSources.make:
  20379. * WebCore.xcodeproj/project.pbxproj:
  20380. * bindings/objc/DOMHTMLAppletElement.mm: Removed.
  20381. * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
  20382. * bindings/objc/DOMInternal.h:
  20383. * bindings/objc/DOMSVG.h:
  20384. * bindings/scripts/CodeGeneratorObjC.pm:
  20385. * html/HTMLAppletElement.idl:
  20386. * html/HTMLEmbedElement.idl:
  20387. * ksvg2/svg/SVGPatternElement.idl:
  20388. * ksvg2/svg/SVGPolygonElement.idl:
  20389. * ksvg2/svg/SVGPolylineElement.idl:
  20390. * ksvg2/svg/SVGRadialGradientElement.idl:
  20391. * ksvg2/svg/SVGRenderingIntent.idl:
  20392. * ksvg2/svg/SVGScriptElement.idl:
  20393. * ksvg2/svg/SVGSetElement.idl:
  20394. * ksvg2/svg/SVGStopElement.idl:
  20395. * ksvg2/svg/SVGSwitchElement.idl:
  20396. * ksvg2/svg/SVGSymbolElement.idl:
  20397. * ksvg2/svg/SVGTRefElement.idl:
  20398. * ksvg2/svg/SVGTSpanElement.idl:
  20399. * ksvg2/svg/SVGTextContentElement.idl:
  20400. * ksvg2/svg/SVGTextElement.idl:
  20401. * ksvg2/svg/SVGTextPositioningElement.idl:
  20402. * ksvg2/svg/SVGTitleElement.idl:
  20403. * ksvg2/svg/SVGUseElement.idl:
  20404. * ksvg2/svg/SVGViewElement.idl:
  20405. * ksvg2/svg/SVGZoomEvent.idl:
  20406. 2006-10-07 Anders Carlsson <acarlsson@apple.com>
  20407. Reviewed by Maciej.
  20408. Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
  20409. * loader/loader.cpp:
  20410. (WebCore::Loader::servePendingRequests):
  20411. 2006-10-07 Anders Carlsson <acarlsson@apple.com>
  20412. Reviewed by Darin.
  20413. Convert a bunch of RefPtr<StringImpl> to String.
  20414. * bridge/mac/FrameMac.h:
  20415. * bridge/mac/FrameMac.mm:
  20416. (WebCore::FrameMac::didTellBridgeAboutLoad):
  20417. (WebCore::FrameMac::haveToldBridgeAboutLoad):
  20418. * dom/BeforeUnloadEvent.cpp:
  20419. (WebCore::BeforeUnloadEvent::storeResult):
  20420. * dom/BeforeUnloadEvent.h:
  20421. (WebCore::BeforeUnloadEvent::result):
  20422. * dom/Document.cpp:
  20423. (WebCore::Document::createEntityReference):
  20424. * dom/Entity.cpp:
  20425. (WebCore::Entity::Entity):
  20426. (WebCore::Entity::nodeName):
  20427. (WebCore::Entity::toString):
  20428. * dom/Entity.h:
  20429. (WebCore::Entity::publicId):
  20430. (WebCore::Entity::systemId):
  20431. (WebCore::Entity::notationName):
  20432. * dom/EntityReference.cpp:
  20433. (WebCore::EntityReference::EntityReference):
  20434. (WebCore::EntityReference::nodeName):
  20435. (WebCore::EntityReference::cloneNode):
  20436. (WebCore::EntityReference::toString):
  20437. * dom/EntityReference.h:
  20438. * dom/KeyboardEvent.cpp:
  20439. (WebCore::KeyboardEvent::KeyboardEvent):
  20440. (WebCore::KeyboardEvent::initKeyboardEvent):
  20441. * dom/KeyboardEvent.h:
  20442. (WebCore::KeyboardEvent::keyIdentifier):
  20443. * dom/MutationEvent.cpp:
  20444. (WebCore::MutationEvent::MutationEvent):
  20445. (WebCore::MutationEvent::initMutationEvent):
  20446. * dom/MutationEvent.h:
  20447. (WebCore::MutationEvent::prevValue):
  20448. (WebCore::MutationEvent::newValue):
  20449. (WebCore::MutationEvent::attrName):
  20450. * dom/Notation.cpp:
  20451. (WebCore::Notation::Notation):
  20452. (WebCore::Notation::nodeName):
  20453. * dom/Notation.h:
  20454. (WebCore::Notation::publicId):
  20455. (WebCore::Notation::systemId):
  20456. * dom/ProcessingInstruction.cpp:
  20457. (WebCore::ProcessingInstruction::ProcessingInstruction):
  20458. (WebCore::ProcessingInstruction::setData):
  20459. (WebCore::ProcessingInstruction::nodeName):
  20460. (WebCore::ProcessingInstruction::nodeValue):
  20461. (WebCore::ProcessingInstruction::cloneNode):
  20462. (WebCore::ProcessingInstruction::checkStyleSheet):
  20463. (WebCore::ProcessingInstruction::toString):
  20464. * dom/ProcessingInstruction.h:
  20465. (WebCore::ProcessingInstruction::target):
  20466. (WebCore::ProcessingInstruction::data):
  20467. (WebCore::ProcessingInstruction::localHref):
  20468. 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
  20469. Reviewed by Tim H.
  20470. Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
  20471. 10 more SVG Objective-C auto-generated bindings
  20472. - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
  20473. DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
  20474. DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
  20475. DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
  20476. - Auto-generate the text method for DOMRange.
  20477. * DerivedSources.make:
  20478. * WebCore.xcodeproj/project.pbxproj:
  20479. * bindings/objc/DOM.mm:
  20480. * bindings/objc/DOMExtensions.h:
  20481. * bindings/objc/DOMInternal.h:
  20482. * bindings/objc/DOMPrivate.h:
  20483. * bindings/objc/DOMRGBColor.mm:
  20484. * bindings/objc/DOMSVG.h:
  20485. * bindings/objc/PublicDOMInterfaces.h:
  20486. * bindings/scripts/CodeGeneratorObjC.pm:
  20487. * dom/Range.idl:
  20488. * ksvg2/svg/SVGFilterElement.cpp:
  20489. * ksvg2/svg/SVGFilterElement.h:
  20490. * ksvg2/svg/SVGFilterElement.idl:
  20491. * ksvg2/svg/SVGForeignObjectElement.idl:
  20492. * ksvg2/svg/SVGGElement.idl:
  20493. * ksvg2/svg/SVGGradientElement.idl:
  20494. * ksvg2/svg/SVGImageElement.idl:
  20495. * ksvg2/svg/SVGLineElement.idl:
  20496. * ksvg2/svg/SVGLinearGradientElement.idl:
  20497. * ksvg2/svg/SVGMarkerElement.idl:
  20498. * ksvg2/svg/SVGMaskElement.idl:
  20499. * ksvg2/svg/SVGPaint.idl:
  20500. 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
  20501. Reviewed by Tim H.
  20502. Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
  20503. Auto-generate a few more Objective-C DOM interfaces
  20504. - Fully auto-generate DOMAbstractView and DOMRange.
  20505. - Auto-generate just the interface for DOMRGBColor.
  20506. - Add DOMRanges.h as the new top level file for Ranges
  20507. module.
  20508. - Add DOMRanges.h and DOMXPath.h to DOM.mm
  20509. * DerivedSources.make:
  20510. * WebCore.xcodeproj/project.pbxproj:
  20511. * bindings/objc/DOM.h:
  20512. * bindings/objc/DOM.mm:
  20513. * bindings/objc/DOMAbstractView.h: Removed.
  20514. * bindings/objc/DOMAbstractView.mm: Removed.
  20515. * bindings/objc/DOMInternal.h:
  20516. * bindings/objc/DOMPrivate.h:
  20517. * bindings/objc/DOMRGBColor.h: Removed.
  20518. * bindings/objc/DOMRGBColor.mm:
  20519. * bindings/objc/DOMRange.h: Removed.
  20520. * bindings/objc/DOMRanges.h: Added.
  20521. * bindings/objc/PublicDOMInterfaces.h:
  20522. * bindings/scripts/CodeGeneratorObjC.pm:
  20523. * css/RGBColor.idl:
  20524. * dom/Range.idl:
  20525. * page/AbstractView.idl: Added.
  20526. 2006-10-07 Andrew Wellington <proton@wiretapped.net>
  20527. Reviewed by Eric.
  20528. Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
  20529. http://bugs.webkit.org/show_bug.cgi?id=10837
  20530. Return null when there is no frame. This matches Firefox.
  20531. * bindings/js/kjs_html.cpp:
  20532. (KJS::JSHTMLDocument::getValueProperty):
  20533. 2006-10-07 David Hyatt <hyatt@apple.com>
  20534. Implement scroll corner painting (a white rect fill) for overflow areas to cover up
  20535. scrollbar joins properly.
  20536. Refactor painting of scrollbars and resizers into common functions. Eliminate the
  20537. extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
  20538. Reviewed by mitz
  20539. * page/FrameView.cpp:
  20540. (WebCore::selectCursor):
  20541. (WebCore::FrameView::handleMouseMoveEvent):
  20542. * platform/mac/PlatformScrollBar.h:
  20543. (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
  20544. (WebCore::PlatformScrollbar::verticalScrollbarWidth):
  20545. * rendering/RenderLayer.cpp:
  20546. (WebCore::RenderLayer::RenderLayer):
  20547. (WebCore::RenderLayer::~RenderLayer):
  20548. (WebCore::RenderLayer::updateLayerPositions):
  20549. (WebCore::scrollCornerRect):
  20550. (WebCore::RenderLayer::positionOverflowControls):
  20551. (WebCore::RenderLayer::paintOverflowControls):
  20552. (WebCore::RenderLayer::isPointInResizeControl):
  20553. (WebCore::RenderLayer::paintLayer):
  20554. * rendering/RenderLayer.h:
  20555. 2006-10-07 Mark Rowe <bdash@webkit.org>
  20556. Reviewed by Mitz.
  20557. Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
  20558. matching recent ResourceLoader changes.
  20559. * platform/gdk/FrameGdk.cpp:
  20560. (WebCore::FrameGdk::openURL):
  20561. (WebCore::FrameGdk::urlSelected):
  20562. * platform/gdk/PlatformScrollBar.h:
  20563. * platform/gdk/ResourceLoaderCurl.cpp:
  20564. (WebCore::ResourceLoader::start):
  20565. * platform/gdk/ScrollViewGdk.cpp:
  20566. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  20567. (WebCore::ScrollView::resizeContents):
  20568. (WebCore::ScrollView::scrollBy):
  20569. (WebCore::ScrollView::hScrollbarMode):
  20570. (WebCore::ScrollView::vScrollbarMode):
  20571. (WebCore::ScrollView::suppressScrollbars):
  20572. (WebCore::ScrollView::setHScrollbarMode):
  20573. (WebCore::ScrollView::setVScrollbarMode):
  20574. (WebCore::ScrollView::setScrollbarsMode):
  20575. * platform/gdk/TemporaryLinkStubs.cpp:
  20576. (FrameView::passMousePressEventToScrollbar):
  20577. (Widget::removeFromParent):
  20578. (ScrollView::addChild):
  20579. (ScrollView::updateScrollbars):
  20580. (ScrollView::scrollbarUnderMouse):
  20581. (PlatformScrollbar::PlatformScrollbar):
  20582. (PlatformScrollbar::~PlatformScrollbar):
  20583. (PlatformScrollbar::width):
  20584. (PlatformScrollbar::height):
  20585. (PlatformScrollbar::setEnabled):
  20586. (PlatformScrollbar::paint):
  20587. (PlatformScrollbar::updateThumbPosition):
  20588. (PlatformScrollbar::updateThumbProportion):
  20589. (PlatformScrollbar::setRect):
  20590. (Scrollbar::Scrollbar):
  20591. (Scrollbar::setSteps):
  20592. (Scrollbar::scroll):
  20593. (Scrollbar::setValue):
  20594. (Scrollbar::setProportion):
  20595. 2006-10-06 Dave Hyatt <hyatt@apple.com>
  20596. Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
  20597. * page/FrameView.cpp:
  20598. (WebCore::FrameView::windowClipRect):
  20599. * page/FrameView.h:
  20600. * platform/ScrollView.h:
  20601. * platform/Widget.cpp:
  20602. (WebCore::Widget::windowClipRect):
  20603. * platform/Widget.h:
  20604. (WebCore::Widget::geometryChanged):
  20605. (WebCore::Widget::handleMouseMoveEvent):
  20606. (WebCore::Widget::handleMouseReleaseEvent):
  20607. * platform/mac/ScrollViewMac.mm:
  20608. (WebCore::ScrollView::addChild):
  20609. * rendering/RenderLayer.cpp:
  20610. (WebCore::RenderLayer::documentClipRect):
  20611. * rendering/RenderLayer.h:
  20612. 2006-10-06 Steve Falkenburg <sfalken@apple.com>
  20613. Reviewed by Adam.
  20614. Add another method we'll need for scrollbar dodging
  20615. * platform/ScrollView.h:
  20616. * platform/win/TemporaryLinkStubs.cpp:
  20617. (ScrollView::resizerOverlapsContent):
  20618. 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
  20619. Reviewed by Tim H.
  20620. Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
  20621. Auto-generate the interfaces even for Objective-C DOM
  20622. bindings that need custom implementations
  20623. - Fully auto-generate DOMEventTarget, DOMNodeFilter and
  20624. DOMHTMLOptionElement.
  20625. - Auto-generate just the interface for DOMHTMLAppletElement,
  20626. DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
  20627. using the new IDL property ObjCCustomImplementation.
  20628. * DerivedSources.make:
  20629. * WebCore.xcodeproj/project.pbxproj:
  20630. * bindings/objc/DOMEventTarget.h: Removed.
  20631. * bindings/objc/DOMHTMLAppletElement.h: Removed.
  20632. * bindings/objc/DOMHTMLEmbedElement.h: Removed.
  20633. * bindings/objc/DOMHTMLOptionElement.h: Removed.
  20634. * bindings/objc/DOMHTMLOptionElement.mm: Removed.
  20635. * bindings/objc/DOMInternal.h:
  20636. * bindings/objc/DOMNodeFilter.h: Removed.
  20637. * bindings/objc/DOMSVGNumber.h: Removed.
  20638. * bindings/objc/DOMSVGPoint.h: Removed.
  20639. * bindings/objc/DOMSVGPoint.mm:
  20640. (-[DOMSVGPoint matrixTransform:]):
  20641. * bindings/objc/DOMSVGRect.h: Removed.
  20642. * bindings/objc/PublicDOMInterfaces.h:
  20643. * bindings/scripts/CodeGeneratorObjC.pm:
  20644. * dom/EventTarget.idl:
  20645. * html/HTMLAppletElement.idl:
  20646. * html/HTMLEmbedElement.idl:
  20647. * html/HTMLOptionElement.idl:
  20648. * ksvg2/svg/SVGNumber.idl:
  20649. * ksvg2/svg/SVGPoint.idl:
  20650. * ksvg2/svg/SVGRect.idl:
  20651. 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
  20652. Reviewed by Tim H.
  20653. Make Qt/Linux compile again completly.
  20654. * platform/qt/WidgetQt.cpp:
  20655. (WebCore::Widget::removeFromParent):
  20656. 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
  20657. Reviewed by Tim H.
  20658. Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
  20659. * platform/qt/PlatformScrollBar.h:
  20660. * platform/qt/ScrollViewQt.cpp:
  20661. (WebCore::ScrollView::hScrollbarMode):
  20662. (WebCore::ScrollView::vScrollbarMode):
  20663. (WebCore::ScrollView::suppressScrollbars):
  20664. (WebCore::ScrollView::setHScrollbarMode):
  20665. (WebCore::ScrollView::setVScrollbarMode):
  20666. (WebCore::ScrollView::setScrollbarsMode):
  20667. (WebCore::ScrollView::scrollbarUnderMouse):
  20668. * platform/qt/TemporaryLinkStubs.cpp:
  20669. (WebCore::Scrollbar::Scrollbar):
  20670. (WebCore::Scrollbar::setSteps):
  20671. (WebCore::Scrollbar::scroll):
  20672. (WebCore::Scrollbar::setValue):
  20673. (WebCore::Scrollbar::setProportion):
  20674. (WebCore::PlatformScrollbar::PlatformScrollbar):
  20675. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  20676. (WebCore::PlatformScrollbar::width):
  20677. (WebCore::PlatformScrollbar::height):
  20678. (WebCore::PlatformScrollbar::setEnabled):
  20679. (WebCore::PlatformScrollbar::paint):
  20680. (WebCore::PlatformScrollbar::updateThumbPosition):
  20681. (WebCore::PlatformScrollbar::updateThumbProportion):
  20682. (WebCore::PlatformScrollbar::setRect):
  20683. (FrameView::passMousePressEventToScrollbar):
  20684. 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
  20685. Reviewed by Tim H.
  20686. Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
  20687. Another round of Objective-C SVG DOM bindings auto-generation
  20688. - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
  20689. DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
  20690. DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
  20691. DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
  20692. DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
  20693. DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
  20694. DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
  20695. DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
  20696. DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
  20697. DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
  20698. DOMSVGFETileElement, DOMSVGFETurbulenceElement,
  20699. DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
  20700. - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
  20701. and DOMSVGRect.
  20702. - IDL clean up.
  20703. - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
  20704. in it's macro declaration and definition.
  20705. * DerivedSources.make:
  20706. * WebCore.xcodeproj/project.pbxproj:
  20707. * bindings/objc/DOMCSS.mm:
  20708. (+[DOMCSSValue _CSSValueWith:WebCore::]):
  20709. * bindings/objc/DOMInternal.h:
  20710. * bindings/objc/DOMSVG.h:
  20711. * bindings/objc/DOMSVGNumber.h: Added.
  20712. * bindings/objc/DOMSVGNumber.mm: Added.
  20713. (-[DOMSVGNumber dealloc]):
  20714. (-[DOMSVGNumber finalize]):
  20715. (-[DOMSVGNumber value]):
  20716. (-[DOMSVGNumber setValue:]):
  20717. (-[DOMSVGNumber _SVGNumber]):
  20718. (-[DOMSVGNumber _initWithFloat:]):
  20719. (+[DOMSVGNumber _SVGNumberWith:]):
  20720. * bindings/objc/DOMSVGPoint.h: Added.
  20721. * bindings/objc/DOMSVGPoint.mm: Added.
  20722. (-[DOMSVGPoint dealloc]):
  20723. (-[DOMSVGPoint finalize]):
  20724. (-[DOMSVGPoint x]):
  20725. (-[DOMSVGPoint setX:]):
  20726. (-[DOMSVGPoint y]):
  20727. (-[DOMSVGPoint setY:]):
  20728. (-[DOMSVGPoint WebCore::]):
  20729. (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
  20730. (+[DOMSVGPoint _SVGPointWith:WebCore::]):
  20731. * bindings/objc/DOMSVGRect.h: Added.
  20732. * bindings/objc/DOMSVGRect.mm: Added.
  20733. (-[DOMSVGRect dealloc]):
  20734. (-[DOMSVGRect finalize]):
  20735. (-[DOMSVGRect x]):
  20736. (-[DOMSVGRect setX:]):
  20737. (-[DOMSVGRect y]):
  20738. (-[DOMSVGRect setY:]):
  20739. (-[DOMSVGRect width]):
  20740. (-[DOMSVGRect setWidth:]):
  20741. (-[DOMSVGRect height]):
  20742. (-[DOMSVGRect setHeight:]):
  20743. (-[DOMSVGRect WebCore::]):
  20744. (-[DOMSVGRect _initWithFloatRect:WebCore::]):
  20745. (+[DOMSVGRect _SVGRectWith:WebCore::]):
  20746. * bindings/scripts/CodeGeneratorObjC.pm:
  20747. * ksvg2/svg/SVGAnimatedNumberList.idl:
  20748. * ksvg2/svg/SVGAnimatedRect.idl:
  20749. * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
  20750. * ksvg2/svg/SVGCursorElement.idl:
  20751. * ksvg2/svg/SVGFEBlendElement.idl:
  20752. * ksvg2/svg/SVGFEColorMatrixElement.idl:
  20753. * ksvg2/svg/SVGFEComponentTransferElement.idl:
  20754. * ksvg2/svg/SVGFECompositeElement.idl:
  20755. * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
  20756. * ksvg2/svg/SVGFEDisplacementMapElement.idl:
  20757. * ksvg2/svg/SVGFEDistantLightElement.idl:
  20758. * ksvg2/svg/SVGFEFloodElement.idl:
  20759. * ksvg2/svg/SVGFEFuncAElement.idl:
  20760. * ksvg2/svg/SVGFEFuncBElement.idl:
  20761. * ksvg2/svg/SVGFEFuncGElement.idl:
  20762. * ksvg2/svg/SVGFEFuncRElement.idl:
  20763. * ksvg2/svg/SVGFEGaussianBlurElement.idl:
  20764. * ksvg2/svg/SVGFEImageElement.idl:
  20765. * ksvg2/svg/SVGFEMergeElement.idl:
  20766. * ksvg2/svg/SVGFEMergeNodeElement.idl:
  20767. * ksvg2/svg/SVGFEOffsetElement.idl:
  20768. * ksvg2/svg/SVGFEPointLightElement.idl:
  20769. * ksvg2/svg/SVGFESpecularLightingElement.idl:
  20770. * ksvg2/svg/SVGFESpotLightElement.idl:
  20771. * ksvg2/svg/SVGFETileElement.idl:
  20772. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  20773. * ksvg2/svg/SVGFETurbulenceElement.h:
  20774. * ksvg2/svg/SVGFETurbulenceElement.idl:
  20775. * ksvg2/svg/SVGNumberList.idl:
  20776. 2006-10-06 Adam Roben <aroben@apple.com>
  20777. Backing out my previous change.
  20778. * WebCore.xcodeproj/project.pbxproj:
  20779. * page/FrameView.cpp:
  20780. (WebCore::FrameView::adjustViewSize):
  20781. 2006-10-06 Adam Roben <aroben@apple.com>
  20782. Build fix.
  20783. * WebCore.xcodeproj/project.pbxproj:
  20784. * page/FrameView.cpp:
  20785. (WebCore::FrameView::windowResizerRect):
  20786. 2006-10-06 Adam Roben <aroben@apple.com>
  20787. Reviewed by Maciej.
  20788. More loader tweaks.
  20789. * platform/ResourceLoader.h:
  20790. * platform/ResourceLoaderInternal.h:
  20791. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  20792. * platform/win/TemporaryLinkStubs.cpp:
  20793. (WebCore::ResourceLoader::newHTTPRequest):
  20794. 2006-10-05 Steve Falkenburg <sfalken@apple.com>
  20795. Reviewed by aroben.
  20796. Stub out some methods that we'll be able to use to dodge a window resizer.
  20797. * bridge/win/FrameWin.h:
  20798. * page/Frame.h:
  20799. (WebCore::Frame::windowResizerRect):
  20800. * page/FrameView.h:
  20801. * platform/ScrollView.h:
  20802. (WebCore::ScrollView::windowResizerRect):
  20803. * platform/Widget.h:
  20804. * platform/win/TemporaryLinkStubs.cpp:
  20805. (FrameView::windowResizerRect):
  20806. (Widget::setParent):
  20807. (Widget::parent):
  20808. (FrameWin::windowResizerRect):
  20809. 2006-10-05 Dave Hyatt <hyatt@apple.com>
  20810. Stub out setFrameGeometry.
  20811. * platform/ScrollView.h:
  20812. 2006-10-05 Adele Peterson <adele@apple.com>
  20813. Reverting autoscroll fix. I need to rework this a little.
  20814. * page/Frame.cpp:
  20815. (WebCore::Frame::handleAutoscroll):
  20816. (WebCore::Frame::autoscrollTimerFired):
  20817. (WebCore::Frame::stopAutoscrollTimer):
  20818. * page/Frame.h:
  20819. * rendering/RenderLayer.cpp:
  20820. (WebCore::RenderLayer::~RenderLayer):
  20821. * rendering/RenderListBox.cpp:
  20822. (WebCore::RenderListBox::~RenderListBox):
  20823. 2006-10-05 Alice <alice.liu@apple.com>
  20824. Reviewed by Adam.
  20825. Fixed <rdar://problem/4731778>
  20826. * editing/CommandByName.cpp:
  20827. (WebCore::Frame::Command::):
  20828. was calling the wrong enabledFn for arrow selection and navigation
  20829. 2006-10-05 Adele Peterson <adele@apple.com>
  20830. Reviewed by Maciej.
  20831. - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
  20832. and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
  20833. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
  20834. * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
  20835. * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
  20836. (WebCore::Frame::handleAutoscroll):
  20837. (WebCore::Frame::autoscrollTimerFired):
  20838. (WebCore::Frame::autoscrollRenderer):
  20839. (WebCore::Frame::setAutoscrollRenderer):
  20840. (WebCore::Frame::stopAutoscrollTimer):
  20841. * page/Frame.h:
  20842. 2006-10-05 Peter Kasting <pkasting@google.com>
  20843. Reviewed by Eric.
  20844. Fix win32 build bustage after ggaren's Scrollbar renaming changes.
  20845. Properly include PlatformScrollBar.h in WbCore.vcproj.
  20846. Clean up WidgetWin.cpp a bit.
  20847. * WebCore.vcproj/WebCore/WebCore.vcproj:
  20848. * platform/Widget.h:
  20849. * platform/win/PlatformScrollBar.h:
  20850. * platform/win/ScrollViewWin.cpp:
  20851. (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
  20852. (WebCore::ScrollView::resizeContents):
  20853. (WebCore::ScrollView::scrollBy):
  20854. (WebCore::ScrollView::hScrollbarMode):
  20855. (WebCore::ScrollView::vScrollbarMode):
  20856. (WebCore::ScrollView::suppressScrollbars):
  20857. (WebCore::ScrollView::setHScrollbarMode):
  20858. (WebCore::ScrollView::setVScrollbarMode):
  20859. (WebCore::ScrollView::setScrollbarsMode):
  20860. (WebCore::ScrollView::updateScrollbars):
  20861. * platform/win/TemporaryLinkStubs.cpp:
  20862. (FrameView::passMousePressEventToScrollbar):
  20863. (Widget::removeFromParent):
  20864. (ScrollView::scrollbarUnderMouse):
  20865. (PlatformScrollbar::PlatformScrollbar):
  20866. (PlatformScrollbar::~PlatformScrollbar):
  20867. (PlatformScrollbar::width):
  20868. (PlatformScrollbar::height):
  20869. (PlatformScrollbar::setEnabled):
  20870. (PlatformScrollbar::paint):
  20871. (PlatformScrollbar::updateThumbPosition):
  20872. (PlatformScrollbar::updateThumbProportion):
  20873. (PlatformScrollbar::setRect):
  20874. (Scrollbar::Scrollbar):
  20875. (Scrollbar::setSteps):
  20876. (Scrollbar::scroll):
  20877. (Scrollbar::setValue):
  20878. (Scrollbar::setProportion):
  20879. * platform/win/WidgetWin.cpp:
  20880. (WebCore::WidgetPrivate::WidgetPrivate):
  20881. (WebCore::Widget::Widget):
  20882. (WebCore::Widget::setContainingWindow):
  20883. (WebCore::Widget::containingWindow):
  20884. 2006-10-05 Geoffrey Garen <ggaren@apple.com>
  20885. build fix.
  20886. * WebCore.xcodeproj/project.pbxproj:
  20887. * bridge/mac/BrowserExtensionMac.mm:
  20888. (WebCore::BrowserExtensionMac::createNewWindow):
  20889. * bridge/mac/FrameMac.mm:
  20890. (WebCore::FrameMac::createFrame):
  20891. * bridge/mac/FrameViewMac.mm:
  20892. (WebCore::FrameView::passMousePressEventToScrollbar):
  20893. * bridge/mac/WebCoreFrameBridge.mm:
  20894. (-[WebCoreFrameBridge installInFrame:]):
  20895. * bridge/mac/WebCoreFrameView.h:
  20896. * platform/ScrollBar.cpp:
  20897. * platform/Widget.h:
  20898. * platform/mac/PlatformScrollBar.h:
  20899. * platform/mac/PlatformScrollBarMac.mm:
  20900. (NSControlSizeForScrollBarControlSize):
  20901. (-[WebCoreScrollBar initWithPlatformScrollbar:]):
  20902. (-[WebCoreScrollBar detachPlatformScrollbar]):
  20903. (-[WebCoreScrollBar scroll:]):
  20904. (-[WebCoreScrollBar widget]):
  20905. (WebCore::PlatformScrollbar::PlatformScrollbar):
  20906. (WebCore::PlatformScrollbar::~PlatformScrollbar):
  20907. (WebCore::PlatformScrollbar::updateThumbPosition):
  20908. (WebCore::PlatformScrollbar::updateThumbProportion):
  20909. (WebCore::PlatformScrollbar::scrollbarHit):
  20910. (WebCore::PlatformScrollbar::width):
  20911. (WebCore::PlatformScrollbar::height):
  20912. (WebCore::PlatformScrollbar::setRect):
  20913. (WebCore::PlatformScrollbar::setEnabled):
  20914. (WebCore::PlatformScrollbar::paint):
  20915. * platform/mac/ScrollViewMac.mm:
  20916. (WebCore::ScrollView::setVScrollbarMode):
  20917. (WebCore::ScrollView::setHScrollbarMode):
  20918. (WebCore::ScrollView::setScrollbarsMode):
  20919. (WebCore::ScrollView::vScrollbarMode):
  20920. (WebCore::ScrollView::hScrollbarMode):
  20921. (WebCore::ScrollView::suppressScrollbars):
  20922. (WebCore::ScrollView::scrollbarUnderMouse):
  20923. * platform/mac/WidgetMac.mm:
  20924. (WebCore::Widget::removeFromParent):
  20925. * rendering/RenderLayer.cpp:
  20926. (WebCore::RenderLayer::destroyScrollbar):
  20927. 2006-10-05 Geoffrey Garen <ggaren@apple.com>
  20928. build fix.
  20929. * platform/Widget.h:
  20930. * rendering/RenderLayer.cpp:
  20931. (WebCore::RenderLayer::destroyScrollbar):
  20932. 2006-10-06 Mitz Pettel <mitz@webkit.org>
  20933. http://bugs.webkit.org/show_bug.cgi?id=8276
  20934. Fix broken manual test added back in r13990.
  20935. Add resource forks for test resources.
  20936. * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
  20937. * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
  20938. * manual-tests/resources/plain-text-paste/._4.txt: Added.
  20939. * manual-tests/resources/plain-text-paste/._5.webloc: Added.
  20940. 2006-10-05 David Hyatt <hyatt@apple.com>
  20941. Rename addClip to clip.
  20942. Reviewed by darin
  20943. * kcanvas/RenderForeignObject.cpp:
  20944. (WebCore::RenderForeignObject::paint):
  20945. * kcanvas/RenderSVGContainer.cpp:
  20946. (WebCore::RenderSVGContainer::paint):
  20947. * kcanvas/RenderSVGImage.cpp:
  20948. (WebCore::RenderSVGImage::paint):
  20949. * platform/GraphicsContext.h:
  20950. * platform/cairo/GraphicsContextCairo.cpp:
  20951. (WebCore::GraphicsContext::clip):
  20952. * platform/cg/GraphicsContextCG.cpp:
  20953. (WebCore::GraphicsContext::savePlatformState):
  20954. (WebCore::GraphicsContext::restorePlatformState):
  20955. (WebCore::GraphicsContext::clip):
  20956. (WebCore::GraphicsContext::addRoundedRectClip):
  20957. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  20958. (WebCore::GraphicsContext::scale):
  20959. (WebCore::GraphicsContext::rotate):
  20960. (WebCore::GraphicsContext::translate):
  20961. (WebCore::GraphicsContext::concatCTM):
  20962. * platform/cg/GraphicsContextPlatformPrivate.h:
  20963. (WebCore::GraphicsContextPlatformPrivate::save):
  20964. (WebCore::GraphicsContextPlatformPrivate::restore):
  20965. (WebCore::GraphicsContextPlatformPrivate::clip):
  20966. (WebCore::GraphicsContextPlatformPrivate::scale):
  20967. (WebCore::GraphicsContextPlatformPrivate::rotate):
  20968. (WebCore::GraphicsContextPlatformPrivate::translate):
  20969. (WebCore::GraphicsContextPlatformPrivate::concatCTM):
  20970. * platform/qt/GraphicsContextQt.cpp:
  20971. (WebCore::GraphicsContext::clip):
  20972. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  20973. (WebCore::GraphicsContext::addRoundedRectClip):
  20974. * rendering/InlineFlowBox.cpp:
  20975. (WebCore::InlineFlowBox::paintBackground):
  20976. (WebCore::InlineFlowBox::paintBackgroundAndBorder):
  20977. * rendering/InlineTextBox.cpp:
  20978. (WebCore::InlineTextBox::paintSelection):
  20979. (WebCore::InlineTextBox::paintTextMatchMarker):
  20980. * rendering/RenderBox.cpp:
  20981. (WebCore::RenderBox::paintBackgroundExtended):
  20982. * rendering/RenderButton.cpp:
  20983. (WebCore::RenderButton::paintObject):
  20984. * rendering/RenderFileUploadControl.cpp:
  20985. (WebCore::RenderFileUploadControl::paintObject):
  20986. * rendering/RenderLayer.cpp:
  20987. (WebCore::RenderLayer::beginTransparencyLayers):
  20988. (WebCore::setClip):
  20989. * rendering/RenderListBox.cpp:
  20990. (WebCore::RenderListBox::paintObject):
  20991. * rendering/RenderMenuList.cpp:
  20992. (WebCore::RenderMenuList::paintObject):
  20993. * rendering/RenderTableCell.cpp:
  20994. (WebCore::RenderTableCell::paintBackgroundsBehindCell):
  20995. 2006-10-05 Mitz Pettel <mitz@webkit.org>
  20996. Reviewed by Darin.
  20997. - http://bugs.webkit.org/show_bug.cgi?id=10386
  20998. Delete RenderImageButton.* and remove references from .vcproj and .bkl files
  20999. * CMakeLists.txt:
  21000. * WebCore.vcproj/WebCore/WebCore.vcproj:
  21001. * WebCoreSources.bkl:
  21002. * rendering/RenderImageButton.cpp: Removed.
  21003. * rendering/RenderImageButton.h: Removed.
  21004. 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
  21005. Reviewed by Darin.
  21006. - http://bugs.webkit.org/show_bug.cgi?id=11067
  21007. manual-tests/scrollbar-hittest2.html is invalid
  21008. * manual-tests/scrollbar-hittest2.html:
  21009. 2006-10-05 David Carson <dacarson@gmail.com>
  21010. Reviewed by Darin.
  21011. http://bugs.webkit.org/show_bug.cgi?id=11152
  21012. Adjust the tokenizer chunk size to be smaller for
  21013. mobile devices, and also decrease the yield timer
  21014. for the tokenizer so that it can resume earlier.
  21015. * html/HTMLTokenizer.cpp:
  21016. * config.h:
  21017. 2006-10-05 Adam Roben <aroben@apple.com>
  21018. Removing accidentally-checked-in do-nothing code.
  21019. * html/HTMLInputElement.cpp:
  21020. (WebCore::HTMLInputElement::defaultEventHandler):
  21021. 2006-10-05 David Carson <dacarson@gmail.com>
  21022. Reviewed by Mitz.
  21023. http://bugs.webkit.org/show_bug.cgi?id=11158
  21024. Initialize class variables
  21025. * rendering/RenderLayer.cpp:
  21026. (WebCore::RenderLayer::RenderLayer):
  21027. 2006-10-05 Peter Kasting <pkasting@google.com>
  21028. Reviewed by Darin, landed by Adam.
  21029. http://bugs.webkit.org/show_bug.cgi?id=11176
  21030. Fix win32 build, adapt to Maciej's ResourceLoader changes.
  21031. * platform/win/ResourceLoaderWin.cpp:
  21032. (WebCore::ResourceLoader::start):
  21033. 2006-10-05 Brett Wilson <brettw@chromium.org>
  21034. Reviewed by Darin.
  21035. http://bugs.webkit.org/show_bug.cgi?id=10989
  21036. Provide a way for embedders to implement BrowserExtensionWin
  21037. * WebCore.vcproj/WebCore/WebCore.vcproj:
  21038. * bridge/win/BrowserExtensionWin.cpp: Added.
  21039. (BrowserExtensionWin::BrowserExtensionWin):
  21040. (BrowserExtensionWin::setTypedIconURL):
  21041. (BrowserExtensionWin::setIconURL):
  21042. (BrowserExtensionWin::getHistoryLength):
  21043. (BrowserExtensionWin::canRunModal):
  21044. (BrowserExtensionWin::createNewWindow):
  21045. (BrowserExtensionWin::canRunModalNow):
  21046. (BrowserExtensionWin::runModal):
  21047. (BrowserExtensionWin::goBackOrForward):
  21048. (BrowserExtensionWin::historyURL):
  21049. * bridge/win/BrowserExtensionWin.h:
  21050. * bridge/win/FrameWin.cpp:
  21051. (WebCore::FrameWin::createNewWindow):
  21052. * bridge/win/FrameWin.h:
  21053. * platform/win/TemporaryLinkStubs.cpp:
  21054. 2006-10-05 Geoffrey Garen <ggaren@apple.com>
  21055. Reviewed by Darin.
  21056. Fixed <rdar://problem/4766987>
  21057. - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
  21058. except for file names.
  21059. - fixed RenderLayer to properly tear down scrollbars, removing them from
  21060. their parents.
  21061. * bindings/js/kjs_window.cpp:
  21062. (KJS::showModalDialog):
  21063. (KJS::setWindowFeature):
  21064. (KJS::parseWindowFeatures):
  21065. * bridge/BrowserExtension.h:
  21066. * dom/Document.cpp:
  21067. (WebCore::Document::setInPageCache):
  21068. * html/HTMLFrameElement.cpp:
  21069. (WebCore::HTMLFrameElement::init):
  21070. (WebCore::HTMLFrameElement::parseMappedAttribute):
  21071. * html/HTMLFrameElement.h:
  21072. (WebCore::HTMLFrameElement::scrollingMode):
  21073. * page/Frame.cpp:
  21074. (WebCore::Frame::finishedParsing):
  21075. (WebCore::Frame::scrollbarsVisible):
  21076. * page/FrameView.cpp:
  21077. (WebCore::FrameViewPrivate::FrameViewPrivate):
  21078. (WebCore::FrameViewPrivate::reset):
  21079. (WebCore::FrameView::~FrameView):
  21080. (WebCore::FrameView::resetScrollbars):
  21081. (WebCore::FrameView::clear):
  21082. (WebCore::FrameView::initScrollbars):
  21083. (WebCore::FrameView::applyOverflowToViewport):
  21084. (WebCore::FrameView::layout):
  21085. (WebCore::FrameView::handleMousePressEvent):
  21086. (WebCore::selectCursor):
  21087. (WebCore::FrameView::handleMouseMoveEvent):
  21088. (WebCore::FrameView::setScrollbarsMode):
  21089. (WebCore::FrameView::setVScrollbarMode):
  21090. (WebCore::FrameView::setHScrollbarMode):
  21091. (WebCore::FrameView::restoreScrollbar):
  21092. (WebCore::FrameView::dispatchMouseEvent):
  21093. (WebCore::FrameView::scrollbarMoved):
  21094. * page/FrameView.h:
  21095. * page/MouseEventWithHitTestResults.cpp:
  21096. (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
  21097. * page/MouseEventWithHitTestResults.h:
  21098. (WebCore::MouseEventWithHitTestResults::scrollbar):
  21099. * platform/ScrollBar.cpp:
  21100. (WebCore::Scrollbar::Scrollbar):
  21101. (WebCore::Scrollbar::setValue):
  21102. (WebCore::Scrollbar::setProportion):
  21103. (WebCore::Scrollbar::setSteps):
  21104. (WebCore::Scrollbar::scroll):
  21105. * platform/ScrollBar.h:
  21106. (WebCore::):
  21107. (WebCore::ScrollbarClient::~ScrollbarClient):
  21108. (WebCore::Scrollbar::~Scrollbar):
  21109. (WebCore::Scrollbar::orientation):
  21110. (WebCore::Scrollbar::controlSize):
  21111. (WebCore::Scrollbar::hasPlatformScrollbars):
  21112. (WebCore::Scrollbar::client):
  21113. * platform/ScrollBarMode.h:
  21114. (WebCore::):
  21115. * platform/ScrollView.h:
  21116. * rendering/RenderBlock.cpp:
  21117. (WebCore::RenderBlock::isPointInScrollbar):
  21118. * rendering/RenderLayer.cpp:
  21119. (WebCore::RenderLayer::RenderLayer):
  21120. (WebCore::RenderLayer::~RenderLayer):
  21121. (WebCore::RenderLayer::scrollToOffset):
  21122. (WebCore::RenderLayer::horizontaScrollbarWidget):
  21123. (WebCore::RenderLayer::verticalScrollbarWidget):
  21124. (WebCore::RenderLayer::valueChanged):
  21125. (WebCore::RenderLayer::createScrollbar):
  21126. (WebCore::RenderLayer::destroyScrollbar):
  21127. (WebCore::RenderLayer::setHasHorizontalScrollbar):
  21128. (WebCore::RenderLayer::setHasVerticalScrollbar):
  21129. (WebCore::RenderLayer::verticalScrollbarWidth):
  21130. (WebCore::RenderLayer::horizontalScrollbarHeight):
  21131. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  21132. * rendering/RenderLayer.h:
  21133. (WebCore::RenderLayer::horizontalScrollbar):
  21134. (WebCore::RenderLayer::verticalScrollbar):
  21135. * rendering/RenderListBox.cpp:
  21136. (WebCore::RenderListBox::~RenderListBox):
  21137. (WebCore::RenderListBox::calcMinMaxWidth):
  21138. (WebCore::RenderListBox::isPointInScrollbar):
  21139. (WebCore::RenderListBox::optionAtPoint):
  21140. (WebCore::RenderListBox::valueChanged):
  21141. * rendering/RenderListBox.h:
  21142. * rendering/RenderObject.h:
  21143. (WebCore::RenderObject::NodeInfo::scrollbar):
  21144. (WebCore::RenderObject::NodeInfo::setScrollbar):
  21145. 2006-10-05 Peter Kasting <pkasting@google.com>
  21146. Reviewed by Adam.
  21147. http://bugs.webkit.org/show_bug.cgi?id=11138
  21148. Incorrect mouse event generation on Windows
  21149. * platform/win/MouseEventWin.cpp:
  21150. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  21151. (1) Set mouse button even for non-click-related messages.
  21152. (2) Track clicks correctly for all buttons, not just the left button.
  21153. 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
  21154. Reviewed and landed by ap.
  21155. Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
  21156. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  21157. (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
  21158. (WebCore::KRenderingPaintServerLinearGradientQt::setup):
  21159. (WebCore::KRenderingPaintServerRadialGradientQt::setup):
  21160. (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
  21161. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
  21162. (WebCore::KRenderingPaintServerPatternQt::renderPath):
  21163. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  21164. (WebCore::KRenderingPaintServerQt::setPenProperties):
  21165. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
  21166. (WebCore::KRenderingPaintServerSolidQt::setup):
  21167. (WebCore::KRenderingPaintServerSolidQt::renderPath):
  21168. * kcanvas/device/qt/RenderPathQt.cpp:
  21169. (WebCore::getPathStroke):
  21170. 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
  21171. Reviewed by Darin.
  21172. http://bugs.webkit.org/show_bug.cgi?id=11054
  21173. REGRESSION: Traditional Chinese encoding in login authentication
  21174. 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
  21175. 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
  21176. for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
  21177. * platform/StreamingTextDecoderICU.cpp:
  21178. (WebCore::TextCodecICU::registerEncodingNames):
  21179. 2006-10-05 Eric Seidel <eric@webkit.org>
  21180. Reviewed by mjs.
  21181. Removed dead code.
  21182. Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
  21183. * WebCore.xcodeproj/project.pbxproj:
  21184. * ksvg2/ecma/GlobalObject.cpp: Removed.
  21185. * ksvg2/ecma/GlobalObject.h: Removed.
  21186. 2006-10-05 Adam Roben <aroben@apple.com>
  21187. Reviewed by Maciej.
  21188. Small ResourceLoaderInternal tweak.
  21189. * platform/ResourceLoaderInternal.h:
  21190. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  21191. 2006-10-05 Eric Seidel <eric@webkit.org>
  21192. Reviewed by mjs.
  21193. More incremental KCanvas cleanup and optimization.
  21194. Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
  21195. Optimized dash array usage to not malloc.
  21196. Also removed un-needed KSVGRenderingStyle includes.
  21197. * kcanvas/KCanvasTreeDebug.cpp:
  21198. (WebCore::operator<<):
  21199. * kcanvas/RenderPath.cpp:
  21200. (WebCore::RenderPath::nodeAtPoint):
  21201. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  21202. (WebCore::RenderPath::strokeBBox):
  21203. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  21204. (WebCore::KRenderingPaintServerGradientQuartz::setup):
  21205. (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
  21206. (WebCore::KRenderingPaintServerGradientQuartz::teardown):
  21207. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  21208. (WebCore::KRenderingPaintServerSolidQuartz::setup):
  21209. (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
  21210. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  21211. (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
  21212. * kcanvas/device/quartz/QuartzSupport.mm:
  21213. (WebCore::applyStrokeStyleToContext):
  21214. * ksvg2/css/SVGRenderStyle.h:
  21215. (WebCore::SVGRenderStyle::hasStroke):
  21216. (WebCore::SVGRenderStyle::hasFill):
  21217. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  21218. (WebCore::KSVGPainterFactory::fillPaintServer):
  21219. (WebCore::KSVGPainterFactory::strokePaintServer):
  21220. * ksvg2/misc/KCanvasRenderingStyle.h:
  21221. 2006-10-05 Maciej Stachowiak <mjs@apple.com>
  21222. Reviewed by Adam.
  21223. - changed ResourceLoader to be refcounted
  21224. It keeps a ref on itself while loading as well. This makes
  21225. for a much saner memory management model than the previous.
  21226. * bridge/mac/WebCoreResourceLoaderImp.mm:
  21227. (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
  21228. * dom/XMLTokenizer.cpp:
  21229. (WebCore::openFunc):
  21230. * loader/icon/IconLoader.cpp:
  21231. (IconLoader::IconLoader):
  21232. (IconLoader::~IconLoader):
  21233. (IconLoader::startLoading):
  21234. (IconLoader::stopLoading):
  21235. (IconLoader::receivedData):
  21236. * loader/icon/IconLoader.h:
  21237. * loader/loader.cpp:
  21238. (WebCore::Loader::servePendingRequests):
  21239. * platform/ResourceLoader.cpp:
  21240. (WebCore::ResourceLoader::create):
  21241. (WebCore::ResourceLoader::kill):
  21242. * platform/ResourceLoader.h:
  21243. * platform/ResourceLoaderInternal.h:
  21244. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  21245. * platform/mac/ResourceLoaderMac.mm:
  21246. (WebCore::ResourceLoader::start):
  21247. * xml/XSLTProcessor.cpp:
  21248. (WebCore::docLoaderFunc):
  21249. * xml/xmlhttprequest.cpp:
  21250. (WebCore::XMLHttpRequest::send):
  21251. * xml/xmlhttprequest.h:
  21252. 2006-10-05 Eric Seidel <eric@webkit.org>
  21253. Reviewed by mjs.
  21254. Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
  21255. http://bugs.webkit.org/show_bug.cgi?id=11163
  21256. No SVG performance tests yet.
  21257. * kcanvas/RenderForeignObject.cpp:
  21258. (WebCore::RenderForeignObject::paint):
  21259. * kcanvas/RenderSVGContainer.cpp:
  21260. (WebCore::RenderSVGContainer::paint):
  21261. * kcanvas/RenderSVGImage.cpp:
  21262. (WebCore::RenderSVGImage::paint):
  21263. * kcanvas/RenderSVGText.cpp:
  21264. (WebCore::RenderSVGText::paint):
  21265. 2006-10-05 Dave Hyatt <hyatt@apple.com>
  21266. Stub out some stuff for widget focusability.
  21267. Reviewed by maciej
  21268. * page/FrameView.cpp:
  21269. (WebCore::FrameView::dispatchMouseEvent):
  21270. * platform/ScrollView.h:
  21271. * platform/Widget.h:
  21272. 2006-10-05 Adam Roben <aroben@apple.com>
  21273. Reviewed by Maciej and Tim H.
  21274. Copy some WebKit frame lifetime logic into WebCore -- just a step
  21275. along the path to frame lifetime being handled completely in WebCore.
  21276. * bridge/mac/FrameMac.mm:
  21277. (WebCore::FrameMac::setView): Move platform-independent parts of this
  21278. method into Frame.
  21279. * page/Frame.cpp:
  21280. (WebCore::Frame::setView): Adding platform-independent parts of
  21281. FrameMac::setView
  21282. (WebCore::Frame::detachChildren): New method to accomplish what
  21283. -[WebFrameBridge _detachChildren] currently does.
  21284. (WebCore::Frame::clear): Call detachChildren
  21285. * page/Frame.h: Add declaration for detachChildren
  21286. 2006-10-04 Alice Liu <alice.liu@apple.com>
  21287. Reviewed by Darin.
  21288. Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
  21289. * xml/xmlhttprequest.cpp:
  21290. (WebCore::XMLHttpRequest::setRequestHeader):
  21291. removed exception set when the request is not open yet
  21292. 2006-10-04 Anders Carlsson <acarlsson@apple.com>
  21293. Reviewed by John Sullivan.
  21294. <rdar://problem/4654328>
  21295. Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
  21296. * loader/PluginDocument.cpp:
  21297. (WebCore::PluginTokenizer::writeRawData):
  21298. Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
  21299. 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
  21300. Reviewed by Tim H.
  21301. http://bugs.webkit.org/show_bug.cgi?id=11130
  21302. Convert "undefined" to AE missing value
  21303. * bridge/mac/WebCoreFrameBridge.mm:
  21304. (aeDescFromJSValue): return missing value for UndefinedType.
  21305. 2006-10-03 Dave Hyatt <hyatt@apple.com>
  21306. Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
  21307. the windowToContents/contentsToWindow functions.
  21308. Reviewed by anders
  21309. * bridge/mac/FrameMac.mm:
  21310. (WebCore::FrameMac::eventMayStartDrag):
  21311. (WebCore::FrameMac::dragHysteresisExceeded):
  21312. (WebCore::FrameMac::mouseDown):
  21313. (WebCore::FrameMac::shouldDragAutoNode):
  21314. (WebCore::FrameMac::sendContextMenuEvent):
  21315. * bridge/mac/FrameViewMac.mm:
  21316. (WebCore::FrameView::passMousePressEventToScrollbar):
  21317. * bridge/mac/WebCoreFrameBridge.mm:
  21318. (-[WebCoreFrameBridge _visiblePositionForPoint:]):
  21319. * dom/EventTargetNode.cpp:
  21320. (WebCore::EventTargetNode::dispatchMouseEvent):
  21321. (WebCore::EventTargetNode::dispatchWheelEvent):
  21322. * page/Frame.cpp:
  21323. (WebCore::Frame::selectClosestWordFromMouseEvent):
  21324. (WebCore::Frame::handleMousePressEventTripleClick):
  21325. (WebCore::Frame::handleMousePressEventSingleClick):
  21326. (WebCore::Frame::handleMouseMoveEvent):
  21327. (WebCore::Frame::handleMouseReleaseEvent):
  21328. * page/FrameView.cpp:
  21329. (WebCore::FrameView::handleMousePressEvent):
  21330. (WebCore::FrameView::handleMouseDoubleClickEvent):
  21331. (WebCore::selectCursor):
  21332. (WebCore::FrameView::handleMouseMoveEvent):
  21333. (WebCore::FrameView::handleMouseReleaseEvent):
  21334. (WebCore::FrameView::dispatchDragEvent):
  21335. (WebCore::FrameView::prepareMouseEvent):
  21336. (WebCore::FrameView::handleWheelEvent):
  21337. * page/FrameView.h:
  21338. * platform/ScrollBar.cpp:
  21339. (WebCore::ScrollBar::setValue):
  21340. * platform/ScrollView.h:
  21341. * platform/Widget.h:
  21342. (WebCore::Widget::scrolled):
  21343. * platform/mac/ScrollViewMac.mm:
  21344. (WebCore::ScrollView::contentsToWindow):
  21345. (WebCore::ScrollView::windowToContents):
  21346. (WebCore::ScrollView::scrollbarUnderMouse):
  21347. * platform/mac/WidgetMac.mm:
  21348. * rendering/RenderLayer.cpp:
  21349. (WebCore::RenderLayer::resize):
  21350. (WebCore::RenderLayer::positionScrollbars):
  21351. * rendering/RenderReplaced.cpp:
  21352. (WebCore::RenderReplaced::shouldPaint):
  21353. * rendering/RenderView.cpp:
  21354. * rendering/RenderView.h:
  21355. * rendering/RenderWidget.cpp:
  21356. (WebCore::RenderWidget::setWidget):
  21357. 2006-09-26 David Smith <catfish.man@gmail.com>
  21358. Reviewed by Timothy.
  21359. http://bugs.webkit.org/show_bug.cgi?id=3723
  21360. Add -scrollDOMRangeToVisible:
  21361. No automated tests are possible as this code path isn't reachable from JavaScript.
  21362. * bridge/mac/WebCoreFrameBridge.h:
  21363. * bridge/mac/WebCoreFrameBridge.mm:
  21364. (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
  21365. 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
  21366. Reviewed by Timothy.
  21367. <http://bugs.webkit.org/show_bug.cgi?id=10338>
  21368. When contentEditable, cursor doesn't change to hand
  21369. Allow the behaviour of editable links to be specified by a WebPreference
  21370. The preference WebKitEditableLinkBehavior has four options:
  21371. - AlwaysLive: Safari 2.0 behaviour
  21372. - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
  21373. - LiveWhenNotFocused: Editable links are live only when their editable block is not
  21374. focused, or when the shift key is pressed
  21375. - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
  21376. No layout tests, just a modification of a manual-test as it isn't possible to test
  21377. this automatically.
  21378. * bridge/mac/WebCoreSettings.h:
  21379. * bridge/mac/WebCoreSettings.mm:
  21380. (-[WebCoreSettings setEditableLinkBehavior:]):
  21381. (-[WebCoreSettings editableLinkBehavior]):
  21382. * html/HTMLAnchorElement.cpp:
  21383. (WebCore::HTMLAnchorElement::HTMLAnchorElement):
  21384. (WebCore::HTMLAnchorElement::defaultEventHandler):
  21385. (WebCore::HTMLAnchorElement::setActive):
  21386. * html/HTMLAnchorElement.h:
  21387. * manual-tests/contenteditable-link.html:
  21388. * page/FrameView.cpp:
  21389. (WebCore::nodeIsNotBeingEdited):
  21390. (WebCore::selectCursor):
  21391. * page/Settings.h:
  21392. (WebCore::Settings::):
  21393. (WebCore::Settings::Settings):
  21394. (WebCore::Settings::editableLinkBehavior):
  21395. (WebCore::Settings::setEditableLinkBehavior):
  21396. 2006-10-03 Beth Dakin <bdakin@apple.com>
  21397. Reviewed Darin.
  21398. No test cases needed.
  21399. Implemented a version of StringImpl::append that takes a UChar* and
  21400. a length.
  21401. * platform/StringImpl.cpp:
  21402. (WebCore::StringImpl::append):
  21403. (WebCore::StringImpl::insert): Call new append instead of making a
  21404. new StringImpl.
  21405. * platform/StringImpl.h:
  21406. 2006-10-03 Darin Fisher <darin@chromium.org>
  21407. Reviewed by Darin.
  21408. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
  21409. HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
  21410. * platform/win/ResourceLoaderWin.cpp:
  21411. (WebCore::ResourceLoader::onHandleCreated):
  21412. 2006-10-02 Geoffrey Garen <ggaren@apple.com>
  21413. Feared, loathed, reviewed by Darin.
  21414. More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
  21415. into FRAME, plus other cleanup.
  21416. No new behavior, so no new test. Layout tests pass. Basic browsing and
  21417. Mail editing seem to work.
  21418. * dom/Node.cpp:
  21419. (WebCore::Node::detach): Removed random commented-out code.
  21420. * html/HTMLFrameElement.cpp:
  21421. (WebCore::HTMLFrameElement::isURLAllowed):
  21422. (1) Removed reference to FrameView, to dissociate frame loading from rendering.
  21423. (2) Renamed newURL to completeURL because the difference between newURL
  21424. and URLString is that newURL is a KURL that is the complete version of URLString,
  21425. not that it is new.
  21426. (WebCore::HTMLFrameElement::willRemove):
  21427. (1) Removed close() call and moved close() code into willRemove(), also removing
  21428. close() call from detach(), since willRemove is the well-defined place
  21429. from DOM tear-down, not detach().
  21430. (2) Removed manual renderer detach code because the DOM is not responsible
  21431. for managing the render tree. I confirmed that this change not
  21432. regress <rdar://problem/4132581>.
  21433. (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
  21434. lost their content frames after being removed from the DOM. That's our
  21435. current behavior, but it's going to change in future rounds of refactoring.
  21436. This also fixes <rdar://problem/4750835>.
  21437. (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
  21438. attach/detach, because the render tree should not be in charge of deciding
  21439. when to load.
  21440. * html/HTMLFrameElement.h:
  21441. * html/HTMLIFrameElement.cpp:
  21442. (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
  21443. because the renderer is a renderPartObject, not a renderPart.
  21444. * html/HTMLIFrameElement.h:
  21445. 2006-10-03 Mark Rowe <bdash@webkit.org>
  21446. Reviewed by Mitz.
  21447. http://bugs.webkit.org/show_bug.cgi?id=11137
  21448. Bug 11137: GdkLauncher dies with "pure virtual method called" if
  21449. window is closed while page still loading
  21450. * platform/gdk/FrameGdk.cpp:
  21451. (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
  21452. methods to be called before the FrameGdk portion of "this" is torn down.
  21453. 2006-10-03 Adam Roben <aroben@apple.com>
  21454. Reviewed by Darin.
  21455. Handle tab key presses in the DOM.
  21456. * dom/EventTargetNode.cpp:
  21457. (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
  21458. * page/FrameView.cpp:
  21459. (WebCore::FrameView::advanceFocus): Rename and reimplement
  21460. focusNextPrevNode. Now we just call Element::focus().
  21461. * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
  21462. it public.
  21463. 2006-10-03 Justin Garcia <justin.garcia@apple.com>
  21464. Reviewed by mjs
  21465. <rdar://problem/4760612>
  21466. TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
  21467. No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
  21468. * dom/Range.cpp:
  21469. (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
  21470. positions are non-null since most of it's callers would be in a bad state if the positions
  21471. were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
  21472. Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
  21473. from entering compareBoundaryPoints and hitting the assert.
  21474. 2006-10-03 Adele Peterson <adele@apple.com>
  21475. Reviewed by Geoff.
  21476. Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
  21477. * html/HTMLSelectElement.cpp:
  21478. (WebCore::HTMLSelectElement::recalcStyle):
  21479. (WebCore::HTMLSelectElement::isKeyboardFocusable):
  21480. (WebCore::HTMLSelectElement::isMouseFocusable):
  21481. (WebCore::HTMLSelectElement::createRenderer):
  21482. (WebCore::HTMLSelectElement::setRecalcListItems):
  21483. (WebCore::HTMLSelectElement::notifyOptionSelected):
  21484. (WebCore::HTMLSelectElement::defaultEventHandler):
  21485. 2006-10-04 Darin Adler <darin@apple.com>
  21486. Reviewed by Geoff.
  21487. - fix http://bugs.webkit.org/show_bug.cgi?id=11132
  21488. Caret disappears when you're typing
  21489. * editing/SelectionController.cpp:
  21490. (WebCore::SelectionController::setSelection): Remove unnecessary call to
  21491. clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
  21492. (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
  21493. to false so we can get the old caret repaint rect. Later we need to change the
  21494. design so getting the rect doesn't have a side effect of causing a layout without
  21495. invalidation.
  21496. 2006-10-03 David Harrison <harrison@apple.com>
  21497. Reviewed by Maciej.
  21498. <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
  21499. Updated test:
  21500. * fast/text/justified-text-rect.html
  21501. * bridge/mac/WebCoreFrameBridge.mm:
  21502. (-[WebCoreFrameBridge convertToNSRange:]):
  21503. (-[WebCoreFrameBridge convertToDOMRange:]):
  21504. Make the selection's root editable element (or the document itself) be
  21505. the basis for NSRange conversions. This supports "shadow DOM" like
  21506. that for text fields and text areas.
  21507. * editing/CompositeEditCommand.cpp:
  21508. (WebCore::CompositeEditCommand::moveParagraphs):
  21509. Pass the document element as the scope.
  21510. * editing/TextIterator.cpp:
  21511. (WebCore::TextIterator::rangeFromLocationAndLength):
  21512. Make the first parameter the scope.
  21513. * editing/TextIterator.h:
  21514. Make the first parameter of rangeFromLocationAndLength() the scope.
  21515. 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
  21516. Reviewed by Eric.
  21517. Fix Qt/Linux build.
  21518. * CMakeLists.txt: Add counter related files.
  21519. 2006-10-03 Mark Rowe <bdash@webkit.org>
  21520. Reviewed by Eric.
  21521. http://bugs.webkit.org/show_bug.cgi?id=10981
  21522. Linux/GDK build fixes
  21523. Based on a patch by Krzysztof Kowalczyk.
  21524. * WebCoreSources.bkl:
  21525. * platform/gdk/FrameGdk.cpp:
  21526. (WebCore::doScroll):
  21527. (WebCore::FrameGdk::handleGdkEvent):
  21528. * platform/gdk/PlatformScrollBar.h: Added.
  21529. (WebCore::PlatformScrollBar::isWidget):
  21530. * platform/gdk/ScrollViewGdk.cpp:
  21531. * platform/gdk/TemporaryLinkStubs.cpp:
  21532. (FrameView::passMousePressEventToScrollbar):
  21533. (FrameView::passMousePressEventToSubframe):
  21534. (FrameView::passMouseReleaseEventToSubframe):
  21535. (FrameView::passMouseMoveEventToSubframe):
  21536. (FrameView::passWheelEventToSubframe):
  21537. (Cursor::Cursor):
  21538. (Widget::invalidate):
  21539. (Widget::invalidateRect):
  21540. (ScrollView::wheelEvent):
  21541. (ScrollView::convertToContainingWindow):
  21542. (ScrollView::convertFromContainingWindow):
  21543. (GraphicsContext::clip):
  21544. (PlatformScrollBar::PlatformScrollBar):
  21545. (PlatformScrollBar::updateThumbPosition):
  21546. (PlatformScrollBar::updateThumbProportion):
  21547. (ScrollBar::ScrollBar):
  21548. (ScrollBar::setProportion):
  21549. (WebCore::supportedKeySizes):
  21550. (WebCore::signedPublicKeyAndChallengeString):
  21551. * platform/gdk/WheelEventGdk.cpp:
  21552. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  21553. * platform/gdk/WidgetGdk.cpp:
  21554. (WebCore::Widget::convertToContainingWindow):
  21555. (WebCore::Widget::convertFromContainingWindow):
  21556. 2006-10-02 Adam Roben <aroben@apple.com>
  21557. Reviewed by Maciej.
  21558. Let Windows determine which mouse button is pressed.
  21559. * platform/PlatformMouseEvent.h: Add message parameter to constructor.
  21560. * platform/win/MouseEventWin.cpp:
  21561. (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
  21562. parameter to determine which mouse button is pressed.
  21563. 2006-10-02 Justin Garcia <justin.garcia@apple.com>
  21564. Reviewed by anders
  21565. Build fix
  21566. * editing/SelectionController.cpp:
  21567. (WebCore::SelectionController::empty):
  21568. * editing/SelectionController.h:
  21569. 2006-10-02 Justin Garcia <justin.garcia@apple.com>
  21570. Reviewed by john
  21571. <rdar://problem/4755287>
  21572. Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
  21573. * editing/markup.cpp:
  21574. (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
  21575. elements). Don't skip blocks that aren't containers (like horizontal rules).
  21576. 2006-10-03 Darin Adler <darin@apple.com>
  21577. Reviewed by Justin Garcia.
  21578. - correct mistaken code that would restart blinking every
  21579. time "invalidateSelection" is called even if the caret
  21580. has not moved
  21581. * editing/SelectionController.h:
  21582. * editing/SelectionController.cpp:
  21583. (WebCore::SelectionController::setSelection): Update for name change.
  21584. (WebCore::SelectionController::recomputeCaretRect): New function.
  21585. Computes caret rect and does any necessary invalidation if the rect
  21586. changes.
  21587. (WebCore::SelectionController::invalidateCaretRect): Renamed from
  21588. needsCaretRepaint. Invalidates the caret rect unconditionally. Also
  21589. calls recomputeCaretRect as a side effect.
  21590. * page/Frame.cpp:
  21591. (WebCore::Frame::invalidateSelection): Remove unneeded call to
  21592. clearCaretRectIfNeeded.
  21593. (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
  21594. (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
  21595. recomputeCaretRect function and not restart blinking if caret has
  21596. not changed position.
  21597. (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
  21598. are not needed since selectionLayoutChanged already checks these.
  21599. * page/FramePrivate.h: Removed unused m_blinkCaret.
  21600. 2006-10-02 Beth Dakin <bdakin@apple.com>
  21601. Reviewed by Adam.
  21602. Build fix. Add counters to vcproj.
  21603. * WebCore.vcproj/WebCore/WebCore.vcproj:
  21604. 2006-10-02 Brady Eidson <beidson@apple.com>
  21605. Reviewed by Adele
  21606. If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
  21607. icon data out because we don't correctly check SQL error conditions.
  21608. * loader/icon/IconDataCache.cpp:
  21609. (WebCore::IconDataCache::writeToDatabase):
  21610. 2006-10-02 Steve Falkenburg <sfalken@apple.com>
  21611. Reviewed by Hyatt.
  21612. Added method to find out whether a layout has occurred.
  21613. * page/FrameView.cpp:
  21614. (WebCore::FrameView::didFirstLayout):
  21615. * page/FrameView.h:
  21616. 2006-10-02 Beth Dakin <bdakin@apple.com>
  21617. Reviewed by Darin.
  21618. Initial implementation of CSS2 counters. See http://
  21619. bugs.webkit.org/show_bug.cgi?id=4980 for more details.
  21620. * WebCore.xcodeproj/project.pbxproj:
  21621. * css/CSSComputedStyleDeclaration.cpp:
  21622. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
  21623. the increment/reset list now that this is implemented.
  21624. * css/CSSPrimitiveValue.cpp:
  21625. (WebCore::CSSPrimitiveValue::cssText):
  21626. * css/Counter.h:
  21627. (WebCore::Counter::Counter):
  21628. (WebCore::Counter::~Counter):
  21629. (WebCore::Counter::identifier):
  21630. (WebCore::Counter::listStyle):
  21631. (WebCore::Counter::separator):
  21632. (WebCore::Counter::listStyleNumber):
  21633. (WebCore::Counter::setIdentifier):
  21634. (WebCore::Counter::setListStyle):
  21635. (WebCore::Counter::setSeparator):
  21636. * css/cssparser.cpp:
  21637. (WebCore::CSSParser::addProperty): Take care of reset/increment
  21638. (WebCore::CSSParser::parseValue):
  21639. (WebCore::CSSParser::parseContent): content can now take counters
  21640. (WebCore::CSSParser::parseCounterContent): Parse counter() and
  21641. counters()
  21642. (WebCore::CSSParser::parseCounter): Parse counter-reset and
  21643. counter-increment
  21644. * css/cssparser.h:
  21645. * css/cssstyleselector.cpp:
  21646. (WebCore::CSSStyleSelector::matchUARules):
  21647. (WebCore::CSSStyleSelector::applyProperty):
  21648. * platform/PlatformString.h:
  21649. * platform/String.cpp:
  21650. (WebCore::String::insert): Implemented a version of insert that
  21651. accepts a UChar* and a length.
  21652. * platform/StringImpl.cpp:
  21653. (WebCore::StringImpl::insert): Same as above.
  21654. * platform/StringImpl.h:
  21655. * rendering/CounterListItem.h: Added.
  21656. * rendering/CounterNode.cpp: Added.
  21657. (WebCore::CounterNode::CounterNode):
  21658. (WebCore::CounterNode::insertAfter):
  21659. (WebCore::CounterNode::removeChild):
  21660. (WebCore::CounterNode::remove):
  21661. (WebCore::CounterNode::setUsesSeparator):
  21662. (WebCore::CounterNode::recountAndGetNext):
  21663. (WebCore::CounterNode::recountTree):
  21664. (WebCore::CounterNode::setSelfDirty):
  21665. (WebCore::CounterNode::setParentDirty):
  21666. * rendering/CounterNode.h: Added.
  21667. (WebCore::CounterNode::~CounterNode):
  21668. (WebCore::CounterNode::parent):
  21669. (WebCore::CounterNode::previousSibling):
  21670. (WebCore::CounterNode::nextSibling):
  21671. (WebCore::CounterNode::firstChild):
  21672. (WebCore::CounterNode::lastChild):
  21673. (WebCore::CounterNode::value):
  21674. (WebCore::CounterNode::setValue):
  21675. (WebCore::CounterNode::count):
  21676. (WebCore::CounterNode::setCount):
  21677. (WebCore::CounterNode::setHasSeparator):
  21678. (WebCore::CounterNode::isReset):
  21679. (WebCore::CounterNode::hasSeparator):
  21680. (WebCore::CounterNode::willNeedLayout):
  21681. (WebCore::CounterNode::setWillNeedLayout):
  21682. (WebCore::CounterNode::isRoot):
  21683. (WebCore::CounterNode::setRenderer):
  21684. (WebCore::CounterNode::renderer):
  21685. * rendering/CounterResetNode.cpp: Added.
  21686. (WebCore::CounterResetNode::CounterResetNode):
  21687. (WebCore::CounterResetNode::insertAfter):
  21688. (WebCore::CounterResetNode::removeChild):
  21689. (WebCore::CounterResetNode::recountAndGetNext):
  21690. (WebCore::CounterResetNode::setParentDirty):
  21691. (WebCore::CounterResetNode::updateTotal):
  21692. * rendering/CounterResetNode.h: Added.
  21693. (WebCore::CounterResetNode::firstChild):
  21694. (WebCore::CounterResetNode::lastChild):
  21695. (WebCore::CounterResetNode::isReset):
  21696. (WebCore::CounterResetNode::total):
  21697. * rendering/RenderContainer.cpp:
  21698. (WebCore::RenderContainer::updatePseudoChildForObject): Account for
  21699. counter content.
  21700. * rendering/RenderCounter.cpp: Added.
  21701. (WebCore::RenderCounter::RenderCounter):
  21702. (WebCore::RenderCounter::layout):
  21703. (WebCore::toRoman):
  21704. (WebCore::toLetterString):
  21705. (WebCore::toHebrew):
  21706. (WebCore::RenderCounter::convertValueToType):
  21707. (WebCore::RenderCounter::calcMinMaxWidth):
  21708. * rendering/RenderCounter.h: Added.
  21709. (WebCore::RenderCounter::renderName):
  21710. (WebCore::RenderCounter::isCounter):
  21711. * rendering/RenderObject.cpp:
  21712. (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
  21713. maps of CounterNodes
  21714. (WebCore::RenderObject::RenderObject):
  21715. (WebCore::RenderObject::destroy): Destroy the maps.
  21716. (WebCore::RenderObject::findCounter): Finds/creates counters.
  21717. * rendering/RenderObject.h:
  21718. (WebCore::RenderObject::isCounter):
  21719. * rendering/RenderStyle.cpp:
  21720. (WebCore::StyleVisualData::StyleVisualData):
  21721. (WebCore::RenderStyle::arenaDelete):
  21722. (WebCore::RenderStyle::RenderStyle):
  21723. (WebCore::RenderStyle::diff):
  21724. (WebCore::RenderStyle::setContent):
  21725. (WebCore::ContentData::clearContent):
  21726. (WebCore::RenderStyle::counterDataEquivalent):
  21727. (WebCore::hasCounter):
  21728. (WebCore::RenderStyle::hasCounterReset):
  21729. (WebCore::RenderStyle::hasCounterIncrement):
  21730. (WebCore::readCounter):
  21731. (WebCore::RenderStyle::counterReset):
  21732. (WebCore::RenderStyle::counterIncrement):
  21733. * rendering/RenderStyle.h:
  21734. (WebCore::StyleVisualData::operator==):
  21735. (WebCore::CounterData::CounterData):
  21736. (WebCore::CounterData::identifier):
  21737. (WebCore::CounterData::listStyle):
  21738. (WebCore::CounterData::separator):
  21739. (WebCore::ContentData::contentCounter):
  21740. (WebCore::ContentData::):
  21741. (WebCore::RenderStyle::counterIncrement):
  21742. (WebCore::RenderStyle::counterReset):
  21743. (WebCore::RenderStyle::setCounterIncrement):
  21744. (WebCore::RenderStyle::setCounterReset):
  21745. (WebCore::RenderStyle::setCounterResetList):
  21746. (WebCore::RenderStyle::setCounterIncrementList):
  21747. (WebCore::RenderStyle::counterResetValueList):
  21748. (WebCore::RenderStyle::counterIncrementValueList):
  21749. 2006-10-02 Adele Peterson <adele@apple.com>
  21750. Reviewed by Adam.
  21751. - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
  21752. There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
  21753. by using "-webkit-appearance:none".
  21754. * css/html4.css:
  21755. 2006-10-02 David Harrison <harrison@apple.com>
  21756. Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
  21757. addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
  21758. Left the layout test.
  21759. * rendering/bidi.cpp:
  21760. (WebCore::checkMidpoints):
  21761. 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
  21762. Reviewed by eseidel. Landed by eseidel.
  21763. Fix Qt/Linux build.
  21764. * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
  21765. (WebCore::supportedKeySizes):
  21766. 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
  21767. Reviewed by eseidel & mjs. Landed by eseidel.
  21768. Fix Qt/Linux build with older gcc 3.3.4.
  21769. http://bugs.webkit.org/show_bug.cgi?id=11116
  21770. As discussed with Maciej, the GCC_ROOT_NS_HACK
  21771. can be completely removed, as well as the friendship
  21772. between cacheGlobalObject & the JS* objects.
  21773. * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
  21774. * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
  21775. (png_read_filter_row_mmx_avg):
  21776. * platform/image-decoders/png/pngvcrd.c: Ditto.
  21777. (png_mmx_support):
  21778. (png_read_filter_row_mmx_avg):
  21779. 2006-10-01 Maciej Stachowiak <mjs@apple.com>
  21780. Rubber stamped by Alexey.
  21781. - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
  21782. * css/CSSGrammar.y:
  21783. 2006-10-01 Eric Seidel <eric@webkit.org>
  21784. Reviewed by mjs.
  21785. Eliminate a few more hotspots in SVG drawing code.
  21786. No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
  21787. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  21788. (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
  21789. * platform/mac/ColorMac.mm:
  21790. (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
  21791. 2006-10-01 Geoffrey Garen <ggaren@apple.com>
  21792. Reviewed by Maciej.
  21793. More frame/iframe merging.
  21794. - Removed needWidgetUpdate and related code. needWidgetUpdate is always
  21795. false, so this was dead code.
  21796. - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
  21797. than attach(), is the correct place for setInViewSourceMode, because
  21798. openURL() is the function that creates our frame.
  21799. - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
  21800. code that did the same thing in other places.
  21801. - Made FRAME's attach() method suffuciently generic so that IFRAME could
  21802. call up to it, rather than skipping its superclass and calling up directly
  21803. to ELEMENT.
  21804. - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
  21805. - Replaced ad hoc frame loading code in FRAME::attach() with call to
  21806. openURL(), the designated frame loading function.
  21807. Layout tests pass. I added a layout test for viewsource mode, since I
  21808. broke it in the course of writing this patch.
  21809. 2006-10-01 Anders Carlsson <acarlsson@apple.com>
  21810. Reviewed by Geoff.
  21811. * dom/Document.cpp:
  21812. (WebCore::Document::recalcStyleSelector):
  21813. * dom/Document.h:
  21814. Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
  21815. * dom/Node.h:
  21816. Remove DeprecatedStringList class forward declaration.
  21817. * editing/markup.cpp:
  21818. Include DeprecatedStringList.h here since it's not included by Document.h anymore.
  21819. * kcanvas/KCanvasTreeDebug.cpp:
  21820. * kcanvas/KCanvasTreeDebug.h:
  21821. Remove unused functions.
  21822. * loader/loader.cpp:
  21823. * page/Frame.cpp:
  21824. * page/Frame.h:
  21825. * page/FrameView.h:
  21826. Fixup DeprecatedStringList.h includes.
  21827. 2006-09-30 David Harrison <harrison@apple.com>
  21828. Reviewed by John Sullivan.
  21829. <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
  21830. Problem was that the decision to trim was based only on whether the character
  21831. is a soft hyphen, which caused pretty much any Japanese character to go.
  21832. Changed to decide based on whether the character is ignorable whitespace.
  21833. Test:
  21834. * fast/text/international/wrap-CJK-001.html
  21835. * rendering/bidi.cpp:
  21836. (WebCore::isTrimmableChar):
  21837. New. Checks whether character is whitespace that can be ignored
  21838. according to the text node's style.
  21839. trimmed from the end of wrapped line.
  21840. (WebCore::checkMidpoints):
  21841. Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
  21842. 2006-10-01 Anders Carlsson <acarlsson@apple.com>
  21843. Reviewed by Mitz Pettel.
  21844. Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
  21845. * ksvg2/svg/SVGColor.cpp:
  21846. (WebCore::SVGColor::setRGBColor):
  21847. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  21848. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  21849. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  21850. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  21851. (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
  21852. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  21853. (SVGFESpecularLightingElement::parseMappedAttribute):
  21854. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  21855. (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
  21856. * ksvg2/svg/SVGLengthList.cpp:
  21857. * ksvg2/svg/SVGNumberList.cpp:
  21858. (SVGNumberList::parse):
  21859. * ksvg2/svg/SVGNumberList.h:
  21860. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  21861. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  21862. * ksvg2/svg/SVGStringList.cpp:
  21863. (WebCore::SVGStringList::reset):
  21864. * ksvg2/svg/SVGStringList.h:
  21865. * ksvg2/svg/SVGTransformable.cpp:
  21866. (SVGTransformable::parseTransformAttribute):
  21867. 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
  21868. Reviewed by Eric, tweaked and landed by ap.
  21869. Fix Qt/Linux build.
  21870. * CMakeLists.txt:
  21871. * platform/qt/PlatformScrollBar.h:
  21872. * platform/qt/TemporaryLinkStubs.cpp:
  21873. (WebCore::ScrollBar::ScrollBar):
  21874. (WebCore::PlatformScrollBar::PlatformScrollBar):
  21875. (FrameView::passMousePressEventToSubframe):
  21876. (FrameView::passMouseMoveEventToSubframe):
  21877. (FrameView::passMouseReleaseEventToSubframe):
  21878. (FrameView::passWheelEventToSubframe):
  21879. (FrameView::passMousePressEventToScrollbar):
  21880. * ksvg2/svg/SVGDocument.h:
  21881. 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
  21882. Reviewed by Darin.
  21883. Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
  21884. REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
  21885. No test case added (probably requires new DumpRenderTree functionality)
  21886. * rendering/RenderImage.cpp:
  21887. (WebCore::RenderImage::imageChanged): Added early return if the document is
  21888. being destroyed.
  21889. 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
  21890. Reviewed by Hyatt.
  21891. Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
  21892. REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
  21893. Make sure we only break after a space (and not any other valid line-break) if
  21894. the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
  21895. I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
  21896. twice in quick succession.
  21897. * rendering/bidi.cpp:
  21898. (WebCore::RenderBlock::findNextLineBreak):
  21899. 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
  21900. Reviewed by Maciej and Darin.
  21901. http://bugs.webkit.org/show_bug.cgi?id=4372
  21902. JavaScript document.write page form does not submit in Safari
  21903. Test: fast/forms/document-write.html
  21904. * page/Frame.cpp:
  21905. (WebCore::Frame::submitForm): Don't check for parsing().
  21906. 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
  21907. Build fix.
  21908. * bridge/mac/FrameViewMac.mm: Add missing #imports.
  21909. 2006-10-01 Dave Hyatt <hyatt@apple.com>
  21910. Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
  21911. Reviewed by mitz
  21912. * bridge/mac/FrameMac.mm:
  21913. (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
  21914. * bridge/mac/FrameViewMac.mm:
  21915. (WebCore::FrameView::passMousePressEventToScrollbar):
  21916. * page/FrameView.cpp:
  21917. (WebCore::FrameView::handleMousePressEvent):
  21918. (WebCore::FrameView::setMousePressed):
  21919. * page/FrameView.h:
  21920. * platform/win/TemporaryLinkStubs.cpp:
  21921. (FrameView::passMousePressEventToScrollbar):
  21922. 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
  21923. Reviewed by Darin.
  21924. Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
  21925. Add more SVG Objective-C DOM bindings
  21926. - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
  21927. DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
  21928. DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
  21929. DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
  21930. DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
  21931. DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
  21932. * DerivedSources.make:
  21933. * WebCore.xcodeproj/project.pbxproj:
  21934. * bindings/objc/DOMInternal.h:
  21935. * bindings/objc/DOMSVG.h:
  21936. * bindings/scripts/CodeGeneratorObjC.pm:
  21937. * ksvg2/svg/SVGAElement.idl:
  21938. * ksvg2/svg/SVGAnimateColorElement.idl:
  21939. * ksvg2/svg/SVGAnimateElement.idl:
  21940. * ksvg2/svg/SVGAnimateTransformElement.idl:
  21941. * ksvg2/svg/SVGAnimatedPathData.idl:
  21942. * ksvg2/svg/SVGAnimatedPoints.idl:
  21943. * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
  21944. * ksvg2/svg/SVGAnimationElement.idl:
  21945. * ksvg2/svg/SVGCircleElement.idl:
  21946. * ksvg2/svg/SVGClipPathElement.idl:
  21947. * ksvg2/svg/SVGColor.idl:
  21948. * ksvg2/svg/SVGCursorElement.idl:
  21949. * ksvg2/svg/SVGDefsElement.idl:
  21950. * ksvg2/svg/SVGDescElement.idl:
  21951. * ksvg2/svg/SVGDocument.idl:
  21952. * ksvg2/svg/SVGEllipseElement.idl:
  21953. * ksvg2/svg/SVGPointList.idl:
  21954. * ksvg2/svg/SVGPreserveAspectRatio.idl:
  21955. * ksvg2/svg/SVGRect.idl:
  21956. * ksvg2/svg/SVGSVGElement.idl:
  21957. 2006-09-30 Maciej Stachowiak <mjs@apple.com>
  21958. Reviewed by Adele.
  21959. - fix build
  21960. * platform/FloatRect.h:
  21961. (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
  21962. but more appropriate for path-type stuff.
  21963. * platform/cg/PathCG.cpp:
  21964. (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
  21965. 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
  21966. Reviewed by Darin.
  21967. http://bugs.webkit.org/show_bug.cgi?id=11011
  21968. External CSS is parsed as iso-8859-1 even though the main document is utf-8
  21969. Test: fast/encoding/css-charset-default.xhtml
  21970. * loader/CachedResourceClient.h:
  21971. (WebCore::CachedResourceClient::setCSSStyleSheet):
  21972. (WebCore::CachedResourceClient::setXSLStyleSheet):
  21973. Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
  21974. takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
  21975. * css/CSSImportRule.cpp:
  21976. (WebCore::CSSImportRule::setCSSStyleSheet):
  21977. (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
  21978. * css/CSSImportRule.h:
  21979. * css/CSSStyleSheet.cpp:
  21980. (WebCore::CSSStyleSheet::CSSStyleSheet):
  21981. * css/CSSStyleSheet.h:
  21982. Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
  21983. member. Changed some String parameters to const String&.
  21984. * css/StyleSheet.cpp:
  21985. (WebCore::StyleSheet::StyleSheet):
  21986. * css/StyleSheet.h:
  21987. Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
  21988. * css/StyleSheetList.cpp:
  21989. (WebCore::StyleSheetList::length):
  21990. (WebCore::StyleSheetList::item):
  21991. * css/StyleSheetList.h:
  21992. Special-casing implicit stylesheets seemed to be dead code, removed.
  21993. * dom/Document.cpp:
  21994. (WebCore::Document::setCSSStyleSheet):
  21995. (WebCore::Document::recalcStyleSelector):
  21996. * dom/Document.h:
  21997. Renamed setStyleSheet() to setCSSStyleSheet().
  21998. * dom/ProcessingInstruction.cpp:
  21999. (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
  22000. (WebCore::ProcessingInstruction::setCSSStyleSheet):
  22001. (WebCore::ProcessingInstruction::setXSLStyleSheet):
  22002. (WebCore::ProcessingInstruction::parseStyleSheet):
  22003. * dom/ProcessingInstruction.h:
  22004. * html/HTMLLinkElement.cpp:
  22005. (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
  22006. is not specified.
  22007. (WebCore::HTMLLinkElement::setCSSStyleSheet):
  22008. * html/HTMLLinkElement.h:
  22009. * html/HTMLStyleElement.cpp:
  22010. (WebCore::HTMLStyleElement::childrenChanged):
  22011. * ksvg2/svg/SVGStyleElement.cpp:
  22012. (WebCore::SVGStyleElement::childrenChanged):
  22013. Inherit URL and charset from the document.
  22014. * loader/Cache.cpp:
  22015. (WebCore::Cache::requestCSSStyleSheet):
  22016. * loader/Cache.h:
  22017. Adjust for setStyleSheet() renaming.
  22018. * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
  22019. * loader/CachedCSSStyleSheet.cpp:
  22020. (WebCore::CachedCSSStyleSheet::ref):
  22021. (WebCore::CachedCSSStyleSheet::deref):
  22022. (WebCore::CachedCSSStyleSheet::checkNotify):
  22023. Pass the encoding to setCSSStyleSheet().
  22024. * loader/CachedXSLStyleSheet.cpp:
  22025. (WebCore::CachedXSLStyleSheet::ref):
  22026. (WebCore::CachedXSLStyleSheet::checkNotify):
  22027. * loader/DocLoader.cpp:
  22028. (WebCore::DocLoader::requestCSSStyleSheet):
  22029. * loader/DocLoader.h:
  22030. * page/Frame.cpp:
  22031. (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
  22032. (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
  22033. * xml/XSLImportRule.cpp:
  22034. (WebCore::XSLImportRule::setXSLStyleSheet):
  22035. (WebCore::XSLImportRule::loadSheet):
  22036. * xml/XSLImportRule.h:
  22037. Adjust for setStyleSheet() renaming.
  22038. 2006-09-30 Rob Buis <buis@kde.org>
  22039. Reviewed by eseidel.
  22040. http://bugs.webkit.org/show_bug.cgi?id=11096
  22041. Hit testing for polylines fails
  22042. Fix Path::contains so it handles filled, non-closed paths too.
  22043. * platform/cg/PathCG.cpp:
  22044. (WebCore::Path::contains):
  22045. 2006-09-30 Dave Hyatt <hyatt@apple.com>
  22046. Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
  22047. Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
  22048. subframes while the mouse is down.
  22049. Reviewed by mitzpettel
  22050. * bridge/mac/FrameMac.h:
  22051. * bridge/mac/FrameMac.mm:
  22052. (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
  22053. (WebCore::FrameMac::passWheelEventToWidget):
  22054. * bridge/mac/FrameViewMac.mm:
  22055. (WebCore::FrameView::passMousePressEventToSubframe):
  22056. (WebCore::FrameView::passMouseMoveEventToSubframe):
  22057. (WebCore::FrameView::passMouseReleaseEventToSubframe):
  22058. (WebCore::FrameView::passWheelEventToSubframe):
  22059. * page/Frame.cpp:
  22060. * page/Frame.h:
  22061. * page/FrameView.cpp:
  22062. (WebCore::subframeForTargetNode):
  22063. (WebCore::FrameView::handleMousePressEvent):
  22064. (WebCore::FrameView::handleMouseDoubleClickEvent):
  22065. (WebCore::FrameView::handleMouseMoveEvent):
  22066. (WebCore::FrameView::handleMouseReleaseEvent):
  22067. (WebCore::FrameView::handleWheelEvent):
  22068. * page/FrameView.h:
  22069. * platform/ScrollBar.h:
  22070. (WebCore::ScrollBar::handleMouseMoveEvent):
  22071. (WebCore::ScrollBar::handleMouseOutEvent):
  22072. * platform/Widget.h:
  22073. (WebCore::Widget::handleMouseMoveEvent):
  22074. (WebCore::Widget::handleMouseReleaseEvent):
  22075. * platform/win/TemporaryLinkStubs.cpp:
  22076. (FrameView::passMousePressEventToSubframe):
  22077. (FrameView::passMouseMoveEventToSubframe):
  22078. (FrameView::passMouseReleaseEventToSubframe):
  22079. (FrameView::passWheelEventToSubframe):
  22080. (Widget::capturingMouse):
  22081. (Widget::setCapturingMouse):
  22082. (Widget::capturingTarget):
  22083. (Widget::capturingChild):
  22084. (Widget::setCapturingChild):
  22085. * rendering/RenderView.cpp:
  22086. (WebCore::RenderView::paintBoxDecorations):
  22087. 2006-09-29 Darin Fisher <darin@chromium.org>
  22088. Reviewed by Adele.
  22089. Fixes windows bustage:
  22090. http://bugs.webkit.org/show_bug.cgi?id=11093
  22091. * platform/win/PlatformScrollBar.h:
  22092. * platform/win/TemporaryLinkStubs.cpp:
  22093. (PlatformScrollBar::PlatformScrollBar):
  22094. (ScrollBar::ScrollBar):
  22095. 2006-09-29 David Hyatt <hyatt@apple.com>
  22096. Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
  22097. in RenderObject::NodeInfo (and then propagating that Widget to
  22098. MouseEventWithHitTestResults).
  22099. This allows RenderListBox and RenderBlock to do the same thing when the
  22100. mouse is over the scrollbar.
  22101. Also land fix to support font-size: 0.
  22102. Reviewed by mjs (scrollbar), eric (font-size)
  22103. * dom/Document.cpp:
  22104. (WebCore::Document::prepareMouseEvent):
  22105. * page/Frame.cpp:
  22106. (WebCore::Frame::passWidgetMouseDownEventToWidget):
  22107. * page/FrameView.cpp:
  22108. (WebCore::selectCursor):
  22109. (WebCore::FrameView::handleMouseMoveEvent):
  22110. (WebCore::FrameView::dispatchMouseEvent):
  22111. * page/MouseEventWithHitTestResults.cpp:
  22112. (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
  22113. * page/MouseEventWithHitTestResults.h:
  22114. (WebCore::MouseEventWithHitTestResults::scrollbar):
  22115. * rendering/RenderBlock.cpp:
  22116. (WebCore::RenderBlock::isPointInScrollbar):
  22117. (WebCore::RenderBlock::nodeAtPoint):
  22118. * rendering/RenderBlock.h:
  22119. * rendering/RenderLayer.cpp:
  22120. (WebCore::RenderLayer::hitTest):
  22121. * rendering/RenderLayer.h:
  22122. (WebCore::RenderLayer::getHiddenBehavior):
  22123. * rendering/RenderListBox.cpp:
  22124. (WebCore::RenderListBox::RenderListBox):
  22125. (WebCore::RenderListBox::~RenderListBox):
  22126. (WebCore::RenderListBox::isPointInScrollbar):
  22127. * rendering/RenderListBox.h:
  22128. * rendering/RenderObject.h:
  22129. (WebCore::RenderObject::NodeInfo::NodeInfo):
  22130. (WebCore::RenderObject::NodeInfo::scrollbar):
  22131. (WebCore::RenderObject::NodeInfo::setScrollbar):
  22132. 2006-09-29 Darin Fisher <darin@chromium.org>
  22133. Reviewed by Adele.
  22134. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
  22135. * platform/win/ScrollViewWin.cpp:
  22136. (WebCore::ScrollView::convertToContainingWindow):
  22137. (WebCore::ScrollView::convertFromContainingWindow):
  22138. * platform/win/WidgetWin.cpp:
  22139. (WebCore::Widget::convertToContainingWindow):
  22140. (WebCore::Widget::convertFromContainingWindow):
  22141. 2006-09-29 Adele Peterson <adele@apple.com>
  22142. Updated with new argument for PlatformScrollBar.
  22143. * platform/win/TemporaryLinkStubs.cpp:
  22144. (PlatformScrollBar::PlatformScrollBar):
  22145. 2006-09-29 Adele Peterson <adele@apple.com>
  22146. Reviewed by Hyatt.
  22147. Fixing build bustage with cast to int.
  22148. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
  22149. 2006-09-29 Adele Peterson <adele@apple.com>
  22150. Fixing accidental include.
  22151. * rendering/RenderListBox.cpp:
  22152. 2006-09-29 Adele Peterson <adele@apple.com>
  22153. Adding RenderListBox files.
  22154. * WebCore.vcproj/WebCore/WebCore.vcproj:
  22155. 2006-09-29 Adele Peterson <adele@apple.com>
  22156. Reviewed by Adam.
  22157. Initial implementation of engine-based list box control.
  22158. * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
  22159. * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
  22160. * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
  22161. (WebCore::FrameMac::FrameMac):
  22162. (WebCore::FrameMac::handleMousePressEvent):
  22163. (WebCore::FrameMac::handleMouseMoveEvent):
  22164. (WebCore::FrameMac::mouseDown):
  22165. * page/Frame.cpp:
  22166. (WebCore::Frame::handleMouseMoveEvent):
  22167. (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
  22168. (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
  22169. (WebCore::Frame::autoscrollTimerFired): ditto.
  22170. (WebCore::Frame::stopAutoscrollTimer): ditto.
  22171. (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
  22172. * page/Frame.h:
  22173. * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
  22174. * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
  22175. (WebCore::FrameViewPrivate::reset):
  22176. (WebCore::FrameView::currentMousePosition):
  22177. (WebCore::FrameView::handleMousePressEvent):
  22178. (WebCore::FrameView::handleMouseDoubleClickEvent):
  22179. (WebCore::selectCursor):
  22180. (WebCore::FrameView::handleMouseMoveEvent):
  22181. (WebCore::FrameView::handleMouseReleaseEvent):
  22182. * page/FrameView.h:
  22183. * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
  22184. * platform/ScrollBar.h:
  22185. (WebCore::):
  22186. (WebCore::ScrollBar::controlSize):
  22187. * platform/mac/PlatformScrollBar.h:
  22188. * platform/mac/PlatformScrollBarMac.mm:
  22189. (NSControlSizeForScrollBarControlSize):
  22190. (-[WebCoreScrollBar initWithPlatformScrollBar:]):
  22191. (WebCore::PlatformScrollBar::PlatformScrollBar):
  22192. * rendering/RenderBlock.h:
  22193. * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
  22194. * rendering/RenderLayer.h:
  22195. * rendering/RenderObject.cpp:
  22196. (WebCore::RenderObject::shouldAutoscroll):
  22197. (WebCore::RenderObject::autoscroll):
  22198. * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
  22199. * css/html4.css: Added properties for new list boxes.
  22200. * html/HTMLOptionElement.cpp:
  22201. (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
  22202. (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
  22203. * html/HTMLOptionElement.h: Added disabled method.
  22204. * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
  22205. (WebCore::HTMLSelectElement::recalcStyle):
  22206. (WebCore::HTMLSelectElement::lastSelectedListIndex):
  22207. (WebCore::HTMLSelectElement::deselectItems):
  22208. (WebCore::HTMLSelectElement::setSelectedIndex):
  22209. (WebCore::HTMLSelectElement::isKeyboardFocusable):
  22210. (WebCore::HTMLSelectElement::isMouseFocusable):
  22211. (WebCore::HTMLSelectElement::createRenderer):
  22212. (WebCore::HTMLSelectElement::recalcListItems):
  22213. (WebCore::HTMLSelectElement::setRecalcListItems):
  22214. (WebCore::HTMLSelectElement::reset):
  22215. (WebCore::HTMLSelectElement::notifyOptionSelected):
  22216. (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
  22217. (WebCore::HTMLSelectElement::nextSelectableListIndex):
  22218. (WebCore::HTMLSelectElement::previousSelectableListIndex):
  22219. * html/HTMLSelectElement.h:
  22220. * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
  22221. (WebCore::RenderTheme::paint):
  22222. (WebCore::RenderTheme::paintBorderOnly):
  22223. (WebCore::RenderTheme::paintDecorations):
  22224. (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
  22225. (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
  22226. (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
  22227. (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
  22228. (WebCore::RenderTheme::isControlStyled):
  22229. (WebCore::RenderTheme::supportsFocusRing):
  22230. * rendering/RenderTheme.h:
  22231. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
  22232. * rendering/RenderListBox.cpp: Added.
  22233. (WebCore::RenderListBox::RenderListBox):
  22234. (WebCore::RenderListBox::~RenderListBox):
  22235. (WebCore::RenderListBox::setStyle):
  22236. (WebCore::RenderListBox::updateFromElement):
  22237. (WebCore::RenderListBox::calcMinMaxWidth):
  22238. (WebCore::RenderListBox::size):
  22239. (WebCore::RenderListBox::numItems):
  22240. (WebCore::RenderListBox::calcHeight):
  22241. (WebCore::RenderListBox::baselinePosition):
  22242. (WebCore::RenderListBox::itemBoundingBoxRect):
  22243. (WebCore::RenderListBox::paintObject):
  22244. (WebCore::RenderListBox::paintScrollbar):
  22245. (WebCore::RenderListBox::paintItemForeground):
  22246. (WebCore::RenderListBox::paintItemBackground):
  22247. (WebCore::RenderListBox::scrollBarTarget):
  22248. (WebCore::RenderListBox::isPointInScrollbar):
  22249. (WebCore::RenderListBox::optionAtPoint):
  22250. (WebCore::RenderListBox::autoscroll):
  22251. (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
  22252. (WebCore::RenderListBox::scroll):
  22253. (WebCore::RenderListBox::valueChanged):
  22254. * rendering/RenderListBox.h: Added.
  22255. (WebCore::RenderListBox::isListBox):
  22256. (WebCore::RenderListBox::selectionChanged):
  22257. (WebCore::RenderListBox::setSelectionChanged):
  22258. (WebCore::RenderListBox::canHaveChildren):
  22259. (WebCore::RenderListBox::renderName):
  22260. (WebCore::RenderListBox::setOptionsChanged):
  22261. (WebCore::RenderListBox::shouldAutoscroll):
  22262. (WebCore::RenderListBox::listIndexIsVisible):
  22263. 2006-09-29 Beth Dakin <bdakin@apple.com>
  22264. Reviewed by Darin.
  22265. We had a bug where html4.css was ignoring Media Queries. In the end
  22266. the problem was that we were trying to send a char* to the
  22267. MediaQueryEvaluator constructor that expects a String, but the
  22268. char* got interpreted as a bool, the wrong constructor was called,
  22269. and the media type was never set.
  22270. No test case possible since this only affects html4.css
  22271. * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
  22272. char*
  22273. (WebCore::MediaQueryEvaluator):
  22274. * css/MediaQueryEvaluator.h: Same.
  22275. 2006-09-29 Geoffrey Garen <ggaren@apple.com>
  22276. Reviewed by John, Maciej.
  22277. Integrated some frame and iframe code. I'm trying to fix up frame ownership
  22278. and loading. Reducing the number of different code paths involved
  22279. seemed like a good first step.
  22280. As a side effect, I fixed a bug where FRAME elements would report their
  22281. src attributes as relative, rather than compelete, URLs. (IFRAME elements
  22282. had the correct complete URL behavior.)
  22283. * html/HTMLFrameElement.cpp:
  22284. (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
  22285. (WebCore::HTMLFrameElement::openURL):
  22286. (1) Removed checks that requestFrame does for us
  22287. (2) Added isURLAllowed check, to have one clear bottleneck for it
  22288. (3) Added viewsource check, to have one clear bottleneck for it
  22289. (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
  22290. method, instead of finding our content frame in our own unique way.
  22291. (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
  22292. since openURL does this for us now.
  22293. (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
  22294. This is what FF does, and it made no sense to have different behaviors
  22295. for FRAME and IFRAME elements.
  22296. * html/HTMLIFrameElement.cpp:
  22297. (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
  22298. code.
  22299. * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
  22300. HTMLFrameElement now does everything we need.
  22301. 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
  22302. Reviewed by Hyatt.
  22303. Fix Qt/Linux build.
  22304. * CMakeLists.txt:
  22305. * platform/qt/ScrollViewQt.cpp:
  22306. (WebCore::ScrollView::convertToContainingWindow):
  22307. (WebCore::ScrollView::convertFromContainingWindow):
  22308. * platform/qt/TemporaryLinkStubs.cpp:
  22309. (WebCore::signedPublicKeyAndChallengeString):
  22310. * platform/qt/WidgetQt.cpp:
  22311. (WebCore::Widget::convertToContainingWindow):
  22312. (WebCore::Widget::convertFromContainingWindow):
  22313. 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
  22314. Reviewed by Tim H.
  22315. Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
  22316. Simplify Internal methods for the auto-generated Objective-C DOM code
  22317. - Auto-generate the internal methods for more Objective-C classes.
  22318. * WebCore.xcodeproj/project.pbxproj:
  22319. * bindings/objc/DOM.mm:
  22320. * bindings/objc/DOMCSS.mm:
  22321. (-[DOMStyleSheet WebCore::]):
  22322. (+[DOMStyleSheet _styleSheetWith:WebCore::]):
  22323. (-[DOMCSSRule WebCore::]):
  22324. (-[DOMCSSRule _initWithCSSRule:WebCore::]):
  22325. (+[DOMCSSRule _CSSRuleWith:WebCore::]):
  22326. (-[DOMCSSValue WebCore::]):
  22327. (-[DOMCSSValue _initWithCSSValue:WebCore::]):
  22328. (+[DOMCSSValue _CSSValueWith:WebCore::]):
  22329. * bindings/objc/DOMHTMLAppletElement.mm:
  22330. (-[DOMHTMLAppletElement WebCore::]):
  22331. (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
  22332. * bindings/objc/DOMHTMLEmbedElement.mm:
  22333. (-[DOMHTMLEmbedElement WebCore::]):
  22334. (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
  22335. * bindings/objc/DOMInternal.h:
  22336. * bindings/objc/DOMInternal.mm:
  22337. * bindings/scripts/CodeGeneratorObjC.pm:
  22338. * css/CSSCharsetRule.idl:
  22339. * css/CSSFontFaceRule.idl:
  22340. * css/CSSImportRule.idl:
  22341. * css/CSSMediaRule.idl:
  22342. * css/CSSPageRule.idl:
  22343. * css/CSSPrimitiveValue.idl:
  22344. * css/CSSStyleRule.idl:
  22345. * css/CSSStyleSheet.idl:
  22346. * css/CSSUnknownRule.idl:
  22347. * css/CSSValueList.idl:
  22348. * dom/KeyboardEvent.idl:
  22349. * dom/MouseEvent.idl:
  22350. * dom/MutationEvent.idl:
  22351. * dom/NodeIterator.idl:
  22352. * dom/OverflowEvent.idl:
  22353. * dom/UIEvent.idl:
  22354. * dom/WheelEvent.idl:
  22355. 2006-09-29 David Harrison <harrison@apple.com>
  22356. Reviewed by John Sullivan.
  22357. <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
  22358. <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
  22359. Test added
  22360. * fast/text/attributed-substring-from-range-001.html
  22361. * bridge/mac/FrameMac.mm:
  22362. (WebCore::FrameMac::attributedString):
  22363. Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
  22364. Also, add validation of the range.
  22365. 2006-09-29 Rob Buis <buis@kde.org>
  22366. Reviewed by Maciej.
  22367. http://bugs.webkit.org/show_bug.cgi?id=10893
  22368. InsertRule can not handle @import statements
  22369. Allow @import as part of a css rule.
  22370. * css/CSSGrammar.y:
  22371. 2006-09-28 David Hyatt <hyatt@apple.com>
  22372. Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
  22373. * bridge/mac/FrameMac.mm:
  22374. (WebCore::FrameMac::eventMayStartDrag):
  22375. (WebCore::FrameMac::dragHysteresisExceeded):
  22376. (WebCore::FrameMac::mouseDown):
  22377. (WebCore::FrameMac::shouldDragAutoNode):
  22378. (WebCore::FrameMac::sendContextMenuEvent):
  22379. * bridge/mac/WebCoreFrameBridge.mm:
  22380. (-[WebCoreFrameBridge _visiblePositionForPoint:]):
  22381. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  22382. This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
  22383. ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
  22384. view.
  22385. Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
  22386. the patch after review, once I realized that these new functions essentially do the same thing.)
  22387. * dom/EventTargetNode.cpp:
  22388. (WebCore::EventTargetNode::dispatchMouseEvent):
  22389. (WebCore::EventTargetNode::dispatchWheelEvent):
  22390. * page/Frame.cpp:
  22391. (WebCore::Frame::selectClosestWordFromMouseEvent):
  22392. (WebCore::Frame::handleMousePressEventTripleClick):
  22393. (WebCore::Frame::handleMousePressEventSingleClick):
  22394. (WebCore::Frame::handleMouseMoveEvent):
  22395. (WebCore::Frame::handleMouseReleaseEvent):
  22396. * page/FrameView.cpp:
  22397. (WebCore::FrameView::handleMousePressEvent):
  22398. (WebCore::selectCursor):
  22399. (WebCore::FrameView::dispatchDragEvent):
  22400. (WebCore::FrameView::prepareMouseEvent):
  22401. (WebCore::FrameView::handleWheelEvent):
  22402. * platform/ScrollView.h:
  22403. * platform/Widget.cpp:
  22404. (WebCore::Widget::convertToContainingWindow):
  22405. * platform/Widget.h:
  22406. * platform/mac/ScrollViewMac.mm:
  22407. (WebCore::ScrollView::convertToContainingWindow):
  22408. (WebCore::ScrollView::convertFromContainingWindow):
  22409. * platform/mac/WidgetMac.mm:
  22410. (WebCore::Widget::convertToContainingWindow):
  22411. (WebCore::Widget::convertFromContainingWindow):
  22412. * platform/win/ScrollViewWin.cpp:
  22413. (WebCore::ScrollView::convertToContainingWindow):
  22414. (WebCore::ScrollView::convertFromContainingWindow):
  22415. * rendering/RenderLayer.cpp:
  22416. (WebCore::RenderLayer::resize):
  22417. 2006-09-28 Alice Liu <alice.liu@apple.com>
  22418. Build fix by adding missing files for CommandByName
  22419. * WebCore.xcodeproj/project.pbxproj:
  22420. 2006-09-28 Alice Liu <alice.liu@apple.com>
  22421. Adding CommandByName files to the vcproj
  22422. * WebCore.vcproj/WebCore/WebCore.vcproj:
  22423. 2006-09-28 Alice Liu <alice.liu@apple.com>
  22424. Reviewed by Adam Roben.
  22425. This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc.
  22426. This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
  22427. This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
  22428. * editing/CommandByName.cpp: Added.
  22429. Added a command class that hangs off the frame so the frame can call commands more easily.
  22430. (WebCore::Frame::commandImp):
  22431. (WebCore::Frame::execCopy):
  22432. (WebCore::Frame::execCut):
  22433. (WebCore::Frame::execDelete):
  22434. (WebCore::Frame::execForwardDelete):
  22435. (WebCore::Frame::execPaste):
  22436. (WebCore::Frame::execMoveLeft):
  22437. (WebCore::Frame::execMoveRight):
  22438. (WebCore::Frame::execMoveUp):
  22439. (WebCore::Frame::execMoveDown):
  22440. (WebCore::Frame::execSelectAll):
  22441. (WebCore::Frame::execSelectLeft):
  22442. (WebCore::Frame::execSelectRight):
  22443. (WebCore::Frame::execSelectUp):
  22444. (WebCore::Frame::execSelectDown):
  22445. (WebCore::Frame::enabled):
  22446. (WebCore::Frame::enabledAnySelection):
  22447. (WebCore::Frame::enabledAnyEditableSelection):
  22448. (WebCore::Frame::enabledPaste):
  22449. (WebCore::Frame::enabledAnyRangeSelection):
  22450. (WebCore::Frame::enabledAnyEditableRangeSelection):
  22451. (WebCore::Frame::createCommandDictionary):
  22452. (WebCore::Frame::Command::):
  22453. (WebCore:::m_frame):
  22454. (WebCore::CommandByName::execCommand):
  22455. * editing/CommandByName.h: Added.
  22456. * page/Frame.cpp:
  22457. Added implementation of accessor for CommandByName member
  22458. (WebCore::Frame::command):
  22459. * page/Frame.h:
  22460. Added accessor for CommandByName member
  22461. * page/FramePrivate.h:
  22462. Added a CommandByName member
  22463. (WebCore::FramePrivate::FramePrivate):
  22464. * platform/PlatformMouseEvent.h:
  22465. Changed constructor prototype
  22466. * platform/StringImpl.cpp:
  22467. Exposing getWordBreakIterator to be used elsewhere
  22468. (WebCore::getWordBreakIterator):
  22469. * platform/StringImpl.h:
  22470. Exposing getWordBreakIterator to be used elsewhere
  22471. * platform/win/MouseEventWin.cpp:
  22472. Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
  22473. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  22474. 2006-09-28 Adam Roben <aroben@apple.com>
  22475. Reviewed by Adele.
  22476. Remove no-longer-used PopUpButton.
  22477. * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
  22478. * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
  22479. PopUpButtonMac.mm
  22480. * platform/PopUpButton.h: Removed.
  22481. * platform/mac/PopUpButtonMac.mm: Removed.
  22482. * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
  22483. * rendering/DeprecatedRenderSelect.cpp: Change #include of
  22484. PopUpButton.h to ListBox.h
  22485. 2006-09-28 Darin Adler <darin@apple.com>
  22486. Reviewed by Alice.
  22487. - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
  22488. 10% perf. regression (copying strings while decoding)
  22489. Use Vector<UChar> instead of String when building up the decoded string in
  22490. the ICU and Mac decoders. Using String leads to O(n^2) behavior because
  22491. String grows the buffer every single time that append is called. Using
  22492. Vector::append instead of String::append also avoids constructing a string
  22493. each time just to append and a questionable copy that is done inside the
  22494. String::append function which also contributed to the slowness.
  22495. * platform/PlatformString.h:
  22496. * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
  22497. Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
  22498. allocation.
  22499. * platform/StringImpl.h:
  22500. * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
  22501. * platform/StreamingTextDecoder.h:
  22502. * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
  22503. Change to use a Vector<UChar> instead of a String, since vectors have better
  22504. resizing performance (they store a separate capacity).
  22505. * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
  22506. * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
  22507. Change to use Vector<UChar> instead of String and then create a string at
  22508. the end of the process using the new adopt function.
  22509. 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
  22510. Reviewed by Tim H.
  22511. Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
  22512. Auto-generate more SVG Objective-C bindings
  22513. - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
  22514. DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
  22515. DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
  22516. DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
  22517. DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
  22518. DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
  22519. and DOMSVGTransformable.
  22520. - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
  22521. parent interfaces and the SVG animated classes.
  22522. - Corrects CodeGenerator.pm to only skip the first parent for the main
  22523. interface.
  22524. * DerivedSources.make:
  22525. * WebCore.xcodeproj/project.pbxproj:
  22526. * bindings/objc/DOMInternal.h:
  22527. * bindings/objc/DOMSVG.h:
  22528. * bindings/scripts/CodeGenerator.pm:
  22529. * bindings/scripts/CodeGeneratorObjC.pm:
  22530. * ksvg2/svg/SVGAnimatedAngle.idl:
  22531. * ksvg2/svg/SVGAnimatedBoolean.idl:
  22532. * ksvg2/svg/SVGAnimatedEnumeration.idl:
  22533. * ksvg2/svg/SVGAnimatedInteger.idl:
  22534. * ksvg2/svg/SVGAnimatedLength.idl:
  22535. * ksvg2/svg/SVGAnimatedLengthList.idl:
  22536. * ksvg2/svg/SVGAnimatedNumber.idl:
  22537. * ksvg2/svg/SVGAnimatedPathData.idl:
  22538. * ksvg2/svg/SVGAnimatedString.idl:
  22539. * ksvg2/svg/SVGAnimatedTransformList.idl:
  22540. * ksvg2/svg/SVGExternalResourcesRequired.idl:
  22541. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
  22542. * ksvg2/svg/SVGFitToViewBox.idl:
  22543. * ksvg2/svg/SVGLangSpace.idl:
  22544. * ksvg2/svg/SVGLocatable.idl:
  22545. * ksvg2/svg/SVGMetadataElement.idl:
  22546. * ksvg2/svg/SVGStringList.idl:
  22547. * ksvg2/svg/SVGStylable.idl:
  22548. * ksvg2/svg/SVGStyleElement.idl:
  22549. * ksvg2/svg/SVGTests.idl:
  22550. * ksvg2/svg/SVGTransformable.idl:
  22551. * ksvg2/svg/SVGURIReference.idl:
  22552. * ksvg2/svg/SVGUnitTypes.idl:
  22553. * ksvg2/svg/SVGZoomAndPan.idl:
  22554. 2006-09-28 Brady Eidson <beidson@apple.com>
  22555. Reviewed by Mitz Pettel!!!
  22556. Change the error code check for common functions from SQLResultOk to SQLResultDone
  22557. * loader/icon/IconDatabase.cpp:
  22558. (WebCore::IconDatabase::forgetPageURLQuery):
  22559. (WebCore::IconDatabase::setIconIDForPageURLQuery):
  22560. (WebCore::IconDatabase::addIconForIconURLQuery):
  22561. 2006-09-28 Dave Hyatt <hyatt@apple.com>
  22562. Just eliminate MapWindowPoints usage and use the HWND as
  22563. the viewport.
  22564. * platform/win/MouseEventWin.cpp:
  22565. (WebCore::positionForEvent):
  22566. * platform/win/ScrollViewWin.cpp:
  22567. (WebCore::ScrollView::viewportToContents):
  22568. (WebCore::ScrollView::contentsToViewport):
  22569. 2006-09-27 David Hyatt <hyatt@apple.com>
  22570. Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
  22571. selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
  22572. scrollbars to provide hover feedback if needed.
  22573. Reviewed by Eric
  22574. * page/FrameView.cpp:
  22575. (WebCore::selectCursor):
  22576. (WebCore::FrameView::handleMouseMoveEvent):
  22577. * platform/ScrollBar.h:
  22578. (WebCore::ScrollBar::mouseMoved):
  22579. 2006-09-27 Darin Fisher <darin@chromium.org>
  22580. Reviewed by Maciej and Adam, landed by Adam
  22581. Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
  22582. Windows build is busted
  22583. * platform/win/TemporaryLinkStubs.cpp:
  22584. (ScrollView::paint):
  22585. (ScrollView::themeChanged):
  22586. 2006-09-27 Eric Seidel <eric@webkit.org>
  22587. Reviewed by mitz.
  22588. paths with no fill specified default to black but do not receive paint-related mouse events
  22589. http://bugs.webkit.org/show_bug.cgi?id=11069
  22590. The default fill was being applied at the wrong place in the rendering chain, causing this problem.
  22591. Test: svg/custom/hover-default-fill.svg
  22592. * kcanvas/RenderPath.cpp:
  22593. (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
  22594. * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
  22595. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  22596. (WebCore::KSVGPainterFactory::isFilled): remove null check
  22597. (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
  22598. (WebCore::KSVGPainterFactory::isStroked): remove null check
  22599. (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
  22600. * ksvg2/svg/SVGPaint.cpp:
  22601. (WebCore::SVGPaint::defaultFill): added.
  22602. (WebCore::SVGPaint::defaultStroke): added.
  22603. * ksvg2/svg/SVGPaint.h:
  22604. 2006-09-27 Rob Buis <buis@kde.org>
  22605. Reviewed by eseidel.
  22606. http://bugs.webkit.org/show_bug.cgi?id=11015
  22607. SVG handles em units incorrectly
  22608. Calculate viewport coordinates at layout time, since
  22609. at this point the font size is known and lengths depending
  22610. on font sizes can be calculated correctly.
  22611. * kcanvas/RenderSVGContainer.cpp:
  22612. (WebCore::RenderSVGContainer::layout):
  22613. (WebCore::RenderSVGContainer::viewport):
  22614. (WebCore::RenderSVGContainer::calcViewport):
  22615. * kcanvas/RenderSVGContainer.h:
  22616. * ksvg2/svg/SVGLength.cpp:
  22617. (WebCore::SVGLength::updateValue):
  22618. * ksvg2/svg/SVGMarkerElement.cpp:
  22619. (WebCore::SVGMarkerElement::createRenderer):
  22620. * ksvg2/svg/SVGSVGElement.cpp:
  22621. (WebCore::SVGSVGElement::createRenderer):
  22622. (WebCore::SVGSVGElement::attributeChanged):
  22623. * ksvg2/svg/SVGSVGElement.h:
  22624. 2006-09-27 Eric Seidel <eric@webkit.org>
  22625. Reviewed by darin.
  22626. Change our invalid-fill error behavior to match Opera (and soon Firefox)
  22627. http://bugs.webkit.org/show_bug.cgi?id=11017
  22628. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  22629. (WebCore::KSVGPainterFactory::isFilled):
  22630. (WebCore::KSVGPainterFactory::fillPaintServer):
  22631. (WebCore::KSVGPainterFactory::isStroked):
  22632. (WebCore::KSVGPainterFactory::strokePaintServer):
  22633. 2006-09-27 Brady Eidson <beidson@apple.com>
  22634. Build fix
  22635. * loader/icon/IconDatabase.cpp:
  22636. (WebCore::readySQLStatement):
  22637. 2006-09-27 Brady Eidson <beidson@apple.com>
  22638. Reviewed by Adam
  22639. In very specific circumstances, prepared SQLStatements can become invalid without
  22640. any warning. This checks for that state and re-prepares the statement and also
  22641. adds more aggressive error-checking everywhere these statements are used.
  22642. * loader/icon/IconDatabase.cpp:
  22643. (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
  22644. (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
  22645. (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
  22646. (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
  22647. (WebCore::IconDatabase::forgetPageURLQuery): Ditto
  22648. (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
  22649. (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
  22650. (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
  22651. (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
  22652. * loader/icon/SQLStatement.cpp:
  22653. (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
  22654. * loader/icon/SQLStatement.h:
  22655. 2006-09-26 Darin Adler <darin@apple.com>
  22656. Reviewed by Steve.
  22657. - clean up options for font code path
  22658. * platform/Font.h:
  22659. * platform/Font.cpp:
  22660. (WebCore::Font::setCodePath): Added. Replaces boolean version.
  22661. (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
  22662. * platform/mac/WebCoreTextRenderer.mm:
  22663. (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
  22664. 2006-09-26 John Sullivan <sullivan@apple.com>
  22665. Reviewed by Darin
  22666. * bridge/mac/WebCoreFrameBridge.h:
  22667. * bridge/mac/WebCoreFrameBridge.mm:
  22668. (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
  22669. Added limit parameter, passed down to Frame
  22670. * page/Frame.h:
  22671. * page/Frame.cpp:
  22672. (WebCore::Frame::markAllMatchesForText):
  22673. Added limit parameter. Stop the search if it hits limit.
  22674. 2006-09-26 Sean Gies <seangies@apple.com>
  22675. Reviewed by Brady Eidson.
  22676. * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
  22677. 2006-09-26 Justin Garcia <justin.garcia@apple.com>
  22678. Reviewed by john
  22679. <rdar://problem/4747695>
  22680. Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
  22681. * editing/DeleteSelectionCommand.cpp:
  22682. (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
  22683. to select special elements that are fully selected after expansion
  22684. moves to positions that are visually distinct from the originals.
  22685. * editing/InsertListCommand.cpp:
  22686. (WebCore::InsertListCommand::doApply): If the content of the list
  22687. item will be moved into another list, put it in a list item.
  22688. 2006-09-26 Geoffrey Garen <ggaren@apple.com>
  22689. Reviewed by Darin.
  22690. Temporary work-around for frame lifetime issue.
  22691. * page/Frame.cpp:
  22692. (WebCore::Frame::clear):
  22693. (WebCore::Frame::disconnectOwnerElement):
  22694. 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
  22695. Reviewed by Tim H.
  22696. Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
  22697. Auto-generate DOMSVGElement for the Objective-C bindings
  22698. - Auto-generates DOMSVGElement.
  22699. - Make SVGExceptions work like all the other ExceptionCode
  22700. extensions (Range, XPath, etc.) by adding SVGExceptionOffset
  22701. and SVGExceptionMax.
  22702. * DerivedSources.make:
  22703. * WebCore.xcodeproj/project.pbxproj:
  22704. * bindings/js/kjs_binding.cpp:
  22705. (KJS::):
  22706. (KJS::setDOMException):
  22707. * bindings/objc/DOMInternal.h:
  22708. * bindings/objc/DOMInternal.mm:
  22709. (raiseDOMException):
  22710. * bindings/objc/DOMSVG.h:
  22711. * bindings/objc/DOMSVGExecption.h: Added.
  22712. * ksvg2/ksvg.h:
  22713. * ksvg2/svg/SVGElement.cpp:
  22714. (WebCore::SVGElement::setId):
  22715. (WebCore::SVGElement::setXmlbase):
  22716. * ksvg2/svg/SVGElement.h:
  22717. * ksvg2/svg/SVGElement.idl:
  22718. * ksvg2/svg/SVGException.h: Added.
  22719. (WebCore::):
  22720. 2006-09-26 Eric Seidel <eric@webkit.org>
  22721. Reviewed by Tim H.
  22722. viewbox parser does not allow <tab> as a delimiter
  22723. http://bugs.webkit.org/show_bug.cgi?id=11014
  22724. Test: svg/hixie/viewbox/003.xml
  22725. * ksvg2/svg/svgpathparser.cpp:
  22726. (WebCore::isWhitespace): new function
  22727. (WebCore::skipOptionalSpaces):
  22728. (WebCore::skipOptionalSpacesOrComma):
  22729. 2006-09-26 Eric Seidel <eric@webkit.org>
  22730. Reviewed by Tim H.
  22731. SVGDocument::createElement does not create elements in the SVG namespace
  22732. http://bugs.webkit.org/show_bug.cgi?id=10932
  22733. Test: svg/custom/createelement.svg
  22734. * ksvg2/svg/SVGDocument.cpp:
  22735. (WebCore::SVGDocument::createElement):
  22736. * ksvg2/svg/SVGDocument.h:
  22737. 2006-09-26 Eric Seidel <eric@webkit.org>
  22738. Reviewed by Tim H.
  22739. RenderPath::nodeAtPoint does not respect stroke width
  22740. http://bugs.webkit.org/show_bug.cgi?id=10829
  22741. Test: svg/custom/stroke-width-click.svg
  22742. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  22743. (WebCore::RenderPath::strokeContains):
  22744. * kcanvas/device/quartz/QuartzSupport.h:
  22745. * kcanvas/device/quartz/QuartzSupport.mm:
  22746. 2006-09-26 Eric Seidel <eric@webkit.org>
  22747. Reviewed by mitz.
  22748. Bring animation back to life
  22749. http://bugs.webkit.org/show_bug.cgi?id=11021
  22750. Register/unregister SVGSVGElements as time containers on insertion/removal.
  22751. Replace uses of DeprecatedString with String in SVGAnimationElement
  22752. Various whitespace clean-up.
  22753. * ksvg2/misc/KSVGTimeScheduler.cpp:
  22754. (WebCore::SVGTimer::notifyAll):
  22755. * ksvg2/misc/SVGDocumentExtensions.cpp:
  22756. (WebCore::SVGDocumentExtensions::startAnimations):
  22757. (WebCore::SVGDocumentExtensions::pauseAnimations):
  22758. (WebCore::SVGDocumentExtensions::unpauseAnimations):
  22759. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  22760. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  22761. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  22762. * ksvg2/svg/SVGAnimateTransformElement.h:
  22763. * ksvg2/svg/SVGAnimationElement.cpp:
  22764. (WebCore::SVGAnimationElement::SVGAnimationElement):
  22765. (WebCore::SVGAnimationElement::parseMappedAttribute):
  22766. (WebCore::SVGAnimationElement::parseClockValue):
  22767. (WebCore::SVGAnimationElement::targetAttribute):
  22768. (WebCore::SVGAnimationElement::setTargetAttribute):
  22769. (WebCore::SVGAnimationElement::attributeName):
  22770. * ksvg2/svg/SVGAnimationElement.h:
  22771. (WebCore::SVGAnimationElement::rendererIsNeeded):
  22772. * ksvg2/svg/SVGSVGElement.cpp:
  22773. (WebCore::SVGSVGElement::getScreenCTM):
  22774. (WebCore::SVGSVGElement::createRenderer):
  22775. (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
  22776. (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
  22777. * ksvg2/svg/SVGSVGElement.h:
  22778. * ksvg2/svg/SVGSetElement.cpp:
  22779. (WebCore::SVGSetElement::handleTimerEvent):
  22780. * ksvg2/svg/SVGURIReference.cpp:
  22781. (WebCore::SVGURIReference::getTarget):
  22782. * ksvg2/svg/SVGURIReference.h:
  22783. 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
  22784. Reviewed by mitzpettel.
  22785. - fix http://bugs.webkit.org/show_bug.cgi?id=11020
  22786. No-SVG build broken since r16549
  22787. Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
  22788. * css/cssparser.cpp:
  22789. (WebCore::CSSParser::parseValue):
  22790. * css/cssstyleselector.cpp:
  22791. (WebCore::CSSStyleSelector::applyProperty):
  22792. * page/FrameView.cpp:
  22793. (WebCore::selectCursor):
  22794. * platform/qt/GraphicsContextQt.cpp:
  22795. 2006-09-26 Anders Carlsson <acarlsson@apple.com>
  22796. Reviewed by Maciej.
  22797. http://bugs.webkit.org/show_bug.cgi?id=10820
  22798. Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
  22799. (Originally written by Eric Seidel).
  22800. * bindings/js/kjs_window.cpp:
  22801. (KJS::floatFeature):
  22802. * ksvg2/svg/SVGAngle.cpp:
  22803. (SVGAngle::setValueAsString):
  22804. * ksvg2/svg/SVGAnimationElement.cpp:
  22805. (SVGAnimationElement::parseMappedAttribute):
  22806. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  22807. (SVGComponentTransferFunctionElement::parseMappedAttribute):
  22808. * ksvg2/svg/SVGFECompositeElement.cpp:
  22809. (WebCore::SVGFECompositeElement::parseMappedAttribute):
  22810. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  22811. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  22812. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  22813. (SVGFEDisplacementMapElement::parseMappedAttribute):
  22814. * ksvg2/svg/SVGFELightElement.cpp:
  22815. (SVGFELightElement::parseMappedAttribute):
  22816. * ksvg2/svg/SVGFEOffsetElement.cpp:
  22817. (WebCore::SVGFEOffsetElement::parseMappedAttribute):
  22818. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  22819. (SVGFESpecularLightingElement::parseMappedAttribute):
  22820. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  22821. (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
  22822. * ksvg2/svg/SVGStopElement.cpp:
  22823. (SVGStopElement::parseMappedAttribute):
  22824. * platform/AtomicString.h:
  22825. (WebCore::AtomicString::toDouble):
  22826. * platform/PlatformString.h:
  22827. * platform/String.cpp:
  22828. (WebCore::String::toDouble):
  22829. * platform/StringImpl.cpp:
  22830. (WebCore::StringImpl::toDouble):
  22831. * platform/StringImpl.h:
  22832. * rendering/DeprecatedSlider.cpp:
  22833. (WebCore::DeprecatedSlider::updateFromElement):
  22834. * xml/XPathGrammar.y:
  22835. 2006-09-25 David Harrison <harrison@apple.com>
  22836. Reviewed by Tim Omernick and Tim Hatcher.
  22837. <rdar://problem/4717965> Text Field text parameterized attributes should work
  22838. <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
  22839. * bridge/mac/WebCoreAXObject.mm:
  22840. (-[WebCoreAXObject accessibilityAttributeValue:]):
  22841. Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
  22842. (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
  22843. Cleaned up. Added text field and text area parameterzed attributes.
  22844. (-[WebCoreAXObject doAXLineForTextMarker:]):
  22845. Fixed to be zero-based and to deal with the first position properly.
  22846. (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
  22847. Minor formatting.
  22848. (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
  22849. (-[WebCoreAXObject indexForTextMarker:]):
  22850. (-[WebCoreAXObject textMarkerRangeForRange:]):
  22851. (-[WebCoreAXObject rangeForTextMarkerRange:]):
  22852. New utility methods.
  22853. (-[WebCoreAXObject doAXLineForIndex:]):
  22854. (-[WebCoreAXObject doAXRangeForLine:]):
  22855. (-[WebCoreAXObject doAXStringForRange:]):
  22856. (-[WebCoreAXObject doAXRangeForPosition:]):
  22857. (-[WebCoreAXObject doAXRangeForIndex:]):
  22858. (-[WebCoreAXObject doAXBoundsForRange:]):
  22859. (-[WebCoreAXObject doAXAttributedStringForRange:]):
  22860. (-[WebCoreAXObject doAXRTFForRange:]):
  22861. (-[WebCoreAXObject doAXStyleRangeForIndex:]):
  22862. Implement text field and text area parameterized attributes.
  22863. (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
  22864. Added text field and text area parameterzed attributes.
  22865. * rendering/RenderTextControl.h:
  22866. Made indexForVisiblePosition() and visiblePositionForIndex() public.
  22867. 2006-09-25 Adam Roben <aroben@apple.com>
  22868. Reviewed by Brady.
  22869. Build fixes.
  22870. * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
  22871. * platform/ResourceLoader.h: Store whether a particular job
  22872. has received a response within the ResourceLoader object itself, since
  22873. it's possible that we will enter the InternetReadFileExA while loop
  22874. twice for the same job.
  22875. * platform/ResourceLoaderInternal.h: Add private instance variable to
  22876. store whether we've received a response.
  22877. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  22878. * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
  22879. directives.
  22880. * platform/win/ResourceLoaderWin.cpp:
  22881. (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
  22882. whether it has received a response instead of assuming it hasn't.
  22883. (WebCore::ResourceLoader::setHasReceivedResponse): Added.
  22884. (WebCore::ResourceLoader::hasReceivedResponse): Added.
  22885. * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
  22886. setProportion
  22887. (ScrollBar::setProportion):
  22888. 2006-09-25 Brady Eidson <beidson@apple.com>
  22889. Requested by ggaren
  22890. Disabled IconDatabase logging by default
  22891. * platform/Logging.cpp:
  22892. (WebCore::):
  22893. 2006-09-25 Steve Falkenburg <sfalken@apple.com>
  22894. Build fix
  22895. * platform/cf/ResourceLoaderCFNet.cpp:
  22896. (WebCore::willCacheResponse):
  22897. 2006-09-25 Justin Garcia <justin.garcia@apple.com>
  22898. Reviewed by john
  22899. <http://bugs.webkit.org/show_bug.cgi?id=11002>
  22900. Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
  22901. * editing/IndentOutdentCommand.cpp:
  22902. (WebCore::IndentOutdentCommand::indentRegion): Special case
  22903. an empty root editable element.
  22904. 2006-09-25 Brady Eidson <beidson@apple.com>
  22905. Reviewed by Steve
  22906. Math error in SystemTimeWin
  22907. * platform/win/SystemTimeWin.cpp:
  22908. (WebCore::currentTime):
  22909. 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
  22910. Reviewed by Eric.
  22911. Whitespace cleanup; rename *job variables to *loader.
  22912. * bindings/js/JSXMLHttpRequest.cpp:
  22913. (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
  22914. (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
  22915. (KJS::JSXMLHttpRequestConstructorImp::construct):
  22916. (KJS::JSXMLHttpRequest::getOwnPropertySlot):
  22917. (KJS::JSXMLHttpRequest::getValueProperty):
  22918. (KJS::JSXMLHttpRequest::put):
  22919. (KJS::JSXMLHttpRequest::putValueProperty):
  22920. (KJS::JSXMLHttpRequest::mark):
  22921. (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
  22922. (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
  22923. (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
  22924. * bindings/js/JSXMLHttpRequest.h:
  22925. (KJS::JSXMLHttpRequest::toBoolean):
  22926. * xml/xmlhttprequest.cpp:
  22927. (WebCore::XMLHttpRequest::XMLHttpRequest):
  22928. (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
  22929. (WebCore::XMLHttpRequest::send):
  22930. (WebCore::XMLHttpRequest::abort):
  22931. (WebCore::XMLHttpRequest::receivedAllData):
  22932. (WebCore::XMLHttpRequest::receivedData):
  22933. * xml/xmlhttprequest.h:
  22934. (WebCore::):
  22935. 2006-09-25 Timothy Hatcher <timothy@apple.com>
  22936. Reviewed by Brady.
  22937. - Deprecate the rest of the old-style methods that are not generated.
  22938. - Add @property syntax to DOMRange.
  22939. * WebCore.xcodeproj/project.pbxproj:
  22940. * bindings/objc/DOM.mm:
  22941. (-[DOMRange setStart:offset:]):
  22942. (-[DOMRange setEnd:offset:]):
  22943. (-[DOMRange compareBoundaryPoints:sourceRange:]):
  22944. (-[DOMRange setStart::]):
  22945. (-[DOMRange setEnd::]):
  22946. (-[DOMRange compareBoundaryPoints::]):
  22947. (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
  22948. (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
  22949. (-[DOMDocument createNodeIterator::::]):
  22950. (-[DOMDocument createTreeWalker::::]):
  22951. * bindings/objc/DOMCSS.h:
  22952. * bindings/objc/DOMCSS.mm:
  22953. (-[DOMDocument getComputedStyle:pseudoElement:]):
  22954. (-[DOMDocument getComputedStyle::]):
  22955. (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
  22956. * bindings/objc/DOMExtensions.h:
  22957. * bindings/objc/DOMHTML.h:
  22958. * bindings/objc/DOMRange.h:
  22959. * bindings/objc/DOMTraversal.h:
  22960. 2006-09-25 Eric Seidel <eric@webkit.org>
  22961. Reviewed by mjs.
  22962. Outermost <svg> element should clip to viewport
  22963. http://bugs.webkit.org/show_bug.cgi?id=11007
  22964. Test: svg/custom/viewport-clip.svg
  22965. * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
  22966. 2006-09-25 Anders Carlsson <acarlsson@apple.com>
  22967. Reviewed by Maciej.
  22968. * css/MediaList.cpp:
  22969. Remove unused header.
  22970. * dom/Document.cpp:
  22971. (WebCore::Document::clear):
  22972. Use clear instead of iterating through the list of event listeners, removing each one.
  22973. (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
  22974. * html/HTMLKeygenElement.cpp:
  22975. (WebCore::HTMLKeygenElement::HTMLKeygenElement):
  22976. (WebCore::HTMLKeygenElement::appendFormData):
  22977. Update due to changes in the SSL key generator.
  22978. * ksvg2/svg/SVGAngle.cpp:
  22979. Remove unused header.
  22980. * ksvg2/svg/SVGAnimationElement.cpp:
  22981. (SVGAnimationElement::parseMappedAttribute):
  22982. Rename methods and pass Strings instead of DeprecatedStrings to
  22983. parseSeparatedList.
  22984. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  22985. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  22986. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  22987. * ksvg2/svg/SVGFEMergeElement.cpp:
  22988. * ksvg2/svg/SVGFEOffsetElement.cpp:
  22989. Remove unused headers.
  22990. * ksvg2/svg/SVGHelper.cpp:
  22991. (WebCore::SVGHelper::parseSeparatedList):
  22992. * ksvg2/svg/SVGHelper.h:
  22993. Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
  22994. DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
  22995. * ksvg2/svg/SVGLengthList.cpp:
  22996. (WebCore::SVGLengthList::parse):
  22997. * ksvg2/svg/SVGLengthList.h:
  22998. Use Vector<String> instead of DeprecatedStringList.
  22999. * loader/Cache.cpp:
  23000. (WebCore::Cache::requestImage):
  23001. (WebCore::Cache::requestStyleSheet):
  23002. (WebCore::Cache::requestScript):
  23003. (WebCore::Cache::requestXSLStyleSheet):
  23004. (WebCore::Cache::requestXBLDocument):
  23005. (WebCore::Cache::remove):
  23006. (WebCore::Cache::get):
  23007. Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
  23008. * loader/DocLoader.cpp:
  23009. (WebCore::DocLoader::needReload):
  23010. * loader/DocLoader.h:
  23011. Use a HashSet instead of DeprecatedStringList.
  23012. * page/FrameView.h:
  23013. Remove declarations that have no functions.
  23014. * platform/SSLKeyGenerator.h:
  23015. * platform/mac/SSLKeyGeneratorMac.mm:
  23016. (WebCore::supportedKeySizes):
  23017. (WebCore::signedPublicKeyAndChallengeString):
  23018. Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
  23019. DeprecatedString.
  23020. 2006-09-25 Dave Hyatt <hyatt@apple.com>
  23021. Shunt the RenderTheme world transform adoption between
  23022. Cairo and Windows into getWindowsContext and move the method
  23023. out of GraphicsContextCairo and into GraphicsContextWin.
  23024. * ChangeLog:
  23025. * WebCore.vcproj/WebCore/WebCore.vcproj:
  23026. * platform/cairo/GraphicsContextCairo.cpp:
  23027. * platform/win/GraphicsContextWin.cpp: Added.
  23028. (WebCore::GraphicsContext::getWindowsContext):
  23029. (WebCore::GraphicsContext::releaseWindowsContext):
  23030. * rendering/RenderThemeWin.cpp:
  23031. (WebCore::prepareForDrawing):
  23032. 2006-09-24 Eric Seidel <eric@webkit.org>
  23033. Reviewed by hyatt.
  23034. <svg:a> cannot be styled with a:hover
  23035. http://bugs.webkit.org/show_bug.cgi?id=11005
  23036. Test: svg/hixie/cascade/002.xml
  23037. * css/cssstyleselector.cpp:
  23038. (WebCore::checkPseudoState):
  23039. 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
  23040. Reviewed by Tim H.
  23041. Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
  23042. SVG needs Obj-C DOM bindings
  23043. - Auto-generate the first 8 Objective-C SVG DOM bindings. The
  23044. auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
  23045. DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
  23046. DOMSVGTransformList.
  23047. * DerivedSources.make:
  23048. * WebCore.xcodeproj/project.pbxproj:
  23049. * bindings/objc/DOMInternal.h:
  23050. * bindings/objc/DOMSVG.h: Added.
  23051. * ksvg2/svg/SVGAngle.idl:
  23052. * ksvg2/svg/SVGLength.idl:
  23053. * ksvg2/svg/SVGLengthList.idl:
  23054. * ksvg2/svg/SVGMatrix.idl:
  23055. * ksvg2/svg/SVGPathSeg.idl:
  23056. * ksvg2/svg/SVGPathSegList.idl:
  23057. * ksvg2/svg/SVGTransform.idl:
  23058. * ksvg2/svg/SVGTransformList.idl:
  23059. 2006-09-24 Rob Buis <buis@kde.org>
  23060. Reviewed by eseidel.
  23061. Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
  23062. WebKit does not handle fallback custom cursors
  23063. Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
  23064. WebKit does not properly handle SVG <cursor> element
  23065. Add support for svg cursor images. Also make sure hotspot
  23066. settings are handled correctly. Add tests for handling of css3
  23067. cursor syntax with hotspots in strict and quirks mode. Finally
  23068. implement fallback.
  23069. * WebCore.xcodeproj/project.pbxproj:
  23070. * css/CSSComputedStyleDeclaration.cpp:
  23071. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  23072. * css/CSSCursorImageValue.cpp: Added.
  23073. (WebCore::CSSCursorImageValue::CSSCursorImageValue):
  23074. (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
  23075. * css/CSSCursorImageValue.h: Added.
  23076. (WebCore::CSSCursorImageValue::hotspot):
  23077. * css/cssparser.cpp:
  23078. (WebCore::CSSParser::parseValue):
  23079. * css/cssstyleselector.cpp:
  23080. (WebCore::CSSStyleSelector::applyProperty):
  23081. * ksvg2/svg/SVGCursorElement.cpp:
  23082. * manual-tests/css3-cursor-fallback-quirks.html: Added.
  23083. * manual-tests/css3-cursor-fallback-strict.html: Added.
  23084. * manual-tests/cursorfallback.xml: Added.
  23085. * page/FrameView.cpp:
  23086. (WebCore::selectCursor):
  23087. * platform/Cursor.h:
  23088. * platform/mac/CursorMac.mm:
  23089. (WebCore::createCustomCursor):
  23090. (WebCore::Cursor::Cursor):
  23091. * platform/qt/CursorQt.cpp:
  23092. (WebCore::Cursor::Cursor):
  23093. * rendering/RenderStyle.cpp:
  23094. (WebCore::StyleInheritedData::StyleInheritedData):
  23095. (WebCore::StyleInheritedData::operator==):
  23096. (WebCore::RenderStyle::diff):
  23097. (WebCore::RenderStyle::addCursor):
  23098. (WebCore::RenderStyle::addSVGCursor):
  23099. (WebCore::RenderStyle::setCursorList):
  23100. (WebCore::RenderStyle::clearCursorList):
  23101. * rendering/RenderStyle.h:
  23102. (WebCore::CursorData::CursorData):
  23103. (WebCore::CursorList::operator[]):
  23104. (WebCore::CursorList::size):
  23105. (WebCore::CursorList::append):
  23106. (WebCore::RenderStyle::cursors):
  23107. 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
  23108. Reviewed by Tim H.
  23109. Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
  23110. Auto-generate the internal methods interfaces for the Objective-C bindings
  23111. - Auto-generate the internal method declarations into their own files
  23112. named in the form DOMFooBarInternal.h for class DOMFooBar.
  23113. - Remove all use of DOM_cast from code.
  23114. - Assorted cleanups.
  23115. * WebCore.xcodeproj/project.pbxproj:
  23116. * bindings/objc/DOM.mm:
  23117. (-[DOMNode _initWithNode:WebCore::]):
  23118. (-[DOMNode WebCore::]):
  23119. (-[DOMRange dealloc]):
  23120. (-[DOMRange finalize]):
  23121. (-[DOMRange _initWithRange:WebCore::]):
  23122. (-[DOMRange WebCore::]):
  23123. (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
  23124. (-[DOMNodeFilter WebCore::]):
  23125. (-[DOMNodeFilter dealloc]):
  23126. (-[DOMNodeFilter finalize]):
  23127. (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
  23128. (-[DOMNodeIterator WebCore::]):
  23129. (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
  23130. (-[DOMTreeWalker WebCore::]):
  23131. * bindings/objc/DOMAbstractView.mm:
  23132. (-[DOMAbstractView _initWithAbstractView:WebCore::]):
  23133. * bindings/objc/DOMCSS.mm:
  23134. (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
  23135. (-[DOMCSSRule _initWithRule:WebCore::]):
  23136. (-[DOMCSSValue _initWithValue:WebCore::]):
  23137. * bindings/objc/DOMEvents.mm:
  23138. (-[DOMEvent _initWithEvent:WebCore::]):
  23139. * bindings/objc/DOMHTMLAppletElement.mm:
  23140. (-[DOMHTMLAppletElement align]):
  23141. (-[DOMHTMLAppletElement setAlign:]):
  23142. (-[DOMHTMLAppletElement alt]):
  23143. (-[DOMHTMLAppletElement setAlt:]):
  23144. (-[DOMHTMLAppletElement archive]):
  23145. (-[DOMHTMLAppletElement setArchive:]):
  23146. (-[DOMHTMLAppletElement code]):
  23147. (-[DOMHTMLAppletElement setCode:]):
  23148. (-[DOMHTMLAppletElement codeBase]):
  23149. (-[DOMHTMLAppletElement setCodeBase:]):
  23150. (-[DOMHTMLAppletElement height]):
  23151. (-[DOMHTMLAppletElement setHeight:]):
  23152. (-[DOMHTMLAppletElement hspace]):
  23153. (-[DOMHTMLAppletElement setHspace:]):
  23154. (-[DOMHTMLAppletElement name]):
  23155. (-[DOMHTMLAppletElement setName:]):
  23156. (-[DOMHTMLAppletElement object]):
  23157. (-[DOMHTMLAppletElement setObject:]):
  23158. (-[DOMHTMLAppletElement vspace]):
  23159. (-[DOMHTMLAppletElement setVspace:]):
  23160. (-[DOMHTMLAppletElement width]):
  23161. (-[DOMHTMLAppletElement setWidth:]):
  23162. * bindings/objc/DOMInternal.h:
  23163. (getDOMWrapper):
  23164. (addDOMWrapper):
  23165. (raiseOnDOMError):
  23166. * bindings/objc/DOMXPath.mm:
  23167. (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
  23168. * bindings/scripts/CodeGeneratorObjC.pm:
  23169. 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
  23170. Reviewed by eseidel.
  23171. Fix Qt/Linux build after Dave's Scrollbar changes.
  23172. * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
  23173. * platform/qt/TemporaryLinkStubs.cpp:
  23174. (WebCore::ScrollBar::setProportion):
  23175. (WebCore::PlatformScrollBar::updateThumbPosition):
  23176. (WebCore::PlatformScrollBar::updateThumbProportion):
  23177. 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
  23178. Reviewed by eseidel.
  23179. Qt/Linux build system changes: enable xpath/xslt by default.
  23180. Offer possibility to change all of these using 'ccmake'.
  23181. * CMakeLists.txt:
  23182. 2006-09-24 Dave Hyatt <hyatt@apple.com>
  23183. Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
  23184. Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
  23185. the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
  23186. * platform/ScrollBar.cpp:
  23187. (WebCore::ScrollBar::setValue):
  23188. (WebCore::ScrollBar::setProportion):
  23189. * platform/ScrollBar.h:
  23190. (WebCore::ScrollBar::value):
  23191. * platform/mac/PlatformScrollBar.h:
  23192. * platform/mac/PlatformScrollBarMac.mm:
  23193. (WebCore::PlatformScrollBar::updateThumbPosition):
  23194. (WebCore::PlatformScrollBar::updateThumbProportion):
  23195. * platform/win/PlatformScrollBar.h:
  23196. * platform/win/TemporaryLinkStubs.cpp:
  23197. (PlatformScrollBar::updateThumbPosition):
  23198. (PlatformScrollBar::updateThumbProportion):
  23199. * rendering/RenderLayer.cpp:
  23200. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  23201. 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
  23202. Reviewed by Eric.
  23203. http://bugs.webkit.org/show_bug.cgi?id=4872
  23204. XMLHttpRequest fails to throw an exception when there is a security violation
  23205. (mismatching domains)
  23206. Raise an exception if there is a security violation, and also in cases required by
  23207. the current draft of XHR specification.
  23208. * bindings/js/JSXMLHttpRequest.cpp:
  23209. (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
  23210. (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
  23211. reports one, and also if there were too few arguments passed.
  23212. * bindings/js/kjs_binding.cpp:
  23213. (KJS::setDOMException): Added support for custom XHR exceptions.
  23214. * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
  23215. exception code range for XHR exceptions.
  23216. * xml/xmlhttprequest.cpp:
  23217. (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
  23218. (WebCore::XMLHttpRequest::send):
  23219. (WebCore::XMLHttpRequest::setRequestHeader):
  23220. (WebCore::XMLHttpRequest::getStatus):
  23221. (WebCore::XMLHttpRequest::getStatusText):
  23222. (WebCore::XMLHttpRequest::processSyncLoadResults):
  23223. (WebCore::XMLHttpRequest::receivedAllData):
  23224. (WebCore::XMLHttpRequest::receivedData):
  23225. 2006-09-22 Steve Falkenburg <sfalken@apple.com>
  23226. Reviewed by Jeff Jenkins.
  23227. Tweak CF types.
  23228. * platform/cf/ResourceLoaderCFNet.cpp:
  23229. (WebCore::willCacheResponse):
  23230. 2006-09-22 Justin Garcia <justin.garcia@apple.com>
  23231. Reviewed by darin
  23232. <http://bugs.webkit.org/show_bug.cgi?id=8029>
  23233. Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
  23234. * dom/Document.cpp:
  23235. (WebCore::Document::clearSelectionIfNeeded):
  23236. * dom/Element.cpp:
  23237. (WebCore::Element::contains):
  23238. * dom/Node.cpp:
  23239. (WebCore::Node::traverseNextNode):
  23240. (WebCore::Node::traverseNextSibling):
  23241. (WebCore::Node::traversePreviousNodePostOrder):
  23242. (WebCore::Node::checkAddChild):
  23243. (WebCore::Node::isDescendantOf):
  23244. * dom/Node.h:
  23245. * dom/NodeIterator.cpp:
  23246. (WebCore::NodeIterator::notifyBeforeNodeRemoval):
  23247. * editing/ApplyStyleCommand.cpp:
  23248. (WebCore::ApplyStyleCommand::applyBlockStyle):
  23249. (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
  23250. (WebCore::ApplyStyleCommand::applyInlineStyle):
  23251. (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
  23252. * editing/CompositeEditCommand.cpp:
  23253. (WebCore::CompositeEditCommand::mergeIdenticalElements):
  23254. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
  23255. * editing/DeleteSelectionCommand.cpp:
  23256. (WebCore::updatePositionForNodeRemoval):
  23257. (WebCore::DeleteSelectionCommand::handleGeneralDelete):
  23258. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  23259. * editing/FormatBlockCommand.cpp:
  23260. (WebCore::FormatBlockCommand::doApply):
  23261. * editing/IndentOutdentCommand.cpp:
  23262. (WebCore::enclosingListOrBlockquote):
  23263. * editing/Selection.cpp:
  23264. (WebCore::Selection::validate):
  23265. * editing/SelectionController.cpp:
  23266. (WebCore::SelectionController::nodeWillBeRemoved):
  23267. * editing/TextIterator.cpp:
  23268. (WebCore::SimplifiedBackwardsTextIterator::advance):
  23269. * editing/VisiblePosition.cpp:
  23270. (WebCore::VisiblePosition::next):
  23271. (WebCore::VisiblePosition::previous):
  23272. (WebCore::VisiblePosition::canonicalPosition):
  23273. (WebCore::isFirstVisiblePositionInNode):
  23274. (WebCore::isLastVisiblePositionInNode):
  23275. * editing/htmlediting.cpp:
  23276. (WebCore::firstEditablePositionAfterPositionInRoot):
  23277. (WebCore::lastEditablePositionBeforePositionInRoot):
  23278. (WebCore::enclosingNodeWithTag):
  23279. (WebCore::enclosingList):
  23280. (WebCore::enclosingListChild):
  23281. * editing/markup.cpp:
  23282. (WebCore::createMarkup):
  23283. 2006-09-22 Timothy Hatcher <timothy@apple.com>
  23284. Reviewed by Darin.
  23285. - Added @property syntax to non-generated headers
  23286. inside #ifndef BUILDING_ON_TIGER.
  23287. - Changed the DOMEventTarget protocol to have have new versions
  23288. of addEventListener and removeEventListener with named parameters.
  23289. These old style methods can be removed once Mail changes to use
  23290. the new methods <rdar://problem/4746649>.
  23291. * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
  23292. * bindings/objc/DOM.mm:
  23293. (-[DOMNode addEventListener:listener:useCapture:]):
  23294. (-[DOMNode addEventListener:::]): call the new method
  23295. (-[DOMNode removeEventListener:listener:useCapture:]):
  23296. (-[DOMNode removeEventListener:::]): call the new method
  23297. * bindings/objc/DOMAbstractView.h:
  23298. * bindings/objc/DOMEventTarget.h:
  23299. * bindings/objc/DOMHTMLAppletElement.h:
  23300. * bindings/objc/DOMHTMLEmbedElement.h:
  23301. * bindings/objc/DOMHTMLOptionElement.h:
  23302. * bindings/objc/DOMObject.h:
  23303. * bindings/objc/DOMRGBColor.h:
  23304. 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
  23305. Reviewed by Eric.
  23306. Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
  23307. * platform/qt/FrameQt.cpp:
  23308. * platform/qt/GraphicsContextQt.cpp:
  23309. (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
  23310. (WebCore::GraphicsContext::origin):
  23311. * platform/qt/PlatformScrollBar.h: Added.
  23312. (WebCore::PlatformScrollBar::isWidget):
  23313. * platform/qt/WidgetQt.cpp:
  23314. (WebCore::Widget::invalidate):
  23315. (WebCore::Widget::invalidateRect):
  23316. 2006-09-22 Dave Hyatt <hyatt@apple.com>
  23317. Super-minor tweaks to the systemFont function on Mac.
  23318. Set the generic family to None rather than to Serif, and
  23319. don't waste time setting the computed size, since that is
  23320. set from the specified size over in CSSStyleSelector anyway.
  23321. * rendering/RenderThemeMac.mm:
  23322. (WebCore::RenderThemeMac::systemFont):
  23323. 2006-09-22 Timothy Hatcher <timothy@apple.com>
  23324. Reviewed by Brady.
  23325. Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
  23326. take floats. There was already an implicit conversion to float/double
  23327. when calling CGContextTranslateCTM or cairo_translate.
  23328. * platform/GraphicsContext.h:
  23329. * platform/cairo/GraphicsContextCairo.cpp:
  23330. (WebCore::GraphicsContext::translate):
  23331. * platform/cg/GraphicsContextCG.cpp:
  23332. (WebCore::GraphicsContext::translate):
  23333. 2006-09-22 Brady Eidson <beidson@apple.com>
  23334. Reviewed by Sfalken
  23335. Add redirect and other cleanup to ResourceLoaderWin.cpp
  23336. Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
  23337. Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
  23338. * WebCore.xcodeproj/project.pbxproj:
  23339. * platform/ResourceLoader.h:
  23340. * platform/win/ResourceLoaderWin.cpp:
  23341. (WebCore::ResourceLoaderWndProc):
  23342. (WebCore::initializeOffScreenResourceLoaderWindow):
  23343. (WebCore::ResourceLoader::onHandleCreated):
  23344. (WebCore::ResourceLoader::onRequestRedirected):
  23345. (WebCore::ResourceLoader::onRequestComplete):
  23346. (WebCore::transferJobStatusCallback):
  23347. 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
  23348. Reviewed by Geoff.
  23349. http://bugs.webkit.org/show_bug.cgi?id=10803
  23350. REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
  23351. * page/FrameView.cpp:
  23352. (WebCore::FrameView::hoverTimerFired): Use the current event.
  23353. 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
  23354. Reviewed by Anders.
  23355. Fix (last) svg memory leak.
  23356. * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
  23357. (SVGTransformable::parseTransformAttribute):
  23358. 2006-09-22 Eric Seidel <eric@webkit.org>
  23359. No review necessary, just removing a dead file.
  23360. Remove unused file (added previously by mistake) to make room for real implementation.
  23361. * platform/mac/BitmapImageMac.mm: Removed.
  23362. 2006-09-22 Dave Hyatt <hyatt@apple.com>
  23363. Move PlatformScrollBar.h down into the platforms.
  23364. Reviewed by andersca
  23365. * platform/PlatformScrollBar.h: Removed.
  23366. * platform/win/PlatformScrollBar.h: Added.
  23367. * platform/mac/PlatformScrollBar.h: Added.
  23368. 2006-09-22 Dave Hyatt <hyatt@apple.com>
  23369. Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
  23370. any widget subsystems that don't have any underlying native objects backing the widgets.
  23371. Reviewed by anders
  23372. * platform/Widget.h:
  23373. * platform/mac/WidgetMac.mm:
  23374. (WebCore::Widget::invalidate):
  23375. (WebCore::Widget::invalidateRect):
  23376. * platform/win/TemporaryLinkStubs.cpp:
  23377. (Widget::invalidate):
  23378. (Widget::invalidateRect):
  23379. 2006-09-22 Rob Buis <buis@kd.org>
  23380. Reviewed by eseidel.
  23381. http://bugs.webkit.org/show_bug.cgi?id=10901
  23382. Merge build fixes from unity
  23383. * CMakeLists.txt:
  23384. 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
  23385. Reviewed by eseidel.
  23386. http://bugs.webkit.org/show_bug.cgi?id=10977
  23387. SVGDocument does not expose 'rootElement' property
  23388. Enable 'rootElement' property.
  23389. * ksvg2/svg/SVGDocument.idl:
  23390. 2006-09-21 Steve Falkenburg <sfalken@apple.com>
  23391. Tweak includes.
  23392. * platform/ResourceLoaderInternal.h:
  23393. 2006-09-21 Geoffrey Garen <ggaren@apple.com>
  23394. build fixed. band happy.
  23395. * platform/cg/GraphicsContextCG.cpp:
  23396. (WebCore::GraphicsContext::translate):
  23397. * platform/mac/WidgetMac.mm:
  23398. 2006-09-21 Geoffrey Garen <ggaren@apple.com>
  23399. Reviewed by Maciej.
  23400. Some Widget refactoring.
  23401. * WebCore.vcproj/WebCore/WebCore.vcproj:
  23402. * bridge/mac/FrameMac.mm:
  23403. * bridge/win/FrameWin.cpp:
  23404. (WebCore::FrameWin::runJavaScriptAlert):
  23405. (WebCore::FrameWin::runJavaScriptConfirm):
  23406. * bridge/win/PageWin.cpp:
  23407. (WebCore::Page::Page):
  23408. (WebCore::rootWindowForFrame):
  23409. * html/CanvasRenderingContext2D.cpp:
  23410. (WebCore::CanvasRenderingContext2D::translate):
  23411. * page/FrameView.cpp:
  23412. (WebCore::FrameView::isFrameView):
  23413. * page/Page.h:
  23414. (WebCore::Page::setInstanceHandle):
  23415. (WebCore::Page::instanceHandle):
  23416. * platform/GraphicsContext.h:
  23417. * platform/ScrollView.h:
  23418. * platform/Widget.h:
  23419. * platform/cairo/GraphicsContextCairo.cpp:
  23420. (WebCore::GraphicsContext::translate):
  23421. (WebCore::GraphicsContext::origin):
  23422. * platform/mac/WidgetMac.mm:
  23423. (WebCore::Widget::clearFocus):
  23424. * platform/win/ResourceLoaderWin.cpp:
  23425. (WebCore::initializeOffScreenResourceLoaderWindow):
  23426. * platform/win/ScreenWin.cpp:
  23427. (WebCore::monitorInfo):
  23428. * platform/win/ScrollViewWin.cpp:
  23429. (WebCore::ScrollView::updateContents):
  23430. (WebCore::ScrollView::visibleWidth):
  23431. (WebCore::ScrollView::visibleHeight):
  23432. (WebCore::ScrollView::visibleContentRect):
  23433. (WebCore::ScrollView::viewportToContents):
  23434. (WebCore::ScrollView::contentsToViewport):
  23435. (WebCore::ScrollView::scrollBy):
  23436. (WebCore::ScrollView::updateScrollInfo):
  23437. (WebCore::ScrollView::updateScrollBars):
  23438. * platform/win/SharedTimerWin.cpp:
  23439. (WebCore::initializeOffScreenTimerWindow):
  23440. * platform/win/TemporaryLinkStubs.cpp:
  23441. (FrameView::updateBorder):
  23442. (ScrollView::paint):
  23443. (GraphicsContext::clip):
  23444. * platform/win/WidgetWin.cpp:
  23445. (WebCore::Widget::Widget):
  23446. (WebCore::Widget::parentWindow):
  23447. (WebCore::Widget::setParentWindow):
  23448. (WebCore::Widget::frameGeometry):
  23449. (WebCore::Widget::hasFocus):
  23450. (WebCore::Widget::setFocus):
  23451. (WebCore::Widget::show):
  23452. (WebCore::Widget::hide):
  23453. (WebCore::Widget::setFrameGeometry):
  23454. 2006-09-22 Anders Carlsson <acarlsson@apple.com>
  23455. Reviewed by Tim H.
  23456. * platform/TextEncoding.cpp:
  23457. (WebCore::TextEncoding::backslashAsCurrencySymbol):
  23458. Add comment clarifying why backslashAsCurrencySymbol is needed.
  23459. 2006-09-21 Sean Gies <seangies@apple.com>
  23460. Reviewed by Adam Roben.
  23461. Add utility functions to get and release HDC from GraphicsContext.
  23462. * platform/GraphicsContext.h: Add utilities to get and release HDC.
  23463. * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
  23464. * rendering/RenderThemeWin.cpp: Switch to new utilities.
  23465. 2006-09-21 Justin Garcia <justin.garcia@apple.com>
  23466. Reviewed by anders
  23467. <rdar://problem/4426622>
  23468. Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
  23469. * editing/htmlediting.cpp:
  23470. (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
  23471. aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
  23472. Got rid of uses of DepricatedString.
  23473. 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
  23474. Reviewed by eseidel.
  23475. Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
  23476. * page/Frame.cpp:
  23477. (WebCore::Frame::endIfNotLoading):
  23478. 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
  23479. Reviewed by eseidel.
  23480. Fix Qt/Linux build.
  23481. * CMakeLists.txt:
  23482. * kcanvas/device/qt/KCanvasClipperQt.h:
  23483. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  23484. * platform/qt/FrameQt.cpp:
  23485. (WebCore::FrameQt::isLoadTypeReload):
  23486. (WebCore::FrameQt::originalRequestURL):
  23487. * platform/qt/FrameQt.h:
  23488. * platform/qt/GraphicsContextQt.cpp:
  23489. (WebCore::GraphicsContext::concatCTM):
  23490. * platform/qt/ScrollViewQt.cpp:
  23491. (WebCore::ScrollView::wheelEvent):
  23492. * platform/qt/TemporaryLinkStubs.cpp:
  23493. (WebCore::IconDatabase::setIconURLForPageURL):
  23494. 2006-09-20 Justin Garcia <justin.garcia@apple.com>
  23495. Reviewed by john
  23496. <http://bugs.webkit.org/show_bug.cgi?id=7165>
  23497. TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
  23498. * editing/MoveSelectionCommand.cpp:
  23499. (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
  23500. to the position-to-move-to's document, not the fragment's document. The
  23501. fragment's document is the document used to create the fragment and is irrelavant.
  23502. === Safari-521.27 ===
  23503. 2006-09-21 Brady Eidson <beidson@apple.com>
  23504. Reviewed by Anders
  23505. When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
  23506. This fixes Spinneret so it won't crash on its first load!
  23507. * page/Frame.cpp:
  23508. (WebCore::Frame::endIfNotLoading):
  23509. 2006-09-21 Brady Eidson <beidson@apple.com>
  23510. Build fix
  23511. * platform/win/TemporaryLinkStubs.cpp:
  23512. (ScrollView::wheelEvent):
  23513. 2006-09-20 Rob Buis <buis@kde.org>
  23514. Reviewed by eseidel.
  23515. http://bugs.webkit.org/show_bug.cgi?id=10946
  23516. new marker code draws end-marker in wrong place
  23517. Keep track of the start of the subpath so we can handle
  23518. closeTo/moveTo correctly.
  23519. * kcanvas/RenderPath.cpp:
  23520. (WebCore::DrawMarkersData::DrawMarkersData):
  23521. (WebCore::updateMarkerDataForElement):
  23522. 2006-09-21 David Hyatt <hyatt@apple.com>
  23523. Wheel scrolling prep for Win32.
  23524. WARNING: NO TEST CASES ADDED OR CHANGED
  23525. * platform/PlatformWheelEvent.h:
  23526. * platform/ScrollBar.h:
  23527. * platform/ScrollView.h:
  23528. * platform/mac/ScrollViewMac.mm:
  23529. (WebCore::ScrollView::wheelEvent):
  23530. * rendering/RenderLayer.cpp:
  23531. 2006-09-20 Timothy Hatcher <timothy@apple.com>
  23532. Reviewed by Hyatt.
  23533. Bug 10917: REGRESSION (r16027): iFrame transparency broken
  23534. http://bugs.webkit.org/show_bug.cgi?id=10917
  23535. Don't paint the base background color if we transparent.
  23536. * rendering/RenderBox.cpp:
  23537. (WebCore::RenderBox::paintBackgroundExtended):
  23538. 2006-09-20 Adam Roben <aroben@apple.com>
  23539. Reviewed by andersca.
  23540. * platform/FileChooser.h: Remove no-longer-necessary namespace std
  23541. 2006-09-20 Eric Seidel <eric@webkit.org>
  23542. Reviewed by beth.
  23543. Cleanup style in KCanvas.
  23544. Remove extra white-space, unneeded arguments, etc.
  23545. * WebCore.xcodeproj/project.pbxproj:
  23546. * kcanvas/KCanvasClipper.cpp:
  23547. (WebCore::operator<<):
  23548. (WebCore::KCanvasClipper::externalRepresentation):
  23549. * kcanvas/KCanvasClipper.h:
  23550. * kcanvas/KCanvasFilters.cpp:
  23551. (WebCore::KCanvasFilter::externalRepresentation):
  23552. (WebCore::operator<<):
  23553. (WebCore::KCanvasFilterEffect::externalRepresentation):
  23554. (WebCore::KCPointLightSource::externalRepresentation):
  23555. (WebCore::KCSpotLightSource::externalRepresentation):
  23556. (WebCore::KCDistantLightSource::externalRepresentation):
  23557. (WebCore::KCanvasFEBlend::externalRepresentation):
  23558. (WebCore::KCanvasFEColorMatrix::externalRepresentation):
  23559. (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
  23560. (WebCore::KCanvasFEComposite::externalRepresentation):
  23561. (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
  23562. (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
  23563. (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
  23564. (WebCore::KCanvasFEFlood::externalRepresentation):
  23565. (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
  23566. (WebCore::KCanvasFEImage::externalRepresentation):
  23567. (WebCore::KCanvasFEMerge::externalRepresentation):
  23568. (WebCore::KCanvasFEMorphology::externalRepresentation):
  23569. (WebCore::KCanvasFEOffset::externalRepresentation):
  23570. (WebCore::KCanvasFESpecularLighting::externalRepresentation):
  23571. (WebCore::KCanvasFETile::externalRepresentation):
  23572. (WebCore::KCanvasFETurbulence::externalRepresentation):
  23573. * kcanvas/KCanvasFilters.h:
  23574. (WebCore::KCanvasFEDiffuseLighting::lightSource):
  23575. (WebCore::KCanvasFESpecularLighting::lightSource):
  23576. * kcanvas/KCanvasImage.h:
  23577. * kcanvas/KCanvasMarker.cpp:
  23578. (WebCore::KCanvasMarker::externalRepresentation):
  23579. * kcanvas/KCanvasMarker.h:
  23580. * kcanvas/KCanvasResource.cpp:
  23581. (WebCore::operator<<):
  23582. * kcanvas/KCanvasResource.h:
  23583. * kcanvas/KCanvasTreeDebug.cpp:
  23584. (WebCore::operator<<):
  23585. (WebCore::writeIndent):
  23586. (WebCore::writeStyle):
  23587. (WebCore::write):
  23588. (WebCore::writeRenderResources):
  23589. * kcanvas/KCanvasTreeDebug.h:
  23590. (WebCore::operator<<):
  23591. * kcanvas/RenderForeignObject.cpp:
  23592. (WebCore::RenderForeignObject::paint):
  23593. * kcanvas/RenderPath.cpp:
  23594. (WebCore::RenderPath::paint):
  23595. (WebCore::drawStartAndMidMarkers):
  23596. * kcanvas/RenderSVGContainer.cpp:
  23597. (WebCore::RenderSVGContainer::paint):
  23598. * kcanvas/RenderSVGImage.cpp:
  23599. (WebCore::RenderSVGImage::translateForAttributes):
  23600. * kcanvas/RenderSVGImage.h:
  23601. * kcanvas/device/KRenderingDevice.cpp:
  23602. (WebCore::KRenderingDevice::currentContext):
  23603. (WebCore::KRenderingDevice::popContext):
  23604. (WebCore::KRenderingDevice::pushContext):
  23605. * kcanvas/device/KRenderingDevice.h:
  23606. * kcanvas/device/KRenderingFillPainter.h:
  23607. * kcanvas/device/KRenderingPaintServer.h:
  23608. (WebCore::KRenderingPaintServer::KRenderingPaintServer):
  23609. (WebCore::KRenderingPaintServer::activeClient):
  23610. (WebCore::KRenderingPaintServer::setActiveClient):
  23611. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  23612. (WebCore::operator<<):
  23613. (WebCore::KRenderingPaintServerGradient::externalRepresentation):
  23614. (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
  23615. (WebCore::KRenderingPaintServerGradient::listener):
  23616. (WebCore::KRenderingPaintServerGradient::setListener):
  23617. (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
  23618. * kcanvas/device/KRenderingPaintServerGradient.h:
  23619. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  23620. (WebCore::KRenderingPaintServerPattern::tile):
  23621. (WebCore::KRenderingPaintServerPattern::setTile):
  23622. (WebCore::KRenderingPaintServerPattern::listener):
  23623. (WebCore::KRenderingPaintServerPattern::setListener):
  23624. (WebCore::KRenderingPaintServerPattern::externalRepresentation):
  23625. * kcanvas/device/KRenderingPaintServerPattern.h:
  23626. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  23627. (WebCore::KRenderingPaintServerSolid::externalRepresentation):
  23628. * kcanvas/device/KRenderingPaintServerSolid.h:
  23629. * kcanvas/device/KRenderingStrokePainter.cpp:
  23630. (WebCore::KRenderingStrokePainter::strokeMiterLimit):
  23631. (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
  23632. * kcanvas/device/KRenderingStrokePainter.h:
  23633. * kcanvas/device/quartz/KCanvasFilterQuartz.h:
  23634. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  23635. (WebCore::KCanvasFilterQuartz::prepareFilter):
  23636. * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
  23637. * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
  23638. (WebCore::KCanvasMaskerQuartz::applyMask):
  23639. * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
  23640. (WebCore::KCanvasImageQuartz::init):
  23641. * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
  23642. (WebCore::KCanvasClipperQuartz::applyClip):
  23643. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  23644. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  23645. (WebCore::KRenderingDeviceQuartz::quartzContext):
  23646. (WebCore::KRenderingDeviceQuartz::contextForImage):
  23647. (WebCore::KRenderingDeviceQuartz::createPaintServer):
  23648. (WebCore::KRenderingDeviceQuartz::createResource):
  23649. (WebCore::KRenderingDeviceQuartz::createFilterEffect):
  23650. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  23651. (WebCore::CGShadingRefForLinearGradient):
  23652. (WebCore::CGShadingRefForRadialGradient):
  23653. (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
  23654. (WebCore::KRenderingPaintServerGradientQuartz::teardown):
  23655. * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
  23656. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  23657. (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
  23658. (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
  23659. (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
  23660. (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
  23661. (WebCore::KRenderingPaintServerSolidQuartz::draw):
  23662. (WebCore::KRenderingPaintServerSolidQuartz::setup):
  23663. (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
  23664. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  23665. (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
  23666. (WebCore::KRenderingPaintServerPatternQuartz::teardown):
  23667. * kcanvas/device/quartz/QuartzSupport.h:
  23668. * kcanvas/device/quartz/QuartzSupport.mm:
  23669. (WebCore::applyStrokeStyleToContext):
  23670. 2006-09-20 Anders Carlsson <acarlsson@apple.com>
  23671. Reviewed by Dave Hyatt.
  23672. * dom/WheelEvent.cpp:
  23673. (WebCore::WheelEvent::WheelEvent):
  23674. Use lroundf instead of lround since deltas are floats.
  23675. 2006-09-20 Julien Palmas <julien.palmas@gmail.com>
  23676. Reviewed by eseidel. Landed by eseidel.
  23677. Test: svg/custom/pattern-y-offset.svg
  23678. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  23679. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  23680. 2006-09-20 David Hyatt <hyatt@apple.com>
  23681. Add a new wheelEvent method to ScrollView. Platforms that wish
  23682. to handle the wheel event for the scroll view themselves can then
  23683. do so there. (Mac lets the underlying NSScrollView do it for now.)
  23684. * page/FrameView.cpp:
  23685. (WebCore::FrameView::handleWheelEvent):
  23686. * platform/ScrollView.h:
  23687. (WebCore::ScrollView::wheelEvent):
  23688. 2006-09-20 Brady Eidson <beidson@apple.com>
  23689. Reviewed by Tim Omernick
  23690. Part of fixing a crash Tim O showed me that I missed in a release build.
  23691. WebKit should be able to call through the bridge to WebCore no matter what -
  23692. Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
  23693. * bridge/mac/WebCoreIconDatabaseBridge.h:
  23694. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  23695. (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
  23696. (-[WebCoreIconDatabaseBridge isOpen]):
  23697. (-[WebCoreIconDatabaseBridge removeAllIcons]):
  23698. (-[WebCoreIconDatabaseBridge _isEmpty]):
  23699. (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
  23700. (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
  23701. (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
  23702. (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
  23703. (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
  23704. (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
  23705. (-[WebCoreIconDatabaseBridge retainIconForURL:]):
  23706. (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
  23707. (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
  23708. (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
  23709. (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
  23710. (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
  23711. (-[WebCoreIconDatabaseBridge _setEnabled:]):
  23712. (-[WebCoreIconDatabaseBridge _isEnabled]):
  23713. 2006-09-20 Anders Carlsson <acarlsson@apple.com>
  23714. Reviewed by Darin.
  23715. Add String::split which returns a Vector of Strings and use it instead of
  23716. DeprecatedStringList.
  23717. * bindings/js/kjs_events.cpp:
  23718. (KJS::Clipboard::getValueProperty):
  23719. * bindings/js/kjs_window.cpp:
  23720. (KJS::parseModalDialogFeatures):
  23721. * css/MediaList.cpp:
  23722. (WebCore::MediaList::setMediaText):
  23723. * dom/Clipboard.h:
  23724. * html/HTMLFormElement.cpp:
  23725. (WebCore::HTMLFormElement::formData):
  23726. * html/HTMLLinkElement.cpp:
  23727. (WebCore::HTMLLinkElement::tokenizeRelAttribute):
  23728. * platform/PlatformString.h:
  23729. * platform/String.cpp:
  23730. (WebCore::String::split):
  23731. * platform/StringImpl.cpp:
  23732. * platform/StringImpl.h:
  23733. * platform/mac/ClipboardMac.h:
  23734. * platform/mac/ClipboardMac.mm:
  23735. (WebCore::ClipboardMac::types):
  23736. 2006-09-20 Justin Garcia <justin.garcia@apple.com>
  23737. Reviewed by harrison
  23738. * css/cssstyleselector.cpp:
  23739. (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call
  23740. HTMLElement::isContentEditable just to check the Frame's editability, since
  23741. it calls updateRenderering, which can get us into infinite recursion.
  23742. 2006-09-20 Brady Eidson <beidson@apple.com>
  23743. Reviewed by Darin
  23744. Cleaned up my last patch alot, and made the WebCore icon database disabled by default
  23745. * loader/icon/IconDatabase.cpp:
  23746. (WebCore::IconDatabase::IconDatabase): Disabled by default
  23747. (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
  23748. (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
  23749. (WebCore::IconDatabase::iconForPageURL): Ditto
  23750. (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
  23751. (WebCore::IconDatabase::iconURLForPageURL): Ditto
  23752. (WebCore::IconDatabase::retainIconForPageURL): Ditto
  23753. (WebCore::IconDatabase::releaseIconForPageURL): Ditto
  23754. (WebCore::IconDatabase::setIconDataForIconURL): Ditto
  23755. (WebCore::IconDatabase::setIconURLForPageURL): Ditto
  23756. (WebCore::IconDatabase::hasEntryForIconURL): Ditto
  23757. (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
  23758. 2006-09-20 Adam Roben <aroben@apple.com>
  23759. Reviewed by Adele.
  23760. Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
  23761. REGRESSION: file upload control with direction:rtl or text-align:right
  23762. draws button on top of filename/icon
  23763. * rendering/RenderFileUploadControl.cpp:
  23764. (WebCore::RenderFileUploadControl::setStyle): Force text-align to
  23765. match direction
  23766. (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
  23767. the filename and icon in RTL
  23768. 2006-09-20 Alice Liu <alice.liu@apple.com>
  23769. Reviewed by Adam Roben.
  23770. fixed windows build
  23771. * dom/WheelEvent.cpp:
  23772. (WebCore::WheelEvent::WheelEvent):
  23773. changed lrint to lround
  23774. 2006-09-20 Sam Weinig <sam.weinig@gmail.com>
  23775. Build Fix. Adds isHorizontal attribute back to WheelEvent
  23776. for the Objective-C bindings. If it is found that isHorizontal
  23777. is not used, we should remove it again but also remove it's
  23778. declaration from PublicDOMInterfaces.h
  23779. * dom/WheelEvent.h:
  23780. (WebCore::WheelEvent::isHorizontal):
  23781. * dom/WheelEvent.idl:
  23782. 2006-09-20 David Hyatt <hyatt@apple.com>
  23783. Fix for 10945, WheelEvent should support two dimensions at once, since
  23784. MacBooks allow for diagonal scrolling. Also enhance the PlatformWheelEvent
  23785. to allow for diagonal scrolling.
  23786. Reviewed by Eric
  23787. * dom/EventTargetNode.cpp:
  23788. (WebCore::EventTargetNode::dispatchWheelEvent):
  23789. * dom/WheelEvent.cpp:
  23790. (WebCore::WheelEvent::WheelEvent):
  23791. (WebCore::WheelEvent::initWheelEvent):
  23792. * dom/WheelEvent.h:
  23793. (WebCore::WheelEvent::wheelDelta):
  23794. (WebCore::WheelEvent::wheelDeltaX):
  23795. (WebCore::WheelEvent::wheelDeltaY):
  23796. * dom/WheelEvent.idl:
  23797. * page/FrameView.cpp:
  23798. (WebCore::FrameView::handleWheelEvent):
  23799. * platform/PlatformWheelEvent.h:
  23800. (WebCore::PlatformWheelEvent::deltaX):
  23801. (WebCore::PlatformWheelEvent::deltaY):
  23802. (WebCore::PlatformWheelEvent::normalize):
  23803. * platform/mac/WheelEventMac.mm:
  23804. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  23805. 2006-09-19 Eric Seidel <eric@webkit.org>
  23806. Reviewed by hyatt.
  23807. Split KCanvasResources.* into multiple files (and some other minor spacing changes).
  23808. No tests were harmed in the making of this patch.
  23809. * WebCore.xcodeproj/project.pbxproj:
  23810. * kcanvas/KCanvasClipper.cpp: Added.
  23811. (WebCore::operator<<):
  23812. * kcanvas/KCanvasClipper.h: Added.
  23813. * kcanvas/KCanvasFilters.h:
  23814. * kcanvas/KCanvasImage.h:
  23815. * kcanvas/KCanvasMarker.cpp: Added.
  23816. * kcanvas/KCanvasMarker.h: Added.
  23817. * kcanvas/KCanvasMasker.cpp: Added.
  23818. (WebCore::KCanvasMasker::KCanvasMasker):
  23819. (WebCore::KCanvasMasker::setMask):
  23820. (WebCore::KCanvasMasker::externalRepresentation):
  23821. (WebCore::getMaskerById):
  23822. * kcanvas/KCanvasMasker.h: Added.
  23823. * kcanvas/KCanvasResource.cpp: Added.
  23824. (WebCore::KCanvasResource::invalidate):
  23825. (WebCore::KCanvasResource::externalRepresentation):
  23826. (WebCore::getResourceById):
  23827. (WebCore::getPaintServerById):
  23828. * kcanvas/KCanvasResource.h: Added.
  23829. * kcanvas/KCanvasResources.cpp: Removed.
  23830. * kcanvas/KCanvasResources.h: Removed.
  23831. * kcanvas/RenderPath.cpp:
  23832. * kcanvas/RenderSVGContainer.cpp:
  23833. * kcanvas/RenderSVGImage.cpp:
  23834. * kcanvas/RenderSVGText.cpp:
  23835. * kcanvas/device/KRenderingPaintServer.h:
  23836. * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
  23837. * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
  23838. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  23839. * ksvg2/svg/SVGClipPathElement.h:
  23840. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  23841. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  23842. * ksvg2/svg/SVGFECompositeElement.cpp:
  23843. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  23844. * ksvg2/svg/SVGFELightElement.cpp:
  23845. * ksvg2/svg/SVGFEOffsetElement.cpp:
  23846. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  23847. * ksvg2/svg/SVGFilterElement.cpp:
  23848. * ksvg2/svg/SVGLinearGradientElement.cpp:
  23849. * ksvg2/svg/SVGMarkerElement.h:
  23850. * ksvg2/svg/SVGMaskElement.h:
  23851. 2006-09-19 Brady Eidson <beidson@apple.com>
  23852. Reviewed by Sarge Decker
  23853. <rdar://problem/4739892> and <rdar://problem/4729797>
  23854. - WebCore::IconDatabase needs to have and respect an enabled() flag
  23855. - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
  23856. * bridge/mac/WebCoreIconDatabaseBridge.h:
  23857. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  23858. (-[WebCoreIconDatabaseBridge _setEnabled:]): Added
  23859. (-[WebCoreIconDatabaseBridge _isEnabled]): Added
  23860. * loader/icon/IconDatabase.cpp:
  23861. (WebCore::IconDatabase::IconDatabase):
  23862. (WebCore::IconDatabase::open): Don't open if disabled
  23863. (WebCore::IconDatabase::removeAllIcons): Ignore if disabled/closed
  23864. (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ignore if disabled/closed
  23865. (WebCore::IconDatabase::iconForPageURL): Default Icon if disabled/closed
  23866. (WebCore::IconDatabase::isIconExpiredForIconURL): Default return if disabled/closed
  23867. (WebCore::IconDatabase::iconURLForPageURL): Default return if disabled/closed
  23868. (WebCore::IconDatabase::retainIconForPageURL): Ignore if disabled/closed
  23869. (WebCore::IconDatabase::releaseIconForPageURL): Ignore if disabled/closed
  23870. (WebCore::IconDatabase::releaseIconURL):
  23871. (WebCore::IconDatabase::setIconDataForIconURL): Ignore if disabled/closed
  23872. (WebCore::IconDatabase::setIconURLForPageURL): Ignore if disabled/closed
  23873. (WebCore::IconDatabase::hasEntryForIconURL): Default return if disabled/closed
  23874. (WebCore::IconDatabase::setEnabled): Added
  23875. * loader/icon/IconDatabase.h:
  23876. (WebCore::IconDatabase::enabled): Added
  23877. * page/Frame.cpp:
  23878. (WebCore::Frame::endIfNotLoading): do an IconDatabase::enabled() check before bothering to load the icon
  23879. * platform/mac/ResourceLoaderMac.mm: Removed extraneous #include
  23880. 2006-09-20 David Hyatt <hyatt@apple.com>
  23881. Massage mouse wheel handling so that it is more cross-platform. Make
  23882. all the work happen in handleWheelEvent on the FrameView.
  23883. Reviewed by bradee-oh
  23884. * bridge/mac/FrameMac.mm:
  23885. (WebCore::FrameMac::wheelEvent):
  23886. * page/FrameView.cpp:
  23887. (WebCore::FrameView::handleWheelEvent):
  23888. * platform/PlatformWheelEvent.h:
  23889. (WebCore::PlatformWheelEvent::platformDelta):
  23890. (WebCore::PlatformWheelEvent::delta):
  23891. * platform/mac/WheelEventMac.mm:
  23892. (WebCore::platformDeltaForEvent):
  23893. (WebCore::PlatformWheelEvent::PlatformWheelEvent):
  23894. * rendering/RenderLayer.cpp:
  23895. (WebCore::RenderLayer::scroll):
  23896. * rendering/RenderObject.cpp:
  23897. (WebCore::RenderObject::scroll):
  23898. 2006-09-19 Eric Seidel <eric@webkit.org>
  23899. Reviewed by adele.
  23900. Improve test output for filters with bounding-box relative sizes.
  23901. http://bugs.webkit.org/show_bug.cgi?id=8585
  23902. Many test results updated.
  23903. * kcanvas/KCanvasFilters.cpp:
  23904. (WebCore::KCanvasFilter::externalRepresentation):
  23905. 2006-09-19 Eric Seidel <eric@webkit.org>
  23906. Reviewed by adele.
  23907. Markers should clip to their viewport.
  23908. http://bugs.webkit.org/show_bug.cgi?id=5967
  23909. Test: svg/custom/marker-overflow-clip.svg
  23910. * kcanvas/KCanvasResources.cpp:
  23911. (WebCore::KCanvasMarker::KCanvasMarker):
  23912. (WebCore::KCanvasMarker::setMarker):
  23913. (WebCore::KCanvasMarker::draw):
  23914. * kcanvas/KCanvasResources.h:
  23915. (WebCore::KCanvasMasker::mask):
  23916. * ksvg2/svg/SVGMarkerElement.cpp:
  23917. (WebCore::SVGMarkerElement::SVGMarkerElement):
  23918. (WebCore::SVGMarkerElement::parseMappedAttribute):
  23919. (WebCore::SVGMarkerElement::canvasResource):
  23920. (WebCore::SVGMarkerElement::createRenderer):
  23921. 2006-09-19 Justin Garcia <justin.garcia@apple.com>
  23922. Reviewed by eseidel
  23923. Backing out my recent change.
  23924. * css/cssstyleselector.cpp:
  23925. (WebCore::CSSStyleSelector::adjustRenderStyle):
  23926. 2006-09-19 Brady Eidson <beidson@apple.com>
  23927. Reviewed by Kevin McCullough
  23928. http://bugs.webkit.org/show_bug.cgi?id=10940
  23929. Opening a PDF in a new tab/window creates a documentless-frame
  23930. and we deref the document without checking its validity
  23931. * page/Frame.cpp:
  23932. (WebCore::Frame::iconURL):
  23933. 2006-09-19 Justin Garcia <justin.garcia@apple.com>
  23934. Reviewed by harrison
  23935. <rdar://problem/4735272>
  23936. Can not click into link in programmatically editable content
  23937. * css/cssstyleselector.cpp:
  23938. (WebCore::CSSStyleSelector::adjustRenderStyle): We stopped using
  23939. userModify to implement document wide editability.
  23940. 2006-09-19 Darin Fisher <darin@chromium.org>
  23941. Reviewed by Darin and landed by Brady
  23942. Fixes http://bugs.webkit.org/show_bug.cgi?id=10939
  23943. Build broken when SVG is not enabled.
  23944. * dom/XMLTokenizer.cpp:
  23945. (WebCore::XMLTokenizer::startElementNs):
  23946. 2006-09-19 Justin Garcia <justin.garcia@apple.com>
  23947. Reviewed by harrison
  23948. <rdar://problem/4727383> REGRESSION: Pasting plain text with tabs into Blot converts the tabs to single spaces
  23949. Pasting plain text results in a match style paste, and the insertion
  23950. position is whitespace normal, which clobbers the whitespace:pre on
  23951. tab spans. Skip changes to the whitespace mode when computing a style
  23952. change for tab spans or the text nodes inside tab spans.
  23953. * editing/ApplyStyleCommand.cpp:
  23954. (WebCore::StyleChange::init): Don't change the whitespace mode inside
  23955. tab spans.
  23956. 2006-09-19 David Hyatt <hyatt@apple.com>
  23957. Fix for bug 5298, shape=default not supported for image maps. Implement
  23958. support for it.
  23959. Reviewed by timo
  23960. * html/HTMLAreaElement.cpp:
  23961. (WebCore::HTMLAreaElement::getRegion):
  23962. * html/HTMLMapElement.cpp:
  23963. (WebCore::HTMLMapElement::mapMouseEvent):
  23964. 2006-09-19 Adam Roben <aroben@apple.com>
  23965. Reviewed by Adele.
  23966. Fixes http://bugs.webkit.org/show_bug.cgi?id=10824
  23967. "no file selected" placeholder text missing from file upload control
  23968. * WebCore.xcodeproj/project.pbxproj:
  23969. * rendering/RenderFileUploadControl.cpp: Remove class
  23970. RenderFileUploadInnerFileBox, rename defaultFilenameNumChars to
  23971. defaultWidthNumChars
  23972. (WebCore::RenderFileUploadControl::RenderFileUploadControl): Call
  23973. RenderBlock constructor instead of RenderFlexibleBox,
  23974. (WebCore::RenderFileUploadControl::setStyle): Remove references to
  23975. m_fileBox.
  23976. (WebCore::RenderFileUploadControl::valueChanged): Call repaint()
  23977. instead of updateIconAndFileName() (which has been removed)
  23978. (WebCore::RenderFileUploadControl::updateFromElement): Remove
  23979. references to m_fileBox, don't call updateIconAndFilename()
  23980. (WebCore::RenderFileUploadControl::maxFilenameWidth): Calculate width
  23981. without using m_fileBox
  23982. (WebCore::RenderFileUploadControl::createButtonStyle): Remove
  23983. now-unnecessary display:box rule.
  23984. (WebCore::RenderFileUploadControl::paintObject): Remove redundant call
  23985. to paintingDisabled() now that Icon::paint() does it, and add code to
  23986. paint the filename directly.
  23987. (WebCore::RenderFileUploadControl::calcMinMaxWidth): Move this method
  23988. out of RenderFileUploadInnerFileBox and into RenderFileUploadControl
  23989. * rendering/RenderFileUploadControl.h: Make RenderFileUploadControl a
  23990. subclass of RenderBlock instead of RenderFlexibleBox, remove
  23991. updateIconAndFilename() method, remove m_fileBox instance variable.
  23992. 2006-09-19 Eric Seidel <eric@webkit.org>
  23993. Reviewed by hyatt.
  23994. Exceptions thrown from <script> tags in XHTML/SVG docs show the wrong line numbers
  23995. http://bugs.webkit.org/show_bug.cgi?id=10846
  23996. No automated test case possible until http://bugs.webkit.org/show_bug.cgi?id=10905 is resolved.
  23997. * dom/XMLTokenizer.cpp:
  23998. (WebCore::XMLTokenizer::XMLTokenizer):
  23999. (WebCore::XMLTokenizer::startElementNs):
  24000. (WebCore::XMLTokenizer::endElementNs):
  24001. 2006-09-19 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  24002. Reviewed by eseidel. Landed by eseidel.
  24003. Build fix only, no tests affected.
  24004. * platform/gdk/FontPlatformDataGdk.cpp:
  24005. (WebCore::FontPlatformData::FontPlatformData):
  24006. (WebCore::FontPlatformData::~FontPlatformData):
  24007. * platform/gdk/FrameGdk.h:
  24008. * platform/gdk/TemporaryLinkStubs.cpp:
  24009. (FrameGdk::isLoadTypeReload):
  24010. (FrameGdk::originalRequestURL):
  24011. (IconDatabase::setIconURLForPageURL):
  24012. 2006-09-19 David Hyatt <hyatt@apple.com>
  24013. Refine the fix for 9805 to really get all the complex cases right.
  24014. Reviewed by Eric
  24015. * rendering/RenderBlock.cpp:
  24016. (WebCore::RenderBlock::clearFloatsIfNeeded):
  24017. (WebCore::RenderBlock::handleBottomOfBlock):
  24018. 2006-09-18 David Hyatt <hyatt@apple.com>
  24019. Fix for 9805, <hr> not positioned properly following a previous empty sibling
  24020. that had clear:both set on it. Update self-collapsing block clearance
  24021. behavior to match what is specified in the latest draft of CSS2.1.
  24022. Reviewed by Eric
  24023. Added fast/block/margin-collapse/empty-clear-blocks.html
  24024. * rendering/RenderBlock.cpp:
  24025. (WebCore::RenderBlock::clearFloatsIfNeeded):
  24026. (WebCore::RenderBlock::handleBottomOfBlock):
  24027. 2006-09-18 Darin Fisher <darin@chromium.org>
  24028. Reviewed by Brady, landed by Brady
  24029. Send receivedResponse callback to ResourceLoaderClient when loading
  24030. file URLs.
  24031. See http://bugs.webkit.org/show_bug.cgi?id=10845
  24032. * platform/win/ResourceLoaderWin.cpp:
  24033. (WebCore::ResourceLoader::fileLoadTimer):
  24034. 2006-09-18 Brady Eidson <beidson@apple.com>
  24035. Reviewed by Anders
  24036. <rdar://problem/3028061> - WebKit never updates favicon
  24037. The WebKit enforced expiration date for icons has worked for some time, but the
  24038. move to the new Icon Loader broke the "always get the icon if the user refreshes the page"
  24039. functionality. This patch fixes that up, along with some other architectural improvements,
  24040. the main one being that WebCore::Document now contains an iconURL for the Frame to query if needed.
  24041. * bridge/mac/FrameMac.h: Added isLoadTypeReload()
  24042. * bridge/mac/FrameMac.mm:
  24043. (WebCore::FrameMac::isLoadTypeReload): Implementation, calls into the bridge
  24044. * bridge/mac/WebCoreFrameBridge.h: Added isLoadTypeReload:
  24045. * bridge/win/FrameWin.h: Added isLoadTypeReload() for temporary link stub
  24046. * dom/Document.h: Added m_iconURL
  24047. (WebCore::Document::iconURL): Added
  24048. (WebCore::Document::setIconURL): Ditto
  24049. * html/HTMLLinkElement.cpp:
  24050. (WebCore::HTMLLinkElement::process): Sets the iconURL in the Document instead of the Frame
  24051. * page/Frame.cpp:
  24052. (WebCore::Frame::iconURL): Calculates the iconURL based on the document, then the default favicon.ico url
  24053. (WebCore::Frame::endIfNotLoading): Checks for the load type - always loads icon on Reload
  24054. * page/Frame.h: Nuked setIconURL(), added isLoadTypeReload()
  24055. * page/FramePrivate.h: Nuked IconURL
  24056. * platform/win/TemporaryLinkStubs.cpp:
  24057. (FrameWin::isLoadTypeReload):
  24058. 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
  24059. Reviewed by Tim H.
  24060. - Re-add private method [DOMRGBColor _color] to DOMPrivate.h as
  24061. it is it turns out that AppKit uses it.
  24062. * bindings/objc/DOMPrivate.h:
  24063. * bindings/objc/DOMRGBColor.mm:
  24064. (-[DOMRGBColor _color]):
  24065. 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
  24066. Reviewed by Tim H.
  24067. Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
  24068. Yet Another Objective-C Bindings Patch
  24069. - Whitespace cleanup for IDLParser.pm
  24070. - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
  24071. and DOMAbstractView into their own files.
  24072. - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
  24073. it is not used and a public method is available now.
  24074. - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
  24075. as it not used.
  24076. - Auto-generate method isContentEditable for DOMNode.
  24077. - General cleanup of bindings code including removing unneeded #imports
  24078. and whitespace cleanup
  24079. * WebCore.xcodeproj/project.pbxproj:
  24080. * bindings/objc/DOM.mm:
  24081. (addElementClass):
  24082. (elementClass):
  24083. (-[DOMNode _initWithNode:WebCore::]):
  24084. (+[DOMNode _nodeWith:WebCore::]):
  24085. (-[DOMNode WebCore::]):
  24086. (-[DOMNode KJS::Bindings::]):
  24087. (-[DOMNode addEventListener:::]):
  24088. (-[DOMNode removeEventListener:::]):
  24089. (-[DOMNode dispatchEvent:]):
  24090. (-[DOMElement image]):
  24091. (-[DOMElement _font]):
  24092. (-[DOMElement _imageTIFFRepresentation]):
  24093. (-[DOMElement _getURLAttribute:]):
  24094. (-[DOMElement _NPObject]):
  24095. (-[DOMElement isFocused]):
  24096. (-[DOMRange dealloc]):
  24097. (-[DOMRange finalize]):
  24098. (-[DOMRange description]):
  24099. (-[DOMRange startContainer]):
  24100. (-[DOMRange startOffset]):
  24101. (-[DOMRange endContainer]):
  24102. (-[DOMRange endOffset]):
  24103. (-[DOMRange collapsed]):
  24104. (-[DOMRange commonAncestorContainer]):
  24105. (-[DOMRange setStart::]):
  24106. (-[DOMRange setEnd::]):
  24107. (-[DOMRange setStartBefore:]):
  24108. (-[DOMRange setStartAfter:]):
  24109. (-[DOMRange setEndBefore:]):
  24110. (-[DOMRange setEndAfter:]):
  24111. (-[DOMRange collapse:]):
  24112. (-[DOMRange selectNode:]):
  24113. (-[DOMRange selectNodeContents:]):
  24114. (-[DOMRange compareBoundaryPoints::]):
  24115. (-[DOMRange deleteContents]):
  24116. (-[DOMRange extractContents]):
  24117. (-[DOMRange cloneContents]):
  24118. (-[DOMRange insertNode:]):
  24119. (-[DOMRange surroundContents:]):
  24120. (-[DOMRange cloneRange]):
  24121. (-[DOMRange toString]):
  24122. (-[DOMRange detach]):
  24123. (-[DOMRange _initWithRange:WebCore::]):
  24124. (+[DOMRange _rangeWith:WebCore::]):
  24125. (-[DOMRange WebCore::]):
  24126. (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
  24127. (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
  24128. (-[DOMNodeFilter WebCore::]):
  24129. (-[DOMNodeFilter dealloc]):
  24130. (-[DOMNodeFilter finalize]):
  24131. (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
  24132. (-[DOMNodeIterator WebCore::]):
  24133. (+[DOMNodeIterator _nodeIteratorWith:WebCore::filter:]):
  24134. (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
  24135. (-[DOMTreeWalker WebCore::]):
  24136. (+[DOMTreeWalker _treeWalkerWith:WebCore::filter:]):
  24137. (ObjCNodeFilterCondition::acceptNode):
  24138. (-[DOMDocument createNodeIterator::::]):
  24139. (-[DOMDocument createTreeWalker::::]):
  24140. (ObjCEventListener::find):
  24141. (ObjCEventListener::create):
  24142. (ObjCEventListener::handleEvent):
  24143. * bindings/objc/DOMAbstractView.h: Added.
  24144. * bindings/objc/DOMAbstractView.mm: Added.
  24145. (-[DOMAbstractView document]):
  24146. (-[DOMAbstractView WebCore::]):
  24147. (-[DOMAbstractView _initWithAbstractView:WebCore::]):
  24148. (+[DOMAbstractView _abstractViewWith:WebCore::]):
  24149. * bindings/objc/DOMCSS.mm:
  24150. (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
  24151. (+[DOMStyleSheet _styleSheetWith:WebCore::]):
  24152. (+[DOMCSSStyleSheet _CSSStyleSheetWith:WebCore::]):
  24153. (-[DOMCSSRule _initWithRule:WebCore::]):
  24154. (+[DOMCSSRule _CSSRuleWith:WebCore::]):
  24155. (-[DOMCSSValue _initWithValue:WebCore::]):
  24156. (+[DOMCSSValue _CSSValueWith:WebCore::]):
  24157. (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:WebCore::]):
  24158. (-[DOMDocument getComputedStyle::]):
  24159. (-[DOMDocument getMatchedCSSRules::]):
  24160. * bindings/objc/DOMCore.h:
  24161. * bindings/objc/DOMEventException.h: Added.
  24162. * bindings/objc/DOMEvents.h:
  24163. * bindings/objc/DOMEvents.mm:
  24164. * bindings/objc/DOMException.h: Added.
  24165. * bindings/objc/DOMHTML.mm:
  24166. (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
  24167. (viewForElement):
  24168. (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
  24169. (-[DOMHTMLInputElement _selectedRange]):
  24170. (-[DOMHTMLInputElement _setAutofilled:]):
  24171. * bindings/objc/DOMInternal.h:
  24172. * bindings/objc/DOMObject.h:
  24173. * bindings/objc/DOMPrivate.h:
  24174. * bindings/objc/DOMRange.h:
  24175. * bindings/objc/DOMRangeException.h: Added.
  24176. * bindings/objc/DOMViews.h:
  24177. * bindings/objc/DOMViews.mm: Removed.
  24178. * bindings/objc/DOMXPath.h:
  24179. * bindings/objc/DOMXPathException.h: Added.
  24180. * bindings/scripts/IDLParser.pm:
  24181. * dom/Node.idl:
  24182. 2006-09-18 Brady Eidson <beidson@apple.com>
  24183. Windows build fix
  24184. * platform/win/TemporaryLinkStubs.cpp:
  24185. (IconDatabase::setIconURLForPageURL):
  24186. 2006-09-18 David Hyatt <hyatt@apple.com>
  24187. Fix for bug 3969, hr width doesn't update when it clears a float. This
  24188. was also a problem with tables and overflow sections.
  24189. Reviewed by Eric
  24190. Added fast/block/float/width-update-after-clear.html
  24191. * rendering/RenderBlock.cpp:
  24192. (WebCore::RenderBlock::collapseMargins):
  24193. (WebCore::RenderBlock::clearFloatsIfNeeded):
  24194. 2006-09-18 Brady Eidson <beidson@apple.com>
  24195. Reviewed by John
  24196. http://bugs.webkit.org/show_bug.cgi?id=10907
  24197. REGRESSION: New Icon Loaders don't handle certain non-server-root URLs correctly
  24198. * bridge/mac/FrameMac.h: Changed originalRequestURL() to virtual
  24199. * bridge/win/FrameWin.h: Added originalRequestURL()
  24200. * loader/icon/IconLoader.cpp:
  24201. (IconLoader::receivedAllData): Moved the "pageURL to iconURL mapping logic" to Frame::commitIconURLToIconDatabase()
  24202. * page/Frame.cpp:
  24203. (WebCore::Frame::iconURL): Construct the icon URL from *only* the protocol and host of the frame's url.
  24204. (WebCore::Frame::endIfNotLoading): Call commitIconURLToIconDatabase() if we're not kicking off an icon load
  24205. (WebCore::Frame::commitIconURLToIconDatabase): Map the completed doc's pageURL to the iconURL
  24206. * page/Frame.h: Added pure virtual originalRequestURL()
  24207. * platform/win/TemporaryLinkStubs.cpp:
  24208. (FrameWin::originalRequestURL): Added
  24209. 2006-09-18 Rob Buis <buis@kde.org>
  24210. Reviewed by Maciej.
  24211. http://bugs.webkit.org/show_bug.cgi?id=10807
  24212. REGRESSION (r16259): Repro crash on manual-tests/svg-repaint-image.svg
  24213. Make sure the paint method is not exited without popping
  24214. context and transparency layer.
  24215. WARNING: NO TEST CASES ADDED OR CHANGED
  24216. * kcanvas/RenderSVGImage.cpp:
  24217. (WebCore::RenderSVGImage::paint):
  24218. 2006-09-18 Graham Dennis <graham.dennis@gmail.com>
  24219. Reviewed by Eric.
  24220. - fix for http://bugs.webkit.org/show_bug.cgi?id=10896
  24221. REGRESSION: WebKit can't be built with SVG disabled
  24222. * bindings/scripts/CodeGeneratorObjC.pm:
  24223. For each file generated add a #ifdef <something>_SUPPORT / #endif
  24224. pair if the idl file has a Conditional extended attribute
  24225. 2006-09-17 Eric Seidel <eric@webkit.org>
  24226. Reviewed by ap.
  24227. REGRESSION (r16245): double-clicking on javascript exceptions fails to show source
  24228. http://bugs.webkit.org/show_bug.cgi?id=10813
  24229. * bridge/mac/WebCoreFrameBridge.mm:
  24230. (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
  24231. 2006-09-17 Alexey Proskuryakov <ap@nypop.com>
  24232. Reviewed by Hyatt.
  24233. http://bugs.webkit.org/show_bug.cgi?id=10779
  24234. REGRESSION: Animated GIF ignores frame intervals and loops infinitely
  24235. No test possible.
  24236. * platform/Image.cpp:
  24237. (WebCore::Image::shouldAnimate): Don't check that there is more than one frame,
  24238. maybe the rest just hasn't been loaded yet.
  24239. (WebCore::Image::startAnimation): Move the frame count check here - there is no need
  24240. to start animating before we get at least two frames.
  24241. 2006-09-17 Brady Eidson <beidson@apple.com>
  24242. Reviewed by Sarge
  24243. IconLoader now gracefully handles the condition where there's no document in the frame
  24244. (ie. PDFs)
  24245. * loader/icon/IconLoader.cpp:
  24246. (IconLoader::startLoading):
  24247. 2006-09-17 David Hyatt <hyatt@apple.com>
  24248. Fix for bug 10899, rework how CSS keywords work to be smarter about
  24249. using the correct size when generic families change (e.g., monospace to
  24250. serif and vice versa).
  24251. Reviewed by aroben
  24252. Added fast/text/basic/generic-family-changes.html
  24253. * css/cssstyleselector.cpp:
  24254. (WebCore::CSSStyleSelector::applyProperty):
  24255. (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
  24256. (WebCore::CSSStyleSelector::fontSizeForKeyword):
  24257. * css/cssstyleselector.h:
  24258. * dom/Document.cpp:
  24259. (WebCore::Document::recalcStyle):
  24260. * platform/FontDescription.h:
  24261. (WebCore::FontDescription::FontDescription):
  24262. (WebCore::FontDescription::keywordSize):
  24263. (WebCore::FontDescription::setKeywordSize):
  24264. (WebCore::FontDescription::operator==):
  24265. 2006-09-17 Alexey Proskuryakov <ap@nypop.com>
  24266. Reviewed by Brady.
  24267. http://bugs.webkit.org/show_bug.cgi?id=10852
  24268. REGRESSION: Reproducible crash in XMLHttpRequest::abort()
  24269. Test: http/tests/xmlhttprequest/xhr-onunload.html
  24270. * xml/xmlhttprequest.cpp:
  24271. (WebCore::XMLHttpRequest::send): Check the return value of ResourceLoader::start().
  24272. * loader/icon/IconLoader.cpp:
  24273. (IconLoader::startLoading): Fix a similar latent bug here.
  24274. 2006-09-17 Adam Roben <aroben@apple.com>
  24275. Build fix.
  24276. * loader/icon/IconDatabase.cpp:
  24277. 2006-09-17 Anders Carlsson <acarlsson@apple.com>
  24278. Reviewed by Brady.
  24279. Add simplifyWhiteSpace and stripWhiteSpace to the String class.
  24280. Change the XSLT Parameter Map to use Strings instead of StringImpls.
  24281. General cleanup.
  24282. * bindings/js/JSXSLTProcessor.cpp:
  24283. (KJS::XSLTProcessorProtoFunc::callAsFunction):
  24284. * bindings/js/kjs_events.cpp:
  24285. (KJS::JSAbstractEventListener::handleEvent):
  24286. * bindings/js/kjs_window.cpp:
  24287. (KJS::ScheduledAction::execute):
  24288. * css/MediaList.cpp:
  24289. (WebCore::MediaList::setMediaText):
  24290. * dom/Document.cpp:
  24291. (WebCore::Document::processHttpEquiv):
  24292. * editing/ApplyStyleCommand.cpp:
  24293. (WebCore::StyleChange::init):
  24294. * html/HTMLDocument.cpp:
  24295. (WebCore::parseDocTypeDeclaration):
  24296. * html/HTMLLinkElement.cpp:
  24297. (WebCore::HTMLLinkElement::parseMappedAttribute):
  24298. * html/HTMLObjectElement.cpp:
  24299. (WebCore::HTMLObjectElement::HTMLObjectElement):
  24300. (WebCore::HTMLObjectElement::parseMappedAttribute):
  24301. (WebCore::HTMLObjectElement::attach):
  24302. (WebCore::HTMLObjectElement::setComplete):
  24303. (WebCore::HTMLObjectElement::detach):
  24304. (WebCore::HTMLObjectElement::recalcStyle):
  24305. (WebCore::HTMLObjectElement::childrenChanged):
  24306. (WebCore::HTMLObjectElement::isImageType):
  24307. * html/HTMLObjectElement.h:
  24308. * html/HTMLOptionElement.cpp:
  24309. (WebCore::HTMLOptionElement::value):
  24310. * html/HTMLSelectElement.cpp:
  24311. (WebCore::HTMLSelectElement::appendFormData):
  24312. * html/HTMLTokenizer.cpp:
  24313. (WebCore::HTMLTokenizer::parseTag):
  24314. * ksvg2/svg/SVGColor.cpp:
  24315. (WebCore::SVGColor::setRGBColor):
  24316. * ksvg2/svg/SVGDescElement.cpp:
  24317. (WebCore::SVGDescElement::description):
  24318. * platform/PlatformString.h:
  24319. * platform/String.cpp:
  24320. (WebCore::String::stripWhiteSpace):
  24321. (WebCore::String::simplifyWhiteSpace):
  24322. * platform/StringImpl.cpp:
  24323. (WebCore::isSpace):
  24324. (WebCore::parseLength):
  24325. (WebCore::StringImpl::stripWhiteSpace):
  24326. (WebCore::StringImpl::simplifyWhiteSpace):
  24327. (WebCore::StringImpl::toInt):
  24328. * platform/StringImpl.h:
  24329. * platform/mac/ClipboardMac.mm:
  24330. (WebCore::cocoaTypeFromMIMEType):
  24331. * rendering/RenderPartObject.cpp:
  24332. (WebCore::RenderPartObject::updateWidget):
  24333. * xml/XPathFunctions.cpp:
  24334. (WebCore::XPath::FunNormalizeSpace::doEvaluate):
  24335. * xml/XPathGrammar.y:
  24336. * xml/XPathStep.cpp:
  24337. (WebCore::XPath::Step::nodeTestMatches):
  24338. * xml/XSLStyleSheet.cpp:
  24339. (WebCore::XSLStyleSheet::loadChildSheets):
  24340. (WebCore::XSLStyleSheet::locateStylesheetSubResource):
  24341. * xml/XSLTProcessor.cpp:
  24342. (WebCore::xsltParamArrayFromParameterMap):
  24343. (WebCore::XSLTProcessor::setParameter):
  24344. (WebCore::XSLTProcessor::getParameter):
  24345. (WebCore::XSLTProcessor::removeParameter):
  24346. * xml/XSLTProcessor.h:
  24347. * xml/xmlhttprequest.cpp:
  24348. (WebCore::XMLHttpRequest::getStatusText):
  24349. 2006-09-17 David Hyatt <hyatt@apple.com>
  24350. Fix for bugzilla bugs 10895 and 6336, fieldsets misbehaving when floats
  24351. are declared right before the fieldsets. It turns out fieldsets in other
  24352. browsers avoid floats (like overflow:auto/hidden/scroll sections do), so
  24353. adding that behavior to fieldset fixes the bug.
  24354. Made avoidsFloats virtual and did some refactoring to make tables, flexboxes
  24355. and fieldsets all subclass.
  24356. Reviewed by anders
  24357. Added fast/forms/float-before-fieldset.html
  24358. * rendering/RenderFieldset.h:
  24359. (WebCore::RenderFieldset::avoidsFloats):
  24360. * rendering/RenderFlexibleBox.h:
  24361. (WebCore::RenderFlexibleBox::avoidsFloats):
  24362. * rendering/RenderObject.cpp:
  24363. (WebCore::RenderObject::avoidsFloats):
  24364. * rendering/RenderObject.h:
  24365. * rendering/RenderTable.h:
  24366. (WebCore::RenderTable::avoidsFloats):
  24367. 2006-09-17 David Hyatt <hyatt@apple.com>
  24368. Fix for bugzilla bug 3240, implement support for the HTML4 "frame" and
  24369. "rules" attributes on tables.
  24370. Reviewed by bradee-oh
  24371. Well-covered by existing layout tests.
  24372. * html/HTMLTableCellElement.cpp:
  24373. (WebCore::HTMLTableCellElement::additionalAttributeStyleDecl):
  24374. * html/HTMLTableColElement.cpp:
  24375. (WebCore::HTMLTableColElement::additionalAttributeStyleDecl):
  24376. * html/HTMLTableColElement.h:
  24377. * html/HTMLTableElement.cpp:
  24378. (WebCore::HTMLTableElement::HTMLTableElement):
  24379. (WebCore::HTMLTableElement::~HTMLTableElement):
  24380. (WebCore::HTMLTableElement::setCaption):
  24381. (WebCore::HTMLTableElement::setTHead):
  24382. (WebCore::HTMLTableElement::setTFoot):
  24383. (WebCore::HTMLTableElement::setTBody):
  24384. (WebCore::HTMLTableElement::createTHead):
  24385. (WebCore::HTMLTableElement::deleteTHead):
  24386. (WebCore::HTMLTableElement::createTFoot):
  24387. (WebCore::HTMLTableElement::deleteTFoot):
  24388. (WebCore::HTMLTableElement::createCaption):
  24389. (WebCore::HTMLTableElement::deleteCaption):
  24390. (WebCore::HTMLTableElement::insertRow):
  24391. (WebCore::HTMLTableElement::deleteRow):
  24392. (WebCore::HTMLTableElement::addChild):
  24393. (WebCore::HTMLTableElement::childrenChanged):
  24394. (WebCore::HTMLTableElement::mapToEntry):
  24395. (WebCore::HTMLTableElement::parseMappedAttribute):
  24396. (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
  24397. (WebCore::HTMLTableElement::getSharedCellDecl):
  24398. (WebCore::HTMLTableElement::getSharedGroupDecl):
  24399. (WebCore::HTMLTableElement::attach):
  24400. * html/HTMLTableElement.h:
  24401. (WebCore::HTMLTableElement::caption):
  24402. (WebCore::HTMLTableElement::tHead):
  24403. (WebCore::HTMLTableElement::tFoot):
  24404. (WebCore::HTMLTableElement::):
  24405. * html/HTMLTableRowElement.h:
  24406. * html/HTMLTableSectionElement.cpp:
  24407. (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecl):
  24408. * html/HTMLTableSectionElement.h:
  24409. 2006-09-17 David Hyatt <hyatt@apple.com>
  24410. Fix for bugzilla bug 4192, font size wrong for <tt> elements that
  24411. specify their own new font-family list. Make sure to always
  24412. reset the generic family along with the family list when mapping in
  24413. new font-family values.
  24414. Reviewed by bradee-oh
  24415. fast/text/basic/generic-family-reset.html
  24416. * css/cssstyleselector.cpp:
  24417. (WebCore::CSSStyleSelector::applyProperty):
  24418. 2006-09-16 Brady Eidson <beidson@apple.com>
  24419. Reviewed by Hyatt
  24420. Pruning code relating to WebKit's icon loader
  24421. * bridge/mac/WebCoreIconDatabaseBridge.h:
  24422. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  24423. * loader/icon/IconDatabase.h:
  24424. * page/Frame.cpp:
  24425. (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to
  24426. its new home
  24427. 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
  24428. Reviewed by Tim H.
  24429. Patch for http://bugs.webkit.org/show_bug.cgi?id=10885
  24430. Auto-generate DOMHTMLDocument for the Objective-C bindings
  24431. * DerivedSources.make:
  24432. * WebCore.xcodeproj/project.pbxproj:
  24433. * bindings/objc/DOMExtensions.h:
  24434. * bindings/objc/DOMHTML.mm:
  24435. (-[DOMHTMLDocument createDocumentFragmentWithText:]):
  24436. * bindings/objc/DOMHTMLDocument.h: Removed.
  24437. * bindings/objc/DOMHTMLDocument.mm: Removed.
  24438. * bindings/objc/PublicDOMInterfaces.h:
  24439. * bindings/scripts/CodeGeneratorObjC.pm:
  24440. * html/HTMLDocument.idl:
  24441. * platform/DeprecatedString.h:
  24442. (WebCore::DeprecatedString::operator NSString*):
  24443. 2006-09-16 Rob Buis <buis@kde.org>
  24444. Reviewed by Eric.
  24445. http://bugs.webkit.org/show_bug.cgi?id=10866
  24446. Code in kcanvas/ should not use Private
  24447. Remove Private classes and tweak coding style.
  24448. WARNING: NO TEST CASES ADDED OR CHANGED
  24449. * kcanvas/RenderPath.cpp:
  24450. (WebCore::RenderPath::RenderPath):
  24451. (WebCore::RenderPath::~RenderPath):
  24452. (WebCore::RenderPath::localTransform):
  24453. (WebCore::RenderPath::setLocalTransform):
  24454. (WebCore::RenderPath::fillContains):
  24455. (WebCore::RenderPath::relativeBBox):
  24456. (WebCore::RenderPath::setPath):
  24457. (WebCore::RenderPath::path):
  24458. (WebCore::RenderPath::layout):
  24459. * kcanvas/RenderPath.h:
  24460. * kcanvas/RenderSVGContainer.cpp:
  24461. (WebCore::RenderSVGContainer::RenderSVGContainer):
  24462. (WebCore::RenderSVGContainer::~RenderSVGContainer):
  24463. (WebCore::RenderSVGContainer::drawsContents):
  24464. (WebCore::RenderSVGContainer::setDrawsContents):
  24465. (WebCore::RenderSVGContainer::localTransform):
  24466. (WebCore::RenderSVGContainer::setLocalTransform):
  24467. (WebCore::RenderSVGContainer::layout):
  24468. (WebCore::RenderSVGContainer::paint):
  24469. (WebCore::RenderSVGContainer::setViewport):
  24470. (WebCore::RenderSVGContainer::viewport):
  24471. (WebCore::RenderSVGContainer::setViewBox):
  24472. (WebCore::RenderSVGContainer::viewBox):
  24473. (WebCore::RenderSVGContainer::setAlign):
  24474. (WebCore::RenderSVGContainer::align):
  24475. (WebCore::RenderSVGContainer::fillContains):
  24476. (WebCore::RenderSVGContainer::strokeContains):
  24477. (WebCore::RenderSVGContainer::setSlice):
  24478. (WebCore::RenderSVGContainer::slice):
  24479. * kcanvas/RenderSVGContainer.h:
  24480. * kcanvas/device/KRenderingFillPainter.cpp:
  24481. (WebCore::KRenderingFillPainter::KRenderingFillPainter):
  24482. (WebCore::KRenderingFillPainter::~KRenderingFillPainter):
  24483. (WebCore::KRenderingFillPainter::fillRule):
  24484. (WebCore::KRenderingFillPainter::setFillRule):
  24485. (WebCore::KRenderingFillPainter::opacity):
  24486. (WebCore::KRenderingFillPainter::setOpacity):
  24487. * kcanvas/device/KRenderingFillPainter.h:
  24488. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  24489. (WebCore::KRenderingPaintServerGradient::KRenderingPaintServerGradient):
  24490. (WebCore::KRenderingPaintServerGradient::~KRenderingPaintServerGradient):
  24491. (WebCore::KRenderingPaintServerGradient::gradientStops):
  24492. (WebCore::KRenderingPaintServerGradient::setGradientStops):
  24493. (WebCore::KRenderingPaintServerGradient::spreadMethod):
  24494. (WebCore::KRenderingPaintServerGradient::setGradientSpreadMethod):
  24495. (WebCore::KRenderingPaintServerGradient::boundingBoxMode):
  24496. (WebCore::KRenderingPaintServerGradient::setBoundingBoxMode):
  24497. (WebCore::KRenderingPaintServerGradient::gradientTransform):
  24498. (WebCore::KRenderingPaintServerGradient::setGradientTransform):
  24499. (WebCore::KRenderingPaintServerLinearGradient::KRenderingPaintServerLinearGradient):
  24500. (WebCore::KRenderingPaintServerLinearGradient::~KRenderingPaintServerLinearGradient):
  24501. (WebCore::KRenderingPaintServerLinearGradient::gradientStart):
  24502. (WebCore::KRenderingPaintServerLinearGradient::setGradientStart):
  24503. (WebCore::KRenderingPaintServerLinearGradient::gradientEnd):
  24504. (WebCore::KRenderingPaintServerLinearGradient::setGradientEnd):
  24505. (WebCore::KRenderingPaintServerRadialGradient::KRenderingPaintServerRadialGradient):
  24506. (WebCore::KRenderingPaintServerRadialGradient::~KRenderingPaintServerRadialGradient):
  24507. (WebCore::KRenderingPaintServerRadialGradient::gradientCenter):
  24508. (WebCore::KRenderingPaintServerRadialGradient::setGradientCenter):
  24509. (WebCore::KRenderingPaintServerRadialGradient::gradientFocal):
  24510. (WebCore::KRenderingPaintServerRadialGradient::setGradientFocal):
  24511. (WebCore::KRenderingPaintServerRadialGradient::gradientRadius):
  24512. (WebCore::KRenderingPaintServerRadialGradient::setGradientRadius):
  24513. (WebCore::KRenderingPaintServerGradient::listener):
  24514. (WebCore::KRenderingPaintServerGradient::setListener):
  24515. * kcanvas/device/KRenderingPaintServerGradient.h:
  24516. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  24517. (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
  24518. (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
  24519. (WebCore::KRenderingPaintServerPattern::setBbox):
  24520. (WebCore::KRenderingPaintServerPattern::bbox):
  24521. (WebCore::KRenderingPaintServerPattern::boundingBoxMode):
  24522. (WebCore::KRenderingPaintServerPattern::setBoundingBoxMode):
  24523. (WebCore::KRenderingPaintServerPattern::tile):
  24524. (WebCore::KRenderingPaintServerPattern::setTile):
  24525. (WebCore::KRenderingPaintServerPattern::patternTransform):
  24526. (WebCore::KRenderingPaintServerPattern::setPatternTransform):
  24527. (WebCore::KRenderingPaintServerPattern::listener):
  24528. (WebCore::KRenderingPaintServerPattern::setListener):
  24529. * kcanvas/device/KRenderingPaintServerPattern.h:
  24530. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  24531. (WebCore::KRenderingPaintServerSolid::KRenderingPaintServerSolid):
  24532. (WebCore::KRenderingPaintServerSolid::~KRenderingPaintServerSolid):
  24533. (WebCore::KRenderingPaintServerSolid::color):
  24534. (WebCore::KRenderingPaintServerSolid::setColor):
  24535. * kcanvas/device/KRenderingPaintServerSolid.h:
  24536. * kcanvas/device/KRenderingStrokePainter.cpp:
  24537. (WebCore::KRenderingStrokePainter::KRenderingStrokePainter):
  24538. (WebCore::KRenderingStrokePainter::~KRenderingStrokePainter):
  24539. (WebCore::KRenderingStrokePainter::strokeWidth):
  24540. (WebCore::KRenderingStrokePainter::setStrokeWidth):
  24541. (WebCore::KRenderingStrokePainter::strokeMiterLimit):
  24542. (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
  24543. (WebCore::KRenderingStrokePainter::strokeCapStyle):
  24544. (WebCore::KRenderingStrokePainter::setStrokeCapStyle):
  24545. (WebCore::KRenderingStrokePainter::strokeJoinStyle):
  24546. (WebCore::KRenderingStrokePainter::setStrokeJoinStyle):
  24547. (WebCore::KRenderingStrokePainter::dashOffset):
  24548. (WebCore::KRenderingStrokePainter::setDashOffset):
  24549. (WebCore::KRenderingStrokePainter::dashArray):
  24550. (WebCore::KRenderingStrokePainter::setDashArray):
  24551. (WebCore::KRenderingStrokePainter::opacity):
  24552. (WebCore::KRenderingStrokePainter::setOpacity):
  24553. (WebCore::KRenderingStrokePainter::dirty):
  24554. (WebCore::KRenderingStrokePainter::setDirty):
  24555. * kcanvas/device/KRenderingStrokePainter.h:
  24556. 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
  24557. Reviewed by Anders.
  24558. http://bugs.webkit.org/show_bug.cgi?id=10887
  24559. Fix build error
  24560. * bindings/objc/DOMPrivate.h: Remove reference to DOMEventPrivate.h.
  24561. 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
  24562. Reviewed by Anders.
  24563. Fix for http://bugs.webkit.org/show_bug.cgi?id=10886
  24564. REGRESSION (r16387): Reproducible crash when mousing over HTML document
  24565. - Special case method [DOMNode ownerDocument] to call document() instead
  24566. or ownerDocument() to return to the old behavior.
  24567. * WebCore.xcodeproj/project.pbxproj:
  24568. * bindings/scripts/CodeGeneratorObjC.pm:
  24569. 2006-09-15 Brady Eidson <beidson@apple.com>
  24570. Reviewed by Tim Hatcher
  24571. <rdar://problem/4730811> - New IconDatabase needs to attempt to create its path.
  24572. Otherwise new installs and new user accounts won't have any icons because the icon.db cannot be created
  24573. * loader/icon/IconDatabase.cpp: Removed a now obsolete FIXME
  24574. (WebCore::makeAllDirectories): Added - candidate to be in a header for "platform neutral file utilities"
  24575. (WebCore::IconDatabase::open): Make sure the directory exists
  24576. 2006-09-15 Timothy Hatcher <timothy@apple.com>
  24577. Reviewed by Brady.
  24578. Make new style ObjC methods public API.
  24579. * WebCore.xcodeproj/project.pbxproj:
  24580. * bindings/objc/DOMPrivate.h:
  24581. * bindings/objc/PublicDOMInterfaces.h:
  24582. 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
  24583. Reviewed by Tim H.
  24584. Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
  24585. Auto-generate DOMNode for the Objective-C bindings
  24586. * DerivedSources.make:
  24587. * WebCore.xcodeproj/project.pbxproj:
  24588. * bindings/objc/DOM.mm:
  24589. (-[DOMNode boundingBox]):
  24590. (-[DOMNode lineBoxRects]):
  24591. * bindings/objc/DOMEvents.h:
  24592. * bindings/objc/DOMExtensions.h:
  24593. * bindings/objc/DOMNode.h: Removed.
  24594. * bindings/objc/DOMNode.mm: Removed.
  24595. * bindings/objc/PublicDOMInterfaces.h:
  24596. * bindings/scripts/CodeGeneratorObjC.pm:
  24597. * dom/Node.idl:
  24598. 2006-09-15 Timothy Hatcher <timothy@apple.com>
  24599. Reviewed by Justin.
  24600. Removed alter selection logic from WebCoreFrameBridge and moved to SelectionController.
  24601. * bridge/mac/WebCoreFrameBridge.h:
  24602. * bridge/mac/WebCoreFrameBridge.mm:
  24603. (-[WebCoreFrameBridge centerSelectionInVisibleArea]):
  24604. (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
  24605. (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
  24606. (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
  24607. (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
  24608. (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
  24609. (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
  24610. (-[WebCoreFrameBridge increaseSelectionListLevel]):
  24611. (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
  24612. (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
  24613. (-[WebCoreFrameBridge decreaseSelectionListLevel]):
  24614. (-[WebCoreFrameBridge insertLineBreak]):
  24615. (-[WebCoreFrameBridge insertParagraphSeparator]):
  24616. (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
  24617. (-[WebCoreFrameBridge insertText:selectInsertedText:]):
  24618. (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
  24619. (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
  24620. (createMouseEventFromDraggingInfo):
  24621. * editing/SelectionController.cpp:
  24622. (WebCore::SelectionController::moveTo):
  24623. (WebCore::SelectionController::setSelection):
  24624. (WebCore::SelectionController::modify):
  24625. (WebCore::SelectionController::setBase):
  24626. (WebCore::SelectionController::setExtent):
  24627. * editing/SelectionController.h:
  24628. * page/Frame.cpp:
  24629. (WebCore::Frame::revealSelection):
  24630. (WebCore::Frame::revealCaret):
  24631. * page/Frame.h:
  24632. 2006-09-15 Brady Eidson <beidson@apple.com>
  24633. Reviewed by Anders
  24634. Added the ability to get a mutable char* from a CString, which will copy the internal
  24635. buffer if the ref count is greater than 1 so your mutable char* won't affect any other
  24636. referrer of that buffer.
  24637. * platform/CString.cpp:
  24638. (WebCore::CString::mutableData):
  24639. (WebCore::CString::copyBufferIfNeeded):
  24640. * platform/CString.h:
  24641. 2006-09-15 Justin Garcia <justin.garcia@apple.com>
  24642. Reviewed by harrison
  24643. <rdar://problem/4674869>
  24644. REGRESSION: selecting text to write over results in cursor jumping to middle of next line
  24645. * editing/SelectionController.cpp:
  24646. (WebCore::SelectionController::modify): Added lineBoundary to test fix.
  24647. * editing/visible_units.cpp:
  24648. (WebCore::endOfLine): If the last box on the line is a lineBreak, return the
  24649. position before it, not after it.
  24650. 2006-09-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  24651. Reviewed by Adam.
  24652. http://bugs.webkit.org/show_bug.cgi?id=10864
  24653. Bug 10864: Linux\GDK build fixes
  24654. * Projects/gdk/webcore-gdk.bkl:
  24655. * WebCoreSources.bkl:
  24656. * platform/gdk/FontCacheGdk.cpp:
  24657. * platform/gdk/FontDataGdk.cpp:
  24658. (WebCore::FontData::platformInit):
  24659. * platform/gdk/FontGdk.cpp:
  24660. (WebCore::Font::drawGlyphs):
  24661. * platform/gdk/FrameGdk.cpp:
  24662. (WebCore::FrameGdk::handleGdkEvent):
  24663. * platform/gdk/FrameGdk.h:
  24664. * platform/gdk/ImageGdk.cpp: Added.
  24665. (WebCore::Image::initPlatformData):
  24666. (WebCore::Image::invalidatePlatformData):
  24667. (WebCore::Image::loadPlatformResource):
  24668. (WebCore::Image::supportsType):
  24669. * platform/gdk/RenderPopupMenuGdk.cpp:
  24670. (WebCore::RenderPopupMenuGdk::hidePopup):
  24671. * platform/gdk/RenderPopupMenuGdk.h:
  24672. * platform/gdk/ScreenGdk.cpp:
  24673. (WebCore::drawableForPage):
  24674. (WebCore::screenRect):
  24675. (WebCore::screenDepth):
  24676. (WebCore::usableScreenRect):
  24677. (WebCore::scaleFactor):
  24678. * platform/gdk/SystemTimeLinux.cpp:
  24679. (WebCore::currentTime):
  24680. * platform/gdk/TemporaryLinkStubs.cpp:
  24681. (FrameGdk::bindingRootObject):
  24682. (FrameGdk::markMisspellings):
  24683. (WebCore::screenDepthPerComponent):
  24684. (WebCore::screenIsMonochrome):
  24685. (WebCore::fileButtonChooseFileLabel):
  24686. (WebCore::fileButtonNoFileSelectedLabel):
  24687. (FrameGdk::shouldChangeSelection):
  24688. (FrameGdk::respondToChangedSelection):
  24689. (FrameGdk::respondToChangedContents):
  24690. (Path::contains):
  24691. (PlatformScrollBar::PlatformScrollBar):
  24692. (PlatformScrollBar::~PlatformScrollBar):
  24693. (PlatformScrollBar::width):
  24694. (PlatformScrollBar::height):
  24695. (PlatformScrollBar::setEnabled):
  24696. (PlatformScrollBar::paint):
  24697. (PlatformScrollBar::setScrollBarValue):
  24698. (PlatformScrollBar::setKnobProportion):
  24699. (PlatformScrollBar::setRect):
  24700. (ScrollBar::ScrollBar):
  24701. (FileChooser::FileChooser):
  24702. (FileChooser::~FileChooser):
  24703. (FileChooser::openFileChooser):
  24704. (FileChooser::basenameForWidth):
  24705. (FileChooser::uploadControlDetaching):
  24706. (FileChooser::chooseFile):
  24707. (Icon::Icon):
  24708. (Icon::~Icon):
  24709. (Icon::newIconForFile):
  24710. (Icon::paint):
  24711. (IconLoader::stopLoading):
  24712. (IconLoader::startLoading):
  24713. (IconLoader::createForFrame):
  24714. (IconDatabase::isIconExpiredForIconURL):
  24715. (IconDatabase::hasEntryForIconURL):
  24716. (IconDatabase::sharedIconDatabase):
  24717. * platform/gdk/WidgetGdk.cpp:
  24718. * webcore-base.bkl:
  24719. 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
  24720. Reviewed by Eric.
  24721. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10835
  24722. Fix svg memory leaks.
  24723. Reworked SVGList to deal with RefPtr's for ptr types
  24724. which makes manual refcounting unnecessary, and is much safer.
  24725. Removing all virtual functions (nullItem) from SVGList, and
  24726. also remove SVGListBase. Switch to a similar concept like
  24727. Vector/VectorTraits (see new file SVGListTraits.h).
  24728. Credits go to Eric/Maciej for the inspiration.
  24729. * CMakeLists.txt: Add SVGListTraits.cpp to build
  24730. * WebCore.xcodeproj/project.pbxproj: Ditto.
  24731. * bindings/scripts/CodeGeneratorJS.pm: Generator changes for SVGTransform/PathSeg/LengthList (now RefPtr based)
  24732. * kcanvas/RenderSVGText.cpp: Add some get() methods, as SVGLengthList is RefPtr based now.
  24733. (WebCore::RenderSVGText::translationForAttributes):
  24734. * ksvg2/svg/SVGAnimateTransformElement.cpp: Add some get() methods, as SVGTransformList is RefPtr based now.
  24735. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  24736. * ksvg2/svg/SVGElementInstanceList.cpp: Be RefPtr based.
  24737. (WebCore::SVGElementInstanceList::SVGElementInstanceList):
  24738. * ksvg2/svg/SVGElementInstanceList.h:
  24739. * ksvg2/svg/SVGLengthList.cpp: Ditto.
  24740. (WebCore::SVGLengthList::SVGLengthList):
  24741. * ksvg2/svg/SVGLengthList.h: Ditto.
  24742. * ksvg2/svg/SVGList.h: Rewrote, as described above.
  24743. (WebCore::SVGListTypeOperations::nullItem):
  24744. (WebCore::SVGList::SVGList):
  24745. (WebCore::SVGList::~SVGList):
  24746. (WebCore::SVGList::clear):
  24747. (WebCore::SVGList::getFirst):
  24748. (WebCore::SVGList::getLast):
  24749. (WebCore::SVGList::getItem):
  24750. (WebCore::SVGList::replaceItem):
  24751. (WebCore::SVGList::removeItem):
  24752. * ksvg2/svg/SVGListTraits.cpp: Added.
  24753. * ksvg2/svg/SVGListTraits.h: Added.
  24754. (WebCore::):
  24755. * ksvg2/svg/SVGPathElement.cpp: Add some get() methods, as SVGPathSegList is RefPtr based now.
  24756. (WebCore::SVGPathElement::toPathData):
  24757. * ksvg2/svg/SVGPathSegList.cpp: Be RefPtr based.
  24758. (WebCore::SVGPathSegList::SVGPathSegList):
  24759. * ksvg2/svg/SVGPathSegList.h: Ditto.
  24760. * ksvg2/svg/SVGTransform.cpp: Style cleanup.
  24761. (SVGTransform::SVGTransform):
  24762. * ksvg2/svg/SVGTransformList.cpp: Be RefPtr based.
  24763. (SVGTransformList::SVGTransformList):
  24764. (SVGTransformList::createSVGTransformFromMatrix):
  24765. (SVGTransformList::consolidate):
  24766. * ksvg2/svg/SVGTransformList.h: Ditto.
  24767. * ksvg2/svg/SVGTransformable.cpp: Fix RefPtr usage of SVGTransform.
  24768. (SVGTransformable::parseTransformAttribute):
  24769. 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
  24770. Reviewed by eseidel. Landed by eseidel.
  24771. Fix build on Qt/Linux and implement Frame::addMessageToConsole to
  24772. be able to see javascript errors for instance.
  24773. * CMakeLists.txt:
  24774. * platform/qt/FrameQt.h:
  24775. * platform/qt/FrameQt.cpp: Implement addMessageToConsole.
  24776. (WebCore::FrameQt::bindingRootObject):
  24777. * platform/qt/TemporaryLinkStubs.cp
  24778. (WebCore::IconDatabase::hasEntryForIconURL):
  24779. (WebCore::IconDatabase::sharedIconDatabase):
  24780. 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
  24781. Reviewed by Tim H.
  24782. Patch for http://bugs.webkit.org/show_bug.cgi?id=10869
  24783. Auto-generate the internal methods for the Objective-C bindings
  24784. - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
  24785. implementations where standard. For cases where a custom implementation was
  24786. needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
  24787. - Some general cleanup of some of the non-generated bindings, to bring them in-
  24788. line with what the generated bindings look like.
  24789. * bindings/objc/DOM.mm:
  24790. (-[DOMNode description]):
  24791. * bindings/objc/DOMCSS.mm:
  24792. (-[DOMCSSPrimitiveValue WebCore::]):
  24793. (-[DOMDocument getComputedStyle::]):
  24794. (-[DOMDocument getMatchedCSSRules::]):
  24795. * bindings/objc/DOMEvents.mm:
  24796. (-[DOMEvent WebCore::]):
  24797. * bindings/objc/DOMHTML.mm:
  24798. * bindings/objc/DOMHTMLDocument.mm:
  24799. (-[DOMHTMLDocument title]):
  24800. (-[DOMHTMLDocument setTitle:]):
  24801. (-[DOMHTMLDocument referrer]):
  24802. (-[DOMHTMLDocument domain]):
  24803. (-[DOMHTMLDocument URL]):
  24804. (-[DOMHTMLDocument body]):
  24805. (-[DOMHTMLDocument setBody:]):
  24806. (-[DOMHTMLDocument images]):
  24807. (-[DOMHTMLDocument applets]):
  24808. (-[DOMHTMLDocument links]):
  24809. (-[DOMHTMLDocument forms]):
  24810. (-[DOMHTMLDocument anchors]):
  24811. (-[DOMHTMLDocument cookie]):
  24812. (-[DOMHTMLDocument setCookie:]):
  24813. (-[DOMHTMLDocument open]):
  24814. (-[DOMHTMLDocument close]):
  24815. (-[DOMHTMLDocument write:]):
  24816. (-[DOMHTMLDocument writeln:]):
  24817. (-[DOMHTMLDocument getElementById:]):
  24818. (-[DOMHTMLDocument getElementsByName:]):
  24819. (-[DOMHTMLDocument WebCore::]):
  24820. (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
  24821. * bindings/objc/DOMHTMLOptionElement.mm:
  24822. (-[DOMHTMLOptionElement form]):
  24823. (-[DOMHTMLOptionElement defaultSelected]):
  24824. (-[DOMHTMLOptionElement setDefaultSelected:]):
  24825. (-[DOMHTMLOptionElement text]):
  24826. (-[DOMHTMLOptionElement index]):
  24827. (-[DOMHTMLOptionElement disabled]):
  24828. (-[DOMHTMLOptionElement setDisabled:]):
  24829. (-[DOMHTMLOptionElement label]):
  24830. (-[DOMHTMLOptionElement setLabel:]):
  24831. (-[DOMHTMLOptionElement selected]):
  24832. (-[DOMHTMLOptionElement setSelected:]):
  24833. (-[DOMHTMLOptionElement value]):
  24834. (-[DOMHTMLOptionElement setValue:]):
  24835. (-[DOMHTMLOptionElement WebCore::]):
  24836. (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
  24837. * bindings/objc/DOMInternal.h:
  24838. * bindings/objc/DOMNode.mm:
  24839. (-[DOMNode dealloc]):
  24840. (-[DOMNode finalize]):
  24841. (-[DOMNode nodeName]):
  24842. (-[DOMNode nodeValue]):
  24843. (-[DOMNode setNodeValue:]):
  24844. (-[DOMNode nodeType]):
  24845. (-[DOMNode parentNode]):
  24846. (-[DOMNode childNodes]):
  24847. (-[DOMNode firstChild]):
  24848. (-[DOMNode lastChild]):
  24849. (-[DOMNode previousSibling]):
  24850. (-[DOMNode nextSibling]):
  24851. (-[DOMNode attributes]):
  24852. (-[DOMNode ownerDocument]):
  24853. (-[DOMNode insertBefore::]):
  24854. (-[DOMNode replaceChild::]):
  24855. (-[DOMNode removeChild:]):
  24856. (-[DOMNode appendChild:]):
  24857. (-[DOMNode hasChildNodes]):
  24858. (-[DOMNode cloneNode:]):
  24859. (-[DOMNode normalize]):
  24860. (-[DOMNode isSupported::]):
  24861. (-[DOMNode namespaceURI]):
  24862. (-[DOMNode prefix]):
  24863. (-[DOMNode setPrefix:]):
  24864. (-[DOMNode localName]):
  24865. (-[DOMNode hasAttributes]):
  24866. (-[DOMNode isSameNode:]):
  24867. (-[DOMNode isEqualNode:]):
  24868. (-[DOMNode isDefaultNamespace:]):
  24869. (-[DOMNode lookupPrefix:]):
  24870. (-[DOMNode lookupNamespaceURI:]):
  24871. (-[DOMNode textContent]):
  24872. (-[DOMNode setTextContent:]):
  24873. (-[DOMNode boundingBox]):
  24874. (-[DOMNode lineBoxRects]):
  24875. * bindings/objc/DOMObject.mm:
  24876. (-[DOMObject _init]):
  24877. * bindings/objc/DOMXPath.mm:
  24878. (-[DOMNativeXPathNSResolver dealloc]):
  24879. (-[DOMNativeXPathNSResolver finalize]):
  24880. (-[DOMNativeXPathNSResolver WebCore::]):
  24881. (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
  24882. (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
  24883. (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
  24884. * bindings/scripts/CodeGeneratorObjC.pm:
  24885. * bridge/mac/WebCoreFrameBridge.mm:
  24886. (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
  24887. (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
  24888. * css/CSSCharsetRule.idl:
  24889. * css/CSSFontFaceRule.idl:
  24890. * css/CSSImportRule.idl:
  24891. * css/CSSMediaRule.idl:
  24892. * css/CSSPageRule.idl:
  24893. * css/CSSPrimitiveValue.idl:
  24894. * css/CSSRule.idl:
  24895. * css/CSSStyleRule.idl:
  24896. * css/CSSStyleSheet.idl:
  24897. * css/CSSUnknownRule.idl:
  24898. * css/CSSValue.idl:
  24899. * css/CSSValueList.idl:
  24900. * css/StyleSheet.idl:
  24901. * dom/Event.idl:
  24902. * dom/KeyboardEvent.idl:
  24903. * dom/MouseEvent.idl:
  24904. * dom/MutationEvent.idl:
  24905. * dom/NodeIterator.idl:
  24906. * dom/OverflowEvent.idl:
  24907. * dom/TreeWalker.idl:
  24908. * dom/UIEvent.idl:
  24909. * dom/WheelEvent.idl:
  24910. 2006-09-15 Adam Roben <aroben@apple.com>
  24911. Reviewed by timothy.
  24912. Fixes http://bugs.webkit.org/show_bug.cgi?id=10865
  24913. New file upload control should match the width of the old one
  24914. Make width of new file upload control match the old one as closely as
  24915. possible.
  24916. * rendering/RenderFileUploadControl.cpp:
  24917. 2006-09-15 Timothy Hatcher <timothy@apple.com>
  24918. Reviewed by Eric.
  24919. Remove the SVG IDL files from the Copy Resources phase.
  24920. * WebCore.xcodeproj/project.pbxproj:
  24921. 2006-09-15 Brady Eidson <beidson@apple.com>
  24922. Reviewed by Eric Siedel
  24923. Dumped the use of CGColorRef and directly use the floating point data from
  24924. WebCore::Color
  24925. This fixes the performance regression found between 16285 and 16286
  24926. * platform/mac/FontMac.mm:
  24927. (WebCore::Font::drawComplexText):
  24928. (WebCore::Font::drawGlyphs):
  24929. 2006-09-14 Mark Rowe <opendarwin.org@bdash.net.nz>
  24930. Reviewed by Adam.
  24931. http://bugs.webkit.org/show_bug.cgi?id=10838
  24932. Bug 10838: REGRESSION: Leaking of WebScriptObjectPrivate
  24933. FrameMac relies on its cleanupPluginObjects being called to perform cleanup. The virtual
  24934. Frame::cleanupPluginObjects method is called from Frame's destructor, which results
  24935. in Frame::cleanupPluginObjects being called rather than FrameMac::cleanupPluginObjects.
  24936. * bridge/mac/FrameMac.mm:
  24937. (WebCore::FrameMac::~FrameMac): Call cancelAndClear to ensure that FrameMac::cleanupPluginObjects
  24938. will be called from Frame::clear
  24939. * page/Frame.cpp:
  24940. (WebCore::Frame::~Frame): Use cancelAndClear.
  24941. (WebCore::Frame::cancelAndClear): Move cancellation and clearing into a separate method that
  24942. FrameMac can use.
  24943. * page/Frame.h:
  24944. 2006-09-14 Brady Eidson <beidson@apple.com>
  24945. Reviewed by Maciej's rubber stamp
  24946. Exact same fix I just made, but in the other method I horked up
  24947. Also added a reference to the bugzilla in comments
  24948. * page/Frame.cpp:
  24949. (WebCore::Frame::endIfNotLoading):
  24950. (WebCore::Frame::stop):
  24951. 2006-09-14 Brady Eidson <beidson@apple.com>
  24952. Reviewed by Maciej
  24953. Fixed a bad iFrame crash, resolving some of the layout test badness
  24954. * page/Frame.cpp:
  24955. (WebCore::Frame::endIfNotLoading):
  24956. - Added a RefPtr to protect the frame itself to prevent its destruction during this method
  24957. 2006-09-14 Justin Garcia <justin.garcia@apple.com>
  24958. Reviewed by harrison
  24959. <rdar://problem/4655880> Up/Down arrows skip over To Do
  24960. * bridge/mac/WebCoreFrameBridge.mm:
  24961. (-[WebCoreFrameBridge canDeleteRange:]): Added a FIXME.
  24962. * dom/Node.cpp: Removed the unused inSameRootEditableElement.
  24963. * dom/Node.h:
  24964. * editing/SelectionController.cpp:
  24965. (WebCore::SelectionController::modify): Added documentboundary to granularities in order test a fix.
  24966. * editing/visible_units.cpp:
  24967. (WebCore::previousLinePosition): Use highestEditableRoot so that this function can move from
  24968. editable content into editable content that's embedded in non-editable content.
  24969. (WebCore::nextLinePosition): Ditto.
  24970. (WebCore::startOfEditableContent): Renamed from startOfEditableRoot and use highestEditableRoot.
  24971. This is the behavior that callers desire. This fixes Command + Up/Down.
  24972. (WebCore::endOfEditableContent): Ditto.
  24973. * editing/visible_units.h:
  24974. 2006-09-14 Karthik Kumar <karthikkumar@gmail.com>
  24975. Reviewed by timothy. Landed by aroben.
  24976. Fixes http://bugs.webkit.org/show_bug.cgi?id=10856
  24977. Windows build fixes after r16360
  24978. * WebCore.vcproj/WebCore/WebCore.vcproj: Add loader\icon to
  24979. AdditionalIncludeDirectories
  24980. * platform/win/TemporaryLinkStubs.cpp: Add link stubs for IconLoader,
  24981. IconDatabase
  24982. (IconLoader::stopLoading):
  24983. (IconLoader::startLoading):
  24984. (IconLoader::createForFrame):
  24985. (IconDatabase::isIconExpiredForIconURL):
  24986. (IconDatabase::hasEntryForIconURL):
  24987. (IconDatabase::sharedIconDatabase):
  24988. 2006-09-14 Brady Eidson <beidson@apple.com>
  24989. Part of a build fix for Windows - rest will be working out a mess of temporary link stubs
  24990. * loader/icon/IconLoader.cpp:
  24991. (IconLoader::receivedAllData):
  24992. * page/Frame.cpp:
  24993. * page/FramePrivate.h:
  24994. 2006-09-14 Graham Dennis <graham.dennis@gmail.com>
  24995. Reviewed by Justin Garcia.
  24996. - http://bugs.webkit.org/show_bug.cgi?id=10726
  24997. Crash in ApplyStyleCommand::applyRelativeFontStyleChange
  24998. * editing/ApplyStyleCommand.cpp:
  24999. (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Prevent a crash by
  25000. makeing sure that the 'beyondEnd' node is after the start node.
  25001. 2006-09-14 Darin Fisher <darin@chromium.org>
  25002. Reviewed by Brady.
  25003. Fixes http://bugs.webkit.org/show_bug.cgi?id=10845
  25004. Various bugs/crashes in ResourceLoaderWin with local files.
  25005. * platform/ResourceLoaderInternal.h:
  25006. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  25007. * platform/win/ResourceLoaderWin.cpp:
  25008. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  25009. (WebCore::ResourceLoader::fileLoadTimer):
  25010. 2006-09-13 Brady Eidson <beidson@apple.com>
  25011. Reviewed by Maciej
  25012. Icon loads now take place in WebCore
  25013. * WebCore.xcodeproj/project.pbxproj:
  25014. * bridge/BrowserExtension.h:
  25015. * bridge/mac/BrowserExtensionMac.h:
  25016. * bridge/mac/BrowserExtensionMac.mm:
  25017. - Moved enforcement of a Mozilla Favicon extension elsewhere
  25018. * bridge/mac/FrameMac.h:
  25019. * bridge/mac/FrameMac.mm:
  25020. (WebCore::FrameMac::originalRequestURL):
  25021. - Added accessor to "original request URL"
  25022. * bridge/mac/WebCoreFrameBridge.h:
  25023. - Removed methods to set the iconURL as all loading is now done in WebCore
  25024. - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
  25025. * html/HTMLLinkElement.cpp:
  25026. (WebCore::HTMLLinkElement::process):
  25027. - Moved enforcement of a Mozilla Favicon extension elsewhere
  25028. * loader/icon/IconDatabase.cpp:
  25029. (WebCore::IconDatabase::setIconURLForPageURL):
  25030. - Changed an ASSERT to correctly handle a sketchy (invalid) situation
  25031. * loader/icon/IconLoader.h: Added.
  25032. * loader/icon/IconLoader.cpp: Added.
  25033. (IconLoader::IconLoader):
  25034. (IconLoader::createForFrame):
  25035. - Static factory method with a private constructor to enforce
  25036. "you MUST have a Frame to create an IconLoader" semantics
  25037. (IconLoader::~IconLoader):
  25038. (IconLoader::startLoading):
  25039. (IconLoader::stopLoading):
  25040. (IconLoader::receivedData):
  25041. - ResourceLoaderClient delegate
  25042. (IconLoader::receivedAllData):
  25043. - Ditto
  25044. * loader/mac/IconLoaderMac.mm: Added.
  25045. (IconLoader::receivedResponse):
  25046. (IconLoader::notifyIconChanged):
  25047. - For now, these are platform specific methods
  25048. - One to get the HTTP response code of an icon load
  25049. - The other to call through to the app when the icon has changed (loaded)
  25050. * page/Frame.h:
  25051. * page/Frame.cpp:
  25052. (WebCore::Frame::iconURL):
  25053. (WebCore::Frame::setIconURL):
  25054. - Frame objects now have an inherent icon URL and a way to calculate/access it
  25055. (WebCore::Frame::endIfNotLoading):
  25056. - This is where we actually kick off the IconLoader
  25057. (WebCore::Frame::stop):
  25058. - Added call to stop loading the icon
  25059. * page/FramePrivate.h:
  25060. (WebCore::FramePrivate::FramePrivate):
  25061. (WebCore::FramePrivate::~FramePrivate):
  25062. - Added the icon URL as a private member
  25063. - Added the IconLoader as a private member, and clean it up on deletion
  25064. * platform/mac/ResourceLoaderMac.mm:
  25065. (WebCore::ResourceLoader::start): Added a valuable ASSERT
  25066. 2006-09-13 David Hyatt <hyatt@apple.com>
  25067. Fix for 10841, unable to check checkboxes inside labels.
  25068. Reviewed by xenon, bradee-oh
  25069. * css/html4.css:
  25070. * dom/Element.cpp:
  25071. (WebCore::Element::contains):
  25072. * dom/Element.h:
  25073. * html/HTMLLabelElement.cpp:
  25074. (WebCore::HTMLLabelElement::defaultEventHandler):
  25075. 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
  25076. Reviewed by Adam.
  25077. http://bugs.webkit.org/show_bug.cgi?id=10834
  25078. Bug 10834: FileChooser constructor in FileChooserMac appears to overretain m_controller
  25079. * platform/mac/FileChooserMac.mm:
  25080. (WebCore::FileChooser::FileChooser): Don't over-retain the OpenPanelController.
  25081. 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
  25082. Reviewed by Eric.
  25083. http://bugs.webkit.org/show_bug.cgi?id=10836
  25084. Bug 10836: REGRESSION: Mac implementation of Font::drawGlyphs leaks a CGColorRef
  25085. * platform/mac/FontMac.mm:
  25086. (WebCore::Font::drawComplexText): Release CGColorRef after use.
  25087. (WebCore::Font::drawGlyphs): Ditto.
  25088. 2006-09-14 Anders Carlsson <acarlsson@apple.com>
  25089. Try fixing the Win32 build.
  25090. * bridge/win/FrameWin.h:
  25091. * platform/win/TemporaryLinkStubs.cpp:
  25092. (FrameWin::bindingRootObject):
  25093. 2006-09-14 Anders Carlsson <acarlsson@apple.com>
  25094. Reviewed by Tim O.
  25095. Add USE defines for the generic JavaScriptCore bindings as well as NPAPI bindings.
  25096. * bindings/js/kjs_binding.cpp:
  25097. (KJS::ScriptInterpreter::createLanguageInstanceForValue):
  25098. * bindings/js/kjs_dom.cpp:
  25099. (KJS::getRuntimeObject):
  25100. * bridge/mac/FrameMac.h:
  25101. * config.h:
  25102. * html/HTMLAppletElement.cpp:
  25103. (WebCore::HTMLAppletElement::~HTMLAppletElement):
  25104. (WebCore::HTMLAppletElement::detach):
  25105. * html/HTMLAppletElement.h:
  25106. * html/HTMLEmbedElement.cpp:
  25107. (WebCore::HTMLEmbedElement::~HTMLEmbedElement):
  25108. (WebCore::HTMLEmbedElement::detach):
  25109. * html/HTMLEmbedElement.h:
  25110. * html/HTMLObjectElement.cpp:
  25111. (WebCore::HTMLObjectElement::~HTMLObjectElement):
  25112. (WebCore::HTMLObjectElement::detach):
  25113. * html/HTMLObjectElement.h:
  25114. * html/HTMLPlugInElement.cpp:
  25115. (WebCore::HTMLPlugInElement::HTMLPlugInElement):
  25116. (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
  25117. (WebCore::HTMLPlugInElement::createNPObject):
  25118. * html/HTMLPlugInElement.h:
  25119. * page/Frame.h:
  25120. 2006-09-13 David Hyatt <hyatt@apple.com>
  25121. Clean up the XBL and XSLT ifdefs to be consistent with the SVG
  25122. and XPath ifdefs. KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
  25123. KHTML_XSLT is now XSLT_SUPPORT.
  25124. * WebCore.xcodeproj/project.pbxproj:
  25125. * bindings/js/JSXSLTProcessor.cpp:
  25126. * bindings/js/JSXSLTProcessor.h:
  25127. * bindings/js/kjs_window.cpp:
  25128. (KJS::Window::getValueProperty):
  25129. * config.h:
  25130. * css/CSSComputedStyleDeclaration.cpp:
  25131. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  25132. * css/cssparser.cpp:
  25133. (WebCore::CSSParser::parseValue):
  25134. * css/cssstyleselector.cpp:
  25135. (WebCore::CSSStyleSelector::applyProperty):
  25136. * dom/Document.cpp:
  25137. (WebCore::Document::Document):
  25138. (WebCore::Document::~Document):
  25139. (WebCore::Document::recalcStyleSelector):
  25140. * dom/Document.h:
  25141. (WebCore::Document::bindingManager):
  25142. * dom/Node.cpp:
  25143. (WebCore::Node::createRendererIfNeeded):
  25144. * dom/ProcessingInstruction.cpp:
  25145. (WebCore::ProcessingInstruction::ProcessingInstruction):
  25146. (WebCore::ProcessingInstruction::checkStyleSheet):
  25147. (WebCore::ProcessingInstruction::setStyleSheet):
  25148. * dom/ProcessingInstruction.h:
  25149. * dom/XMLTokenizer.cpp:
  25150. (WebCore::XMLTokenizer::processingInstruction):
  25151. (WebCore::XMLTokenizer::insertErrorMessageBlock):
  25152. * dom/XMLTokenizer.h:
  25153. * loader/Cache.cpp:
  25154. (WebCore::Cache::getStatistics):
  25155. * loader/Cache.h:
  25156. * loader/CachedResource.h:
  25157. (WebCore::CachedResource::):
  25158. * loader/CachedResourceClient.h:
  25159. * loader/CachedXBLDocument.cpp:
  25160. * loader/CachedXBLDocument.h:
  25161. * loader/CachedXSLStyleSheet.cpp:
  25162. * loader/CachedXSLStyleSheet.h:
  25163. * loader/DocLoader.cpp:
  25164. * loader/DocLoader.h:
  25165. * rendering/RenderStyle.cpp:
  25166. (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
  25167. (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
  25168. (WebCore::StyleCSS3NonInheritedData::operator==):
  25169. * rendering/RenderStyle.h:
  25170. * xml/XSLImportRule.cpp:
  25171. * xml/XSLImportRule.h:
  25172. * xml/XSLStyleSheet.cpp:
  25173. * xml/XSLStyleSheet.h:
  25174. * xml/XSLTProcessor.cpp:
  25175. * xml/XSLTProcessor.h:
  25176. 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
  25177. Reviewed by eseidel. Landed by eseidel.
  25178. Fix newly introduced memory leaks in SVG.
  25179. http://bugs.webkit.org/show_bug.cgi?id=10835
  25180. * ksvg2/svg/SVGList.h:
  25181. (WebCore::SVGListBase::~SVGListBase):
  25182. (WebCore::SVGListBase::clearVector):
  25183. (WebCore::SVGListBase::clear):
  25184. (WebCore::SVGList::clearVector):
  25185. (WebCore::):
  25186. * ksvg2/svg/SVGNumberList.cpp: s/float/double/ - forgot that!
  25187. (SVGNumberList::SVGNumberList):
  25188. * ksvg2/svg/SVGNumberList.h: Ditto.
  25189. 2006-09-13 Darin Fisher <darin@chromium.org>
  25190. Reviewed/landed by aroben.
  25191. Fixes http://bugs.webkit.org/show_bug.cgi?id=10833
  25192. Windows build needs fixed after move to engine-rendered file upload widget
  25193. * WebCore.vcproj/WebCore/WebCore.vcproj: Add RenderFileUpload files,
  25194. remove RenderFileButton files
  25195. * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser, Icon
  25196. (FileChooser::FileChooser):
  25197. (FileChooser::~FileChooser):
  25198. (FileChooser::openFileChooser):
  25199. (FileChooser::basenameForWidth):
  25200. (FileChooser::uploadControlDetaching):
  25201. (FileChooser::chooseFile):
  25202. (WebCore::fileButtonChooseFileLabel):
  25203. (WebCore::fileButtonNoFileSelectedLabel):
  25204. (Icon::Icon):
  25205. (Icon::~Icon):
  25206. (Icon::newIconForFile):
  25207. (Icon::paint):
  25208. 2006-09-13 Darin Fisher <darin@chromium.org>
  25209. Reviewed/landed by aroben.
  25210. Fixes http://bugs.webkit.org/attachment.cgi?id=10537
  25211. Webkit WebCore build fails on Windows
  25212. * WebCore.vcproj/WebCore/build-generated-files.sh: export SOURCE_ROOT
  25213. variable
  25214. 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
  25215. Reviewed by Tim H.
  25216. Fix Qt/Linux build.
  25217. * CMakeLists.txt: Change SVGZoomEvent.idl location & add RenderFileUploadControl
  25218. * platform/Icon.h: Add wtf/Platform.h include
  25219. * platform/qt/FileChooserQt.cpp: Added as stub. Easy to implement though.
  25220. (WebCore::FileChooser::FileChooser):
  25221. (WebCore::FileChooser::~FileChooser):
  25222. (WebCore::FileChooser::openFileChooser):
  25223. (WebCore::FileChooser::basenameForWidth):
  25224. (WebCore::FileChooser::uploadControlDetaching):
  25225. (WebCore::FileChooser::chooseFile):
  25226. * platform/qt/IconQt.cpp: Added as stub.
  25227. (WebCore::Icon::Icon):
  25228. (WebCore::Icon::~Icon):
  25229. (WebCore::Icon::newIconForFile):
  25230. (WebCore::Icon::paint):
  25231. * platform/qt/TemporaryLinkStubs.cpp: Remove old RenderFileButton code & some new *Labels needed
  25232. (searchableIndexIntroduction):
  25233. (fileButtonChooseFileLabel):
  25234. (fileButtonNoFileSelectedLabel):
  25235. 2006-09-12 Adam Roben <aroben@apple.com>
  25236. Reviewed by eseidel.
  25237. Switch back to passing relative paths to generate-bindings.pl when
  25238. generating JS bindings.
  25239. * DerivedSources.make: Pass in relative paths to generate-bindings.pl
  25240. * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call
  25241. chdir and always construct absolute paths instead.
  25242. 2006-09-12 David Hyatt <hyatt@apple.com>
  25243. Fix for bug 3244, implement html4 label support.
  25244. Reviewed by mjs, aroben
  25245. Added fast/events/label-focus.html
  25246. * css/html4.css:
  25247. * html/HTMLLabelElement.cpp:
  25248. (WebCore::HTMLLabelElement::formElement):
  25249. (WebCore::HTMLLabelElement::setActive):
  25250. (WebCore::HTMLLabelElement::setHovered):
  25251. (WebCore::HTMLLabelElement::defaultEventHandler):
  25252. * html/HTMLLabelElement.h:
  25253. 2006-09-12 Julien Palmas <julien.palmas@gmail.com>
  25254. Reviewed by darin. Landed by eseidel.
  25255. * ksvg2/svg/svgpathparser.cpp:
  25256. (WebCore::SVGPolyParser::parsePoints):
  25257. 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
  25258. Reviewed by Andersca, Maciej, Brady.
  25259. - Implemented intersectsNode in the Range Class
  25260. to be compliant with Mozilla standard
  25261. * dom/Range.cpp:
  25262. (WebCore::Range::intersectsNode):
  25263. * dom/Range.h:
  25264. * dom/Range.idl:
  25265. 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
  25266. Reviewed by eseidel. Landed by eseidel.
  25267. Test: svg/W3C-SVG-1.1/struct-dom-01-b.svg (fixed)
  25268. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10826
  25269. Also finally fixes some long outstanding bugs:
  25270. Fixes: http://bugs.webkit.org/show_bug.cgi?id=9190
  25271. Fixes: http://bugs.webkit.org/show_bug.cgi?id=9229
  25272. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10413
  25273. Enable all JavaScript SVG bindings. Builds on Qt/Linux & OSX.
  25274. * CMakeLists.txt:
  25275. * DerivedSources.make:
  25276. * WebCore.xcodeproj/project.pbxproj:
  25277. * bindings/scripts/CodeGenerator.pm:
  25278. * bindings/scripts/CodeGeneratorJS.pm:
  25279. * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
  25280. * ksvg2/svg/SVGAElement.idl: Added.
  25281. * ksvg2/svg/SVGAngle.idl:
  25282. * ksvg2/svg/SVGAnimateColorElement.idl: Added.
  25283. * ksvg2/svg/SVGAnimateElement.idl: Added.
  25284. * ksvg2/svg/SVGAnimateTransformElement.idl: Added.
  25285. * ksvg2/svg/SVGAnimatedLengthList.idl: Added.
  25286. * ksvg2/svg/SVGAnimatedNumberList.idl: Added.
  25287. * ksvg2/svg/SVGAnimatedTransformList.idl: Added.
  25288. * ksvg2/svg/SVGAnimationElement.idl: Added.
  25289. * ksvg2/svg/SVGCircleElement.idl: Added.
  25290. * ksvg2/svg/SVGClipPathElement.idl: Added.
  25291. * ksvg2/svg/SVGColor.idl:
  25292. * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Added.
  25293. * ksvg2/svg/SVGCursorElement.idl: Added.
  25294. * ksvg2/svg/SVGDefsElement.idl: Added.
  25295. * ksvg2/svg/SVGDescElement.idl: Added.
  25296. * ksvg2/svg/SVGEllipseElement.idl: Added.
  25297. * ksvg2/svg/SVGEvent.idl:
  25298. * ksvg2/svg/SVGExternalResourcesRequired.idl: Added.
  25299. * ksvg2/svg/SVGFEBlendElement.idl: Added.
  25300. * ksvg2/svg/SVGFEColorMatrixElement.idl: Added.
  25301. * ksvg2/svg/SVGFEComponentTransferElement.idl: Added.
  25302. * ksvg2/svg/SVGFECompositeElement.idl: Added.
  25303. * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Added.
  25304. * ksvg2/svg/SVGFEDisplacementMapElement.idl: Added.
  25305. * ksvg2/svg/SVGFEDistantLightElement.idl: Added.
  25306. * ksvg2/svg/SVGFEFloodElement.idl: Added.
  25307. * ksvg2/svg/SVGFEFuncAElement.idl: Added.
  25308. * ksvg2/svg/SVGFEFuncBElement.idl: Added.
  25309. * ksvg2/svg/SVGFEFuncGElement.idl: Added.
  25310. * ksvg2/svg/SVGFEFuncRElement.idl: Added.
  25311. * ksvg2/svg/SVGFEGaussianBlurElement.idl: Added.
  25312. * ksvg2/svg/SVGFEImageElement.idl: Added.
  25313. * ksvg2/svg/SVGFEMergeElement.idl: Added.
  25314. * ksvg2/svg/SVGFEMergeNodeElement.idl: Added.
  25315. * ksvg2/svg/SVGFEOffsetElement.idl: Added.
  25316. * ksvg2/svg/SVGFEPointLightElement.idl: Added.
  25317. * ksvg2/svg/SVGFESpecularLightingElement.idl: Added.
  25318. * ksvg2/svg/SVGFESpotLightElement.idl: Added.
  25319. * ksvg2/svg/SVGFETileElement.idl: Added.
  25320. * ksvg2/svg/SVGFETurbulenceElement.idl: Added.
  25321. * ksvg2/svg/SVGFilterElement.idl: Added.
  25322. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Added.
  25323. * ksvg2/svg/SVGFitToViewBox.idl: Added.
  25324. * ksvg2/svg/SVGForeignObjectElement.idl: Added.
  25325. * ksvg2/svg/SVGGElement.idl: Added.
  25326. * ksvg2/svg/SVGGradientElement.idl: Added.
  25327. * ksvg2/svg/SVGImageElement.idl: Added.
  25328. * ksvg2/svg/SVGLangSpace.idl: Added.
  25329. * ksvg2/svg/SVGLength.idl:
  25330. * ksvg2/svg/SVGLengthList.idl: Added.
  25331. * ksvg2/svg/SVGLineElement.idl: Added.
  25332. * ksvg2/svg/SVGLinearGradientElement.idl: Added.
  25333. * ksvg2/svg/SVGLocatable.idl: Added.
  25334. * ksvg2/svg/SVGMarkerElement.idl: Added.
  25335. * ksvg2/svg/SVGMaskElement.idl: Added.
  25336. * ksvg2/svg/SVGNumberList.idl: Added.
  25337. * ksvg2/svg/SVGPaint.idl: Added.
  25338. * ksvg2/svg/SVGPathElement.idl:
  25339. * ksvg2/svg/SVGPathSeg.idl:
  25340. * ksvg2/svg/SVGPatternElement.idl: Added.
  25341. * ksvg2/svg/SVGPointList.idl: Added.
  25342. * ksvg2/svg/SVGPolygonElement.idl: Added.
  25343. * ksvg2/svg/SVGPolylineElement.idl: Added.
  25344. * ksvg2/svg/SVGPreserveAspectRatio.idl:
  25345. * ksvg2/svg/SVGRadialGradientElement.idl: Added.
  25346. * ksvg2/svg/SVGRectElement.idl: Added.
  25347. * ksvg2/svg/SVGRenderingIntent.idl: Added.
  25348. * ksvg2/svg/SVGSVGElement.idl:
  25349. * ksvg2/svg/SVGScriptElement.idl: Added.
  25350. * ksvg2/svg/SVGSetElement.idl: Added.
  25351. * ksvg2/svg/SVGStopElement.idl: Added.
  25352. * ksvg2/svg/SVGStringList.idl: Added.
  25353. * ksvg2/svg/SVGStylable.idl: Added.
  25354. * ksvg2/svg/SVGStyleElement.idl: Added.
  25355. * ksvg2/svg/SVGSwitchElement.idl: Added.
  25356. * ksvg2/svg/SVGSymbolElement.idl: Added.
  25357. * ksvg2/svg/SVGTRefElement.idl: Added.
  25358. * ksvg2/svg/SVGTSpanElement.idl: Added.
  25359. * ksvg2/svg/SVGTests.idl: Added.
  25360. * ksvg2/svg/SVGTextContentElement.idl: Added.
  25361. * ksvg2/svg/SVGTextElement.idl: Added.
  25362. * ksvg2/svg/SVGTextPositioningElement.idl: Added.
  25363. * ksvg2/svg/SVGTitleElement.idl: Added.
  25364. * ksvg2/svg/SVGTransform.idl:
  25365. * ksvg2/svg/SVGTransformList.idl: Added.
  25366. * ksvg2/svg/SVGTransformable.idl: Added.
  25367. * ksvg2/svg/SVGURIReference.idl: Added.
  25368. * ksvg2/svg/SVGUnitTypes.idl: Added.
  25369. * ksvg2/svg/SVGUseElement.idl: Added.
  25370. * ksvg2/svg/SVGViewElement.idl: Added.
  25371. * ksvg2/svg/SVGZoomAndPan.idl: Added.
  25372. * ksvg2/svg/SVGZoomEvent.idl: Added.
  25373. 2006-09-12 Adam Roben <aroben@apple.com>
  25374. Reviewed by timo, ggaren.
  25375. Make Icon ref-counted.
  25376. * platform/FileChooser.h: Store m_icon as a RefPtr instead of
  25377. auto_ptr.
  25378. * platform/Icon.h: Inherit from Shared<Icon>
  25379. * platform/mac/FileChooserMac.mm:
  25380. (WebCore::FileChooser::chooseFile): Update m_icon usage
  25381. * platform/mac/IconMac.mm:
  25382. (WebCore::Icon::newIconForFile): Return a RefPtr instead of an
  25383. auto_ptr
  25384. === Safari-521.26 ===
  25385. 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
  25386. Reviewed by Anders.
  25387. Add exception codes to SVGList functions, adjust all code using it.
  25388. Move SVGPaintType enums from ksvg.h into SVGPaint (needed for js generation)
  25389. Move SVGUnitTypes enums from ksvg.h into it's own file SVGUnitType.h (ditto)
  25390. Move SVGRenderingIntent enums from ksvg.h into it's own file SVGRenderingIntent.h (ditto)
  25391. Move SVGZoomAndPan enums from ksvg.h into SVGSVGElement (ditto)
  25392. Move SVGFE* related enums into their respecitive classes.
  25393. Fix JSSVGNumber to operator on doubles, instead of floats.
  25394. * ksvg2/bindings/js/JSSVGNumber.cpp:
  25395. (WebCore::getJSSVGNumber):
  25396. * ksvg2/bindings/js/JSSVGNumber.h:
  25397. (WebCore::JSSVGNumber::JSSVGNumber):
  25398. * ksvg2/css/SVGCSSParser.cpp:
  25399. (WebCore::CSSParser::parseSVGValue):
  25400. (WebCore::CSSParser::parseSVGPaint):
  25401. * ksvg2/css/SVGRenderStyleDefs.cpp:
  25402. (StyleFillData::operator==):
  25403. * ksvg2/ksvg.h:
  25404. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  25405. (WebCore::KSVGPainterFactory::isFilled):
  25406. (WebCore::KSVGPainterFactory::fillPaintServer):
  25407. (WebCore::KSVGPainterFactory::isStroked):
  25408. (WebCore::KSVGPainterFactory::strokePaintServer):
  25409. * ksvg2/misc/KSVGTimeScheduler.cpp:
  25410. (WebCore::SVGTimer::notifyAll):
  25411. * ksvg2/svg/SVGAnimateColorElement.cpp:
  25412. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  25413. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  25414. (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
  25415. (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
  25416. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  25417. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  25418. * ksvg2/svg/SVGAnimateTransformElement.h:
  25419. * ksvg2/svg/SVGAnimatedTemplate.h:
  25420. * ksvg2/svg/SVGAnimationElement.cpp:
  25421. (SVGAnimationElement::getSimpleDuration):
  25422. (SVGAnimationElement::parseMappedAttribute):
  25423. (SVGAnimationElement::setTargetAttribute):
  25424. * ksvg2/svg/SVGAnimationElement.h:
  25425. * ksvg2/svg/SVGClipPathElement.cpp:
  25426. (SVGClipPathElement::SVGClipPathElement):
  25427. (SVGClipPathElement::parseMappedAttribute):
  25428. (SVGClipPathElement::canvasResource):
  25429. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  25430. (SVGComponentTransferFunctionElement::transferFunction):
  25431. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  25432. (WebCore::SVGComponentTransferFunctionElement::):
  25433. * ksvg2/svg/SVGDocument.cpp:
  25434. (WebCore::SVGDocument::dispatchZoomEvent):
  25435. (WebCore::SVGDocument::dispatchScrollEvent):
  25436. * ksvg2/svg/SVGFEBlendElement.cpp:
  25437. (WebCore::SVGFEBlendElement::parseMappedAttribute):
  25438. (WebCore::SVGFEBlendElement::filterEffect):
  25439. * ksvg2/svg/SVGFEBlendElement.h:
  25440. (WebCore::SVGFEBlendElement::):
  25441. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  25442. (SVGFEColorMatrixElement::parseMappedAttribute):
  25443. (SVGFEColorMatrixElement::filterEffect):
  25444. * ksvg2/svg/SVGFEColorMatrixElement.h:
  25445. (WebCore::SVGFEColorMatrixElement::):
  25446. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  25447. (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
  25448. (WebCore::SVGFEComponentTransferElement::filterEffect):
  25449. * ksvg2/svg/SVGFEComponentTransferElement.h:
  25450. * ksvg2/svg/SVGFECompositeElement.cpp:
  25451. (SVGFECompositeElement::parseMappedAttribute):
  25452. (SVGFECompositeElement::filterEffect):
  25453. * ksvg2/svg/SVGFECompositeElement.h:
  25454. (WebCore::SVGFECompositeElement::):
  25455. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  25456. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  25457. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  25458. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  25459. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  25460. (SVGFEDisplacementMapElement::parseMappedAttribute):
  25461. (SVGFEDisplacementMapElement::filterEffect):
  25462. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  25463. (WebCore::SVGFEDisplacementMapElement::):
  25464. * ksvg2/svg/SVGFEFloodElement.cpp:
  25465. (WebCore::SVGFEFloodElement::parseMappedAttribute):
  25466. (WebCore::SVGFEFloodElement::filterEffect):
  25467. * ksvg2/svg/SVGFEFloodElement.h:
  25468. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  25469. (SVGFEGaussianBlurElement::parseMappedAttribute):
  25470. (SVGFEGaussianBlurElement::filterEffect):
  25471. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  25472. * ksvg2/svg/SVGFEMergeElement.cpp:
  25473. (SVGFEMergeElement::filterEffect):
  25474. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  25475. (SVGFEMergeNodeElement::parseMappedAttribute):
  25476. * ksvg2/svg/SVGFEMergeNodeElement.h:
  25477. * ksvg2/svg/SVGFEOffsetElement.cpp:
  25478. (SVGFEOffsetElement::parseMappedAttribute):
  25479. (SVGFEOffsetElement::filterEffect):
  25480. * ksvg2/svg/SVGFEOffsetElement.h:
  25481. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  25482. (SVGFESpecularLightingElement::parseMappedAttribute):
  25483. (SVGFESpecularLightingElement::filterEffect):
  25484. * ksvg2/svg/SVGFESpecularLightingElement.h:
  25485. * ksvg2/svg/SVGFETileElement.cpp:
  25486. (WebCore::SVGFETileElement::parseMappedAttribute):
  25487. (WebCore::SVGFETileElement::filterEffect):
  25488. * ksvg2/svg/SVGFETileElement.h:
  25489. * ksvg2/svg/SVGFETurbulenceElement.h:
  25490. (WebCore::SVGFETurbulenceElement::):
  25491. * ksvg2/svg/SVGFilterElement.cpp:
  25492. (SVGFilterElement::SVGFilterElement):
  25493. (SVGFilterElement::parseMappedAttribute):
  25494. (SVGFilterElement::canvasResource):
  25495. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  25496. (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  25497. * ksvg2/svg/SVGGradientElement.cpp:
  25498. (SVGGradientElement::SVGGradientElement):
  25499. (SVGGradientElement::parseMappedAttribute):
  25500. * ksvg2/svg/SVGGradientElement.h:
  25501. (WebCore::SVGGradientElement::):
  25502. * ksvg2/svg/SVGHelper.cpp:
  25503. (WebCore::SVGHelper::ParseSeperatedList):
  25504. * ksvg2/svg/SVGLengthList.cpp:
  25505. (WebCore::SVGLengthList::parse):
  25506. * ksvg2/svg/SVGLinearGradientElement.cpp:
  25507. (SVGLinearGradientElement::buildGradient):
  25508. * ksvg2/svg/SVGList.h:
  25509. (WebCore::SVGListBase::clear):
  25510. (WebCore::SVGListBase::initialize):
  25511. (WebCore::SVGListBase::getItem):
  25512. (WebCore::SVGListBase::insertItemBefore):
  25513. (WebCore::SVGListBase::replaceItem):
  25514. (WebCore::SVGListBase::removeItem):
  25515. (WebCore::SVGListBase::appendItem):
  25516. * ksvg2/svg/SVGLocatable.cpp:
  25517. * ksvg2/svg/SVGLocatable.h:
  25518. * ksvg2/svg/SVGMarkerElement.h:
  25519. (WebCore::SVGMarkerElement::):
  25520. * ksvg2/svg/SVGNumberList.cpp:
  25521. (SVGNumberList::parse):
  25522. * ksvg2/svg/SVGPaint.cpp:
  25523. (WebCore::SVGPaint::SVGPaint):
  25524. (WebCore::SVGPaint::uri):
  25525. (WebCore::SVGPaint::setUri):
  25526. (WebCore::SVGPaint::setPaint):
  25527. * ksvg2/svg/SVGPaint.h:
  25528. (WebCore::SVGPaint::):
  25529. * ksvg2/svg/SVGPathElement.cpp:
  25530. (WebCore::SVGPathElement::svgMoveTo):
  25531. (WebCore::SVGPathElement::svgLineTo):
  25532. (WebCore::SVGPathElement::svgLineToHorizontal):
  25533. (WebCore::SVGPathElement::svgLineToVertical):
  25534. (WebCore::SVGPathElement::svgCurveToCubic):
  25535. (WebCore::SVGPathElement::svgCurveToCubicSmooth):
  25536. (WebCore::SVGPathElement::svgCurveToQuadratic):
  25537. (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
  25538. (WebCore::SVGPathElement::svgArcTo):
  25539. (WebCore::SVGPathElement::svgClosePath):
  25540. (WebCore::SVGPathElement::parseMappedAttribute):
  25541. (WebCore::SVGPathElement::toPathData):
  25542. * ksvg2/svg/SVGPatternElement.cpp:
  25543. (WebCore::SVGPatternElement::SVGPatternElement):
  25544. (WebCore::SVGPatternElement::parseMappedAttribute):
  25545. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  25546. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  25547. * ksvg2/svg/SVGPolyElement.cpp:
  25548. (SVGPolyElement::parseMappedAttribute):
  25549. (SVGPolyElement::svgPolyTo):
  25550. (SVGPolyElement::notifyAttributeChange):
  25551. * ksvg2/svg/SVGPolygonElement.cpp:
  25552. (SVGPolygonElement::toPathData):
  25553. * ksvg2/svg/SVGPolylineElement.cpp:
  25554. (SVGPolylineElement::toPathData):
  25555. * ksvg2/svg/SVGRadialGradientElement.cpp:
  25556. (WebCore::SVGRadialGradientElement::buildGradient):
  25557. * ksvg2/svg/SVGRenderingIntent.h: Added.
  25558. (WebCore::SVGRenderingIntent::):
  25559. (WebCore::SVGRenderingIntent::SVGRenderingIntent):
  25560. (WebCore::SVGRenderingIntent::~SVGRenderingIntent):
  25561. * ksvg2/svg/SVGSVGElement.h:
  25562. (WebCore::SVGSVGElement::):
  25563. * ksvg2/svg/SVGScriptElement.cpp:
  25564. (WebCore::SVGScriptElement::type):
  25565. (WebCore::SVGScriptElement::setType):
  25566. (WebCore::SVGScriptElement::parseMappedAttribute):
  25567. * ksvg2/svg/SVGScriptElement.h:
  25568. * ksvg2/svg/SVGStringList.cpp:
  25569. (WebCore::SVGStringList::reset):
  25570. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  25571. (SVGStyledLocatableElement::getTransformToElement):
  25572. * ksvg2/svg/SVGStyledLocatableElement.h:
  25573. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  25574. (SVGStyledTransformableElement::parseMappedAttribute):
  25575. (SVGStyledTransformableElement::getTransformToElement):
  25576. * ksvg2/svg/SVGStyledTransformableElement.h:
  25577. * ksvg2/svg/SVGTests.cpp:
  25578. (WebCore::SVGTests::hasExtension):
  25579. (WebCore::SVGTests::isValid):
  25580. * ksvg2/svg/SVGTests.h:
  25581. * ksvg2/svg/SVGTextContentElement.cpp:
  25582. (SVGTextContentElement::getSubStringLength):
  25583. (SVGTextContentElement::getStartPositionOfChar):
  25584. (SVGTextContentElement::getEndPositionOfChar):
  25585. (SVGTextContentElement::getExtentOfChar):
  25586. (SVGTextContentElement::getRotationOfChar):
  25587. (SVGTextContentElement::selectSubString):
  25588. * ksvg2/svg/SVGTextContentElement.h:
  25589. (WebCore::SVGTextContentElement::):
  25590. * ksvg2/svg/SVGTextElement.cpp:
  25591. (WebCore::SVGTextElement::parseMappedAttribute):
  25592. * ksvg2/svg/SVGTextElement.h:
  25593. (WebCore::SVGTextElement::getTransformToElement):
  25594. * ksvg2/svg/SVGTransform.h:
  25595. * ksvg2/svg/SVGTransformList.cpp:
  25596. (SVGTransformList::consolidate):
  25597. (SVGTransformList::concatenate):
  25598. * ksvg2/svg/SVGTransformable.cpp:
  25599. (SVGTransformable::parseTransformAttribute):
  25600. * ksvg2/svg/SVGUnitTypes.h: Added.
  25601. (WebCore::SVGUnitTypes::):
  25602. (WebCore::SVGUnitTypes::SVGUnitTypes):
  25603. (WebCore::SVGUnitTypes::~SVGUnitTypes):
  25604. * ksvg2/svg/SVGUseElement.cpp:
  25605. (SVGUseElement::closeRenderer):
  25606. * ksvg2/svg/SVGViewElement.h:
  25607. (WebCore::SVGViewElement::):
  25608. * ksvg2/svg/SVGZoomAndPan.cpp:
  25609. (WebCore::SVGZoomAndPan::SVGZoomAndPan):
  25610. (WebCore::SVGZoomAndPan::parseMappedAttribute):
  25611. 2006-09-12 John Sullivan <sullivan@apple.com>
  25612. Reviewed by Adele Peterson.
  25613. * bridge/mac/FrameMac.mm:
  25614. (WebCore::FrameMac::doTextFieldCommandFromEvent):
  25615. Don't call textField:doCommandBySelector: with a nil selector. This was indirectly causing a
  25616. (valid) assertion failure in some Safari code.
  25617. 2006-09-12 David Harrison <harrison@apple.com>
  25618. Reviewed by John Sullivan.
  25619. <rdar://problem/4717841> Setting AXFocused to true does not activate the insertion point in text field
  25620. * bridge/mac/WebCoreAXObject.mm:
  25621. (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
  25622. For AXFocus, use focus() if the node is an element, so that selection is set.
  25623. Matches tabbing behavior in text fields and text areas.
  25624. 2006-09-12 Adam Roben <aroben@apple.com>
  25625. Reviewed by adele.
  25626. Make uploading work with the new file upload control.
  25627. * css/html4.css: Remove unnecessary style (this is already done in
  25628. RenderFileUpload.cpp)
  25629. * html/HTMLInputElement.cpp: Don't get the button text from the value
  25630. attribute for file controls.
  25631. (WebCore::HTMLInputElement::valueWithDefault):
  25632. * platform/mac/FileChooserMac.mm: Call
  25633. RenderFileUploadControl::valueChanged when the user selects a file.
  25634. (WebCore::FileChooser::chooseFile):
  25635. * rendering/RenderFileUploadControl.cpp: Add valueChanged() method to
  25636. update the form and fire the onChange event.
  25637. (WebCore::RenderFileUploadControl::valueChanged):
  25638. (WebCore::RenderFileUploadControl::updateFromElement):
  25639. * rendering/RenderFileUploadControl.h: Add valueChanged() declaration.
  25640. 2006-09-12 Adam Roben <aroben@apple.com>
  25641. Adding rules to html4.css to style the button in file upload controls.
  25642. * css/html4.css:
  25643. 2006-09-12 Adam Roben <aroben@apple.com>
  25644. Reviewed many times by darin, hyatt.
  25645. Switch to new engine-based implementation of <input type="file">
  25646. * WebCore.exp: Remove obsolete symbol WebCoreFileButton
  25647. * WebCore.xcodeproj/project.pbxproj: Remove files for old widget-based
  25648. control, add files for new engine-based control
  25649. * css/CSSSelector.cpp: Add support for new
  25650. '-webkit-file-upload-button' pseudo element
  25651. (WebCore::CSSSelector::extractPseudoType):
  25652. * css/CSSSelector.h: Ditto.
  25653. (WebCore::CSSSelector::):
  25654. * css/cssstyleselector.cpp: Ditto.
  25655. (WebCore::CSSStyleSelector::checkOneSelector):
  25656. * html/HTMLInputElement.cpp: Send click events to new control
  25657. (WebCore::HTMLInputElement::select):
  25658. (WebCore::HTMLInputElement::click):
  25659. (WebCore::HTMLInputElement::createRenderer):
  25660. (WebCore::HTMLInputElement::valueWithDefault):
  25661. (WebCore::HTMLInputElement::defaultEventHandler):
  25662. * html/HTMLTextFieldInnerElement.h: Add 'virtual' keyword
  25663. (WebCore::HTMLTextFieldInnerElement::shadowParentNode):
  25664. * platform/FileButton.h: Removed.
  25665. * platform/FileChooser.h: Added. This is the replacement for
  25666. FileButton.h
  25667. (WebCore::FileChooser::filename):
  25668. (WebCore::FileChooser::icon):
  25669. (WebCore::FileChooser::uploadControl):
  25670. (WebCore::FileChooser::document):
  25671. * platform/Icon.h: Added new platform-specific class representing a
  25672. file icon.
  25673. * platform/LocalizedStrings.h:
  25674. * platform/mac/FileButtonMac.mm: Removed.
  25675. * platform/mac/FileChooserMac.mm: Added. This is the replacement for
  25676. FileButtonMac.mm
  25677. (-[OpenPanelController initWithFileChooser:]):
  25678. (-[OpenPanelController fileChooserDetachingSoon]):
  25679. (-[OpenPanelController beginSheet]):
  25680. (-[OpenPanelController chooseFilename:]):
  25681. (-[OpenPanelController cancel]):
  25682. (WebCore::FileChooser::FileChooser):
  25683. (WebCore::FileChooser::~FileChooser):
  25684. (WebCore::FileChooser::openFileChooser):
  25685. (WebCore::FileChooser::basenameForWidth):
  25686. (WebCore::FileChooser::uploadControlDetaching):
  25687. (WebCore::FileChooser::chooseFile):
  25688. * platform/mac/IconMac.mm: Added.
  25689. (WebCore::Icon::Icon):
  25690. (WebCore::Icon::~Icon):
  25691. (WebCore::Icon::newIconForFile):
  25692. (WebCore::Icon::paint):
  25693. * platform/mac/LocalizedStringsMac.mm: Call across bridge to get
  25694. localized strings.
  25695. (WebCore::fileButtonChooseFileLabel):
  25696. (WebCore::fileButtonNoFileSelectedLabel):
  25697. * rendering/RenderButton.cpp: Extract method setText() from
  25698. updateFromElement.
  25699. (WebCore::RenderButton::updateFromElement):
  25700. (WebCore::RenderButton::setText):
  25701. * rendering/RenderButton.h: Add declaration for new setText method.
  25702. * rendering/RenderFileButton.cpp: Removed.
  25703. * rendering/RenderFileButton.h: Removed.
  25704. * rendering/RenderFileUploadControl.cpp: Added. This is the
  25705. replacement for RenderFileButton.cpp.
  25706. (WebCore::RenderFileUploadInnerFileBox::renderName):
  25707. (WebCore::HTMLFileUploadInnerButtonElement::isShadowNode):
  25708. (WebCore::HTMLFileUploadInnerButtonElement::shadowParentNode):
  25709. (WebCore::RenderFileUploadControl::RenderFileUploadControl):
  25710. (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
  25711. (WebCore::RenderFileUploadControl::setStyle):
  25712. (WebCore::RenderFileUploadControl::updateIconAndFilename):
  25713. (WebCore::RenderFileUploadControl::click):
  25714. (WebCore::RenderFileUploadControl::updateFromElement):
  25715. (WebCore::RenderFileUploadControl::maxFilenameWidth):
  25716. (WebCore::RenderFileUploadControl::createButtonStyle):
  25717. (WebCore::RenderFileUploadControl::paintObject):
  25718. (WebCore::RenderFileUploadInnerFileBox::RenderFileUploadInnerFileBox):
  25719. (WebCore::RenderFileUploadInnerFileBox::setStyle):
  25720. (WebCore::RenderFileUploadInnerFileBox::layout):
  25721. (WebCore::RenderFileUploadInnerFileBox::setHasIcon):
  25722. (WebCore::RenderFileUploadInnerFileBox::setFilename):
  25723. (WebCore::RenderFileUploadInnerFileBox::calcMinMaxWidth):
  25724. (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
  25725. (WebCore::HTMLFileUploadInnerButtonElement::createRenderer):
  25726. * rendering/RenderFileUploadControl.h: Added. This is the replacement
  25727. for RenderFileButton.h.
  25728. (WebCore::RenderFileUploadControl::renderName):
  25729. * rendering/RenderStyle.cpp: Add support for
  25730. -webkit-file-upload-button pseudo element.
  25731. (WebCore::):
  25732. (WebCore::pseudoBit):
  25733. * rendering/RenderStyle.h: Ditto.
  25734. (WebCore::RenderStyle::):
  25735. 2006-09-12 Anders Carlsson <acarlsson@apple.com>
  25736. Reviewed by John Sullivan.
  25737. Do the plugin object cleanup in Frame::clear instead of setView.
  25738. * bridge/mac/FrameMac.h:
  25739. * bridge/mac/FrameMac.mm:
  25740. (WebCore::FrameMac::setView):
  25741. (WebCore::FrameMac::cleanupPluginObjects):
  25742. * page/Frame.cpp:
  25743. (WebCore::Frame::clear):
  25744. * page/Frame.h:
  25745. 2006-09-12 Darin Fisher <darin@chromium.org>
  25746. Reviewed/landed by aroben.
  25747. Fixes http://bugs.webkit.org/show_bug.cgi?id=10822
  25748. windows build is busted
  25749. * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing
  25750. JSRangeException.{cpp,h} to project
  25751. 2006-09-12 David Hyatt <hyatt@apple.com>
  25752. Fix fieldsets so that they properly expand to enclose overhanging floats
  25753. when the fieldset has auto height. This is a nifty undocumented behavior
  25754. of the fieldset element. The bug is 3898.
  25755. Reviewed by mjs
  25756. Added fast/forms/fieldset-with-float.html
  25757. * rendering/RenderBlock.cpp:
  25758. (WebCore::RenderBlock::layoutBlock):
  25759. * rendering/RenderFieldset.h:
  25760. (WebCore::RenderFieldset::renderName):
  25761. (WebCore::RenderFieldset::expandsToEncloseOverhangingFloats):
  25762. * rendering/RenderObject.h:
  25763. (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
  25764. * rendering/RenderTableCell.h:
  25765. (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats):
  25766. 2006-09-11 Eric Seidel <eric@webkit.org>
  25767. Reviewed by hyatt.
  25768. REGRESSION: When dragging a link on a page, the selected link doesn't display it's name or URL
  25769. http://bugs.webkit.org/show_bug.cgi?id=10819
  25770. http://bugs.webkit.org/show_bug.cgi?id=10814
  25771. No test cases were harmed in the coding of the patch.
  25772. * platform/mac/WebCoreTextRenderer.mm:
  25773. (WebCoreDrawTextAtPoint):
  25774. 2006-09-11 David Hyatt <hyatt@apple.com>
  25775. Fix for bug 8126, column widths apply to the border boxes of cells.
  25776. Reviewed by aroben
  25777. * rendering/RenderTableCell.cpp:
  25778. (WebCore::RenderTableCell::styleOrColWidth):
  25779. 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
  25780. Reviewed by Adele.
  25781. Fix Qt/Linux build.
  25782. * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.
  25783. 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
  25784. Reviewed by eseidel. Landed by eseidel.
  25785. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10750
  25786. This finally fixes the SVGAnimated* classes JS bindings!
  25787. - Move all SVGAnimated*.idl files from ksvg2/bindings/idl/svg to ksvg2/svg
  25788. - Adjust XCode/Qt build files to generate the new idl files
  25789. - Remove all SVGAnimated* primitives cpp implementations (Angle/Boolean/Color/Enumeration/Integer/Length/
  25790. LengthList/Number/NumberList/PreserveAspectRatio/
  25791. Rect/String/TransformList)
  25792. - Remove unneeded methods from CodeGenerator.pm and add new helper function: IsSVGAnimatedType
  25793. - Adjust CodeGeneratorJS.pm to the new SVGAnimated* tear-off concept
  25794. - Add two new macros: ANIMATED_PROPERTY_EMPTY_DECLARATIONS / ANIMATED_PROPERTY_FORWARD_DECLARATIONS.
  25795. This is used to fix multiple-inheritance issues in SVG with properties,
  25796. similar like SVGTests::isValid() was fixed.
  25797. - Rewrote SVGList using WTF::Vector, instead of DeprecatedPtrList and killed DOMList.
  25798. (SVGAnimated*Lists work again now)
  25799. - Adjust macros in SVGElement to create the "*Animated" tear-off classes.
  25800. - Adjust all SVG classes which use the ANIMATED macros to include the ClassName as first param in the header.
  25801. * CMakeLists.txt:
  25802. * DerivedSources.make:
  25803. * WebCore.xcodeproj/project.pbxproj:
  25804. * bindings/scripts/CodeGenerator.pm:
  25805. * bindings/scripts/CodeGeneratorJS.pm:
  25806. * kcanvas/RenderSVGImage.cpp:
  25807. (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
  25808. (WebCore::RenderSVGImage::paint):
  25809. * kcanvas/RenderSVGText.cpp:
  25810. (WebCore::RenderSVGText::translationForAttributes):
  25811. * ksvg2/ksvg.h:
  25812. * ksvg2/misc/SVGDocumentExtensions.h:
  25813. (WebCore::FloatRect):
  25814. * ksvg2/svg/SVGAElement.h:
  25815. * ksvg2/svg/SVGAnimateColorElement.cpp:
  25816. * ksvg2/svg/SVGAnimateColorElement.h:
  25817. * ksvg2/svg/SVGAnimateTransformElement.h:
  25818. * ksvg2/svg/SVGAnimatedTemplate.h:
  25819. (WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
  25820. * ksvg2/svg/SVGAnimationElement.h:
  25821. * ksvg2/svg/SVGCircleElement.h:
  25822. * ksvg2/svg/SVGClipPathElement.h:
  25823. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  25824. (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
  25825. (SVGComponentTransferFunctionElement::transferFunction):
  25826. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  25827. * ksvg2/svg/SVGCursorElement.h:
  25828. * ksvg2/svg/SVGDefsElement.h:
  25829. * ksvg2/svg/SVGElement.h:
  25830. * ksvg2/svg/SVGElementInstanceList.cpp:
  25831. (WebCore::SVGElementInstanceList::SVGElementInstanceList):
  25832. * ksvg2/svg/SVGElementInstanceList.h:
  25833. * ksvg2/svg/SVGEllipseElement.h:
  25834. * ksvg2/svg/SVGExternalResourcesRequired.h:
  25835. * ksvg2/svg/SVGFEBlendElement.h:
  25836. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  25837. (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
  25838. (SVGFEColorMatrixElement::parseMappedAttribute):
  25839. (SVGFEColorMatrixElement::filterEffect):
  25840. * ksvg2/svg/SVGFEColorMatrixElement.h:
  25841. * ksvg2/svg/SVGFEComponentTransferElement.h:
  25842. * ksvg2/svg/SVGFECompositeElement.h:
  25843. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  25844. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  25845. * ksvg2/svg/SVGFEFloodElement.h:
  25846. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  25847. * ksvg2/svg/SVGFEImageElement.h:
  25848. * ksvg2/svg/SVGFELightElement.h:
  25849. * ksvg2/svg/SVGFEMergeNodeElement.h:
  25850. * ksvg2/svg/SVGFEOffsetElement.h:
  25851. * ksvg2/svg/SVGFESpecularLightingElement.h:
  25852. * ksvg2/svg/SVGFETileElement.h:
  25853. * ksvg2/svg/SVGFETurbulenceElement.h:
  25854. * ksvg2/svg/SVGFilterElement.h:
  25855. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  25856. * ksvg2/svg/SVGFitToViewBox.cpp:
  25857. (WebCore::SVGFitToViewBox::SVGFitToViewBox):
  25858. (WebCore::SVGFitToViewBox::parseViewBox):
  25859. (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
  25860. * ksvg2/svg/SVGFitToViewBox.h:
  25861. * ksvg2/svg/SVGForeignObjectElement.h:
  25862. * ksvg2/svg/SVGGElement.h:
  25863. * ksvg2/svg/SVGGradientElement.cpp:
  25864. (SVGGradientElement::SVGGradientElement):
  25865. * ksvg2/svg/SVGGradientElement.h:
  25866. * ksvg2/svg/SVGHelper.cpp:
  25867. (WebCore::SVGHelper::PercentageOfViewport):
  25868. * ksvg2/svg/SVGImageElement.h:
  25869. * ksvg2/svg/SVGLength.cpp:
  25870. * ksvg2/svg/SVGLengthList.cpp:
  25871. (WebCore::SVGLengthList::SVGLengthList):
  25872. (WebCore::SVGLengthList::parse):
  25873. * ksvg2/svg/SVGLengthList.h:
  25874. * ksvg2/svg/SVGLineElement.h:
  25875. * ksvg2/svg/SVGLinearGradientElement.h:
  25876. * ksvg2/svg/SVGList.h:
  25877. (WebCore::SVGListBase::SVGListBase):
  25878. (WebCore::SVGListBase::~SVGListBase):
  25879. (WebCore::SVGListBase::numberOfItems):
  25880. (WebCore::SVGListBase::clear):
  25881. (WebCore::SVGListBase::initialize):
  25882. (WebCore::SVGListBase::getFirst):
  25883. (WebCore::SVGListBase::getLast):
  25884. (WebCore::SVGListBase::getItem):
  25885. (WebCore::SVGListBase::insertItemBefore):
  25886. (WebCore::SVGListBase::replaceItem):
  25887. (WebCore::SVGListBase::removeItem):
  25888. (WebCore::SVGListBase::appendItem):
  25889. (WebCore::SVGList::nullItem):
  25890. (WebCore::):
  25891. * ksvg2/svg/SVGLocatable.cpp:
  25892. * ksvg2/svg/SVGMarkerElement.h:
  25893. * ksvg2/svg/SVGMaskElement.h:
  25894. * ksvg2/svg/SVGNumberList.cpp:
  25895. (SVGNumberList::SVGNumberList):
  25896. (SVGNumberList::parse):
  25897. * ksvg2/svg/SVGNumberList.h:
  25898. * ksvg2/svg/SVGPathElement.cpp:
  25899. (WebCore::SVGPathElement::pathSegList):
  25900. * ksvg2/svg/SVGPathElement.h:
  25901. * ksvg2/svg/SVGPathSegList.cpp:
  25902. (WebCore::SVGPathSegList::SVGPathSegList):
  25903. * ksvg2/svg/SVGPathSegList.h:
  25904. * ksvg2/svg/SVGPatternElement.cpp:
  25905. (WebCore::SVGPatternElement::SVGPatternElement):
  25906. * ksvg2/svg/SVGPatternElement.h:
  25907. * ksvg2/svg/SVGPointList.cpp:
  25908. (SVGPointList::SVGPointList):
  25909. * ksvg2/svg/SVGPointList.h:
  25910. * ksvg2/svg/SVGPolyElement.cpp:
  25911. (SVGPolyElement::points):
  25912. (SVGPolyElement::svgPolyTo):
  25913. (SVGPolyElement::notifyAttributeChange):
  25914. * ksvg2/svg/SVGPolyElement.h:
  25915. * ksvg2/svg/SVGPolygonElement.cpp:
  25916. (SVGPolygonElement::toPathData):
  25917. * ksvg2/svg/SVGPolylineElement.cpp:
  25918. (SVGPolylineElement::toPathData):
  25919. * ksvg2/svg/SVGPreserveAspectRatio.h:
  25920. (WebCore::SVGPreserveAspectRatio::):
  25921. * ksvg2/svg/SVGRadialGradientElement.h:
  25922. * ksvg2/svg/SVGRectElement.h:
  25923. * ksvg2/svg/SVGSVGElement.cpp:
  25924. (WebCore::SVGSVGElement::SVGSVGElement):
  25925. (WebCore::SVGSVGElement::parseMappedAttribute):
  25926. (WebCore::SVGSVGElement::createRenderer):
  25927. * ksvg2/svg/SVGSVGElement.h:
  25928. * ksvg2/svg/SVGScriptElement.h:
  25929. * ksvg2/svg/SVGStopElement.h:
  25930. * ksvg2/svg/SVGStringList.cpp:
  25931. (WebCore::SVGStringList::SVGStringList):
  25932. (WebCore::SVGStringList::reset):
  25933. * ksvg2/svg/SVGStringList.h:
  25934. * ksvg2/svg/SVGStyledElement.h:
  25935. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  25936. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  25937. (SVGStyledTransformableElement::SVGStyledTransformableElement):
  25938. * ksvg2/svg/SVGStyledTransformableElement.h:
  25939. * ksvg2/svg/SVGSwitchElement.h:
  25940. * ksvg2/svg/SVGSymbolElement.h:
  25941. * ksvg2/svg/SVGTRefElement.h:
  25942. * ksvg2/svg/SVGTests.cpp:
  25943. (WebCore::SVGTests::isValid):
  25944. * ksvg2/svg/SVGTextContentElement.h:
  25945. * ksvg2/svg/SVGTextElement.cpp:
  25946. (WebCore::SVGTextElement::SVGTextElement):
  25947. * ksvg2/svg/SVGTextElement.h:
  25948. * ksvg2/svg/SVGTextPositioningElement.cpp:
  25949. (SVGTextPositioningElement::SVGTextPositioningElement):
  25950. (SVGTextPositioningElement::parseMappedAttribute):
  25951. * ksvg2/svg/SVGTextPositioningElement.h:
  25952. * ksvg2/svg/SVGTransformList.cpp:
  25953. (SVGTransformList::SVGTransformList):
  25954. (SVGTransformList::createSVGTransformFromMatrix):
  25955. (SVGTransformList::consolidate):
  25956. (SVGTransformList::concatenate):
  25957. * ksvg2/svg/SVGTransformList.h:
  25958. * ksvg2/svg/SVGURIReference.h:
  25959. * ksvg2/svg/SVGUseElement.h:
  25960. * ksvg2/svg/SVGViewElement.h:
  25961. 2006-09-11 Adam Roben <aroben@apple.com>
  25962. Rubberstamped by Adele.
  25963. Rename LocalGraphicsContext.{h,mm} to
  25964. LocalCurrentGraphicsContext.{h,mm} to match the class name.
  25965. * WebCore.xcodeproj/project.pbxproj:
  25966. * platform/mac/LocalCurrentGraphicsContext.mm: Added.
  25967. * platform/mac/LocalCurrentGraphicsContext.h: Added.
  25968. * platform/mac/LocalGraphicsContext.h: Removed.
  25969. * platform/mac/LocalGraphicsContext.mm: Removed.
  25970. * rendering/RenderThemeMac.mm: Fix #include to match renamed file
  25971. 2006-09-11 Brady Eidson <beidson@apple.com>
  25972. Build fix
  25973. * WebCore.xcodeproj/project.pbxproj:
  25974. 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
  25975. Reviewed by Darin.
  25976. - Implements comparePoint on the Range class
  25977. - Exposes RangeExceptions in JavaScript
  25978. * DerivedSources.make:
  25979. * WebCore.xcodeproj/project.pbxproj:
  25980. * bindings/js/kjs_binding.cpp:
  25981. * bindings/objc/DOMInternal.mm:
  25982. * dom/Range.cpp:
  25983. (WebCore::Range::comparePoint):
  25984. (WebCore::Range::compareNode):
  25985. * dom/Range.h:
  25986. (WebCore::Range::):
  25987. * dom/Range.idl:
  25988. * dom/RangeException.h: Added.
  25989. (WebCore::):
  25990. * dom/RangeException.idl: Added.
  25991. * page/DOMWindow.idl:
  25992. 2006-09-11 Adam Roben <aroben@apple.com>
  25993. Reviewed by timo.
  25994. Fixes http://bugs.webkit.org/show_bug.cgi?id=10812
  25995. Move LocalGraphicsContext out of RenderThemeMac
  25996. * WebCore.xcodeproj/project.pbxproj:
  25997. * platform/mac/LocalGraphicsContext.h: Added.
  25998. * platform/mac/LocalGraphicsContext.mm: Added.
  25999. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
  26000. (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
  26001. * rendering/RenderThemeMac.mm:
  26002. 2006-09-11 Vladimir Olexa <vladimir.olexa@gmail.com>
  26003. Reviewed by Darin.
  26004. - fix http://bugs.webkit.org/show_bug.cgi?id=10323
  26005. REGRESSION: javascript: URL containing '\\' gets passed as '//'
  26006. Test: fast/dom/javascript-backslash.html
  26007. * platform/KURL.cpp: (WebCore::KURL::init): Don't do backslash
  26008. substitution in JavaScript URLs.
  26009. 2006-09-11 Sam Weinig <sam.weinig@gmail.com>
  26010. Reviewed by Darin and Tim H.
  26011. Patch for http://bugs.webkit.org/show_bug.cgi?id=10792
  26012. Remove the [Exclude=LANGUAGE] idiom from IDL's and code generators
  26013. for something better
  26014. - Replaces [Exclude=LANGUAGE] idiom with preprocessor #if defined(LANGUAGE)
  26015. idiom.
  26016. - Assorted whitespace changes to IDL files.
  26017. * DerivedSources.make:
  26018. * WebCore.xcodeproj/project.pbxproj:
  26019. * bindings/objc/DOMEvents.h:
  26020. * bindings/scripts/CodeGenerator.pm:
  26021. * bindings/scripts/CodeGeneratorJS.pm:
  26022. * bindings/scripts/CodeGeneratorObjC.pm:
  26023. * css/CSSRule.idl:
  26024. * css/CSSStyleDeclaration.idl:
  26025. * css/CSSValue.idl:
  26026. * dom/DOMImplementation.idl:
  26027. * dom/Document.idl:
  26028. * dom/Element.idl:
  26029. * dom/Event.idl:
  26030. * dom/KeyboardEvent.idl:
  26031. * dom/MouseEvent.idl:
  26032. * dom/NamedNodeMap.idl:
  26033. * dom/NodeFilter.idl:
  26034. * dom/UIEvent.idl:
  26035. * dom/WheelEvent.idl:
  26036. * html/HTMLAnchorElement.idl:
  26037. * html/HTMLAreaElement.idl:
  26038. * html/HTMLDocument.idl:
  26039. * html/HTMLElement.idl:
  26040. * html/HTMLImageElement.idl:
  26041. * html/HTMLInputElement.idl:
  26042. * html/HTMLLinkElement.idl:
  26043. * html/HTMLOptionsCollection.idl:
  26044. 2006-09-11 David Hyatt <hyatt@apple.com>
  26045. Fix an unwitting victim of the kMin->min change. calcBlockMinMaxWidth
  26046. was accidentally renamed to calcBlominMaxWidth.
  26047. * rendering/RenderBlock.cpp:
  26048. (WebCore::RenderBlock::calcMinMaxWidth):
  26049. (WebCore::RenderBlock::calcBlockMinMaxWidth):
  26050. * rendering/RenderBlock.h:
  26051. 2006-09-10 David Hyatt <hyatt@apple.com>
  26052. Rework the printer font stuff a little bit so that the Font API doesn't
  26053. have to be changed.
  26054. Reviewed by eseidel
  26055. * WebCore.xcodeproj/project.pbxproj:
  26056. * bridge/mac/WebCoreStringTruncator.mm:
  26057. (truncateString):
  26058. (+[WebCoreStringTruncator widthOfString:font:]):
  26059. * platform/Font.cpp:
  26060. (WebCore::Font::drawSimpleText):
  26061. * platform/Font.h:
  26062. * platform/TextStyle.h:
  26063. (WebCore::TextStyle::TextStyle):
  26064. (WebCore::TextStyle::attemptFontSubstitution):
  26065. (WebCore::TextStyle::setRTL):
  26066. * platform/mac/FontMac.mm:
  26067. (WebCore::m_wordSpacing):
  26068. (WebCore::Font::drawGlyphs):
  26069. * platform/mac/ListBoxMac.mm:
  26070. (itemTextRenderer):
  26071. (groupLabelTextRenderer):
  26072. (-[WebCoreTableView drawRow:clipRect:]):
  26073. * platform/mac/PopUpButtonMac.mm:
  26074. (PopUpButton::sizeHint):
  26075. * platform/mac/TextFieldMac.mm:
  26076. (-[NSSearchFieldCell _addStringToRecentSearches:]):
  26077. * platform/mac/WebCoreTextRenderer.mm:
  26078. (WebCoreDrawTextAtPoint):
  26079. (WebCoreTextFloatWidth):
  26080. * rendering/EllipsisBox.cpp:
  26081. (WebCore::EllipsisBox::paint):
  26082. * rendering/InlineTextBox.cpp:
  26083. (WebCore::InlineTextBox::paint):
  26084. * rendering/RenderImage.cpp:
  26085. (WebCore::RenderImage::paint):
  26086. * rendering/RenderListMarker.cpp:
  26087. (WebCore::RenderListMarker::paint):
  26088. 2006-09-10 Brady Eidson <beidson@apple.com>
  26089. Reviewed by Maciej
  26090. Small cleanups + future plans
  26091. * loader/icon/IconDatabase.cpp:
  26092. (WebCore::IconDatabase::open): path separator cleanup
  26093. * platform/Image.h:
  26094. 2006-09-10 Brady Eidson <beidson@apple.com>
  26095. Reviewed by Maciej
  26096. Added specialized HashTraits
  26097. * platform/IntSizeHash.h:
  26098. 2006-09-10 Brady Eidson <beidson@apple.com>
  26099. Forgetting header #define protection is BAAAAAD
  26100. (and re-alphabetized the project file)
  26101. * WebCore.xcodeproj/project.pbxproj:
  26102. * platform/IntSizeHash.h:
  26103. 2006-09-10 Brady Eidson <beidson@apple.com>
  26104. Reviewed by Maciej
  26105. Moved the custom IntSize hash out of IconDatabase into a more generally useful file
  26106. * WebCore.xcodeproj/project.pbxproj:
  26107. * loader/icon/IconDatabase.h:
  26108. * platform/IntSizeHash.h: Added.
  26109. 2006-09-10 David Hyatt <hyatt@apple.com>
  26110. Fix for bug 10801, form controls that get styled suddenly lose their
  26111. intrinsic margins. Move the intrinsic margin addition code into
  26112. adjustRenderStyle and get it out of the theme code and the old form control
  26113. code.
  26114. Reviewed by aroben
  26115. * css/cssstyleselector.cpp:
  26116. (WebCore::addIntrinsicMargins):
  26117. (WebCore::CSSStyleSelector::adjustRenderStyle):
  26118. * css/html4.css:
  26119. * rendering/DeprecatedRenderSelect.h:
  26120. (WebCore::DeprecatedRenderSelect::calcReplacedHeight):
  26121. * rendering/DeprecatedSlider.h:
  26122. * rendering/RenderFormElement.cpp:
  26123. (WebCore::RenderFormElement::setStyle):
  26124. * rendering/RenderFormElement.h:
  26125. * rendering/RenderLayer.cpp:
  26126. (WebCore::RenderLayer::resize):
  26127. * rendering/RenderThemeMac.h:
  26128. * rendering/RenderThemeMac.mm:
  26129. (WebCore::RenderThemeMac::adjustButtonStyle):
  26130. (WebCore::RenderThemeMac::adjustTextFieldStyle):
  26131. (WebCore::RenderThemeMac::adjustTextAreaStyle):
  26132. (WebCore::RenderThemeMac::adjustMenuListStyle):
  26133. (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
  26134. * rendering/RenderThemeWin.cpp:
  26135. (WebCore::RenderThemeWin::adjustButtonStyle):
  26136. (WebCore::RenderThemeWin::adjustTextFieldStyle):
  26137. (WebCore::RenderThemeWin::adjustTextAreaStyle):
  26138. 2006-09-10 Darin Adler <darin@apple.com>
  26139. - test for http://bugs.webkit.org/show_bug.cgi?id=10547
  26140. * manual-tests/target-test.html: Added.
  26141. * manual-tests/targeted.html: Added.
  26142. 2006-09-10 Eric Seidel <eric@webkit.org>
  26143. Reviewed by darin.
  26144. Remove a bunch more NSGraphicsContext related code.
  26145. Add a LocalCurrentGraphicsContext to simplify methods which need to call up into AppKit controls (and thus depend on the [NSGraphicsContext currentContext] being set correctly)
  26146. Add an "isPrinting" flag to many of the text drawing functions in order to avoid the need for a GraphicsContext::isPrinting() function.
  26147. No tests were harmed in the making of this patch.
  26148. * bridge/mac/WebCoreFrameBridge.mm:
  26149. (-[WebCoreFrameBridge drawRect:]):
  26150. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  26151. (WebCore::KRenderingDeviceContextQuartz::cgContext):
  26152. (WebCore::KRenderingDeviceQuartz::isBuffered):
  26153. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  26154. (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
  26155. (WebCore::KRenderingDeviceContextQuartz::~KRenderingDeviceContextQuartz):
  26156. * kcanvas/device/quartz/QuartzSupport.mm:
  26157. * platform/Font.cpp:
  26158. (WebCore::Font::drawSimpleText):
  26159. (WebCore::Font::drawText):
  26160. * platform/Font.h:
  26161. * platform/GraphicsContext.cpp:
  26162. (WebCore::GraphicsContext::drawText):
  26163. * platform/GraphicsContext.h:
  26164. * platform/mac/FileButtonMac.mm:
  26165. (-[WebFileChooserButton drawRect:]):
  26166. * platform/mac/FontMac.mm:
  26167. (WebCore::ATSULayoutParameters::ATSULayoutParameters):
  26168. (WebCore::ATSULayoutParameters::initialize):
  26169. (WebCore::Font::drawComplexText):
  26170. (WebCore::Font::drawGlyphs):
  26171. * platform/mac/GraphicsContextMac.mm:
  26172. (WebCore::GraphicsContext::drawLineForMisspelling):
  26173. * platform/mac/ListBoxMac.mm:
  26174. (-[WebCoreTableView drawRow:clipRect:]):
  26175. * platform/mac/WebCoreTextRenderer.mm:
  26176. (WebCoreDrawTextAtPoint):
  26177. * rendering/EllipsisBox.cpp:
  26178. (WebCore::EllipsisBox::paint):
  26179. * rendering/InlineTextBox.cpp:
  26180. (WebCore::InlineTextBox::paint):
  26181. * rendering/RenderImage.cpp:
  26182. (WebCore::RenderImage::paint):
  26183. * rendering/RenderListMarker.cpp:
  26184. (WebCore::RenderListMarker::paint):
  26185. * rendering/RenderThemeMac.mm:
  26186. (WebCore::WebCoreNSGraphicsContextBridge::WebCoreNSGraphicsContextBridge):
  26187. (WebCore::WebCoreNSGraphicsContextBridge::~WebCoreNSGraphicsContextBridge):
  26188. (WebCore::RenderThemeMac::paintButton):
  26189. (WebCore::RenderThemeMac::paintTextField):
  26190. (WebCore::RenderThemeMac::paintTextArea):
  26191. 2006-09-09 Steve Falkenburg <sfalken@apple.com>
  26192. Reviewed by aroben.
  26193. Fixes to work with string API changes.
  26194. * platform/cf/ResourceLoaderCFNet.cpp:
  26195. (WebCore::arrayFromFormData):
  26196. (WebCore::ResourceLoader::start):
  26197. * platform/cf/StringCF.cpp:
  26198. * platform/cf/StringImplCF.cpp:
  26199. 2006-09-09 David Hyatt <hyatt@apple.com>
  26200. Fix for Bugzilla bug 5500, scrollLeft/Top/Width/Height properties not supported
  26201. on textarea. Refactored the DOM getters and setters to go through the renderer
  26202. instead of right to the layer. The renderer functions are virtual so that the
  26203. text control can subclass and forward to its anonymous div.
  26204. Fix for Bugzilla bug 10719, When positioned objects are sizing using their
  26205. containing block width as a guide, they should not ever use the line width like
  26206. non-positioned objects do.
  26207. Reviewed by aroben
  26208. * WebCore.xcodeproj/project.pbxproj:
  26209. * dom/Element.cpp:
  26210. (WebCore::Element::scrollLeft):
  26211. (WebCore::Element::scrollTop):
  26212. (WebCore::Element::setScrollLeft):
  26213. (WebCore::Element::setScrollTop):
  26214. * rendering/RenderBox.cpp:
  26215. (WebCore::RenderBox::containingBlockWidthForPositioned):
  26216. * rendering/RenderObject.cpp:
  26217. (WebCore::RenderObject::clientWidth):
  26218. (WebCore::RenderObject::clientHeight):
  26219. (WebCore::RenderObject::scrollWidth):
  26220. (WebCore::RenderObject::scrollHeight):
  26221. (WebCore::RenderObject::scrollLeft):
  26222. (WebCore::RenderObject::scrollTop):
  26223. (WebCore::RenderObject::setScrollLeft):
  26224. (WebCore::RenderObject::setScrollTop):
  26225. (WebCore::RenderObject::hasStaticX):
  26226. (WebCore::RenderObject::hasStaticY):
  26227. * rendering/RenderObject.h:
  26228. (WebCore::RenderObject::clientLeft):
  26229. (WebCore::RenderObject::clientTop):
  26230. * rendering/RenderTextControl.cpp:
  26231. (WebCore::RenderTextControl::scrollWidth):
  26232. (WebCore::RenderTextControl::scrollHeight):
  26233. (WebCore::RenderTextControl::scrollLeft):
  26234. (WebCore::RenderTextControl::scrollTop):
  26235. (WebCore::RenderTextControl::setScrollLeft):
  26236. (WebCore::RenderTextControl::setScrollTop):
  26237. * rendering/RenderTextControl.h:
  26238. 2006-09-09 David Hyatt <hyatt@apple.com>
  26239. Implement support for the WinIE clientLeft and clientTop extensions.
  26240. Reviewed by aroben
  26241. * dom/Element.cpp:
  26242. (WebCore::Element::clientLeft):
  26243. (WebCore::Element::clientTop):
  26244. * dom/Element.h:
  26245. * dom/Element.idl:
  26246. * rendering/RenderObject.h:
  26247. (WebCore::RenderObject::clientLeft):
  26248. (WebCore::RenderObject::clientTop):
  26249. 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
  26250. Reviewed by Eric.
  26251. Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
  26252. Auto-generate the Objective-C DOM XPath bindings
  26253. - Auto-generates DOMXPathExpression, DOMXPathNSResolver and DOMXPathResult.
  26254. * DerivedSources.make:
  26255. * WebCore.xcodeproj/project.pbxproj:
  26256. * bindings/objc/DOMPrivate.h:
  26257. * bindings/objc/DOMXPath.h:
  26258. * bindings/objc/DOMXPath.mm:
  26259. * bindings/objc/PublicDOMInterfaces.h:
  26260. * xml/XPathExpression.idl:
  26261. * xml/XPathNSResolver.idl:
  26262. * xml/XPathResult.idl:
  26263. 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
  26264. Reviewed by Eric.
  26265. Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
  26266. Even More Objective-C DOM auto-generation cleanup
  26267. - Auto-generate some remaining extension methods for DOMDocument
  26268. and DOMCSSStyleDeclaration.
  26269. - Split DOMHTMLEmbedElement into it's own files. It can't be
  26270. auto-generated yet because the Objective-C interface is significantly
  26271. different from the implementation interface. Since HTMLEmbedElement
  26272. is not in the W3C spec, this is somewhat of a gray area.
  26273. - Auto-generate DOMEventListener protocol.
  26274. - Clean up the IDL files by separating the extensions from the
  26275. specified methods and attributes.
  26276. * DerivedSources.make:
  26277. * WebCore.xcodeproj/project.pbxproj:
  26278. * bindings/objc/DOM.mm:
  26279. * bindings/objc/DOMCSS.mm:
  26280. * bindings/objc/DOMEventListener.h: Removed.
  26281. * bindings/objc/DOMExtensions.h:
  26282. * bindings/objc/DOMHTML.h:
  26283. * bindings/objc/DOMHTML.mm:
  26284. * bindings/objc/DOMHTMLEmbedElement.h: Added.
  26285. * bindings/objc/DOMHTMLEmbedElement.mm: Added.
  26286. (-[DOMHTMLEmbedElement align]):
  26287. (-[DOMHTMLEmbedElement setAlign:]):
  26288. (-[DOMHTMLEmbedElement height]):
  26289. (-[DOMHTMLEmbedElement setHeight:]):
  26290. (-[DOMHTMLEmbedElement name]):
  26291. (-[DOMHTMLEmbedElement setName:]):
  26292. (-[DOMHTMLEmbedElement src]):
  26293. (-[DOMHTMLEmbedElement setSrc:]):
  26294. (-[DOMHTMLEmbedElement type]):
  26295. (-[DOMHTMLEmbedElement setType:]):
  26296. (-[DOMHTMLEmbedElement width]):
  26297. (-[DOMHTMLEmbedElement setWidth:]):
  26298. * bindings/objc/DOMPrivate.h:
  26299. * bindings/objc/PublicDOMInterfaces.h:
  26300. * css/CSSStyleDeclaration.idl:
  26301. * dom/Document.idl:
  26302. * dom/KeyboardEvent.h:
  26303. * dom/KeyboardEvent.idl:
  26304. * dom/MouseEvent.idl:
  26305. * dom/MutationEvent.idl:
  26306. * dom/OverflowEvent.idl:
  26307. * dom/UIEvent.idl:
  26308. * dom/WheelEvent.idl:
  26309. * html/HTMLEmbedElement.idl: Added.
  26310. 2006-09-09 Eric Seidel <eric@webkit.org>
  26311. Reviewed by Tim H.
  26312. Remove DeprecatedString usage and fix style.
  26313. http://bugs.webkit.org/show_bug.cgi?id=10787
  26314. No tests were harmed in the making of this patch.
  26315. * kcanvas/KCanvasFilters.cpp:
  26316. (WebCore::KCanvasFilterEffect::in):
  26317. (WebCore::KCanvasFilterEffect::setIn):
  26318. (WebCore::KCanvasFilterEffect::result):
  26319. (WebCore::KCanvasFilterEffect::setResult):
  26320. (WebCore::KCanvasFEMerge::externalRepresentation):
  26321. * kcanvas/KCanvasFilters.h:
  26322. (WebCore::KCanvasFEBlend::in2):
  26323. (WebCore::KCanvasFEBlend::setIn2):
  26324. (WebCore::KCanvasFEComposite::in2):
  26325. (WebCore::KCanvasFEComposite::setIn2):
  26326. (WebCore::KCanvasFEDisplacementMap::in2):
  26327. (WebCore::KCanvasFEDisplacementMap::setIn2):
  26328. (WebCore::KCanvasFEMerge::mergeInputs):
  26329. (WebCore::KCanvasFEMerge::setMergeInputs):
  26330. * kcanvas/KCanvasResources.cpp:
  26331. (WebCore::KCanvasResource::idInRegistry):
  26332. (WebCore::KCanvasResource::setIdInRegistry):
  26333. (WebCore::getResourceById):
  26334. * kcanvas/KCanvasResources.h:
  26335. * kcanvas/RenderPath.cpp:
  26336. (WebCore::RenderPath::getAbsoluteRepaintRect):
  26337. (WebCore::RenderPath::paint):
  26338. (WebCore::RenderPath::drawMarkersIfNeeded):
  26339. * kcanvas/RenderSVGContainer.cpp:
  26340. (WebCore::RenderSVGContainer::paint):
  26341. (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
  26342. * kcanvas/RenderSVGImage.cpp:
  26343. (WebCore::RenderSVGImage::paint):
  26344. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  26345. * kcanvas/RenderSVGText.cpp:
  26346. (WebCore::RenderSVGText::paint):
  26347. * kcanvas/device/KRenderingPaintServer.h:
  26348. (WebCore::KRenderingPaintServer::idInRegistry):
  26349. (WebCore::KRenderingPaintServer::setIdInRegistry):
  26350. * kcanvas/device/quartz/KCanvasFilterQuartz.h:
  26351. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  26352. (WebCore::KCanvasFilterQuartz::imageForName):
  26353. (WebCore::KCanvasFilterQuartz::setImageForName):
  26354. (WebCore::KCanvasFEMergeQuartz::getCIFilter):
  26355. * ksvg2/css/SVGCSSStyleSelector.cpp:
  26356. (WebCore::CSSStyleSelector::applySVGProperty):
  26357. * ksvg2/css/SVGRenderStyle.cpp:
  26358. * ksvg2/css/SVGRenderStyle.h:
  26359. * ksvg2/css/SVGRenderStyleDefs.h:
  26360. * ksvg2/ecma/GlobalObject.cpp:
  26361. (GlobalObject::get):
  26362. * ksvg2/misc/KSVGTimeScheduler.cpp:
  26363. (WebCore::SVGTimer::notifyAll):
  26364. * ksvg2/svg/SVGDescElement.cpp:
  26365. (WebCore::SVGDescElement::SVGDescElement):
  26366. (WebCore::SVGDescElement::description):
  26367. * ksvg2/svg/SVGDescElement.h:
  26368. * ksvg2/svg/SVGFEBlendElement.cpp:
  26369. (WebCore::SVGFEBlendElement::SVGFEBlendElement):
  26370. (WebCore::SVGFEBlendElement::filterEffect):
  26371. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  26372. (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
  26373. (SVGFEColorMatrixElement::filterEffect):
  26374. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  26375. (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
  26376. (WebCore::SVGFEComponentTransferElement::filterEffect):
  26377. * ksvg2/svg/SVGFECompositeElement.cpp:
  26378. (SVGFECompositeElement::SVGFECompositeElement):
  26379. (SVGFECompositeElement::filterEffect):
  26380. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  26381. (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
  26382. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  26383. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  26384. (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
  26385. (SVGFEDisplacementMapElement::filterEffect):
  26386. * ksvg2/svg/SVGFEFloodElement.cpp:
  26387. (WebCore::SVGFEFloodElement::SVGFEFloodElement):
  26388. (WebCore::SVGFEFloodElement::filterEffect):
  26389. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  26390. (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
  26391. (SVGFEGaussianBlurElement::filterEffect):
  26392. * ksvg2/svg/SVGFELightElement.cpp:
  26393. * ksvg2/svg/SVGFEMergeElement.cpp:
  26394. (SVGFEMergeElement::filterEffect):
  26395. * ksvg2/svg/SVGFEOffsetElement.cpp:
  26396. (SVGFEOffsetElement::SVGFEOffsetElement):
  26397. (SVGFEOffsetElement::filterEffect):
  26398. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  26399. (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
  26400. (SVGFESpecularLightingElement::filterEffect):
  26401. * ksvg2/svg/SVGFETileElement.cpp:
  26402. (WebCore::SVGFETileElement::SVGFETileElement):
  26403. (WebCore::SVGFETileElement::filterEffect):
  26404. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  26405. (SVGFETurbulenceElement::SVGFETurbulenceElement):
  26406. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  26407. (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  26408. * ksvg2/svg/SVGFitToViewBox.cpp:
  26409. (WebCore::SVGFitToViewBox::parseViewBox):
  26410. (WebCore::SVGFitToViewBox::parseMappedAttribute):
  26411. * ksvg2/svg/SVGFitToViewBox.h:
  26412. * ksvg2/svg/SVGLinearGradientElement.cpp:
  26413. (SVGLinearGradientElement::buildGradient):
  26414. * ksvg2/svg/SVGPatternElement.cpp:
  26415. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  26416. (WebCore::SVGPatternElement::notifyAttributeChange):
  26417. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  26418. (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
  26419. (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
  26420. (WebCore::SVGPreserveAspectRatio::getCTM):
  26421. * ksvg2/svg/SVGPreserveAspectRatio.h:
  26422. * ksvg2/svg/SVGRadialGradientElement.cpp:
  26423. (WebCore::SVGRadialGradientElement::buildGradient):
  26424. * ksvg2/svg/SVGStyleElement.cpp:
  26425. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  26426. * ksvg2/svg/SVGViewElement.cpp:
  26427. (WebCore::SVGViewElement::SVGViewElement):
  26428. (WebCore::SVGViewElement::parseMappedAttribute):
  26429. * ksvg2/svg/SVGZoomAndPan.cpp:
  26430. (WebCore::SVGZoomAndPan::SVGZoomAndPan):
  26431. 2006-09-08 Darin Adler <darin@apple.com>
  26432. Reviewed by Tim H.
  26433. <rdar://problem/4699166> REGRESSION: Background images in Mail stationery do not load
  26434. Fixes the quoting logic. The previous logic did not account for the
  26435. CSS tokenizer's regex character range between * and ~ as valid in URL types.
  26436. * css/CSSPrimitiveValue.cpp:
  26437. (WebCore::isCSSTokenizerURL):
  26438. 2006-09-09 Alexey Proskuryakov <ap@nypop.com>
  26439. Reviewed by Darin.
  26440. - http://bugs.webkit.org/show_bug.cgi?id=10759
  26441. fast/AppleScript/array.html test failing
  26442. * bridge/mac/WebCoreFrameBridge.mm:
  26443. (aeDescFromJSValue): Convert integer values to typeSInt32 AE descriptors.
  26444. 2006-09-08 Eric Seidel <eric@webkit.org>
  26445. Reviewed by darin.
  26446. Replace incorrect fooBaseValue() calls with foo() calls instead.
  26447. http://bugs.webkit.org/show_bug.cgi?id=10746
  26448. With the previously broken animation system, we had both base and anim values
  26449. but they were not automatically connected/disconnected when animation started and stopped.
  26450. So the animVals were basically never used (since they were always wrong).
  26451. Now, animVal and baseVal are handled correctly.
  26452. There are only 3 places in the code where we will ever need to use the BaseValue accessor variants.
  26453. 1. SVGAnimated* DOM bindings
  26454. 2. Animation Code
  26455. 3. parseMappedAttribute implementations
  26456. * kcanvas/RenderForeignObject.cpp:
  26457. (WebCore::RenderForeignObject::translationForAttributes):
  26458. * kcanvas/RenderSVGImage.cpp:
  26459. (WebCore::RenderSVGImage::paint):
  26460. (WebCore::RenderSVGImage::relativeBBox):
  26461. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  26462. (WebCore::RenderSVGImage::translationForAttributes):
  26463. * kcanvas/RenderSVGText.cpp:
  26464. (WebCore::RenderSVGText::translationForAttributes):
  26465. * ksvg2/misc/SVGImageLoader.cpp:
  26466. (WebCore::SVGImageLoader::updateFromElement):
  26467. * ksvg2/svg/SVGAElement.cpp:
  26468. (WebCore::SVGAElement::defaultEventHandler):
  26469. * ksvg2/svg/SVGCircleElement.cpp:
  26470. (SVGCircleElement::parseMappedAttribute):
  26471. (SVGCircleElement::toPathData):
  26472. (SVGCircleElement::pushAttributeContext):
  26473. (SVGCircleElement::hasPercentageValues):
  26474. * ksvg2/svg/SVGClipPathElement.cpp:
  26475. (SVGClipPathElement::canvasResource):
  26476. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  26477. (SVGComponentTransferFunctionElement::transferFunction):
  26478. * ksvg2/svg/SVGCursorElement.cpp:
  26479. (SVGCursorElement::parseMappedAttribute):
  26480. * ksvg2/svg/SVGEllipseElement.cpp:
  26481. (WebCore::SVGEllipseElement::parseMappedAttribute):
  26482. (WebCore::SVGEllipseElement::toPathData):
  26483. (WebCore::SVGEllipseElement::pushAttributeContext):
  26484. (WebCore::SVGEllipseElement::hasPercentageValues):
  26485. * ksvg2/svg/SVGFEBlendElement.cpp:
  26486. (SVGFEBlendElement::filterEffect):
  26487. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  26488. (SVGFEColorMatrixElement::filterEffect):
  26489. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  26490. (SVGFEComponentTransferElement::filterEffect):
  26491. * ksvg2/svg/SVGFECompositeElement.cpp:
  26492. (SVGFECompositeElement::filterEffect):
  26493. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  26494. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  26495. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  26496. (SVGFEDisplacementMapElement::filterEffect):
  26497. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  26498. (WebCore::SVGFEDistantLightElement::lightSource):
  26499. * ksvg2/svg/SVGFEFloodElement.cpp:
  26500. (SVGFEFloodElement::filterEffect):
  26501. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  26502. (SVGFEGaussianBlurElement::filterEffect):
  26503. * ksvg2/svg/SVGFEImageElement.cpp:
  26504. (SVGFEImageElement::parseMappedAttribute):
  26505. * ksvg2/svg/SVGFEMergeElement.cpp:
  26506. (SVGFEMergeElement::SVGFEMergeElement):
  26507. (SVGFEMergeElement::filterEffect):
  26508. * ksvg2/svg/SVGFEOffsetElement.cpp:
  26509. (SVGFEOffsetElement::filterEffect):
  26510. * ksvg2/svg/SVGFEPointLightElement.cpp:
  26511. (WebCore::SVGFEPointLightElement::SVGFEPointLightElement):
  26512. (WebCore::SVGFEPointLightElement::lightSource):
  26513. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  26514. (SVGFESpecularLightingElement::filterEffect):
  26515. * ksvg2/svg/SVGFESpotLightElement.cpp:
  26516. (WebCore::SVGFESpotLightElement::lightSource):
  26517. * ksvg2/svg/SVGFETileElement.cpp:
  26518. (SVGFETileElement::filterEffect):
  26519. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  26520. (SVGFETurbulenceElement::filterEffect):
  26521. * ksvg2/svg/SVGFilterElement.cpp:
  26522. (SVGFilterElement::canvasResource):
  26523. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  26524. (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  26525. * ksvg2/svg/SVGGradientElement.cpp:
  26526. (SVGGradientElement::rebuildStops):
  26527. * ksvg2/svg/SVGHelper.cpp:
  26528. (WebCore::SVGHelper::PercentageOfViewport):
  26529. * ksvg2/svg/SVGLineElement.cpp:
  26530. (SVGLineElement::toPathData):
  26531. (SVGLineElement::pushAttributeContext):
  26532. (SVGLineElement::hasPercentageValues):
  26533. * ksvg2/svg/SVGLinearGradientElement.cpp:
  26534. (SVGLinearGradientElement::buildGradient):
  26535. * ksvg2/svg/SVGMarkerElement.cpp:
  26536. (WebCore::SVGMarkerElement::canvasResource):
  26537. * ksvg2/svg/SVGMaskElement.cpp:
  26538. (WebCore::SVGMaskElement::attributeChanged):
  26539. (WebCore::SVGMaskElement::drawMaskerContent):
  26540. * ksvg2/svg/SVGPatternElement.cpp:
  26541. (WebCore::SVGPatternElement::pushAttributeContext):
  26542. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  26543. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  26544. (WebCore::SVGPatternElement::notifyAttributeChange):
  26545. (WebCore::SVGPatternElement::getCTM):
  26546. * ksvg2/svg/SVGRadialGradientElement.cpp:
  26547. (WebCore::SVGRadialGradientElement::buildGradient):
  26548. * ksvg2/svg/SVGRectElement.cpp:
  26549. (WebCore::SVGRectElement::toPathData):
  26550. (WebCore::SVGRectElement::pushAttributeContext):
  26551. (WebCore::SVGRectElement::hasPercentageValues):
  26552. * ksvg2/svg/SVGSVGElement.cpp:
  26553. (WebCore::SVGSVGElement::viewport):
  26554. (WebCore::SVGSVGElement::parseMappedAttribute):
  26555. (WebCore::SVGSVGElement::getCTM):
  26556. (WebCore::SVGSVGElement::getScreenCTM):
  26557. (WebCore::SVGSVGElement::createRenderer):
  26558. * ksvg2/svg/SVGTRefElement.cpp:
  26559. (SVGTRefElement::updateReferencedText):
  26560. * ksvg2/svg/SVGUseElement.cpp:
  26561. (SVGUseElement::closeRenderer):
  26562. 2006-09-08 Eric Seidel <eric@webkit.org>
  26563. Reviewed by beth.
  26564. Remove the last vestiges of KDOM (KDOMCSSValue and KDOMCSSValueList)
  26565. http://bugs.webkit.org/show_bug.cgi?id=10778
  26566. * ksvg2/css/SVGCSSParser.cpp:
  26567. (WebCore::CSSParser::parseSVGValue):
  26568. (WebCore::CSSParser::parseSVGStrokeDasharray):
  26569. (WebCore::CSSParser::parseSVGPaint):
  26570. (WebCore::CSSParser::parseSVGColor):
  26571. 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
  26572. Reviewed by Darin and Tim H.
  26573. Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
  26574. Auto-generate the Objective-C DOM Traversal bindings
  26575. - Auto-generates DOMNodeIterator and DOMTreeWalker.
  26576. - Splits out DOMNodeFilter into its own file.
  26577. * DerivedSources.make:
  26578. * WebCore.xcodeproj/project.pbxproj:
  26579. * bindings/objc/DOM.mm:
  26580. * bindings/objc/DOMNodeFilter.h: Added.
  26581. * bindings/objc/DOMTraversal.h:
  26582. * bindings/objc/PublicDOMInterfaces.h:
  26583. * bindings/scripts/CodeGeneratorObjC.pm:
  26584. * dom/NodeFilter.idl:
  26585. * dom/NodeIterator.idl:
  26586. * dom/Range.idl:
  26587. * dom/TreeWalker.idl:
  26588. 2006-09-07 Darin Fisher <darin@chromium.org>
  26589. Reviewed by Darin, landed by Adam.
  26590. Fixes part of bug 10743: Windows build busted.
  26591. * platform/win/FontCacheWin.cpp: Add missing #include, set svn:eol-style to native
  26592. (WebCore::FontCache::getFontLinkInterface):
  26593. (WebCore::FontCache::getFontDataForCharacters):
  26594. * platform/win/FontDataWin.cpp: Ditto.
  26595. (WebCore::FontData::platformWidthForGlyph):
  26596. * platform/win/FontWin.cpp: Add missing #include, band-aid over const problem with GlyphBufferGlyph
  26597. (WebCore::Font::drawGlyphs):
  26598. * platform/win/ResourceLoaderWin.cpp: Add missing #include, change .ascii() to .latin1()
  26599. (WebCore::ResourceLoaderWndProc):
  26600. (WebCore::ResourceLoader::start):
  26601. 2006-09-07 Alexey Proskuryakov <ap@nypop.com>
  26602. Reviewed by Darin.
  26603. http://bugs.webkit.org/show_bug.cgi?id=10753
  26604. REGRESSION: The beginning of a CSS file is missing
  26605. Test: http/tests/incremental/slow-utf8-css.pl
  26606. * loader/Decoder.cpp:
  26607. (WebCore::Decoder::checkForCSSCharset): Use the same buffering logic as used for HTML.
  26608. (WebCore::Decoder::decode):
  26609. * loader/Decoder.h: Added a return value and a movedDataToBuffer parameter to
  26610. checkForCSSCharset().
  26611. 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
  26612. Reviewed by Darin.
  26613. Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
  26614. Auto-generate the Objective-C DOM Events bindings
  26615. - Auto-generates DOMEvent, DOMKeyboardEvent, DOMMouseEvent, DOMMutationEvent,
  26616. DOMOverflowEvent, DOMUIEvent, and DOMWheelEvent.
  26617. - Splits out DOMEventListener and DOMEventTarget into their own files.
  26618. * DerivedSources.make:
  26619. * WebCore.xcodeproj/project.pbxproj:
  26620. * bindings/objc/DOMEventListener.h: Added.
  26621. * bindings/objc/DOMEventTarget.h: Added.
  26622. * bindings/objc/DOMEvents.h:
  26623. * bindings/objc/DOMEvents.mm:
  26624. (-[DOMEvent WebCore::]):
  26625. (-[DOMEvent _initWithEvent:WebCore::]):
  26626. (+[DOMEvent _eventWith:WebCore::]):
  26627. * bindings/objc/DOMEventsNonstandard.mm: Removed.
  26628. * bindings/objc/DOMNode.h:
  26629. * bindings/objc/PublicDOMInterfaces.h:
  26630. * bindings/scripts/CodeGenerator.pm:
  26631. * bindings/scripts/CodeGeneratorObjC.pm:
  26632. * dom/Event.idl:
  26633. * dom/EventListener.idl: Added.
  26634. * dom/EventTarget.idl: Added.
  26635. * dom/KeyboardEvent.idl:
  26636. * dom/MouseEvent.idl:
  26637. * dom/UIEvent.idl:
  26638. * dom/WheelEvent.idl:
  26639. 2006-09-07 Rob Buis <buis@kde.org>
  26640. Reviewed by Maciej.
  26641. http://bugs.webkit.org/show_bug.cgi?id=9753
  26642. SVG with width and height 100% leaves room for scrollbar on the right.
  26643. Relayout children of svg containers, except svg shapes that do not depend on percentages.
  26644. * kcanvas/RenderPath.cpp:
  26645. (WebCore::RenderPath::hasPercentageValues):
  26646. * kcanvas/RenderPath.h:
  26647. * kcanvas/RenderSVGContainer.cpp:
  26648. (WebCore::RenderSVGContainer::layout):
  26649. * ksvg2/svg/SVGCircleElement.cpp:
  26650. (SVGCircleElement::hasPercentageValues):
  26651. * ksvg2/svg/SVGCircleElement.h:
  26652. * ksvg2/svg/SVGEllipseElement.cpp:
  26653. (WebCore::SVGEllipseElement::hasPercentageValues):
  26654. * ksvg2/svg/SVGEllipseElement.h:
  26655. * ksvg2/svg/SVGLineElement.cpp:
  26656. (SVGLineElement::hasPercentageValues):
  26657. * ksvg2/svg/SVGLineElement.h:
  26658. * ksvg2/svg/SVGRectElement.cpp:
  26659. (WebCore::SVGRectElement::hasPercentageValues):
  26660. * ksvg2/svg/SVGRectElement.h:
  26661. * ksvg2/svg/SVGStyledElement.h:
  26662. (WebCore::SVGStyledElement::hasPercentageValues):
  26663. 2006-09-06 Brady Eidson <beidson@apple.com>
  26664. Constant renamed in 16250 wasn't changed in each use
  26665. * platform/win/GlyphMapWin.cpp:
  26666. (WebCore::GlyphMap::fillPage):
  26667. 2006-09-06 Darin Adler <darin@apple.com>
  26668. Reviewed by Tim Hatcher.
  26669. - fix crashes affecting editing layout tests (regressions from my vector change)
  26670. * editing/BreakBlockquoteCommand.cpp:
  26671. (WebCore::BreakBlockquoteCommand::doApply): Added check for empty vector.
  26672. * editing/InsertParagraphSeparatorCommand.cpp:
  26673. (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
  26674. 2006-09-06 David Harrison <harrison@apple.com>
  26675. Reviewed and tweaked by Tim H.
  26676. <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation
  26677. If we don't find the font in the available fonts list, call [NSFont fontWithName:size:]
  26678. to trigger a search that will include auto activation. No PLT or iBench perf impact.
  26679. No layout tests affected. Not testable in an automated way that will work on all systems.
  26680. * platform/mac/WebFontCache.mm:
  26681. (+[WebFontCache fontWithFamily:traits:size:]):
  26682. 2006-09-06 Nikolas Zimmermann <zimmermann@kde.org>
  26683. Reviewed and landed by ap.
  26684. Fix Qt/Linux build.
  26685. * CMakeLists.txt: Take out CharacterData.cpp from build / add new Text* files to build.
  26686. * platform/qt/BrowserExtensionQt.cpp: Add wtf/Platform.h include.
  26687. * platform/qt/FontCacheQt.cpp: Add FontData.h include.
  26688. * platform/qt/FontQt.cpp:
  26689. (WebCore::Font::drawGlyphs): Fix constness in reinterpret_cast.
  26690. * platform/qt/FrameQt.cpp:
  26691. (WebCore::FrameQt::markMisspellings): Change "SelectionController" param type to "Selection".
  26692. (WebCore::FrameQt::respondToChangedSelection): Ditto.
  26693. (WebCore::FrameQt::respondToChangedContents): Ditto.
  26694. (WebCore::FrameQt::shouldChangeSelection): Ditto.
  26695. * platform/qt/FrameQt.h: Ditto.
  26696. * platform/qt/ImageQt.cpp:
  26697. (WebCore::Image::supportsType): Fix String->QString conversion.
  26698. * platform/qt/ResourceLoaderManager.cpp:
  26699. (WebCore::ResourceLoaderManager::add): Fix String->DeprecatedString conversion.
  26700. * platform/qt/ScrollViewCanvasQt.cpp:
  26701. (WebCore::ScrollViewCanvasQt::handleKeyEvent): Adapt to SelectionController signature changes.
  26702. * platform/qt/qt-encodings.txt: Removed.
  26703. 2006-09-06 Darin Adler <darin@apple.com>
  26704. Reviewed by Tim Hatcher.
  26705. - http://bugs.webkit.org/show_bug.cgi?id=10675
  26706. tweak font-related headers and convert lists to vectors
  26707. One major change was to greatly reduce the number of files that include Font.h.
  26708. Another was to convert many uses of DeprecatedPtrList/DeprecatedValueList to Vector.
  26709. * WebCore.xcodeproj/project.pbxproj: Added TextStyle.h.
  26710. * bindings/objc/DOM.mm: (-[DOMElement _font]): Changed to not depend on
  26711. Font::getNSFont since a WebCore::Font represents more than one NSFont.
  26712. * bindings/objc/DOMNode.mm: (-[DOMNode lineBoxRects]): Updated to use Vector.
  26713. * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
  26714. * bridge/mac/FrameViewMac.mm: (WebCore::FrameView::updateDashboardRegions): Ditto.
  26715. * css/CSSComputedStyleDeclaration.cpp:
  26716. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
  26717. * dom/Document.cpp:
  26718. (WebCore::Document::dashboardRegions): Ditto.
  26719. (WebCore::Document::setDashboardRegions): Ditto.
  26720. * dom/Document.h: Ditto.
  26721. * editing/ReplaceSelectionCommand.cpp:
  26722. (WebCore::ReplacementFragment::removeUnrenderedNodes): Ditto.
  26723. * html/FormDataList.h: Ditto.
  26724. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isFocusable): Ditto.
  26725. * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ditto.
  26726. * kcanvas/RenderPath.cpp: (WebCore::RenderPath::absoluteRects): Ditto.
  26727. * kcanvas/RenderPath.h: Ditto.
  26728. * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::absoluteRects): Ditto.
  26729. * kcanvas/RenderSVGImage.h: Ditto.
  26730. * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Ditto.
  26731. * kcanvas/RenderSVGText.h: Ditto.
  26732. * loader/FormData.cpp:
  26733. (WebCore::FormData::flatten): Ditto.
  26734. (WebCore::FormData::flattenToString): Ditto.
  26735. * loader/FormData.h: (WebCore::FormData::elements): Ditto.
  26736. * loader/mac/LoaderFunctionsMac.mm: (WebCore::ServeSynchronousRequest): Ditto.
  26737. * page/Frame.cpp: (WebCore::Frame::markedTextUnderlines): Ditto.
  26738. * page/Frame.h: Ditto.
  26739. * page/FramePrivate.h: Ditto.
  26740. * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start): Ditto.
  26741. * rendering/InlineTextBox.h: Ditto.
  26742. * rendering/InlineTextBox.cpp:
  26743. (WebCore::InlineTextBox::paint): Ditto.
  26744. (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
  26745. * rendering/RenderContainer.h: Ditto.
  26746. * rendering/RenderContainer.cpp: (WebCore::RenderContainer::lineBoxRects): Ditto.
  26747. * rendering/RenderInline.h: Ditto.
  26748. * rendering/RenderInline.cpp: (WebCore::RenderInline::absoluteRects): Ditto.
  26749. * rendering/RenderObject.h: Ditto.
  26750. * rendering/RenderObject.cpp:
  26751. (WebCore::RenderObject::lineBoxRects): Ditto.
  26752. (WebCore::RenderObject::absoluteRects): Ditto.
  26753. (WebCore::RenderObject::absoluteBoundingBoxRect): Ditto.
  26754. (WebCore::RenderObject::addDashboardRegions): Ditto.
  26755. (WebCore::RenderObject::collectDashboardRegions): Ditto.
  26756. * rendering/RenderStyle.h: Ditto.
  26757. * rendering/RenderStyle.cpp:
  26758. (WebCore::RenderStyle::initialDashboardRegions): Ditto.
  26759. (WebCore::RenderStyle::noneDashboardRegions): Ditto.
  26760. * rendering/RenderText.h: Ditto.
  26761. * rendering/RenderText.cpp:
  26762. (WebCore::RenderText::absoluteRects): Ditto.
  26763. (WebCore::RenderText::lineBoxRects): Ditto.
  26764. * rendering/RenderView.h: Ditto.
  26765. * rendering/RenderView.cpp: (WebCore::RenderView::absoluteRects): Ditto.
  26766. * bridge/mac/FrameMac.mm:
  26767. (WebCore::FrameMac::attributedString): Updated to use Vector and changed to not
  26768. depend on getNSFont on a Font.
  26769. (WebCore::FrameMac::fontForSelection): Changed to not depend on Font::getNSFont.
  26770. (WebCore::FrameMac::fontAttributesForSelectionStart): Ditto.
  26771. (WebCore::convertAttributesToUnderlines): Updated to use Vector.
  26772. (WebCore::FrameMac::setMarkedTextRange): Ditto.
  26773. (WebCore::FrameMac::dashboardRegionsDictionary): Ditto.
  26774. * bridge/mac/WebCoreAXObject.mm:
  26775. (boundingBoxRect): Updated to use Vector.
  26776. (AXAttributeStringSetStyle): Changed to not depend on Font::getNSFont.
  26777. * bridge/mac/WebCoreStringTruncator.mm: Updated includes.
  26778. * page/Settings.h: Ditto.
  26779. * platform/mac/WebCoreTextRenderer.mm: Ditto.
  26780. * rendering/EllipsisBox.cpp: Ditto.
  26781. * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
  26782. Updated to use a Vector that we iterate in reverse order instead of a linked list
  26783. that we reverse by prepending elements instead of adding to the end.
  26784. * editing/InsertParagraphSeparatorCommand.cpp:
  26785. (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
  26786. * loader/DocLoader.h: Removed unneeded include of DeprecatedPtrList.h.
  26787. * platform/Font.h: Moved TextStyle to a separate header. Removed Font::getNSFont.
  26788. * platform/Font.cpp: Changed to use const instead of #define.
  26789. (WebCore::Font::width): Overloaded this so we don't have a default parameter, which
  26790. eliminates the need to have TextStyle defined to compiler the Font.h header.
  26791. * platform/TextStyle.h: Added.
  26792. * platform/FontData.h: Added a forward declaration of ATSUStyle so this header
  26793. can stand alone.
  26794. * platform/FontFallbackList.h: Tweaks.
  26795. * platform/FontFallbackList.cpp: Tweaks.
  26796. * platform/FontFamily.h: Removed unneeded NSString declaration. Simplified class by
  26797. using Shared and RefPtr, which resulted in removing many explicit functions.
  26798. * platform/FontFamily.cpp: More of the same.
  26799. * platform/GlyphBuffer.h: Removed unneeded MAX_GLYPH_EXPANSION and GLYPH_BUFFER_SIZE
  26800. macros.
  26801. * platform/GlyphMap.h: Removed unneeded include of GlyphBuffer.h, which was included
  26802. only for the typedef of Glyph; there's no reason to not just repeat that typedef here
  26803. since C++ allows multiple typedefs if they match. Renamed the cGlyphPageSize constant
  26804. to GlyphPage::size.
  26805. * platform/GlyphMap.cpp: Changed NO_BREAK_SPACE and ZERO_WIDTH_SPACE macros into
  26806. constants. Updated for cGlyphPageSize change.
  26807. * platform/mac/GlyphMapMac.cpp: Updated for cGlyphPageSize change.
  26808. * platform/GlyphWidthMap.h: Removed unneeded include of GlyphBuffer.h, which was included
  26809. only for the typedef of Glyph; there's no reason to not just repeat that typedef here
  26810. since C++ allows multiple typedefs if they match. Renamed the cGlyphWidthPageSize constant
  26811. to GlyphWidthPage::size.
  26812. * platform/GlyphWidthMap.cpp: Updated for cGlyphWidthPageSize change.
  26813. * platform/GraphicsContext.h: Removed unneeded include of Font.h. Changed drawText
  26814. function to use overloading instead of default parameters to allow TextStyle to be optional.
  26815. This cuts the dependency on TextStyle.
  26816. * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawText): Added overload.
  26817. * platform/Image.h: Removed unneeded forward declaration of IntSize.
  26818. * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
  26819. Changed to not depend on Font::getNSFont.
  26820. * platform/mac/ListBoxMac.mm: (-[WebCoreTableView fontChanged]): Ditto.
  26821. * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
  26822. Ditto.
  26823. * rendering/RenderPopupMenuMac.mm:
  26824. (WebCore::RenderPopupMenuMac::showPopup): Ditto.
  26825. (WebCore::RenderPopupMenuMac::addGroupLabel): Ditto.
  26826. (WebCore::RenderPopupMenuMac::addOption): Ditto.
  26827. * platform/mac/FontDataMac.mm: Fixed includes. Converted a bunch of macros to be
  26828. constants and inline functions instead.
  26829. * platform/mac/FontMac.mm: Fixed includes.
  26830. * platform/mac/PopUpButtonMac.mm: Ditto.
  26831. * rendering/RenderMenuList.cpp: Ditto.
  26832. * rendering/RenderTextControl.cpp: Ditto.
  26833. * platform/mac/WebCoreSystemInterface.h: Fixes so this header stands alone and is
  26834. compatible with all 4 of C, ObjC, C++, ObjC++.
  26835. 2006-09-05 Darin Fisher <darin@chromium.org>
  26836. Reviewed/landed by aroben.
  26837. Fixes bug 10743: Windows build is busted.
  26838. * WebCore.vcproj/WebCore/WebCore.vcproj:
  26839. * bridge/win/FrameWin.h:
  26840. * platform/ResourceLoaderInternal.h:
  26841. * platform/TextEncodingRegistry.cpp:
  26842. * platform/win/ResourceLoaderWin.cpp:
  26843. (WebCore::ResourceLoaderWndProc):
  26844. (WebCore::ResourceLoader::start):
  26845. * platform/win/TemporaryLinkStubs.cpp:
  26846. (FrameWin::markMisspellings):
  26847. (FrameWin::shouldChangeSelection):
  26848. (FrameWin::respondToChangedSelection):
  26849. (FrameWin::respondToChangedContents):
  26850. (RenderThemeWin::adjustMenuListStyle):
  26851. 2006-09-05 Darin Adler <darin@apple.com>
  26852. - some quick build fixes
  26853. * bridge/mac/WebCoreAXObject.mm: Remove use of WebCore::UChar.
  26854. * bridge/mac/WebCoreFrameBridge.mm: Ditto. Also remove include
  26855. of CharsetNames.h.
  26856. * css/CSSGrammar.y: Remove use of WebCore::UChar.
  26857. * platform/UChar.h: Back out WebCore::UChar for now.
  26858. 2006-09-05 Darin Adler <darin@apple.com>
  26859. Reviewed by Alexey.
  26860. - http://bugs.webkit.org/show_bug.cgi?id=10728
  26861. text encodings should work without a numeric ID
  26862. - includes a fix for http://bugs.webkit.org/show_bug.cgi?id=10681
  26863. REGRESSION: Reproducible crash at Wikipedia
  26864. - fixed a bug where link elements would not set the charset properly for
  26865. CSS stylesheets they loaded
  26866. - converted DeprecatedString code paths that are related to decoding web
  26867. pages to use String instead, to ensure that conversion back and forth won't
  26868. hurt performance
  26869. Test: fast/encoding/css-link-charset.html
  26870. Test: fast/forms/form-data-encoding-normalization-overrun.html
  26871. Coverage for encoding issues is pretty good, so we probably don't need more
  26872. tests to land this. Our existing tests did find issues with this patch while
  26873. it was under development. And I suppose it would be nice to have even more tests.
  26874. * platform/TextEncoding.h:
  26875. * platform/TextEncoding.cpp:
  26876. (WebCore::addEncodingName): Added. Used to build up the set used by isJapanese.
  26877. (WebCore::TextEncoding::TextEncoding): Removed boolean "eight bit only" parameter and
  26878. added an overload for String as well as const char*. Simplified because now the only
  26879. data member is m_name -- calls the registry's atomicCanonicalTextEncodingName function
  26880. to make the name canonical (resolve aliases) and atomic (use a single pointer for each
  26881. encoding name so we can compare and hash efficiently).
  26882. (WebCore::TextEncoding::decode): Renamed from toUnicode. Just a simple wrapper on top
  26883. of TextDecoder that can be used when the data to decode is all present at once.
  26884. (WebCore::TextEncoding::encode): Renamed from fromUnicode. Handles the normalization and
  26885. then uses the registry to get a codec to handle the rest.
  26886. (WebCore::TextEncoding::usesVisualOrdering): New implementation that compares with the
  26887. name of the only encoding that uses visual ordering. We blur the concepts a bit so that
  26888. we treat the visual ordering and logical ordering variations as two separate encodings.
  26889. (WebCore::TextEncoding::isJapanese): New implementation that uses a set to efficiently
  26890. determine if an encoding is Japanese.
  26891. (WebCore::TextEncoding::backslashAsCurrencySymbol): New implementation that compares
  26892. with the names of the two encodings that have the strange backslash.
  26893. (WebCore::TextEncoding::closest8BitEquivalent): Added. Replaces the old "eight bit only"
  26894. boolean parameter to the constructor.
  26895. (WebCore::ASCIIEncoding): Added.
  26896. (WebCore::Latin1Encoding): Added.
  26897. (WebCore::UTF16BigEndianEncoding): Added.
  26898. (WebCore::UTF16LittleEndianEncoding): Added.
  26899. (WebCore::UTF8Encoding): Added.
  26900. (WebCore::WindowsLatin1Encoding): Added.
  26901. * platform/TextEncodingRegistry.h: Added.
  26902. * platform/TextEncodingRegistry.cpp: Added. Keeps a table of all the character set
  26903. aliases and names and another of all the codecs and parameters for each name.
  26904. * platform/TextDecoder.h: Added.
  26905. * platform/TextDecoder.cpp: Added. Contains logic to look for a BOM and hand the data
  26906. to the proper codec, based on code that used to be in both the ICU and Mac codecs.
  26907. * platform/StreamingTextDecoder.h: Renamed class to TextCodec. We'll rename
  26908. the files in a later check-in. Moved creation functions into TextEncodingRegistry.h.
  26909. Added typedefs of the registrar function types so classes derived from this one
  26910. can use them without including the TextEncodingRegistry header. Renamed toUnicode
  26911. and fromUnicode to decode and encode. Changed the parameter and return types so that
  26912. the parameters are pointers to the data and the return types are String and CString.
  26913. * platform/StreamingTextDecoder.cpp:
  26914. (WebCore::TextCodec::appendOmittingBOM): Added. Helper function used by multiple
  26915. classes derived from this one.
  26916. * platform/TextCodecLatin1.h: Added.
  26917. * platform/TextCodecLatin1.cpp: Added. Contains logic to handle encoding and decoding
  26918. Windows Latin-1, based on code that used to be in both the ICU and Mac codecs.
  26919. * platform/TextCodecUTF16.h: Added.
  26920. * platform/TextCodecUTF16.cpp: Added. Contains logic to handle encoding and decoding
  26921. UTF-16, based on code that used to be in both the ICU and Mac codecs.
  26922. * platform/StreamingTextDecoderICU.h: Renamed class to TextCodecICU. We'll rename
  26923. the files in a later check-in. Removed all the functions having to do with handling
  26924. BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
  26925. because that's superseded by the registry. Added registry hook functions.
  26926. * platform/StreamingTextDecoderICU.cpp:
  26927. (WebCore::TextCodecICU::registerEncodingNames): Added. Registers all encodings that
  26928. ICU can handle with the "IANA" standard. Also includes a special case for a particular
  26929. type of encoding for Hebrew that uses logical ordering. Also includes aliases that are
  26930. not in ICU but that were historically known to WebKit for encodings that ICU handles.
  26931. (WebCore::newTextCodecICU): Added. Used by registerCodecs.
  26932. (WebCore::TextCodecICU::registerCodecs): Added. Registers codecs for the same encodings
  26933. as above.
  26934. (WebCore::TextCodecICU::TextCodecICU): Much simplified since this now only handles the
  26935. actual ICU encoding and decoding.
  26936. (WebCore::TextCodecICU::~TextCodecICU): Renamed.
  26937. (WebCore::TextCodecICU::releaseICUConverter): Changed to be a const member function.
  26938. (WebCore::TextCodecICU::createICUConverter): Changed to be a const member function and
  26939. to check if the cached converter can be reused in a simpler way.
  26940. (WebCore::TextCodecICU::decode): Updated for changes to types.
  26941. (WebCore::TextCodecICU::encode): Updated for changes to types, and removed normalization
  26942. since this is now handled by the caller.
  26943. * platform/mac/StreamingTextDecoderMac.h: Renamed class to TextCodecMac. We'll rename
  26944. the files in a later check-in. Removed all the functions having to do with handling
  26945. BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
  26946. because that's superseded by the registry. Added registry hook functions.
  26947. * platform/mac/StreamingTextDecoderMac.cpp:
  26948. (WebCore::TextCodecMac::registerEncodingNames): Added. Registers encodings based on
  26949. the charset table generated by the make-charset-table.pl perl script.
  26950. (WebCore::newTextCodecMac): Added. Used by registerCodecs.
  26951. (WebCore::TextCodecMac::registerCodecs): Added. Registers codecs for the same encodings
  26952. as above.
  26953. (WebCore::TextCodecMac::TextCodecMac): Much simplified since this now only handles the
  26954. actual TEC/CF encoding and decoding.
  26955. (WebCore::TextCodecMac::~TextCodecMac): Renamed.
  26956. (WebCore::TextCodecMac::releaseTECConverter): Changed to be a const member function.
  26957. (WebCore::TextCodecMac::createTECConverter): Changed to be a const member function.
  26958. (WebCore::TextCodecMac::decode): Updated for changes to types.
  26959. (WebCore::TextCodecMac::encode): Updated for changes to types, and removed normalization
  26960. since this is now handled by the caller.
  26961. * platform/mac/mac-encodings.txt: Removed most of the names in this file. This now
  26962. only includes encodings where we want to use Mac OS X Carbon Text Encoding Converter,
  26963. which is only encodings that are not supported by ICU.
  26964. * platform/make-charset-table.pl: Removed flags from output. We don't use them any more.
  26965. * platform/CharsetData.h: Changed from a platform-independent header into a
  26966. Macintosh-specific one. A later patch should move this and rename it. Also
  26967. subsumes ExtraCFEncodings.h.
  26968. * WebCore.xcodeproj/project.pbxproj: Added new files. Changed the prefix on the
  26969. "make character sets" rule to be kTextEncoding instead of kCFStringEncoding.
  26970. * loader/Decoder.h: Change the default encoding parameter to the constructor to be
  26971. a TextEncoding object. Renamed setEncodingName to setEncoding, and made it take a
  26972. TextEncoding for the encoding. Removed the encodingName and visuallyOrdered functions,
  26973. since TextEncoding supports both directly in a straightforward way. Changed both
  26974. decode and flush functions to return String instead of DeprecatedString. Added a
  26975. number of private functions to factor this class a bit more so it's easier to read.
  26976. Got rid of a number of redundant data members. Changed the buffer to a Vector<char>.
  26977. * loader/Decoder.cpp:
  26978. (WebCore::Decoder::determineContentType): Added. Used by constructor to determine
  26979. the content type based on the passed-in MIME type.
  26980. (WebCore::Decoder::defaultEncoding): Added. Used by constructor to determine the
  26981. default encoding based on the passed in default and the content type.
  26982. (WebCore::Decoder::Decoder): Changed to use the functions above. Also renamed
  26983. m_reachedBody to m_checkedForHeadCharset.
  26984. (WebCore::Decoder::setEncoding): Renamed and changed to take an encoding rather
  26985. than an encoding name.
  26986. (WebCore::Decoder::checkForBOM): Factored out of decode.
  26987. (WebCore::Decoder::checkForCSSCharset): Factored out of decode.
  26988. (WebCore::Decoder::checkForHeadCharset): Factored out of decode.
  26989. (WebCore::Decoder::detectJapaneseEncoding): Factored out of decode.
  26990. (WebCore::Decoder::decode): Refactored so it's no longer one huge function.
  26991. Changed to use the new Vector<char> and the new API for TextDecoder.
  26992. (WebCore::Decoder::flush): Added code to empty out the buffer. Not an issue in
  26993. practice since we don't re-use the decoder after flushing it.
  26994. * platform/UChar.h: Added. Has the type named WebCore::UChar that we'll be switching
  26995. to. We'll switch away from the ICU ::UChar type, because we don't want to be so
  26996. closely tied to ICU -- include this instead of <unicode/umachine.h>.
  26997. * platform/PlatformString.h:
  26998. * platform/String.cpp:
  26999. (WebCore::String::latin1): Updated for changes to TextEncoding.
  27000. (WebCore::String::utf8): Ditto.
  27001. (WebCore::String::newUninitialized): Added. Gives a way to create a String and
  27002. then write directly into its buffer.
  27003. * platform/StringImpl.h: Changed return value for charactersWithNullTermination to
  27004. be a const UChar*. While it's true that this function changes the underlying
  27005. StringImpl, the characters still shouldn't be modified with the returned pointer.
  27006. * platform/StringImpl.cpp:
  27007. (WebCore::StringImpl::charactersWithNullTermination): Updated for change above.
  27008. (WebCore::StringImpl::newUninitialized): Added. Gives a way to create a StringImpl
  27009. and then write directly into its buffer.
  27010. * platform/CString.h:
  27011. * platform/CString.cpp: (WebCore::CString::newUninitialized): Added. Gives a way
  27012. to create a CString and then write directly into its buffer.
  27013. * bridge/mac/WebCoreFrameBridge.h: Removed textEncoding method, and replaced
  27014. +[WebCoreFrameBridge stringWithData:textEncoding:] with
  27015. -[WebCoreFrameBridge stringWithData:] to avoid having to pass text encoding
  27016. IDs around.
  27017. * bridge/mac/WebCoreFrameBridge.mm:
  27018. (-[WebCoreFrameBridge setEncoding:userChosen:]): Removed now-unneeded conversion
  27019. to DeprecatedString.
  27020. (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
  27021. Ditto.
  27022. (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): Ditto.
  27023. (-[WebCoreFrameBridge referrer]): Removed now-unneeded call to getNSString.
  27024. (-[WebCoreFrameBridge stringWithData:]): Added. Asks the document's decoder
  27025. what its encoding is, and decodes using that.
  27026. (+[WebCoreFrameBridge stringWithData:textEncodingName:]): Simplified so it
  27027. no longer involved a text encoding ID number.
  27028. (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
  27029. Changed to use UChar instead of DeprecatedChar.
  27030. (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]): Removed
  27031. now-unneeded conversion to DeprecatedString.
  27032. (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Ditto.
  27033. * html/HTMLFormElement.cpp:
  27034. (WebCore::encodeCString): Changed parameter to CString.
  27035. (WebCore::HTMLFormElement::formData): Updated code for improvements to TextEncoding.
  27036. * loader/CachedCSSStyleSheet.h:
  27037. * loader/CachedCSSStyleSheet.cpp:
  27038. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Fixed mistake where the
  27039. decoder was created without passing in the character set. Also changed from
  27040. DeprecatedString to String.
  27041. (WebCore::CachedCSSStyleSheet::setCharset): More of the same.
  27042. * bindings/js/kjs_window.h: (KJS::ScheduledAction::ScheduledAction): Changed
  27043. to use String instead of DeprecatedString, UChar instead of DeprecatedChar,
  27044. CString instead of DeprecatedCString, etc.
  27045. * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
  27046. * bridge/mac/FrameMac.h: Ditto.
  27047. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::isCharacterSmartReplaceExempt):
  27048. Ditto.
  27049. * bridge/mac/WebCoreAXObject.mm:
  27050. (-[WebCoreAXObject helpText]): Ditto.
  27051. (-[WebCoreAXObject value]): Ditto.
  27052. (-[WebCoreAXObject accessibilityDescription]): Ditto.
  27053. (-[WebCoreAXObject doAXStringForTextMarkerRange:]): Ditto.
  27054. * bridge/mac/WebCoreEncodings.mm: (+[WebCoreEncodings decodeData:]): Ditto.
  27055. Also fixed code that does a deref without a ref to use RefPtr instead.
  27056. * bridge/mac/WebCoreScriptDebugger.mm:
  27057. (-[WebCoreScriptCallFrame evaluateWebScript:]): Ditto.
  27058. * bridge/mac/WebCoreSettings.mm:
  27059. (-[WebCoreSettings setDefaultTextEncoding:]): Ditto.
  27060. * css/CSSImportRule.cpp: (WebCore::CSSImportRule::insertedIntoParent): Ditto.
  27061. * css/cssparser.cpp: (WebCore::CSSParser::lex): Ditto.
  27062. * dom/Document.h:
  27063. * dom/Document.cpp:
  27064. (WebCore::Document::setCharset): Ditto.
  27065. (WebCore::Document::write): Ditto.
  27066. (WebCore::Document::determineParseMode): Ditto.
  27067. * dom/ProcessingInstruction.cpp:
  27068. (WebCore::ProcessingInstruction::checkStyleSheet): Ditto.
  27069. * dom/XMLTokenizer.h:
  27070. * dom/XMLTokenizer.cpp:
  27071. (WebCore::shouldAllowExternalLoad): Ditto.
  27072. (WebCore::createStringParser): Ditto.
  27073. (WebCore::XMLTokenizer::write): Ditto.
  27074. (WebCore::toString): Ditto.
  27075. (WebCore::handleElementAttributes): Ditto.
  27076. (WebCore::XMLTokenizer::startElementNs): Ditto.
  27077. (WebCore::XMLTokenizer::endElementNs): Ditto.
  27078. (WebCore::XMLTokenizer::characters): Ditto.
  27079. (WebCore::XMLTokenizer::processingInstruction): Ditto.
  27080. (WebCore::XMLTokenizer::cdataBlock): Ditto.
  27081. (WebCore::XMLTokenizer::comment): Ditto.
  27082. (WebCore::XMLTokenizer::internalSubset): Ditto.
  27083. (WebCore::getXHTMLEntity): Ditto.
  27084. (WebCore::externalSubsetHandler): Ditto.
  27085. (WebCore::XMLTokenizer::initializeParserContext): Ditto.
  27086. (WebCore::XMLTokenizer::notifyFinished): Ditto.
  27087. (WebCore::xmlDocPtrForString): Ditto.
  27088. (WebCore::parseXMLDocumentFragment): Ditto.
  27089. (WebCore::attributesStartElementNsHandler): Ditto.
  27090. (WebCore::parseAttributes): Ditto.
  27091. * html/FormDataList.h:
  27092. * html/FormDataList.cpp:
  27093. (WebCore::FormDataList::appendString): Ditto. Also changed to call the
  27094. encoding function by its new name and with new parameters.
  27095. (WebCore::FormDataList::appendFile): Ditto.
  27096. * html/HTMLDocument.h:
  27097. * html/HTMLDocument.cpp:
  27098. (WebCore::parseDocTypePart): Ditto.
  27099. (WebCore::containsString): Ditto.
  27100. (WebCore::parseDocTypeDeclaration): Ditto.
  27101. (WebCore::HTMLDocument::determineParseMode): Ditto.
  27102. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::appendFormData): Ditto.
  27103. * html/HTMLScriptElement.cpp:
  27104. (WebCore::HTMLScriptElement::parseMappedAttribute): Ditto.
  27105. * html/HTMLTokenizer.h:
  27106. * html/HTMLTokenizer.cpp:
  27107. (WebCore::HTMLTokenizer::scriptHandler): Ditto.
  27108. (WebCore::HTMLTokenizer::parseTag): Ditto.
  27109. (WebCore::HTMLTokenizer::write): Ditto.
  27110. (WebCore::HTMLTokenizer::finish): Ditto.
  27111. (WebCore::parseHTMLDocumentFragment): Ditto.
  27112. * loader/Cache.h:
  27113. * loader/Cache.cpp:
  27114. (WebCore::Cache::requestStyleSheet): Ditto.
  27115. (WebCore::Cache::requestScript): Ditto.
  27116. * loader/CachedResource.h: Ditto.
  27117. * loader/CachedScript.h:
  27118. * loader/CachedScript.cpp:
  27119. (WebCore::CachedScript::CachedScript): Ditto.
  27120. (WebCore::CachedScript::ref): Ditto.
  27121. (WebCore::CachedScript::deref): Ditto.
  27122. (WebCore::CachedScript::setCharset): Ditto.
  27123. (WebCore::CachedScript::data): Ditto.
  27124. (WebCore::CachedScript::checkNotify): Ditto.
  27125. * loader/CachedXBLDocument.h:
  27126. * loader/CachedXBLDocument.cpp:
  27127. (WebCore::CachedXBLDocument::setCharset): Ditto.
  27128. * loader/CachedXSLStyleSheet.h:
  27129. * loader/CachedXSLStyleSheet.cpp:
  27130. (WebCore::CachedXSLStyleSheet::setCharset): Ditto.
  27131. * loader/DocLoader.cpp:
  27132. (WebCore::DocLoader::requestStyleSheet): Ditto.
  27133. (WebCore::DocLoader::requestScript): Ditto.
  27134. * loader/DocLoader.h: Ditto.
  27135. * loader/FormData.h:
  27136. * loader/FormData.cpp:
  27137. (WebCore::FormData::FormData): Ditto.
  27138. (WebCore::FormData::appendFile): Ditto.
  27139. (WebCore::FormData::flattenToString): Ditto.
  27140. * page/Frame.h:
  27141. * page/FramePrivate.h:
  27142. * page/Frame.cpp:
  27143. (WebCore::UserStyleSheetLoader::setStyleSheet): Ditto.
  27144. (WebCore::getString): Ditto.
  27145. (WebCore::Frame::replaceContentsWithScriptResult): Ditto.
  27146. (WebCore::Frame::executeScript): Ditto.
  27147. (WebCore::Frame::clear): Ditto.
  27148. (WebCore::Frame::write): Ditto.
  27149. (WebCore::Frame::endIfNotLoading): Ditto.
  27150. (WebCore::Frame::baseTarget): Ditto.
  27151. (WebCore::Frame::scheduleRedirection): Ditto.
  27152. (WebCore::Frame::scheduleLocationChange): Ditto.
  27153. (WebCore::Frame::scheduleHistoryNavigation): Ditto.
  27154. (WebCore::Frame::changeLocation): Ditto.
  27155. (WebCore::Frame::redirectionTimerFired): Ditto.
  27156. (WebCore::Frame::encoding): Ditto.
  27157. (WebCore::Frame::submitForm): Ditto.
  27158. (WebCore::Frame::referrer): Ditto.
  27159. (WebCore::Frame::isCharacterSmartReplaceExempt): Ditto.
  27160. (WebCore::Frame::setEncoding): Ditto.
  27161. * page/Settings.h: Ditto.
  27162. * platform/SegmentedString.h: Ditto.
  27163. * platform/SegmentedString.cpp: Ditto.
  27164. * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString): Ditto.
  27165. * xml/XSLTProcessor.cpp:
  27166. (WebCore::transformTextStringToXHTMLDocumentString): Ditto.
  27167. (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
  27168. * xml/xmlhttprequest.h:
  27169. * xml/xmlhttprequest.cpp:
  27170. (WebCore::XMLHttpRequest::open): Ditto.
  27171. (WebCore::XMLHttpRequest::send): Ditto.
  27172. (WebCore::XMLHttpRequest::receivedData): Ditto.
  27173. * platform/DeprecatedString.cpp:
  27174. (WebCore::DeprecatedString::fromUtf8): Updated for changes to TextEncoding.
  27175. (WebCore::DeprecatedString::utf8): Ditto.
  27176. * platform/KURL.h:
  27177. * platform/KURL.cpp:
  27178. (WebCore::KURL::KURL): Updated to overload based on presence or absence of
  27179. TextEncoding rather than having a default.
  27180. (WebCore::KURL::init): Moved body of constructor in here. Updated to use
  27181. the new TextEncoding interface.
  27182. (WebCore::KURL::decode_string): Updated to overload based on presence or
  27183. absence of TextEncoding rather than having a default. Updated to use
  27184. the new TextEncoding interface.
  27185. (WebCore::encodeRelativeString): Updated to use the new TextEncoding interface.
  27186. * platform/Font.cpp: (WebCore::WidthIterator::normalizeVoicingMarks): Fixed
  27187. code to use U_ZERO_ERROR instead of a typecast.
  27188. * bindings/js/kjs_proxy.h: Removed unneeded declaration of DeprecatedString.
  27189. * platform/GraphicsContext.h: Ditto.
  27190. * platform/GraphicsContext.cpp: Removed unneeded include of "DeprecatedString.h".
  27191. * rendering/break_lines.cpp: Ditto.
  27192. * xml/XMLSerializer.cpp: Ditto.
  27193. * platform/mac/FontDataMac.mm: Removed unneeded include of <unicode/unorm.h>.
  27194. * platform/CharsetNames.h: Emptied out this file. A later patch could remove it.
  27195. * platform/CharsetNames.cpp: Ditto.
  27196. * platform/mac/ExtraCFEncodings.h: Ditto.
  27197. 2006-09-05 Nikolas Zimmermann <zimmermann@kde.org>
  27198. Reviewed by eseidel. Landed by eseidel.
  27199. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10490
  27200. -> Remove all SVGAnimated* usage from ksvg2.
  27201. This is all done using a set of macros which live in svg/SVGElement.h
  27202. (ANIMATED_PROPERTY_DECLARATIONS / ANIMATED_PROPERTY_DEFINITIONS).
  27203. Transform all properties to this new concept using Eric ruby script.
  27204. -> Replace all usages of "property()->baseVal()" with "propertyBaseValue()".
  27205. -> Replace all usages of "property()->setBaseVal()" with "setPropertyBaseValue()".
  27206. -> Add "virtual const SVGElement* contextElement() const".
  27207. This concept allows to access the document (needed to access the SVGDocumentExtensions)
  27208. from lowest-base-classes like SVGURIReference / SVGExternalResourcesRequired etc.
  27209. These classes contain this contextElement() function as pure virtual functions.
  27210. The topmost classes (like SVGCircleElement) implement this function with "return this".
  27211. -> Move default value initialization to constructors.
  27212. As the lazy_create usage, which was involved in default property initialization,
  27213. has been removed, we need to do the initialization in the constructor.
  27214. This forces us to fix the SVGLength class, as calling viewportElement() from the
  27215. constructor does not work. This SVGLength cleanup is one of the next things to fix.
  27216. * bindings/scripts/CodeGeneratorJS.pm:
  27217. * kcanvas/RenderForeignObject.cpp:
  27218. (WebCore::RenderForeignObject::translationForAttributes):
  27219. * kcanvas/RenderSVGImage.cpp:
  27220. (WebCore::RenderSVGImage::paint):
  27221. (WebCore::RenderSVGImage::relativeBBox):
  27222. (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
  27223. (WebCore::RenderSVGImage::translationForAttributes):
  27224. * kcanvas/RenderSVGText.cpp:
  27225. (WebCore::RenderSVGText::translationForAttributes):
  27226. * ksvg2/misc/KSVGTimeScheduler.cpp:
  27227. (WebCore::SVGTimer::notifyAll):
  27228. * ksvg2/misc/SVGDocumentExtensions.cpp:
  27229. * ksvg2/misc/SVGDocumentExtensions.h:
  27230. (WebCore::SVGDocumentExtensions::baseValueMap):
  27231. (WebCore::SVGDocumentExtensions::baseValue):
  27232. (WebCore::SVGDocumentExtensions::setBaseValue):
  27233. (WebCore::SVGDocumentExtensions::hasBaseValue):
  27234. (WebCore::String):
  27235. (WebCore::bool):
  27236. (WebCore::double):
  27237. * ksvg2/misc/SVGImageLoader.cpp:
  27238. (WebCore::SVGImageLoader::updateFromElement):
  27239. * ksvg2/svg/SVGAElement.cpp:
  27240. (WebCore::SVGAElement::parseMappedAttribute):
  27241. (WebCore::SVGAElement::defaultEventHandler):
  27242. * ksvg2/svg/SVGAElement.h:
  27243. (WebCore::SVGAElement::contextElement):
  27244. * ksvg2/svg/SVGAnimateColorElement.h:
  27245. (WebCore::SVGAnimateColorElement::contextElement):
  27246. * ksvg2/svg/SVGAnimateElement.h:
  27247. (WebCore::SVGAnimateElement::contextElement):
  27248. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  27249. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  27250. (WebCore::SVGAnimateTransformElement::initialMatrix):
  27251. * ksvg2/svg/SVGAnimateTransformElement.h:
  27252. (WebCore::SVGAnimateTransformElement::contextElement):
  27253. * ksvg2/svg/SVGCircleElement.cpp:
  27254. (SVGCircleElement::SVGCircleElement):
  27255. (SVGCircleElement::parseMappedAttribute):
  27256. (SVGCircleElement::toPathData):
  27257. (SVGCircleElement::pushAttributeContext):
  27258. * ksvg2/svg/SVGCircleElement.h:
  27259. (WebCore::SVGCircleElement::contextElement):
  27260. * ksvg2/svg/SVGClipPathElement.cpp:
  27261. (SVGClipPathElement::SVGClipPathElement):
  27262. (SVGClipPathElement::parseMappedAttribute):
  27263. (SVGClipPathElement::canvasResource):
  27264. * ksvg2/svg/SVGClipPathElement.h:
  27265. (WebCore::SVGClipPathElement::contextElement):
  27266. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  27267. (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
  27268. (SVGComponentTransferFunctionElement::parseMappedAttribute):
  27269. (SVGComponentTransferFunctionElement::transferFunction):
  27270. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  27271. * ksvg2/svg/SVGCursorElement.cpp:
  27272. (SVGCursorElement::SVGCursorElement):
  27273. (SVGCursorElement::parseMappedAttribute):
  27274. * ksvg2/svg/SVGCursorElement.h:
  27275. (WebCore::SVGCursorElement::contextElement):
  27276. * ksvg2/svg/SVGDefsElement.h:
  27277. (WebCore::SVGDefsElement::contextElement):
  27278. * ksvg2/svg/SVGElement.h:
  27279. * ksvg2/svg/SVGEllipseElement.cpp:
  27280. (WebCore::SVGEllipseElement::SVGEllipseElement):
  27281. (WebCore::SVGEllipseElement::parseMappedAttribute):
  27282. (WebCore::SVGEllipseElement::toPathData):
  27283. (WebCore::SVGEllipseElement::pushAttributeContext):
  27284. * ksvg2/svg/SVGEllipseElement.h:
  27285. (WebCore::SVGEllipseElement::contextElement):
  27286. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  27287. (WebCore::SVGExternalResourcesRequired::SVGExternalResourcesRequired):
  27288. (WebCore::SVGExternalResourcesRequired::parseMappedAttribute):
  27289. * ksvg2/svg/SVGExternalResourcesRequired.h:
  27290. * ksvg2/svg/SVGFEBlendElement.cpp:
  27291. (SVGFEBlendElement::SVGFEBlendElement):
  27292. (SVGFEBlendElement::parseMappedAttribute):
  27293. (SVGFEBlendElement::filterEffect):
  27294. * ksvg2/svg/SVGFEBlendElement.h:
  27295. (WebCore::SVGFEBlendElement::contextElement):
  27296. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  27297. (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
  27298. (SVGFEColorMatrixElement::parseMappedAttribute):
  27299. (SVGFEColorMatrixElement::filterEffect):
  27300. * ksvg2/svg/SVGFEColorMatrixElement.h:
  27301. (WebCore::SVGFEColorMatrixElement::contextElement):
  27302. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  27303. (SVGFEComponentTransferElement::SVGFEComponentTransferElement):
  27304. (SVGFEComponentTransferElement::parseMappedAttribute):
  27305. (SVGFEComponentTransferElement::filterEffect):
  27306. * ksvg2/svg/SVGFEComponentTransferElement.h:
  27307. (WebCore::SVGFEComponentTransferElement::contextElement):
  27308. * ksvg2/svg/SVGFECompositeElement.cpp:
  27309. (SVGFECompositeElement::SVGFECompositeElement):
  27310. (SVGFECompositeElement::parseMappedAttribute):
  27311. (SVGFECompositeElement::filterEffect):
  27312. * ksvg2/svg/SVGFECompositeElement.h:
  27313. (WebCore::SVGFECompositeElement::contextElement):
  27314. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  27315. (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
  27316. (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
  27317. (WebCore::SVGFEDiffuseLightingElement::filterEffect):
  27318. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  27319. (WebCore::SVGFEDiffuseLightingElement::contextElement):
  27320. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  27321. (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
  27322. (SVGFEDisplacementMapElement::parseMappedAttribute):
  27323. (SVGFEDisplacementMapElement::filterEffect):
  27324. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  27325. (WebCore::SVGFEDisplacementMapElement::contextElement):
  27326. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  27327. (WebCore::SVGFEDistantLightElement::lightSource):
  27328. * ksvg2/svg/SVGFEFloodElement.cpp:
  27329. (SVGFEFloodElement::parseMappedAttribute):
  27330. (SVGFEFloodElement::filterEffect):
  27331. * ksvg2/svg/SVGFEFloodElement.h:
  27332. (WebCore::SVGFEFloodElement::contextElement):
  27333. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  27334. (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
  27335. (SVGFEGaussianBlurElement::parseMappedAttribute):
  27336. (SVGFEGaussianBlurElement::filterEffect):
  27337. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  27338. (WebCore::SVGFEGaussianBlurElement::contextElement):
  27339. * ksvg2/svg/SVGFEImageElement.cpp:
  27340. (SVGFEImageElement::SVGFEImageElement):
  27341. (SVGFEImageElement::parseMappedAttribute):
  27342. * ksvg2/svg/SVGFEImageElement.h:
  27343. (WebCore::SVGFEImageElement::contextElement):
  27344. * ksvg2/svg/SVGFELightElement.cpp:
  27345. (SVGFELightElement::SVGFELightElement):
  27346. (SVGFELightElement::parseMappedAttribute):
  27347. * ksvg2/svg/SVGFELightElement.h:
  27348. * ksvg2/svg/SVGFEMergeElement.cpp:
  27349. (SVGFEMergeElement::SVGFEMergeElement):
  27350. (SVGFEMergeElement::filterEffect):
  27351. * ksvg2/svg/SVGFEMergeElement.h:
  27352. (WebCore::SVGFEMergeElement::contextElement):
  27353. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  27354. (SVGFEMergeNodeElement::parseMappedAttribute):
  27355. * ksvg2/svg/SVGFEMergeNodeElement.h:
  27356. (WebCore::SVGFEMergeNodeElement::contextElement):
  27357. * ksvg2/svg/SVGFEOffsetElement.cpp:
  27358. (SVGFEOffsetElement::SVGFEOffsetElement):
  27359. (SVGFEOffsetElement::parseMappedAttribute):
  27360. (SVGFEOffsetElement::filterEffect):
  27361. * ksvg2/svg/SVGFEOffsetElement.h:
  27362. (WebCore::SVGFEOffsetElement::contextElement):
  27363. * ksvg2/svg/SVGFEPointLightElement.cpp:
  27364. (WebCore::SVGFEPointLightElement::lightSource):
  27365. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  27366. (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
  27367. (SVGFESpecularLightingElement::parseMappedAttribute):
  27368. (SVGFESpecularLightingElement::filterEffect):
  27369. * ksvg2/svg/SVGFESpecularLightingElement.h:
  27370. (WebCore::SVGFESpecularLightingElement::contextElement):
  27371. * ksvg2/svg/SVGFESpotLightElement.cpp:
  27372. (WebCore::SVGFESpotLightElement::lightSource):
  27373. * ksvg2/svg/SVGFETileElement.cpp:
  27374. (SVGFETileElement::parseMappedAttribute):
  27375. (SVGFETileElement::filterEffect):
  27376. * ksvg2/svg/SVGFETileElement.h:
  27377. (WebCore::SVGFETileElement::contextElement):
  27378. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  27379. (SVGFETurbulenceElement::SVGFETurbulenceElement):
  27380. (SVGFETurbulenceElement::parseMappedAttribute):
  27381. (SVGFETurbulenceElement::filterEffect):
  27382. * ksvg2/svg/SVGFETurbulenceElement.h:
  27383. (WebCore::SVGFETurbulenceElement::contextElement):
  27384. * ksvg2/svg/SVGFilterElement.cpp:
  27385. (SVGFilterElement::SVGFilterElement):
  27386. (SVGFilterElement::parseMappedAttribute):
  27387. (SVGFilterElement::canvasResource):
  27388. * ksvg2/svg/SVGFilterElement.h:
  27389. (WebCore::SVGFilterElement::contextElement):
  27390. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  27391. (SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
  27392. (SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes):
  27393. (SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
  27394. (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
  27395. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  27396. (WebCore::SVGFilterPrimitiveStandardAttributes::contextElement):
  27397. * ksvg2/svg/SVGFitToViewBox.cpp:
  27398. (WebCore::SVGFitToViewBox::SVGFitToViewBox):
  27399. (WebCore::SVGFitToViewBox::parseViewBox):
  27400. (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
  27401. (WebCore::SVGFitToViewBox::parseMappedAttribute):
  27402. * ksvg2/svg/SVGFitToViewBox.h:
  27403. * ksvg2/svg/SVGForeignObjectElement.cpp:
  27404. (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
  27405. (WebCore::SVGForeignObjectElement::parseMappedAttribute):
  27406. * ksvg2/svg/SVGForeignObjectElement.h:
  27407. (WebCore::SVGForeignObjectElement::isValid):
  27408. (WebCore::SVGForeignObjectElement::contextElement):
  27409. * ksvg2/svg/SVGGElement.h:
  27410. (WebCore::SVGGElement::contextElement):
  27411. * ksvg2/svg/SVGGradientElement.cpp:
  27412. (SVGGradientElement::SVGGradientElement):
  27413. (SVGGradientElement::parseMappedAttribute):
  27414. (SVGGradientElement::rebuildStops):
  27415. * ksvg2/svg/SVGGradientElement.h:
  27416. * ksvg2/svg/SVGHelper.cpp:
  27417. (WebCore::SVGHelper::PercentageOfViewport):
  27418. * ksvg2/svg/SVGImageElement.cpp:
  27419. (SVGImageElement::SVGImageElement):
  27420. (SVGImageElement::parseMappedAttribute):
  27421. (SVGImageElement::haveLoadedRequiredResources):
  27422. * ksvg2/svg/SVGImageElement.h:
  27423. (WebCore::SVGImageElement::contextElement):
  27424. * ksvg2/svg/SVGLangSpace.h:
  27425. * ksvg2/svg/SVGLength.cpp:
  27426. * ksvg2/svg/SVGLineElement.cpp:
  27427. (SVGLineElement::SVGLineElement):
  27428. (SVGLineElement::parseMappedAttribute):
  27429. (SVGLineElement::toPathData):
  27430. (SVGLineElement::pushAttributeContext):
  27431. * ksvg2/svg/SVGLineElement.h:
  27432. (WebCore::SVGLineElement::contextElement):
  27433. * ksvg2/svg/SVGLinearGradientElement.cpp:
  27434. (SVGLinearGradientElement::SVGLinearGradientElement):
  27435. (SVGLinearGradientElement::parseMappedAttribute):
  27436. (SVGLinearGradientElement::buildGradient):
  27437. * ksvg2/svg/SVGLinearGradientElement.h:
  27438. (WebCore::SVGLinearGradientElement::contextElement):
  27439. * ksvg2/svg/SVGMarkerElement.cpp:
  27440. (WebCore::SVGMarkerElement::SVGMarkerElement):
  27441. (WebCore::SVGMarkerElement::parseMappedAttribute):
  27442. (WebCore::SVGMarkerElement::setOrientToAuto):
  27443. (WebCore::SVGMarkerElement::setOrientToAngle):
  27444. (WebCore::SVGMarkerElement::canvasResource):
  27445. * ksvg2/svg/SVGMarkerElement.h:
  27446. (WebCore::SVGMarkerElement::contextElement):
  27447. * ksvg2/svg/SVGMaskElement.cpp:
  27448. (WebCore::SVGMaskElement::SVGMaskElement):
  27449. (WebCore::SVGMaskElement::attributeChanged):
  27450. (WebCore::SVGMaskElement::parseMappedAttribute):
  27451. (WebCore::SVGMaskElement::drawMaskerContent):
  27452. * ksvg2/svg/SVGMaskElement.h:
  27453. (WebCore::SVGMaskElement::contextElement):
  27454. * ksvg2/svg/SVGPathElement.cpp:
  27455. (WebCore::SVGPathElement::SVGPathElement):
  27456. * ksvg2/svg/SVGPathElement.h:
  27457. (WebCore::SVGPathElement::isValid):
  27458. (WebCore::SVGPathElement::contextElement):
  27459. * ksvg2/svg/SVGPatternElement.cpp:
  27460. (WebCore::SVGPatternElement::SVGPatternElement):
  27461. (WebCore::SVGPatternElement::parseMappedAttribute):
  27462. (WebCore::SVGPatternElement::pushAttributeContext):
  27463. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  27464. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  27465. (WebCore::SVGPatternElement::notifyAttributeChange):
  27466. (WebCore::SVGPatternElement::getCTM):
  27467. * ksvg2/svg/SVGPatternElement.h:
  27468. (WebCore::SVGPatternElement::contextElement):
  27469. * ksvg2/svg/SVGPolyElement.h:
  27470. (WebCore::SVGPolyElement::contextElement):
  27471. * ksvg2/svg/SVGRadialGradientElement.cpp:
  27472. (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
  27473. (WebCore::SVGRadialGradientElement::~SVGRadialGradientElement):
  27474. (WebCore::SVGRadialGradientElement::parseMappedAttribute):
  27475. (WebCore::SVGRadialGradientElement::buildGradient):
  27476. * ksvg2/svg/SVGRadialGradientElement.h:
  27477. (WebCore::SVGRadialGradientElement::contextElement):
  27478. * ksvg2/svg/SVGRectElement.cpp:
  27479. (WebCore::SVGRectElement::SVGRectElement):
  27480. (WebCore::SVGRectElement::parseMappedAttribute):
  27481. (WebCore::SVGRectElement::toPathData):
  27482. (WebCore::SVGRectElement::pushAttributeContext):
  27483. * ksvg2/svg/SVGRectElement.h:
  27484. (WebCore::SVGRectElement::contextElement):
  27485. * ksvg2/svg/SVGSVGElement.cpp:
  27486. (WebCore::SVGSVGElement::SVGSVGElement):
  27487. (WebCore::SVGSVGElement::~SVGSVGElement):
  27488. (WebCore::SVGSVGElement::viewport):
  27489. (WebCore::SVGSVGElement::parseMappedAttribute):
  27490. (WebCore::SVGSVGElement::getCTM):
  27491. (WebCore::SVGSVGElement::getScreenCTM):
  27492. (WebCore::SVGSVGElement::createRenderer):
  27493. * ksvg2/svg/SVGSVGElement.h:
  27494. (WebCore::SVGSVGElement::contextElement):
  27495. * ksvg2/svg/SVGScriptElement.h:
  27496. (WebCore::SVGScriptElement::contextElement):
  27497. * ksvg2/svg/SVGSetElement.h:
  27498. (WebCore::SVGSetElement::contextElement):
  27499. * ksvg2/svg/SVGStopElement.cpp:
  27500. (SVGStopElement::SVGStopElement):
  27501. (SVGStopElement::parseMappedAttribute):
  27502. * ksvg2/svg/SVGStopElement.h:
  27503. * ksvg2/svg/SVGStylable.h:
  27504. * ksvg2/svg/SVGStyledElement.cpp:
  27505. * ksvg2/svg/SVGStyledElement.h:
  27506. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  27507. (SVGStyledTransformableElement::SVGStyledTransformableElement):
  27508. (SVGStyledTransformableElement::parseMappedAttribute):
  27509. * ksvg2/svg/SVGStyledTransformableElement.h:
  27510. * ksvg2/svg/SVGSwitchElement.cpp:
  27511. * ksvg2/svg/SVGSwitchElement.h:
  27512. (WebCore::SVGSwitchElement::contextElement):
  27513. * ksvg2/svg/SVGSymbolElement.h:
  27514. (WebCore::SVGSymbolElement::contextElement):
  27515. * ksvg2/svg/SVGTRefElement.cpp:
  27516. (SVGTRefElement::updateReferencedText):
  27517. * ksvg2/svg/SVGTRefElement.h:
  27518. (WebCore::SVGTRefElement::contextElement):
  27519. * ksvg2/svg/SVGTSpanElement.h:
  27520. (WebCore::SVGTSpanElement::contextElement):
  27521. * ksvg2/svg/SVGTextContentElement.cpp:
  27522. (SVGTextContentElement::SVGTextContentElement):
  27523. (SVGTextContentElement::parseMappedAttribute):
  27524. * ksvg2/svg/SVGTextContentElement.h:
  27525. * ksvg2/svg/SVGTextElement.cpp:
  27526. (WebCore::SVGTextElement::SVGTextElement):
  27527. (WebCore::SVGTextElement::parseMappedAttribute):
  27528. * ksvg2/svg/SVGTextElement.h:
  27529. (WebCore::SVGTextElement::contextElement):
  27530. * ksvg2/svg/SVGTextPositioningElement.cpp:
  27531. (SVGTextPositioningElement::SVGTextPositioningElement):
  27532. (SVGTextPositioningElement::parseMappedAttribute):
  27533. * ksvg2/svg/SVGTextPositioningElement.h:
  27534. * ksvg2/svg/SVGTransformable.cpp:
  27535. * ksvg2/svg/SVGTransformable.h:
  27536. * ksvg2/svg/SVGURIReference.cpp:
  27537. (SVGURIReference::parseMappedAttribute):
  27538. * ksvg2/svg/SVGURIReference.h:
  27539. * ksvg2/svg/SVGUseElement.cpp:
  27540. (SVGUseElement::SVGUseElement):
  27541. (SVGUseElement::parseMappedAttribute):
  27542. (SVGUseElement::closeRenderer):
  27543. * ksvg2/svg/SVGUseElement.h:
  27544. (WebCore::SVGUseElement::contextElement):
  27545. * ksvg2/svg/SVGViewElement.h:
  27546. (WebCore::SVGViewElement::contextElement):
  27547. 2006-09-05 Eric Seidel <eric@webkit.org>
  27548. Reviewed by aroben.
  27549. Speed up path parsing by removing string copies.
  27550. http://bugs.webkit.org/show_bug.cgi?id=10722
  27551. Tests already cover path parsing.
  27552. * ksvg2/svg/SVGFitToViewBox.cpp:
  27553. (WebCore::SVGFitToViewBox::parseViewBox):
  27554. * ksvg2/svg/svgpathparser.cpp:
  27555. (WebCore::skipOptionalSpaces): Added.
  27556. (WebCore::skipOptionalSpacesOrComma): Added.
  27557. (WebCore::parseCoord):
  27558. (WebCore::SVGPolyParser::parsePoints):
  27559. (WebCore::SVGPathParser::parseSVG):
  27560. 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
  27561. Reviewed by Tim H.
  27562. Patch for http://bugs.webkit.org/show_bug.cgi?id=10742
  27563. More Objective-C DOM auto-generation cleanup
  27564. - Factor out implementation type-getters into their own function
  27565. and standardize naming as was done for type-makers (ie. HTML
  27566. and CSS prefixing for method names).
  27567. * bindings/objc/DOMCSS.mm:
  27568. (-[DOMCSSStyleDeclaration getPropertyShorthand:]):
  27569. (-[DOMCSSStyleDeclaration isPropertyImplicit:]):
  27570. (-[DOMCSSStyleDeclaration _CSSStyleDeclaration]):
  27571. * bindings/objc/DOMHTML.mm:
  27572. (-[DOMHTMLTableCaptionElement _HTMLTableCaptionElement]):
  27573. (-[DOMHTMLTableSectionElement _HTMLTableSectionElement]):
  27574. (-[DOMHTMLTableElement _HTMLTableElement]):
  27575. (-[DOMHTMLTableCellElement _HTMLTableCellElement]):
  27576. (-[DOMHTMLEmbedElement _HTMLEmbedElement]):
  27577. (-[DOMHTMLEmbedElement align]):
  27578. (-[DOMHTMLEmbedElement setAlign:]):
  27579. (-[DOMHTMLEmbedElement height]):
  27580. (-[DOMHTMLEmbedElement setHeight:]):
  27581. (-[DOMHTMLEmbedElement name]):
  27582. (-[DOMHTMLEmbedElement setName:]):
  27583. (-[DOMHTMLEmbedElement src]):
  27584. (-[DOMHTMLEmbedElement setSrc:]):
  27585. (-[DOMHTMLEmbedElement type]):
  27586. (-[DOMHTMLEmbedElement setType:]):
  27587. (-[DOMHTMLEmbedElement width]):
  27588. (-[DOMHTMLEmbedElement setWidth:]):
  27589. * bindings/objc/DOMInternal.h:
  27590. * bindings/scripts/CodeGeneratorObjC.pm:
  27591. * bridge/mac/WebCoreFrameBridge.mm:
  27592. (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
  27593. (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
  27594. (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
  27595. (-[WebCoreFrameBridge selectionStartHasStyle:]):
  27596. (-[WebCoreFrameBridge selectionHasStyle:]):
  27597. 2006-09-05 Adele Peterson <adele@apple.com>
  27598. Reviewed by Adam.
  27599. Removed dead code for password field.
  27600. * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
  27601. * platform/mac/WebCoreTextField.h:
  27602. * platform/mac/WebCoreTextField.mm:
  27603. 2006-09-05 Justin Garcia <justin.garcia@apple.com>
  27604. Reviewed by thatcher
  27605. Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
  27606. Fixes:
  27607. <http://bugs.webkit.org/show_bug.cgi?id=6498>
  27608. SelectionController's setters should notify delegates of selection changes
  27609. Moved setSelection from Frame to SelectionController.
  27610. I haven't moved any of the work that's done as a result of a
  27611. Selection change to SelectionController yet.
  27612. Make fewer uses of SelectionControllers. They're now only used for
  27613. the Frame's selection, the Page's drag caret, and functions that
  27614. need to do Selection expansion.
  27615. * bindings/js/kjs_window.cpp:
  27616. (KJS::Selection::getValueProperty):
  27617. (KJS::Selection::toString):
  27618. (KJS::SelectionFunc::callAsFunction):
  27619. * bridge/mac/FrameMac.h:
  27620. * bridge/mac/FrameMac.mm:
  27621. (WebCore::FrameMac::advanceToNextMisspelling):
  27622. (WebCore::FrameMac::dispatchCPPEvent):
  27623. (WebCore::FrameMac::fontForSelection):
  27624. (WebCore::FrameMac::baseWritingDirectionForSelectionStart):
  27625. (WebCore::FrameMac::markMisspellingsInAdjacentWords):
  27626. (WebCore::FrameMac::markMisspellings):
  27627. (WebCore::FrameMac::respondToChangedSelection):
  27628. (WebCore::FrameMac::shouldChangeSelection):
  27629. (WebCore::FrameMac::shouldDeleteSelection):
  27630. (WebCore::FrameMac::respondToChangedContents):
  27631. * bridge/mac/PageMac.mm:
  27632. (WebCore::Page::Page):
  27633. * bridge/mac/WebCoreAXObject.mm:
  27634. (-[WebCoreAXObject accessibilityAttributeValue:]):
  27635. (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
  27636. (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
  27637. (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
  27638. (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
  27639. * bridge/mac/WebCoreFrameBridge.mm:
  27640. (-[WebCoreFrameBridge isSelectionEditable]):
  27641. (-[WebCoreFrameBridge isSelectionRichlyEditable]):
  27642. (-[WebCoreFrameBridge selectionState]):
  27643. (-[WebCoreFrameBridge deselectText]):
  27644. (-[WebCoreFrameBridge selectedAttributedString]):
  27645. (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
  27646. (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
  27647. (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
  27648. (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
  27649. (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
  27650. (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
  27651. (-[WebCoreFrameBridge selectedDOMRange]):
  27652. (-[WebCoreFrameBridge selectNSRange:]):
  27653. (-[WebCoreFrameBridge selectedNSRange]):
  27654. (-[WebCoreFrameBridge selectionAffinity]):
  27655. (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
  27656. (-[WebCoreFrameBridge setSelectionToDragCaret]):
  27657. (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
  27658. (-[WebCoreFrameBridge moveDragCaretToPoint:]):
  27659. (-[WebCoreFrameBridge removeDragCaret]):
  27660. (-[WebCoreFrameBridge dragCaretDOMRange]):
  27661. (-[WebCoreFrameBridge isDragCaretRichlyEditable]):
  27662. (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
  27663. (-[WebCoreFrameBridge ensureSelectionVisible]):
  27664. (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
  27665. * bridge/win/PageWin.cpp:
  27666. (WebCore::Page::Page):
  27667. * dom/Document.cpp:
  27668. (WebCore::Document::updateSelection):
  27669. (WebCore::Document::clearSelectionIfNeeded):
  27670. (WebCore::Document::notifyBeforeNodeRemoval):
  27671. * dom/Element.cpp:
  27672. (WebCore::Element::updateFocusAppearance):
  27673. * editing/EditCommand.cpp:
  27674. (WebCore::EditCommand::EditCommand):
  27675. * editing/JSEditor.cpp:
  27676. * editing/ModifySelectionListLevel.cpp:
  27677. (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
  27678. (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
  27679. * editing/Selection.cpp:
  27680. (WebCore::Selection::setBase):
  27681. (WebCore::Selection::setExtent):
  27682. * editing/Selection.h:
  27683. (WebCore::Selection::extent):
  27684. * editing/SelectionController.cpp:
  27685. (WebCore::SelectionController::SelectionController):
  27686. (WebCore::SelectionController::moveTo):
  27687. (WebCore::SelectionController::setSelection):
  27688. (WebCore::SelectionController::nodeWillBeRemoved):
  27689. (WebCore::SelectionController::modify):
  27690. (WebCore::SelectionController::clear):
  27691. (WebCore::SelectionController::setBase):
  27692. (WebCore::SelectionController::setExtent):
  27693. * editing/SelectionController.h:
  27694. * editing/TypingCommand.cpp:
  27695. (WebCore::TypingCommand::insertText):
  27696. (WebCore::TypingCommand::deleteKeyPressed):
  27697. (WebCore::TypingCommand::forwardDeleteKeyPressed):
  27698. * editing/VisiblePosition.cpp:
  27699. (WebCore::VisiblePosition::caretRect):
  27700. * editing/VisiblePosition.h:
  27701. * html/HTMLInputElement.cpp:
  27702. (WebCore::HTMLInputElement::defaultEventHandler):
  27703. * page/Frame.cpp:
  27704. (WebCore::Frame::selectedText):
  27705. (WebCore::Frame::hasSelection):
  27706. (WebCore::Frame::selectionController):
  27707. (WebCore::Frame::dragCaretController):
  27708. (WebCore::Frame::notifyRendererOfSelectionChange):
  27709. (WebCore::Frame::invalidateSelection):
  27710. (WebCore::Frame::clearCaretRectIfNeeded):
  27711. (WebCore::Frame::setFocusNodeIfNeeded):
  27712. (WebCore::Frame::selectionLayoutChanged):
  27713. (WebCore::Frame::caretBlinkTimerFired):
  27714. (WebCore::Frame::paintCaret):
  27715. (WebCore::Frame::paintDragCaret):
  27716. (WebCore::Frame::isPointInsideSelection):
  27717. (WebCore::Frame::selectClosestWordFromMouseEvent):
  27718. (WebCore::Frame::handleMousePressEventDoubleClick):
  27719. (WebCore::Frame::handleMousePressEventTripleClick):
  27720. (WebCore::Frame::handleMousePressEventSingleClick):
  27721. (WebCore::Frame::handleMouseMoveEvent):
  27722. (WebCore::Frame::handleMouseReleaseEvent):
  27723. (WebCore::Frame::selectAll):
  27724. (WebCore::Frame::selectContentsOfNode):
  27725. (WebCore::Frame::shouldChangeSelection):
  27726. (WebCore::Frame::shouldDeleteSelection):
  27727. (WebCore::Frame::isSelectionInPasswordField):
  27728. (WebCore::Frame::appliedEditing):
  27729. (WebCore::Frame::unappliedEditing):
  27730. (WebCore::Frame::reappliedEditing):
  27731. (WebCore::Frame::computeAndSetTypingStyle):
  27732. (WebCore::Frame::applyStyle):
  27733. (WebCore::Frame::applyParagraphStyle):
  27734. (WebCore::Frame::selectionListState):
  27735. (WebCore::Frame::selectionHasStyle):
  27736. (WebCore::Frame::selectionComputedStyle):
  27737. (WebCore::Frame::selectFrameElementInParentIfFullySelected):
  27738. (WebCore::Frame::currentForm):
  27739. (WebCore::Frame::revealSelection):
  27740. (WebCore::Frame::centerSelectionInVisibleArea):
  27741. (WebCore::Frame::styleForSelectionStart):
  27742. (WebCore::Frame::setSelectionFromNone):
  27743. (WebCore::Frame::findString):
  27744. * page/Frame.h:
  27745. * page/FramePrivate.h:
  27746. (WebCore::FramePrivate::FramePrivate):
  27747. * page/FrameView.cpp:
  27748. (WebCore::FrameView::clear):
  27749. * page/Page.cpp:
  27750. (WebCore::Page::dragCaretController):
  27751. * page/Page.h:
  27752. * rendering/RenderBlock.cpp:
  27753. (WebCore::RenderBlock::paintCaret):
  27754. * rendering/RenderLayer.cpp:
  27755. (WebCore::RenderLayer::autoscroll):
  27756. * rendering/RenderTextControl.cpp:
  27757. (WebCore::RenderTextControl::selectionStart):
  27758. (WebCore::RenderTextControl::selectionEnd):
  27759. (WebCore::RenderTextControl::setSelectionRange):
  27760. (WebCore::RenderTextControl::selectionChanged):
  27761. * rendering/RenderTreeAsText.cpp:
  27762. (WebCore::writeSelection):
  27763. 2006-09-05 Adele Peterson <adele@apple.com>
  27764. Reviewed by Adam.
  27765. Let the engine draw the focus ring for styled menu lists.
  27766. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::supportsFocusRing): Added case for MenulistButtonAppearance.
  27767. 2006-09-05 Adele Peterson <adele@apple.com>
  27768. Reviewed by Adam.
  27769. - Fix for <rdar://problem/4706463> REGRESSION: Must click twice on <select> elements for menu to show
  27770. * rendering/RenderPopupMenuMac.h:
  27771. * rendering/RenderPopupMenuMac.mm:
  27772. (WebCore::RenderPopupMenuMac::showPopup): Moved call to dismiss popup into hidePopup method.
  27773. Now calls RenderMenuList::hidePopup which will update the m_popupIsVisible flag on the menu list before hiding the popup.
  27774. (WebCore::RenderPopupMenuMac::hidePopup): Added.
  27775. 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
  27776. Reviewed by Tim H.
  27777. Patch for http://bugs.webkit.org/show_bug.cgi?id=10738
  27778. Consolidate the Objective-C DOM Bindings Internal files into DOMInternal.h
  27779. - Consolidate DOMHTMLInternal.h, DOMCSSInternal.h, DOMEventsInternal.h,
  27780. DOMViewsInternal.h and DOMXPathInternal.h into DOMInternal.h.
  27781. - Rename the "type-makers" (used to make a binding from an implementation
  27782. type) so that all the HTML ones begin with the prefix HTML. Did the same
  27783. for the CSS.
  27784. - Auto-generate a couple more methods from DOMExtensions.h.
  27785. - Various cleanups of the Objective-C auto-generation code.
  27786. * WebCore.xcodeproj/project.pbxproj:
  27787. * bindings/objc/DOM.mm:
  27788. (-[DOMDocument createCSSStyleDeclaration]):
  27789. * bindings/objc/DOMCSS.mm:
  27790. (+[DOMCSSRuleList _CSSRuleListWith:]):
  27791. (+[DOMCSSRule _CSSRuleWith:]):
  27792. (+[DOMCSSStyleDeclaration _CSSStyleDeclarationWith:]):
  27793. (+[DOMCSSValue _CSSValueWith:]):
  27794. (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:]):
  27795. (-[DOMDocument getComputedStyle::]):
  27796. (-[DOMDocument getMatchedCSSRules::]):
  27797. * bindings/objc/DOMCSSInternal.h: Removed.
  27798. * bindings/objc/DOMEvents.mm:
  27799. * bindings/objc/DOMEventsInternal.h: Removed.
  27800. * bindings/objc/DOMEventsNonstandard.mm:
  27801. * bindings/objc/DOMExtensions.h:
  27802. * bindings/objc/DOMHTML.mm:
  27803. (+[DOMHTMLCollection _HTMLCollectionWith:]):
  27804. (+[DOMHTMLOptionsCollection _HTMLOptionsCollectionWith:]):
  27805. (+[DOMHTMLElement _HTMLElementWith:]):
  27806. (+[DOMHTMLFormElement _HTMLFormElementWith:]):
  27807. (+[DOMHTMLTableCaptionElement _HTMLTableCaptionElementWith:]):
  27808. (+[DOMHTMLTableSectionElement _HTMLTableSectionElementWith:]):
  27809. (+[DOMHTMLTableElement _HTMLTableElementWith:]):
  27810. (+[DOMHTMLTableCellElement _HTMLTableCellElementWith:]):
  27811. * bindings/objc/DOMHTMLAppletElement.mm:
  27812. * bindings/objc/DOMHTMLDocument.mm:
  27813. (-[DOMHTMLDocument body]):
  27814. (-[DOMHTMLDocument images]):
  27815. (-[DOMHTMLDocument applets]):
  27816. (-[DOMHTMLDocument links]):
  27817. (-[DOMHTMLDocument forms]):
  27818. (-[DOMHTMLDocument anchors]):
  27819. * bindings/objc/DOMHTMLInternal.h: Removed.
  27820. * bindings/objc/DOMHTMLOptionElement.mm:
  27821. (-[DOMHTMLOptionElement form]):
  27822. * bindings/objc/DOMInternal.h:
  27823. * bindings/objc/DOMRGBColor.mm:
  27824. (setWrapperForRGB):
  27825. (-[DOMRGBColor red]):
  27826. (-[DOMRGBColor green]):
  27827. (-[DOMRGBColor blue]):
  27828. (-[DOMRGBColor alpha]):
  27829. * bindings/objc/DOMUtility.mm:
  27830. (KJS::ScriptInterpreter::createObjcInstanceForValue):
  27831. * bindings/objc/DOMViews.mm:
  27832. (-[DOMAbstractView WebCore::]):
  27833. (-[DOMAbstractView _initWithAbstractView:WebCore::]):
  27834. (+[DOMAbstractView _abstractViewWith:WebCore::]):
  27835. * bindings/objc/DOMViewsInternal.h: Removed.
  27836. * bindings/objc/DOMXPath.mm:
  27837. * bindings/objc/DOMXPathInternal.h: Removed.
  27838. * bindings/objc/PublicDOMInterfaces.h:
  27839. * bindings/scripts/CodeGeneratorObjC.pm:
  27840. * bridge/mac/WebCoreFrameBridge.mm:
  27841. (-[WebCoreFrameBridge typingStyle]):
  27842. * html/HTMLAnchorElement.idl:
  27843. * html/HTMLAreaElement.idl:
  27844. * html/HTMLImageElement.idl:
  27845. * html/HTMLInputElement.idl:
  27846. * html/HTMLLinkElement.idl:
  27847. 2006-09-05 Steve Falkenburg <sfalken@apple.com>
  27848. Conditionalize new DOM headers for ObjC only
  27849. * DerivedSources.make:
  27850. 2006-09-04 Alexey Proskuryakov <ap@nypop.com>
  27851. Reviewed by Darin.
  27852. http://bugs.webkit.org/show_bug.cgi?id=10716
  27853. XMLHttpRequest.responseText is null if HTTP response is empty
  27854. Extended existing tests:
  27855. - http/tests/xmlhttrequest/zero-length-response.html
  27856. - http/tests/xmlhttrequest/zero-length-response-sync.html
  27857. * xml/xmlhttprequest.cpp:
  27858. (WebCore::XMLHttpRequest::XMLHttpRequest): Initialize responseText to an empty string.
  27859. (WebCore::XMLHttpRequest::open): Reset responseText to an empty string.
  27860. * bindings/js/JSXMLHttpRequest.cpp:
  27861. (KJS::JSXMLHttpRequest::getValueProperty): Return null rather than undefined
  27862. for nil responseXML.
  27863. 2006-09-04 Timothy Hatcher <timothy@apple.com>
  27864. Reviewed by Darin.
  27865. Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
  27866. http://bugs.webkit.org/show_bug.cgi?id=10714
  27867. - New PublicDOMInterfaces.h file is consulted when generating
  27868. the ObjC DOM files. All public DOM class interfaces, properties
  27869. and methods need to be in this file. Anything not in the file will
  27870. be generated into the appropriate private header file. During
  27871. generation if something changed or is missing in the public API
  27872. a build error will occur. New interfaces added to the IDLs files
  27873. will now not automatically be reflected in the public ObjC API.
  27874. Methods commented out in PublicDOMInterfaces.h are pending public
  27875. and will be uncommented once approved.
  27876. - Removed most of the Exclude=ObjC uses from the IDL files. This
  27877. attribute was mostly used to prevent changes to the public headers.
  27878. - Make a new parameter name if the original conflicts with a property name.
  27879. - Simplified the generation code for dealing with exceptions.
  27880. - Moved file opens to WriteData. Files are unlinked before
  27881. being opened to work around a Leopard file truncation bug.
  27882. - Fixed #imports for DOMImplementation to be DOMDOMImplementation.h
  27883. * WebCore.xcodeproj/project.pbxproj:
  27884. * bindings/objc/DOMCSS.h:
  27885. * bindings/objc/DOMCore.h:
  27886. * bindings/objc/DOMExtensions.h:
  27887. * bindings/objc/DOMHTMLInternal.h:
  27888. * bindings/objc/DOMPrivate.h:
  27889. * bindings/objc/PublicDOMInterfaces.h: Added.
  27890. * bindings/scripts/CodeGeneratorObjC.pm:
  27891. * dom/Document.idl:
  27892. * dom/Element.idl:
  27893. * dom/NamedNodeMap.idl:
  27894. * dom/ProcessingInstruction.idl:
  27895. * html/HTMLAnchorElement.idl:
  27896. * html/HTMLAreaElement.idl:
  27897. * html/HTMLBodyElement.idl:
  27898. * html/HTMLButtonElement.idl:
  27899. * html/HTMLImageElement.idl:
  27900. * html/HTMLInputElement.idl:
  27901. * html/HTMLLabelElement.idl:
  27902. * html/HTMLLegendElement.idl:
  27903. * html/HTMLLinkElement.idl:
  27904. * html/HTMLOptionsCollection.idl:
  27905. * html/HTMLPreElement.idl:
  27906. * html/HTMLStyleElement.idl:
  27907. * html/HTMLTextAreaElement.idl:
  27908. 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
  27909. Reviewed by Tim H.
  27910. Continue fixing the build, I forgot this in my previous patch!
  27911. * platform/qt/PathQt.cpp:
  27912. (WebCore::Path::apply):
  27913. 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
  27914. Reviewed by Tim H.
  27915. Fix build on Qt/Linux.
  27916. * CMakeLists.txt:
  27917. * platform/qt/PathQt.cpp:
  27918. (WebCore::Path::transform):
  27919. 2006-09-04 Alexey Proskuryakov <ap@nypop.com>
  27920. Reviewed by Darin.
  27921. http://bugs.webkit.org/show_bug.cgi?id=10676
  27922. @charset rules not accessible via DOM
  27923. Test: fast/encoding/css-charset-dom.html
  27924. * WebCore.xcodeproj/project.pbxproj: Added CSSCharsetRule.cpp
  27925. * bindings/js/kjs_css.cpp:
  27926. (KJS::DOMCSSStyleSheet::getValueProperty):
  27927. Separated Rules and CssRules, since now they behave differently.
  27928. * css/CSSCharsetRule.h: Make the constructor take an encoding.
  27929. * css/CSSCharsetRule.cpp: Added.
  27930. * css/CSSGrammar.y: Create CSSStylesheetRules as necessary.
  27931. * css/CSSRuleList.cpp:
  27932. (WebCore::CSSRuleList::CSSRuleList):
  27933. * css/CSSRuleList.h:
  27934. * css/CSSStyleSheet.cpp:
  27935. (WebCore::CSSStyleSheet::cssRules):
  27936. * css/CSSStyleSheet.h:
  27937. Skip charset rules in IE compatibility mode.
  27938. * css/StyleBase.h:
  27939. (WebCore::StyleBase::isCharsetRule): Fixed a typo.
  27940. * css/cssparser.cpp:
  27941. (WebCore::CSSParser::createCharsetRule):
  27942. * css/cssparser.h:
  27943. Added createCharsetRule().
  27944. 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
  27945. Reviewed by Darin.
  27946. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
  27947. Let FrameQt operate on a FrameQtClient, just like Win/Mac handle it.
  27948. * CMakeLists.txt:
  27949. * platform/qt/FrameQt.cpp:
  27950. (WebCore::FrameQt::FrameQt):
  27951. (WebCore::FrameQt::~FrameQt):
  27952. (WebCore::FrameQt::openURL):
  27953. (WebCore::FrameQt::submitForm):
  27954. (WebCore::FrameQt::urlSelected):
  27955. * platform/qt/FrameQt.h:
  27956. * platform/qt/FrameQtClient.cpp: Added.
  27957. (WebCore::FrameQtClientDefault::FrameQtClientDefault):
  27958. (WebCore::FrameQtClientDefault::~FrameQtClientDefault):
  27959. (WebCore::FrameQtClientDefault::setFrame):
  27960. (WebCore::FrameQtClientDefault::openURL):
  27961. (WebCore::FrameQtClientDefault::submitForm):
  27962. (WebCore::FrameQtClientDefault::receivedResponse):
  27963. (WebCore::FrameQtClientDefault::receivedData):
  27964. (WebCore::FrameQtClientDefault::receivedAllData):
  27965. * platform/qt/FrameQtClient.h: Added.
  27966. (WebCore::FrameQtClient::~FrameQtClient):
  27967. 2006-09-04 Eric Seidel <eric@webkit.org>
  27968. Reviewed by andersca.
  27969. Clean-up style and spacing.
  27970. http://bugs.webkit.org/show_bug.cgi?id=10724
  27971. No tests needed, no functional changes.
  27972. * ksvg2/svg/svgpathparser.cpp:
  27973. (WebCore::parseCoord):
  27974. (WebCore::SVGPolyParser::parsePoints):
  27975. (WebCore::SVGPathParser::parseSVG):
  27976. (WebCore::SVGPathParser::calculateArc):
  27977. (WebCore::SVGPathParser::svgLineToHorizontal):
  27978. (WebCore::SVGPathParser::svgLineToVertical):
  27979. (WebCore::SVGPathParser::svgCurveToCubicSmooth):
  27980. (WebCore::SVGPathParser::svgCurveToQuadratic):
  27981. (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
  27982. (WebCore::SVGPathParser::svgArcTo):
  27983. 2006-09-04 Rob Buis <buis@kde.org>
  27984. Reviewed by Eric.
  27985. http://bugs.webkit.org/show_bug.cgi?id=6546
  27986. clipPath data does not respect transforms
  27987. Get the transform from the dom element and adjust
  27988. the clip path with it.
  27989. * ksvg2/svg/SVGClipPathElement.cpp:
  27990. (SVGClipPathElement::canvasResource):
  27991. 2006-09-04 Rob Buis <buis@kde.org>
  27992. Reviewed by Eric.
  27993. This code should have gone in as part of:
  27994. http://bugs.webkit.org/show_bug.cgi?id=10696
  27995. It addresses the comments there, also we use double instead
  27996. of float now in calculations.
  27997. * platform/Path.cpp:
  27998. (WebCore::Path::createRoundedRectangle):
  27999. (WebCore::Path::createRectangle):
  28000. (WebCore::Path::createEllipse):
  28001. (WebCore::Path::createCircle):
  28002. 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
  28003. Reviewed by Darin and Tim H.
  28004. - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
  28005. Auto-generate the Objective-C DOM Stylesheet bindings
  28006. Auto-generates DOMMediaList, DOMStyleSheet, and DOMStyleSheetList.
  28007. * DerivedSources.make:
  28008. * WebCore.xcodeproj/project.pbxproj:
  28009. * bindings/objc/DOMCSS.mm:
  28010. (+[DOMStyleSheet _styleSheetWith:]):
  28011. (+[DOMCSSStyleSheet _CSSStyleSheetWith:]):
  28012. * bindings/objc/DOMCSSInternal.h:
  28013. * bindings/objc/DOMInternal.h:
  28014. * bindings/objc/DOMObject.mm:
  28015. (-[DOMObject sheet]):
  28016. * bindings/objc/DOMPrivate.h:
  28017. * bindings/objc/DOMStylesheets.h:
  28018. * bindings/objc/DOMUtility.mm:
  28019. (KJS::ScriptInterpreter::createObjcInstanceForValue):
  28020. * bindings/scripts/CodeGeneratorObjC.pm:
  28021. * css/StyleSheet.idl: Added.
  28022. * css/StyleSheetList.idl: Added.
  28023. 2006-09-03 Rob Buis <buis@kde.org>
  28024. Reviewed by Darin.
  28025. http://bugs.webkit.org/show_bug.cgi?id=10696
  28026. RenderPathQuartz and RenderPathQt should not be needed
  28027. Cleanup of code related to RenderPath.
  28028. * CMakeLists.txt:
  28029. * WebCore.xcodeproj/project.pbxproj:
  28030. * kcanvas/KCanvasCreator.cpp:
  28031. * kcanvas/KCanvasCreator.h:
  28032. * kcanvas/RenderPath.cpp:
  28033. (WebCore::):
  28034. (WebCore::DrawMarkersData::DrawMarkersData):
  28035. (WebCore::drawMarkerWithData):
  28036. (WebCore::updateMarkerDataForElement):
  28037. (WebCore::drawStartAndMidMarkers):
  28038. (WebCore::RenderPath::drawMarkersIfNeeded):
  28039. * kcanvas/RenderPath.h:
  28040. * kcanvas/device/KRenderingDevice.h:
  28041. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  28042. * kcanvas/device/qt/KRenderingDeviceQt.h:
  28043. * kcanvas/device/qt/RenderPathQt.cpp:
  28044. (WebCore::RenderPath::strokeContains):
  28045. (WebCore::RenderPath::strokeBBox):
  28046. * kcanvas/device/qt/RenderPathQt.h:
  28047. * kcanvas/device/quartz/KCanvasItemQuartz.h:
  28048. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  28049. (WebCore::RenderPath::strokeBBox):
  28050. (WebCore::RenderPath::strokeContains):
  28051. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  28052. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  28053. * kcanvas/device/quartz/QuartzSupport.h:
  28054. * ksvg2/svg/SVGAElement.cpp:
  28055. * ksvg2/svg/SVGCircleElement.cpp:
  28056. (SVGCircleElement::toPathData):
  28057. * ksvg2/svg/SVGEllipseElement.cpp:
  28058. (WebCore::SVGEllipseElement::toPathData):
  28059. * ksvg2/svg/SVGFEImageElement.cpp:
  28060. * ksvg2/svg/SVGGElement.cpp:
  28061. * ksvg2/svg/SVGImageElement.cpp:
  28062. * ksvg2/svg/SVGLineElement.cpp:
  28063. (SVGLineElement::toPathData):
  28064. * ksvg2/svg/SVGMarkerElement.cpp:
  28065. * ksvg2/svg/SVGPathElement.cpp:
  28066. * ksvg2/svg/SVGPatternElement.cpp:
  28067. * ksvg2/svg/SVGPolygonElement.cpp:
  28068. * ksvg2/svg/SVGPolylineElement.cpp:
  28069. * ksvg2/svg/SVGRectElement.cpp:
  28070. (WebCore::SVGRectElement::toPathData):
  28071. * ksvg2/svg/SVGSVGElement.cpp:
  28072. * ksvg2/svg/SVGStyledElement.cpp:
  28073. (WebCore::SVGStyledElement::createRenderer):
  28074. * ksvg2/svg/SVGSwitchElement.cpp:
  28075. * ksvg2/svg/SVGTextElement.cpp:
  28076. * ksvg2/svg/SVGUseElement.cpp:
  28077. * platform/Path.h:
  28078. (WebCore::):
  28079. * platform/cg/PathCG.cpp:
  28080. (WebCore::CGPathToCFStringApplierFunction):
  28081. (WebCore::CGPathApplierToPathApplier):
  28082. (WebCore::Path::apply):
  28083. (WebCore::Path::transform):
  28084. * platform/qt/PathQt.cpp:
  28085. (WebCore::Path::apply):
  28086. 2006-09-03 Timothy Hatcher <timothy@apple.com>
  28087. Reviewed by Darin.
  28088. Bug 10685: ObjC DOM should have no unnamed parameters
  28089. http://bugs.webkit.org/show_bug.cgi?id=10685
  28090. - The ObjC code generation script now outputs parameter prefixes
  28091. for methods that have more than 1 parameter. This prefix is simply
  28092. the parameter name. Some parameter names have been changed in the IDL
  28093. files to produce better prefixes. If an extended attribute of "ObjCPrefix"
  28094. exists on a parameter we will use that for the prefix.
  28095. - A backwards compatible version of the method is placed in a
  28096. category with a deprecation macro for 10.5 and later. This step only
  28097. happens if the IDL extended attribute "OldStyleObjC" is defined.
  28098. All new functions in IDL should not get this attribute.
  28099. - Made the $interfaceMethodSelector regex in IDLStructure.pm allow "=" so
  28100. parameter extended attributes can have values.
  28101. - Moved RemoveExcludedAttributesAndFunctions to CodeGenerator.pm
  28102. so it can be shared between the two generators.
  28103. - Removed the die when we encounter a getter that uses exceptions.
  28104. Sam Weinig added support for this in an earlier change.
  28105. - Check if $ENV{"MACOSX_DEPLOYMENT_TARGET"} is defined before we compare.
  28106. This caused a perl warning when generating on other platforms.
  28107. - The ObjC generation will not happen on platforms other than Mac OS.
  28108. This is determined by the "OS" env variable Xcode sets. This check
  28109. is in the DerivedSources.make.
  28110. - Added a way to skip generation if the constructor of the specific
  28111. generator returns undef. Not used yet.
  28112. - Many cleanup tweaks in CodeGeneratorObjC.pm.
  28113. - Removed IDL and CSS files from the project's resource copy phase,
  28114. these do no need to be in WebCore's resources.
  28115. * DerivedSources.make
  28116. * WebCore.xcodeproj/project.pbxproj
  28117. * bindings/scripts/CodeGenerator.pm
  28118. * bindings/scripts/CodeGeneratorJS.pm
  28119. * bindings/scripts/CodeGeneratorObjC.pm
  28120. * bindings/scripts/IDLStructure.pm
  28121. * css/CSSMediaRule.idl
  28122. * css/CSSPrimitiveValue.idl
  28123. * css/CSSStyleDeclaration.idl
  28124. * css/CSSStyleSheet.idl
  28125. * dom/CharacterData.idl
  28126. * dom/DOMImplementation.idl
  28127. * dom/Document.idl
  28128. * dom/Element.idl
  28129. * dom/KeyboardEvent.idl
  28130. * dom/MouseEvent.idl
  28131. * dom/MutationEvent.idl
  28132. * dom/NamedNodeMap.idl
  28133. * dom/UIEvent.idl
  28134. * html/HTMLCanvasElement.idl
  28135. * html/HTMLSelectElement.idl
  28136. * ksvg2/bindings/idl/svg/SVGLengthList.idl
  28137. * ksvg2/bindings/idl/svg/SVGNumberList.idl
  28138. * ksvg2/bindings/idl/svg/SVGPointList.idl
  28139. * ksvg2/bindings/idl/svg/SVGStringList.idl
  28140. * ksvg2/bindings/idl/svg/SVGTextContentElement.idl
  28141. * ksvg2/bindings/idl/svg/SVGTransformList.idl
  28142. * ksvg2/svg/SVGSVGElement.idl
  28143. * page/DOMWindow.idl
  28144. 2006-09-03 Alexey Proskuryakov <ap@nypop.com>
  28145. Reviewed by Tim H.
  28146. http://bugs.webkit.org/show_bug.cgi?id=10693
  28147. Convert JavaScript arrays to AppleScript lists
  28148. Test: fast/AppleScript/array.html
  28149. * bridge/mac/WebCoreFrameBridge.mm:
  28150. (aeDescFromJSValue): Added a case for ArrayInstance.
  28151. 2006-09-03 Alexey Proskuryakov <ap@nypop.com>
  28152. Reviewed by Eric.
  28153. http://bugs.webkit.org/show_bug.cgi?id=10697
  28154. REGRESSION (r16175): Errors in incremental decoding of UTF-8
  28155. Tests:
  28156. - http/tests/incremental/slow-utf8-html.pl
  28157. - fast/encoding/charset-invalid.html
  28158. * loader/Decoder.cpp:
  28159. (Decoder::Decoder): Ensure that we have a valid encoding. Get its name via TextEncoding, to match
  28160. the logic in setEncodingName().
  28161. (Decoder::setEncodingName): Only set m_encodingName if the encoding is valid. Rely on TextEncoding
  28162. constructor to lowercase it if necessary.
  28163. (Decoder::decode): Use setEncodingName() to apply encoding from BOM. Don't try to ensure the
  28164. validity of encoding - it is enforced by class constructor and setEncodingName().
  28165. 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
  28166. Reviewed by Tim H.
  28167. - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
  28168. Auto-generate the Objective-C DOM CSS bindings
  28169. Auto-generates DOMCSSCharsetRule, DOMCSSFontFaceRule, DOMCSSImportRule,
  28170. DOMCSSMediaRule, DOMCSSPageRule, DOMCSSPrimitiveValue, DOMCSSRule,
  28171. DOMCSSRuleList, DOMCSSStyleDeclaration, DOMCSSStyleRule, DOMCSSStyleSheet,
  28172. DOMCSSUnknownRule, DOMCSSValue, DOMCSSValueList, DOMCounter, and DOMRect.
  28173. Splits DOMRGBColor into its own files.
  28174. * DerivedSources.make:
  28175. * WebCore.xcodeproj/project.pbxproj:
  28176. * bindings/objc/DOMCSS.h:
  28177. * bindings/objc/DOMCSS.mm:
  28178. (+[DOMCSSStyleSheet _CSSStyleSheetWith:]):
  28179. (+[DOMCSSPrimitiveValue _valueWith:]):
  28180. * bindings/objc/DOMCSSInternal.h:
  28181. * bindings/objc/DOMExtensions.h:
  28182. * bindings/objc/DOMInternal.h:
  28183. * bindings/objc/DOMRGBColor.h: Added.
  28184. * bindings/objc/DOMRGBColor.mm: Added.
  28185. (getWrapperForRGB):
  28186. (setWrapperForRGB):
  28187. (removeWrapperForRGB):
  28188. (-[DOMRGBColor dealloc]):
  28189. (-[DOMRGBColor finalize]):
  28190. (-[DOMRGBColor red]):
  28191. (-[DOMRGBColor green]):
  28192. (-[DOMRGBColor blue]):
  28193. (-[DOMRGBColor alpha]):
  28194. (-[DOMRGBColor color]):
  28195. (-[DOMRGBColor _initWithRGB:WebCore::]):
  28196. (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
  28197. * bindings/scripts/CodeGeneratorObjC.pm:
  28198. * css/CSSCharsetRule.idl: Added.
  28199. * css/CSSFontFaceRule.idl: Added.
  28200. * css/CSSImportRule.idl: Added.
  28201. * css/CSSMediaRule.idl: Added.
  28202. * css/CSSPageRule.idl: Added.
  28203. * css/CSSRule.idl:
  28204. * css/CSSStyleDeclaration.idl:
  28205. * css/CSSStyleRule.idl: Added.
  28206. * css/CSSStyleSheet.idl: Added.
  28207. * css/CSSUnknownRule.idl: Added.
  28208. * css/CSSValue.idl:
  28209. * css/MediaList.idl:
  28210. * css/RGBColor.idl: Added.
  28211. * css/Rect.idl:
  28212. * css/RectImpl.h:
  28213. 2006-09-02 Graham Dennis <graham.dennis@gmail.com>
  28214. Reviewed by Justin.
  28215. http://bugs.webkit.org/show_bug.cgi?id=10579
  28216. AppleStyleCommand::applyBlockStyle crash
  28217. * editing/ApplyStyleCommand.cpp:
  28218. (WebCore::ApplyStyleCommand::applyBlockStyle): Prevent a crash by
  28219. making sure that the 'beyondEnd' node is after the start node.
  28220. 2006-09-02 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  28221. Reviewed by Tim H.
  28222. Bug 10454: Unix bakefile fixes
  28223. http://bugs.webkit.org/show_bug.cgi?id=10454
  28224. * WebCoreSources.bkl:
  28225. * platform/gdk/RenderPopupMenuGdk.cpp:
  28226. (WebCore::RenderPopupMenuGdk::RenderPopupMenuGdk):
  28227. * platform/gdk/RenderPopupMenuGdk.h:
  28228. * platform/gdk/RenderThemeGdk.cpp:
  28229. (WebCore::RenderThemeGdk::createPopupMenu):
  28230. (WebCore::RenderThemeGdk::systemFont):
  28231. * platform/gdk/RenderThemeGdk.h:
  28232. * platform/gdk/TemporaryLinkStubs.cpp:
  28233. * webcore-base.bkl:
  28234. 2006-09-02 Adele Peterson <adele@apple.com>
  28235. Reviewed by Anders.
  28236. - Fix for http://bugs.webkit.org/show_bug.cgi?id=10667
  28237. Password: Double-click should select-all to avoid exposing word boundaries
  28238. Test: fast/forms/password-doubleclick-selection.html
  28239. * editing/visible_units.cpp:
  28240. (WebCore::previousBoundary): When searching for boundaries in renderers that use the textSecurity property,
  28241. convert characters in strings to alpha-numeric characters (in this case, all 'x's) so that every character
  28242. isn't treated as a punctuation boundary.
  28243. (WebCore::nextBoundary): ditto.
  28244. * editing/TextIterator.cpp: (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Updated to use the renderer's
  28245. string instead of the node value. This matches the base class implementation of handleTextNode.
  28246. Code cleanup.
  28247. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
  28248. Avoid unnecessary check for password field case if the smart replace condition is false.
  28249. * page/Frame.cpp: (WebCore::Frame::mayCopy): Removed duplicate code. Calls isSelectionInPasswordField now.
  28250. * rendering/RenderText.cpp: (WebCore::RenderText::setText): Updated formatting.
  28251. 2006-09-01 David Hyatt <hyatt@apple.com>
  28252. Fix for 10682, refine the FOUC paint suppression logic so that it
  28253. is only triggered when FOUC would really have occurred.
  28254. Reviewed by aroben
  28255. * css/cssstyleselector.cpp:
  28256. (WebCore::CSSStyleSelector::styleForElement):
  28257. * dom/Document.cpp:
  28258. (WebCore::Document::Document):
  28259. (WebCore::Document::updateLayoutIgnorePendingStylesheets):
  28260. (WebCore::Document::updateStyleSelector):
  28261. * dom/Document.h:
  28262. (WebCore::Document::haveStylesheetsLoaded):
  28263. (WebCore::Document::):
  28264. (WebCore::Document::didLayoutWithPendingStylesheets):
  28265. * rendering/RenderBlock.cpp:
  28266. (WebCore::RenderBlock::paintChildren):
  28267. * rendering/RenderLayer.cpp:
  28268. (WebCore::RenderLayer::paintLayer):
  28269. 2006-09-01 Darin Fisher <darin@chromium.org>
  28270. Reviewed by Darin. Updated/landed by Adam.
  28271. Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
  28272. Windows build fixes
  28273. * WebCore.vcproj/WebCore/WebCore.vcproj:
  28274. * WebCore.vcproj/WebCore/build-generated-files.sh:
  28275. * bridge/win/FrameWin.h:
  28276. * bridge/win/PageWin.cpp:
  28277. (WebCore::Page::Page):
  28278. * platform/win/FontWin.cpp:
  28279. * platform/win/TemporaryLinkStubs.cpp:
  28280. (FrameWin::registerCommandForUndo):
  28281. (FrameWin::canPaste):
  28282. (FrameWin::issuePasteAndMatchStyleCommand):
  28283. (WebCore::screenDepthPerComponent):
  28284. (WebCore::screenIsMonochrome):
  28285. (FrameWin::overrideMediaType):
  28286. (FrameWin::saveDocumentState):
  28287. (FrameWin::respondToChangedContents):
  28288. (FrameWin::handledOnloadEvents):
  28289. (FrameWin::createPlugin):
  28290. (FrameWin::objectContentType):
  28291. (Path::contains):
  28292. (TextField::TextField):
  28293. (RenderPopupMenuWin::hidePopup):
  28294. (RenderThemeWin::paintMenuList):
  28295. (RenderThemeWin::adjustMenuListStyle):
  28296. (CString::CString):
  28297. (CString::data):
  28298. * platform/win/WidgetWin.cpp:
  28299. * rendering/RenderPopupMenuWin.h:
  28300. 2006-09-01 Brady Eidson <beidson@apple.com>
  28301. Reviewed by Tim Omernick
  28302. Added an SQLDatabase logging channel. Changed all SQLDatabase and SQLStatement errors to use this new channel.
  28303. Also, as a popular request from other contributers, added a log for all prepare(), step(), finalize(), and reset()s
  28304. Also, fixed a grammar error in my previous ChangeLog entry.
  28305. * bridge/mac/WebCorePageBridge.mm:
  28306. (initializeLoggingChannelsIfNecessary): Initialize the new channel
  28307. * loader/icon/SQLDatabase.cpp:
  28308. (WebCore::SQLDatabase::setBusyTimeout): Use SQLDatabase logging channel
  28309. (WebCore::SQLDatabase::setBusyHandler): ditto
  28310. (WebCore::SQLDatabase::clearAllTables): ditto
  28311. (WebCore::SQLDatabase::runVacuumCommand): ditto
  28312. * loader/icon/SQLStatement.cpp:
  28313. (WebCore::SQLStatement::prepare): Added a log
  28314. (WebCore::SQLStatement::step): ditto
  28315. (WebCore::SQLStatement::finalize): ditto
  28316. (WebCore::SQLStatement::reset): ditto
  28317. (WebCore::SQLStatement::getColumnBlob): Use SQLDatabase logging channel
  28318. (WebCore::SQLStatement::returnTextResults): ditto
  28319. (WebCore::SQLStatement::returnTextResults16): ditto
  28320. (WebCore::SQLStatement::returnIntResults): ditto
  28321. (WebCore::SQLStatement::returnInt64Results): ditto
  28322. (WebCore::SQLStatement::returnDoubleResults): ditto
  28323. * platform/Logging.cpp:
  28324. (WebCore::): Added new logging channel
  28325. * platform/Logging.h: ditto
  28326. 2006-09-01 Adele Peterson <adele@apple.com>
  28327. Reviewed by Tim Omernick.
  28328. - Fix for http://bugs.webkit.org/show_bug.cgi?id=6990
  28329. Switch to use new text field implementation for <input type="password">
  28330. * css/html4.css: Give input[password] the same style properties as normal text fields.
  28331. * html/HTMLInputElement.cpp: Removed checks for TextFieldAppearance.
  28332. (WebCore::HTMLInputElement::selectionStart):
  28333. (WebCore::HTMLInputElement::selectionEnd):
  28334. (WebCore::HTMLInputElement::setSelectionStart):
  28335. (WebCore::HTMLInputElement::setSelectionEnd):
  28336. (WebCore::HTMLInputElement::select):
  28337. (WebCore::HTMLInputElement::setSelectionRange):
  28338. (WebCore::HTMLInputElement::createRenderer):
  28339. * html/HTMLInputElement.h: (WebCore::HTMLInputElement::isNonWidgetTextField):
  28340. 2006-09-01 Brady Eidson <beidson@apple.com>
  28341. Reviewed by John (though Sarge reviewed a previous patch of mine in an attempt to review this one)
  28342. Added some constants for SQL Result Codes to SQLDatabase.h
  28343. This way, users of SQLDatabase can access all necessary SQLite functionality
  28344. without having access to sqlite3.h.
  28345. Also reordered some files in the xcodeproj and some #includes
  28346. * WebCore.xcodeproj/project.pbxproj: Reordered some files
  28347. * loader/icon/IconDataCache.cpp:
  28348. (WebCore::IconDataCache::writeToDatabase): Use our new result codes
  28349. * loader/icon/IconDatabase.cpp:
  28350. (WebCore::IconDatabase::sharedIconDatabase): Use our new result codes
  28351. (WebCore::IconDatabase::retainIconForPageURL): Use our new result codes
  28352. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Use our new result codes
  28353. (WebCore::IconDatabase::addIconForIconURLQuery): Use our new result codes
  28354. (WebCore::IconDatabase::hasIconForIconURLQuery): Use our new result codes
  28355. * loader/icon/SQLDatabase.cpp:
  28356. (WebCore::SQLDatabase::lastError): Moved from header to eliminate dependency on sqlite3.h in header
  28357. (WebCore::SQLDatabase::lastErrorMsg): Ditto
  28358. * loader/icon/SQLDatabase.h: Removed #include <sqlite3.h>
  28359. * loader/icon/SQLStatement.cpp: Added #include <sqlite3.h>
  28360. * loader/icon/SQLStatement.h: Removed #include <sqlite3.h>
  28361. 2006-09-01 David Hyatt <hyatt@apple.com>
  28362. Fix for 10680, contrained flexbox is not shrinking flexible children
  28363. properly. (Fixing in case it's hit by the file upload control.)
  28364. Reviewed by aroben
  28365. Adding 026.html to fast/flexbox.
  28366. * rendering/RenderFlexibleBox.cpp:
  28367. (WebCore::RenderFlexibleBox::allowedChildFlex):
  28368. 2006-09-01 Nikolas Zimmermann <zimmermann@kde.org>
  28369. Reviewed by eseidel. Landed by eseidel.
  28370. Implement support for multiple parents in the SVG idls.
  28371. For class "FooBar" go through all parents recursively,
  28372. collect their attributes & functions & constants and
  28373. add them directly into the class "FooBar".
  28374. (Note: It is NOT enabled by default for now - still some things related to SVGAnimated* need to be solved first)
  28375. * bindings/scripts/CodeGenerator.pm:
  28376. * bindings/scripts/CodeGeneratorJS.pm:
  28377. * bindings/scripts/generate-bindings.pl:
  28378. 2006-09-02 Nikolas Zimmermann <zimmermann@kde.org>
  28379. Reviewed by hyatt. Landed by eseidel.
  28380. Fix build on Linux.
  28381. * CMakeLists.txt: Add platform/CString.cpp.
  28382. * platform/qt/FrameQt.cpp: Correct repsondToChangedContents() signature
  28383. * platform/qt/FrameQt.h:: Correct respondToChangedContents() signature
  28384. 2006-09-01 Darin Adler <darin@apple.com>
  28385. Reviewed by Brady.
  28386. - a few small tweaks to the icon database bridge
  28387. * bridge/mac/WebCoreIconDatabaseBridge.h: Removed unnecessary declarations.
  28388. Renamed sharedBridgeInstance to sharedInstance.
  28389. * bridge/mac/WebCoreIconDatabaseBridge.mm: Put functions inside WebCore namespace.
  28390. (WebCore::IconDatabase::loadIconFromURL): Updated for sharedInstance namespace.
  28391. 2006-09-01 Timothy Hatcher <timothy@apple.com>
  28392. Reviewed by Darin.
  28393. <rdar://problem/4651318> REGRESSION: can't drag library items to widget in Dashcode
  28394. <rdar://problem/4701626> REGRESSION: Unit Converter widget doesn't work convert data in its fields
  28395. jsNull should not be returned as NSNull because existing applications do not
  28396. expect that return value. Return as nil for backwards compatibility.
  28397. * bindings/objc/WebScriptObject.mm:
  28398. (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:]):
  28399. 2006-09-01 Alexey Proskuryakov <ap@nypop.com>
  28400. Release build fix.
  28401. * loader/Decoder.cpp:
  28402. (Decoder::Decoder): Use String::latin1().
  28403. 2006-09-01 Alexey Proskuryakov <ap@nypop.com>
  28404. Reviewed by Eric.
  28405. - http://bugs.webkit.org/show_bug.cgi?id=5620
  28406. Should only honor encoding from <meta> in HTML
  28407. - http://bugs.webkit.org/show_bug.cgi?id=9783
  28408. An XML declaration without an explicit encoding incorrectly triggers
  28409. UTF-8 encoding in an HTML document
  28410. - http://bugs.webkit.org/show_bug.cgi?id=10155
  28411. CSS2: @charset is not supported
  28412. * loader/Decoder.cpp:
  28413. (Decoder::Decoder): Decoder now knows what kind of content it is decoding.
  28414. Also, the browser default encoding can now be passed directly to the constructor,
  28415. to streamline the logic.
  28416. (Decoder::decode): Add support for @charset, differentiate between HTML and XML.
  28417. (Decoder::setEncodingName): Style cleanup.
  28418. (Decoder::encodingName): Ditto.
  28419. (Decoder::flush): Ditto.
  28420. * loader/Decoder.h:
  28421. (WebCore::Decoder::):
  28422. * bridge/mac/WebCoreEncodings.mm: Pass a content type of text/html to Decoder.
  28423. * loader/CachedCSSStyleSheet.cpp:
  28424. (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
  28425. (WebCore::CachedCSSStyleSheet::setCharset):
  28426. (WebCore::CachedCSSStyleSheet::data):
  28427. * loader/CachedCSSStyleSheet.h:
  28428. Use Decoder instead of TextEncoding::toUnicode() to enable @charset support.
  28429. * loader/CachedXBLDocument.cpp:
  28430. (WebCore::CachedXBLDocument::CachedXBLDocument): Pass a content type.
  28431. * loader/CachedXSLStyleSheet.cpp:
  28432. (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet): Ditto.
  28433. (WebCore::CachedXSLStyleSheet::data): Flush the decoder to be safe.
  28434. * page/Frame.cpp:
  28435. (WebCore::Frame::write): Pass a content type and a default encoding to
  28436. the Decoder.
  28437. * xml/XSLTProcessor.cpp:
  28438. (WebCore::XSLTProcessor::createDocumentFromSource): Pass the output document
  28439. MIME type.
  28440. * xml/xmlhttprequest.cpp:
  28441. (WebCore::XMLHttpRequest::receivedData): Ditto.
  28442. 2006-09-01 Adele Peterson <adele@apple.com>
  28443. Reviewed by John.
  28444. - Fix for http://bugs.webkit.org/show_bug.cgi?id=10580
  28445. Password: New secure text field allows non-Roman text entry
  28446. * bridge/mac/FrameMac.mm:
  28447. (WebCore::FrameMac::setSecureKeyboardEntry): Enable and disable Roman keyboards when switching in and out of this mode.
  28448. (WebCore::FrameMac::isSecureKeyboardEntry): Changed secureKeyboardEntry to isSecureKeyboardEntry.
  28449. * bridge/mac/FrameMac.h: ditto.
  28450. * page/Frame.cpp: (WebCore::Frame::setIsActive): ditto.
  28451. * page/Frame.h: (WebCore::Frame::isSecureKeyboardEntry): ditto.
  28452. 2006-09-01 Adele Peterson <adele@apple.com>
  28453. Reviewed by John.
  28454. - Fix for http://bugs.webkit.org/show_bug.cgi?id=10665
  28455. Password: Disable smartReplace for new password fields
  28456. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
  28457. Don't smart replace when the selection being replaced is in a password field.
  28458. 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
  28459. Reviewed by Tim H.
  28460. - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
  28461. Auto-generate the remaining Objective-C HTML DOM bindings
  28462. Auto-generates DOMHTMLAnchorElement, DOMHTMLAreaElement,
  28463. DOMHTMLBaseFontElement, DOMHTMLFontElement, DOMHTMLFrameElement,
  28464. DOMHTMLFrameSetElement, DOMHTMLHRElement, DOMHTMLIFrameElement,
  28465. DOMHTMLImageElement, DOMHTMLMapElement, DOMHTMLModElement,
  28466. DOMHTMLObjectElement, DOMHTMLParamElement, DOMHTMLScriptElement,
  28467. DOMHTMLTableCaptionElement, DOMHTMLTableCellElement,
  28468. DOMHTMLTableColElement, DOMHTMLTableElement, DOMHTMLTableRowElement,
  28469. and DOMHTMLTableSectionElement.
  28470. Splits DOMHTMLAppletElement and DOMHTMLOptionElement into their own
  28471. files.
  28472. * DerivedSources.make:
  28473. * WebCore.xcodeproj/project.pbxproj:
  28474. * bindings/objc/DOM.mm:
  28475. * bindings/objc/DOMExtensions.h:
  28476. * bindings/objc/DOMHTML.h:
  28477. * bindings/objc/DOMHTML.mm:
  28478. (-[DOMHTMLAnchorElement absoluteLinkURL]):
  28479. (-[DOMHTMLImageElement altDisplayString]):
  28480. (-[DOMHTMLImageElement absoluteImageURL]):
  28481. (-[DOMHTMLImageElement WebCore::]):
  28482. (-[DOMHTMLObjectElement absoluteImageURL]):
  28483. (-[DOMHTMLObjectElement WebCore::]):
  28484. (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
  28485. (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
  28486. (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
  28487. (-[DOMHTMLTableSectionElement _tableSectionElement]):
  28488. (+[DOMHTMLTableElement _tableElementWith:]):
  28489. (-[DOMHTMLTableElement _tableElement]):
  28490. (+[DOMHTMLTableCellElement _tableCellElementWith:]):
  28491. (-[DOMHTMLTableCellElement _tableCellElement]):
  28492. * bindings/objc/DOMHTMLAppletElement.h: Added.
  28493. * bindings/objc/DOMHTMLAppletElement.mm: Added.
  28494. (-[DOMHTMLAppletElement WebCore::]):
  28495. (-[DOMHTMLAppletElement align]):
  28496. (-[DOMHTMLAppletElement setAlign:]):
  28497. (-[DOMHTMLAppletElement alt]):
  28498. (-[DOMHTMLAppletElement setAlt:]):
  28499. (-[DOMHTMLAppletElement archive]):
  28500. (-[DOMHTMLAppletElement setArchive:]):
  28501. (-[DOMHTMLAppletElement code]):
  28502. (-[DOMHTMLAppletElement setCode:]):
  28503. (-[DOMHTMLAppletElement codeBase]):
  28504. (-[DOMHTMLAppletElement setCodeBase:]):
  28505. (-[DOMHTMLAppletElement height]):
  28506. (-[DOMHTMLAppletElement setHeight:]):
  28507. (-[DOMHTMLAppletElement hspace]):
  28508. (-[DOMHTMLAppletElement setHspace:]):
  28509. (-[DOMHTMLAppletElement name]):
  28510. (-[DOMHTMLAppletElement setName:]):
  28511. (-[DOMHTMLAppletElement object]):
  28512. (-[DOMHTMLAppletElement setObject:]):
  28513. (-[DOMHTMLAppletElement vspace]):
  28514. (-[DOMHTMLAppletElement setVspace:]):
  28515. (-[DOMHTMLAppletElement width]):
  28516. (-[DOMHTMLAppletElement setWidth:]):
  28517. * bindings/objc/DOMHTMLInternal.h:
  28518. * bindings/objc/DOMHTMLOptionElement.h: Added.
  28519. * bindings/objc/DOMHTMLOptionElement.mm: Added.
  28520. (-[DOMHTMLOptionElement WebCore::]):
  28521. (-[DOMHTMLOptionElement form]):
  28522. (-[DOMHTMLOptionElement defaultSelected]):
  28523. (-[DOMHTMLOptionElement setDefaultSelected:]):
  28524. (-[DOMHTMLOptionElement text]):
  28525. (-[DOMHTMLOptionElement index]):
  28526. (-[DOMHTMLOptionElement disabled]):
  28527. (-[DOMHTMLOptionElement setDisabled:]):
  28528. (-[DOMHTMLOptionElement label]):
  28529. (-[DOMHTMLOptionElement setLabel:]):
  28530. (-[DOMHTMLOptionElement selected]):
  28531. (-[DOMHTMLOptionElement setSelected:]):
  28532. (-[DOMHTMLOptionElement value]):
  28533. (-[DOMHTMLOptionElement setValue:]):
  28534. * bindings/objc/DOMPrivate.h:
  28535. * bindings/scripts/CodeGeneratorObjC.pm:
  28536. 2006-08-31 Alice Liu <alice.liu@apple.com>
  28537. Reviewed by Darin.
  28538. Fixed <rdar://problem/4463870> Switch to use new text field implementation for <isindex>
  28539. * bindings/objc/DOMHTML.mm:
  28540. (-[DOMHTMLInputElement _isTextField]):
  28541. moved isindex from the list of nonTextInputTypes to the list of textInputTypes
  28542. * css/html4.css:
  28543. added isindex to certain rules that applied to input fields
  28544. * html/HTMLInputElement.cpp:
  28545. (WebCore::HTMLInputElement::canHaveSelection):
  28546. (WebCore::HTMLInputElement::selectionStart):
  28547. (WebCore::HTMLInputElement::selectionEnd):
  28548. (WebCore::HTMLInputElement::setSelectionStart):
  28549. (WebCore::HTMLInputElement::setSelectionEnd):
  28550. (WebCore::HTMLInputElement::select):
  28551. (WebCore::HTMLInputElement::setSelectionRange):
  28552. (WebCore::HTMLInputElement::createRenderer):
  28553. for the 8 methods above, moved the case for isindex to the same case as text
  28554. * html/HTMLInputElement.h:
  28555. (WebCore::HTMLInputElement::isNonWidgetTextField):
  28556. added isindex to this test
  28557. * html/HTMLIsIndexElement.idl:
  28558. HTMLIsIndexElement inherits from HTMLInputElement
  28559. * rendering/RenderLineEdit.cpp:
  28560. (WebCore::RenderLineEdit::RenderLineEdit):
  28561. removed the case for isindex since we changed the renderer type from a RenderLineEdit
  28562. to a RenderTextControl in WebCore::HTMLInputElement::createRenderer()
  28563. 2006-08-31 David Harrison <harrison@apple.com>
  28564. Reviewed by Adele.
  28565. <rdar://problem/4708119> REGRESSION: Cannot observe an AXTextField element directly
  28566. ... and most of
  28567. <rdar://problem/4708022> REGRESSION: TextRange-based attributes are missing from text fields
  28568. <rdar://problem/4709515> REGRESSION: Expose text areas
  28569. Remaining work for those two bugs in new bugs:
  28570. <rdar://problem/4712101> Support NSAccessibilityVisibleCharacterRangeAttribute for AXTextField and AXTextArea elements
  28571. <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
  28572. <rdar://problem/4712125> Support setting NSAccessibilitySelectedTextAttribute for AXTextField and AXTextArea elements
  28573. * bridge/AXObjectCache.h:
  28574. (WebCore::AXObjectCache::postNotificationToElement):
  28575. * bridge/mac/AXObjectCacheMac.mm:
  28576. (WebCore::AXObjectCache::postNotification):
  28577. (WebCore::AXObjectCache::postNotificationToElement):
  28578. Removed postNotificationToTopWebArea.
  28579. postNotification now posts to input element or top web area, as appropriate.
  28580. postNotificationToElement posts to the specified element itself.
  28581. * bridge/mac/FrameMac.h:
  28582. * bridge/mac/FrameMac.mm:
  28583. (WebCore::FrameMac::respondToChangedContents):
  28584. Take a selection. Pass the starting position's renderer to postNotification so that postNotification can post to the appropriate input element, if any.
  28585. * bridge/mac/WebCoreAXObject.h:
  28586. * bridge/mac/WebCoreAXObject.mm:
  28587. (-[WebCoreAXObject isWebArea]):
  28588. (-[WebCoreAXObject isAnchor]):
  28589. (-[WebCoreAXObject isTextRange]):
  28590. New convenience methods.
  28591. (-[WebCoreAXObject role]):
  28592. (-[WebCoreAXObject roleDescription])
  28593. (-[WebCoreAXObject value]):
  28594. (-[WebCoreAXObject accessibilityDescription]):
  28595. Support AXTextField and AXTextArea.
  28596. (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
  28597. Register AXTextField and AXTextArea elements so notifications to them can be observed.
  28598. (-[WebCoreAXObject accessibilityIsIgnored]):
  28599. Use new convenience method isWebArea.
  28600. (-[WebCoreAXObject accessibilityAttributeNames]):
  28601. Simplify the array creation.
  28602. Add text range support.
  28603. (-[WebCoreAXObject accessibilityAttributeValue:]):
  28604. Add text range support.
  28605. (-[WebCoreAXObject canSetFocusAttribute]):
  28606. (-[WebCoreAXObject canSetValueAttribute]):
  28607. (-[WebCoreAXObject canSetTextRangeAttributes]):
  28608. New convenience methods.
  28609. (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
  28610. (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
  28611. Add text range support.
  28612. (-[WebCoreAXObject observableObject]):
  28613. New to locate text field or text area to notify.
  28614. * dom/Document.cpp:
  28615. (WebCore::Document::updateSelection):
  28616. Post AXSelectedTextChanged notification with new selection's start node.
  28617. postNotification will send it to the input element, if there is one, or the top WebArea.
  28618. (WebCore::Document::implicitClose):
  28619. Use postNotificationToElement now that it acts like the old postNotification.
  28620. * page/Frame.h:
  28621. * page/Frame.cpp:
  28622. (WebCore::Frame::appliedEditing):
  28623. (WebCore::Frame::unappliedEditing):
  28624. (WebCore::Frame::reappliedEditing):
  28625. Pass the selection of interest to respondToChangedContents.
  28626. * page/FrameView.cpp:
  28627. (WebCore::FrameView::layout):
  28628. Use postNotificationToElement now that it acts like the old postNotification.
  28629. 2006-08-31 Adele Peterson <adele@apple.com>
  28630. Reviewed by Darin.
  28631. WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
  28632. Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
  28633. * bridge/mac/WebCoreFrameBridge.h:
  28634. * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge isSelectionInPasswordField]): Added.
  28635. * page/Frame.cpp: (WebCore::Frame::isSelectionInPasswordField): Added.
  28636. * page/Frame.h:
  28637. 2006-08-31 Anders Carlsson <acarlsson@apple.com>
  28638. Reviewed by Tim O, Hyatt.
  28639. * WebCore.xcodeproj/project.pbxproj:
  28640. Add KURLCFNet.cpp
  28641. * platform/KURL.h:
  28642. Get rid of include, add KURL constructor that takes a CFURLRef.
  28643. * platform/PlatformString.h:
  28644. * platform/StringImpl.h:
  28645. Get rid of include.
  28646. * platform/cf/KURLCFNet.cpp:
  28647. (WebCore::KURL::KURL):
  28648. Add constructor.
  28649. * platform/cf/ResourceLoaderCFNet.cpp:
  28650. Fix includes.
  28651. * platform/cf/StringCF.cpp:
  28652. (WebCore::String::createCFString):
  28653. Move this here from PlatformString.h
  28654. * platform/cf/StringImplCF.cpp:
  28655. (WebCore::StringImpl::createCFString):
  28656. Fix cast.
  28657. * platform/mac/KURLMac.mm:
  28658. Move createCFURL() to KURLCFNet.cpp
  28659. 2006-08-31 Dave Hyatt <hyatt@apple.com>
  28660. Make ScrollBar.cpp suitable for compiling on Windows by removing the #import.
  28661. Reviewed by adam
  28662. * platform/ScrollBar.cpp:
  28663. 2006-08-31 Brady Eidson <beidson@apple.com>
  28664. Reviewed by John
  28665. Cleaned up my last patch after further considerations
  28666. * loader/icon/IconDatabase.cpp:
  28667. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Uses the new checkForDanglingPageURLs to check
  28668. for and fix danglers. Does so in all builds (changed from debug only in my last patch)
  28669. (WebCore::IconDatabase::syncDatabase): Uses the new checkForDanglingPageURLs to check for danglers
  28670. (WebCore::IconDatabase::checkForDanglingPageURLs): This checks and, if asked via an arg, prunes the dangling pageURLs
  28671. * loader/icon/IconDatabase.h:
  28672. 2006-08-31 Anders Carlsson <acarlsson@apple.com>
  28673. Reviewed by Maciej.
  28674. Add CString. CString is a simple, null-terminated byte buffer that supports data
  28675. sharing. Its main use is to be a better const char*.
  28676. Also add latin1 and utf8 methods to String which returns CStrings.
  28677. * platform/CString.cpp: Added.
  28678. (WebCore::CString::CString):
  28679. (WebCore::CString::init):
  28680. (WebCore::CString::data):
  28681. (WebCore::CString::length):
  28682. (WebCore::CString::deprecatedCString):
  28683. * platform/CString.h: Added.
  28684. (WebCore::CStringBuffer::CStringBuffer):
  28685. (WebCore::CStringBuffer::data):
  28686. (WebCore::CStringBuffer::length):
  28687. (WebCore::CString::CString):
  28688. (WebCore::CString::operator const char*):
  28689. (WebCore::CString::isNull):
  28690. * platform/PlatformString.h:
  28691. * platform/String.cpp:
  28692. (WebCore::String::latin1):
  28693. (WebCore::String::utf8):
  28694. 2006-08-31 Brady Eidson <beidson@apple.com>
  28695. Reviewed by Hyatt
  28696. Previously mentioned ASSERT was hit right away by folks, as we first need to bring their old icon.db into consistency
  28697. Changed the ASSERT to a LOG_ERROR and added a method for debug builds to bring a DB back together.
  28698. * loader/icon/IconDatabase.cpp:
  28699. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Check for the danglers and prune them out
  28700. (WebCore::IconDatabase::syncDatabase): Check for the danglers and log the error
  28701. (WebCore::IconDatabase::pruneDanglingPageURLs): Prune the danglers
  28702. * loader/icon/IconDatabase.h:
  28703. 2006-08-31 Brady Eidson <beidson@apple.com>
  28704. Reviewed by Hyatt
  28705. Fixed an error where an Icon's IconID could change without the change being reflected in the PageURL table,
  28706. causing icons to be pruned before their time and pages to lose their icons. This is because I misunderstood
  28707. how SQLite handles the "ON CONFLICT REPLACE" condition, which is to delete the row and re-insert instead of
  28708. perform an update. Also added an assertion to make sure this doesn't happen again.
  28709. * loader/icon/IconDataCache.cpp:
  28710. (WebCore::IconDataCache::writeToDatabase): Instead of one INSERT relying on SQLites conflict handling, broke
  28711. this into an UPDATE attempt followed by the initial INSERT
  28712. * loader/icon/IconDatabase.cpp:
  28713. (WebCore::IconDatabase::createDatabaseTables): Slight tweak to the database schema to prevent this from happening
  28714. in the future. Note this change will not cause incompatibility with the current schema, therefore I didn't update
  28715. the official database version number
  28716. (WebCore::IconDatabase::syncDatabase): Added an ASSERT to look for this condition in the future
  28717. * loader/icon/SQLDatabase.cpp:
  28718. (WebCore::SQLDatabase::lastChanges): Added this SQLite accessor to see if an UPDATE command actually changed a row
  28719. * loader/icon/SQLDatabase.h: Ditto
  28720. 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
  28721. Reviewed by Tim H.
  28722. - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
  28723. Auto-generate another 20 Objective-C DOM HTML bindings
  28724. Auto-generates DOMHTMLBRElement, DOMHTMLButtonElement, DOMHTMLDListElement,
  28725. DOMHTMLDirectoryElement, DOMHTMLDivElement, DOMHTMLFieldSetElement,
  28726. DOMHTMLHeadingElement, DOMHTMLInputElement, DOMHTMLLIElement, DOMHTMLLabelElement,
  28727. DOMHTMLLegendElement, DOMHTMLMenuElement, DOMHTMLOListElement, DOMHTMLOptGroupElement,
  28728. DOMHTMLParagraphElement, DOMHTMLPreElement, DOMHTMLQuoteElement, DOMHTMLSelectElement,
  28729. DOMHTMLTextAreaElement, and DOMHTMLUListElement.
  28730. * DerivedSources.make:
  28731. * WebCore.xcodeproj/project.pbxproj:
  28732. * bindings/objc/DOM.mm:
  28733. * bindings/objc/DOMExtensions.h:
  28734. * bindings/objc/DOMHTML.h:
  28735. * bindings/objc/DOMHTML.mm:
  28736. (-[DOMHTMLInputElement altDisplayString]):
  28737. (-[DOMHTMLInputElement absoluteImageURL]):
  28738. (-[DOMHTMLInputElement WebCore::]):
  28739. (-[DOMHTMLInputElement _rectOnScreen]):
  28740. (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
  28741. (-[DOMHTMLInputElement _selectedRange]):
  28742. (-[DOMHTMLInputElement _setAutofilled:]):
  28743. * bindings/objc/DOMHTMLInternal.h:
  28744. * bindings/objc/DOMPrivate.h:
  28745. * bindings/scripts/CodeGeneratorObjC.pm:
  28746. 2006-08-31 Adele Peterson <adele@apple.com>
  28747. Reviewed by John Sullivan.
  28748. Removing use of SPI in favor of Carbon API to enable and disable secure event input.
  28749. * WebCore.exp: Removed wkSecureEventInput and wkSetSecureEventInput.
  28750. * platform/mac/WebCoreSystemInterface.h: ditto.
  28751. * platform/mac/WebCoreSystemInterface.mm: ditto.
  28752. * bridge/mac/FrameMac.mm:
  28753. (WebCore::FrameMac::setSecureKeyboardEntry): Uses EnableSecureEventInput and DisableSecureEventInput.
  28754. (WebCore::FrameMac::secureKeyboardEntry): Uses IsSecureEventInputEnabled.
  28755. 2006-08-30 Brady Eidson <beidson@apple.com>
  28756. Reviewed by "common sense" (and Maciej)
  28757. Fixed two logging typos
  28758. * loader/icon/IconDatabase.cpp:
  28759. (WebCore::IconDatabase::syncDatabase):
  28760. 2006-08-30 Adele Peterson <adele@apple.com>
  28761. Adding missing nil check for focus node.
  28762. * page/Frame.cpp: (WebCore::Frame::setIsActive):
  28763. 2006-08-30 Adele Peterson <adele@apple.com>
  28764. Reviewed by Hyatt.
  28765. WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
  28766. Enable secure input mode for new password fields
  28767. * WebCore.exp: Added wkSetSecureEventInput and wkSecureEventInput.
  28768. * platform/mac/WebCoreSystemInterface.h: ditto.
  28769. * platform/mac/WebCoreSystemInterface.mm: ditto.
  28770. * page/Frame.cpp: (WebCore::Frame::setIsActive): Enables and disables secure keyboard entry based on whether the frame becomes active.
  28771. * bridge/mac/FrameMac.h:
  28772. * bridge/mac/FrameMac.mm:
  28773. (WebCore::FrameMac::setSecureKeyboardEntry): Added. Calls wkSetSecureEventInput.
  28774. (WebCore::FrameMac::secureKeyboardEntry): Added. Calls wkSecureEventInput.
  28775. * html/HTMLInputElement.cpp:
  28776. (WebCore::HTMLInputElement::dispatchFocusEvent): For password fields, enable secure keyboard entry.
  28777. (WebCore::HTMLInputElement::dispatchBlurEvent): For password fields, disable secure keyboard entry.
  28778. * page/Frame.h:
  28779. (WebCore::Frame::setSecureKeyboardEntry):
  28780. (WebCore::Frame::secureKeyboardEntry):
  28781. 2006-08-30 Darin Adler <darin@apple.com>
  28782. Reviewed by Tim Hatcher.
  28783. - eliminated the need for UsesPassRefPtr in IDL files
  28784. - got rid of the category mechanism for ObjC generated DOM headers
  28785. (after discussions with Tim H where we decided it's not needed)
  28786. - simplified use of macro inside ObjC generated code
  28787. * ForwardingHeaders/wtf/GetPtr.h: Added.
  28788. * bindings/scripts/CodeGeneratorObjC.pm: Removed code to handle
  28789. categories. Eliminated use of DOM_cast since that's for the protection
  28790. of human programmers -- the script won't make mistakes that it needs
  28791. to catch. Changed macro to always be named IMPL instead of incorporating
  28792. the class name. Use WTF::getPtr to extract the pointer, and removed the
  28793. code that uses .get() to extract the pointer in the PassRefPtr case.
  28794. * dom/Attr.idl: Removed all uses of UsesPassRefPtr and ObjCCatagory.
  28795. * dom/DOMImplementation.idl: Ditto.
  28796. * dom/Document.idl: Ditto.
  28797. * dom/Element.idl: Ditto.
  28798. * dom/NamedNodeMap.idl: Ditto.
  28799. * html/HTMLDocument.idl: Ditto.
  28800. * html/HTMLElement.idl: Ditto.
  28801. * html/HTMLFormElement.idl: Ditto.
  28802. * html/HTMLMapElement.idl: Ditto.
  28803. * html/HTMLSelectElement.idl: Ditto.
  28804. * html/HTMLTableElement.idl: Ditto.
  28805. * html/HTMLTableRowElement.idl: Ditto.
  28806. * html/HTMLTableSectionElement.idl: Ditto.
  28807. 2006-08-30 Brady Eidson <beidson@apple.com>
  28808. Reviewed by John
  28809. <rdar://problem/4707718> - Instead of faking the user out with an in-memory icon database if their
  28810. ~/Library/Safari/Icons is unwritable, we'll actually fail to open the icon database and the app will
  28811. run as if it was disabled via a preference.
  28812. Also took the opportunity to change some ASSERTS() to reasonable behavior
  28813. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  28814. (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]): NSLog on failure so the user has a chance to figure
  28815. out there's a problem.
  28816. (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
  28817. (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]): From here on, just replaced ASSERTS() with reasonable behavior
  28818. (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
  28819. (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
  28820. (-[WebCoreIconDatabaseBridge retainIconForURL:]):
  28821. (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
  28822. (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
  28823. (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
  28824. (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
  28825. (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
  28826. * loader/icon/IconDatabase.cpp:
  28827. (WebCore::IconDatabase::open): If we fail to open, return false
  28828. (WebCore::IconDatabase::~IconDatabase): cleanup better
  28829. * loader/icon/IconDatabase.h:
  28830. 2006-08-30 David Harrison <harrison@apple.com>
  28831. Reviewed by John Sullivan.
  28832. <rdar://problem/4708007> REGRESSION: text field inside a webpage no longer has settable AXValueAttribute
  28833. <rdar://problem/4707479> REGRESSION: controls inside a webpage no longer have settable AXFocusedAttribute
  28834. * bridge/mac/WebCoreAXObject.mm:
  28835. (-[WebCoreAXObject canSetFocusAttribute]):
  28836. (-[WebCoreAXObject canSetValueAttribute]):
  28837. New utility methods. Text fields and buttons are focusable.
  28838. Text fields can have their value set. We need not make
  28839. popupbutton value settable because AppKit does not.
  28840. (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
  28841. Call new utility methods.
  28842. (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
  28843. Set focus for text field or button.
  28844. Set value for text field.
  28845. 2006-08-30 David Hyatt <hyatt@apple.com>
  28846. Fix for bugs 9000 and 10606. Add code to suppress painting when
  28847. a FOUC situation would otherwise occur. There will still typically be
  28848. a flash to white, but at least the wrong content won't show.
  28849. Reviewed by darin
  28850. * dom/Document.cpp:
  28851. (WebCore::Document::Document):
  28852. (WebCore::Document::updateLayoutIgnorePendingStylesheets):
  28853. (WebCore::Document::preferredStylesheetSet):
  28854. (WebCore::Document::selectedStylesheetSet):
  28855. (WebCore::Document::setSelectedStylesheetSet):
  28856. (WebCore::Document::stylesheetLoaded):
  28857. (WebCore::Document::updateStyleSelector):
  28858. * dom/Document.h:
  28859. (WebCore::Document::haveStylesheetsLoaded):
  28860. * rendering/RenderBlock.cpp:
  28861. (WebCore::RenderBlock::paintChildren):
  28862. * rendering/RenderLayer.cpp:
  28863. (WebCore::RenderLayer::paintLayer):
  28864. (WebCore::isSubframe):
  28865. (WebCore::RenderLayer::hitTest):
  28866. * rendering/RenderView.cpp:
  28867. (WebCore::RenderView::repaintViewRectangle):
  28868. 2006-08-31 Nikolas Zimmermann <zimmermann@kde.org>
  28869. Reviewed by Eric. Landed by rwlbuis.
  28870. Apply Rob's fixes in RenderPathQt too -> unbreak build.
  28871. * kcanvas/RenderPath.h: Some style cleanups.
  28872. * kcanvas/device/qt/RenderPathQt.cpp:
  28873. (WebCore::RenderPathQt::strokeContains):
  28874. * kcanvas/device/qt/RenderPathQt.h:
  28875. 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
  28876. Reviewed by Tim H.
  28877. - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
  28878. Auto-generate 10 more Objective-C DOM HTML bindings
  28879. Auto-generates DOMHTMLBaseElement, DOMHTMLBodyElement, DOMHTMLHeadElement,
  28880. DOMHTMLHtmlElement, DOMHTMLIsIndexElement, DOMHTMLLinkElement,
  28881. DOMHTMLMetaElement, DOMHTMLStyleElement and DOMHTMLTitleElement.
  28882. Splits DOMHTMLDocument into it's own files.
  28883. * DerivedSources.make:
  28884. * WebCore.xcodeproj/project.pbxproj:
  28885. * bindings/objc/DOM.mm:
  28886. * bindings/objc/DOMExtensions.h:
  28887. * bindings/objc/DOMHTML.h:
  28888. * bindings/objc/DOMHTML.mm:
  28889. * bindings/objc/DOMHTMLDocument.h: Added.
  28890. * bindings/objc/DOMHTMLDocument.mm: Added.
  28891. (-[DOMHTMLDocument WebCore::]):
  28892. (-[DOMHTMLDocument title]):
  28893. (-[DOMHTMLDocument setTitle:]):
  28894. (-[DOMHTMLDocument referrer]):
  28895. (-[DOMHTMLDocument domain]):
  28896. (-[DOMHTMLDocument URL]):
  28897. (-[DOMHTMLDocument body]):
  28898. (-[DOMHTMLDocument setBody:]):
  28899. (-[DOMHTMLDocument images]):
  28900. (-[DOMHTMLDocument applets]):
  28901. (-[DOMHTMLDocument links]):
  28902. (-[DOMHTMLDocument forms]):
  28903. (-[DOMHTMLDocument anchors]):
  28904. (-[DOMHTMLDocument cookie]):
  28905. (-[DOMHTMLDocument setCookie:]):
  28906. (-[DOMHTMLDocument open]):
  28907. (-[DOMHTMLDocument close]):
  28908. (-[DOMHTMLDocument write:]):
  28909. (-[DOMHTMLDocument writeln:]):
  28910. (-[DOMHTMLDocument getElementById:]):
  28911. (-[DOMHTMLDocument getElementsByName:]):
  28912. (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
  28913. (-[DOMHTMLDocument createDocumentFragmentWithText:]):
  28914. * bindings/objc/DOMHTMLInternal.h:
  28915. * bindings/scripts/CodeGeneratorObjC.pm:
  28916. * html/HTMLDocument.idl:
  28917. 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
  28918. Reviewed by eseidel.
  28919. Use QColor <-> Color conversion operator, instead of faking it.
  28920. * platform/qt/FontQt.cpp:
  28921. (WebCore::Font::drawGlyphs):
  28922. * platform/qt/GraphicsContextQt.cpp:
  28923. (WebCore::GraphicsContext::fillRect):
  28924. 2006-08-30 Rob Buis <buis@kde.org>
  28925. Reviewed by Eric.
  28926. http://bugs.webkit.org/show_bug.cgi?id=10586
  28927. pointer-events has issues when things are not stroked/filled
  28928. Add a param to fillContains/strokeContains to indicate
  28929. whether we still want hit testing when there is no fill/stroke.
  28930. * kcanvas/RenderPath.cpp:
  28931. (WebCore::RenderPath::fillContains):
  28932. (WebCore::RenderPath::nodeAtPoint):
  28933. * kcanvas/RenderPath.h:
  28934. * kcanvas/device/quartz/KCanvasItemQuartz.h:
  28935. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  28936. (WebCore::KCanvasItemQuartz::strokeContains):
  28937. 2006-08-29 Justin Garcia <justin.garcia@apple.com>
  28938. Reviewed by harrison
  28939. <rdar://problem/4700297>
  28940. REGRESSION: After replacing a misspelled word in a sentence, the selection extends to end of current line
  28941. * editing/ReplaceSelectionCommand.cpp:
  28942. (WebCore::ReplaceSelectionCommand::doApply): Rebalance whitespace
  28943. around insertionPos before insertion because the content might
  28944. cause a collapse, e.g. inserting <div>foo</div> at hello^ world.
  28945. * editing/htmlediting.cpp:
  28946. (WebCore::rebalanceWhitespaceInTextNode): Rebalance with all nbsps
  28947. for simplicity, we can produce sequences of regular spaces and
  28948. nbsps on serialization (10636).
  28949. 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
  28950. Reviewed by eseidel.
  28951. The old solution was slow & does not work correctly.
  28952. Move the QString -> DeprecatedString conversion into
  28953. DeprectedString.cpp, to be able to access allocateHandle().
  28954. * platform/DeprecatedString.cpp:
  28955. (WebCore::DeprecatedString::DeprecatedString):
  28956. * platform/qt/StringQt.cpp:
  28957. 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
  28958. Reviewed/landed by Adam.
  28959. Implement containsCharacters() / determinePitch() functions.
  28960. * platform/qt/FontDataQt.cpp:
  28961. (WebCore::FontData::containsCharacters):
  28962. (WebCore::FontData::determinePitch):
  28963. 2006-08-30 Brady Eidson <beidson@apple.com>
  28964. Reviewed by Darin's rubberstamp
  28965. We apparently have a fancy delateAllValues() helper for HashMap/Sets - I'll use that instead
  28966. * WebCore.xcodeproj/project.pbxproj:
  28967. * loader/icon/IconDatabase.cpp:
  28968. (WebCore::IconDatabase::removeAllIcons):
  28969. 2006-08-29 waylonis <waylonis@google.com>
  28970. Reviewed, tweaked by ggaren.
  28971. - Changed to use ExecState on current context rather than global.
  28972. Part of the fix for http://bugs.webkit.org/show_bug.cgi?id=10114
  28973. * bindings/objc/WebScriptObject.mm:
  28974. (+[WebScriptObject throwException:]):
  28975. (-[WebScriptObject setException:]):
  28976. 2006-08-30 Adele Peterson <adele@apple.com>
  28977. Reviewed by Darin.
  28978. - WebCore part of fix for:
  28979. http://bugs.webkit.org/show_bug.cgi?id=10576
  28980. Disallow copy from new password fields
  28981. * page/Frame.cpp: (WebCore::Frame::mayCopy): Added. Checks to see if the selection is within a password field.
  28982. * page/Frame.h: Added mayCopy.
  28983. * bridge/mac/FrameMac.h:
  28984. * bridge/mac/FrameMac.mm:
  28985. (WebCore::FrameMac::handleMouseMoveEvent): Checks mayCopy before starting a drag.
  28986. (WebCore::FrameMac::mayDHTMLCut): Renamed to match the bridge method. This also checks mayCopy now.
  28987. (WebCore::FrameMac::mayDHTMLCopy): ditto.
  28988. (WebCore::FrameMac::tryDHTMLCut): ditto.
  28989. (WebCore::FrameMac::tryDHTMLCopy): ditto.
  28990. (WebCore::FrameMac::mayDHTMLPaste): Renamed to match the bridge function.
  28991. (WebCore::FrameMac::tryDHTMLPaste): ditto.
  28992. * bridge/mac/WebCoreFrameBridge.h:
  28993. * bridge/mac/WebCoreFrameBridge.mm:
  28994. (-[WebCoreFrameBridge mayCopy]): Calls the renamed method on frame.
  28995. (-[WebCoreFrameBridge mayDHTMLCut]): ditto.
  28996. (-[WebCoreFrameBridge mayDHTMLCopy]): ditto.
  28997. (-[WebCoreFrameBridge mayDHTMLPaste]): ditto.
  28998. (-[WebCoreFrameBridge tryDHTMLCut]): ditto.
  28999. (-[WebCoreFrameBridge tryDHTMLCopy]): ditto.
  29000. (-[WebCoreFrameBridge tryDHTMLPaste]): ditto.
  29001. * css/html4.css: Added !important to the -webkit-text-security property for password fields.
  29002. 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
  29003. Reviewed by Tim H.
  29004. Commit KDE related tweaks, to be able to
  29005. differentiate between a Qt-only or a KDE build.
  29006. * CMakeLists.txt: Move global variables up to trunk/CMakeLists.txt.
  29007. Also rename USE_WEBKIT_SVG_SUPPORT to WEBKIT_USE_SVG_SUPPORT.
  29008. 2006-08-30 Timothy Hatcher <timothy@apple.com>
  29009. Rubber-stamped by Brady.
  29010. Fix for the generated headers to make the build work
  29011. during "installhdrs" builds. Also export DOM headers
  29012. using the #import <WebCore/DOM*.h> syntax.
  29013. * WebCore.xcodeproj/project.pbxproj:
  29014. * bindings/scripts/CodeGeneratorObjC.pm:
  29015. 2006-08-29 Brady Eidson <beidson@apple.com>
  29016. Reviewed by Kevin Decker (Sarge)
  29017. <rdar://problem/4678414> - New IconDB needs to delete icons when asked
  29018. <rdar://problem/4707718> - If user's Icon directory is unwritable, Safari will crash at startup
  29019. * bridge/mac/WebCoreIconDatabaseBridge.h:
  29020. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  29021. (-[WebCoreIconDatabaseBridge removeAllIcons]): Added
  29022. * loader/icon/IconDatabase.cpp:
  29023. (WebCore::IconDatabase::open): If DB file is not writeable, create an in-memory DB for this session
  29024. (WebCore::IconDatabase::close): Use new deleteAllPreparedStatements()
  29025. (WebCore::IconDatabase::removeAllIcons): Actually implemented
  29026. (WebCore::IconDatabase::deleteAllPreparedStatements): Added for convinience/consistency
  29027. (WebCore::IconDatabase::setPrivateBrowsingEnabled): Use new SQLDatabase::clearAllTables()
  29028. * loader/icon/IconDatabase.h:
  29029. * loader/icon/SQLDatabase.cpp:
  29030. (WebCore::SQLDatabase::clearAllTables): Moved this from IconDatabase as it actually belongs here
  29031. (WebCore::SQLDatabase::vacuum): Added
  29032. * loader/icon/SQLDatabase.h:
  29033. (WebCore::SQLDatabase::path): changed name from getPath()
  29034. 2006-08-29 Brady Eidson <beidson@apple.com>
  29035. Reviewed by Alice
  29036. Added a truth value to setIconURLForPageURL so WebKit can avoid sending a notification
  29037. This is a win on the iBench
  29038. * bridge/mac/WebCoreIconDatabaseBridge.h:
  29039. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  29040. (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
  29041. * loader/icon/IconDatabase.cpp:
  29042. (WebCore::IconDatabase::setIconURLForPageURL):
  29043. * loader/icon/IconDatabase.h:
  29044. 2006-08-29 Alice Liu <alice.liu@apple.com>
  29045. Reviewed by Brady.
  29046. Fixed <rdar://problem/4702021> REGRESSION: WebClip and Weather widgets shift downward vertically on screen after I drag them out from dashboard configure bar
  29047. * platform/mac/ScreenMac.mm:
  29048. (WebCore::flipScreenRect):
  29049. reverted the one line in this method back to what it was before r15765. This changed caused window.screenY to be incorrect.
  29050. 2006-08-29 Darin Adler <darin@apple.com>
  29051. Reviewed by Hyatt.
  29052. - fix <rdar://problem/4701494> REGRESSION: Scrollbar on EPSN widget doesn't scroll (also affects Widgets widget, web inspector)
  29053. The bug was that we would return "none" for computed style properties when they were
  29054. exactly "-1px".
  29055. Test: fast/css/computed-style-negative-top.html
  29056. * css/CSSComputedStyleDeclaration.cpp:
  29057. (WebCore::valueForLength): Moved special case for "undefined length" out of here.
  29058. (WebCore::valueForMaxLength): Moved it into here.
  29059. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Use valueForMaxLength
  29060. only for max-height and max-width.
  29061. 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
  29062. Reviewed by eseidel.
  29063. Add path-related SVG JavaScript bindings to generation.
  29064. * CMakeLists.txt:
  29065. 2006-08-29 Eric Seidel <eric@webkit.org>
  29066. Reviewed by kevin.
  29067. Re-enable path-related SVG JavaScript bindings.
  29068. http://bugs.webkit.org/show_bug.cgi?id=10623
  29069. Split all SVGPathSeg*.idl files into Abs and Rel pieces.
  29070. Move all SVGPath*.idl files into ksvg2/svg
  29071. * DerivedSources.make:
  29072. * WebCore.xcodeproj/project.pbxproj:
  29073. * bindings/scripts/CodeGeneratorJS.pm: Special case Abs and Rel header includes
  29074. * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl: Removed.
  29075. * ksvg2/bindings/idl/svg/SVGPathElement.idl: Removed.
  29076. * ksvg2/bindings/idl/svg/SVGPathSeg.idl: Removed.
  29077. * ksvg2/bindings/idl/svg/SVGPathSegArc.idl: Removed.
  29078. * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl: Removed.
  29079. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl: Removed.
  29080. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl: Removed.
  29081. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl: Removed.
  29082. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl: Removed.
  29083. * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl: Removed.
  29084. * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl: Removed.
  29085. * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl: Removed.
  29086. * ksvg2/bindings/idl/svg/SVGPathSegList.idl: Removed.
  29087. * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl: Removed.
  29088. * ksvg2/ksvg.h: move SVGPathSegment enum
  29089. * ksvg2/svg/SVGPathElement.cpp: move SVGPathSegment enum
  29090. (WebCore::SVGPathElement::toPathData):
  29091. * ksvg2/svg/SVGPathSeg.cpp:
  29092. (WebCore::SVGPathSeg::SVGPathSeg):
  29093. * ksvg2/svg/SVGPathSeg.h:
  29094. (WebCore::SVGPathSeg::):
  29095. * ksvg2/svg/SVGPathSegArcAbs.idl: Added.
  29096. * ksvg2/svg/SVGPathSegArcRel.idl: Added.
  29097. * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Added.
  29098. * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Added.
  29099. * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Added.
  29100. * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Added.
  29101. * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Added.
  29102. * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Added.
  29103. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Added.
  29104. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Added.
  29105. * ksvg2/svg/SVGPathSegLinetoAbs.idl: Added.
  29106. * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Added.
  29107. * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Added.
  29108. * ksvg2/svg/SVGPathSegLinetoRel.idl: Added.
  29109. * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Added.
  29110. * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Added.
  29111. * ksvg2/svg/SVGPathSegMovetoAbs.idl: Added.
  29112. * ksvg2/svg/SVGPathSegMovetoRel.idl: Added.
  29113. 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
  29114. Reviewed by Eric, landed by Anders.
  29115. Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
  29116. Finish Unity merging. Remove libcurl usage, in favour of KIO.
  29117. This makes the regression testing fly! IO processing is way faster now.
  29118. * CMakeLists.txt:
  29119. * platform/ResourceLoaderInternal.h:
  29120. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  29121. * platform/qt/FrameQt.cpp:
  29122. (WebCore::FrameQt::openURL):
  29123. (WebCore::FrameQt::submitForm):
  29124. (WebCore::FrameQt::urlSelected):
  29125. (WebCore::FrameQt::createEmptyDocument):
  29126. (WebCore::FrameQt::receivedData):
  29127. (WebCore::FrameQt::receivedAllData):
  29128. * platform/qt/FrameQt.h:
  29129. * platform/qt/ResourceLoaderCurl.cpp: Removed.
  29130. * platform/qt/ResourceLoaderManager.cpp:
  29131. (WebCore::ResourceLoaderManager::ResourceLoaderManager):
  29132. (WebCore::ResourceLoaderManager::~ResourceLoaderManager):
  29133. (WebCore::ResourceLoaderManager::self):
  29134. (WebCore::ResourceLoaderManager::slotData):
  29135. (WebCore::ResourceLoaderManager::slotMimetype):
  29136. (WebCore::ResourceLoaderManager::slotResult):
  29137. (WebCore::ResourceLoaderManager::remove):
  29138. (WebCore::ResourceLoaderManager::add):
  29139. * platform/qt/ResourceLoaderManager.h:
  29140. * platform/qt/ResourceLoaderQt.cpp: Added.
  29141. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  29142. (WebCore::ResourceLoader::~ResourceLoader):
  29143. (WebCore::ResourceLoader::start):
  29144. (WebCore::ResourceLoader::cancel):
  29145. (WebCore::ResourceLoader::assembleResponseHeaders):
  29146. (WebCore::ResourceLoader::retrieveCharset):
  29147. (WebCore::ResourceLoader::receivedResponse):
  29148. 2006-08-29 Timothy Hatcher <timothy@apple.com>
  29149. Reviewed by Eric.
  29150. Bug 10632: Objective-C DOM should use the @property syntax for DOM attributes
  29151. http://bugs.webkit.org/show_bug.cgi?id=10632
  29152. Generate @property when MACOSX_DEPLOYMENT_TARGET is >= 10.5.
  29153. This is backwards compatible with the getter/setter methods.
  29154. Generate setter arguments with a "new" prefix to avoid the property
  29155. name conflict warning. Also removes some whitespace and the comments
  29156. that we added to the headers. This makes the headers look like what we ship now.
  29157. * bindings/objc/DOMCSS.mm:
  29158. (-[DOMDocument getComputedStyle::]): renamed a local variable to avoid the property name conflict.
  29159. (-[DOMDocument getMatchedCSSRules::]): ditto.
  29160. * bindings/scripts/CodeGeneratorObjC.pm: generate @property in the headers.
  29161. 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
  29162. Reviewed and landed by Anders.
  29163. Fix time calculation, by using a correct calculation. Calling time()
  29164. returns a number of seconds, aka. an integer. Fix it by using gettimeofday().
  29165. Patch originally proposed by Ronan Meneu <rmeneu@origyn.fr>
  29166. * platform/qt/SystemTimeQt.cpp:
  29167. (WebCore::currentTime):
  29168. 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
  29169. Reviewed by Tim H.
  29170. - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
  29171. Auto-generate the remaining Objective-C DOM bindings
  29172. Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
  29173. and DOMHTMLOptionsCollection, and lays groundwork for the rest of the
  29174. HTML DOM bindings by adding/fixing the appropriate IDL's and updating
  29175. the CodeGeneratorObjC.pm build script.
  29176. * DerivedSources.make:
  29177. * WebCore.xcodeproj/project.pbxproj:
  29178. * bindings/objc/DOM.mm:
  29179. * bindings/objc/DOMExtensions.h:
  29180. * bindings/objc/DOMHTML.h:
  29181. * bindings/objc/DOMHTML.mm:
  29182. * bindings/objc/DOMHTMLInternal.h:
  29183. * bindings/scripts/CodeGeneratorObjC.pm:
  29184. * html/HTMLAnchorElement.idl:
  29185. * html/HTMLAreaElement.idl:
  29186. * html/HTMLBaseFontElement.idl:
  29187. * html/HTMLBodyElement.idl:
  29188. * html/HTMLButtonElement.idl:
  29189. * html/HTMLCollection.idl: Added.
  29190. * html/HTMLDocument.idl:
  29191. * html/HTMLElement.idl:
  29192. * html/HTMLFormElement.idl:
  29193. * html/HTMLFrameElement.idl: Added.
  29194. * html/HTMLFrameSetElement.idl: Added.
  29195. * html/HTMLIFrameElement.idl: Added.
  29196. * html/HTMLImageElement.idl:
  29197. * html/HTMLInputElement.idl:
  29198. * html/HTMLLabelElement.idl:
  29199. * html/HTMLLegendElement.idl:
  29200. * html/HTMLLinkElement.idl:
  29201. * html/HTMLMapElement.idl:
  29202. * html/HTMLObjectElement.idl: Added.
  29203. * html/HTMLOptionsCollection.idl:
  29204. * html/HTMLPreElement.idl:
  29205. * html/HTMLSelectElement.idl: Added.
  29206. * html/HTMLStyleElement.idl:
  29207. * html/HTMLTableCaptionElement.idl: Added.
  29208. * html/HTMLTableCellElement.idl: Added.
  29209. * html/HTMLTableColElement.idl: Added.
  29210. * html/HTMLTableElement.idl: Added.
  29211. * html/HTMLTableRowElement.idl: Added.
  29212. * html/HTMLTableSectionElement.idl: Added.
  29213. * html/HTMLTextAreaElement.idl:
  29214. 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
  29215. Reviewed and landed by ap.
  29216. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10629.
  29217. Drawing convex polygons is broken in the Qt platform.
  29218. * platform/qt/GraphicsContextQt.cpp:
  29219. (WebCore::GraphicsContext::drawConvexPolygon):
  29220. 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
  29221. Reviewed by Eric.
  29222. Implementing font hashing properly, fixes weird crashes in HashMap.
  29223. * platform/qt/FontPlatformData.h:
  29224. * platform/qt/FontPlatformDataQt.cpp:
  29225. (WebCore::FontPlatformData::FontPlatformData):
  29226. (WebCore::FontPlatformData::hash):
  29227. 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
  29228. Reviewed by ggaren.
  29229. Fix scrollbars to reappear after the first layouting.
  29230. * platform/qt/ScrollViewQt.cpp:
  29231. (WebCore::ScrollView::suppressScrollBars):
  29232. 2006-08-29 Anders Carlsson <acarlsson@apple.com>
  29233. Reviewed by Darin and Geoff.
  29234. Move the CF String functions to separate files in platform/cf.
  29235. Also, move the files in platform/cfnet to platform/cf.
  29236. * WebCore.xcodeproj/project.pbxproj:
  29237. * platform/PlatformString.h:
  29238. * platform/StringImpl.h:
  29239. * platform/cf/StringCF.cpp: Added.
  29240. (WebCore::String::String):
  29241. * platform/cf/StringImplCF.cpp: Added.
  29242. (WebCore::StringImpl::createCFString):
  29243. * platform/cfnet/KURLCFNet.cpp: Removed.
  29244. * platform/cfnet/ResourceLoaderCFNet.cpp: Removed.
  29245. * platform/mac/StringImplMac.mm:
  29246. * platform/mac/StringMac.mm:
  29247. 2006-08-29 Geoffrey Garen <ggaren@apple.com>
  29248. Rolling out a change I included by accident in my last commit.
  29249. * bridge/mac/FrameMac.mm:
  29250. (WebCore::FrameMac::passMouseDownEventToWidget):
  29251. * platform/mac/SharedTimerMac.cpp:
  29252. (WebCore::setSharedTimerFireTime):
  29253. 2006-08-28 Geoffrey Garen <ggaren@apple.com>
  29254. Reviewed by Maciej.
  29255. Added support for experimental CFNetwork-based loader (not turned on yet).
  29256. While I was there, I did the following platform cleanup:
  29257. - Windows now uses USE(WININET) instead of PLATFORM(WIN_OS), to match the
  29258. USE(CFNETWORK) idiom.
  29259. - Removed some #includes of windows.h in platform-independent headers.
  29260. - Changed #ifdef __APPLE__ to PLATFORM(MAC)
  29261. - Fixed some build bustage, including case-sensitive filesystem bustage.
  29262. * loader/loader.cpp:
  29263. (WebCore::Loader::receivedAllData):
  29264. * platform/Cursor.h:
  29265. * platform/KURL.h:
  29266. * platform/ResourceLoader.h:
  29267. * platform/ResourceLoaderClient.h:
  29268. * platform/ResourceLoaderInternal.h:
  29269. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  29270. * platform/cfnet/KURLCFNet.cpp: Added.
  29271. (WebCore::KURL::createCFURL):
  29272. * platform/cfnet/ResourceLoaderCFNet.cpp: Added.
  29273. (WebCore::willSendRequest):
  29274. (WebCore::didReceiveChallenge):
  29275. (WebCore::didCancelChallenge):
  29276. (WebCore::didReceiveResponse):
  29277. (WebCore::didReceiveData):
  29278. (WebCore::didFinishLoading):
  29279. (WebCore::didFail):
  29280. (WebCore::willCacheResponse):
  29281. (WebCore::addHeadersFromString):
  29282. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  29283. (WebCore::ResourceLoader::~ResourceLoader):
  29284. (WebCore::arrayFromFormData):
  29285. (WebCore::emptyPerform):
  29286. (WebCore::runLoaderThread):
  29287. (WebCore::ResourceLoader::start):
  29288. (WebCore::ResourceLoader::cancel):
  29289. * platform/win/CursorWin.cpp:
  29290. 2006-08-28 Justin Garcia <justin.garcia@apple.com>
  29291. Reviewed by harrison
  29292. <rdar://problem/4700341>
  29293. REGRESSION: In new mail message, caret isn't placed at end of line after redoing typing
  29294. * editing/ReplaceSelectionCommand.cpp:
  29295. (WebCore::ReplaceSelectionCommand::doApply): Added a FIXME.
  29296. * page/Frame.cpp:
  29297. (WebCore::Frame::reappliedEditing): Restore the endingSelection(), not the startingSelection().
  29298. 2006-08-28 Tim Omernick <timo@apple.com>
  29299. Reviewed by John Sullivan.
  29300. Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
  29301. <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
  29302. in Firefox
  29303. No test cases added, since this is essentially a leak fix.
  29304. A brief history of NPP_GetValue(), NPObjects, and reference counting.
  29305. Earlier versions of WebKit incorrectly interpreted the NPRuntime reference counting rules. We failed to take
  29306. into account the fact that plug-ins are required to retain NPObjects before returning them. This creates several
  29307. classes of interesting plug-ins:
  29308. 1) Plug-ins tested in WebKit and other browsers. These plug-ins may have WebKit-specific workarounds to not retain
  29309. the returned NPObject, thus avoiding the memory leak in WebKit.
  29310. 2) Plug-ins tested only in other browsers. These plug-ins must already retain their NPObjects, since other browsers
  29311. implemented the NPRuntime retain/release rules correctly. These plug-ins likely work in WebKit, but probably leak
  29312. NPObjects since WebKit adds its own retain in addition to the plug-in's retain.
  29313. 3) Plug-ins tested only in WebKit, that fail to retain their NPObjects before returning them.
  29314. Such plug-ins are guaranteed to crash in other browsers due to the missing expected retain. These plug-ins
  29315. work in older WebKits because WebKit did not expect the plug-in to retain the NPObject. Now that our retain
  29316. rules match other browsers, these plug-ins may crash due to the difference in retain/release behavior. We could
  29317. potentially detect that situation and correct it here, but I consider it a bug that the plug-in did not follow the
  29318. documented NPRuntime reference counting rules. Furthermore, it is extremely unlikely that someone would develop
  29319. a Netscape plug-in and test it *only* in WebKit. The entire purpose of creating a Netscape plugin is so that it
  29320. works in all browsers!
  29321. 4) Plug-ins tested only in WebKit, that properly retain their NPObjects before returning them.
  29322. These plug-ins probably work in other browsers, and leak their NPObjects in older WebKits because of WebKit's
  29323. extra retain. A developer of this type of plug-in is probably unaware of the NPObject leak. A more savvy developer
  29324. would create a plug-in that fits into category #1.
  29325. I am changing our NPP_GetValue() behavior to match Firefox and other browsers -- the plug-in is now expected to retain the
  29326. returned NPObject, and the browser is expected to release it when done. This means that plug-ins in category #3 need to be
  29327. changed so that they don't crash in Safari. However, such plug-ins already crash in every other browser, so I do not feel that
  29328. this needs to be handled specifically by WebKit.
  29329. * bridge/mac/FrameMac.mm:
  29330. Changed -pluginScriptableObject to -createPluginScriptableObject to make clearer the contract that the method must return a
  29331. retained NPObject. Also changed it to return an actual NPObject* instead of a void*. There is only one caller of this method,
  29332. and only one implementor. Using void* here is a needless abstraction. It's an NPObject*! Admit it!
  29333. (WebCore::getInstanceForView):
  29334. Release the NPObject after creating the bindings instance. This is the actual bug fix.
  29335. 2006-08-28 Alice Liu <alice.liu@apple.com>
  29336. Reviewed by Geoff.
  29337. Fixed <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write
  29338. * dom/Document.cpp:
  29339. (WebCore::Document::open):
  29340. set the document's url to the parent's url and re-located the code that does this to occur before calling the frame's didExplicitOpen()
  29341. * page/Frame.cpp:
  29342. (WebCore::Frame::didExplicitOpen):
  29343. set the frame's url to the document's url
  29344. 2006-08-28 Brady Eidson <beidson@apple.com>
  29345. Reviewed by Adele and Adam
  29346. Added an optimization to return early if there's no replacements to be made
  29347. * platform/StringImpl.cpp:
  29348. (WebCore::StringImpl::replace):
  29349. 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
  29350. Reviewed and landed by ap.
  29351. Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
  29352. Provide stub implementation of RenderPopupMenuQt.
  29353. * CMakeLists.txt:
  29354. * platform/qt/RenderPopupMenuQt.cpp: Added.
  29355. (WebCore::RenderPopupMenuQt::RenderPopupMenuQt):
  29356. (WebCore::RenderPopupMenuQt::~RenderPopupMenuQt):
  29357. (WebCore::RenderPopupMenuQt::clear):
  29358. (WebCore::RenderPopupMenuQt::populate):
  29359. (WebCore::RenderPopupMenuQt::showPopup):
  29360. (WebCore::RenderPopupMenuQt::hidePopup):
  29361. (WebCore::RenderPopupMenuQt::addSeparator):
  29362. (WebCore::RenderPopupMenuQt::addGroupLabel):
  29363. (WebCore::RenderPopupMenuQt::addOption):
  29364. * platform/qt/RenderPopupMenuQt.h: Added.
  29365. * platform/qt/RenderThemeQt.cpp:
  29366. (WebCore::RenderThemeQt::systemFont):
  29367. (WebCore::RenderThemeQt::createPopupMenu):
  29368. 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
  29369. Reviewed and landed by ap.
  29370. Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
  29371. Offer QString -> DeprecatedString conversion.
  29372. * platform/DeprecatedString.h:
  29373. * platform/qt/StringQt.cpp:
  29374. (WebCore::DeprecatedString::DeprecatedString):
  29375. 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
  29376. Reviewed by Tim Hatcher.
  29377. Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
  29378. * platform/qt/RenderThemeQt.cpp:
  29379. (WebCore::RenderThemeQt::systemFont):
  29380. Remove annoying notImplemented() usage in systemFont()
  29381. 2006-08-28 David Harrison <harrison@apple.com>
  29382. Reviewed by Darin.
  29383. <rdar://problem/3942647> Support AXStyleTextMarkerRangeForTextMarker parameterized attribute
  29384. * bridge/mac/WebCoreAXObject.mm:
  29385. (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
  29386. Add AXStyleTextMarkerRangeForTextMarker.
  29387. (startOfStyleRange):
  29388. (endOfStyleRange):
  29389. Return first/last VisiblePosition in range having the same style has the specified VisiblePosition.
  29390. (-[WebCoreAXObject doAXStyleTextMarkerRangeForTextMarker:]):
  29391. Return AXTextMarkerRange for startOfStyleRange/endOfStyleRange of the specified AXTextMarker.
  29392. (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
  29393. Call doAXStyleTextMarkerRangeForTextMarker for AXStyleTextMarkerRangeForTextMarker.
  29394. 2006-08-28 David Harrison <harrison@apple.com>
  29395. Reviewed by Darin.
  29396. <rdar://problem/4517383> Hide all images used for spacing purpose in AX
  29397. * bridge/mac/WebCoreAXObject.mm:
  29398. (-[WebCoreAXObject accessibilityIsIgnored]):
  29399. Check for one-dimensional image
  29400. Check whether rendered image was stretched from one-dimensional file image
  29401. 2006-08-27 Brady Eidson <beidson@apple.com>
  29402. Reviewed by Maciej
  29403. Rewrote StringImpl::replace(UChar, StringImpl*)
  29404. * platform/StringImpl.cpp:
  29405. (WebCore::StringImpl::replace):
  29406. 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
  29407. Reviewed by Tim H.
  29408. - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
  29409. WebCore needs autogenerated Obj-C DOM bindings
  29410. First round of auto-generated Objective C DOM bindings, starting
  29411. with the DOM Core.
  29412. * DerivedSources.make:
  29413. * WebCore.xcodeproj/project.pbxproj:
  29414. * bindings/objc/DOM.mm:
  29415. (-[DOMNode description]):
  29416. (-[DOMNode KJS::Bindings::]):
  29417. (-[DOMNode dispatchEvent:]):
  29418. (-[DOMNamedNodeMap _initWithNamedNodeMap:]):
  29419. (+[DOMNamedNodeMap _namedNodeMapWith:]):
  29420. (-[DOMNodeList _initWithNodeList:]):
  29421. (+[DOMNodeList _nodeListWith:]):
  29422. (-[DOMImplementation _initWithDOMImplementation:]):
  29423. (+[DOMImplementation _DOMImplementationWith:]):
  29424. (-[DOMImplementation _DOMImplementation]):
  29425. (+[DOMDocumentFragment _documentFragmentWith:]):
  29426. (-[DOMDocumentFragment _fragment]):
  29427. (-[DOMDocument createCSSStyleDeclaration]):
  29428. (+[DOMDocument _documentWith:]):
  29429. (-[DOMDocument _document]):
  29430. (-[DOMDocument _ownerElement]):
  29431. (+[DOMAttr _attrWith:]):
  29432. (-[DOMAttr _attr]):
  29433. (+[DOMDocumentType _documentTypeWith:WebCore::]):
  29434. (-[DOMDocumentType WebCore::]):
  29435. (+[DOMText _textWith:WebCore::]):
  29436. (+[DOMComment _commentWith:WebCore::]):
  29437. (+[DOMCDATASection _CDATASectionWith:WebCore::]):
  29438. (+[DOMProcessingInstruction _processingInstructionWith:WebCore::]):
  29439. (+[DOMEntityReference _entityReferenceWith:WebCore::]):
  29440. * bindings/objc/DOMCSS.h:
  29441. * bindings/objc/DOMCSS.mm:
  29442. * bindings/objc/DOMCore.h:
  29443. * bindings/objc/DOMEvents.h:
  29444. * bindings/objc/DOMEvents.mm:
  29445. * bindings/objc/DOMExtensions.h:
  29446. * bindings/objc/DOMHTML.mm:
  29447. (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
  29448. * bindings/objc/DOMHTMLInternal.h:
  29449. * bindings/objc/DOMImplementationFront.h:
  29450. * bindings/objc/DOMInternal.h:
  29451. * bindings/objc/DOMNode.h: Added.
  29452. * bindings/objc/DOMNode.mm: Added.
  29453. (-[DOMNode dealloc]):
  29454. (-[DOMNode finalize]):
  29455. (-[DOMNode nodeName]):
  29456. (-[DOMNode nodeValue]):
  29457. (-[DOMNode setNodeValue:]):
  29458. (-[DOMNode nodeType]):
  29459. (-[DOMNode parentNode]):
  29460. (-[DOMNode childNodes]):
  29461. (-[DOMNode firstChild]):
  29462. (-[DOMNode lastChild]):
  29463. (-[DOMNode previousSibling]):
  29464. (-[DOMNode nextSibling]):
  29465. (-[DOMNode attributes]):
  29466. (-[DOMNode ownerDocument]):
  29467. (-[DOMNode insertBefore::]):
  29468. (-[DOMNode replaceChild::]):
  29469. (-[DOMNode removeChild:]):
  29470. (-[DOMNode appendChild:]):
  29471. (-[DOMNode hasChildNodes]):
  29472. (-[DOMNode cloneNode:]):
  29473. (-[DOMNode normalize]):
  29474. (-[DOMNode isSupported::]):
  29475. (-[DOMNode namespaceURI]):
  29476. (-[DOMNode prefix]):
  29477. (-[DOMNode setPrefix:]):
  29478. (-[DOMNode localName]):
  29479. (-[DOMNode hasAttributes]):
  29480. (-[DOMNode isSameNode:]):
  29481. (-[DOMNode isEqualNode:]):
  29482. (-[DOMNode isDefaultNamespace:]):
  29483. (-[DOMNode lookupPrefix:]):
  29484. (-[DOMNode lookupNamespaceURI:]):
  29485. (-[DOMNode textContent]):
  29486. (-[DOMNode setTextContent:]):
  29487. (-[DOMNode boundingBox]):
  29488. (-[DOMNode lineBoxRects]):
  29489. * bindings/objc/DOMObject.h: Added.
  29490. * bindings/objc/DOMObject.mm: Added.
  29491. (-[DOMObject init]):
  29492. (-[DOMObject dealloc]):
  29493. (-[DOMObject finalize]):
  29494. (-[DOMObject copyWithZone:]):
  29495. (-[DOMObject sheet]):
  29496. * bindings/objc/DOMPrivate.h:
  29497. * bindings/objc/DOMRange.h:
  29498. * bindings/objc/DOMStylesheets.h:
  29499. * bindings/objc/DOMTraversal.h:
  29500. * bindings/objc/DOMViews.h:
  29501. * bindings/objc/DOMViews.mm:
  29502. * bindings/objc/DOMXPath.h:
  29503. * bindings/objc/DOMXPath.mm:
  29504. * bindings/scripts/CodeGenerator.pm:
  29505. * bindings/scripts/CodeGeneratorJS.pm:
  29506. * bindings/scripts/CodeGeneratorObjC.pm: Added.
  29507. * dom/Attr.idl:
  29508. * dom/CDATASection.idl: Added.
  29509. * dom/Comment.idl: Added.
  29510. * dom/DOMImplementation.idl:
  29511. * dom/Document.idl:
  29512. * dom/Element.idl:
  29513. * dom/EntityReference.idl: Added.
  29514. * dom/NamedNodeMap.idl: Added.
  29515. * dom/NodeList.idl: Added.
  29516. * dom/ProcessingInstruction.idl:
  29517. 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
  29518. Reviewed by Tim H.
  29519. Fix crash in LayoutTests/css1/font_properties/font.html,
  29520. by implementing FontData::smallCapsFontData.
  29521. * platform/qt/FontDataQt.cpp:
  29522. (WebCore::FontData::platformDestroy):
  29523. (WebCore::FontData::smallCapsFontData):
  29524. 2006-08-27 Brady Eidson <beidson@apple.com>
  29525. Reviewed by Maciej
  29526. Plugged a leak in StringImpl::replace()
  29527. * platform/StringImpl.cpp:
  29528. (WebCore::StringImpl::replace):
  29529. 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
  29530. Reviewed and landed by Anders.
  29531. Remove most annoying notImplemented() usages and
  29532. implement some missing ScrollViewQt functions.
  29533. Much nicer output when invoking run-webkit-tests.
  29534. * platform/qt/FrameQt.cpp:
  29535. (WebCore::FrameQt::saveDocumentState):
  29536. (WebCore::FrameQt::restoreDocumentState):
  29537. (WebCore::FrameQt::clearUndoRedoOperations):
  29538. (WebCore::FrameQt::partClearedInBegin):
  29539. * platform/qt/ResourceLoaderManager.cpp:
  29540. (WebCore::headerCallback):
  29541. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  29542. * platform/qt/ScrollViewQt.cpp:
  29543. (WebCore::ScrollView::updateContents):
  29544. (WebCore::ScrollView::suppressScrollBars):
  29545. (WebCore::ScrollView::setStaticBackground):
  29546. (WebCore::ScrollView::addChild):
  29547. (WebCore::ScrollView::removeChild):
  29548. * platform/qt/TemporaryLinkStubs.cpp:
  29549. (WebCore::historyContains):
  29550. (WebCore::CheckCacheObjectStatus):
  29551. (WebCore::CheckIfReloading):
  29552. (loadResourceIntoArray):
  29553. (WebCore::PlugInInfoStore::supportsMIMEType):
  29554. 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
  29555. Reviewed and landed by Anders.
  29556. Fix Qt build (add SVGMetaDataElement.cpp to build system)
  29557. * CMakeLists.txt:
  29558. 2006-08-27 Eric Seidel <eric@webkit.org>
  29559. Reviewed by andersca.
  29560. No logic changes. Just cleanup.
  29561. * ksvg2/svg/SVGAngle.cpp:
  29562. (SVGAngle::SVGAngle):
  29563. (SVGAngle::unitType):
  29564. (SVGAngle::valueAsString):
  29565. (SVGAngle::newValueSpecifiedUnits):
  29566. (SVGAngle::convertToSpecifiedUnits):
  29567. * ksvg2/svg/SVGAngle.h:
  29568. * ksvg2/svg/SVGLength.cpp:
  29569. (WebCore::SVGLength::unitType):
  29570. (WebCore::SVGLength::newValueSpecifiedUnits):
  29571. (WebCore::SVGLength::convertToSpecifiedUnits):
  29572. (WebCore::SVGLength::updateValue):
  29573. (WebCore::SVGLength::updateValueInSpecifiedUnits):
  29574. * ksvg2/svg/SVGLength.h:
  29575. * platform/BitmapImage.cpp: Removed.
  29576. * platform/BitmapImage.h: Removed.
  29577. 2006-08-27 Brady Eidson <beidson@apple.com>
  29578. Reviewed by Anders
  29579. -Changed all of the commonly used queries to keep around pre-prepared statements and bind
  29580. their arguments instead of constructing a new, messy, string appended statement each time
  29581. -Changed some code in pruneUnretainedIconsOnStartup regarding transactions
  29582. * loader/icon/IconDatabase.cpp:
  29583. (WebCore::IconDatabase::IconDatabase): Initializers
  29584. (WebCore::IconDatabase::close): Wipe all the preprepared statements
  29585. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Better handling of transactions
  29586. (WebCore::readySQLStatement): Make sure a preprepared statement is ready to go for a fooQuery()
  29587. (WebCore::IconDatabase::pageURLTableIsEmptyQuery): Added a comment
  29588. (WebCore::IconDatabase::imageDataForIconURLQuery): Use preprepared statement + binding
  29589. (WebCore::IconDatabase::timeStampForIconURLQuery): ditto
  29590. (WebCore::IconDatabase::iconURLForPageURLQuery): ditto
  29591. (WebCore::IconDatabase::forgetPageURLQuery): ditto
  29592. (WebCore::IconDatabase::setIconIDForPageURLQuery): ditto
  29593. (WebCore::IconDatabase::getIconIDForIconURLQuery): ditto
  29594. (WebCore::IconDatabase::addIconForIconURLQuery): ditto
  29595. (WebCore::IconDatabase::hasIconForIconURLQuery): ditto
  29596. * loader/icon/IconDatabase.h: Added fooQuery() and *m_fooStatements
  29597. * loader/icon/SQLStatement.h:
  29598. (WebCore::SQLStatement::database): Added
  29599. 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
  29600. Reviewed by Eric.
  29601. Fix switch logic.
  29602. * platform/qt/ScrollViewQt.cpp:
  29603. (WebCore::ScrollView::setHScrollBarMode):
  29604. (WebCore::ScrollView::setVScrollBarMode):
  29605. 2006-08-27 Rob Buis <buis@kde.org>
  29606. Reviewed by Eric.
  29607. http://bugs.webkit.org/show_bug.cgi?id=10557
  29608. KCanvasPath should be replace by platform/Path
  29609. Refactoring out the KCanvasPath class.
  29610. * CMakeLists.txt:
  29611. * WebCore.xcodeproj/project.pbxproj:
  29612. * kcanvas/KCanvasCreator.cpp:
  29613. (WebCore::KCanvasCreator::createRoundedRectangle):
  29614. (WebCore::KCanvasCreator::createRectangle):
  29615. (WebCore::KCanvasCreator::createEllipse):
  29616. (WebCore::KCanvasCreator::createCircle):
  29617. (WebCore::KCanvasCreator::createLine):
  29618. * kcanvas/KCanvasCreator.h:
  29619. * kcanvas/KCanvasPath.cpp: Removed.
  29620. * kcanvas/KCanvasPath.h: Removed.
  29621. * kcanvas/KCanvasResources.cpp:
  29622. (WebCore::operator<<):
  29623. (WebCore::KCanvasResource::clients):
  29624. (WebCore::KCanvasResource::invalidate):
  29625. (WebCore::KCanvasClipper::addClipData):
  29626. * kcanvas/KCanvasResources.h:
  29627. (WebCore::KCClipData::windRule):
  29628. (WebCore::KCClipDataList::KCClipDataList):
  29629. (WebCore::KCClipDataList::addPath):
  29630. * kcanvas/KCanvasTreeDebug.cpp:
  29631. (WebCore::operator<<):
  29632. * kcanvas/RenderPath.cpp:
  29633. (WebCore::RenderPath::fillContains):
  29634. (WebCore::RenderPath::relativeBBox):
  29635. (WebCore::RenderPath::setPath):
  29636. (WebCore::RenderPath::path):
  29637. (WebCore::RenderPath::paint):
  29638. (WebCore::RenderPath::nodeAtPoint):
  29639. * kcanvas/RenderPath.h:
  29640. * kcanvas/device/KRenderingDevice.h:
  29641. * kcanvas/device/KRenderingFillPainter.cpp:
  29642. (WebCore::KRenderingFillPainter::fillRule):
  29643. (WebCore::KRenderingFillPainter::setFillRule):
  29644. * kcanvas/device/KRenderingFillPainter.h:
  29645. * kcanvas/device/qt/KCanvasClipperQt.cpp:
  29646. (WebCore::KCanvasClipperQt::applyClip):
  29647. * kcanvas/device/qt/KCanvasPathQt.cpp: Removed.
  29648. * kcanvas/device/qt/KCanvasPathQt.h: Removed.
  29649. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  29650. (WebCore::KRenderingDeviceContextQt::addPath):
  29651. (WebCore::KRenderingDeviceContextQt::setFillRule):
  29652. (WebCore::KRenderingDeviceQt::createItem):
  29653. * kcanvas/device/qt/KRenderingDeviceQt.h:
  29654. * kcanvas/device/qt/RenderPathQt.cpp:
  29655. (WebCore::RenderPathQt::drawMarkersIfNeeded):
  29656. (WebCore::RenderPathQt::strokeContains):
  29657. (WebCore::getPathStroke):
  29658. (WebCore::RenderPathQt::strokeBBox):
  29659. * kcanvas/device/qt/RenderPathQt.h:
  29660. * kcanvas/device/quartz/KCanvasItemQuartz.h:
  29661. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  29662. (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded):
  29663. (WebCore::KCanvasItemQuartz::strokeBBox):
  29664. (WebCore::KCanvasItemQuartz::strokeContains):
  29665. * kcanvas/device/quartz/KCanvasPathQuartz.h: Removed.
  29666. * kcanvas/device/quartz/KCanvasPathQuartz.mm: Removed.
  29667. * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
  29668. (WebCore::KCanvasClipperQuartz::applyClip):
  29669. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  29670. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  29671. (WebCore::KRenderingDeviceContextQuartz::addPath):
  29672. (WebCore::KRenderingDeviceQuartz::createItem):
  29673. * kcanvas/device/quartz/QuartzSupport.h:
  29674. * kcanvas/device/quartz/QuartzSupport.mm:
  29675. (WebCore::scratchContext):
  29676. (WebCore::strokeBoundingBox):
  29677. (WebCore::pathContainsPoint):
  29678. * ksvg2/css/SVGCSSParser.cpp:
  29679. (WebCore::CSSParser::parseSVGValue):
  29680. * ksvg2/css/SVGCSSStyleSelector.cpp:
  29681. (WebCore::CSSStyleSelector::applySVGProperty):
  29682. * ksvg2/css/SVGRenderStyle.h:
  29683. (WebCore::SVGRenderStyle::InheritedFlags::):
  29684. * ksvg2/css/SVGRenderStyleDefs.h:
  29685. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  29686. (WebCore::KSVGPainterFactory::fillPainter):
  29687. * ksvg2/svg/SVGCircleElement.cpp:
  29688. (SVGCircleElement::toPathData):
  29689. * ksvg2/svg/SVGCircleElement.h:
  29690. * ksvg2/svg/SVGClipPathElement.cpp:
  29691. (SVGClipPathElement::canvasResource):
  29692. * ksvg2/svg/SVGEllipseElement.cpp:
  29693. (WebCore::SVGEllipseElement::toPathData):
  29694. * ksvg2/svg/SVGEllipseElement.h:
  29695. * ksvg2/svg/SVGGradientElement.cpp:
  29696. (SVGGradientElement::notifyAttributeChange):
  29697. * ksvg2/svg/SVGImageElement.cpp:
  29698. * ksvg2/svg/SVGLineElement.cpp:
  29699. (SVGLineElement::toPathData):
  29700. * ksvg2/svg/SVGLineElement.h:
  29701. * ksvg2/svg/SVGMaskElement.cpp:
  29702. * ksvg2/svg/SVGPathElement.cpp:
  29703. (WebCore::SVGPathElement::toPathData):
  29704. * ksvg2/svg/SVGPathElement.h:
  29705. * ksvg2/svg/SVGPatternElement.cpp:
  29706. (WebCore::SVGPatternElement::notifyClientsToRepaint):
  29707. * ksvg2/svg/SVGPolygonElement.cpp:
  29708. (SVGPolygonElement::toPathData):
  29709. * ksvg2/svg/SVGPolygonElement.h:
  29710. * ksvg2/svg/SVGPolylineElement.cpp:
  29711. (SVGPolylineElement::toPathData):
  29712. * ksvg2/svg/SVGPolylineElement.h:
  29713. * ksvg2/svg/SVGRectElement.cpp:
  29714. (WebCore::SVGRectElement::toPathData):
  29715. * ksvg2/svg/SVGRectElement.h:
  29716. * ksvg2/svg/SVGStyledElement.cpp:
  29717. (WebCore::SVGStyledElement::createRenderer):
  29718. * ksvg2/svg/SVGStyledElement.h:
  29719. (WebCore::SVGStyledElement::toPathData):
  29720. * ksvg2/svg/SVGTextContentElement.cpp:
  29721. * ksvg2/svg/SVGTextElement.cpp:
  29722. * platform/Path.h:
  29723. (WebCore::):
  29724. (WebCore::Path::setWindingRule):
  29725. (WebCore::Path::windingRule):
  29726. * platform/cg/PathCG.cpp:
  29727. (WebCore::Path::contains):
  29728. (WebCore::Path::isEmpty):
  29729. (WebCore::CGPathToCFStringApplierFunction):
  29730. (WebCore::CFStringFromCGPath):
  29731. (WebCore::Path::debugString):
  29732. * platform/qt/FrameQt.cpp:
  29733. (WebCore::FrameQt::openURL):
  29734. * platform/qt/PathQt.cpp:
  29735. (WebCore::Path::contains):
  29736. (WebCore::Path::isEmpty):
  29737. (WebCore::Path::debugString):
  29738. 2006-08-26 Eric Seidel <eric@webkit.org>
  29739. Reviewed by hyatt.
  29740. pointer-events attribute does not work.
  29741. http://bugs.webkit.org/show_bug.cgi?id=10415
  29742. * kcanvas/RenderPath.cpp:
  29743. (WebCore::RenderPath::pointerEventsHitRules): new function to contain pointer-events hit logic
  29744. (WebCore::RenderPath::nodeAtPoint): respect pointer-events property
  29745. * kcanvas/RenderPath.h:
  29746. (WebCore::RenderPath::PointerEventsHitRules::PointerEventsHitRules):
  29747. * ksvg2/css/SVGCSSParser.cpp:
  29748. (WebCore::CSSParser::parseSVGValue):
  29749. * ksvg2/svg/SVGPaint.cpp: Fix this to use a real enum value
  29750. (WebCore::SVGPaint::SVGPaint):
  29751. (WebCore::SVGPaint::paintType):
  29752. (WebCore::SVGPaint::uri):
  29753. (WebCore::SVGPaint::setUri):
  29754. (WebCore::SVGPaint::setPaint):
  29755. * ksvg2/svg/SVGPaint.h:
  29756. 2006-08-27 Rob Buis <buis@kde.org>
  29757. Reviewed by Eric.
  29758. http://bugs.webkit.org/show_bug.cgi?id=10558
  29759. SVG should have support for <metadata> element
  29760. Add support for metadata tag.
  29761. * DerivedSources.make:
  29762. * WebCore.xcodeproj/project.pbxproj:
  29763. * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
  29764. * ksvg2/svg/SVGMetadataElement.cpp: Added.
  29765. (SVGMetadataElement::SVGMetadataElement):
  29766. (SVGMetadataElement::~SVGMetadataElement):
  29767. * ksvg2/svg/SVGMetadataElement.h: Added.
  29768. * ksvg2/svg/SVGMetadataElement.idl: Added.
  29769. * ksvg2/svg/svgtags.in:
  29770. 2006-08-26 Nikolas Zimmermann <zimmermann@kde.org>
  29771. Reviewed by Eric.
  29772. Daily Qt build fixes :-)
  29773. * platform/qt/GraphicsContextQt.cpp:
  29774. (WebCore::GraphicsContext::drawConvexPolygon):
  29775. * platform/qt/ImageQt.cpp:
  29776. (WebCore::Image::initPlatformData):
  29777. (WebCore::Image::invalidatePlatformData):
  29778. (WebCore::Image::loadPlatformResource):
  29779. 2006-08-26 David Hyatt <hyatt@apple.com>
  29780. Fix the ifdef in Path.h to be CG.
  29781. * platform/Path.h:
  29782. 2006-08-26 David Hyatt <hyatt@apple.com>
  29783. Fix Mac build bustage (lots of float/int confusion). I am not sure
  29784. whether rounding was desired or not... this is just a band-aid to get
  29785. the build working again.
  29786. * rendering/RenderThemeMac.mm:
  29787. (WebCore::RenderThemeMac::paintMenuListButtonGradients):
  29788. (WebCore::RenderThemeMac::paintMenuListButton):
  29789. (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
  29790. 2006-08-25 David Hyatt <hyatt@apple.com>
  29791. More refactoring of image to disentangle graphics (e.g., Cairo) from
  29792. platform (e.g., Windows).
  29793. * WebCore.vcproj/WebCore/WebCore.vcproj:
  29794. Add ImageWin to project.
  29795. * loader/Cache.cpp:
  29796. (WebCore::Cache::init):
  29797. * loader/icon/IconDataCache.cpp:
  29798. (WebCore::IconDataCache::loadImageFromResource):
  29799. Renamed loadResource to loadPlatformResource to try to make it more clear
  29800. that this call is implemented on each OS (and not by graphics libraries).
  29801. * platform/Image.cpp:
  29802. (WebCore::Image::Image):
  29803. (WebCore::Image::~Image):
  29804. (WebCore::Image::invalidateData):
  29805. (WebCore::Image::size):
  29806. (WebCore::Image::setData):
  29807. (WebCore::Image::setNativeData):
  29808. Fix up the PDF code to not be considered platform data any more, since
  29809. PDF rendering is not for a specific OS.
  29810. Renamed the methods that set OS-specific data (like NSImage) to PlatformData
  29811. instead of NativeData.
  29812. * platform/Image.h:
  29813. Shifted the PDF members into CG defines. Made CGImageRef a CG define.
  29814. Renamed methods to reflect that they are OS-specific and not
  29815. graphics-library-specific.
  29816. * platform/cairo/ImageCairo.cpp:
  29817. Removed the platform data methods. Other platforms besides Windows that
  29818. use Cairo will need to account for this change by adding these methods
  29819. to their OS Image***.cpp file.
  29820. * platform/cg/ImageCG.cpp:
  29821. (WebCore::Image::drawTiled):
  29822. Add FIXMEs to the wkpattern stuff.
  29823. * platform/cg/PDFDocumentImage.cpp:
  29824. Shouldn't have #imports in .cpp.
  29825. * platform/mac/ImageMac.mm:
  29826. (WebCore::Image::initPlatformData):
  29827. (WebCore::Image::invalidatePlatformData):
  29828. (WebCore::Image::loadPlatformResource):
  29829. (WebCore::Image::getTIFFRepresentation):
  29830. Add the platform data initializers to the Mac Image file. Move the
  29831. TIFF representation there as well, since this is only used by Mac code.
  29832. * platform/win/ImageWin.cpp: Added.
  29833. (WebCore::Image::initPlatformData):
  29834. (WebCore::Image::invalidatePlatformData):
  29835. (WebCore::Image::loadPlatformResource):
  29836. (WebCore::Image::supportsType):
  29837. Similar work for Windows. Add stubs for possible future HBITMAP returns
  29838. in the platform data methods.
  29839. * rendering/RenderLayer.cpp:
  29840. (WebCore::RenderLayer::paintResizeControl):
  29841. * rendering/RenderThemeMac.mm:
  29842. (WebCore::RenderThemeMac::paintResizeControl):
  29843. loadResource -> loadPlatformResource
  29844. 2006-08-26 Adam Roben <aroben@apple.com>
  29845. Rubber-stamped by Adele.
  29846. Fixed build.
  29847. * platform/cairo/GraphicsContextCairo.cpp:
  29848. (WebCore::GraphicsContext::drawConvexPolygon):
  29849. 2006-08-25 Adele Peterson <adele@apple.com>
  29850. Patch by Francisco, Reviewed by me.
  29851. Preparation for switch to new text field implementation of password field.
  29852. Added -webkit-text-security property.
  29853. Tests: updated fast/css/computed-style-expected.txt
  29854. * css/CSSPropertyNames.in: Added -webkit-text-security.
  29855. * css/CSSComputedStyleDeclaration.cpp:
  29856. (WebCore::):
  29857. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added cases for textSecurity.
  29858. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): ditto.
  29859. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
  29860. * css/html4.css: Added style for password field to use -webkit-text-security.
  29861. * html/HTMLInputElement.cpp: Check appearance property to decide which renderer to use.
  29862. (WebCore::HTMLInputElement::selectionStart):
  29863. (WebCore::HTMLInputElement::selectionEnd):
  29864. (WebCore::HTMLInputElement::setSelectionStart):
  29865. (WebCore::HTMLInputElement::setSelectionEnd):
  29866. (WebCore::HTMLInputElement::select):
  29867. (WebCore::HTMLInputElement::setSelectionRange):
  29868. (WebCore::HTMLInputElement::createRenderer):
  29869. * html/HTMLInputElement.h: (WebCore::HTMLInputElement::isNonWidgetTextField): Added check for password.
  29870. * platform/StringImpl.cpp: (WebCore::StringImpl::secure): Added. Converts a string to replace
  29871. characters with one character, like a bullet.
  29872. * platform/StringImpl.h:
  29873. * rendering/RenderStyle.cpp:
  29874. (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData): Initialize textSecurity.
  29875. (WebCore::RenderStyle::diff): Added case for textSecurity.
  29876. * rendering/RenderStyle.h:
  29877. (WebCore::):
  29878. (WebCore::RenderStyle::textSecurity): Added.
  29879. (WebCore::RenderStyle::setTextSecurity): Added.
  29880. (WebCore::RenderStyle::initialTextSecurity): Added.
  29881. * rendering/RenderText.cpp:
  29882. (WebCore::RenderText::setStyle): Added case for textSecurity.
  29883. (WebCore::RenderText::setText): ditto.
  29884. 2006-08-25 Adele Peterson <adele@apple.com>
  29885. Reviewed by Hyatt.
  29886. Enable styling for popup menus. Also fixed baseline calculation for buttons and selects.
  29887. Tests: fast/forms/select-baseline.html
  29888. fast/borders/borderRadiusInvalidColor.html
  29889. updated: fast/forms/select-style-expected.txt and more...
  29890. * css/html4.css: Added style rules for styled select elements.
  29891. * platform/GraphicsContext.h: Added argument for antialiasing.
  29892. * platform/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto.
  29893. * platform/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto.
  29894. * rendering/RenderObject.cpp:
  29895. (WebCore::RenderObject::drawBorderArc): Added textColor argument so this can be used when the border color is invalid.
  29896. (WebCore::RenderObject::drawBorder): Removed invalidisInvert since its dead code
  29897. (any callers that set this to true were already ensuring that their color was valid).
  29898. Updated drawConvexPolygon call to use FloatPoints instead of IntPoints.
  29899. (WebCore::RenderObject::paintBorder): Updated to remove invalidisInvert argument from drawBorder call.
  29900. (WebCore::RenderObject::paintOutline): ditto.
  29901. * rendering/RenderFlow.cpp: (WebCore::RenderFlow::paintOutlineForLine): ditto.
  29902. * rendering/RenderObject.h: Updated arguments for drawBorder and drawBorderArc.
  29903. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::getBaselineOfLastLineBox): Changed isRootLineBox argument to true when setting line height.
  29904. Added case for when there's no children to check for hasLineIfEmpty.
  29905. * rendering/RenderBlock.h:
  29906. * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): Changed isRootLineBox argument to true when setting line height.
  29907. * rendering/RenderButton.h: (WebCore::RenderButton::hasLineIfEmpty): Added so buttons always get a line height.
  29908. * rendering/RenderMenuList.h: (WebCore::RenderMenuList::hasLineIfEmpty): ditto.
  29909. * rendering/RenderFlexibleBox.cpp:
  29910. (WebCore::RenderFlexibleBox::layoutHorizontalBox): Added code to check hasLineIfEmpty to give flex boxes line height.
  29911. (WebCore::RenderFlexibleBox::layoutVerticalBox): ditto.
  29912. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): Moved the appearance adjustment code into adjust style.
  29913. * rendering/RenderBox.cpp: (WebCore::RenderBox::paintBoxDecorations): Lets the theme paint "decorations", like the arrow control and gradients
  29914. immediately after painting the background.
  29915. * rendering/RenderTheme.cpp:
  29916. (WebCore::RenderTheme::adjustStyle): This now checks whether the control is styled, and adjusts the appearance property appropriately.
  29917. For styled selects, instead of setting the appearance to none, which is what we do for other styled controls, we set the appearance
  29918. to MenulistButtonAppearance, which indicates that we will draw the arrow controls and button appearance in the engine.
  29919. (WebCore::RenderTheme::paintDecorations): Added. Paints MenulistButtonAppearance in a different function,
  29920. so the arrow control will draw at the right time (after the background).
  29921. (WebCore::RenderTheme::paint): Added case for MenulistButtonAppearance.
  29922. (WebCore::RenderTheme::paintBorderOnly): ditto.
  29923. (WebCore::RenderTheme::isControlContainer): Removed cases for MenuListAppearance and MenulistButtonAppearance since the baseline is no longer provided by the theme.
  29924. (WebCore::RenderTheme::adjustMenuListButtonStyle): Added.
  29925. * rendering/RenderTheme.h: (WebCore::RenderTheme::paintMenuListButton): Added.
  29926. * rendering/RenderThemeMac.h:
  29927. * rendering/RenderThemeMac.mm:
  29928. (WebCore::RenderThemeMac::isControlStyled): Removed code that made selects unstyle-able.
  29929. (WebCore::RenderThemeMac::baselinePosition): Removed cases for MenuListAppearance and MenulistButtonAppearance.
  29930. (WebCore::RenderThemeMac::popupButtonPadding): Added top and bottom padding so empty popups have the right baseline.
  29931. (WebCore::TopGradientInterpolate): Added.
  29932. (WebCore::BottomGradientInterpolate): Added.
  29933. (WebCore::MainGradientInterpolate): Added.
  29934. (WebCore::RenderThemeMac::paintMenuListButtonGradients): Added. Draws gradients for styled popup menu button appearance.
  29935. (WebCore::RenderThemeMac::paintMenuListButton): Calls paintMenuListButtonGradients, and draws arrow control.
  29936. (WebCore::RenderThemeMac::adjustMenuListButtonStyle): Added to set padding and border radius to account for the arrow control size and font size.
  29937. 2006-08-25 Brady Eidson <beidson@apple.com>
  29938. Reviewed by Adam
  29939. Changed some time()-related code to be more platform independent
  29940. * loader/icon/IconDatabase.cpp:
  29941. (WebCore::IconDatabase::isIconExpiredForIconURL):
  29942. (WebCore::IconDatabase::getOrCreateIconDataCache):
  29943. (WebCore::IconDatabase::setIconDataForIconURL):
  29944. 2006-08-25 David Harrison <harrison@apple.com>
  29945. Reviewed by Geoff.
  29946. <rdar://problem/4416432> Radio buttons and Checkboxes in AXWebAreas don't fill in their AXTitle attribute
  29947. * bridge/mac/WebCoreAXObject.mm:
  29948. (labelForElement):
  29949. New. Returns the HTMLLabelElement, if any, for the specified Element.
  29950. (-[WebCoreAXObject title]):
  29951. For input elements, return the innerHTML() of the labelForElement().
  29952. 2006-08-25 Brady Eidson <beidson@apple.com>
  29953. Reviewed by Tim Hatcher
  29954. Changed some debugging-only code to be more platform independent
  29955. * WebCore.xcodeproj/project.pbxproj:
  29956. * loader/icon/IconDatabase.cpp:
  29957. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
  29958. (WebCore::IconDatabase::syncDatabase):
  29959. 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
  29960. Reviewed/landed by Adam.
  29961. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10561
  29962. Qt platform build fixes.
  29963. * platform/qt/FrameQt.h:
  29964. * platform/qt/ScreenQt.cpp:
  29965. (WebCore::qwidgetForPage):
  29966. (WebCore::screenRect):
  29967. (WebCore::screenDepth):
  29968. (WebCore::usableScreenRect):
  29969. * platform/qt/TemporaryLinkStubs.cpp:
  29970. (WebCore::screenDepthPerComponent):
  29971. (WebCore::screenIsMonochrome):
  29972. * platform/qt/WidgetQt.cpp:
  29973. 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
  29974. Reviewed/landed by Adam.
  29975. Finally fix font caching. WebKit+Qt now works
  29976. out of the box without any further patches :-)
  29977. * platform/qt/FontDataQt.cpp:
  29978. (WebCore::FontData::platformDestroy):
  29979. * platform/qt/FontPlatformData.h:
  29980. * platform/qt/FontPlatformDataQt.cpp:
  29981. (WebCore::FontPlatformData::FontPlatformData):
  29982. (WebCore::FontPlatformData::isFixedPitch):
  29983. (WebCore::FontPlatformData::font):
  29984. (WebCore::FontPlatformData::fontPtr):
  29985. (WebCore::FontPlatformData::hash):
  29986. (WebCore::FontPlatformData::operator==):
  29987. 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
  29988. Reviewed/landed by Adam.
  29989. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10559
  29990. Confirm to WebKit style guide - last fixes :-)
  29991. * platform/ResourceLoaderClient.h:
  29992. * platform/qt/ComboBoxQt.cpp:
  29993. * platform/qt/FrameQt.cpp:
  29994. (WebCore::doScroll):
  29995. (WebCore::FrameQt::FrameQt):
  29996. (WebCore::FrameQt::openURL):
  29997. (WebCore::FrameQt::submitForm):
  29998. (WebCore::FrameQt::setTitle):
  29999. (WebCore::FrameQt::passSubframeEventToSubframe):
  30000. (WebCore::FrameQt::registerCommandForUndo):
  30001. (WebCore::FrameQt::registerCommandForRedo):
  30002. (WebCore::FrameQt::keyEvent):
  30003. (WebCore::FrameQt::setFrameGeometry):
  30004. * platform/qt/GlyphMapQt.cpp:
  30005. (WebCore::GlyphMap::fillPage):
  30006. * platform/qt/GraphicsContextQt.cpp:
  30007. (WebCore::toQtCompositionMode):
  30008. (WebCore::toQtLineCap):
  30009. (WebCore::toQtLineJoin):
  30010. (WebCore::TextShadow::TextShadow):
  30011. (WebCore::GraphicsContextPlatformPrivate::p):
  30012. * platform/qt/ImageQt.cpp:
  30013. (WebCore::FrameData::clear):
  30014. (WebCore::Image::supportsType):
  30015. * platform/qt/IntSizeQt.cpp:
  30016. * platform/qt/LineEditQt.cpp:
  30017. * platform/qt/ListBoxQt.cpp:
  30018. * platform/qt/PageQt.cpp:
  30019. (WebCore::Page::windowRect):
  30020. * platform/qt/PathQt.cpp:
  30021. (WebCore::Path::~Path):
  30022. * platform/qt/ResourceLoaderCurl.cpp:
  30023. (WebCore::ResourceLoader::assembleResponseHeaders):
  30024. (WebCore::ResourceLoader::retrieveCharset):
  30025. (WebCore::ResourceLoader::receivedResponse):
  30026. * platform/qt/ResourceLoaderManager.cpp:
  30027. (WebCore::headerCallback):
  30028. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  30029. (WebCore::ResourceLoaderManager::add):
  30030. * platform/qt/ScreenQt.cpp:
  30031. (WebCore::screenRect):
  30032. (WebCore::usableScreenRect):
  30033. * platform/qt/ScrollViewQt.cpp:
  30034. (WebCore::ScrollView::ScrollView):
  30035. (WebCore::ScrollView::~ScrollView):
  30036. (WebCore::ScrollView::setParentWidget):
  30037. (WebCore::ScrollView::addChild):
  30038. * platform/qt/SharedTimerQt.cpp:
  30039. (WebCore::setSharedTimerFiredFunction):
  30040. * platform/qt/SharedTimerQt.h:
  30041. (WebCore::SharedTimerQt::SharedTimerQt):
  30042. (WebCore::SharedTimerQt::fire):
  30043. * platform/qt/SystemTimeQt.cpp:
  30044. (WebCore::currentTime):
  30045. * platform/qt/TextEditQt.cpp:
  30046. (WebCore::PlatformTextEdit::setParentWidget):
  30047. (WebCore::PlatformTextEdit::text):
  30048. (WebCore::PlatformTextEdit::sizeWithColumnsAndRows):
  30049. 2006-08-24 David Harrison <harrison@apple.com>
  30050. Reviewed by Justin.
  30051. Follow up for...
  30052. <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
  30053. Fix bug I introduced in r15959.
  30054. * bridge/mac/WebCoreAXObject.mm:
  30055. (-[WebCoreAXObject accessibilityAttributeValue:]):
  30056. Use topDocument in case we are in a subframe (we want the start/end of the overall page).
  30057. 2006-08-24 Brady Eidson <beidson@apple.com>
  30058. Reviewed by Alice
  30059. Fixed my previous checkin, which was pruning the users entire icon db on startup everytime
  30060. * loader/icon/IconDatabase.cpp:
  30061. (WebCore::IconDatabase::retainIconForPageURL): Bind the PageURL to argument 1, as SQL bindings
  30062. are indexed to 1, not 0
  30063. 2006-08-24 Geoffrey Garen <ggaren@apple.com>
  30064. Reviewed by Darin.
  30065. Frame refactoring: changed FrameView clients so they no longer assume that
  30066. FrameViews are Widgets that can tell you things about the platform, in
  30067. preparation for divorcing FrameViews from heavy-weight Widgets altogether.
  30068. This patch makes Page, rather than Widget, responsible for answering
  30069. questions about the screen (scale factor, color depth, etc.). Refactoring
  30070. aside, I think this makes more sense, since (a) the screen has nothing to do
  30071. with any particular widget and (b) Page was already half-responsible for
  30072. answering those questions, anyway.
  30073. Plus some random Windows build fix goodness.
  30074. Layout tests still pass.
  30075. 2006-08-24 Timothy Hatcher <timothy@apple.com>
  30076. Reviewed by Hyatt.
  30077. Allow changing the background color WebCore draws under transparent page backgrounds.
  30078. No automated way to test. All tests pass, no performance regression.
  30079. * bridge/mac/WebCoreFrameBridge.h:
  30080. * bridge/mac/WebCoreFrameBridge.mm:
  30081. (-[WebCoreFrameBridge setBaseBackgroundColor:]):
  30082. * page/FrameView.cpp:
  30083. (WebCore::FrameViewPrivate::FrameViewPrivate):
  30084. (WebCore::FrameView::baseBackgroundColor):
  30085. (WebCore::FrameView::setBaseBackgroundColor):
  30086. * page/FrameView.h:
  30087. * rendering/RenderBox.cpp:
  30088. (WebCore::RenderBox::paintBackgroundExtended):
  30089. * rendering/RenderView.cpp:
  30090. (WebCore::RenderView::paintBoxDecorations):
  30091. 2006-08-24 Darin Adler <darin@apple.com>
  30092. Reviewed by Justin.
  30093. - fix http://bugs.webkit.org/show_bug.cgi?id=10169
  30094. REGRESSION: NativeTextArea: Text dragged from <input type=text> to textarea disappears
  30095. - eliminate the EditCommandPtr class from editing; use PassRefPtr and RefPtr instead
  30096. - other editing-related cleanup
  30097. Test: fast/forms/drag-into-textarea.html
  30098. * bridge/mac/FrameMac.h: Changed EditCommandPtr parameters to use PassRefPtr<EditCommand> instead.
  30099. * bridge/win/FrameWin.h: Ditto.
  30100. * bridge/mac/FrameMac.mm:
  30101. (WebCore::FrameMac::registerCommandForUndoOrRedo): Ditto.
  30102. (WebCore::FrameMac::registerCommandForUndo): Ditto.
  30103. (WebCore::FrameMac::registerCommandForRedo): Ditto.
  30104. * bridge/mac/WebCoreFrameBridge.mm:
  30105. (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
  30106. Use applyCommand instead of EditCommandPtr. Also remove now-unneeded document parameter.
  30107. (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]): Ditto.
  30108. (-[WebCoreFrameBridge deleteSelectionWithSmartDelete:]): Ditto.
  30109. * editing/AppendNodeCommand.h: Removed document parameter from constructor. Changed new child
  30110. parameter to be a PassRefPtr. Reversed order of child and parent parameters.
  30111. * editing/AppendNodeCommand.cpp:
  30112. (WebCore::AppendNodeCommand::AppendNodeCommand): Ditto.
  30113. (WebCore::AppendNodeCommand::doApply): Ditto.
  30114. (WebCore::AppendNodeCommand::doUnapply): Ditto.
  30115. * editing/ApplyStyleCommand.h: Removed document parameter from constructor.
  30116. * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::ApplyStyleCommand): Ditto.
  30117. * editing/BreakBlockquoteCommand.h: Removed unneeded include of DeprecatedPtrList.h.
  30118. * editing/BreakBlockquoteCommand.cpp: Moved the include of DeprecatedPtrList.h here.
  30119. (WebCore::BreakBlockquoteCommand::doApply): Changed code to construct a Selection explicitly
  30120. since setEndingSelection is no longer overloaded for Position.
  30121. * editing/CompositeEditCommand.h: Added isFirstCommand function. Changed m_cmds from
  30122. a DeprecatedValueList<EditCommandPtr> to a Vector<RefPtr<EditCommand>> and renamed it
  30123. m_commands and made both doUnapply and doReapply private.
  30124. * editing/CompositeEditCommand.cpp:
  30125. (WebCore::CompositeEditCommand::doUnapply): Rewrote to use m_commands.
  30126. (WebCore::CompositeEditCommand::doReapply): Ditto.
  30127. (WebCore::CompositeEditCommand::applyCommandToComposite): Removed code to explicitly set up
  30128. starting and ending selection -- now done inside setParent. Rewrote to use m_commands.
  30129. (WebCore::CompositeEditCommand::applyStyle): Changed to not use EditCommandPtr.
  30130. (WebCore::CompositeEditCommand::applyStyledElement): Ditto.
  30131. (WebCore::CompositeEditCommand::removeStyledElement): Ditto.
  30132. (WebCore::CompositeEditCommand::insertParagraphSeparator): Ditto.
  30133. (WebCore::CompositeEditCommand::insertNodeBefore): Ditto.
  30134. (WebCore::CompositeEditCommand::appendNode): Ditto.
  30135. (WebCore::CompositeEditCommand::removeNode): Ditto.
  30136. (WebCore::CompositeEditCommand::removeNodePreservingChildren): Ditto.
  30137. (WebCore::CompositeEditCommand::splitTextNode): Ditto.
  30138. (WebCore::CompositeEditCommand::splitElement): Ditto.
  30139. (WebCore::CompositeEditCommand::mergeIdenticalElements): Ditto.
  30140. (WebCore::CompositeEditCommand::wrapContentsInDummySpan): Ditto.
  30141. (WebCore::CompositeEditCommand::splitTextNodeContainingElement): Ditto.
  30142. (WebCore::CompositeEditCommand::joinTextNodes): Ditto.
  30143. (WebCore::CompositeEditCommand::inputText): Ditto.
  30144. (WebCore::CompositeEditCommand::insertTextIntoNode): Ditto.
  30145. (WebCore::CompositeEditCommand::deleteTextFromNode): Ditto.
  30146. (WebCore::CompositeEditCommand::replaceTextInNode): Ditto.
  30147. (WebCore::CompositeEditCommand::deleteSelection): Ditto.
  30148. (WebCore::CompositeEditCommand::removeCSSProperty): Ditto.
  30149. (WebCore::CompositeEditCommand::removeNodeAttribute): Ditto. Also fixed a bug where the code
  30150. would not remove an empty attribute -- will not come up in practice, but wrong in theory.
  30151. (WebCore::CompositeEditCommand::setNodeAttribute): Changed to not use EditCommandPtr.
  30152. (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Ditto.
  30153. (WebCore::CompositeEditCommand::deleteInsignificantText): Rewrote to use a for loop.
  30154. (WebCore::CompositeEditCommand::moveParagraphs): Changed to not use EditCommandPtr.
  30155. (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Changed code to construct a
  30156. Selection explicitly since setEndingSelection is no longer overloaded for Position.
  30157. (WebCore::createBlockPlaceholderElement): Collapsed this code so that the
  30158. block placeholder class string is no longer spread across multiple functions.
  30159. Perhaps we can get rid of this altogether at some point.
  30160. * editing/DeleteFromTextNodeCommand.h: Removed unneeded document parameter from one constructor.
  30161. Also removed unneeded destructor.
  30162. * editing/DeleteFromTextNodeCommand.cpp:
  30163. (WebCore::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand): Ditto.
  30164. * editing/DeleteSelectionCommand.h: Removed unneeded document parameter from one constructor.
  30165. * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Ditto.
  30166. * editing/EditCommand.h: Removed ECommandState, isCompositeStep(), parent(), state(), setState(),
  30167. and most overloads of setStartingSelection() and setEndingSelection(). Made document() protected
  30168. and non-virtual. Made setStartingSelection() setEndingSelection(), and styleAtPosition() protected.
  30169. Made doApply(), doUnapply(), and doReapply() private. Added startingRootEditableElement(),
  30170. endingRootEditableElement(), m_startingRootEditableElement, and m_endingRootEditableElement, which
  30171. are needed so we can determine which editable elements an editing operation affects. Changed setParent()
  30172. and m_parent to use CompositeEditCommand instead of EditCommand. Removed EditCommandPtr. Added
  30173. applyCommand() function that's convenient to use on a newly-created command.
  30174. * editing/EditCommand.cpp:
  30175. (WebCore::EditCommand::EditCommand): Removed initialization for m_state, and added it for starting
  30176. and ending root editable elements.
  30177. (WebCore::EditCommand::apply): Simplified check for top level by just checking m_parent. Removed
  30178. code to assert and set m_start. Eliminated use of EditCommandPtr.
  30179. (WebCore::EditCommand::unapply): Ditto.
  30180. (WebCore::EditCommand::reapply): Ditto.
  30181. (WebCore::EditCommand::setStartingSelection): Changed to set root editable element too. Also made this
  30182. not change the starting selection of the parent unless this is the first command in the parent -- didn't
  30183. make sense the way it was.
  30184. (WebCore::EditCommand::setEndingSelection): Changed to set root editable element too.
  30185. (WebCore::EditCommand::setParent): Added code to set the starting and ending selection on the child
  30186. based on the ending selection of the parent, formerly done by callers.
  30187. (WebCore::applyCommand): Added.
  30188. * editing/FormatBlockCommand.h: Tweaked formatting.
  30189. * editing/FormatBlockCommand.cpp: (WebCore::FormatBlockCommand::FormatBlockCommand): Ditto.
  30190. * editing/InsertLineBreakCommand.h: Ditto.
  30191. * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
  30192. * editing/IndentOutdentCommand.cpp:
  30193. (WebCore::IndentOutdentCommand::splitTreeToNode): Removed use of EditCommandPtr.
  30194. (WebCore::IndentOutdentCommand::outdentParagraph): Updated for change to list type enum.
  30195. (WebCore::IndentOutdentCommand::outdentRegion): Removed use of EditCommandPtr.
  30196. * editing/InsertIntoTextNodeCommand.h: Removed unneeded document parameter to constructor.
  30197. * editing/InsertIntoTextNodeCommand.cpp:
  30198. (WebCore::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand): Ditto.
  30199. * editing/InsertListCommand.h: Renamed EListType to EList, and took the "Type" suffix off
  30200. the constants.
  30201. * editing/InsertListCommand.cpp:
  30202. (WebCore::InsertListCommand::InsertListCommand): Ditto.
  30203. (WebCore::InsertListCommand::doApply): Ditto.
  30204. * editing/InsertNodeBeforeCommand.h: Removed unneeded document parameter from constructor
  30205. and changed the parameter of the node to insert to a PassRefPtr.
  30206. * editing/InsertNodeBeforeCommand.cpp:
  30207. (WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand): Ditto.
  30208. * editing/InsertParagraphSeparatorCommand.cpp:
  30209. (WebCore::InsertParagraphSeparatorCommand::doApply): Remvoed use of EditCommandPtr.
  30210. * editing/InsertTextCommand.h: Changed insertTab to take const Position&.
  30211. * editing/InsertTextCommand.cpp:
  30212. (WebCore::InsertTextCommand::input): Ditto.
  30213. (WebCore::InsertTextCommand::insertTab): Ditto.
  30214. * editing/JSEditor.h: Tweaked formatting and names.
  30215. * editing/JSEditor.cpp: Ditto. Also changed places that use EditCommandPtr.
  30216. * editing/JoinTextNodesCommand.h: Removed unneeeded document pointer
  30217. * editing/JoinTextNodesCommand.cpp:
  30218. (WebCore::JoinTextNodesCommand::JoinTextNodesCommand): Ditto.
  30219. * editing/MergeIdenticalElementsCommand.h: Ditto.
  30220. * editing/MergeIdenticalElementsCommand.cpp:
  30221. (WebCore::MergeIdenticalElementsCommand::MergeIdenticalElementsCommand): Ditto.
  30222. * editing/ModifySelectionListLevel.h: Changed EListType to be named Type and be a member of
  30223. IncreaseSelectionListLevelCommand. Also changed m_listElement to be a RefPtr<Node>.
  30224. * editing/ModifySelectionListLevel.cpp:
  30225. (WebCore::getStartEndListChildren): Changed parameters to be references instead of pointers.
  30226. (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
  30227. Changed to use Type instead of EListType.
  30228. (WebCore::canIncreaseListLevel): Changed parameters to be references instead of pointers.
  30229. (WebCore::IncreaseSelectionListLevelCommand::doApply): Updated for change to canIncreaseListLevel.
  30230. (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel): Ditto.
  30231. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
  30232. Changed to not use EditCommandPtr.
  30233. (WebCore::canDecreaseListLevel): Changed parameters to be references instead of pointers.
  30234. (WebCore::DecreaseSelectionListLevelCommand::doApply): Updated for change to canDecreaseListLevel.
  30235. (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel): Ditto.
  30236. (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel): Changed to not use
  30237. EditCommandPtr.
  30238. * editing/MoveSelectionCommand.h: Removed unnecessary document parameter and changed the fragment
  30239. parameter to be a PassRefPtr.
  30240. * editing/MoveSelectionCommand.cpp:
  30241. (WebCore::MoveSelectionCommand::MoveSelectionCommand): Ditto.
  30242. (WebCore::MoveSelectionCommand::doApply): Got rid of use of EditCommandPtr.
  30243. * editing/RebalanceWhitespaceCommand.h: Removed unnecessary document parameter.
  30244. * editing/RebalanceWhitespaceCommand.cpp:
  30245. (WebCore::RebalanceWhitespaceCommand::RebalanceWhitespaceCommand): Ditto.
  30246. (WebCore::RebalanceWhitespaceCommand::doApply): Got rid of use of EditCommandPtr.
  30247. * editing/RemoveCSSPropertyCommand.h: Tweaked formatting.
  30248. * editing/RemoveNodeAttributeCommand.h: Removed unnecessary document parameter.
  30249. * editing/RemoveNodeAttributeCommand.cpp:
  30250. (WebCore::RemoveNodeAttributeCommand::RemoveNodeAttributeCommand): Ditto.
  30251. * editing/RemoveNodeCommand.h: Removed unnecessary document parameter.
  30252. * editing/RemoveNodeCommand.cpp:
  30253. (WebCore::RemoveNodeCommand::RemoveNodeCommand): Ditto.
  30254. * editing/RemoveNodePreservingChildrenCommand.h: Removed unnecessary document parameter.
  30255. * editing/RemoveNodePreservingChildrenCommand.cpp:
  30256. (WebCore::RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand): Ditto.
  30257. * editing/ReplaceSelectionCommand.h: Change fragment parameter to a PassRefPtr.
  30258. * editing/ReplaceSelectionCommand.cpp:
  30259. (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
  30260. (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand): Ditto.
  30261. (WebCore::ReplaceSelectionCommand::doApply): Ditto.
  30262. (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Ditto.
  30263. * editing/Selection.h: Changed SEL_DEFAULT_AFFINITY to be a constant rather than
  30264. a macro. Added constructors that take visible positions. Changed setBase and
  30265. setExtent to take const Position& for better efficiency.
  30266. * editing/Selection.cpp:
  30267. (WebCore::Selection::Selection): Removed unnecessary double initialization of m_state
  30268. and m_baseIsFirst in existing constructors. Added VisiblePosition-based constructors.
  30269. * editing/SetNodeAttributeCommand.h: Removed unnneeded document parameter.
  30270. * editing/SetNodeAttributeCommand.cpp:
  30271. (WebCore::SetNodeAttributeCommand::SetNodeAttributeCommand): Ditto.
  30272. * editing/SplitElementCommand.h: Removed unnneeded document parameter.
  30273. * editing/SplitElementCommand.cpp:
  30274. (WebCore::SplitElementCommand::SplitElementCommand): Ditto.
  30275. * editing/SplitTextNodeCommand.h: Removed unnneeded document parameter.
  30276. * editing/SplitTextNodeCommand.cpp:
  30277. (WebCore::SplitTextNodeCommand::SplitTextNodeCommand): Ditto.
  30278. * editing/SplitTextNodeContainingElementCommand.h: Removed unnneeded document parameter.
  30279. * editing/SplitTextNodeContainingElementCommand.cpp:
  30280. (WebCore::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand): Ditto.
  30281. * editing/TypingCommand.h: Replaced uses of EditCommandPtr with EditCommand*.
  30282. Renamed openForMoveTyping() with isOpenForMoreTyping().
  30283. * editing/TypingCommand.cpp:
  30284. (WebCore::TypingCommand::deleteKeyPressed): Updated to remove use of EditCommandPtr.
  30285. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  30286. (WebCore::TypingCommand::insertText): Ditto.
  30287. (WebCore::TypingCommand::insertLineBreak): Ditto.
  30288. (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent): Ditto.
  30289. (WebCore::TypingCommand::insertParagraphSeparator): Ditto.
  30290. (WebCore::TypingCommand::isOpenForMoreTypingCommand): Ditto.
  30291. (WebCore::TypingCommand::closeTyping): Ditto.
  30292. (WebCore::TypingCommand::typingAddedToOpenCommand): Ditto.
  30293. (WebCore::TypingCommand::insertTextRunWithoutNewlines): Ditto.
  30294. * editing/WrapContentsInDummySpanCommand.h: Removed unnneeded document parameter.
  30295. * editing/WrapContentsInDummySpanCommand.cpp:
  30296. (WebCore::WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand): Ditto.
  30297. * editing/htmlediting.h: Changed type of NON_BREAKING_SPACE to UChar instead of
  30298. unsigned short.
  30299. * page/Frame.h: Changed lastEditCommand() to return an EditCommand* and changed
  30300. appliedEditing(), unappliedEditing(), reappliedEditing(), registerCommandForUndo(),
  30301. and registerCommandForRedo() to take PassRefPtr<EditCommand>.
  30302. * page/FramePrivate.h: Changed m_lastEditCommand to be a RefPtr<EditCommand>.
  30303. * page/Frame.cpp:
  30304. (WebCore::Frame::didOpenURL): Fixed for change to m_lastEditCommand.
  30305. (WebCore::Frame::setFocusNodeIfNeeded): Call the rootEditableElement function
  30306. from Selection to simplify the code.
  30307. (WebCore::Frame::selectAll): Ditto.
  30308. (WebCore::Frame::lastEditCommand): Updated for change to m_lastEditCommand.
  30309. (WebCore::dispatchEditableContentChangedEvents): Added. This sends an event to
  30310. both of the root editable elements involved in a change -- the start selection
  30311. might be in a different element than the end selection.
  30312. (WebCore::Frame::appliedEditing): Changed to call dispatchEditableContentChangedEvents,
  30313. and to do it before setting the ending selection. Also update to use PassRefPtr instead
  30314. of EditCommandPtr and change the order of setting m_lastEditCommand since passing it
  30315. to registerCommandForUndo will take ownership and set it to 0.
  30316. (WebCore::Frame::unappliedEditing): Ditto.
  30317. (WebCore::Frame::reappliedEditing): Ditto.
  30318. (WebCore::Frame::computeAndSetTypingStyle): Updated for removal of EditCommandPtr.
  30319. (WebCore::Frame::applyStyle): Ditto.
  30320. (WebCore::Frame::applyParagraphStyle): Ditto.
  30321. * platform/gdk/FrameGdk.h: Updated for above changes.
  30322. * platform/gdk/TemporaryLinkStubs.cpp: Updated for above changes.
  30323. * platform/win/TemporaryLinkStubs.cpp: Updated for above changes.
  30324. 2006-08-24 Brady Eidson <beidson@apple.com>
  30325. Reviewed by Alice
  30326. <rdar://problem/4697973> - Unacceptable delay on startup
  30327. <rdar://problem/4690949> - Need to correctly prune unretained pageurls and icons on startup
  30328. This patch was started by me and finished by Mark Rowe - we now special case all retains during
  30329. startup into one huge sql transaction. Also we track PageURL retains instead of IconURLs so pruning works right.
  30330. Testing with reasonable sets of bookmarks/history (3000), startup time is neglibile. Testing with a huge set of
  30331. bookmarks (40,000), startup has a noticable delay, but reasonable, and is inline with shipping safari which also
  30332. has a noticeable delay.
  30333. * loader/icon/IconDatabase.cpp:
  30334. (WebCore::IconDatabase::IconDatabase):
  30335. (WebCore::IconDatabase::open): adding an initialStartupTransaction and pageRetainStatement
  30336. (WebCore::IconDatabase::close): do cleanup on the initialStartupSQL stuff
  30337. (WebCore::IconDatabase::retainIconForPageURL): Track initial PageURL retains in the temporary table
  30338. (WebCore::IconDatabase::releaseIconForPageURL): Ditto
  30339. (WebCore::IconDatabase::retainIconURL): We no longer special case this on startup
  30340. (WebCore::IconDatabase::releaseIconURL): We no longer special case this on startup
  30341. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Handle the big transaction correctly and quickly
  30342. (WebCore::IconDatabase::syncDatabase): Change the timing log message
  30343. * loader/icon/IconDatabase.h:
  30344. * loader/icon/SQLStatement.cpp:
  30345. (WebCore::SQLStatement::bindText16): Added this - for reusing commonly used statements by just rebinding parameters.
  30346. * loader/icon/SQLStatement.h:
  30347. 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
  30348. Reviewed/landed by Adam.
  30349. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  30350. WebKit should have Qt platform support
  30351. * CMakeLists.txt:
  30352. Remove KCanvasMatrix.cpp because it no longer exists
  30353. Remove platform/qt/test
  30354. * platform/FloatSize.h:
  30355. * platform/image-decoders/bmp/BMPImageDecoder.cpp:
  30356. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  30357. * platform/image-decoders/gif/GIFImageReader.cpp:
  30358. * platform/image-decoders/ico/ICOImageDecoder.cpp:
  30359. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  30360. * platform/image-decoders/png/PNGImageDecoder.cpp:
  30361. * platform/image-decoders/xbm/XBMImageDecoder.cpp:
  30362. Added PLATFORM(QT) hooks in the image-decoders/, as they also need
  30363. to work for Qt, not only for Cairo.
  30364. * platform/qt/qt-encodings.txt: Added (required for build).
  30365. 2006-08-24 Adam Roben <aroben@apple.com>
  30366. Fixing a typo from last patch.
  30367. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  30368. (WebCore::KRenderingPaintServerQt::setPenProperties):
  30369. 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
  30370. Reviewed/landed by Adam.
  30371. Final cleanup to conform to WebKit coding style!
  30372. * kcanvas/device/qt/KCanvasClipperQt.cpp:
  30373. (WebCore::KCanvasClipperQt::applyClip):
  30374. * kcanvas/device/qt/KCanvasClipperQt.h:
  30375. * kcanvas/device/qt/KCanvasPathQt.cpp:
  30376. * kcanvas/device/qt/KCanvasPathQt.h:
  30377. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  30378. * kcanvas/device/qt/KRenderingDeviceQt.h:
  30379. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  30380. (WebCore::KRenderingPaintServerLinearGradientQt::KRenderingPaintServerLinearGradientQt):
  30381. (WebCore::KRenderingPaintServerRadialGradientQt::KRenderingPaintServerRadialGradientQt):
  30382. * kcanvas/device/qt/KRenderingPaintServerGradientQt.h:
  30383. * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
  30384. (WebCore::KRenderingPaintServerPatternQt::KRenderingPaintServerPatternQt):
  30385. * kcanvas/device/qt/KRenderingPaintServerPatternQt.h:
  30386. * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
  30387. (WebCore::KRenderingPaintServerQt::setPenProperties):
  30388. * kcanvas/device/qt/KRenderingPaintServerQt.h:
  30389. * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
  30390. (WebCore::KRenderingPaintServerSolidQt::KRenderingPaintServerSolidQt):
  30391. (WebCore::KRenderingPaintServerSolidQt::renderPath):
  30392. * kcanvas/device/qt/KRenderingPaintServerSolidQt.h:
  30393. * kcanvas/device/qt/RenderPathQt.cpp:
  30394. * kcanvas/device/qt/RenderPathQt.h:
  30395. * platform/qt/AffineTransformQt.cpp:
  30396. * platform/qt/BrowserExtensionQt.cpp:
  30397. * platform/qt/BrowserExtensionQt.h:
  30398. * platform/qt/ColorQt.cpp:
  30399. (WebCore::Color::Color):
  30400. * platform/qt/ComboBoxQt.cpp:
  30401. (WebCore::PlatformComboBox::PlatformComboBox):
  30402. (WebCore::PlatformComboBox::~PlatformComboBox):
  30403. (WebCore::PlatformComboBox::setParentWidget):
  30404. (WebCore::PlatformComboBox::appendGroupLabel):
  30405. * platform/qt/CookieJarQt.cpp:
  30406. * platform/qt/CursorQt.cpp:
  30407. (WebCore::Cursors::Cursors::self):
  30408. * platform/qt/FloatPointQt.cpp:
  30409. * platform/qt/FloatRectQt.cpp:
  30410. * platform/qt/FontCacheQt.cpp:
  30411. (WebCore::FontCache::getSimilarFontPlatformData):
  30412. (WebCore::FontCache::createFontPlatformData):
  30413. * platform/qt/FontDataQt.cpp:
  30414. * platform/qt/FontPlatformData.h:
  30415. * platform/qt/FontPlatformDataQt.cpp:
  30416. * platform/qt/FontQt.cpp:
  30417. (WebCore::Font::operator QFont):
  30418. (WebCore::Font::drawComplexText):
  30419. (WebCore::Font::floatWidthForComplexText):
  30420. * platform/qt/FrameQt.cpp:
  30421. (WebCore::FrameQt::openURL):
  30422. (WebCore::FrameQt::submitForm):
  30423. (WebCore::FrameQt::urlSelected):
  30424. (WebCore::FrameQt::keyEvent):
  30425. * platform/qt/FrameQt.h:
  30426. * platform/qt/GlyphMapQt.cpp:
  30427. * platform/qt/GraphicsContextQt.cpp:
  30428. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  30429. (WebCore::GraphicsContext::GraphicsContext):
  30430. (WebCore::GraphicsContext::drawConvexPolygon):
  30431. (WebCore::GraphicsContext::setFocusRingClip):
  30432. (WebCore::GraphicsContext::clip):
  30433. * platform/qt/ImageQt.cpp:
  30434. (WebCore::Image::draw):
  30435. (WebCore::Image::drawTiled):
  30436. * platform/qt/ImageSourceQt.cpp:
  30437. * platform/qt/IntPointQt.cpp:
  30438. * platform/qt/IntRectQt.cpp:
  30439. * platform/qt/IntSizeQt.cpp:
  30440. * platform/qt/LineEditQt.cpp:
  30441. (WebCore::PlatformLineEdit::PlatformLineEdit):
  30442. (WebCore::PlatformLineEdit::~PlatformLineEdit):
  30443. (WebCore::PlatformLineEdit::setParentWidget):
  30444. (WebCore::PlatformLineEdit::addSearchResult):
  30445. * platform/qt/ListBoxQt.cpp:
  30446. (WebCore::ListBox::ListBox):
  30447. (WebCore::ListBox::~ListBox):
  30448. (WebCore::ListBox::setParentWidget):
  30449. * platform/qt/PageQt.cpp:
  30450. (WebCore::Page::windowRect):
  30451. (WebCore::Page::setWindowRect):
  30452. * platform/qt/PathQt.cpp:
  30453. (WebCore::Path::addArc):
  30454. * platform/qt/PlatformKeyboardEventQt.cpp:
  30455. (WebCore::windowsKeyCodeForKeyEvent):
  30456. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  30457. * platform/qt/PlatformMouseEventQt.cpp:
  30458. * platform/qt/RenderThemeQt.cpp:
  30459. (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
  30460. (WebCore::RenderThemeQt::applyTheme):
  30461. (WebCore::RenderThemeQt::paintButton):
  30462. (WebCore::RenderThemeQt::paintTextField):
  30463. * platform/qt/ResourceLoaderCurl.cpp:
  30464. (WebCore::ResourceLoader::assembleResponseHeaders):
  30465. (WebCore::ResourceLoader::retrieveCharset):
  30466. (WebCore::ResourceLoader::receivedResponse):
  30467. * platform/qt/ResourceLoaderManager.cpp:
  30468. (WebCore::ResourceLoaderManager::add):
  30469. * platform/qt/ResourceLoaderManager.h:
  30470. * platform/qt/ScreenQt.cpp:
  30471. * platform/qt/ScrollViewCanvasQt.cpp:
  30472. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  30473. * platform/qt/ScrollViewCanvasQt.h:
  30474. * platform/qt/ScrollViewQt.cpp:
  30475. * platform/qt/SharedTimerQt.cpp:
  30476. * platform/qt/SharedTimerQt.h:
  30477. (WebCore::SharedTimerQt::inst):
  30478. * platform/qt/StringQt.cpp:
  30479. * platform/qt/SystemTimeQt.cpp:
  30480. * platform/qt/TemporaryLinkStubs.cpp:
  30481. * platform/qt/TextEditQt.cpp:
  30482. (WebCore::PlatformTextEdit::PlatformTextEdit):
  30483. (WebCore::PlatformTextEdit::~PlatformTextEdit):
  30484. (WebCore::PlatformTextEdit::setParentWidget):
  30485. * platform/qt/WidgetQt.cpp:
  30486. (WebCore::Widget::setQWidget):
  30487. 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
  30488. Reviewed and landed by Anders.
  30489. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  30490. WebKit should have Qt platform support
  30491. * CMakeLists.txt:
  30492. * platform/qt/FrameQt.cpp: Added.
  30493. (WebCore::doScroll):
  30494. (WebCore::FrameView::isFrameView):
  30495. (WebCore::FrameQt::FrameQt):
  30496. (WebCore::FrameQt::init):
  30497. (WebCore::FrameQt::~FrameQt):
  30498. (WebCore::FrameQt::openURL):
  30499. (WebCore::FrameQt::submitForm):
  30500. (WebCore::FrameQt::urlSelected):
  30501. (WebCore::FrameQt::userAgent):
  30502. (WebCore::FrameQt::runJavaScriptAlert):
  30503. (WebCore::FrameQt::runJavaScriptConfirm):
  30504. (WebCore::FrameQt::locationbarVisible):
  30505. (WebCore::FrameQt::setTitle):
  30506. (WebCore::FrameQt::createFrame):
  30507. (WebCore::FrameQt::passWheelEventToChildWidget):
  30508. (WebCore::FrameQt::passSubframeEventToSubframe):
  30509. (WebCore::FrameQt::objectContentType):
  30510. (WebCore::FrameQt::createPlugin):
  30511. (WebCore::FrameQt::passMouseDownEventToWidget):
  30512. (WebCore::FrameQt::menubarVisible):
  30513. (WebCore::FrameQt::personalbarVisible):
  30514. (WebCore::FrameQt::statusbarVisible):
  30515. (WebCore::FrameQt::toolbarVisible):
  30516. (WebCore::FrameQt::createEmptyDocument):
  30517. (WebCore::FrameQt::markedTextRange):
  30518. (WebCore::FrameQt::incomingReferrer):
  30519. (WebCore::FrameQt::mimeTypeForFileName):
  30520. (WebCore::FrameQt::markMisspellingsInAdjacentWords):
  30521. (WebCore::FrameQt::markMisspellings):
  30522. (WebCore::FrameQt::lastEventIsMouseUp):
  30523. (WebCore::FrameQt::saveDocumentState):
  30524. (WebCore::FrameQt::restoreDocumentState):
  30525. (WebCore::FrameQt::openURLRequest):
  30526. (WebCore::FrameQt::scheduleClose):
  30527. (WebCore::FrameQt::unfocusWindow):
  30528. (WebCore::FrameQt::focusWindow):
  30529. (WebCore::FrameQt::overrideMediaType):
  30530. (WebCore::FrameQt::addMessageToConsole):
  30531. (WebCore::FrameQt::runJavaScriptPrompt):
  30532. (WebCore::FrameQt::getEmbedInstanceForWidget):
  30533. (WebCore::FrameQt::getObjectInstanceForWidget):
  30534. (WebCore::FrameQt::getAppletInstanceForWidget):
  30535. (WebCore::FrameQt::registerCommandForUndo):
  30536. (WebCore::FrameQt::registerCommandForRedo):
  30537. (WebCore::FrameQt::clearUndoRedoOperations):
  30538. (WebCore::FrameQt::issueUndoCommand):
  30539. (WebCore::FrameQt::issueRedoCommand):
  30540. (WebCore::FrameQt::issueCutCommand):
  30541. (WebCore::FrameQt::issueCopyCommand):
  30542. (WebCore::FrameQt::issuePasteCommand):
  30543. (WebCore::FrameQt::issuePasteAndMatchStyleCommand):
  30544. (WebCore::FrameQt::issueTransposeCommand):
  30545. (WebCore::FrameQt::respondToChangedSelection):
  30546. (WebCore::FrameQt::respondToChangedContents):
  30547. (WebCore::FrameQt::shouldChangeSelection):
  30548. (WebCore::FrameQt::partClearedInBegin):
  30549. (WebCore::FrameQt::canGoBackOrForward):
  30550. (WebCore::FrameQt::handledOnloadEvents):
  30551. (WebCore::FrameQt::canPaste):
  30552. (WebCore::FrameQt::canRedo):
  30553. (WebCore::FrameQt::canUndo):
  30554. (WebCore::FrameQt::print):
  30555. (WebCore::FrameQt::shouldInterruptJavaScript):
  30556. (WebCore::FrameQt::keyEvent):
  30557. (WebCore::FrameQt::receivedResponse):
  30558. (WebCore::FrameQt::receivedData):
  30559. (WebCore::FrameQt::receivedAllData):
  30560. (WebCore::FrameQt::setFrameGeometry):
  30561. * platform/qt/FrameQt.h: Added.
  30562. * platform/qt/ScrollViewCanvasQt.cpp: Added.
  30563. (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
  30564. (WebCore::ScrollViewCanvasQt::paintEvent):
  30565. (WebCore::ScrollViewCanvasQt::sizeHint):
  30566. (WebCore::ScrollViewCanvasQt::mouseMoveEvent):
  30567. (WebCore::ScrollViewCanvasQt::mousePressEvent):
  30568. (WebCore::ScrollViewCanvasQt::mouseReleaseEvent):
  30569. (WebCore::ScrollViewCanvasQt::keyPressEvent):
  30570. (WebCore::ScrollViewCanvasQt::keyReleaseEvent):
  30571. (WebCore::ScrollViewCanvasQt::handleKeyEvent):
  30572. * platform/qt/ScrollViewCanvasQt.h: Added.
  30573. * platform/qt/ScrollViewQt.cpp:
  30574. (WebCore::ScrollView::setParentWidget):
  30575. 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
  30576. Reviewed by ap.
  30577. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  30578. WebKit should have Qt platform support
  30579. * platform/qt/FontCacheQt.cpp: Added.
  30580. (WebCore::FontCache::platformInit):
  30581. (WebCore::FontCache::getFontDataForCharacters):
  30582. (WebCore::FontCache::getSimilarFontPlatformData):
  30583. (WebCore::FontCache::getLastResortFallbackFont):
  30584. (WebCore::FontCache::createFontPlatformData):
  30585. * platform/qt/FontDataQt.cpp: Added.
  30586. (WebCore::FontData::platformInit):
  30587. (WebCore::FontData::platformDestroy):
  30588. (WebCore::FontData::smallCapsFontData):
  30589. (WebCore::FontData::containsCharacters):
  30590. (WebCore::FontData::determinePitch):
  30591. (WebCore::FontData::platformWidthForGlyph):
  30592. * platform/qt/FontPlatformData.h: Added.
  30593. * platform/qt/FontPlatformDataQt.cpp: Added.
  30594. (WebCore::FontPlatformData::FontPlatformData):
  30595. (WebCore::FontPlatformData::operator=):
  30596. (WebCore::FontPlatformData::~FontPlatformData):
  30597. (WebCore::FontPlatformData::isFixedPitch):
  30598. (WebCore::FontPlatformData::setFont):
  30599. (WebCore::FontPlatformData::font):
  30600. (WebCore::FontPlatformData::hash):
  30601. (WebCore::FontPlatformData::operator==):
  30602. * platform/qt/FontQt.cpp: Added.
  30603. (WebCore::Font::operator QFont):
  30604. (WebCore::Font::drawGlyphs):
  30605. (WebCore::Font::drawComplexText):
  30606. (WebCore::Font::floatWidthForComplexText):
  30607. * platform/qt/GlyphMapQt.cpp: Added.
  30608. (WebCore::GlyphMap::fillPage):
  30609. 2006-08-24 David Harrison <harrison@apple.com>
  30610. Reinstate r15966 because layout test changes are correct.
  30611. <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
  30612. * editing/TextIterator.cpp:
  30613. (WebCore::TextIterator::advance):
  30614. 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
  30615. Reviewed by ap.
  30616. http://bugs.webkit.org/show_bug.cgi?id=10467
  30617. WebKit should have Qt platform support (Part II)
  30618. Adapt the KCanvas Qt device to Rob's KCanvasMatrix removal.
  30619. Use AffineTransform everywhere instead.
  30620. * kcanvas/device/qt/KRenderingDeviceQt.cpp:
  30621. (WebCore::KRenderingDeviceContextQt::KRenderingDeviceContextQt):
  30622. (WebCore::KRenderingDeviceContextQt::concatCTM):
  30623. (WebCore::KRenderingDeviceContextQt::ctm):
  30624. * kcanvas/device/qt/KRenderingDeviceQt.h:
  30625. * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
  30626. (WebCore::KRenderingPaintServerLinearGradientQt::setup):
  30627. (WebCore::KRenderingPaintServerRadialGradientQt::setup):
  30628. 2006-08-24 Rob Buis <buis@kde.org>
  30629. Reviewed by Darin.
  30630. http://bugs.webkit.org/show_bug.cgi?id=10524
  30631. svg transform: comma delimiting breaks display
  30632. Properly parse transforms which use ',' as seperators.
  30633. * ksvg2/svg/SVGTransformable.cpp:
  30634. (SVGTransformable::parseTransformAttribute):
  30635. 2006-08-23 Darin Adler <darin@apple.com>
  30636. Reviewed by Maciej.
  30637. - added an assert to make it slightly easier to debug the common case of
  30638. calling document() on a node of 0
  30639. * dom/Node.h: (WebCore::Node::document): ASSERT(this).
  30640. 2006-08-23 David Hyatt <hyatt@apple.com>
  30641. Refactor Cairo and CoreGraphics to use platform ifdefs. This patch
  30642. separates the graphics engines from their respective platforms and replaces
  30643. #ifdef PLATFORM(MAC) and PLATFORM(WIN) with PLATFORM(CG) and PLATFORM(CAIRO).
  30644. Reviewed by darin
  30645. * WebCore.xcodeproj/project.pbxproj:
  30646. * platform/AffineTransform.h:
  30647. * platform/Color.h:
  30648. * platform/Cursor.h:
  30649. * platform/FloatPoint.h:
  30650. * platform/FloatRect.h:
  30651. * platform/FloatSize.h:
  30652. * platform/Font.h:
  30653. * platform/FontData.h:
  30654. * platform/GlyphBuffer.h:
  30655. (WebCore::GlyphBuffer::glyphAt):
  30656. (WebCore::GlyphBuffer::advanceAt):
  30657. (WebCore::GlyphBuffer::add):
  30658. * platform/GraphicsContext.h:
  30659. * platform/Image.h:
  30660. * platform/ImageSource.h:
  30661. * platform/IntPoint.h:
  30662. * platform/IntRect.h:
  30663. * platform/IntSize.h:
  30664. * platform/ResourceLoader.h:
  30665. * platform/ResourceLoaderClient.h:
  30666. * platform/Widget.h:
  30667. * platform/cairo/GraphicsContextCairo.cpp:
  30668. * platform/cairo/ImageCairo.cpp:
  30669. * platform/cairo/ImageSourceCairo.cpp:
  30670. * platform/cg/AffineTransformCG.cpp:
  30671. * platform/cg/FloatPointCG.cpp: Added.
  30672. * platform/cg/FloatRectCG.cpp: Added.
  30673. * platform/cg/FloatSizeCG.cpp: Added.
  30674. * platform/cg/GraphicsContextCG.cpp:
  30675. (WebCore::GraphicsContext::GraphicsContext):
  30676. (WebCore::GraphicsContext::~GraphicsContext):
  30677. (WebCore::GraphicsContext::setFocusRingClip):
  30678. (WebCore::GraphicsContext::clearFocusRingClip):
  30679. (WebCore::GraphicsContext::platformContext):
  30680. (WebCore::GraphicsContext::drawRect):
  30681. (WebCore::GraphicsContext::drawLine):
  30682. * platform/cg/GraphicsContextPlatformPrivate.h: Added.
  30683. (WebCore::GraphicsContextPlatformPrivate:::m_cgContext):
  30684. (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
  30685. * platform/cg/ImageCG.cpp: Added.
  30686. (WebCore::Image::drawTiled):
  30687. * platform/cg/ImageSourceCG.cpp: Added.
  30688. * platform/cg/IntPointCG.cpp: Added.
  30689. * platform/cg/IntRectCG.cpp: Added.
  30690. * platform/cg/IntSizeCG.cpp: Added.
  30691. * platform/cg/PDFDocumentImage.cpp: Added.
  30692. (WebCore::PDFDocumentImage::adjustCTM):
  30693. * platform/cg/PDFDocumentImage.h: Added.
  30694. * platform/cg/PathCG.cpp:
  30695. * platform/image-decoders/bmp/BMPImageDecoder.cpp:
  30696. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  30697. * platform/image-decoders/gif/GIFImageReader.cpp:
  30698. * platform/image-decoders/ico/ICOImageDecoder.cpp:
  30699. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  30700. * platform/image-decoders/png/PNGImageDecoder.cpp:
  30701. * platform/image-decoders/xbm/XBMImageDecoder.cpp:
  30702. * platform/mac/FloatPointMac.mm:
  30703. * platform/mac/FloatRectMac.mm:
  30704. * platform/mac/FloatSizeMac.mm:
  30705. * platform/mac/GraphicsContextMac.mm:
  30706. * platform/mac/ImageMac.mm:
  30707. * platform/mac/ImageSourceMac.cpp: Removed.
  30708. * platform/mac/IntPointMac.mm:
  30709. * platform/mac/IntRectMac.mm:
  30710. * platform/mac/IntSizeMac.mm:
  30711. * platform/mac/PDFDocumentImage.h: Removed.
  30712. * platform/mac/PDFDocumentImage.mm: Removed.
  30713. 2006-08-23 David Hyatt <hyatt@apple.com>
  30714. Remove the ifdef for platform scrollbars vs. engine scrollbars until
  30715. engine scrollbars actually exist.
  30716. * platform/ScrollBar.h:
  30717. (WebCore::ScrollBar::hasPlatformScrollBars):
  30718. 2006-08-23 Justin Garcia <justin.garcia@apple.com>
  30719. Reviewed by harrison
  30720. Removed the poorly named next/previousVisiblePosition
  30721. and use next/previousCandidate and next/previousVisuallyDistinctCandidate.
  30722. Removed the unused VisiblePosition::maxOffset()
  30723. * editing/VisiblePosition.cpp:
  30724. (WebCore::VisiblePosition::next):
  30725. (WebCore::VisiblePosition::previous):
  30726. (WebCore::VisiblePosition::canonicalPosition):
  30727. * editing/VisiblePosition.h:
  30728. 2006-08-23 Nikolas Zimmermann <zimmermann@kde.org>
  30729. Reviewed by Alexey. Landed by rwlbuis.
  30730. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  30731. WebKit should have Qt platform support (Part II)
  30732. * platform/qt/GraphicsContextQt.cpp: Added.
  30733. (WebCore::toQtCompositionMode):
  30734. (WebCore::toQtLineCap):
  30735. (WebCore::toQtLineJoin):
  30736. (WebCore::TransparencyLayer::TransparencyLayer):
  30737. (WebCore::TransparencyLayer::cleanup):
  30738. (WebCore::TextShadow::TextShadow):
  30739. (WebCore::TextShadow::isNull):
  30740. (WebCore::GraphicsContextPlatformPrivate::p):
  30741. (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
  30742. (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
  30743. (WebCore::GraphicsContext::GraphicsContext):
  30744. (WebCore::GraphicsContext::~GraphicsContext):
  30745. (WebCore::GraphicsContext::platformContext):
  30746. (WebCore::GraphicsContext::savePlatformState):
  30747. (WebCore::GraphicsContext::restorePlatformState):
  30748. (WebCore::GraphicsContext::drawRect):
  30749. (WebCore::adjustLineToPixelBounderies):
  30750. (WebCore::GraphicsContext::drawLine):
  30751. (WebCore::GraphicsContext::drawEllipse):
  30752. (WebCore::GraphicsContext::drawArc):
  30753. (WebCore::GraphicsContext::drawConvexPolygon):
  30754. (WebCore::GraphicsContext::fillRect):
  30755. (WebCore::GraphicsContext::addClip):
  30756. (WebCore::GraphicsContext::drawFocusRing):
  30757. (WebCore::GraphicsContext::setFocusRingClip):
  30758. (WebCore::GraphicsContext::clearFocusRingClip):
  30759. (WebCore::GraphicsContext::drawLineForText):
  30760. (WebCore::GraphicsContext::drawLineForMisspelling):
  30761. (WebCore::GraphicsContext::roundToDevicePixels):
  30762. (WebCore::GraphicsContext::setShadow):
  30763. (WebCore::GraphicsContext::clearShadow):
  30764. (WebCore::GraphicsContext::beginTransparencyLayer):
  30765. (WebCore::GraphicsContext::endTransparencyLayer):
  30766. (WebCore::GraphicsContext::clearRect):
  30767. (WebCore::GraphicsContext::strokeRect):
  30768. (WebCore::GraphicsContext::setLineWidth):
  30769. (WebCore::GraphicsContext::setLineCap):
  30770. (WebCore::GraphicsContext::setLineJoin):
  30771. (WebCore::GraphicsContext::setMiterLimit):
  30772. (WebCore::GraphicsContext::setAlpha):
  30773. (WebCore::GraphicsContext::setCompositeOperation):
  30774. (WebCore::GraphicsContext::clip):
  30775. (WebCore::GraphicsContext::translate):
  30776. (WebCore::GraphicsContext::rotate):
  30777. (WebCore::GraphicsContext::scale):
  30778. (WebCore::GraphicsContext::addInnerRoundedRectClip):
  30779. (WebCore::GraphicsContext::addRoundedRectClip):
  30780. (WebCore::GraphicsContext::createRenderingDeviceContext):
  30781. * platform/qt/ImageQt.cpp: Added.
  30782. (WebCore::FrameData::clear):
  30783. (WebCore::Image::initNativeData):
  30784. (WebCore::Image::destroyNativeData):
  30785. (WebCore::Image::invalidateNativeData):
  30786. (WebCore::Image::loadResource):
  30787. (WebCore::Image::supportsType):
  30788. (WebCore::Image::draw):
  30789. (WebCore::Image::drawTiled):
  30790. (WebCore::Image::checkForSolidColor):
  30791. * platform/qt/ImageSourceQt.cpp: Added.
  30792. (WebCore::createDecoder):
  30793. (WebCore::ImageSource::ImageSource):
  30794. (WebCore::ImageSource::~ImageSource):
  30795. (WebCore::ImageSource::initialized):
  30796. (WebCore::ImageSource::setData):
  30797. (WebCore::ImageSource::isSizeAvailable):
  30798. (WebCore::ImageSource::size):
  30799. (WebCore::ImageSource::repetitionCount):
  30800. (WebCore::ImageSource::frameCount):
  30801. (WebCore::ImageSource::createFrameAtIndex):
  30802. (WebCore::ImageSource::frameDurationAtIndex):
  30803. (WebCore::ImageSource::frameHasAlphaAtIndex):
  30804. 2006-08-23 Brady Eidson <beidson@apple.com>
  30805. Reviewed by Adele
  30806. Moved default URL icon from WebKit to WebCore
  30807. * Resources/urlIcon.tiff: Added.
  30808. * WebCore.xcodeproj/project.pbxproj:
  30809. * loader/icon/IconDataCache.cpp:
  30810. (WebCore::IconDataCache::loadImageFromResource):
  30811. * loader/icon/IconDataCache.h:
  30812. * loader/icon/IconDatabase.cpp:
  30813. (WebCore::IconDatabase::IconDatabase):
  30814. (WebCore::IconDatabase::defaultIcon):
  30815. * loader/icon/IconDatabase.h:
  30816. 2006-08-23 Adam Roben <aroben@apple.com>
  30817. Reviewed by Darin, Adele.
  30818. Some popup refactoring/cleanup.
  30819. * html/HTMLSelectElement.cpp:
  30820. (WebCore::HTMLSelectElement::defaultEventHandler):
  30821. * rendering/RenderMenuList.cpp:
  30822. (WebCore::RenderMenuList::RenderMenuList):
  30823. (WebCore::RenderMenuList::~RenderMenuList):
  30824. (WebCore::RenderMenuList::showPopup):
  30825. (WebCore::RenderMenuList::hidePopup):
  30826. * rendering/RenderMenuList.h:
  30827. (WebCore::RenderMenuList::popup):
  30828. (WebCore::RenderMenuList::popupIsVisible):
  30829. * rendering/RenderPopupMenu.h:
  30830. * rendering/RenderPopupMenuMac.h:
  30831. (WebCore::RenderPopupMenuMac::hidePopup):
  30832. 2006-08-23 Nikolas Zimmermann <zimmermann@kde.org>
  30833. Reviewed by Anders. Landed by rwlbuis.
  30834. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  30835. WebKit should have Qt platform support
  30836. * platform/qt/ResourceLoaderCurl.cpp: Added.
  30837. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  30838. (WebCore::ResourceLoader::~ResourceLoader):
  30839. (WebCore::ResourceLoader::start):
  30840. (WebCore::ResourceLoader::cancel):
  30841. (WebCore::ResourceLoader::assembleResponseHeaders):
  30842. (WebCore::ResourceLoader::retrieveCharset):
  30843. (WebCore::ResourceLoader::receivedResponse):
  30844. * platform/qt/ResourceLoaderManager.cpp: Added.
  30845. (WebCore::ResourceLoaderManager::ResourceLoaderManager):
  30846. (WebCore::ResourceLoaderManager::get):
  30847. (WebCore::ResourceLoaderManager::useSimpleTransfer):
  30848. (WebCore::writeCallback):
  30849. (WebCore::headerCallback):
  30850. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  30851. (WebCore::ResourceLoaderManager::remove):
  30852. (WebCore::ResourceLoaderManager::add):
  30853. (WebCore::ResourceLoaderManager::cancel):
  30854. * platform/qt/ResourceLoaderManager.h: Added.
  30855. * platform/qt/StringQt.cpp: Added.
  30856. (WebCore::String::String):
  30857. (WebCore::String::operator QString):
  30858. (WebCore::DeprecatedString::operator QString):
  30859. 2006-08-23 Brady Eidson <beidson@apple.com>
  30860. Reviewed by Maciej
  30861. Added escapeSQLString() - a helper to escape strings to be used in textual SQL queries
  30862. * WebCore.xcodeproj/project.pbxproj: Reordered some files
  30863. * loader/icon/IconDataCache.cpp: Use the new escapeSQLString()
  30864. (WebCore::IconDataCache::writeToDatabase):
  30865. * loader/icon/IconDatabase.cpp: Use the new escapeSQLString() throughout
  30866. (WebCore::IconDatabase::retainIconURL):
  30867. (WebCore::IconDatabase::releaseIconURL):
  30868. (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
  30869. (WebCore::IconDatabase::establishIconIDForIconURL):
  30870. (WebCore::imageDataForIconURLQuery):
  30871. (WebCore::timeStampForIconURLQuery):
  30872. (WebCore::iconURLForPageURLQuery):
  30873. (WebCore::forgetPageURLQuery):
  30874. (WebCore::setIconIDForPageURLQuery):
  30875. (WebCore::getIconIDForIconURLQuery):
  30876. (WebCore::addIconForIconURLQuery):
  30877. (WebCore::hasIconForIconURLQuery):
  30878. * loader/icon/SQLDatabase.h:
  30879. (WebCore::escapeSQLString): Added
  30880. 2006-08-22 Maciej Stachowiak <mjs@apple.com>
  30881. Reviewed by Brady.
  30882. - assorted style cleanup of icon loader code:
  30883. - wrapped all implementation files in namespace WebCore {} instead of "using namespace WebCore;" at top
  30884. - split headers to be one per class, to match impl files
  30885. - made files that are purely local in IconDatabase.cpp static
  30886. - make each impl file include config.h as first header (and no config.h includes in other headers)
  30887. - avoid multiple copies of Vector<unsigned char> for image data
  30888. * WebCore.xcodeproj/project.pbxproj:
  30889. * loader/icon/IconDataCache.cpp:
  30890. * loader/icon/IconDataCache.h: Added.
  30891. (WebCore::):
  30892. (WebCore::IconDataCache::getTimestamp):
  30893. (WebCore::IconDataCache::setTimestamp):
  30894. (WebCore::IconDataCache::getIconURL):
  30895. * loader/icon/IconDatabase.cpp:
  30896. (WebCore::IconDatabase::imageDataForIconURL):
  30897. (WebCore::IconDatabase::iconForPageURL):
  30898. (WebCore::pageURLTableIsEmptyQuery):
  30899. (WebCore::imageDataForIconURLQuery):
  30900. (WebCore::timeStampForIconURLQuery):
  30901. (WebCore::iconURLForPageURLQuery):
  30902. (WebCore::forgetPageURLQuery):
  30903. (WebCore::setIconIDForPageURLQuery):
  30904. (WebCore::getIconIDForIconURLQuery):
  30905. (WebCore::addIconForIconURLQuery):
  30906. (WebCore::hasIconForIconURLQuery):
  30907. * loader/icon/IconDatabase.h:
  30908. * loader/icon/SQLDatabase.cpp:
  30909. * loader/icon/SQLDatabase.h:
  30910. * loader/icon/SQLStatement.cpp:
  30911. (WebCore::SQLStatement::getColumnBlobAsVector):
  30912. * loader/icon/SQLStatement.h: Added.
  30913. (WebCore::SQLStatement::isPrepared):
  30914. (WebCore::SQLStatement::prepareAndStep):
  30915. (WebCore::SQLStatement::lastError):
  30916. (WebCore::SQLStatement::lastErrorMsg):
  30917. * loader/icon/SQLTransaction.cpp:
  30918. * loader/icon/SQLTransaction.h: Added.
  30919. 2006-08-22 Brady Eidson <beidson@apple.com>
  30920. Reviewed by Maciej
  30921. The role of the SiteIcon is now the original intention - to be a cache of data relating to an Icon
  30922. As such, I'm renaming it to IconDataCache.
  30923. Also, the IconDatabase has to manually set the image data on the IconDataCache and also sets the
  30924. TimeStamp when an icon is created or the data is changed.
  30925. IconDataCache now has a method to write itself *to* a given database, instead of read itself from one.
  30926. IconDatabase schema changes to have the timestamp set manually instead of via a trigger.
  30927. The overall purpose of this change is to cache the timestamp, killing off a very common SQL query.
  30928. * WebCore.xcodeproj/project.pbxproj: Renamed a file
  30929. * loader/icon/IconDataCache.cpp: Added.
  30930. (IconDataCache::IconDataCache):
  30931. (IconDataCache::getImage): Now either returns the stored image, or 0 - no attempt to grab data
  30932. (IconDataCache::manuallySetImageData): Delete the old image and create the new one
  30933. (IconDataCache::writeToDatabase): Write the current iconURL, data, and timestamp to the given DB
  30934. (IconDataCache::imageDataStatus): Determine if an IconDataCache is new without data versus actually having null data
  30935. * loader/icon/IconDatabase.cpp:
  30936. (WebCore::IconDatabase::createDatabaseTables): Changed DB schema to version 5 (hopefully the final version)
  30937. (WebCore::IconDatabase::iconForPageURL):
  30938. (WebCore::IconDatabase::isIconExpiredForIconURL): Uses the timestamp in the IconDataCache object instead of always querying
  30939. (WebCore::IconDatabase::getOrCreateIconDataCache): Added, to handle creation of new IconDataCache when appropriate
  30940. (WebCore::IconDatabase::setIconDataForIconURL): Puts data in SiteIcon then marks it for a future write
  30941. (WebCore::IconDatabase::syncDatabase): Now syncs SiteIconsPendingUpdate
  30942. * loader/icon/IconDatabase.h:
  30943. (WebCore::IconDataCache::getTimestamp):
  30944. (WebCore::IconDataCache::setTimestamp):
  30945. * loader/icon/SiteIcon.cpp: Removed.
  30946. 2006-08-22 Justin Garcia <justin.garcia@apple.com>
  30947. Reviewed by harrison
  30948. <http://bugs.webkit.org/show_bug.cgi?id=10449>
  30949. REGRESSION(r15918): drag-into-marker.html failing
  30950. * editing/ReplaceSelectionCommand.cpp:
  30951. (WebCore::ReplaceSelectionCommand::doApply): Don't avoid nesting
  30952. in a list item.
  30953. 2006-08-22 Brady Eidson <beidson@apple.com>
  30954. Reviewed by Kevin
  30955. Added a check in getTIFFRepresentation to not proceed if the frame count is zero
  30956. This is an error condition that was handled gracefully before - in certain circumstances
  30957. the call to CGImageDestinationCreateWithData will spam the Console if it is passed null/empty data
  30958. or invalid data. This small change bails out before that call if that call will definitely fail
  30959. * platform/mac/ImageMac.mm:
  30960. (WebCore::Image::getTIFFRepresentation):
  30961. 2006-08-22 David Harrison <harrison@apple.com>
  30962. Backed out my last change (r15966) because it broke lots of layout tests.
  30963. * editing/TextIterator.cpp:
  30964. (WebCore::TextIterator::advance):
  30965. 2006-08-22 Maciej Stachowiak <mjs@apple.com>
  30966. Reviewed by Anders.
  30967. - added some SPI indirections to support the following in WebKit/Loader:
  30968. - pull more WebDataSource code into WebFrameLoader
  30969. - make WebMainResourceLoader not depend on WebKit or on SPI
  30970. * WebCore.exp:
  30971. * WebCore.xcodeproj/project.pbxproj:
  30972. * platform/mac/WebCoreSystemInterface.h:
  30973. * platform/mac/WebCoreSystemInterface.mm:
  30974. 2006-08-22 Justin Garcia <justin.garcia@apple.com>
  30975. Reviewed by harrison
  30976. <rdar://problem/4052343&4052343&4426622> Mail hung on paste text
  30977. * editing/ReplaceSelectionCommand.cpp:
  30978. (WebCore::isInterchangeNewlineNode):
  30979. (WebCore::isInterchangeConvertedSpaceSpan):
  30980. (WebCore::ReplacementFragment::ReplacementFragment):
  30981. (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Compute the redundant inheritable styles and
  30982. remove them and remove style nodes and style spans which were only contributing redundant styles.
  30983. (WebCore::ReplaceSelectionCommand::doApply):
  30984. * editing/ReplaceSelectionCommand.h:
  30985. 2006-08-22 David Harrison <harrison@apple.com>
  30986. Reviewed by Darin.
  30987. <rdar://problem/4077676> Inline hole line adheres to the Japanese characters in inline hole
  30988. This happens because the underline is always 2 pixels thick, and placed 3 pixels above the bottom of the text box.
  30989. Test case added:
  30990. * manual-tests/inline-input-marking.html: Added.
  30991. Check that underlining of the inline input hole does not obscure the glyphs.
  30992. * rendering/InlineTextBox.cpp:
  30993. (WebCore::InlineTextBox::paintMarkedTextUnderline):
  30994. Position underline at bottom of text box.
  30995. Height of underline is reduced to 1 px when font's descent is less than or equal to 2 px.
  30996. 2006-08-22 Rob Buis <buis@kde.org>
  30997. Reviewed by Eric.
  30998. http://bugs.webkit.org/show_bug.cgi?id=10402
  30999. REPRO: SVG crashes inside gradient code
  31000. Make sure we do not try to update the canvas resource/gradient paintserver when it is not yet built.
  31001. * ksvg2/svg/SVGGradientElement.cpp:
  31002. (SVGGradientElement::notifyAttributeChange):
  31003. (SVGGradientElement::resourceNotification):
  31004. 2006-08-22 David Harrison <harrison@apple.com>
  31005. Reviewed by John.
  31006. <rdar://problem/4523606> Represent heading elements in AXAttributedStringForTextMarkerRange
  31007. * bridge/mac/WebCoreAXObject.mm:
  31008. (headingLevel):
  31009. (-[WebCoreAXObject headingLevel]):
  31010. (-[WebCoreAXObject isHeading]):
  31011. New. Heading level is per the tag (h1 == 1, h2 == 2, etc.)
  31012. (-[WebCoreAXObject role]):
  31013. (-[WebCoreAXObject roleDescription]):
  31014. Add role and roleDescription for headings.
  31015. (-[WebCoreAXObject value]):
  31016. Value is the headingLevel.
  31017. (AXAttributeStringSetHeadingLevel):
  31018. (AXAttributedStringAppendText):
  31019. Put text's heading level (if applicable) in the attributes.
  31020. 2006-08-22 David Harrison <harrison@apple.com>
  31021. Reviewed by John.
  31022. <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
  31023. Treat controls as replaced elements, so that AXAttributedStringForTextMarkerRange will, too.
  31024. * editing/TextIterator.cpp:
  31025. (WebCore::TextIterator::advance):
  31026. Include controls.
  31027. 2006-08-22 David Harrison <harrison@apple.com>
  31028. Reviewed by Maciej.
  31029. <rdar://problem/4407336> Some non-text elements return AXTextMarkerRangeForUIElement with equal start and end marker
  31030. * bridge/mac/WebCoreAXObject.mm:
  31031. (-[WebCoreAXObject textMarkerRange]):
  31032. Use 0 and maxDeepOffset(), instead of caretMinOffset() and caretMaxRenderedOffset().
  31033. Check for VisiblePositions being equal. If so, adjust end one to its next().
  31034. That happens with, e.g., buttons.
  31035. 2006-08-22 Rob Buis <buis@kde.org>
  31036. Reviewed by Eric.
  31037. http://bugs.webkit.org/show_bug.cgi?id=10491
  31038. KCanvasMatrix removal
  31039. Remove KCanvasMatrix from project, using AffineTransform instead.
  31040. * WebCore.xcodeproj/project.pbxproj:
  31041. * kcanvas/KCanvasMatrix.cpp: Removed.
  31042. * kcanvas/KCanvasMatrix.h: Removed.
  31043. * kcanvas/KCanvasResources.cpp:
  31044. (WebCore::KCanvasMarker::draw):
  31045. * kcanvas/KCanvasResources.h:
  31046. * kcanvas/RenderForeignObject.cpp:
  31047. * kcanvas/RenderPath.h:
  31048. * kcanvas/RenderSVGContainer.cpp:
  31049. (WebCore::RenderSVGContainer::viewportTransform):
  31050. (WebCore::RenderSVGContainer::getAspectRatio):
  31051. * kcanvas/RenderSVGContainer.h:
  31052. * kcanvas/RenderSVGText.cpp:
  31053. * kcanvas/device/KRenderingDevice.h:
  31054. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  31055. (WebCore::KRenderingPaintServerGradient::gradientTransform):
  31056. (WebCore::KRenderingPaintServerGradient::setGradientTransform):
  31057. (WebCore::KRenderingPaintServerGradient::externalRepresentation):
  31058. * kcanvas/device/KRenderingPaintServerGradient.h:
  31059. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  31060. (WebCore::KRenderingPaintServerPattern::patternTransform):
  31061. (WebCore::KRenderingPaintServerPattern::setPatternTransform):
  31062. (WebCore::KRenderingPaintServerPattern::externalRepresentation):
  31063. * kcanvas/device/KRenderingPaintServerPattern.h:
  31064. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  31065. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  31066. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  31067. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  31068. (WebCore::KRenderingDeviceContextQuartz::concatCTM):
  31069. (WebCore::KRenderingDeviceContextQuartz::ctm):
  31070. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  31071. (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
  31072. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  31073. (WebCore::KRenderingPaintServerPatternQuartz::setup):
  31074. * kcanvas/device/quartz/QuartzSupport.mm:
  31075. * ksvg2/misc/KCanvasRenderingStyle.h:
  31076. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  31077. * ksvg2/svg/SVGAnimateTransformElement.h:
  31078. * ksvg2/svg/SVGLinearGradientElement.cpp:
  31079. (SVGLinearGradientElement::buildGradient):
  31080. * ksvg2/svg/SVGPatternElement.cpp:
  31081. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  31082. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  31083. (WebCore::SVGPatternElement::notifyAttributeChange):
  31084. * ksvg2/svg/SVGPatternElement.h:
  31085. * ksvg2/svg/SVGRadialGradientElement.cpp:
  31086. (WebCore::SVGRadialGradientElement::buildGradient):
  31087. 2006-08-22 Rob Buis <buis@kde.org>
  31088. Reviewed by Eric.
  31089. http://bugs.webkit.org/show_bug.cgi?id=10405
  31090. REPRO: SVG Maze crashes in RenderPath code
  31091. Do not render a path when it is empty so maze15.svg does not crash anymore.
  31092. Also get rid of a runtime warning issued by CGContextGetPathBoundingBox.
  31093. * kcanvas/RenderPath.cpp:
  31094. (WebCore::RenderPath::paint):
  31095. * kcanvas/device/quartz/KCanvasPathQuartz.mm:
  31096. (WebCore::KCanvasPathQuartz::strokeBoundingBox):
  31097. 2006-08-21 Brady Eidson <beidson@apple.com>
  31098. Reviewed by Maciej
  31099. <rdar://4690949> - New IconDB: Need to prune unretained icons on startup
  31100. Added a flag to track whether or not the initial pruning has taken place on startup
  31101. If that flag is not set, IconURL retain counts will be tracked in a temporary db table
  31102. in addition to the in-memory hash. Then when the timer fires after initial retains
  31103. are complete, we prune those icons not in the retain table, prune dangling PageURL
  31104. references, delete the temporary table, and set the flag - and carry on as normal
  31105. * loader/icon/IconDatabase.cpp:
  31106. (WebCore::IconDatabase::IconDatabase): initialize the flag
  31107. (WebCore::IconDatabase::open): changed the schema of the temporary table
  31108. (WebCore::IconDatabase::retainIconURL): store the icon retain to the temp table if starting up
  31109. (WebCore::IconDatabase::releaseIconURL): ditto
  31110. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): remove all icons *not* in the retain table, then
  31111. wipe all the PageURLs who no longer point to a valid IconURL
  31112. * loader/icon/IconDatabase.h:
  31113. 2006-08-21 Alexey Proskuryakov <ap@nypop.com>
  31114. Reviewed by Eric.
  31115. http://bugs.webkit.org/show_bug.cgi?id=10419
  31116. XSLTProcessor transformToFragment fails because of an XML declaration
  31117. Test: fast/xsl/transformToFragment-XML-declaration.html
  31118. * xml/XSLTProcessor.cpp:
  31119. (WebCore::XSLTProcessor::transformToString): Always inhibit XML declaration printout.
  31120. 2006-08-21 David Harrison <harrison@apple.com>
  31121. Reviewed by Justin.
  31122. <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
  31123. Added support for the NSAccessibilityMisspelledTextAttribute.
  31124. Test cases added: None. Manual AX testing is way too awkward, and automated testing
  31125. is not possible. See following bug...
  31126. <rdar://problem/4256882> Need automated testing support for accessibility APIs
  31127. * bridge/mac/WebCoreAXObject.mm:
  31128. Lots of trivial formatting in many methods.
  31129. (-[WebCoreAXObject accessibilityAttributeValue:]):
  31130. Fixed AXStartTextMarker and AXEndTextMarker to use startOfDocument and endOfDocument, instead of
  31131. of positionForCoordinates. I had seen erroneous endOfDocument results while testing the spelling
  31132. attribute.
  31133. (WebCore::AXAttributeStringSetSpelling):
  31134. New. Adds the NSAccessibilityMisspelledTextAttribute for misspelled words.
  31135. (-[WebCoreAXObject AXAttributedStringAppendText:]):
  31136. Added call to AXAttributeStringSetSpelling.
  31137. * editing/visible_units.cpp:
  31138. (WebCore::startOfDocument):
  31139. (WebCore::endOfDocument):
  31140. Added for AXStartTextMarker/AXEndTextMarker fix, these forms of the familiar functions take a Node*,
  31141. so a previously existing VisiblePosition is not required.
  31142. * editing/visible_units.h:
  31143. Declare new forms of startOfDocument and endOfDocument.
  31144. 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
  31145. Reviewed by Eric.
  31146. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  31147. WebKit should have Qt platform support
  31148. * platform/qt/TemporaryLinkStubs.cpp: Added.
  31149. (JavaAppletWidget::JavaAppletWidget):
  31150. (Font::selectionRectForComplexText):
  31151. (Font::offsetForPositionForComplexText):
  31152. (WebCore::refreshPlugins):
  31153. (WebCore::focusRingColor):
  31154. (Image::drawTiled):
  31155. (WebCore::TextField::selectAll):
  31156. (WebCore::TextField::addSearchResult):
  31157. (WebCore::TextField::selectionStart):
  31158. (WebCore::TextField::hasSelectedText):
  31159. (WebCore::TextField::selectedText):
  31160. (WebCore::TextField::setAutoSaveName):
  31161. (WebCore::TextField::checksDescendantsForFocus):
  31162. (WebCore::TextField::setSelection):
  31163. (WebCore::TextField::setMaxResults):
  31164. (WebCore::TextField::edited):
  31165. (WebCore::TextField::focusPolicy):
  31166. (WebCore::TextField::TextField):
  31167. (WebCore::TextField::~TextField):
  31168. (WebCore::TextField::setFont):
  31169. (WebCore::TextField::setAlignment):
  31170. (WebCore::TextField::setWritingDirection):
  31171. (WebCore::TextField::maxLength):
  31172. (WebCore::TextField::setMaxLength):
  31173. (WebCore::TextField::text):
  31174. (WebCore::TextField::setText):
  31175. (WebCore::TextField::cursorPosition):
  31176. (WebCore::TextField::setCursorPosition):
  31177. (WebCore::TextField::setEdited):
  31178. (WebCore::TextField::setReadOnly):
  31179. (WebCore::TextField::setPlaceholderString):
  31180. (WebCore::TextField::setColors):
  31181. (WebCore::TextField::sizeForCharacterWidth):
  31182. (WebCore::TextField::baselinePosition):
  31183. (WebCore::TextField::setLiveSearch):
  31184. (WebCore::Slider::Slider):
  31185. (WebCore::Slider::sizeHint):
  31186. (WebCore::Slider::~Slider):
  31187. (WebCore::Slider::setValue):
  31188. (WebCore::Slider::setMaxValue):
  31189. (WebCore::Slider::setMinValue):
  31190. (WebCore::Slider::setFont):
  31191. (WebCore::Slider::value):
  31192. (WebCore::Slider::focusPolicy):
  31193. (WebCore::ScrollBar::ScrollBar):
  31194. (WebCore::ScrollBar::setSteps):
  31195. (WebCore::ScrollBar::scroll):
  31196. (WebCore::ScrollBar::setValue):
  31197. (WebCore::ScrollBar::setKnobProportion):
  31198. (WebCore::PlatformScrollBar::PlatformScrollBar):
  31199. (WebCore::PlatformScrollBar::~PlatformScrollBar):
  31200. (WebCore::PlatformScrollBar::width):
  31201. (WebCore::PlatformScrollBar::height):
  31202. (WebCore::PlatformScrollBar::setEnabled):
  31203. (WebCore::PlatformScrollBar::paint):
  31204. (WebCore::PlatformScrollBar::setScrollBarValue):
  31205. (WebCore::PlatformScrollBar::setKnobProportion):
  31206. (WebCore::PlatformScrollBar::setRect):
  31207. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  31208. (WebCore::CheckCacheObjectStatus):
  31209. (WebCore::CheckIfReloading):
  31210. (WebCore::ServeSynchronousRequest):
  31211. (WebCore::historyContains):
  31212. (WebCore::submitButtonDefaultLabel):
  31213. (WebCore::inputElementAltText):
  31214. (WebCore::resetButtonDefaultLabel):
  31215. (WebCore::defaultLanguage):
  31216. (WebCore::findNextSentenceFromIndex):
  31217. (WebCore::findSentenceBoundary):
  31218. (WebCore::findNextWordFromIndex):
  31219. (WebCore::findWordBoundary):
  31220. (Frame::setNeedsReapplyStyles):
  31221. (WebCore::screenDepthPerComponent):
  31222. (WebCore::screenIsMonochrome):
  31223. (WebCore::searchableIndexIntroduction):
  31224. (WebCore::setFocusRingColorChangeFunction):
  31225. (FrameView::updateBorder):
  31226. (loadResourceIntoArray):
  31227. (PlugInInfoStore::createPluginInfoForPluginAtIndex):
  31228. (PlugInInfoStore::pluginCount):
  31229. (WebCore::PlugInInfoStore::supportsMIMEType):
  31230. (FileButton::FileButton):
  31231. (FileButton::click):
  31232. (FileButton::sizeForCharacterWidth):
  31233. (FileButton::focusPolicy):
  31234. (FileButton::frameGeometry):
  31235. (FileButton::setFilename):
  31236. (FileButton::baselinePosition):
  31237. (FileButton::setFrameGeometry):
  31238. (FileButton::setDisabled):
  31239. (WebCore::supportedKeySizes):
  31240. (WebCore::signedPublicKeyAndChallengeString):
  31241. 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
  31242. Reviewed by Maciej.
  31243. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  31244. WebKit should have Qt platform support
  31245. * platform/qt/CursorQt.cpp: Added.
  31246. (WebCore::Cursor::Cursor):
  31247. (WebCore::Cursor::~Cursor):
  31248. (WebCore::Cursor::operator=):
  31249. (WebCore::Cursors::Cursors::self):
  31250. (WebCore::moveCursor):
  31251. (WebCore::crossCursor):
  31252. (WebCore::handCursor):
  31253. (WebCore::iBeamCursor):
  31254. (WebCore::waitCursor):
  31255. (WebCore::helpCursor):
  31256. (WebCore::eastResizeCursor):
  31257. (WebCore::northResizeCursor):
  31258. (WebCore::northEastResizeCursor):
  31259. (WebCore::northWestResizeCursor):
  31260. (WebCore::southResizeCursor):
  31261. (WebCore::southEastResizeCursor):
  31262. (WebCore::southWestResizeCursor):
  31263. (WebCore::westResizeCursor):
  31264. (WebCore::northSouthResizeCursor):
  31265. (WebCore::eastWestResizeCursor):
  31266. (WebCore::northEastSouthWestResizeCursor):
  31267. (WebCore::northWestSouthEastResizeCursor):
  31268. (WebCore::columnResizeCursor):
  31269. (WebCore::rowResizeCursor):
  31270. * platform/qt/RenderThemeQt.cpp: Added.
  31271. (WebCore::RenderThemeQt::RenderThemeQt):
  31272. (WebCore::RenderThemeQt::supportsHover):
  31273. (WebCore::RenderThemeQt::paintCheckbox):
  31274. (WebCore::RenderThemeQt::paintRadio):
  31275. (WebCore::theme):
  31276. (WebCore::RenderThemeQt::isControlStyled):
  31277. (WebCore::RenderThemeQt::controlSupportsTints):
  31278. (WebCore::RenderThemeQt::systemFont):
  31279. (WebCore::RenderThemeQt::createPopupMenu):
  31280. (WebCore::RenderThemeQt::addIntrinsicMargins):
  31281. (WebCore::RenderThemeQt::stylePainterAndWidgetForPaintInfo):
  31282. (WebCore::RenderThemeQt::setCheckboxSize):
  31283. (WebCore::RenderThemeQt::setRadioSize):
  31284. (WebCore::RenderThemeQt::supportsFocus):
  31285. (WebCore::RenderThemeQt::applyTheme):
  31286. (WebCore::RenderThemeQt::adjustButtonStyle):
  31287. (WebCore::RenderThemeQt::paintButton):
  31288. (WebCore::RenderThemeQt::adjustTextFieldStyle):
  31289. (WebCore::RenderThemeQt::paintTextField):
  31290. 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
  31291. Reviewed by Maciej.
  31292. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
  31293. WebKit should have Qt platform support
  31294. * platform/qt/SharedTimerQt.cpp: Added.
  31295. (WebCore:setSharedTimerFiredFunction):
  31296. (WebCore::setSharedTimerFireTime):
  31297. (WebCore::stopSharedTimer):
  31298. * platform/qt/SharedTimerQt.h: Added.
  31299. (WebCore::SharedTimerQt::SharedTimerQt):
  31300. (WebCore::SharedTimerQt::~SharedTimerQt):
  31301. (WebCore::SharedTimerQt::inst):
  31302. (WebCore::SharedTimerQt::fire):
  31303. * platform/qt/SystemTimeQt.cpp: Added.
  31304. (WebCore::currentTime):
  31305. 2006-08-21 Brady Eidson <beidson@apple.com>
  31306. Reviewed by John
  31307. -Defers writing to the database via a timer and handles starting the timer
  31308. intelligently
  31309. * loader/icon/IconDatabase.cpp:
  31310. (WebCore::IconDatabase::IconDatabase):
  31311. (WebCore::IconDatabase::open): Don't start the update timer by default
  31312. (WebCore::IconDatabase::close): Call syncDatabase()
  31313. (WebCore::IconDatabase::setPrivateBrowsingEnabled): Call syncDatabase()
  31314. (WebCore::IconDatabase::setIconURLForPageURL): Setup the cached url, but defer the DB call
  31315. (WebCore::IconDatabase::setIconURLForPageURLInDatabase): Actually commit the url to the DB
  31316. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
  31317. (WebCore::IconDatabase::updateDatabase): The updateTimer calls this, which just calls syncDatabase()
  31318. (WebCore::IconDatabase::syncDatabase): Add and remove pending pageURLs and iconURLs, and stop the updateTimer
  31319. * loader/icon/IconDatabase.h:
  31320. 2006-08-21 Alexey Proskuryakov <ap@nypop.com>
  31321. Reviewed by Eric.
  31322. - http://bugs.webkit.org/show_bug.cgi?id=10429
  31323. XSLTProcessor.transformToFragment crashes if the owner document is empty
  31324. Test: fast/js/xslt-fragment-in-empty-doc.html
  31325. * dom/XMLTokenizer.cpp:
  31326. (WebCore::XMLTokenizer::XMLTokenizer): Don't iterate over the element stack if it's empty.
  31327. 2006-08-21 Brady Eidson <beidson@apple.com>
  31328. Reviewed by Anders
  31329. -Added timer-based, deferred deletion of database records - PageURLs and Icons handled seperately
  31330. In the near future, we'll also have timer-based deferred *addition* of database records
  31331. -Keep retain/release counts in a hash instead of a DB table
  31332. -Keep only one hash record for the SiteIcons
  31333. -Renamed some methods for clarity
  31334. * bridge/mac/WebCoreIconDatabaseBridge.h: Renamed method for clarity
  31335. * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
  31336. (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]): Ditto
  31337. * loader/icon/IconDatabase.cpp:
  31338. (WebCore::IconDatabase::IconDatabase):
  31339. (WebCore::IconDatabase::open): Added new timer setup
  31340. (WebCore::IconDatabase::iconForPageURL): Only work with one hash of the SiteIcons
  31341. (WebCore::IconDatabase::retainIconForPageURL): Keep count in a hash
  31342. (WebCore::IconDatabase::releaseIconForPageURL): Keep count in a hash, use deferred deletion
  31343. (WebCore::IconDatabase::retainIconURL): Added
  31344. (WebCore::IconDatabase::releaseIconURL): Added
  31345. (WebCore::IconDatabase::forgetPageURL): Added
  31346. (WebCore::IconDatabase::isIconURLRetained): New and improved simplicity
  31347. (WebCore::IconDatabase::setIconDataForIconURL): Cleanup
  31348. (WebCore::IconDatabase::setIconURLForPageURL):
  31349. (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Renamed
  31350. (WebCore::IconDatabase::pruneIconsPendingDeletion): Added
  31351. (WebCore::IconDatabase::hasEntryForIconURL): Renamed for clarity
  31352. * loader/icon/IconDatabase.h: Added multiple stuffs
  31353. 2006-08-21 Brady Eidson <beidson@apple.com>
  31354. Reviewed by Maciej's rubberstamp
  31355. Removed stale file references from the Xcode.proj
  31356. * WebCore.xcodeproj/project.pbxproj:
  31357. 2006-08-20 Nikolas Zimmermann <zimmermann@kde.org>
  31358. Reviewed by Maciej. Landed by rwlbuis.
  31359. Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10463
  31360. WebKit should have Qt platform support
  31361. Removing HelperQt.h usage by creating appropriate operators
  31362. constructor in some of the platform classes, as suggested by Darin.
  31363. * CMakeLists.txt:
  31364. * platform/DeprecatedString.h:
  31365. * platform/Font.h:
  31366. * platform/PlatformString.h:
  31367. * platform/qt/ComboBoxQt.cpp:
  31368. (WebCore::PlatformComboBox::appendItem):
  31369. (WebCore::PlatformComboBox::appendGroupLabel):
  31370. (WebCore::PlatformComboBox::setFont):
  31371. * platform/qt/LineEditQt.cpp:
  31372. (WebCore::PlatformLineEdit::setFont):
  31373. (WebCore::PlatformLineEdit::setText):
  31374. (WebCore::PlatformLineEdit::text):
  31375. (WebCore::PlatformLineEdit::selectedText):
  31376. * platform/qt/ListBoxQt.cpp:
  31377. (WebCore::ListBox::setFont):
  31378. (WebCore::ListBox::appendItem):
  31379. * platform/qt/PlatformKeyboardEventQt.cpp:
  31380. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  31381. * platform/qt/ScrollViewQt.cpp:
  31382. * platform/qt/StringQt.cpp: Added.
  31383. (WebCore::String::String):
  31384. (WebCore::String::operator QString):
  31385. (WebCore::DeprecatedString::operator QString):
  31386. * platform/qt/TextEditQt.cpp:
  31387. * platform/qt/WidgetQt.cpp:
  31388. (WebCore::Widget::setFont):
  31389. 2006-08-18 Steve Falkenburg <sfalken@apple.com>
  31390. Rubber stamped by adele.
  31391. Fix call to WebFormDelegate's textFieldDidBeginEditing.
  31392. * rendering/RenderTextControl.cpp:
  31393. (WebCore::RenderTextControl::subtreeHasChanged):
  31394. 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
  31395. Reviewed by Eric. Landed by rwlbuis.
  31396. Next chunk of the implementation for:
  31397. http://bugs.webkit.org/show_bug.cgi?id=10467
  31398. WebKit should have Qt platform support
  31399. * platform/qt/KeyboardCodes.h: Added.
  31400. * platform/qt/PlatformKeyboardEventQt.cpp: Added.
  31401. (WebCore::keyIdentifierForQtKeyCode):
  31402. (WebCore::windowsKeyCodeForKeyEvent):
  31403. (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
  31404. * platform/qt/PlatformMouseEventQt.cpp: Added.
  31405. (WebCore::):
  31406. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  31407. 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
  31408. Reviewed by Eric. Landed by rwlbuis.
  31409. Next chunk of the implementation for:
  31410. http://bugs.webkit.org/show_bug.cgi?id=10467
  31411. WebKit should have Qt platform support
  31412. * platform/qt/AffineTransformQt.cpp: Added.
  31413. (WebCore::AffineTransform::AffineTransform):
  31414. (WebCore::AffineTransform::setMatrix):
  31415. (WebCore::AffineTransform::map):
  31416. (WebCore::AffineTransform::mapRect):
  31417. (WebCore::AffineTransform::isIdentity):
  31418. (WebCore::AffineTransform::m11):
  31419. (WebCore::AffineTransform::m12):
  31420. (WebCore::AffineTransform::m21):
  31421. (WebCore::AffineTransform::m22):
  31422. (WebCore::AffineTransform::dx):
  31423. (WebCore::AffineTransform::dy):
  31424. (WebCore::AffineTransform::reset):
  31425. (WebCore::AffineTransform::scale):
  31426. (WebCore::AffineTransform::rotate):
  31427. (WebCore::AffineTransform::translate):
  31428. (WebCore::AffineTransform::shear):
  31429. (WebCore::AffineTransform::det):
  31430. (WebCore::AffineTransform::invert):
  31431. (WebCore::AffineTransform::operator QMatrix):
  31432. (WebCore::AffineTransform::operator==):
  31433. (WebCore::AffineTransform::operator*=):
  31434. (WebCore::AffineTransform::operator*):
  31435. * platform/qt/BrowserExtensionQt.cpp: Added.
  31436. (WebCore::BrowserExtensionQt::BrowserExtensionQt):
  31437. (WebCore::BrowserExtensionQt::canRunModal):
  31438. (WebCore::BrowserExtensionQt::createNewWindow):
  31439. (WebCore::BrowserExtensionQt::canRunModalNow):
  31440. (WebCore::BrowserExtensionQt::runModal):
  31441. (WebCore::BrowserExtensionQt::goBackOrForward):
  31442. (WebCore::BrowserExtensionQt::historyURL):
  31443. (WebCore::BrowserExtensionQt::setTypedIconURL):
  31444. (WebCore::BrowserExtensionQt::setIconURL):
  31445. (WebCore::BrowserExtensionQt::getHistoryLength):
  31446. * platform/qt/BrowserExtensionQt.h: Added.
  31447. * platform/qt/CookieJarQt.cpp: Added.
  31448. (WebCore::setCookies):
  31449. (WebCore::cookies):
  31450. (WebCore::cookiesEnabled):
  31451. * platform/qt/PageQt.cpp: Added.
  31452. (WebCore::rootWindowForFrame):
  31453. (WebCore::Page::windowRect):
  31454. (WebCore::Page::setWindowRect):
  31455. * platform/qt/PathQt.cpp: Added.
  31456. (WebCore::Path::Path):
  31457. (WebCore::Path::~Path):
  31458. (WebCore::Path::operator=):
  31459. (WebCore::Path::contains):
  31460. (WebCore::Path::translate):
  31461. (WebCore::Path::boundingRect):
  31462. (WebCore::Path::moveTo):
  31463. (WebCore::Path::addLineTo):
  31464. (WebCore::Path::addQuadCurveTo):
  31465. (WebCore::Path::addBezierCurveTo):
  31466. (WebCore::Path::addArcTo):
  31467. (WebCore::Path::closeSubpath):
  31468. (WebCore::Path::addArc):
  31469. (WebCore::Path::addRect):
  31470. (WebCore::Path::addEllipse):
  31471. (WebCore::Path::clear):
  31472. * platform/qt/ScreenQt.cpp: Added.
  31473. (WebCore::screenRect):
  31474. (WebCore::screenDepth):
  31475. (WebCore::usableScreenRect):
  31476. 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
  31477. Reviewed by Eric. Landed by rwlbuis.
  31478. First chunk of the implementation for:
  31479. http://bugs.webkit.org/show_bug.cgi?id=10467
  31480. WebKit should have Qt platform support
  31481. * platform/qt/ComboBoxQt.cpp: Added.
  31482. (WebCore::PlatformComboBox::PlatformComboBox):
  31483. (WebCore::PlatformComboBox::~PlatformComboBox):
  31484. (WebCore::PlatformComboBox::setParentWidget):
  31485. (WebCore::PlatformComboBox::clear):
  31486. (WebCore::PlatformComboBox::appendItem):
  31487. (WebCore::PlatformComboBox::appendGroupLabel):
  31488. (WebCore::PlatformComboBox::appendSeparator):
  31489. (WebCore::PlatformComboBox::setCurrentItem):
  31490. (WebCore::PlatformComboBox::sizeHint):
  31491. (WebCore::PlatformComboBox::frameGeometry):
  31492. (WebCore::PlatformComboBox::setFrameGeometry):
  31493. (WebCore::PlatformComboBox::baselinePosition):
  31494. (WebCore::PlatformComboBox::setFont):
  31495. (WebCore::PlatformComboBox::focusPolicy):
  31496. (WebCore::PlatformComboBox::itemSelected):
  31497. (WebCore::PlatformComboBox::setWritingDirection):
  31498. (WebCore::PlatformComboBox::populate):
  31499. (WebCore::PlatformComboBox::populateMenu):
  31500. * platform/qt/LineEditQt.cpp: Added.
  31501. (WebCore::PlatformLineEdit::PlatformLineEdit):
  31502. (WebCore::PlatformLineEdit::~PlatformLineEdit):
  31503. (WebCore::PlatformLineEdit::setParentWidget):
  31504. (WebCore::PlatformLineEdit::setColors):
  31505. (WebCore::PlatformLineEdit::setAlignment):
  31506. (WebCore::PlatformLineEdit::setCursorPosition):
  31507. (WebCore::PlatformLineEdit::cursorPosition):
  31508. (WebCore::PlatformLineEdit::setEdited):
  31509. (WebCore::PlatformLineEdit::edited):
  31510. (WebCore::PlatformLineEdit::setFont):
  31511. (WebCore::PlatformLineEdit::setMaxLength):
  31512. (WebCore::PlatformLineEdit::maxLength):
  31513. (WebCore::PlatformLineEdit::setReadOnly):
  31514. (WebCore::PlatformLineEdit::isReadOnly):
  31515. (WebCore::PlatformLineEdit::setText):
  31516. (WebCore::PlatformLineEdit::text):
  31517. (WebCore::PlatformLineEdit::setWritingDirection):
  31518. (WebCore::PlatformLineEdit::selectAll):
  31519. (WebCore::PlatformLineEdit::hasSelectedText):
  31520. (WebCore::PlatformLineEdit::selectionStart):
  31521. (WebCore::PlatformLineEdit::selectedText):
  31522. (WebCore::PlatformLineEdit::setSelection):
  31523. (WebCore::PlatformLineEdit::sizeForCharacterWidth):
  31524. (WebCore::PlatformLineEdit::baselinePosition):
  31525. (WebCore::PlatformLineEdit::focusPolicy):
  31526. (WebCore::PlatformLineEdit::checksDescendantsForFocus):
  31527. (WebCore::PlatformLineEdit::setLiveSearch):
  31528. (WebCore::PlatformLineEdit::setAutoSaveName):
  31529. (WebCore::PlatformLineEdit::setMaxResults):
  31530. (WebCore::PlatformLineEdit::setPlaceholderString):
  31531. (WebCore::PlatformLineEdit::addSearchResult):
  31532. * platform/qt/ListBoxQt.cpp: Added.
  31533. (WebCore::ListBox::ListBox):
  31534. (WebCore::ListBox::~ListBox):
  31535. (WebCore::ListBox::setParentWidget):
  31536. (WebCore::ListBox::sizeForNumberOfLines):
  31537. (WebCore::ListBox::setSelectionMode):
  31538. (WebCore::ListBox::clear):
  31539. (WebCore::ListBox::doneAppendingItems):
  31540. (WebCore::ListBox::setSelected):
  31541. (WebCore::ListBox::isSelected):
  31542. (WebCore::ListBox::setEnabled):
  31543. (WebCore::ListBox::isEnabled):
  31544. (WebCore::ListBox::setWritingDirection):
  31545. (WebCore::ListBox::focusPolicy):
  31546. (WebCore::ListBox::checksDescendantsForFocus):
  31547. (WebCore::ListBox::clearCachedTextRenderers):
  31548. (WebCore::ListBox::setFont):
  31549. (WebCore::ListBox::appendItem):
  31550. * platform/qt/ScrollViewQt.cpp: Added.
  31551. (WebCore::ScrollView::ScrollView):
  31552. (WebCore::ScrollView::~ScrollView):
  31553. (WebCore::ScrollView::setParentWidget):
  31554. (WebCore::ScrollView::updateContents):
  31555. (WebCore::ScrollView::visibleWidth):
  31556. (WebCore::ScrollView::visibleHeight):
  31557. (WebCore::ScrollView::visibleContentRect):
  31558. (WebCore::ScrollView::setContentsPos):
  31559. (WebCore::ScrollView::resizeContents):
  31560. (WebCore::ScrollView::contentsX):
  31561. (WebCore::ScrollView::contentsY):
  31562. (WebCore::ScrollView::contentsWidth):
  31563. (WebCore::ScrollView::contentsHeight):
  31564. (WebCore::ScrollView::viewportToContents):
  31565. (WebCore::ScrollView::contentsToViewport):
  31566. (WebCore::ScrollView::scrollOffset):
  31567. (WebCore::ScrollView::scrollBy):
  31568. (WebCore::ScrollView::hScrollBarMode):
  31569. (WebCore::ScrollView::vScrollBarMode):
  31570. (WebCore::ScrollView::suppressScrollBars):
  31571. (WebCore::ScrollView::setHScrollBarMode):
  31572. (WebCore::ScrollView::setVScrollBarMode):
  31573. (WebCore::ScrollView::setScrollBarsMode):
  31574. (WebCore::ScrollView::setStaticBackground):
  31575. (WebCore::ScrollView::addChild):
  31576. (WebCore::ScrollView::removeChild):
  31577. (WebCore::ScrollView::scrollPointRecursively):
  31578. (WebCore::ScrollView::inWindow):
  31579. * platform/qt/TextEditQt.cpp: Added.
  31580. (WebCore::PlatformTextEdit::PlatformTextEdit):
  31581. (WebCore::PlatformTextEdit::~PlatformTextEdit):
  31582. (WebCore::PlatformTextEdit::setParentWidget):
  31583. (WebCore::PlatformTextEdit::setColors):
  31584. (WebCore::PlatformTextEdit::setAlignment):
  31585. (WebCore::PlatformTextEdit::setLineHeight):
  31586. (WebCore::PlatformTextEdit::setCursorPosition):
  31587. (WebCore::PlatformTextEdit::getCursorPosition):
  31588. (WebCore::PlatformTextEdit::setFont):
  31589. (WebCore::PlatformTextEdit::setReadOnly):
  31590. (WebCore::PlatformTextEdit::isReadOnly):
  31591. (WebCore::PlatformTextEdit::setDisabled):
  31592. (WebCore::PlatformTextEdit::isDisabled):
  31593. (WebCore::PlatformTextEdit::hasSelectedText):
  31594. (WebCore::PlatformTextEdit::setText):
  31595. (WebCore::PlatformTextEdit::text):
  31596. (WebCore::PlatformTextEdit::textWithHardLineBreaks):
  31597. (WebCore::PlatformTextEdit::focusPolicy):
  31598. (WebCore::PlatformTextEdit::setWordWrap):
  31599. (WebCore::PlatformTextEdit::wordWrap):
  31600. (WebCore::PlatformTextEdit::setScrollBarModes):
  31601. (WebCore::PlatformTextEdit::setWritingDirection):
  31602. (WebCore::PlatformTextEdit::selectionStart):
  31603. (WebCore::PlatformTextEdit::selectionEnd):
  31604. (WebCore::PlatformTextEdit::setSelectionStart):
  31605. (WebCore::PlatformTextEdit::setSelectionEnd):
  31606. (WebCore::PlatformTextEdit::selectAll):
  31607. (WebCore::PlatformTextEdit::setSelectionRange):
  31608. (WebCore::PlatformTextEdit::sizeWithColumnsAndRows):
  31609. (WebCore::PlatformTextEdit::checksDescendantsForFocus):
  31610. * platform/qt/WidgetQt.cpp: Added.
  31611. (WebCore::WidgetPrivate::WidgetPrivate):
  31612. (WebCore::WidgetPrivate::~WidgetPrivate):
  31613. (WebCore::Widget::Widget):
  31614. (WebCore::Widget::~Widget):
  31615. (WebCore::Widget::setClient):
  31616. (WebCore::Widget::client):
  31617. (WebCore::Widget::frameGeometry):
  31618. (WebCore::Widget::hasFocus):
  31619. (WebCore::Widget::setFocus):
  31620. (WebCore::Widget::clearFocus):
  31621. (WebCore::Widget::font):
  31622. (WebCore::Widget::setFont):
  31623. (WebCore::Widget::setCursor):
  31624. (WebCore::Widget::show):
  31625. (WebCore::Widget::hide):
  31626. (WebCore::Widget::setQWidget):
  31627. (WebCore::Widget::qwidget):
  31628. (WebCore::Widget::setParentWidget):
  31629. (WebCore::Widget::parentWidget):
  31630. (WebCore::Widget::setFrameGeometry):
  31631. (WebCore::Widget::mapFromGlobal):
  31632. (WebCore::Widget::scaleFactor):
  31633. (WebCore::Widget::lockDrawingFocus):
  31634. (WebCore::Widget::unlockDrawingFocus):
  31635. (WebCore::Widget::paint):
  31636. (WebCore::Widget::enableFlushDrawing):
  31637. (WebCore::Widget::isEnabled):
  31638. (WebCore::Widget::setIsSelected):
  31639. (WebCore::Widget::disableFlushDrawing):
  31640. (WebCore::Widget::setEnabled):
  31641. (WebCore::Widget::focusPolicy):
  31642. 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
  31643. Reviewed by Eric. Landed by rwlbuis.
  31644. First chunk of the implementation for:
  31645. http://bugs.webkit.org/show_bug.cgi?id=10467
  31646. WebKit should have Qt platform support
  31647. * platform/qt/ColorQt.cpp: Added.
  31648. (WebCore::Color::Color):
  31649. (WebCore::Color::operator QColor):
  31650. * platform/qt/FloatPointQt.cpp: Added.
  31651. (WebCore::FloatPoint::FloatPoint):
  31652. (WebCore::FloatPoint::operator QPointF):
  31653. * platform/qt/FloatRectQt.cpp: Added.
  31654. (WebCore::FloatRect::FloatRect):
  31655. (WebCore::FloatRect::operator QRectF):
  31656. * platform/qt/IntPointQt.cpp: Added.
  31657. (WebCore::IntPoint::IntPoint):
  31658. (WebCore::IntPoint::operator QPoint):
  31659. * platform/qt/IntRectQt.cpp: Added.
  31660. (WebCore::IntRect::IntRect):
  31661. (WebCore::IntRect::operator QRect):
  31662. * platform/qt/IntSizeQt.cpp: Added.
  31663. (WebCore::IntSize::IntSize):
  31664. (WebCore::IntSize::operator QSize):
  31665. 2006-08-18 Nikolas Zimmermann <zimmermann@kde.org>
  31666. Reviewed by Eric. Landed by rwlbuis.
  31667. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10470
  31668. The Qt platform needs a KCanvas device.
  31669. * kcanvas/device/qt/KCanvasClipperQt.cpp: Added.
  31670. (WebCore::KCanvasClipperQt::applyClip):
  31671. * kcanvas/device/qt/KCanvasClipperQt.h: Added.
  31672. (WebCore::KCanvasClipperQt::KCanvasClipperQt):
  31673. * kcanvas/device/qt/KCanvasPathQt.cpp: Added.
  31674. (WebCore::KCanvasPathQt::KCanvasPathQt):
  31675. (WebCore::KCanvasPathQt::~KCanvasPathQt):
  31676. (WebCore::KCanvasPathQt::isEmpty):
  31677. (WebCore::KCanvasPathQt::moveTo):
  31678. (WebCore::KCanvasPathQt::lineTo):
  31679. (WebCore::KCanvasPathQt::curveTo):
  31680. (WebCore::KCanvasPathQt::closeSubpath):
  31681. (WebCore::KCanvasPathQt::boundingBox):
  31682. (WebCore::KCanvasPathQt::strokeBoundingBox):
  31683. (WebCore::KCanvasPathQt::strokeContainsPoint):
  31684. (WebCore::KCanvasPathQt::containsPoint):
  31685. * kcanvas/device/qt/KCanvasPathQt.h: Added.
  31686. (WebCore::KCanvasPathQt::qtPath):
  31687. * kcanvas/device/qt/KRenderingDeviceQt.cpp: Added.
  31688. (WebCore::KRenderingDeviceContextQt::KRenderingDeviceContextQt):
  31689. (WebCore::KRenderingDeviceContextQt::~KRenderingDeviceContextQt):
  31690. (WebCore::KRenderingDeviceContextQt::concatCTM):
  31691. (WebCore::KRenderingDeviceContextQt::ctm):
  31692. (WebCore::KRenderingDeviceContextQt::mapFromVisual):
  31693. (WebCore::KRenderingDeviceContextQt::mapToVisual):
  31694. (WebCore::KRenderingDeviceContextQt::clearPath):
  31695. (WebCore::KRenderingDeviceContextQt::addPath):
  31696. (WebCore::KRenderingDeviceContextQt::createGraphicsContext):
  31697. (WebCore::KRenderingDeviceContextQt::painter):
  31698. (WebCore::KRenderingDeviceContextQt::pathBBox):
  31699. (WebCore::KRenderingDeviceContextQt::setFillRule):
  31700. (WebCore::KRenderingDeviceContextQt::fillPath):
  31701. (WebCore::KRenderingDeviceContextQt::strokePath):
  31702. (WebCore::KRenderingDeviceQt::KRenderingDeviceQt):
  31703. (WebCore::KRenderingDeviceQt::~KRenderingDeviceQt):
  31704. (WebCore::KRenderingDeviceQt::popContext):
  31705. (WebCore::KRenderingDeviceQt::pushContext):
  31706. (WebCore::KRenderingDeviceQt::qtContext):
  31707. (WebCore::KRenderingDeviceQt::contextForImage):
  31708. (WebCore::KRenderingDeviceQt::stringForPath):
  31709. (WebCore::KRenderingDeviceQt::createResource):
  31710. (WebCore::KRenderingDeviceQt::createPaintServer):
  31711. (WebCore::KRenderingDeviceQt::createFilterEffect):
  31712. 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
  31713. Reviewed by Eric. Landed by rwlbuis.
  31714. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10466
  31715. WebKit should have Qt platform support.
  31716. * platform/Color.h:
  31717. * platform/Cursor.h:
  31718. (WebCore::Cursor::Cursor):
  31719. * platform/FloatPoint.h:
  31720. * platform/FloatRect.h:
  31721. * platform/GlyphBuffer.h:
  31722. (WebCore::GlyphBuffer::glyphAt):
  31723. (WebCore::GlyphBuffer::advanceAt):
  31724. (WebCore::GlyphBuffer::add):
  31725. * platform/GraphicsContext.h:
  31726. * platform/ImageSource.h:
  31727. * platform/IntPoint.h:
  31728. * platform/IntRect.h:
  31729. * platform/IntSize.h:
  31730. * platform/ListBox.h:
  31731. * platform/Path.h:
  31732. * platform/PlatformKeyboardEvent.h:
  31733. * platform/PlatformMouseEvent.h:
  31734. * platform/ResourceLoader.h:
  31735. * platform/ResourceLoaderClient.h:
  31736. * platform/ResourceLoaderInternal.h:
  31737. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  31738. * platform/ScrollView.h:
  31739. * platform/Widget.h:
  31740. 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
  31741. Reviewed by Eric. Landed by rwlbuis.
  31742. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10465
  31743. General WebKit Linux build fixes.
  31744. * kcanvas/KCanvasFilters.cpp:
  31745. (WebCore::operator<<):
  31746. * kcanvas/RenderSVGImage.cpp:
  31747. * ksvg2/css/SVGCSSStyleSelector.cpp:
  31748. * ksvg2/svg/SVGAnimateColorElement.cpp:
  31749. * ksvg2/svg/SVGMaskElement.cpp:
  31750. * ksvg2/svg/SVGPatternElement.cpp:
  31751. * page/Frame.h:
  31752. * rendering/RenderStyle.h:
  31753. (WebCore::RenderStyle::deleteBindingURIs):
  31754. * xml/DOMParser.cpp:
  31755. 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
  31756. Reviewed by Eric. Landed by rwlbuis.
  31757. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10464
  31758. Offer a cmake build system for Qt platform.
  31759. * CMakeLists.txt: Added.
  31760. 2006-08-17 David Harrison <harrison@apple.com>
  31761. Reviewed by John Sullivan.
  31762. <rdar://problem/4671069> REGRESSION: Popup buttons in web pages aren't exposed as AXPopupButtons
  31763. Accessorized RenderMenuList objects.
  31764. * bridge/mac/WebCoreAXObject.mm:
  31765. (-[WebCoreAXObject mouseButtonListener]):
  31766. Trivial formatting.
  31767. (-[WebCoreAXObject actionElement]):
  31768. Return the HTMLSelectElement.
  31769. (-[WebCoreAXObject firstChild]):
  31770. (-[WebCoreAXObject lastChild]):
  31771. (-[WebCoreAXObject previousSibling]):
  31772. (-[WebCoreAXObject nextSibling]):
  31773. (-[WebCoreAXObject parentObject]):
  31774. (-[WebCoreAXObject parentObjectUnignored]):
  31775. (-[WebCoreAXObject isAttachment]):
  31776. (-[WebCoreAXObject attachmentView]):
  31777. Trivial formatting.
  31778. (-[WebCoreAXObject role]):
  31779. Return NSAccessibilityPopUpButtonRole.
  31780. (-[WebCoreAXObject subrole]):
  31781. Trivial formatting.
  31782. (-[WebCoreAXObject roleDescription]):
  31783. Return NSAccessibilityPopUpButtonRole.
  31784. (-[WebCoreAXObject textUnderElement]):
  31785. Trivial formatting.
  31786. (-[WebCoreAXObject value]):
  31787. Return the RenderMenuList::text().
  31788. (-[WebCoreAXObject position]):
  31789. Trivial formatting.
  31790. (-[WebCoreAXObject accessibilityIsIgnored]):
  31791. - Ignore popup menu items because AppKit does.
  31792. - Remove redundant check for buttonTag (earlier isControl() check suffices).
  31793. (-[WebCoreAXObject accessibilityAttributeNames]):
  31794. (-[WebCoreAXObject accessibilityActionNames]):
  31795. (-[WebCoreAXObject accessibilityAttributeValue:]):
  31796. Trivial formatting.
  31797. (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
  31798. Removed old debugging code that is no longer needed.
  31799. Trivial formatting.
  31800. (-[WebCoreAXObject doAXSentenceTextMarkerRangeForTextMarker:]):
  31801. (-[WebCoreAXObject doAXParagraphTextMarkerRangeForTextMarker:]):
  31802. (-[WebCoreAXObject removeAXObjectID]):
  31803. Trivial formatting.
  31804. * html/HTMLSelectElement.cpp:
  31805. (WebCore::HTMLSelectElement::accessKeyAction):
  31806. Call click() instead of focus().
  31807. * rendering/RenderMenuList.cpp:
  31808. (WebCore::RenderMenuList::text):
  31809. Added for easy access to popup's current text.
  31810. * rendering/RenderMenuList.h:
  31811. (WebCore::RenderMenuList::isMenuList):
  31812. * rendering/RenderObject.h:
  31813. (WebCore::RenderObject::isMenuList):
  31814. Added so popups can be identified.
  31815. 2006-08-17 David Harrison <harrison@apple.com>
  31816. Reviewed by Maciej.
  31817. <rdar://problem/4527201> REGRESSION: AXTextMarkerRangeForUnorderedTextMarkers returns out of order range
  31818. Test cases added: None. Manual AX testing is way too awkward, and automated testing
  31819. is not possible. See following bug...
  31820. <rdar://problem/4256882> Need automated testing support for accessibility APIs
  31821. * bridge/mac/AXObjectCacheMac.mm:
  31822. (WebCore::AXObjectCache::visiblePositionForTextMarker):
  31823. Validate the marker by comparing the node and offset to those of the resulting VisiblePosition.
  31824. 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
  31825. Reviewed by Anders.
  31826. Fixes: http://bugs.webkit.org/show_bug.cgi?id=10447
  31827. AffineTransform should be multi-platform compatible
  31828. * platform/AffineTransform.h:
  31829. * platform/cg/AffineTransformCG.cpp:
  31830. (WebCore::AffineTransform::m11):
  31831. (WebCore::AffineTransform::m12):
  31832. (WebCore::AffineTransform::m21):
  31833. (WebCore::AffineTransform::m22):
  31834. (WebCore::AffineTransform::dx):
  31835. (WebCore::AffineTransform::dy):
  31836. 2006-08-16 David Hyatt <hyatt@apple.com>
  31837. Fix an issue with CSS2 system fonts where they did not respect text
  31838. zoom. This was most visible with the new control fonts used for form
  31839. controls (they stopped swapping between small/mini/regular as you zoomed).
  31840. Reviewed by beth
  31841. * css/cssstyleselector.cpp:
  31842. (WebCore::CSSStyleSelector::applyProperty):
  31843. 2006-08-15 Justin Garcia <justin.garcia@apple.com>
  31844. Reviewed by thatcher
  31845. First part of fix for:
  31846. <rdar://problem/4384589>
  31847. Mail hung on paste text
  31848. Fixes:
  31849. <http://bugs.webkit.org/show_bug.cgi?id=8592>
  31850. Extra line left after deleting whitespace:pre text
  31851. <rdar://problem/4128080> Paste as HTML does not yield equivalent style
  31852. <rdar://problem/4046469> Box styles on first element aren't copied/pasted
  31853. Copy/paste of arstechnica.com
  31854. Here's how we avoid adding redundant style information on paste: insert
  31855. the fragment and do a test rendering, save away style information for
  31856. every node in the fragment, remove all style information from the fragment,
  31857. remove the fragment, insert it into the appropriate place in the document,
  31858. then restore only those styles gathered during the test insertion that aren't
  31859. redundant. Restoring the styles in this way results in an ApplyStyleCommand
  31860. and a layout for nearly every inserted node.
  31861. Instead we want to insert the fragment into the document without removing the
  31862. style information, then mark style nodes and inline style declarations for
  31863. removal if they are redundant, and sweep to remove them. This means that we
  31864. can't rely on ReplacementFragment::wasBlock anymore, because blocks will now
  31865. have style spans around them. This patch removes the use of wasBlock in
  31866. ReplaceSelectionCommand.
  31867. * editing/CompositeEditCommand.cpp:
  31868. (WebCore::CompositeEditCommand::moveParagraphs): Added code
  31869. to remove the line placeholder left after a move from preserveNewline text.
  31870. * editing/DeleteSelectionCommand.cpp:
  31871. (WebCore::DeleteSelectionCommand::doApply): Don't add a placeholder if
  31872. we're deleting a paragraph in preserveNewline text.
  31873. * editing/JSEditor.cpp: Pass true to prevent nesting.
  31874. * editing/ReplaceSelectionCommand.cpp: Removed wasBlock and friends.
  31875. (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
  31876. (WebCore::ReplacementFragment::saveRenderingInfo): Ditto.
  31877. (WebCore::RenderingInfo::RenderingInfo): Ditto.
  31878. (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
  31879. (WebCore::ReplaceSelectionCommand::shouldMergeStart): Combined the to/from
  31880. merging rules into one method.
  31881. (WebCore::ReplaceSelectionCommand::shouldMergeEnd):
  31882. (WebCore::ReplaceSelectionCommand::shouldMerge):
  31883. (WebCore::ReplaceSelectionCommand::doApply):
  31884. Don't do nesting prevention when pasting into an empty paragraph, this
  31885. fixes 4046469, the common cause of paste fidelity bugs, but needs
  31886. to be tweaked a little because this can lead to margin/border build-up
  31887. on repeated copy/pastes.
  31888. Don't track startPos in addition to insertionPos. It was never used.
  31889. Fixed a bug where a fragment starting with an interchange newline would
  31890. cause content to be put outside of an editable region when pasting at the
  31891. very end of it.
  31892. Adjust insertionPos before insertion (not during) and do not consult wasBlock
  31893. to decide whether or not to do so.
  31894. Changed the way we do the start merge: insert the fragment, then stich
  31895. paragraphs together, in the same way that we do the end merge. This
  31896. doesn't require wasBlock and fixes bugs.
  31897. Replaced some uses of insertionPos with endOfInsertedContent.
  31898. Fixed a bug in the expansion of the last incoming br (a "collapsed" br
  31899. is one where !isStartOfParagraph([br,0])).
  31900. Removed the special case code that did the end merge for the preserveNewline
  31901. case, since this patch fixes the moveParagraph bug in the preserveNewline case.
  31902. Removed some unused variables.
  31903. (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): An endBR that was
  31904. holding a line open should always be displaced by inserted content, unless
  31905. the inserted content ends with a br.
  31906. (WebCore::ReplaceSelectionCommand::updateNodesInserted):
  31907. * editing/ReplaceSelectionCommand.h:
  31908. (WebCore::RenderingInfo::style):
  31909. * editing/markup.cpp:
  31910. (WebCore::createMarkup): Only add mail blockquotes and list/table/pre when
  31911. annotate is true (when we're creating markup for the pasteboard).
  31912. 2006-08-16 John Sullivan <sullivan@apple.com>
  31913. Reviewed by Brady Eidson
  31914. - fixed <rdar://problem/4637156> underlines appearing in white selection text
  31915. * rendering/InlineFlowBox.cpp:
  31916. (WebCore::InlineFlowBox::paintDecorations):
  31917. bail out if phase is PaintPhaseSelection and forceWhiteText is true
  31918. 2006-08-16 Brady Eidson <beidson@apple.com>
  31919. Reviewed by John
  31920. Updated the DB version number and added a helpful comment explaining its meaning
  31921. * loader/icon/IconDatabase.cpp:
  31922. 2006-08-16 Brady Eidson <beidson@apple.com>
  31923. Reviewed by Maciej
  31924. Major refactoring of new iconDB:
  31925. -Instead of private browsing being handled by in-memory tables, it's now handled
  31926. by a separate in-memory database with the same table names. This allows us to
  31927. re-use the same SQL on either the main or private-browsing database
  31928. -So it follows, I broke out much of the SQL queries into seperate methods suffixed with
  31929. "Query" that take a database as the method's argument so the same language can run on
  31930. both private and main tables
  31931. -Now that we have two DBs, moved the retain/release count to the m_mainDB
  31932. -While I was at it, updated the schema to combine the Icon and IconResource table - cuts
  31933. down on some high-usage, low value queries which were too expensive
  31934. -Ditched the _url -> url convention for escaping urls for SQL. Now its url and escapedURL
  31935. -Pruned tons of unused methods from previous revisions
  31936. * bridge/mac/WebCoreIconDatabaseBridge.h: Removed isIconExpiredForPageURL as it was never used
  31937. * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
  31938. * loader/icon/IconDatabase.cpp:
  31939. (WebCore::IconDatabase::IconDatabase): Updated initializer list
  31940. (WebCore::IconDatabase::open): Sets up both databases
  31941. (WebCore::IconDatabase::close): Closes both databases
  31942. (WebCore::IconDatabase::isEmpty): Queries both databases for at least 1 record
  31943. (WebCore::IconDatabase::isValidDatabase): Reflect the updated schema
  31944. (WebCore::IconDatabase::clearDatabaseTables): Ditto - and takes DB as a parameter
  31945. (WebCore::IconDatabase::createDatabaseTables): Ditto
  31946. (WebCore::IconDatabase::imageDataForIconURL): style cleanup, and using a query-function
  31947. (WebCore::IconDatabase::setPrivateBrowsingEnabled): Resets private DB instead of private tables
  31948. (WebCore::IconDatabase::isIconExpiredForIconURL): Uses a query-function on each DB
  31949. (WebCore::IconDatabase::iconURLForPageURL): Uses a query-function on each DB
  31950. (WebCore::IconDatabase::retainIconForPageURL): Retain count DB changes
  31951. (WebCore::IconDatabase::releaseIconForPageURL): Ditto
  31952. (WebCore::IconDatabase::isIconURLRetained): Determine if it's time to prune a released icon yet
  31953. (WebCore::IconDatabase::forgetIconForIconURLFromDatabase): Alot simpler
  31954. (WebCore::IconDatabase::setIconDataForIconURL): Style cleanup
  31955. (WebCore::IconDatabase::setHaveNoIconForIconURL): Ditto
  31956. (WebCore::IconDatabase::setIconURLForPageURL): Ditto - and using a query-function
  31957. (WebCore::IconDatabase::establishIconIDForIconURL): Style cleanup
  31958. (WebCore::IconDatabase::pruneUnreferencedIcons): DB name change
  31959. (WebCore::IconDatabase::pruneUnretainedIcons): Ditto
  31960. (WebCore::IconDatabase::hasIconForIconURL): Simpler, using a query-function
  31961. (WebCore::IconDatabase::~IconDatabase):
  31962. (WebCore::pageURLTableIsEmptyQuery): Self-explanatory SQL query
  31963. (WebCore::imageDataForIconURLQuery): Self-explanatory SQL query
  31964. (WebCore::timeStampForIconURLQuery): Self-explanatory SQL query
  31965. (WebCore::iconURLForPageURLQuery): Self-explanatory SQL query
  31966. (WebCore::forgetPageURLQuery): Self-explanatory SQL query
  31967. (WebCore::setIconIDForPageURLQuery): Self-explanatory SQL query
  31968. (WebCore::getIconIDForIconURLQuery): Self-explanatory SQL query
  31969. (WebCore::addIconForIconURLQuery): Self-explanatory SQL query
  31970. (WebCore::hasIconForIconURLQuery): Self-explanatory SQL query
  31971. * loader/icon/IconDatabase.h: Some new/changed methods, pruned methods, and new comments
  31972. (WebCore::IconDatabase::isOpen): Changed our meaning of "isOpen" to reflect the 2 databases
  31973. 2006-08-15 Jonas Witt <jonas.witt@gmail.com>
  31974. Reviewed by Darin.
  31975. - added ObjC wrappers for the KeyboardEvent and WheelEvent initializers
  31976. http://bugs.webkit.org/show_bug.cgi?id=9736
  31977. * bindings/objc/DOMEvents.mm:
  31978. (-[DOMKeyboardEvent initKeyboardEvent::::::::::]):
  31979. * bindings/objc/DOMEventsNonstandard.mm:
  31980. (-[DOMWheelEvent initWheelEvent:::::::::::]):
  31981. * bindings/objc/DOMPrivate.h:
  31982. - added an initializer for the WheelEvent
  31983. * dom/WheelEvent.cpp:
  31984. (WebCore::WheelEvent::initWheelEvent):
  31985. * dom/WheelEvent.h:
  31986. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  31987. Reviewed by Tim H.
  31988. Build fix: DWARF and -gfull are incompatible with symbol separation.
  31989. * WebCore.xcodeproj/project.pbxproj:
  31990. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  31991. Reviewed by Tim H.
  31992. http://bugs.webkit.org/show_bug.cgi?id=10394
  31993. Bug 10394: WebKit Release and Production configurations should enable dead code stripping
  31994. * WebCore.xcodeproj/project.pbxproj:
  31995. 2006-08-15 Geoffrey Garen <ggaren@apple.com>
  31996. Reviewed by Darin.
  31997. - This patch reworks a previous fix for <rdar://problem/3524912> repro
  31998. crash in KHTMLParser::parseToken, due to parser's current element being
  31999. destroyed (www.gnnetcom.dk), along with subsequent adjustments to fix
  32000. leaks.
  32001. The previous solutions caused a ~2% performance regression on iBench HTML,
  32002. due to RefPtr churn. The optimizations here gain back that ~2% plus ~1% more,
  32003. for a total win of ~3% vs current TOT.
  32004. We can merge this fix to the branch to fix <rdar://problem/4661982>
  32005. (crash in KHTMLParser::popBlock).
  32006. The solution here is:
  32007. (1) Don't let the parser ref document nodes -- that causes leaks.
  32008. (2) Handle ref/deref manually, to avoid RefPtr churn. Specifically, when
  32009. moving a node between stacks or to/from 'current', rather than deref'ing
  32010. and then ref'ing again, simply move the node, along with its refcount, to
  32011. its new location, and overwrite its old location.
  32012. * WebCore.xcodeproj/project.pbxproj:
  32013. * html/HTMLParser.cpp:
  32014. (WebCore::HTMLStackElem::HTMLStackElem):
  32015. (WebCore::HTMLStackElem::derefNode):
  32016. (WebCore::HTMLParser::HTMLParser):
  32017. (WebCore::HTMLParser::setCurrent):
  32018. (WebCore::HTMLParser::insertNode):
  32019. (WebCore::HTMLParser::popNestedHeaderTag):
  32020. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  32021. (WebCore::HTMLParser::reopenResidualStyleTags):
  32022. (WebCore::HTMLParser::pushBlock):
  32023. (WebCore::HTMLParser::popBlock):
  32024. (WebCore::HTMLParser::popOneBlockCommon):
  32025. (WebCore::HTMLParser::popOneBlock):
  32026. (WebCore::HTMLParser::moveOneBlockToStack):
  32027. * html/HTMLParser.h:
  32028. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  32029. Reviewed by Tim H.
  32030. http://bugs.webkit.org/show_bug.cgi?id=10384
  32031. Bug 10384: Switch to DWARF for Release configuration
  32032. * WebCore.xcodeproj/project.pbxproj:
  32033. 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
  32034. Reviewed by Hyatt.
  32035. Tweaked and landed by Darin.
  32036. http://bugs.webkit.org/show_bug.cgi?id=10399
  32037. Bug 10399: RenderTextArea is unused
  32038. * WebCore.vcproj/WebCore/WebCore.vcproj:
  32039. * WebCore.xcodeproj/project.pbxproj:
  32040. * WebCoreSources.bkl:
  32041. Removed RenderTextArea source files.
  32042. * html/HTMLTextAreaElement.cpp: Removed include of RenderTextArea.h.
  32043. * html/HTMLTextAreaElement.h: Removed forward declaration of RenderTextArea.
  32044. * platform/mac/WidgetMac.mm: (WebCore::Widget::paint): Updated a comment.
  32045. * platform/TextBox.h: Removed.
  32046. * platform/mac/TextBoxMac.mm: Removed.
  32047. * platform/mac/WebCoreTextArea.h: Removed.
  32048. * platform/mac/WebCoreTextArea.mm: Removed.
  32049. * rendering/RenderTextArea.cpp: Removed.
  32050. * rendering/RenderTextArea.h: Removed.
  32051. 2006-08-15 Brady Eidson <beidson@apple.com>
  32052. Reviewed by THE OTHER Maciej...
  32053. Two small fixes -
  32054. 1) Renamed retain/release methods to add PageUrl in - we're being consistent and clear in the WebCore API
  32055. 2) Fixed a bug where a null SiteIcon reference would be added into the pageURLToSiteIcon map causing a
  32056. null dereference later
  32057. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  32058. (-[WebCoreIconDatabaseBridge retainIconForURL:]): Changed IconDatabase method name
  32059. (-[WebCoreIconDatabaseBridge releaseIconForURL:]): ditto
  32060. * loader/icon/IconDatabase.cpp:
  32061. (WebCore::IconDatabase::retainIconForPageURL): Name change
  32062. (WebCore::IconDatabase::releaseIconForPageURL): ditto
  32063. (WebCore::IconDatabase::setIconURLForPageURL): Added the null site-icon check when changing a PageURL's iconURL
  32064. * loader/icon/IconDatabase.h: Some renames
  32065. 2006-08-14 Eric Seidel <eric@webkit.org>
  32066. Reviewed by mjs.
  32067. <mask>, <marker>, <pattern> inside <defs> do not work
  32068. http://bugs.webkit.org/show_bug.cgi?id=6548
  32069. * ksvg2/svg/SVGDefsElement.cpp:
  32070. (WebCore::SVGDefsElement::SVGDefsElement): moved to .cpp file
  32071. (WebCore::SVGDefsElement::isValid): moved to .cpp file
  32072. (WebCore::SVGDefsElement::rendererIsNeeded): Added.
  32073. (WebCore::SVGDefsElement::createRenderer): Added.
  32074. * ksvg2/svg/SVGDefsElement.h:
  32075. * ksvg2/svg/SVGGElement.cpp:
  32076. (WebCore::SVGGElement::SVGGElement): adjusted spacing
  32077. (WebCore::SVGGElement::parseMappedAttribute): adjusted spacing
  32078. (WebCore::SVGDummyElement::SVGDummyElement): adjusted spacing
  32079. 2006-08-14 Eric Seidel <eric@webkit.org>
  32080. Reviewed by darin and mjs.
  32081. Add better SVGLoad event support.
  32082. http://bugs.webkit.org/show_bug.cgi?id=6010
  32083. There will still need to be additional support added for <link> and <script> elements.
  32084. Not all of the error -> loaded -> error transition cases work yet.
  32085. * dom/EventTargetNode.cpp:
  32086. (WebCore::EventTargetNode::dispatchGenericEvent):
  32087. * html/HTMLImageLoader.cpp:
  32088. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  32089. * html/HTMLImageLoader.h:
  32090. (WebCore::HTMLImageLoader::haveFiredLoadEvent):
  32091. (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
  32092. * ksvg2/misc/SVGImageLoader.cpp:
  32093. (WebCore::SVGImageLoader::SVGImageLoader):
  32094. (WebCore::SVGImageLoader::dispatchLoadEvent):
  32095. * ksvg2/misc/SVGImageLoader.h:
  32096. * ksvg2/svg/SVGAElement.cpp:
  32097. (WebCore::SVGAElement::parseMappedAttribute):
  32098. * ksvg2/svg/SVGAnimatedBoolean.h:
  32099. * ksvg2/svg/SVGElement.cpp:
  32100. (WebCore::SVGElement::SVGElement):
  32101. (WebCore::SVGElement::parseMappedAttribute):
  32102. (WebCore::SVGElement::haveLoadedRequiredResources):
  32103. (WebCore::SVGElement::sendSVGLoadEventIfPossible):
  32104. (WebCore::SVGElement::closeRenderer):
  32105. * ksvg2/svg/SVGElement.h:
  32106. (WebCore::SVGElement::rendererIsNeeded):
  32107. (WebCore::svg_dynamic_cast):
  32108. * ksvg2/svg/SVGExternalResourcesRequired.h:
  32109. * ksvg2/svg/SVGImageElement.cpp:
  32110. (SVGImageElement::SVGImageElement):
  32111. (SVGImageElement::haveLoadedRequiredResources):
  32112. * ksvg2/svg/SVGImageElement.h:
  32113. * ksvg2/svg/SVGSVGElement.cpp:
  32114. (WebCore::SVGSVGElement::parseMappedAttribute):
  32115. * ksvg2/svg/SVGScriptElement.cpp:
  32116. (WebCore::SVGScriptElement::SVGScriptElement):
  32117. (WebCore::SVGScriptElement::parseMappedAttribute):
  32118. (WebCore::SVGScriptElement::executeScript):
  32119. * xml/xmlhttprequest.cpp:
  32120. (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
  32121. 2006-08-14 Anders Carlsson <acarlsson@apple.com>
  32122. Reviewed by Maciej.
  32123. http://bugs.webkit.org/show_bug.cgi?id=10393
  32124. Autogenerate NodeIterator and TreeWalker.
  32125. * DerivedSources.make:
  32126. * WebCore.xcodeproj/project.pbxproj:
  32127. Add new files.
  32128. * bindings/js/JSNodeIteratorCustom.cpp: Added.
  32129. (WebCore::JSNodeIterator::mark):
  32130. * bindings/js/JSTreeWalkerCustom.cpp: Added.
  32131. (WebCore::JSTreeWalker::mark):
  32132. * bindings/js/kjs_traversal.cpp:
  32133. * bindings/js/kjs_traversal.h:
  32134. Remove implementations of DOMNodeIterator and DOMTreeWalker.
  32135. * bindings/scripts/CodeGeneratorJS.pm:
  32136. Add "CustomMarkFunction" attribute for classes where mark() needs to be overridden.
  32137. * bindings/objc/DOM.mm:
  32138. (-[DOMNodeIterator detach]):
  32139. * dom/NodeIterator.cpp:
  32140. (WebCore::NodeIterator::detach):
  32141. * dom/NodeIterator.h:
  32142. Get rid of exception in detach, it isn't used at all and this function can't throw an exception according to the spec.
  32143. * dom/NodeIterator.idl: Added.
  32144. * dom/TreeWalker.idl: Added.
  32145. 2006-08-14 Brady Eidson <beidson@apple.com>
  32146. Reviewed by John
  32147. The changes are plentiful, but small, mostly to improve performance
  32148. 1) Add a bool flag to SiteIcon to stop it from querying the database over and over
  32149. 2) Added a pageURL->iconURL hashmap to cache database results, as an optimization
  32150. 3) Fix a bug in setIconURLForPageURL code where the pageURL would still point to an old icon
  32151. 4) Added isIconURLRetained() to optimize the retain count check
  32152. 5) Prune old, unused code
  32153. * loader/icon/IconDatabase.cpp:
  32154. (WebCore::IconDatabase::imageDataForIconID): Removed unused code
  32155. (WebCore::IconDatabase::imageDataForIconURL): Removed unused code
  32156. (WebCore::IconDatabase::imageDataForPageURL): Removed unused code
  32157. (WebCore::IconDatabase::isIconExpiredForIconURL): Removed LOG msg
  32158. (WebCore::IconDatabase::isIconExpiredForPageURL): Removed LOG msg
  32159. (WebCore::IconDatabase::iconURLForPageURL): Added a hashmap cache to avoid common queries
  32160. (WebCore::IconDatabase::releaseIconForURL): Changed to is isRetained() instead of retainCount()
  32161. (WebCore::IconDatabase::isIconURLRetained): Added - we don't care about the actual retain count
  32162. for an icon so much as whether or not it is retained
  32163. (WebCore::IconDatabase::setIconURLForPageURL): If the new and old iconURLs are the same, skip the
  32164. SQLite code
  32165. * loader/icon/IconDatabase.h: Added new methods/variables
  32166. * loader/icon/SiteIcon.cpp:
  32167. (SiteIcon::SiteIcon): Added a flag so it only queries the database for icon data once
  32168. (SiteIcon::getImage): Ditto
  32169. 2006-08-14 David Hyatt <hyatt@apple.com>
  32170. Fix for bug 10385, add more support for crappy pseudo-XML-in-HTML.
  32171. Reviewed by ggaren
  32172. Added fast/parser/bad-xml-slash.html
  32173. * html/HTMLTokenizer.cpp:
  32174. (WebCore::HTMLTokenizer::parseTag):
  32175. 2006-08-14 Darin Adler <darin@apple.com>
  32176. Reviewed by John Sullivan.
  32177. - fix http://bugs.webkit.org/show_bug.cgi?id=10204
  32178. REGRESSION: title tag parsing problem breaks Travelocity and Google Analytics pages
  32179. Test: fast/parser/title-error-test.html
  32180. * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): Fixed an error
  32181. handling case that was skipping until a </style> tag in code that was shared
  32182. between both <title> and <style>. Also rearranged the code a tiny bit.
  32183. 2006-08-14 Darin Adler <darin@apple.com>
  32184. Reviewed by Hyatt.
  32185. - fixed some storage leaks
  32186. (part of http://bugs.webkit.org/show_bug.cgi?id=10259)
  32187. * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start):
  32188. Rearrange code so that "delete this" is called any time the function returns
  32189. false -- ownership was inconsistent before.
  32190. * rendering/RenderContainer.cpp: (WebCore::RenderContainer::removeChildNode):
  32191. Call deleteLineBoxWrapper even when documentBeingDestroyed() is true, because
  32192. some of what it does has to be done during destruction. A little awkward since
  32193. I preserved the order of operations. Perhaps we could structure this better later.
  32194. 2006-08-14 David Harrison <harrison@apple.com>
  32195. Reviewed by John Sullivan and Geoff Garen.
  32196. <rdar://problem/3854950> AX Seed: Blackboard Learning Systems - frame names need to be put in AXDescription AXAttribute
  32197. Test cases added: None. Manual AX testing is way too awkward, and automated testing
  32198. is not possible. See following bug...
  32199. <rdar://problem/4256882> Need automated testing support for accessibility APIs
  32200. * bridge/mac/WebCoreAXObject.mm:
  32201. (-[WebCoreAXObject accessibilityDescription]):
  32202. For a web area, return the name of the owning frame or iframe.
  32203. (-[WebCoreAXObject accessibilityAttributeNames]):
  32204. Advertize NSAccessibilityDescriptionAttribute.
  32205. (-[WebCoreAXObject rendererForView:]):
  32206. Clean up some old naming.
  32207. 2006-08-11 Anders Carlsson <acarlsson@apple.com>
  32208. Reviewed by Darin.
  32209. http://bugs.webkit.org/show_bug.cgi?id=10353
  32210. XMLSerializer and DOMParser should have real implementations
  32211. Make real implementation files for DOMParser and XMLSerializer and wrap them
  32212. using our bindings generation.
  32213. * DerivedSources.make:
  32214. * WebCore.xcodeproj/project.pbxproj:
  32215. * bindings/js/JSDOMParser.cpp: Removed.
  32216. * bindings/js/JSDOMParser.h: Removed.
  32217. * bindings/js/JSXMLSerializer.cpp: Removed.
  32218. * bindings/js/JSXMLSerializer.h: Removed.
  32219. * bindings/js/kjs_window.cpp:
  32220. (KJS::Window::getValueProperty):
  32221. * bindings/js/kjs_window.h:
  32222. (KJS::Window::):
  32223. * page/DOMWindow.idl:
  32224. * xml/DOMParser.cpp: Added.
  32225. (WebCore::DOMParser::parseFromString):
  32226. * xml/DOMParser.h: Added.
  32227. * xml/DOMParser.idl: Added.
  32228. * xml/XMLSerializer.cpp: Added.
  32229. (WebCore::XMLSerializer::serializeToString):
  32230. * xml/XMLSerializer.h: Added.
  32231. * xml/XMLSerializer.idl: Added.
  32232. 2006-08-14 Maciej Stachowiak <mjs@apple.com>
  32233. Reviewed by Brady.
  32234. - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
  32235. * WebCore.exp: export new functions
  32236. * platform/mac/WebCoreSystemInterface.h: Added CFReadStream related functions
  32237. * platform/mac/WebCoreSystemInterface.mm: ditto
  32238. 2006-08-13 Maks Orlovich <maksim@kde.org>
  32239. Reviewed (and tweaked a little) by Maciej.
  32240. - shrank the size of JSObject by 8 bytes and made the corresponding reduction to the cell size, resulting
  32241. in a 1.2% speed improvement on JS iBench (and probably overall memory savings).
  32242. The WebCore part of this is to expect only FunctionImp to have a scope, not all JSObjects.
  32243. * bindings/js/kjs_events.cpp:
  32244. (KJS::JSLazyEventListener::parseCode):
  32245. 2006-08-12 Eric Seidel <eric@webkit.org>
  32246. Reviewed by hyatt and mjs.
  32247. Fix two missing null checks causing layout test crashes.
  32248. * css/cssstyleselector.cpp:
  32249. (WebCore::CSSStyleSelector::adjustRenderStyle): check e for null (null for pseudo styles)
  32250. * kcanvas/RenderSVGContainer.cpp:
  32251. (WebCore::RenderSVGContainer::requiresLayer): check parent()->element() for null
  32252. 2006-08-11 Eric Seidel <eric@webkit.org>
  32253. Reviewed by andersca.
  32254. The outermost <svg> element needs to clip itself
  32255. http://bugs.webkit.org/show_bug.cgi?id=5358
  32256. * css/cssstyleselector.cpp:
  32257. (WebCore::CSSStyleSelector::adjustRenderStyle): adjust for SVG overflow rules
  32258. * kcanvas/RenderSVGContainer.cpp:
  32259. (WebCore::RenderSVGContainer::requiresLayer): only require layers for absolute/relative positioning of outermost SVG
  32260. (WebCore::RenderSVGContainer::paint):
  32261. * kcanvas/device/KRenderingDevice.h:
  32262. * kcanvas/device/quartz/KRenderingDeviceQuartz.h: remove dead methods
  32263. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: remove dead methods
  32264. (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
  32265. * ksvg2/svg/SVGPaint.cpp: spacing changes
  32266. (WebCore::SVGPaint::SVGPaint): spacing cleanup
  32267. * ksvg2/svg/SVGSVGElement.cpp:
  32268. (WebCore::SVGSVGElement::parseMappedAttribute): spacing cleanup
  32269. * platform/GraphicsContext.h: Added concatCTM
  32270. * platform/cg/GraphicsContextCG.cpp:
  32271. (WebCore::GraphicsContext::concatCTM): Added.
  32272. 2006-08-11 Brady Eidson <beidson@apple.com>
  32273. Reviewed by Maciej
  32274. Renamed a method/parameter for clarity and consistency, as well as some style
  32275. cleanups and removing some ridiculously verbose log messages.
  32276. Also added an _isEmpty method to the database and bridge for WebKit's use.
  32277. Finally, added a central way for both WebKit and WebCore to get the icon database filename
  32278. * bridge/mac/WebCoreIconDatabaseBridge.h: Added _isEmpty and defaultDatabaseFilename
  32279. * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed an unnecessary semicolon off most of these methods
  32280. (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
  32281. (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
  32282. (-[WebCoreIconDatabaseBridge isOpen]):
  32283. (-[WebCoreIconDatabaseBridge _isEmpty]): Added
  32284. (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
  32285. (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
  32286. (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
  32287. (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
  32288. (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
  32289. (-[WebCoreIconDatabaseBridge retainIconForURL:]):
  32290. (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
  32291. (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
  32292. (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
  32293. (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
  32294. (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
  32295. (-[WebCoreIconDatabaseBridge defaultDatabaseFilename]): Added
  32296. * loader/icon/IconDatabase.cpp:
  32297. (WebCore::IconDatabase::defaultDatabaseFilename): Added
  32298. (WebCore::IconDatabase::open):
  32299. (WebCore::IconDatabase::isEmpty): Added
  32300. (WebCore::IconDatabase::retainIconForURL): Removed log message
  32301. (WebCore::IconDatabase::releaseIconForURL): Removed log message
  32302. * loader/icon/IconDatabase.h:
  32303. 2006-08-11 David Hyatt <hyatt@apple.com>
  32304. Eliminate RenderImageButton.
  32305. Reviewed by darin
  32306. * WebCore.xcodeproj/project.pbxproj:
  32307. * bridge/mac/WebCoreAXObject.mm:
  32308. (-[WebCoreAXObject isImageButton]):
  32309. * html/HTMLInputElement.cpp:
  32310. (WebCore::HTMLInputElement::createRenderer):
  32311. * rendering/RenderImage.h:
  32312. (WebCore::RenderImage::isImage):
  32313. 2006-08-11 Adele Peterson <adele@apple.com>
  32314. Reviewed by Brady.
  32315. - Fix for <rdar://problem/4656274>
  32316. REGRESSION: option elements are selected when added regardless of "selected" property
  32317. Test: fast/forms/option-constructor-selected.html
  32318. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setOption):
  32319. When adding an option element, check that the option element is selected before calling setSelectedIndex.
  32320. 2006-08-11 David Hyatt <hyatt@apple.com>
  32321. Fix for bug 10349, make sure to call setChanged when an anchor changes
  32322. from not being a link to being a link (and vice versa).
  32323. Test is in fast/dynamic/link-href-change.html
  32324. Reviewed by darin
  32325. * html/HTMLAnchorElement.cpp:
  32326. (WebCore::HTMLAnchorElement::HTMLAnchorElement):
  32327. (WebCore::HTMLAnchorElement::parseMappedAttribute):
  32328. * html/HTMLAnchorElement.h:
  32329. * html/HTMLAreaElement.cpp:
  32330. (WebCore::HTMLAreaElement::parseMappedAttribute):
  32331. 2006-08-09 Rob Buis <buis@kde.org>
  32332. Reviewed by Darin.
  32333. Revert an over-optimization step that messed up the HashSet lookup.
  32334. * dom/DOMImplementation.cpp:
  32335. 2006-08-12 Oliver <ojh16@student.canterbury.ac.nz>
  32336. Rubber stamped by tim
  32337. Removed commented out code
  32338. * kcanvas/RenderSVGImage.cpp:
  32339. (WebCore::RenderSVGImage::paint):
  32340. 2006-08-12 Oliver <ojh16@student.canterbury.ac.nz>
  32341. Reviewed by geoff
  32342. Fixed regression in SVG image layout
  32343. (see bug #10346)
  32344. * kcanvas/RenderSVGImage.cpp:
  32345. (WebCore::RenderSVGImage::paint):
  32346. 2006-08-10 Anders Carlsson <acarlsson@apple.com>
  32347. Rubber-stamped by Maciej.
  32348. Move xpath to xml.
  32349. * DerivedSources.make:
  32350. * WebCore.vcproj/WebCore/WebCore.vcproj:
  32351. * WebCore.xcodeproj/project.pbxproj:
  32352. * xpath/XPathEvaluator.cpp: Removed.
  32353. * xpath/XPathEvaluator.h: Removed.
  32354. * xpath/XPathEvaluator.idl: Removed.
  32355. * xpath/XPathExpression.cpp: Removed.
  32356. * xpath/XPathExpression.h: Removed.
  32357. * xpath/XPathExpression.idl: Removed.
  32358. * xpath/XPathNSResolver.cpp: Removed.
  32359. * xpath/XPathNSResolver.h: Removed.
  32360. * xpath/XPathNSResolver.idl: Removed.
  32361. * xpath/XPathNamespace.cpp: Removed.
  32362. * xpath/XPathNamespace.h: Removed.
  32363. * xpath/XPathResult.cpp: Removed.
  32364. * xpath/XPathResult.h: Removed.
  32365. * xpath/XPathResult.idl: Removed.
  32366. * xpath/impl/XPathExpressionNode.cpp: Removed.
  32367. * xpath/impl/XPathExpressionNode.h: Removed.
  32368. * xpath/impl/XPathFunctions.cpp: Removed.
  32369. * xpath/impl/XPathFunctions.h: Removed.
  32370. * xpath/impl/XPathGrammar.y: Removed.
  32371. * xpath/impl/XPathParser.cpp: Removed.
  32372. * xpath/impl/XPathParser.h: Removed.
  32373. * xpath/impl/XPathPath.cpp: Removed.
  32374. * xpath/impl/XPathPath.h: Removed.
  32375. * xpath/impl/XPathPredicate.cpp: Removed.
  32376. * xpath/impl/XPathPredicate.h: Removed.
  32377. * xpath/impl/XPathStep.cpp: Removed.
  32378. * xpath/impl/XPathStep.h: Removed.
  32379. * xpath/impl/XPathUtil.cpp: Removed.
  32380. * xpath/impl/XPathUtil.h: Removed.
  32381. * xpath/impl/XPathValue.cpp: Removed.
  32382. * xpath/impl/XPathValue.h: Removed.
  32383. * xpath/impl/XPathVariableReference.cpp: Removed.
  32384. * xpath/impl/XPathVariableReference.h: Removed.
  32385. 2006-08-10 David Harrison <harrison@apple.com>
  32386. Reviewed by John Sullivan.
  32387. <rdar://problem/4600112> REGRESSION: VO no longer able to review text within an edit field on web pages
  32388. Test cases added: None. Manual AX testing is way too awkward, and automated testing
  32389. is not possible. See following bug...
  32390. <rdar://problem/4256882> Need automated testing support for accessibility APIs
  32391. * bridge/mac/WebCoreAXObject.mm:
  32392. (-[WebCoreAXObject value]):
  32393. Add handling for text input fields.
  32394. 2006-08-09 Graham Dennis <graham.dennis@gmail.com>
  32395. Reviewed by Darin.
  32396. - fix http://bugs.webkit.org/show_bug.cgi?id=10247
  32397. REGRESSION: Unable to build webkit without SVG/XPATH
  32398. * bindings/js/kjs_binding.cpp:
  32399. (KJS::setDOMException):
  32400. * bindings/js/kjs_dom.cpp:
  32401. (KJS::toJS):
  32402. * bindings/js/kjs_html.cpp:
  32403. (KJS::HTMLElementFunction::callAsFunction):
  32404. * bindings/js/kjs_proxy.cpp:
  32405. * bindings/js/kjs_proxy.h:
  32406. * bindings/objc/DOMInternal.h:
  32407. * bindings/objc/DOMInternal.mm:
  32408. (raiseDOMException):
  32409. * bindings/objc/DOMXPath.mm:
  32410. * bindings/objc/DOMXPathInternal.h:
  32411. * bindings/scripts/CodeGeneratorJS.pm:
  32412. * bridge/mac/WebCoreFrameBridge.mm:
  32413. (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
  32414. * css/CSSGrammar.y:
  32415. * css/CSSStyleDeclaration.cpp:
  32416. (WebCore::propertyID):
  32417. * css/cssparser.cpp:
  32418. (WebCore::CSSParser::parseValue):
  32419. * css/cssparser.h:
  32420. * css/cssstyleselector.cpp:
  32421. (WebCore::CSSStyleSelector::loadDefaultStyle):
  32422. (WebCore::CSSStyleSelector::applyProperty):
  32423. * css/cssstyleselector.h:
  32424. * dom/Document.cpp:
  32425. (WebCore::Document::Document):
  32426. (WebCore::Document::~Document):
  32427. (WebCore::Document::createElementNS):
  32428. (WebCore::Document::implicitClose):
  32429. (WebCore::Document::recalcStyleSelector):
  32430. (WebCore::Document::createEvent):
  32431. * dom/Document.h:
  32432. * dom/Document.idl:
  32433. * dom/Node.cpp:
  32434. (WebCore::Node::createRendererIfNeeded):
  32435. * dom/Node.h:
  32436. * dom/XMLTokenizer.cpp:
  32437. (WebCore::XMLTokenizer::endElementNs):
  32438. (WebCore::XMLTokenizer::insertErrorMessageBlock):
  32439. * html/HTMLEmbedElement.cpp:
  32440. * html/HTMLEmbedElement.h:
  32441. * html/HTMLObjectElement.cpp:
  32442. * html/HTMLObjectElement.h:
  32443. * kcanvas/KCanvasCreator.cpp:
  32444. * kcanvas/KCanvasCreator.h:
  32445. * kcanvas/KCanvasFilters.cpp:
  32446. * kcanvas/KCanvasFilters.h:
  32447. * kcanvas/KCanvasImage.h:
  32448. * kcanvas/KCanvasMatrix.cpp:
  32449. * kcanvas/KCanvasMatrix.h:
  32450. * kcanvas/KCanvasPath.cpp:
  32451. * kcanvas/KCanvasPath.h:
  32452. * kcanvas/KCanvasResourceListener.h:
  32453. * kcanvas/KCanvasResources.cpp:
  32454. * kcanvas/KCanvasResources.h:
  32455. * kcanvas/KCanvasTreeDebug.cpp:
  32456. * kcanvas/RenderForeignObject.cpp:
  32457. * kcanvas/RenderForeignObject.h:
  32458. * kcanvas/RenderPath.cpp:
  32459. * kcanvas/RenderPath.h:
  32460. * kcanvas/RenderSVGContainer.cpp:
  32461. * kcanvas/RenderSVGContainer.h:
  32462. * kcanvas/RenderSVGImage.cpp:
  32463. * kcanvas/RenderSVGImage.h:
  32464. * kcanvas/RenderSVGText.cpp:
  32465. * kcanvas/RenderSVGText.h:
  32466. * kcanvas/device/KRenderingDevice.cpp:
  32467. * kcanvas/device/KRenderingDevice.h:
  32468. * kcanvas/device/KRenderingFillPainter.cpp:
  32469. * kcanvas/device/KRenderingFillPainter.h:
  32470. * kcanvas/device/KRenderingPaintServer.h:
  32471. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  32472. * kcanvas/device/KRenderingPaintServerGradient.h:
  32473. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  32474. * kcanvas/device/KRenderingPaintServerPattern.h:
  32475. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  32476. * kcanvas/device/KRenderingPaintServerSolid.h:
  32477. * kcanvas/device/KRenderingStrokePainter.cpp:
  32478. * kcanvas/device/KRenderingStrokePainter.h:
  32479. * kcanvas/device/quartz/KCanvasFilterQuartz.h:
  32480. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  32481. * kcanvas/device/quartz/KCanvasItemQuartz.mm:
  32482. * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
  32483. * kcanvas/device/quartz/KCanvasPathQuartz.mm:
  32484. * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
  32485. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  32486. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  32487. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  32488. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  32489. * kcanvas/device/quartz/QuartzSupport.h:
  32490. * kcanvas/device/quartz/QuartzSupport.mm:
  32491. * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
  32492. * ksvg2/bindings/js/JSSVGElementWrapperFactory.h:
  32493. * ksvg2/css/SVGCSSParser.cpp:
  32494. * ksvg2/css/SVGCSSStyleSelector.cpp:
  32495. * ksvg2/css/SVGRenderStyle.cpp:
  32496. * ksvg2/css/SVGRenderStyle.h:
  32497. * ksvg2/css/SVGRenderStyleDefs.cpp:
  32498. * ksvg2/css/SVGRenderStyleDefs.h:
  32499. * ksvg2/ecma/GlobalObject.cpp:
  32500. * ksvg2/ecma/GlobalObject.h:
  32501. * ksvg2/events/JSSVGLazyEventListener.cpp:
  32502. * ksvg2/events/JSSVGLazyEventListener.h:
  32503. * ksvg2/events/SVGZoomEvent.cpp:
  32504. * ksvg2/events/SVGZoomEvent.h:
  32505. * ksvg2/ksvg.h:
  32506. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  32507. * ksvg2/misc/KCanvasRenderingStyle.h:
  32508. * ksvg2/misc/KSVGTimeScheduler.cpp:
  32509. * ksvg2/misc/KSVGTimeScheduler.h:
  32510. * ksvg2/misc/SVGDocumentExtensions.cpp:
  32511. * ksvg2/misc/SVGDocumentExtensions.h:
  32512. * ksvg2/misc/SVGImageLoader.cpp:
  32513. * ksvg2/misc/SVGImageLoader.h:
  32514. * ksvg2/svg/DOMList.h:
  32515. * ksvg2/svg/SVGAElement.cpp:
  32516. * ksvg2/svg/SVGAElement.h:
  32517. * ksvg2/svg/SVGAngle.cpp:
  32518. * ksvg2/svg/SVGAngle.h:
  32519. * ksvg2/svg/SVGAnimateColorElement.cpp:
  32520. * ksvg2/svg/SVGAnimateColorElement.h:
  32521. * ksvg2/svg/SVGAnimateElement.cpp:
  32522. * ksvg2/svg/SVGAnimateElement.h:
  32523. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  32524. * ksvg2/svg/SVGAnimateTransformElement.h:
  32525. * ksvg2/svg/SVGAnimatedAngle.cpp:
  32526. * ksvg2/svg/SVGAnimatedAngle.h:
  32527. * ksvg2/svg/SVGAnimatedBoolean.cpp:
  32528. * ksvg2/svg/SVGAnimatedBoolean.h:
  32529. * ksvg2/svg/SVGAnimatedColor.cpp:
  32530. * ksvg2/svg/SVGAnimatedColor.h:
  32531. * ksvg2/svg/SVGAnimatedEnumeration.cpp:
  32532. * ksvg2/svg/SVGAnimatedEnumeration.h:
  32533. * ksvg2/svg/SVGAnimatedInteger.cpp:
  32534. * ksvg2/svg/SVGAnimatedInteger.h:
  32535. * ksvg2/svg/SVGAnimatedLength.cpp:
  32536. * ksvg2/svg/SVGAnimatedLength.h:
  32537. * ksvg2/svg/SVGAnimatedLengthList.cpp:
  32538. * ksvg2/svg/SVGAnimatedLengthList.h:
  32539. * ksvg2/svg/SVGAnimatedNumber.cpp:
  32540. * ksvg2/svg/SVGAnimatedNumber.h:
  32541. * ksvg2/svg/SVGAnimatedNumberList.cpp:
  32542. * ksvg2/svg/SVGAnimatedNumberList.h:
  32543. * ksvg2/svg/SVGAnimatedPathData.cpp:
  32544. * ksvg2/svg/SVGAnimatedPathData.h:
  32545. * ksvg2/svg/SVGAnimatedPoints.cpp:
  32546. * ksvg2/svg/SVGAnimatedPoints.h:
  32547. * ksvg2/svg/SVGAnimatedPreserveAspectRatio.cpp:
  32548. * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
  32549. * ksvg2/svg/SVGAnimatedRect.cpp:
  32550. * ksvg2/svg/SVGAnimatedRect.h:
  32551. * ksvg2/svg/SVGAnimatedString.cpp:
  32552. * ksvg2/svg/SVGAnimatedString.h:
  32553. * ksvg2/svg/SVGAnimatedTemplate.h:
  32554. * ksvg2/svg/SVGAnimatedTransformList.cpp:
  32555. * ksvg2/svg/SVGAnimatedTransformList.h:
  32556. * ksvg2/svg/SVGAnimationElement.cpp:
  32557. * ksvg2/svg/SVGAnimationElement.h:
  32558. * ksvg2/svg/SVGCircleElement.cpp:
  32559. * ksvg2/svg/SVGCircleElement.h:
  32560. * ksvg2/svg/SVGClipPathElement.cpp:
  32561. * ksvg2/svg/SVGClipPathElement.h:
  32562. * ksvg2/svg/SVGColor.cpp:
  32563. * ksvg2/svg/SVGColor.h:
  32564. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  32565. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  32566. * ksvg2/svg/SVGCursorElement.cpp:
  32567. * ksvg2/svg/SVGCursorElement.h:
  32568. * ksvg2/svg/SVGDOMImplementation.cpp:
  32569. * ksvg2/svg/SVGDOMImplementation.h:
  32570. * ksvg2/svg/SVGDefsElement.cpp:
  32571. * ksvg2/svg/SVGDefsElement.h:
  32572. * ksvg2/svg/SVGDescElement.cpp:
  32573. * ksvg2/svg/SVGDescElement.h:
  32574. * ksvg2/svg/SVGDocument.cpp:
  32575. * ksvg2/svg/SVGDocument.h:
  32576. * ksvg2/svg/SVGElement.cpp:
  32577. * ksvg2/svg/SVGElement.h:
  32578. * ksvg2/svg/SVGElementInstance.cpp:
  32579. * ksvg2/svg/SVGElementInstance.h:
  32580. * ksvg2/svg/SVGElementInstanceList.cpp:
  32581. * ksvg2/svg/SVGElementInstanceList.h:
  32582. * ksvg2/svg/SVGEllipseElement.cpp:
  32583. * ksvg2/svg/SVGEllipseElement.h:
  32584. * ksvg2/svg/SVGExternalResourcesRequired.cpp:
  32585. * ksvg2/svg/SVGExternalResourcesRequired.h:
  32586. * ksvg2/svg/SVGFEBlendElement.cpp:
  32587. * ksvg2/svg/SVGFEBlendElement.h:
  32588. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  32589. * ksvg2/svg/SVGFEColorMatrixElement.h:
  32590. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  32591. * ksvg2/svg/SVGFEComponentTransferElement.h:
  32592. * ksvg2/svg/SVGFECompositeElement.cpp:
  32593. * ksvg2/svg/SVGFECompositeElement.h:
  32594. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  32595. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  32596. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  32597. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  32598. * ksvg2/svg/SVGFEDistantLightElement.cpp:
  32599. * ksvg2/svg/SVGFEDistantLightElement.h:
  32600. * ksvg2/svg/SVGFEFloodElement.cpp:
  32601. * ksvg2/svg/SVGFEFloodElement.h:
  32602. * ksvg2/svg/SVGFEFuncAElement.cpp:
  32603. * ksvg2/svg/SVGFEFuncAElement.h:
  32604. * ksvg2/svg/SVGFEFuncBElement.cpp:
  32605. * ksvg2/svg/SVGFEFuncBElement.h:
  32606. * ksvg2/svg/SVGFEFuncGElement.cpp:
  32607. * ksvg2/svg/SVGFEFuncGElement.h:
  32608. * ksvg2/svg/SVGFEFuncRElement.cpp:
  32609. * ksvg2/svg/SVGFEFuncRElement.h:
  32610. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  32611. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  32612. * ksvg2/svg/SVGFEImageElement.cpp:
  32613. * ksvg2/svg/SVGFEImageElement.h:
  32614. * ksvg2/svg/SVGFELightElement.cpp:
  32615. * ksvg2/svg/SVGFELightElement.h:
  32616. * ksvg2/svg/SVGFEMergeElement.cpp:
  32617. * ksvg2/svg/SVGFEMergeElement.h:
  32618. * ksvg2/svg/SVGFEMergeNodeElement.cpp:
  32619. * ksvg2/svg/SVGFEMergeNodeElement.h:
  32620. * ksvg2/svg/SVGFEOffsetElement.cpp:
  32621. * ksvg2/svg/SVGFEOffsetElement.h:
  32622. * ksvg2/svg/SVGFEPointLightElement.cpp:
  32623. * ksvg2/svg/SVGFEPointLightElement.h:
  32624. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  32625. * ksvg2/svg/SVGFESpecularLightingElement.h:
  32626. * ksvg2/svg/SVGFESpotLightElement.cpp:
  32627. * ksvg2/svg/SVGFESpotLightElement.h:
  32628. * ksvg2/svg/SVGFETileElement.cpp:
  32629. * ksvg2/svg/SVGFETileElement.h:
  32630. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  32631. * ksvg2/svg/SVGFETurbulenceElement.h:
  32632. * ksvg2/svg/SVGFilterElement.cpp:
  32633. * ksvg2/svg/SVGFilterElement.h:
  32634. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
  32635. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  32636. * ksvg2/svg/SVGFitToViewBox.cpp:
  32637. * ksvg2/svg/SVGFitToViewBox.h:
  32638. * ksvg2/svg/SVGForeignObjectElement.cpp:
  32639. * ksvg2/svg/SVGForeignObjectElement.h:
  32640. * ksvg2/svg/SVGGElement.cpp:
  32641. * ksvg2/svg/SVGGElement.h:
  32642. * ksvg2/svg/SVGGradientElement.cpp:
  32643. * ksvg2/svg/SVGGradientElement.h:
  32644. * ksvg2/svg/SVGHelper.cpp:
  32645. * ksvg2/svg/SVGHelper.h:
  32646. * ksvg2/svg/SVGImageElement.cpp:
  32647. * ksvg2/svg/SVGImageElement.h:
  32648. * ksvg2/svg/SVGLangSpace.cpp:
  32649. * ksvg2/svg/SVGLangSpace.h:
  32650. * ksvg2/svg/SVGLength.cpp:
  32651. * ksvg2/svg/SVGLength.h:
  32652. * ksvg2/svg/SVGLengthList.cpp:
  32653. * ksvg2/svg/SVGLengthList.h:
  32654. * ksvg2/svg/SVGLineElement.cpp:
  32655. * ksvg2/svg/SVGLineElement.h:
  32656. * ksvg2/svg/SVGLinearGradientElement.cpp:
  32657. * ksvg2/svg/SVGLinearGradientElement.h:
  32658. * ksvg2/svg/SVGList.h:
  32659. * ksvg2/svg/SVGLocatable.cpp:
  32660. * ksvg2/svg/SVGLocatable.h:
  32661. * ksvg2/svg/SVGMarkerElement.cpp:
  32662. * ksvg2/svg/SVGMarkerElement.h:
  32663. * ksvg2/svg/SVGMaskElement.cpp:
  32664. * ksvg2/svg/SVGMaskElement.h:
  32665. * ksvg2/svg/SVGMatrix.cpp:
  32666. * ksvg2/svg/SVGMatrix.h:
  32667. * ksvg2/svg/SVGNumber.cpp:
  32668. * ksvg2/svg/SVGNumber.h:
  32669. * ksvg2/svg/SVGNumberList.cpp:
  32670. * ksvg2/svg/SVGNumberList.h:
  32671. * ksvg2/svg/SVGPaint.cpp:
  32672. * ksvg2/svg/SVGPaint.h:
  32673. * ksvg2/svg/SVGPathElement.cpp:
  32674. * ksvg2/svg/SVGPathElement.h:
  32675. * ksvg2/svg/SVGPathSeg.cpp:
  32676. * ksvg2/svg/SVGPathSeg.h:
  32677. * ksvg2/svg/SVGPathSegArc.cpp:
  32678. * ksvg2/svg/SVGPathSegArc.h:
  32679. * ksvg2/svg/SVGPathSegClosePath.cpp:
  32680. * ksvg2/svg/SVGPathSegClosePath.h:
  32681. * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
  32682. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  32683. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
  32684. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  32685. * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
  32686. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  32687. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
  32688. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  32689. * ksvg2/svg/SVGPathSegLineto.cpp:
  32690. * ksvg2/svg/SVGPathSegLineto.h:
  32691. * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
  32692. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  32693. * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
  32694. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  32695. * ksvg2/svg/SVGPathSegList.cpp:
  32696. * ksvg2/svg/SVGPathSegList.h:
  32697. * ksvg2/svg/SVGPathSegMoveto.cpp:
  32698. * ksvg2/svg/SVGPathSegMoveto.h:
  32699. * ksvg2/svg/SVGPatternElement.cpp:
  32700. * ksvg2/svg/SVGPatternElement.h:
  32701. * ksvg2/svg/SVGPoint.cpp:
  32702. * ksvg2/svg/SVGPoint.h:
  32703. * ksvg2/svg/SVGPointList.cpp:
  32704. * ksvg2/svg/SVGPointList.h:
  32705. * ksvg2/svg/SVGPolyElement.cpp:
  32706. * ksvg2/svg/SVGPolyElement.h:
  32707. * ksvg2/svg/SVGPolygonElement.cpp:
  32708. * ksvg2/svg/SVGPolygonElement.h:
  32709. * ksvg2/svg/SVGPolylineElement.cpp:
  32710. * ksvg2/svg/SVGPolylineElement.h:
  32711. * ksvg2/svg/SVGPreserveAspectRatio.cpp:
  32712. * ksvg2/svg/SVGPreserveAspectRatio.h:
  32713. * ksvg2/svg/SVGRadialGradientElement.cpp:
  32714. * ksvg2/svg/SVGRadialGradientElement.h:
  32715. * ksvg2/svg/SVGRect.cpp:
  32716. * ksvg2/svg/SVGRect.h:
  32717. * ksvg2/svg/SVGRectElement.cpp:
  32718. * ksvg2/svg/SVGRectElement.h:
  32719. * ksvg2/svg/SVGSVGElement.cpp:
  32720. * ksvg2/svg/SVGSVGElement.h:
  32721. * ksvg2/svg/SVGScriptElement.cpp:
  32722. * ksvg2/svg/SVGScriptElement.h:
  32723. * ksvg2/svg/SVGSetElement.cpp:
  32724. * ksvg2/svg/SVGSetElement.h:
  32725. * ksvg2/svg/SVGStopElement.cpp:
  32726. * ksvg2/svg/SVGStopElement.h:
  32727. * ksvg2/svg/SVGStringList.cpp:
  32728. * ksvg2/svg/SVGStringList.h:
  32729. * ksvg2/svg/SVGStylable.cpp:
  32730. * ksvg2/svg/SVGStylable.h:
  32731. * ksvg2/svg/SVGStyleElement.cpp:
  32732. * ksvg2/svg/SVGStyleElement.h:
  32733. * ksvg2/svg/SVGStyledElement.cpp:
  32734. * ksvg2/svg/SVGStyledElement.h:
  32735. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  32736. * ksvg2/svg/SVGStyledLocatableElement.h:
  32737. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  32738. * ksvg2/svg/SVGStyledTransformableElement.h:
  32739. * ksvg2/svg/SVGSwitchElement.cpp:
  32740. * ksvg2/svg/SVGSwitchElement.h:
  32741. * ksvg2/svg/SVGSymbolElement.cpp:
  32742. * ksvg2/svg/SVGSymbolElement.h:
  32743. * ksvg2/svg/SVGTRefElement.cpp:
  32744. * ksvg2/svg/SVGTRefElement.h:
  32745. * ksvg2/svg/SVGTSpanElement.cpp:
  32746. * ksvg2/svg/SVGTSpanElement.h:
  32747. * ksvg2/svg/SVGTests.cpp:
  32748. * ksvg2/svg/SVGTests.h:
  32749. * ksvg2/svg/SVGTextContentElement.cpp:
  32750. * ksvg2/svg/SVGTextContentElement.h:
  32751. * ksvg2/svg/SVGTextElement.cpp:
  32752. * ksvg2/svg/SVGTextElement.h:
  32753. * ksvg2/svg/SVGTextPositioningElement.cpp:
  32754. * ksvg2/svg/SVGTextPositioningElement.h:
  32755. * ksvg2/svg/SVGTitleElement.cpp:
  32756. * ksvg2/svg/SVGTitleElement.h:
  32757. * ksvg2/svg/SVGTransform.cpp:
  32758. * ksvg2/svg/SVGTransform.h:
  32759. * ksvg2/svg/SVGTransformList.cpp:
  32760. * ksvg2/svg/SVGTransformList.h:
  32761. * ksvg2/svg/SVGTransformable.cpp:
  32762. * ksvg2/svg/SVGTransformable.h:
  32763. * ksvg2/svg/SVGURIReference.cpp:
  32764. * ksvg2/svg/SVGURIReference.h:
  32765. * ksvg2/svg/SVGUseElement.cpp:
  32766. * ksvg2/svg/SVGUseElement.h:
  32767. * ksvg2/svg/SVGViewElement.cpp:
  32768. * ksvg2/svg/SVGViewElement.h:
  32769. * ksvg2/svg/SVGZoomAndPan.cpp:
  32770. * ksvg2/svg/SVGZoomAndPan.h:
  32771. * ksvg2/svg/svgpathparser.cpp:
  32772. * ksvg2/svg/svgpathparser.h:
  32773. * page/DOMWindow.idl:
  32774. * page/Frame.cpp:
  32775. (WebCore::Frame::Frame):
  32776. (WebCore::Frame::begin):
  32777. (WebCore::Frame::pauseTimeouts):
  32778. (WebCore::Frame::resumeTimeouts):
  32779. * platform/GraphicsContext.h:
  32780. * platform/cg/GraphicsContextCG.cpp:
  32781. * rendering/RenderLayer.cpp:
  32782. (WebCore::RenderLayer::isTransparent):
  32783. * rendering/RenderObject.cpp:
  32784. (WebCore::RenderObject::containingBlock):
  32785. * rendering/RenderObject.h:
  32786. * rendering/RenderStyle.cpp:
  32787. (WebCore::RenderStyle::RenderStyle):
  32788. (WebCore::RenderStyle::inheritFrom):
  32789. (WebCore::RenderStyle::operator==):
  32790. (WebCore::RenderStyle::inheritedNotEqual):
  32791. (WebCore::RenderStyle::diff):
  32792. * rendering/RenderStyle.h:
  32793. * rendering/RenderTreeAsText.cpp:
  32794. (WebCore::write):
  32795. (WebCore::externalRepresentation):
  32796. * xpath/XPathEvaluator.cpp:
  32797. * xpath/XPathEvaluator.h:
  32798. * xpath/XPathExpression.cpp:
  32799. * xpath/XPathExpression.h:
  32800. * xpath/XPathNSResolver.cpp:
  32801. * xpath/XPathNSResolver.h:
  32802. * xpath/XPathNamespace.cpp:
  32803. * xpath/XPathNamespace.h:
  32804. * xpath/XPathResult.cpp:
  32805. * xpath/XPathResult.h:
  32806. * xpath/impl/XPathExpressionNode.cpp:
  32807. * xpath/impl/XPathExpressionNode.h:
  32808. * xpath/impl/XPathFunctions.cpp:
  32809. * xpath/impl/XPathFunctions.h:
  32810. * xpath/impl/XPathGrammar.y:
  32811. * xpath/impl/XPathParser.cpp:
  32812. * xpath/impl/XPathParser.h:
  32813. * xpath/impl/XPathPath.cpp:
  32814. * xpath/impl/XPathPath.h:
  32815. * xpath/impl/XPathPredicate.cpp:
  32816. * xpath/impl/XPathPredicate.h:
  32817. * xpath/impl/XPathStep.cpp:
  32818. * xpath/impl/XPathStep.h:
  32819. * xpath/impl/XPathUtil.cpp:
  32820. * xpath/impl/XPathUtil.h:
  32821. * xpath/impl/XPathValue.cpp:
  32822. * xpath/impl/XPathValue.h:
  32823. * xpath/impl/XPathVariableReference.cpp:
  32824. * xpath/impl/XPathVariableReference.h:
  32825. Change all #if SVG_SUPPORT to #ifdef SVG_SUPPORT and
  32826. #if XPATH_SUPPORT to #ifdef XPATH_SUPPORT
  32827. (except for one #if !SVG_SUPPORT to a #ifndef SVG_SUPPORT
  32828. in RenderTreeAsText.cpp)
  32829. 2006-08-08 Rob Buis <buis@kde.org>
  32830. Reviewed by Darin.
  32831. http://bugs.webkit.org/show_bug.cgi?id=10230
  32832. SVGDOMImplementation should die (and be rolled into DOMImplementation)
  32833. Delete SVGDOMImplementation and references to it. The
  32834. svg specific functionality is now in DOMImplementation.
  32835. * WebCore.xcodeproj/project.pbxproj:
  32836. * dom/DOMImplementation.cpp:
  32837. (WebCore::svgFeatureSet):
  32838. (WebCore::DOMImplementation::hasFeature):
  32839. (WebCore::DOMImplementation::createDocument):
  32840. (WebCore::DOMImplementation::createSVGDocument):
  32841. * dom/DOMImplementation.h:
  32842. * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Removed.
  32843. * ksvg2/misc/KSVGTimeScheduler.cpp:
  32844. * ksvg2/svg/SVGColor.cpp:
  32845. * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
  32846. * ksvg2/svg/SVGDocument.cpp:
  32847. (WebCore::SVGDocument::SVGDocument):
  32848. * ksvg2/svg/SVGDocument.h:
  32849. * ksvg2/svg/SVGElement.cpp:
  32850. (WebCore::SVGElement::isSupported):
  32851. * ksvg2/svg/SVGFEBlendElement.cpp:
  32852. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  32853. * ksvg2/svg/SVGFEComponentTransferElement.cpp:
  32854. * ksvg2/svg/SVGFECompositeElement.cpp:
  32855. * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
  32856. * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
  32857. * ksvg2/svg/SVGFEFloodElement.cpp:
  32858. * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
  32859. * ksvg2/svg/SVGFELightElement.cpp:
  32860. * ksvg2/svg/SVGFEMergeElement.cpp:
  32861. * ksvg2/svg/SVGFEOffsetElement.cpp:
  32862. * ksvg2/svg/SVGFESpecularLightingElement.cpp:
  32863. * ksvg2/svg/SVGFETileElement.cpp:
  32864. * ksvg2/svg/SVGFETurbulenceElement.cpp:
  32865. * ksvg2/svg/SVGGradientElement.cpp:
  32866. * ksvg2/svg/SVGPatternElement.cpp:
  32867. * ksvg2/svg/SVGPolyElement.cpp:
  32868. * ksvg2/svg/SVGStopElement.cpp:
  32869. * ksvg2/svg/SVGStyledElement.cpp:
  32870. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  32871. * ksvg2/svg/SVGTests.cpp:
  32872. (WebCore::SVGTests::isValid):
  32873. * ksvg2/svg/SVGTransformable.cpp:
  32874. * page/Frame.cpp:
  32875. (WebCore::Frame::begin):
  32876. 2006-08-07 Brady Eidson <beidson@apple.com>
  32877. Reviewed by Anders and John
  32878. Icons can now refresh when new data is sent from WebKit, both on disk and in memory
  32879. * bridge/mac/WebCoreIconDatabaseBridge.h:
  32880. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  32881. (WebCore::IconDatabase::loadIconFromURL): Allows WebCore/Kit to kick off a load
  32882. outside of any greater context
  32883. (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
  32884. (-[WebCoreIconDatabaseBridge isIconExpiredForPageURL:]): Allows WebKit
  32885. to get whether or not an icon has expired
  32886. * loader/icon/IconDatabase.cpp:
  32887. (WebCore::IconDatabase::recreateDatabase): Changed database schema slightly
  32888. (WebCore::IconDatabase::createPrivateTables): Changed database schema slightly
  32889. (WebCore::IconDatabase::iconForPageURL):
  32890. (WebCore::IconDatabase::isIconExpiredForIconURL): Get if an icon has expired
  32891. (WebCore::IconDatabase::isIconExpiredForPageURL): Get if an icon has expired
  32892. (WebCore::IconDatabase::setIconDataForIconURL): Force a refresh of the in memory
  32893. image when new icon data is loaded
  32894. (WebCore::IconDatabase::setIconURLForPageURL): added a check for null iconID
  32895. * loader/icon/IconDatabase.h: added/changed some methods
  32896. * loader/icon/SiteIcon.cpp:
  32897. (SiteIcon::getImage): simplified/removed debugging code
  32898. (SiteIcon::manuallySetImageData): allow the image data to be changed when new icon
  32899. data is loaded
  32900. 2006-08-05 Darin Adler <darin@apple.com>
  32901. Reviewed by Eric Seidel.
  32902. - fix a storage leak
  32903. * rendering/RenderView.cpp: (WebCore::RenderView::setSelection):
  32904. Delete the values if we are going to exit without using the maps.
  32905. Otherwise all the values leak.
  32906. 2006-08-05 Darin Adler <darin@apple.com>
  32907. Reviewed by Hyatt.
  32908. - fix http://bugs.webkit.org/show_bug.cgi?id=10213
  32909. REGRESSION: Crash in WebCore::RenderLayer::isTransparent involving <iframe> and <select>
  32910. Test: fast/frames/iframe-option-crash.xhtml
  32911. * rendering/RenderView.cpp: (WebCore::RenderView::paintBoxDecorations):
  32912. Check for a nil renderer.
  32913. 2006-08-04 David Hyatt <hyatt@apple.com>
  32914. Fix for Radar bug #4644045, regression where dragging selection no longer
  32915. works for floats contained inside layers. I added an optimization to
  32916. refine dirty rect checking for layers, and it incorrectly excluded floats
  32917. from the paint bounds since PaintPhaseSelection was not considered when
  32918. analyzing the floatRect().
  32919. Reviewed by beth
  32920. * rendering/RenderBlock.cpp:
  32921. (WebCore::RenderBlock::paint):
  32922. 2006-08-04 David Hyatt <hyatt@apple.com>
  32923. Fix remove() so that it is equivalent to calling removeChild on the
  32924. parent. This involved moving three operations that remove did.
  32925. (1) Move the accessibility object cache removal into the destroy methods,
  32926. since this really should just happen when a render object is going away.
  32927. (2) removeFromObjectLists shifted into removeChild, which means it will
  32928. now be called more often (this is a correct change). Note that there is
  32929. also now a new guard on removeFromObjectLists so that it won't do any
  32930. work unless the document is not being destroyed.
  32931. (3) The big one. deleteLineBoxWrapper was not getting called to clean up
  32932. the line box tree. This moved right into RenderContainer's removeChildNode so
  32933. that it is now done even in the lowest level RenderContainer removal primitive.
  32934. Reviewed by beth
  32935. * rendering/RenderContainer.cpp:
  32936. (WebCore::RenderContainer::removeChildNode):
  32937. (WebCore::RenderContainer::removeChild):
  32938. * rendering/RenderObject.cpp:
  32939. (WebCore::RenderObject::removeFromObjectLists):
  32940. (WebCore::RenderObject::destroy):
  32941. * rendering/RenderObject.h:
  32942. (WebCore::RenderObject::remove):
  32943. * rendering/RenderWidget.cpp:
  32944. (WebCore::RenderWidget::destroy):
  32945. 2006-08-04 David Hyatt <hyatt@apple.com>
  32946. Back out the fix for list marker crashes. The actual bug here is that
  32947. there is a confusing mismatch between remove() and removeChild() in the
  32948. render tree. remove() does a little bit of extra work that removeChild
  32949. should be doing instead (so that remove() can just be a shorthand for
  32950. removeChild).
  32951. This conservative fix does not solve the remove/removeChild mismatch
  32952. but instead just changes the list marker updating code to use remove
  32953. instead.
  32954. Reviewed by beth
  32955. Test Case: fast/lists/dynamic-marker-crash.html
  32956. * rendering/ListMarkerBox.cpp:
  32957. * rendering/ListMarkerBox.h:
  32958. * rendering/RenderListItem.cpp:
  32959. (WebCore::RenderListItem::updateMarkerLocation):
  32960. 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
  32961. Reviewed by Darin.
  32962. - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
  32963. Make WebCore (and friends) compile with -Wshorten-64-to-32
  32964. * Adds -Wshorten-64-to-32 flag to Xcode project.
  32965. * Adds 'f' to float literals where expecting a float.
  32966. * Use cosf() instead of cos() when assigning to a float.
  32967. * WebCore.xcodeproj/project.pbxproj:
  32968. * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m:
  32969. (+[WKDiffuseLightingFilter initialize]):
  32970. * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m:
  32971. (-[WKDiscreteTransferFilter outputImage]):
  32972. * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m:
  32973. (+[WKDisplacementMapFilter initialize]):
  32974. * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m:
  32975. (+[WKSpecularLightingFilter initialize]):
  32976. * kcanvas/device/quartz/filters/WKSpotLightFilter.m:
  32977. (-[WKSpotLightFilter outputImage]):
  32978. * kcanvas/device/quartz/filters/WKTableTransferFilter.m:
  32979. (-[WKTableTransferFilter outputImage]):
  32980. 2006-08-03 David Hyatt <hyatt@apple.com>
  32981. Fix for bug 10229, don't bother trying to clear when no floats are
  32982. present. I suspect there's still a bug in the math that follows, but
  32983. this fix is safer in that it just does the obvious thing (and doesn't
  32984. compute any clearance if no floats are even around).
  32985. Reviewed by maciej
  32986. * ChangeLog:
  32987. * rendering/RenderBlock.cpp:
  32988. (WebCore::RenderBlock::getClearDelta):
  32989. 2006-08-03 Justin Garcia <justin.garcia@apple.com>
  32990. Reviewed by harrison
  32991. <rdar://problem/4641033/4515463/4052426/4046570/4053718/4053724/4060115/4062858>
  32992. Copy/Paste fidelity was bad.
  32993. * editing/ApplyStyleCommand.cpp:
  32994. (WebCore::ApplyStyleCommand::applyInlineStyle):
  32995. * editing/markup.cpp:
  32996. (WebCore::startMarkup): We were not adding non-inheritable styles
  32997. to the markup for an element unless they were in the elements inline
  32998. style declaration.
  32999. 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
  33000. Reviewed by Darin.
  33001. - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
  33002. Make WebCore compile with -Wundef
  33003. * Adds -Wundef flag to Xcode project
  33004. * Converts #ifs to #ifdef and #ifndefs where needed.
  33005. * Replaces #ifdef WIN32 with #if PLATFORM(WIN_OS) or PLATFORM(WIN)
  33006. (and in one instance in config.h with #if !COMPILER(MSVC))
  33007. * Added #define YYMAXDEPTH 10000 in XPathGrammar.y and CSSGrammar.y
  33008. to fix a warning from within Bison.
  33009. * Cleaned up style a little in surrounding code.
  33010. * WebCore.xcodeproj/project.pbxproj:
  33011. * bridge/mac/WebCoreAXObject.mm:
  33012. (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
  33013. * config.h:
  33014. * css/CSSGrammar.y:
  33015. * css/MediaFeatureNames.cpp:
  33016. * css/MediaFeatureNames.h:
  33017. * css/cssparser.cpp:
  33018. * dom/ContainerNode.cpp:
  33019. (WebCore::ContainerNode::setActive):
  33020. * dom/Element.cpp:
  33021. (WebCore::Element::attach):
  33022. * dom/Element.h:
  33023. * dom/EventNames.cpp:
  33024. * dom/EventNames.h:
  33025. * dom/NamedAttrMap.h:
  33026. * dom/Position.cpp:
  33027. * dom/QualifiedName.cpp:
  33028. * dom/QualifiedName.h:
  33029. * dom/Range.h:
  33030. * dom/XMLTokenizer.cpp:
  33031. (WebCore::XMLTokenizer::error):
  33032. * html/HTMLTokenizer.cpp:
  33033. (WebCore::HTMLTokenizer::scriptHandler):
  33034. (WebCore::HTMLTokenizer::scriptExecution):
  33035. (WebCore::HTMLTokenizer::parseTag):
  33036. (WebCore::HTMLTokenizer::continueProcessing):
  33037. (WebCore::HTMLTokenizer::write):
  33038. (WebCore::HTMLTokenizer::timerFired):
  33039. (WebCore::HTMLTokenizer::notifyFinished):
  33040. * kcanvas/device/quartz/KCanvasFilterQuartz.h:
  33041. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  33042. * ksvg2/css/SVGRenderStyle.h:
  33043. * ksvg2/css/SVGRenderStyleDefs.h:
  33044. * ksvg2/scripts/make_names.pl:
  33045. * loader/CachedResource.h:
  33046. * loader/LoaderFunctions.h:
  33047. * loader/loader.h:
  33048. * page/Frame.cpp:
  33049. * page/FrameTree.cpp:
  33050. * page/FrameView.cpp:
  33051. (WebCore::FrameView::clear):
  33052. (WebCore::FrameView::layout):
  33053. (WebCore::FrameView::layoutTimerFired):
  33054. (WebCore::FrameView::scheduleRelayout):
  33055. (WebCore::FrameView::unscheduleRelayout):
  33056. * platform/AtomicString.cpp:
  33057. * platform/AtomicString.h:
  33058. * platform/Cursor.h:
  33059. * platform/DeprecatedArray.h:
  33060. * platform/DeprecatedString.cpp:
  33061. (WebCore::allocateHandle):
  33062. (WebCore::initializeHandleNodeBlock):
  33063. (WebCore::freeHandle):
  33064. * platform/FloatPoint.h:
  33065. * platform/FloatRect.h:
  33066. * platform/FloatSize.h:
  33067. * platform/GraphicsContext.h:
  33068. * platform/Image.h:
  33069. * platform/IntPoint.h:
  33070. * platform/IntRect.h:
  33071. (WebCore::IntRect::inflateX):
  33072. (WebCore::IntRect::inflateY):
  33073. * platform/IntSize.h:
  33074. * platform/PlatformKeyboardEvent.h:
  33075. * platform/PlatformMouseEvent.h:
  33076. * platform/PlatformString.h:
  33077. * platform/ResourceLoader.h:
  33078. * platform/ResourceLoaderInternal.h:
  33079. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  33080. * platform/ScrollView.h:
  33081. * platform/StaticConstructors.h:
  33082. * platform/StreamingTextDecoderICU.cpp:
  33083. (WebCore::StreamingTextDecoderICU::convert):
  33084. * platform/StringImpl.h:
  33085. * platform/Widget.h:
  33086. * platform/mac/BlockExceptions.mm:
  33087. * platform/mac/ColorMac.mm:
  33088. (+[WebCoreControlTintObserver WebCore]):
  33089. * platform/mac/FloatPointMac.mm:
  33090. * platform/mac/FloatRectMac.mm:
  33091. * platform/mac/FloatSizeMac.mm:
  33092. * platform/mac/FontMac.mm:
  33093. * platform/mac/GraphicsContextMac.mm:
  33094. (WebCore::GraphicsContext::drawFocusRing):
  33095. * platform/mac/IntPointMac.mm:
  33096. * platform/mac/IntRectMac.mm:
  33097. * platform/mac/IntSizeMac.mm:
  33098. * platform/mac/WebCoreSystemInterface.h:
  33099. * rendering/RenderBlock.h:
  33100. * rendering/RenderTableCell.h:
  33101. * rendering/bidi.cpp:
  33102. (WebCore::appendRun):
  33103. (WebCore::RenderBlock::layoutInlineChildren):
  33104. * xml/XSLTProcessor.cpp:
  33105. (WebCore::parseErrorFunc):
  33106. * xpath/impl/XPathGrammar.y:
  33107. 2006-08-03 Adam Roben <aroben@apple.com>
  33108. Reviewed by Maciej and Beth.
  33109. Fix use-after-dispose heap corruption bug.
  33110. * rendering/ListMarkerBox.cpp:
  33111. (WebCore::ListMarkerBox::destroy): Only call removeChild if we're not
  33112. destroying the document
  33113. 2006-08-03 Adam Roben <aroben@apple.com>
  33114. Reviewed by Anders.
  33115. - Fixed Windows build.
  33116. * platform/Color.cpp:
  33117. (WebCore::makeRGBAFromHSLA): Whitespace change
  33118. * platform/win/TemporaryLinkStubs.cpp: Add new method stubs
  33119. (PlatformScrollBar::PlatformScrollBar):
  33120. (PlatformScrollBar::~PlatformScrollBar):
  33121. (PlatformScrollBar::width):
  33122. (PlatformScrollBar::height):
  33123. (PlatformScrollBar::setEnabled):
  33124. (PlatformScrollBar::paint):
  33125. (PlatformScrollBar::setScrollBarValue):
  33126. (PlatformScrollBar::setKnobProportion):
  33127. (PlatformScrollBar::setRect):
  33128. (ScrollBar::ScrollBar):
  33129. (ScrollBar::scroll):
  33130. (ScrollBar::setValue):
  33131. 2006-08-02 Justin Garcia <justin.garcia@apple.com>
  33132. Reviewed by mjs
  33133. <http://bugs.webkit.org/show_bug.cgi?id=10225>
  33134. GMail Editor: Change Hilite Color doesn't work
  33135. * editing/JSEditor.cpp: Added support for execCommand("HiliteColor", ...).
  33136. It's what GMail uses to implement text hiliting. It's just a synonym for BackColor.
  33137. * editing/SelectionController.cpp:
  33138. (WebCore::SelectionController::nodeWillBeRemoved): Moved a comment
  33139. a more appropriate place.
  33140. 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33141. Reviewed by Adele and Darin.
  33142. - fix http://bugs.webkit.org/show_bug.cgi?id=10177
  33143. REGRESSION: Successfully dragging text into a disabled field
  33144. Test: fast/forms/textfield-drag-into-disabled.html
  33145. * rendering/RenderTextControl.cpp:
  33146. (WebCore::RenderTextControl::createDivStyle): Changed to set -webkit-user-modify
  33147. to read-only on the inner div if the control is disabled.
  33148. (WebCore::RenderTextControl::updateFromElement): Ditto.
  33149. 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33150. Reviewed by Darin.
  33151. - fix http://bugs.webkit.org/show_bug.cgi?id=10198
  33152. REGRESSION: WebKit r15750 crashes while loading anthem.com
  33153. Test: fast/overflow/generated-content-crash.html
  33154. * rendering/RenderLayer.cpp:
  33155. (WebCore::RenderLayer::updateScrollInfoAfterLayout): Added a null check for
  33156. the renderer's element. Generated content does not have an element and
  33157. therefore does not need to maintain overflow status.
  33158. 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33159. Reviewed by Anders.
  33160. - fix http://bugs.webkit.org/show_bug.cgi?id=10202
  33161. REGRESSION: Repro crash when loading an empty image document
  33162. Test: fast/tokenizer/image-empty-crash.html
  33163. * loader/ImageDocument.cpp:
  33164. (WebCore::ImageTokenizer::stopParsing): Added null check for m_imageElement.
  33165. (WebCore::ImageTokenizer::finish): Ditto.
  33166. 2006-08-03 Darin Adler <darin@apple.com>
  33167. Reviewed by Anders.
  33168. - clean up "flip"-related code a tiny bit
  33169. * platform/Screen.h: Removed redundant parameter names.
  33170. * platform/mac/ScreenMac.mm:
  33171. (WebCore::flipScreenRect): Changed to call flipScreenPoint so we only have one
  33172. copy of the flipping code.
  33173. (WebCore::flipScreenPoint): Fixed indentation.
  33174. * bridge/mac/WebCoreFrameBridge.mm: (globalPoint): Removed type casts and
  33175. simplified a bit.
  33176. * platform/mac/PlatformMouseEventMac.mm: (WebCore::globalPositionForEvent):
  33177. * platform/mac/WheelEventMac.mm: (WebCore::globalPositionForEvent):
  33178. Removed unneeded local variable.
  33179. 2006-08-02 David Hyatt <hyatt@apple.com>
  33180. Abstract RenderLayer scrollbar creation and destruction so that there
  33181. is a clean spot in which to drop in engine scrollbar stuff.
  33182. Reviewed by timo
  33183. * platform/ScrollBar.h:
  33184. (WebCore::ScrollBar::hasPlatformScrollBars):
  33185. * rendering/RenderLayer.cpp:
  33186. (WebCore::RenderLayer::createScrollbar):
  33187. (WebCore::RenderLayer::destroyScrollbar):
  33188. (WebCore::RenderLayer::setHasHorizontalScrollbar):
  33189. (WebCore::RenderLayer::setHasVerticalScrollbar):
  33190. * rendering/RenderLayer.h:
  33191. 2006-08-02 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33192. Reviewed by Darin.
  33193. - fix http://bugs.webkit.org/show_bug.cgi?id=3438
  33194. incorrect display of transparent 1x1 PNGs
  33195. Test: fast/replaced/image-solid-color-with-alpha.html
  33196. * platform/mac/ImageMac.mm:
  33197. (WebCore::Image::checkForSolidColor): Changed to divide each color component
  33198. by the alpha component. You need to do that since the bitmap context has
  33199. premultiplied alpha but m_solidColor should be non-premultiplied.
  33200. 2006-08-02 Adam Roben <aroben@apple.com>
  33201. Reviewed by Brady.
  33202. - Remove redundant #include
  33203. * loader/loader.cpp:
  33204. 2006-07-31 Sam Weinig <sam.weinig@gmail.com>
  33205. Reviewed by Darin.
  33206. - patch for http://bugs.webkit.org/show_bug.cgi?id=9955
  33207. Colors scaled from [0, 1] range to [0, 255] incorrectly
  33208. Fixes scaling issue and fixes Color to follow style guidelines.
  33209. * css/cssstyleselector.cpp:
  33210. (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
  33211. * platform/Color.cpp:
  33212. (WebCore::calcHue):
  33213. (WebCore::makeRGBAFromHSLA):
  33214. (WebCore::Color::Color):
  33215. (WebCore::Color::name):
  33216. (WebCore::Color::setNamedColor):
  33217. (WebCore::Color::light):
  33218. (WebCore::Color::dark):
  33219. (WebCore::blend):
  33220. * platform/Color.h:
  33221. (WebCore::Color::Color):
  33222. (WebCore::Color::isValid):
  33223. (WebCore::Color::red):
  33224. (WebCore::Color::green):
  33225. (WebCore::Color::blue):
  33226. (WebCore::Color::alpha):
  33227. (WebCore::Color::rgb):
  33228. (WebCore::Color::setRGB):
  33229. (WebCore::operator==):
  33230. (WebCore::operator!=):
  33231. * rendering/RenderObject.cpp:
  33232. (WebCore::RenderObject::drawBorder):
  33233. 2006-07-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33234. - fix http://bugs.webkit.org/show_bug.cgi?id=10158
  33235. REGRESSION: Selection highlight is dark and opaque when solid-color images are used
  33236. Reviewed by Darin.
  33237. Pixel test: fast/backgrounds/solid-color-context-restore.html
  33238. * platform/mac/ImageMac.mm:
  33239. (WebCore::Image::draw): Added calls to preserve the graphics context
  33240. around the painting of a solid color image.
  33241. (WebCore::Image::drawTiled): Ditto.
  33242. 2006-07-31 Maciej Stachowiak <mjs@apple.com>
  33243. Rubber-stamped by Tim Hatcher.
  33244. - renamed TransferJob to ResourceLoader
  33245. * Projects/gdk/webcore-gdk.bkl:
  33246. * WebCore.vcproj/WebCore/WebCore.vcproj:
  33247. * WebCore.xcodeproj/project.pbxproj:
  33248. * WebCoreSources.bkl:
  33249. * bridge/mac/FrameMac.mm:
  33250. * bridge/mac/WebCoreResourceLoaderImp.h:
  33251. * bridge/mac/WebCoreResourceLoaderImp.mm:
  33252. (-[WebCoreResourceLoaderImp redirectedToURL:]):
  33253. (-[WebCoreResourceLoaderImp addData:]):
  33254. (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
  33255. * bridge/win/FrameWin.cpp:
  33256. * dom/XMLTokenizer.cpp:
  33257. (WebCore::openFunc):
  33258. * loader/Cache.cpp:
  33259. * loader/LoaderFunctions.h:
  33260. * loader/loader.cpp:
  33261. (WebCore::Loader::servePendingRequests):
  33262. (WebCore::Loader::receivedAllData):
  33263. (WebCore::Loader::receivedResponse):
  33264. (WebCore::Loader::receivedData):
  33265. (WebCore::Loader::cancelRequests):
  33266. (WebCore::Loader::jobForRequest):
  33267. * loader/loader.h:
  33268. * loader/mac/LoaderFunctionsMac.mm:
  33269. (WebCore::ServeSynchronousRequest):
  33270. * platform/ResourceLoader.cpp: Added.
  33271. (WebCore::ResourceLoader::ResourceLoader):
  33272. (WebCore::ResourceLoader::isErrorPage):
  33273. (WebCore::ResourceLoader::error):
  33274. (WebCore::ResourceLoader::setError):
  33275. (WebCore::ResourceLoader::queryMetaData):
  33276. (WebCore::ResourceLoader::addMetaData):
  33277. (WebCore::ResourceLoader::kill):
  33278. (WebCore::ResourceLoader::url):
  33279. (WebCore::ResourceLoader::postData):
  33280. (WebCore::ResourceLoader::method):
  33281. (WebCore::ResourceLoader::client):
  33282. * platform/ResourceLoader.h: Added.
  33283. (WebCore::ResourceLoader::getInternal):
  33284. * platform/ResourceLoaderClient.h: Added.
  33285. (WebCore::ResourceLoaderClient::~ResourceLoaderClient):
  33286. (WebCore::ResourceLoaderClient::receivedRedirect):
  33287. (WebCore::ResourceLoaderClient::receivedResponse):
  33288. (WebCore::ResourceLoaderClient::receivedData):
  33289. (WebCore::ResourceLoaderClient::receivedAllData):
  33290. * platform/ResourceLoaderInternal.h: Added.
  33291. (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
  33292. * platform/TransferJob.cpp: Removed.
  33293. * platform/TransferJob.h: Removed.
  33294. * platform/TransferJobClient.h: Removed.
  33295. * platform/TransferJobInternal.h: Removed.
  33296. * platform/gdk/FrameGdk.cpp:
  33297. (WebCore::FrameGdk::openURL):
  33298. (WebCore::FrameGdk::urlSelected):
  33299. (WebCore::FrameGdk::receivedData):
  33300. (WebCore::FrameGdk::receivedAllData):
  33301. * platform/gdk/FrameGdk.h:
  33302. * platform/gdk/ResourceLoaderCurl.cpp: Added.
  33303. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  33304. (WebCore::ResourceLoader::~ResourceLoader):
  33305. (WebCore::ResourceLoader::start):
  33306. (WebCore::ResourceLoader::cancel):
  33307. * platform/gdk/ResourceLoaderManager.cpp: Added.
  33308. (WebCore::ResourceLoaderManager::ResourceLoaderManager):
  33309. (WebCore::ResourceLoaderManager::get):
  33310. (WebCore::ResourceLoaderManager::useSimpleTransfer):
  33311. (WebCore::writeCallback):
  33312. (WebCore::ResourceLoaderManager::downloadTimerCallback):
  33313. (WebCore::ResourceLoaderManager::remove):
  33314. (WebCore::ResourceLoaderManager::add):
  33315. (WebCore::ResourceLoaderManager::cancel):
  33316. * platform/gdk/ResourceLoaderManager.h: Added.
  33317. * platform/gdk/TemporaryLinkStubs.cpp:
  33318. (WebCore::ServeSynchronousRequest):
  33319. (WebCore::ResourceLoader::assembleResponseHeaders):
  33320. (WebCore::ResourceLoader::retrieveCharset):
  33321. * platform/gdk/TransferJobCurl.cpp: Removed.
  33322. * platform/gdk/TransferJobManager.cpp: Removed.
  33323. * platform/gdk/TransferJobManager.h: Removed.
  33324. * platform/mac/ResourceLoaderMac.mm: Added.
  33325. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  33326. (WebCore::ResourceLoader::~ResourceLoader):
  33327. (WebCore::ResourceLoader::start):
  33328. (WebCore::ResourceLoader::assembleResponseHeaders):
  33329. (WebCore::ResourceLoader::retrieveCharset):
  33330. (WebCore::ResourceLoader::setLoader):
  33331. (WebCore::ResourceLoader::receivedResponse):
  33332. (WebCore::ResourceLoader::cancel):
  33333. * platform/mac/TransferJobMac.mm: Removed.
  33334. * platform/win/ResourceLoaderWin.cpp: Added.
  33335. (WebCore::addToOutstandingJobs):
  33336. (WebCore::lookupResourceLoader):
  33337. (WebCore::ResourceLoaderWndProc):
  33338. (WebCore::initializeOffScreenResourceLoaderWindow):
  33339. (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
  33340. (WebCore::ResourceLoader::~ResourceLoader):
  33341. (WebCore::ResourceLoader::start):
  33342. (WebCore::ResourceLoader::fileLoadTimer):
  33343. (WebCore::ResourceLoader::cancel):
  33344. * platform/win/ResourceLoaderWin.h: Added.
  33345. * platform/win/TemporaryLinkStubs.cpp:
  33346. (WebCore::ServeSynchronousRequest):
  33347. (WebCore::ResourceLoader::assembleResponseHeaders):
  33348. (WebCore::ResourceLoader::retrieveCharset):
  33349. * platform/win/TransferJobWin.cpp: Removed.
  33350. * platform/win/TransferJobWin.h: Removed.
  33351. * xml/XSLTProcessor.cpp:
  33352. (WebCore::docLoaderFunc):
  33353. * xml/xmlhttprequest.cpp:
  33354. (WebCore::XMLHttpRequest::send):
  33355. (WebCore::XMLHttpRequest::receivedAllData):
  33356. (WebCore::XMLHttpRequest::receivedRedirect):
  33357. (WebCore::XMLHttpRequest::receivedData):
  33358. * xml/xmlhttprequest.h:
  33359. 2006-07-31 Darin Adler <darin@apple.com>
  33360. Reviewed by Hyatt.
  33361. - removed obsolete cell margin hack
  33362. * rendering/RenderBox.cpp: (WebCore::RenderBox::calcVerticalMargins):
  33363. Set top and bottom margins to 0 for table cells instead of -16384.
  33364. No effect on layout (including layout tests).
  33365. * css/CSSComputedStyleDeclaration.cpp:
  33366. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  33367. Added a few comments about differences between this class and the
  33368. what the CSS specification says about computed style.
  33369. 2006-07-31 Mark Rowe <opendarwin.org@bdash.net.nz>
  33370. Reviewed by Maciej.
  33371. http://bugs.webkit.org/show_bug.cgi?id=9738
  33372. Bug 9738: Unqualified :hover selector ignored in strict parsing mode
  33373. * css/cssstyleselector.cpp:
  33374. (WebCore::CSSStyleSelector::checkSelector): Restrict the :hover and :active
  33375. exclusion based on onlyHoverActive to quirks mode.
  33376. 2006-07-31 David Hyatt <hyatt@apple.com>
  33377. Fix for bug 10179, digg.com scrolls slowly. Improve fixed positioning
  33378. and fixed backgrounds so that a count of them is kept on the FrameView.
  33379. This allows us to switch slow scrolling on and off as these objects come
  33380. and go.
  33381. * css/cssstyleselector.cpp:
  33382. (WebCore::CSSStyleSelector::adjustRenderStyle):
  33383. (WebCore::CSSStyleSelector::applyProperty):
  33384. * page/FrameView.cpp:
  33385. (WebCore::FrameViewPrivate::reset):
  33386. (WebCore::FrameView::layout):
  33387. (WebCore::FrameView::useSlowRepaints):
  33388. (WebCore::FrameView::setUseSlowRepaints):
  33389. (WebCore::FrameView::addSlowRepaintObject):
  33390. (WebCore::FrameView::removeSlowRepaintObject):
  33391. * page/FrameView.h:
  33392. * rendering/RenderBox.cpp:
  33393. (WebCore::RenderBox::paintBackgroundExtended):
  33394. * rendering/RenderObject.cpp:
  33395. (WebCore::RenderObject::setStyle):
  33396. * rendering/RenderView.cpp:
  33397. (WebCore::RenderView::paintBoxDecorations):
  33398. 2006-07-31 David Hyatt <hyatt@apple.com>
  33399. Begin disentangling of scrollbar logic in preparation for engine-implemented
  33400. scrollbars. Split ScrollBar into two classes, an abstract base (still named
  33401. ScrollBar) and a new PlatformScrollBar subclass. This subclass is used only
  33402. by platforms that want to continue to use a platform scrollbar (rather than
  33403. the engine one).
  33404. Reviewed by darin
  33405. * WebCore.xcodeproj/project.pbxproj:
  33406. * html/HTMLCanvasElement.h:
  33407. * page/Frame.cpp:
  33408. * platform/PlatformScrollBar.h: Added.
  33409. (WebCore::PlatformScrollBar::isWidget):
  33410. * platform/ScrollBar.h:
  33411. (WebCore::ScrollBarClient::~ScrollBarClient):
  33412. (WebCore::ScrollBar::~ScrollBar):
  33413. (WebCore::ScrollBar::orientation):
  33414. (WebCore::ScrollBar::value):
  33415. (WebCore::ScrollBar::client):
  33416. * platform/mac/PlatformScrollBarMac.mm: Added.
  33417. (-[WebCoreScrollBar initWithPlatformScrollBar:]):
  33418. (-[WebCoreScrollBar detachPlatformScrollBar]):
  33419. (-[WebCoreScrollBar scroll:]):
  33420. (-[WebCoreScrollBar widget]):
  33421. (-[WebCoreScrollBar mouseDown:]):
  33422. (WebCore::PlatformScrollBar::PlatformScrollBar):
  33423. (WebCore::PlatformScrollBar::~PlatformScrollBar):
  33424. (WebCore::PlatformScrollBar::setScrollBarValue):
  33425. (WebCore::PlatformScrollBar::setKnobProportion):
  33426. (WebCore::PlatformScrollBar::scrollbarHit):
  33427. (WebCore::PlatformScrollBar::width):
  33428. (WebCore::PlatformScrollBar::height):
  33429. (WebCore::PlatformScrollBar::setRect):
  33430. (WebCore::PlatformScrollBar::setEnabled):
  33431. (WebCore::PlatformScrollBar::paint):
  33432. * platform/mac/ScrollBarMac.mm: Removed.
  33433. * platform/mac/WebCoreTextArea.mm:
  33434. * rendering/RenderBlock.cpp:
  33435. (WebCore::RenderBlock::isPointInScrollbar):
  33436. * rendering/RenderFormElement.cpp:
  33437. * rendering/RenderLayer.cpp:
  33438. (WebCore::RenderLayer::horizontalScrollbarWidget):
  33439. (WebCore::RenderLayer::verticalScrollbarWidget):
  33440. (WebCore::RenderLayer::valueChanged):
  33441. (WebCore::RenderLayer::setHasHorizontalScrollbar):
  33442. (WebCore::RenderLayer::setHasVerticalScrollbar):
  33443. (WebCore::RenderLayer::positionScrollbars):
  33444. * rendering/RenderLayer.h:
  33445. * rendering/RenderWidget.h:
  33446. 2006-07-31 Adele Peterson <adele@apple.com>
  33447. Reviewed by John and Anders.
  33448. - Fix for <rdar://problem/4380576> onChange does not get called when field changed by return key
  33449. Test: fast/forms/onchange-enter-submit.html
  33450. Blur (which will fire onChange appropriately) before submitting a form when pressing Enter.
  33451. This matches the sequence of events fired in WinIE.
  33452. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
  33453. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::defaultEventHandler):
  33454. 2006-07-31 Geoffrey Garen <ggaren@apple.com>
  33455. Reviewed by Kevin.
  33456. Moved string debug function outside of the WebCore namespace so that it's
  33457. easier to call in the debugger. I will never doubt Darin again (x100).
  33458. * platform/String.cpp:
  33459. (string):
  33460. 2006-07-31 David Hyatt <hyatt@apple.com>
  33461. Partial fix for 5453. Improve overflow so that when it changes
  33462. dynamically from scroll/auto to hidden that we properly hide the
  33463. scrollbars. Also refine the dirty dashboard region updating so that
  33464. it only happens if the scrollbars genuinely come and go.
  33465. Also eliminate the extra repaint of the entire block. This should not be
  33466. necessary, since the scrollbars repaint themselves already and children
  33467. will repaint already if they move.
  33468. Reviewed by darin
  33469. Adding test case from bug into fast/overflow/dynamic-hidden.html
  33470. * rendering/RenderLayer.cpp:
  33471. (WebCore::RenderLayer::setHasHorizontalScrollbar):
  33472. (WebCore::RenderLayer::setHasVerticalScrollbar):
  33473. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  33474. 2006-07-31 Graham Dennis <graham.dennis@gmail.com>
  33475. Reviewed by justin
  33476. <http://bugs.webkit.org/show_bug.cgi?id=9507>
  33477. Empty style spans created in applyInlineStyle
  33478. Improves paste fidelity because some of these empty font/style spans had a non-zero
  33479. size and were messing up the layout of pasted content:
  33480. <rdar://problem/4515463>
  33481. REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
  33482. * editing/ApplyStyleCommand.cpp:
  33483. (WebCore::ApplyStyleCommand::applyInlineStyle): Use the adjusted start node instead
  33484. of start.node(). Don't do any application if the endpoints are swapped. Adjust
  33485. endNode if the start node is a descendant of it, so that the pre-order traversal will
  33486. terminate properly.
  33487. 2006-07-31 Geoffrey Garen <ggaren@apple.com>
  33488. Reviewed by Darin.
  33489. * platform/String.cpp:
  33490. (WebCore::string): Added a debugging function to create a String from a
  33491. const char*.
  33492. 2006-07-31 Anders Carlsson <acarlsson@apple.com>
  33493. * css/CSSPrimitiveValue.cpp:
  33494. Fix windows build.
  33495. 2006-07-31 Geoffrey Garen <ggaren@apple.com>
  33496. Reinstating my last change. Everything builds now.
  33497. 2006-07-31 Geoffrey Garen <ggaren@apple.com>
  33498. Backing out my last change because it causes a build failure in some
  33499. configurations. This seems to be the cleanest way to get svn to cooperate.
  33500. 2006-07-31 Geoffrey Garen <ggaren@apple.com>
  33501. Reviewed by Maciej.
  33502. Moved files around to make WebCore's structure clearer
  33503. and easier to explain.
  33504. DerivedSources/JS* -> bindings/js/DerivedSources/ (so JS* files
  33505. show up when you search inside bindings/js/, but are marked, at
  33506. the same time, as files that you should not edit manually)
  33507. WebCore+SVG/DOMList.h -> ksvg2/svg/ (only files inside ksvg2/svg/
  33508. use DOMList.h)
  33509. icon -> loader/icon
  33510. I tested that everything still builds.
  33511. 2006-07-30 Darin Adler <darin@apple.com>
  33512. Reviewed by Tim Hatcher.
  33513. - some improvements for the benefit of the style pane of the inspector
  33514. * css/CSSComputedStyleDeclaration.cpp: Removed background-position
  33515. and border-spacing from the list of properties that show up in
  33516. computed style, because of background-position-x, background-position-y,
  33517. -webkit-border-horizontal-spacing and -webkit-border-vertical-spacing.
  33518. (WebCore::valueForLength): Added handling for undefinedLength, intrinsic,
  33519. and min-intrinsic.
  33520. (WebCore::primitiveValueFromLength): Removed code that would add a
  33521. space to the string for no good reason.
  33522. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added a
  33523. special case for a line clamp of -1, which should come back as "none"
  33524. rather than an actual "-1".
  33525. (WebCore::CSSComputedStyleDeclaration::length): Return 0 if the
  33526. declaration has no corresponding node or no renderer.
  33527. (WebCore::CSSComputedStyleDeclaration::item): Check against length()
  33528. so that the two stay consistent rather than using a constant.
  33529. * css/CSSPrimitiveValue.cpp:
  33530. (WebCore::isCSSTokenizerIdentifier): Added.
  33531. (WebCore::isCSSTokenizerURL): Added.
  33532. (WebCore::quoteString): Added.
  33533. (WebCore::quoteStringIfNeeded): Changed to quote strings in many more
  33534. cases -- any cases where they would not parse in the CSS parser otherwise.
  33535. The main case this affects is font names with spaces in them.
  33536. (WebCore::quoteURLIfNeeded): Added.
  33537. (WebCore::CSSPrimitiveValue::cssText): Use quoteURLIfNeeded in the case
  33538. where we're making the text form of a URI.
  33539. * css/tokenizer.flex: Whitespace tweaks to line things up better.
  33540. 2006-07-30 Eric Seidel <eric@webkit.org>
  33541. Reviewed by gramps!
  33542. Remove some unused SVG code.
  33543. * ksvg2/ecma/Ecma.cpp: Removed.
  33544. * ksvg2/ecma/Ecma.h: Removed.
  33545. * ksvg2/ecma/GlobalObject.cpp: remove a couple dead functions.
  33546. * ksvg2/ecma/GlobalObject.h: add a comment about this dead code.
  33547. * ksvg2/ecma/SVGLookup.h: Removed.
  33548. 2006-07-29 Darin Adler <darin@apple.com>
  33549. - Removed tabs from these source files that still had them.
  33550. We don't use them; that way source files look fine in editors
  33551. that have tabs set to 8 spaces or to 4 spaces.
  33552. - Removed allow-tabs Subversion property from the files too.
  33553. * bindings/objc/WebScriptObject.h:
  33554. * bindings/objc/WebScriptObject.mm:
  33555. * platform/FontData.cpp:
  33556. 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
  33557. Reviewed by Darin.
  33558. - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
  33559. Adopt pedantic changes from the Unity project to improve
  33560. cross-compiler compatibility
  33561. Changes include:
  33562. * Removing trailing semicolon from namespace braces.
  33563. * Removing trailing comma from last enum declaration.
  33564. * Updating to match style guidelines.
  33565. * Adding missing newline to the end of the file.
  33566. * Turning on gcc warning for missing newline at the end of a source file
  33567. (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
  33568. * Alphabetical sorting of Xcode source list files.
  33569. * Use abs() function from <math.h> instead of ABS() macro.
  33570. * Use C-style comments instead of C++ comments in files that might
  33571. be included by either C or C++ files.
  33572. * Use -numeric_limits<double>::infinity() instead of -HUGE_VAL.
  33573. * WebCore+SVG/DOMList.h:
  33574. * WebCore.xcodeproj/project.pbxproj:
  33575. * WebCorePrefix.h:
  33576. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  33577. * bindings/js/JSXSLTProcessor.h:
  33578. * bindings/js/kjs_domnode.h:
  33579. (KJS::DOMNode::):
  33580. * bindings/objc/DOMCSS.h:
  33581. (-[DOMCSSValue enum]):
  33582. * bindings/objc/DOMCore.h:
  33583. (-[DOMImplementation createDocument:::]):
  33584. * bindings/objc/DOMEvents.h:
  33585. (-[DOMOverflowEvent enum]):
  33586. * bindings/objc/DOMRange.h:
  33587. * bindings/objc/DOMTraversal.h:
  33588. * bindings/objc/DOMXPath.h:
  33589. (-[DOMXPathNSResolver lookupNamespaceURI:]):
  33590. * bridge/mac/WebCoreFrameBridge.h:
  33591. * bridge/mac/WebCoreKeyboardAccess.h:
  33592. * css/makeprop:
  33593. * css/makevalues:
  33594. * dom/ChildNodeList.h:
  33595. * dom/DocPtr.h:
  33596. * dom/Document.h:
  33597. (WebCore::Document::):
  33598. * dom/DocumentMarker.h:
  33599. (WebCore::DocumentMarker::):
  33600. (WebCore::DocumentMarker::operator==):
  33601. (WebCore::DocumentMarker::operator!=):
  33602. * dom/EventTargetNode.h:
  33603. * dom/KeyboardEvent.h:
  33604. (WebCore::KeyboardEvent::):
  33605. * dom/NameNodeList.h:
  33606. (WebCore::NameNodeList::rootNodeChildrenChanged):
  33607. * dom/QualifiedName.cpp:
  33608. * editing/TypingCommand.h:
  33609. (WebCore::TypingCommand::):
  33610. * editing/UnlinkCommand.h:
  33611. (WebCore::UnlinkCommand::editingAction):
  33612. * html/FormDataList.h:
  33613. (WebCore::FormDataListItem::FormDataListItem):
  33614. (WebCore::FormDataList::appendData):
  33615. * html/HTMLBlockquoteElement.h:
  33616. * html/HTMLDivElement.h:
  33617. * html/HTMLFormElement.h:
  33618. * html/HTMLHRElement.h:
  33619. * html/HTMLHeadingElement.h:
  33620. * html/HTMLMarqueeElement.h:
  33621. * html/HTMLParagraphElement.h:
  33622. * html/HTMLPlugInElement.h:
  33623. * html/HTMLPreElement.h:
  33624. * html/HTMLTokenizer.h:
  33625. (WebCore::HTMLTokenizer::State::):
  33626. * icon/IconDatabase.cpp:
  33627. * icon/SQLStatement.cpp:
  33628. * kcanvas/KCanvasFilters.h:
  33629. (WebCore::):
  33630. (WebCore::KCanvasPoint3F::KCanvasPoint3F):
  33631. (WebCore::KCanvasFilter::KCanvasFilter):
  33632. (WebCore::KCanvasFilter::~KCanvasFilter):
  33633. (WebCore::KCanvasFilterEffect::~KCanvasFilterEffect):
  33634. (WebCore::KCComponentTransferFunction::KCComponentTransferFunction):
  33635. (WebCore::KCanvasFEConvolveMatrix::KCanvasFEConvolveMatrix):
  33636. (WebCore::KCLightSource::KCLightSource):
  33637. (WebCore::KCDistantLightSource::KCDistantLightSource):
  33638. (WebCore::KCPointLightSource::KCPointLightSource):
  33639. (WebCore::KCSpotLightSource::KCSpotLightSource):
  33640. (WebCore::KCanvasFEDiffuseLighting::KCanvasFEDiffuseLighting):
  33641. (WebCore::KCanvasFEDisplacementMap::KCanvasFEDisplacementMap):
  33642. (WebCore::KCanvasFEImage::KCanvasFEImage):
  33643. (WebCore::KCanvasFESpecularLighting::KCanvasFESpecularLighting):
  33644. * kcanvas/RenderSVGImage.h:
  33645. * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
  33646. * ksvg2/css/SVGRenderStyle.h:
  33647. (WebCore::SVGRenderStyle::InheritedFlags::):
  33648. (WebCore::SVGRenderStyle::NonInheritedFlags::):
  33649. * ksvg2/css/SVGRenderStyleDefs.h:
  33650. (WebCore::):
  33651. * ksvg2/events/SVGZoomEvent.h:
  33652. * ksvg2/ksvg.h:
  33653. (WebCore::):
  33654. * ksvg2/misc/KCanvasRenderingStyle.h:
  33655. * ksvg2/misc/SVGImageLoader.h:
  33656. * ksvg2/scripts/make_names.pl:
  33657. * ksvg2/svg/SVGAElement.h:
  33658. * ksvg2/svg/SVGAngle.h:
  33659. * ksvg2/svg/SVGAnimateColorElement.h:
  33660. * ksvg2/svg/SVGAnimateElement.h:
  33661. * ksvg2/svg/SVGAnimateTransformElement.h:
  33662. * ksvg2/svg/SVGAnimatedAngle.h:
  33663. * ksvg2/svg/SVGAnimatedBoolean.h:
  33664. * ksvg2/svg/SVGAnimatedColor.h:
  33665. * ksvg2/svg/SVGAnimatedEnumeration.h:
  33666. * ksvg2/svg/SVGAnimatedInteger.h:
  33667. * ksvg2/svg/SVGAnimatedLength.h:
  33668. * ksvg2/svg/SVGAnimatedLengthList.h:
  33669. * ksvg2/svg/SVGAnimatedNumber.h:
  33670. * ksvg2/svg/SVGAnimatedNumberList.h:
  33671. * ksvg2/svg/SVGAnimatedPathData.h:
  33672. * ksvg2/svg/SVGAnimatedPoints.h:
  33673. * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
  33674. * ksvg2/svg/SVGAnimatedRect.h:
  33675. * ksvg2/svg/SVGAnimatedString.h:
  33676. * ksvg2/svg/SVGAnimatedTemplate.h:
  33677. * ksvg2/svg/SVGAnimatedTransformList.h:
  33678. * ksvg2/svg/SVGAnimationElement.cpp:
  33679. (SVGAnimationElement::calculateCurrentValueItem):
  33680. (SVGAnimationElement::calculateRelativeTimePercentage):
  33681. * ksvg2/svg/SVGAnimationElement.h:
  33682. (WebCore::):
  33683. * ksvg2/svg/SVGCircleElement.h:
  33684. * ksvg2/svg/SVGClipPathElement.h:
  33685. * ksvg2/svg/SVGColor.h:
  33686. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  33687. * ksvg2/svg/SVGCursorElement.h:
  33688. * ksvg2/svg/SVGDOMImplementation.h:
  33689. * ksvg2/svg/SVGDefsElement.h:
  33690. * ksvg2/svg/SVGDescElement.h:
  33691. * ksvg2/svg/SVGDocument.h:
  33692. * ksvg2/svg/SVGElement.h:
  33693. (WebCore::SVGElement::rendererIsNeeded):
  33694. (WebCore::svg_dynamic_cast):
  33695. * ksvg2/svg/SVGElementInstance.h:
  33696. * ksvg2/svg/SVGElementInstanceList.h:
  33697. * ksvg2/svg/SVGEllipseElement.h:
  33698. * ksvg2/svg/SVGExternalResourcesRequired.h:
  33699. * ksvg2/svg/SVGFEBlendElement.h:
  33700. * ksvg2/svg/SVGFEColorMatrixElement.h:
  33701. * ksvg2/svg/SVGFEComponentTransferElement.h:
  33702. * ksvg2/svg/SVGFECompositeElement.h:
  33703. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  33704. * ksvg2/svg/SVGFEDisplacementMapElement.h:
  33705. * ksvg2/svg/SVGFEDistantLightElement.h:
  33706. * ksvg2/svg/SVGFEFloodElement.h:
  33707. * ksvg2/svg/SVGFEFuncAElement.h:
  33708. * ksvg2/svg/SVGFEFuncBElement.h:
  33709. * ksvg2/svg/SVGFEFuncGElement.h:
  33710. * ksvg2/svg/SVGFEFuncRElement.h:
  33711. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  33712. * ksvg2/svg/SVGFEImageElement.h:
  33713. * ksvg2/svg/SVGFELightElement.h:
  33714. * ksvg2/svg/SVGFEMergeElement.h:
  33715. * ksvg2/svg/SVGFEMergeNodeElement.h:
  33716. * ksvg2/svg/SVGFEOffsetElement.h:
  33717. * ksvg2/svg/SVGFEPointLightElement.h:
  33718. * ksvg2/svg/SVGFESpecularLightingElement.h:
  33719. * ksvg2/svg/SVGFESpotLightElement.h:
  33720. * ksvg2/svg/SVGFETileElement.h:
  33721. * ksvg2/svg/SVGFETurbulenceElement.h:
  33722. * ksvg2/svg/SVGFilterElement.h:
  33723. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  33724. * ksvg2/svg/SVGFitToViewBox.h:
  33725. * ksvg2/svg/SVGForeignObjectElement.cpp:
  33726. * ksvg2/svg/SVGForeignObjectElement.h:
  33727. * ksvg2/svg/SVGGElement.h:
  33728. * ksvg2/svg/SVGGradientElement.h:
  33729. * ksvg2/svg/SVGHelper.h:
  33730. (WebCore::):
  33731. * ksvg2/svg/SVGImageElement.h:
  33732. * ksvg2/svg/SVGLangSpace.h:
  33733. * ksvg2/svg/SVGLength.h:
  33734. * ksvg2/svg/SVGLengthList.h:
  33735. * ksvg2/svg/SVGLineElement.h:
  33736. * ksvg2/svg/SVGLinearGradientElement.h:
  33737. * ksvg2/svg/SVGList.h:
  33738. * ksvg2/svg/SVGLocatable.h:
  33739. * ksvg2/svg/SVGMarkerElement.h:
  33740. * ksvg2/svg/SVGMaskElement.h:
  33741. * ksvg2/svg/SVGMatrix.h:
  33742. * ksvg2/svg/SVGNumber.h:
  33743. * ksvg2/svg/SVGNumberList.h:
  33744. * ksvg2/svg/SVGPaint.h:
  33745. * ksvg2/svg/SVGPathElement.h:
  33746. * ksvg2/svg/SVGPathSeg.h:
  33747. * ksvg2/svg/SVGPathSegArc.h:
  33748. * ksvg2/svg/SVGPathSegClosePath.h:
  33749. * ksvg2/svg/SVGPathSegCurvetoCubic.h:
  33750. * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
  33751. * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
  33752. * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
  33753. * ksvg2/svg/SVGPathSegLineto.h:
  33754. * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
  33755. * ksvg2/svg/SVGPathSegLinetoVertical.h:
  33756. * ksvg2/svg/SVGPathSegList.h:
  33757. * ksvg2/svg/SVGPathSegMoveto.h:
  33758. * ksvg2/svg/SVGPatternElement.h:
  33759. * ksvg2/svg/SVGPoint.h:
  33760. * ksvg2/svg/SVGPointList.h:
  33761. * ksvg2/svg/SVGPolyElement.h:
  33762. * ksvg2/svg/SVGPolygonElement.h:
  33763. * ksvg2/svg/SVGPolylineElement.h:
  33764. * ksvg2/svg/SVGPreserveAspectRatio.h:
  33765. * ksvg2/svg/SVGRadialGradientElement.h:
  33766. * ksvg2/svg/SVGRect.h:
  33767. * ksvg2/svg/SVGRectElement.h:
  33768. * ksvg2/svg/SVGSVGElement.h:
  33769. * ksvg2/svg/SVGScriptElement.h:
  33770. * ksvg2/svg/SVGSetElement.h:
  33771. * ksvg2/svg/SVGStopElement.h:
  33772. * ksvg2/svg/SVGStringList.h:
  33773. * ksvg2/svg/SVGStylable.h:
  33774. * ksvg2/svg/SVGStyleElement.h:
  33775. * ksvg2/svg/SVGStyledElement.h:
  33776. (WebCore::SVGStyledElement::rendererIsNeeded):
  33777. (WebCore::SVGStyledElement::canvasResource):
  33778. * ksvg2/svg/SVGStyledLocatableElement.h:
  33779. * ksvg2/svg/SVGStyledTransformableElement.h:
  33780. * ksvg2/svg/SVGSwitchElement.h:
  33781. * ksvg2/svg/SVGSymbolElement.h:
  33782. * ksvg2/svg/SVGTRefElement.h:
  33783. * ksvg2/svg/SVGTSpanElement.h:
  33784. * ksvg2/svg/SVGTests.h:
  33785. * ksvg2/svg/SVGTextContentElement.h:
  33786. * ksvg2/svg/SVGTextElement.h:
  33787. * ksvg2/svg/SVGTextPositioningElement.h:
  33788. * ksvg2/svg/SVGTitleElement.h:
  33789. * ksvg2/svg/SVGTransform.h:
  33790. * ksvg2/svg/SVGTransformList.h:
  33791. * ksvg2/svg/SVGTransformable.h:
  33792. * ksvg2/svg/SVGURIReference.h:
  33793. * ksvg2/svg/SVGUseElement.h:
  33794. * ksvg2/svg/SVGViewElement.h:
  33795. * ksvg2/svg/SVGZoomAndPan.h:
  33796. * ksvg2/svg/svgpathparser.h:
  33797. * page/Frame.h:
  33798. (WebCore::):
  33799. * platform/AffineTransform.h:
  33800. * platform/FontCache.cpp:
  33801. (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
  33802. * platform/FontData.cpp:
  33803. (WebCore::FontData::FontData):
  33804. * platform/FontData.h:
  33805. * platform/TextBox.h:
  33806. (WebCore::TextBox::):
  33807. * platform/Timer.cpp:
  33808. (WebCore::TimerBase::heapPop):
  33809. * platform/mac/FontCacheMac.mm:
  33810. * platform/mac/GlyphMapMac.cpp:
  33811. * platform/mac/WebFontCache.mm:
  33812. (betterChoice):
  33813. * rendering/DeprecatedRenderSelect.cpp:
  33814. (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
  33815. * rendering/EllipsisBox.h:
  33816. * rendering/RenderBR.h:
  33817. (WebCore::RenderBR::renderName):
  33818. (WebCore::RenderBR::width):
  33819. * rendering/RenderBlock.h:
  33820. (WebCore::):
  33821. * rendering/RenderFlexibleBox.h:
  33822. * rendering/RenderFlow.h:
  33823. (WebCore::RenderFlow::RenderFlow):
  33824. * rendering/RenderFrame.cpp:
  33825. * rendering/bidi.h:
  33826. * rendering/break_lines.cpp:
  33827. 2006-07-29 Rob Buis <buis@kde.org>
  33828. Reviewed by Geoff.
  33829. http://bugs.webkit.org/show_bug.cgi?id=10151
  33830. ghostmap XHTML + SVG fails due to javascript undefined exception
  33831. Make sure document.URL works when called from a non-HTML document.
  33832. * bindings/js/kjs_html.cpp:
  33833. (KJS::JSHTMLDocument::getValueProperty):
  33834. * bindings/js/kjs_html.h:
  33835. (KJS::JSHTMLDocument::):
  33836. * dom/Document.idl:
  33837. 2006-07-29 Mike Emmel <mike.emmel@gmail.com>
  33838. Reviewed and tweaked by Darin.
  33839. - fixes for Linux build
  33840. (still might not compile, since Darin tweaked but was unable to test).
  33841. * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
  33842. * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
  33843. * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
  33844. before ::.
  33845. * platform/gdk/FrameGdk.h:
  33846. * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
  33847. out of this file.
  33848. * platform/gdk/RenderPopupMenuGdk.h: Added.
  33849. * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
  33850. * platform/gdk/RenderThemeGdk.h:
  33851. * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
  33852. * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
  33853. 2006-07-29 Mark Rowe <opendarwin.org@bdash.net.nz>
  33854. Reviewed by Darin.
  33855. http://bugs.webkit.org/show_bug.cgi?id=10022
  33856. Bug 10022: REGRESSION: Crash in WebCore::XMLTokenizer::characters
  33857. * dom/XMLTokenizer.cpp:
  33858. (WebCore::XMLTokenizer::resumeParsing): If the write() call resulted in new callbacks being
  33859. added, don't call through to end() just yet.
  33860. 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
  33861. Reviewed by John Sullivan.
  33862. - manual test for http://bugs.webkit.org/show_bug.cgi?id=9984
  33863. ASSERTION FAILURE: _private->mouseDownEvent != nil
  33864. (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
  33865. * manual-tests/subview-click-assertion.html: Added.
  33866. 2006-07-29 Andrew Wellington <proton@wiretapped.net>
  33867. Reviewed by Darin.
  33868. Fix for http://bugs.webkit.org/show_bug.cgi?id=8587 / <rdar://problem/4631844>
  33869. REGRESSION: {display:list-item} items outside an ol or ul element don't number correctly
  33870. * rendering/RenderListItem.cpp:
  33871. (WebCore::enclosingList): If no real list element is found, use parent instead.
  33872. (WebCore::previousListItem): Check list elements to see if they are list items -- the
  33873. old code assumed that a list would never be a list item but this is entirely possible
  33874. with CSS and especially with the new rule that means any DOM element could act as a list.
  33875. 2006-07-29 Alexey Proskuryakov <ap@nypop.com>
  33876. Reviewed by Darin.
  33877. Fix http://bugs.webkit.org/show_bug.cgi?id=10147
  33878. REGRESSION: custom attribute values set via javascript are not persistent
  33879. Test: fast/dom/Element/setAttribute-case-insensitivity.html
  33880. * dom/Element.cpp:
  33881. (WebCore::Element::setAttribute): Use the lowercased localName for retrieving the old value, too.
  33882. 2006-07-28 Timothy Hatcher <timothy@apple.com>
  33883. Suggested by Darin.
  33884. Moving the implementation of isContentEditable to the
  33885. the WebPrivate category.
  33886. * bindings/objc/DOM.mm:
  33887. (-[DOMNode isContentEditable]):
  33888. 2006-07-28 Justin Garcia <justin.garcia@apple.com>
  33889. Reviewed by levi
  33890. First part of:
  33891. <rdar://problem/4515463>
  33892. REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
  33893. Migrate to isBlock and enclosingBlock.
  33894. Changed RendereringInfo::isBlock and ReplacementFragment::isBlock
  33895. to wasBlock so that they don't conflict with isBlock and because
  33896. it's more descriptive.
  33897. * editing/ReplaceSelectionCommand.cpp:
  33898. (WebCore::ReplacementFragment::mergeStartNode):
  33899. (WebCore::ReplacementFragment::wasBlock):
  33900. (WebCore::ReplacementFragment::saveRenderingInfo):
  33901. (WebCore::ReplacementFragment::renderedBlocks):
  33902. (WebCore::RenderingInfo::RenderingInfo):
  33903. (WebCore::ReplaceSelectionCommand::shouldMergeStart):
  33904. (WebCore::ReplaceSelectionCommand::doApply):
  33905. * editing/ReplaceSelectionCommand.h:
  33906. (WebCore::RenderingInfo::wasBlock):
  33907. 2006-07-27 Justin Garcia <justin.garcia@apple.com>
  33908. Reviewed by levi
  33909. More changes for:
  33910. <rdar://problem/4242293>
  33911. Poor paste fidelity of http://www.google.com/
  33912. * editing/markup.cpp:
  33913. (WebCore::needInterchangeNewlineAfter): Added.
  33914. (WebCore::createMarkup):
  33915. Only add an interchangeNewline if we're annotating for interchange. Can't test
  33916. this until we expose createMarkup in non-annotate mode (I'd expose Range::toHTML).
  33917. Remove the FIXME about prepending the interchangeNewline before creating the rest
  33918. of the markup. Its correct to surround the interchangeNewline in ancestors of the
  33919. adjusted startNode.
  33920. Fixed the check to see if an interchangeNewline is needed (!inSameBlock). This would
  33921. add an interchangeNewline for a selection that started before a table.
  33922. Removed the workaround for the bug where markup for a table was not included when
  33923. selecting the contents of a table, since this change fixes the general problem of
  33924. markup for ancestors of the startNode being left out.
  33925. Don't leave out ancestors of the startNode as we leave their subtrees. Execute the
  33926. code to include them even if we closed ancestors in the ancestorsToClose list.
  33927. 2006-07-28 Timothy Hatcher <timothy@apple.com>
  33928. Reviewed by John.
  33929. Adding isContentEditable to DOMNode's private category.
  33930. * bindings/objc/DOMPrivate.h:
  33931. 2006-07-28 Alexey Proskuryakov <ap@nypop.com>
  33932. Rolling out http://bugs.webkit.org/show_bug.cgi?id=6010 because of failing layout tests.
  33933. Add better SVGLoad event support.
  33934. * dom/EventTargetNode.cpp:
  33935. (WebCore::EventTargetNode::dispatchGenericEvent):
  33936. * html/HTMLImageLoader.cpp:
  33937. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  33938. * html/HTMLImageLoader.h:
  33939. * ksvg2/misc/SVGImageLoader.cpp:
  33940. (WebCore::SVGImageLoader::SVGImageLoader):
  33941. * ksvg2/misc/SVGImageLoader.h:
  33942. * ksvg2/svg/SVGAElement.cpp:
  33943. (WebCore::SVGAElement::parseMappedAttribute):
  33944. * ksvg2/svg/SVGAnimatedBoolean.h:
  33945. * ksvg2/svg/SVGElement.cpp:
  33946. (WebCore::SVGElement::SVGElement):
  33947. (WebCore::SVGElement::parseMappedAttribute):
  33948. * ksvg2/svg/SVGElement.h:
  33949. (WebCore::SVGElement::adjustViewportClipping):
  33950. (WebCore::SVGElement::closeRenderer):
  33951. (WebCore::SVGElement::rendererIsNeeded):
  33952. (WebCore::SVGElement::isClosed):
  33953. (WebCore::svg_dynamic_cast):
  33954. * ksvg2/svg/SVGExternalResourcesRequired.h:
  33955. * ksvg2/svg/SVGImageElement.cpp:
  33956. (SVGImageElement::SVGImageElement):
  33957. * ksvg2/svg/SVGImageElement.h:
  33958. * ksvg2/svg/SVGSVGElement.cpp:
  33959. (WebCore::SVGSVGElement::parseMappedAttribute):
  33960. * ksvg2/svg/SVGScriptElement.cpp:
  33961. (SVGScriptElement::SVGScriptElement):
  33962. (SVGScriptElement::parseMappedAttribute):
  33963. (SVGScriptElement::executeScript):
  33964. * xml/xmlhttprequest.cpp:
  33965. (WebCore::XMLHttpRequest::callReadyStateChangeListener):
  33966. 2006-07-28 Adele Peterson <adele@apple.com>
  33967. Rolling out http://bugs.webkit.org/show_bug.cgi?id=9753 because of failing layout tests.
  33968. SVG with width and height 100% leaves room for scrollbar on the right.
  33969. * kcanvas/RenderPath.cpp:
  33970. * kcanvas/RenderPath.h:
  33971. * kcanvas/RenderSVGContainer.cpp:
  33972. (WebCore::RenderSVGContainer::layout):
  33973. * ksvg2/svg/SVGCircleElement.cpp:
  33974. * ksvg2/svg/SVGCircleElement.h:
  33975. * ksvg2/svg/SVGEllipseElement.cpp:
  33976. * ksvg2/svg/SVGEllipseElement.h:
  33977. * ksvg2/svg/SVGLineElement.cpp:
  33978. * ksvg2/svg/SVGLineElement.h:
  33979. * ksvg2/svg/SVGRectElement.cpp:
  33980. * ksvg2/svg/SVGRectElement.h:
  33981. * ksvg2/svg/SVGStyledElement.h:
  33982. 2006-07-27 Eric Seidel <eric@webkit.org>
  33983. Reviewed by darin.
  33984. Add better SVGLoad event support.
  33985. http://bugs.webkit.org/show_bug.cgi?id=6010
  33986. There will still need to be additional support added for <link> and <script> elements.
  33987. Not all of the error -> loaded -> error transition cases work yet.
  33988. * dom/EventTargetNode.cpp:
  33989. (WebCore::EventTargetNode::dispatchGenericEvent):
  33990. * html/HTMLImageLoader.cpp:
  33991. (WebCore::HTMLImageLoader::dispatchLoadEvent):
  33992. * html/HTMLImageLoader.h:
  33993. (WebCore::HTMLImageLoader::haveFiredLoadEvent):
  33994. (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
  33995. * ksvg2/misc/SVGImageLoader.cpp:
  33996. (WebCore::SVGImageLoader::SVGImageLoader):
  33997. (WebCore::SVGImageLoader::dispatchLoadEvent):
  33998. * ksvg2/misc/SVGImageLoader.h:
  33999. * ksvg2/svg/SVGAElement.cpp:
  34000. (WebCore::SVGAElement::parseMappedAttribute):
  34001. * ksvg2/svg/SVGAnimatedBoolean.h:
  34002. * ksvg2/svg/SVGElement.cpp:
  34003. (WebCore::SVGElement::SVGElement):
  34004. (WebCore::SVGElement::parseMappedAttribute):
  34005. (WebCore::SVGElement::haveLoadedRequiredResources):
  34006. (WebCore::SVGElement::sendSVGLoadEventIfPossible):
  34007. (WebCore::SVGElement::closeRenderer):
  34008. * ksvg2/svg/SVGElement.h:
  34009. (WebCore::SVGElement::rendererIsNeeded):
  34010. (WebCore::svg_dynamic_cast):
  34011. * ksvg2/svg/SVGExternalResourcesRequired.h:
  34012. * ksvg2/svg/SVGImageElement.cpp:
  34013. (SVGImageElement::SVGImageElement):
  34014. (SVGImageElement::haveLoadedRequiredResources):
  34015. * ksvg2/svg/SVGImageElement.h:
  34016. * ksvg2/svg/SVGSVGElement.cpp:
  34017. (WebCore::SVGSVGElement::parseMappedAttribute):
  34018. * ksvg2/svg/SVGScriptElement.cpp:
  34019. (WebCore::SVGScriptElement::SVGScriptElement):
  34020. (WebCore::SVGScriptElement::parseMappedAttribute):
  34021. (WebCore::SVGScriptElement::executeScript):
  34022. * xml/xmlhttprequest.cpp:
  34023. (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
  34024. 2006-07-27 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34025. Reviewed by Anders.
  34026. - http://bugs.webkit.org/show_bug.cgi?id=10135
  34027. Cleanup: remove useless parameters from RenderObject::position()
  34028. No test possible (no functionality change)
  34029. * rendering/RenderBox.cpp:
  34030. (WebCore::RenderBox::position):
  34031. * rendering/RenderBox.h:
  34032. * rendering/RenderObject.h:
  34033. (WebCore::RenderObject::position):
  34034. * rendering/RenderTableRow.h:
  34035. (WebCore::RenderTableRow::position):
  34036. * rendering/RenderTableSection.h:
  34037. (WebCore::RenderTableSection::position):
  34038. * rendering/RenderText.cpp:
  34039. (WebCore::RenderText::position):
  34040. * rendering/RenderText.h:
  34041. * rendering/bidi.cpp:
  34042. (WebCore::RenderBlock::constructLine):
  34043. (WebCore::RenderBlock::computeVerticalPositionsForLine):
  34044. 2006-07-27 Rob Buis <buis@kde.org>
  34045. Reviewed by Maciej.
  34046. http://bugs.webkit.org/show_bug.cgi?id=9753
  34047. SVG with width and height 100% leaves room for scrollbar on the right.
  34048. Relayout children of svg containers, except svg shapes that do not depend on percentages.
  34049. * kcanvas/RenderPath.cpp: (WebCore::RenderPath::hasPercentageValues):
  34050. * kcanvas/RenderPath.h:
  34051. * kcanvas/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::layout):
  34052. * ksvg2/svg/SVGCircleElement.cpp: (SVGCircleElement::hasPercentageValues):
  34053. * ksvg2/svg/SVGCircleElement.h:
  34054. * ksvg2/svg/SVGEllipseElement.cpp: (WebCore::SVGEllipseElement::hasPercentageValues):
  34055. * ksvg2/svg/SVGEllipseElement.h:
  34056. * ksvg2/svg/SVGLineElement.cpp: (SVGLineElement::hasPercentageValues):
  34057. * ksvg2/svg/SVGLineElement.h:
  34058. * ksvg2/svg/SVGRectElement.cpp: (WebCore::SVGRectElement::hasPercentageValues):
  34059. * ksvg2/svg/SVGRectElement.h:
  34060. * ksvg2/svg/SVGStyledElement.h: (WebCore::SVGStyledElement::hasPercentageValues):
  34061. 2006-07-27 Justin Garcia <justin.garcia@apple.com>
  34062. Reviewed by levi
  34063. <rdar://problem/4242293>
  34064. Poor paste fidelity of http://www.google.com/
  34065. * editing/ApplyStyleCommand.cpp:
  34066. (WebCore::ApplyStyleCommand::applyInlineStyle): Fixed crasher with nil-check.
  34067. * editing/markup.cpp:
  34068. (WebCore::startMarkup): Style information wasn't added to an element if it had
  34069. attributes but no style attribute.
  34070. 2006-07-27 Alexander Kellett <lypanov@kde.org>
  34071. Reviewed by Darin.
  34072. - fix for http://bugs.webkit.org/show_bug.cgi?id=9867
  34073. REGRESSION: code that modifies form element in Firefox modifies form attribute in WebKit
  34074. * bindings/scripts/CodeGeneratorJS.pm: add new attribute - HasOverridingNameGetter
  34075. * html/HTMLFormElement.idl:
  34076. 2006-07-27 Rob Buis <buis@kde.org>
  34077. Reviewed by Anders.
  34078. http://bugs.webkit.org/show_bug.cgi?id=8992
  34079. Some HTML DOM attributes have incorrect types
  34080. Adjust idl and dom source code for HTMLImageElement and
  34081. HTMLBaseFontElement to choose correct type for
  34082. HTMLImageElement::border and HTMLBaseFontElement::size
  34083. attributes.
  34084. * html/HTMLBaseFontElement.cpp:
  34085. (WebCore::HTMLBaseFontElement::size):
  34086. (WebCore::HTMLBaseFontElement::setSize):
  34087. * html/HTMLBaseFontElement.h:
  34088. * html/HTMLBaseFontElement.idl:
  34089. * html/HTMLImageElement.cpp:
  34090. (WebCore::HTMLImageElement::border):
  34091. (WebCore::HTMLImageElement::setBorder):
  34092. * html/HTMLImageElement.h:
  34093. * html/HTMLImageElement.idl:
  34094. 2006-07-27 Justin Garcia <justin.garcia@apple.com>
  34095. Reviewed by levi
  34096. <rdar://problem/4628409>
  34097. Safari crashes in CompositeEditCommand::removeBlockPlaceholder entering text in a web page form
  34098. * editing/CompositeEditCommand.cpp:
  34099. (WebCore::CompositeEditCommand::removeBlockPlaceholder):
  34100. A script on the page shrinks the textarea down to zero rows just
  34101. before insertion. That gives the shadow div a zero height, removing
  34102. [div, 0] as a candidate for a VisiblePosition. Then
  34103. InsertTextCommand::input() tries to create a VisiblePosition from
  34104. [div, 0] and fails. A nil check is a quick fix. Another might
  34105. be to make positions where there is a caret selection candidates.
  34106. Another might be to make any [div, 0] where div is a shadow div inside
  34107. a form element a candidate.
  34108. 2006-07-27 Graham Dennis <graham.dennis@gmail.com>
  34109. Reviewed by Darin.
  34110. - fix for http://bugs.webkit.org/show_bug.cgi?id=10094
  34111. Japanese characters improperly rendering in TOT
  34112. Test: fast/encoding/denormalised-voiced-japanese-chars.html
  34113. * platform/Font.cpp:
  34114. (WebCore::WidthIterator::advance): pass currentCharacter to normalizeVoicingMarks
  34115. (WebCore::WidthIterator::normalizeVoicingMarks): turn the currentCharacter variable
  34116. into an argument as WidthIterator::advance doesn't update m_currentCharacter while
  34117. looping
  34118. 2006-07-27 Eric Seidel <eric@webkit.org>
  34119. Reviewed by ap.
  34120. Complex entities seem to fail on TOT
  34121. http://bugs.webkit.org/show_bug.cgi?id=6390
  34122. Use an alternative work-around to an XML Entity parsing bug.
  34123. * dom/XMLTokenizer.cpp:
  34124. (WebCore::XMLTokenizer::write):
  34125. (WebCore::hackAroundLibXMLEntityBug): added.
  34126. (WebCore::startElementNsHandler):
  34127. (WebCore::endElementNsHandler):
  34128. (WebCore::charactersHandler):
  34129. (WebCore::processingInstructionHandler):
  34130. (WebCore::cdataBlockHandler):
  34131. (WebCore::commentHandler):
  34132. (WebCore::getEntityHandler):
  34133. 2006-07-27 Rob Buis <buis@kde.org>
  34134. Reviewed by Darin.
  34135. http://bugs.webkit.org/show_bug.cgi?id=9938
  34136. Fix viewBox issues in Hixie's test
  34137. Do a more accurate and quicker job of parsing the viewBox
  34138. attribute. Handle properly on negative width/height and
  34139. invalid syntax in general.
  34140. * ksvg2/svg/SVGFitToViewBox.cpp:
  34141. (SVGFitToViewBox::parseViewBox):
  34142. 2006-07-27 Eric Seidel <eric@webkit.org>
  34143. Reviewed by ap.
  34144. Enables getSVGDocument() support for HTMLObjectElement and HTMLEmbedElement
  34145. http://bugs.webkit.org/show_bug.cgi?id=9237
  34146. This patch does not try to autogenerate anything, but enables the SVG functionality.
  34147. Also fix HTMLObjectElement vspace and hspace to be numbers instead of strings to match IE & Firefox.
  34148. * bindings/js/kjs_dom.cpp:
  34149. (KJS::toJS):
  34150. * bindings/js/kjs_html.cpp:
  34151. (KJS::JSHTMLElement::objectGetter):
  34152. (KJS::HTMLElementFunction::callAsFunction):
  34153. (KJS::JSHTMLElement::objectSetter):
  34154. * bindings/js/kjs_html.h:
  34155. (KJS::JSHTMLElement::):
  34156. * dom/Document.h:
  34157. (WebCore::Document::isSVGDocument):
  34158. * html/HTMLEmbedElement.cpp:
  34159. (WebCore::HTMLEmbedElement::contentDocument):
  34160. (WebCore::HTMLEmbedElement::getSVGDocument):
  34161. * html/HTMLEmbedElement.h:
  34162. * html/HTMLObjectElement.cpp:
  34163. (WebCore::HTMLObjectElement::HTMLObjectElement):
  34164. (WebCore::HTMLObjectElement::getInstance):
  34165. (WebCore::HTMLObjectElement::parseMappedAttribute):
  34166. (WebCore::HTMLObjectElement::contentDocument):
  34167. (WebCore::HTMLObjectElement::rendererIsNeeded):
  34168. (WebCore::HTMLObjectElement::createRenderer):
  34169. (WebCore::HTMLObjectElement::setCode):
  34170. (WebCore::HTMLObjectElement::setArchive):
  34171. (WebCore::HTMLObjectElement::setBorder):
  34172. (WebCore::HTMLObjectElement::setCodeBase):
  34173. (WebCore::HTMLObjectElement::setCodeType):
  34174. (WebCore::HTMLObjectElement::setData):
  34175. (WebCore::HTMLObjectElement::hspace):
  34176. (WebCore::HTMLObjectElement::setHspace):
  34177. (WebCore::HTMLObjectElement::setStandby):
  34178. (WebCore::HTMLObjectElement::setType):
  34179. (WebCore::HTMLObjectElement::setUseMap):
  34180. (WebCore::HTMLObjectElement::vspace):
  34181. (WebCore::HTMLObjectElement::setVspace):
  34182. (WebCore::HTMLObjectElement::getSVGDocument):
  34183. * html/HTMLObjectElement.h:
  34184. * ksvg2/svg/SVGDocument.h:
  34185. (WebCore::SVGDocument::isSVGDocument):
  34186. * rendering/RenderWidget.h:
  34187. (WebCore::RenderWidget::frameView):
  34188. 2006-07-26 Alexey Proskuryakov <ap@nypop.com>
  34189. Reviewed by Darin.
  34190. Fix http://bugs.webkit.org/show_bug.cgi?id=9901
  34191. XSLTProcessor cannot parse text nodes for INPUT ELEMENTS in an XSLT stylesheet
  34192. Test: fast/js/xhtml-serialize.html
  34193. * editing/markup.cpp:
  34194. (WebCore::endMarkup): If the element has child nodes, write a closing tag even if it
  34195. is not permitted in HTML, to make it valid XML.
  34196. 2006-07-26 Alice Liu <alice.liu@apple.com>
  34197. Reviewed by John Sullivan (and Kevin and Timo).
  34198. landing this patch for John et al.
  34199. Fixed <rdar://problem/4651380> REGRESSION (9A232->9A234): existing web clips don't render if you restart Dashboard
  34200. * page/FrameView.cpp:
  34201. (WebCore::FrameView::layout):
  34202. moved the call to didFirstLayout to above the check for needsLayout
  34203. because we need to call didFirstLayout for every webview, not just
  34204. ones we think need layout.
  34205. 2006-07-26 Justin Garcia <justin.garcia@apple.com>
  34206. Reviewed by darin
  34207. <rdar://problem/4652788>
  34208. REGRESSION: Can't change size or style of any text in message body
  34209. * dom/Node.cpp:
  34210. (WebCore::Node::isContentRichlyEditable): Mimic Node::isContentEditable.
  34211. * html/HTMLElement.cpp:
  34212. (WebCore::HTMLElement::isContentRichlyEditable): First check
  34213. the frame for editability, then userModify, like what
  34214. HTMLElement::isContentEditable() does.
  34215. * html/HTMLElement.h:
  34216. 2006-07-26 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34217. Reviewed by ap.
  34218. - fix debug-only information() string for table cells
  34219. * rendering/RenderObject.cpp:
  34220. (WebCore::RenderObject::information):
  34221. 2006-07-25 David Harrison <harrison@apple.com>
  34222. Reviewed by timo and Darin.
  34223. <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
  34224. * WebCore.xcodeproj/project.pbxproj:
  34225. * bridge/mac/WebCoreFrameBridge.h:
  34226. * bridge/mac/WebCoreFrameBridge.mm:
  34227. (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
  34228. Add matchStyle parameter for use by WebKit.
  34229. 2006-07-25 Justin Garcia <justin.garcia@apple.com>
  34230. Reviewed by adele
  34231. <rdar://problem/4649560>
  34232. REGRESSION: Can't Select All when the body is contentEditable="true"
  34233. * editing/VisiblePosition.cpp:
  34234. (WebCore::VisiblePosition::canonicalPosition): Allow descent from a non-editable html
  34235. element into an editable body as a convenience.
  34236. 2006-07-25 Justin Garcia <justin.garcia@apple.com>
  34237. Reviewed by darin
  34238. <rdar://problem/4468458> Incoming HTML message is editable <body contenteditable="true">
  34239. * dom/Document.cpp:
  34240. (WebCore::Document::inDesignMode): Removed some spaces.
  34241. * page/Frame.cpp:
  34242. (WebCore::Frame::applyEditingStyleToElement): Just add CSS properties needed for editing.
  34243. (WebCore::Frame::removeEditingStyleFromElement): Made this a no-op, we'll remove
  34244. it eventually.
  34245. 2006-07-25 David Kilzer <ddkilzer@kilzer.net>
  34246. Reviewed by Darin.
  34247. - fix http://bugs.webkit.org/show_bug.cgi?id=9717
  34248. Replace IDL ConvertUndefinedToTrue parameter attribute with Optional attribute
  34249. No test added because there is no change in functionality.
  34250. * bindings/js/kjs_binding.cpp: Removed valueToBooleanTreatUndefinedAsTrue() method.
  34251. * bindings/js/kjs_binding.h: Ditto.
  34252. * bindings/scripts/CodeGeneratorJS.pm: Removed support for ConvertUndefinedToTrue parameter attribute.
  34253. * dom/Element.h: Set default value to true for scrollIntoView() and scrollIntoViewIfNeeded() arguments.
  34254. * dom/Element.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
  34255. Fixed name of scrollIntoViewIfNeeded() argument to match implementation.
  34256. * page/DOMWindow.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
  34257. 2006-07-24 Dan Waylonis <waylonis@google.com>
  34258. Reviewed and tweaked a bunch by Darin.
  34259. Test: plugins/bindings-test.html
  34260. - fix http://bugs.webkit.org/show_bug.cgi?id=9902
  34261. jsNull and NSNull not properly converted between JS and ObjC
  34262. * bindings/objc/WebScriptObject.mm:
  34263. (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:]):
  34264. Added case that converts jsNull to NSNull.
  34265. 2006-07-24 Darin Adler <darin@apple.com>
  34266. Reviewed by Adele and Justin.
  34267. - fix <rdar://problem/4613616> REGRESSION: some spaces typed in <textarea> are posted as non-breaking spaces (9630)
  34268. http://bugs.webkit.org/show_bug.cgi?id=9630
  34269. - also fixes http://bugs.webkit.org/show_bug.cgi?id=9939
  34270. REGRESSION: Pasting text into native text area with newline at end does not preserve newline
  34271. - removed some uses of DeprecatedPtrList in the markup code
  34272. Test: fast/forms/textarea-type-spaces.html
  34273. Test: fast/forms/textarea-paste-newline.html
  34274. * bindings/objc/DOMHTML.mm: (-[DOMHTMLDocument createDocumentFragmentWithText:]):
  34275. Updated call to pass a range -- in this case it is the range of the entire document,
  34276. so this will not handle the whitespace properly.
  34277. * bridge/mac/WebCoreFrameBridge.h: Added range context parameter to the
  34278. documentFragmentWithText: method, so we can handle whitespace properly.
  34279. * bridge/mac/WebCoreFrameBridge.mm:
  34280. (-[WebCoreFrameBridge nodesFromList:]): Changed from DeprecatedPtrList to Vector.
  34281. (-[WebCoreFrameBridge markupStringFromNode:nodes:]): Ditto.
  34282. (-[WebCoreFrameBridge markupStringFromRange:nodes:]): Ditto.
  34283. (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Added range context
  34284. parameter -- pass it on to createFragmentFromText.
  34285. (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]): Changed from
  34286. DeprecatedPtrList to Vector.
  34287. (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
  34288. Pass the range of the current selection as context when creating the fragment.
  34289. * dom/Position.cpp: (WebCore::Position::inRenderedText): Replace range check with
  34290. a call to the new containsCaretOffset function -- helps make the caret work right when
  34291. it is past the end of the last line in a textarea.
  34292. * editing/CompositeEditCommand.cpp:
  34293. (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Don't do anything if the
  34294. style does not call for collapsing whitespace.
  34295. (WebCore::CompositeEditCommand::rebalanceWhitespace): Call replaceWhitespaceAt
  34296. to share code, including the new logic mentioned above.
  34297. * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
  34298. Use a text node instead of a break element when inserting and the style is preserveNewline.
  34299. * editing/JSEditor.cpp: (WebCore::execRemoveFormat): Pass the selection range
  34300. to createFragmentFromText.
  34301. * editing/RebalanceWhitespaceCommand.cpp: (WebCore::RebalanceWhitespaceCommand::doApply):
  34302. Assert that we're in a style that collapses whitespace. It's the caller's responsibility
  34303. not to call otherwise.
  34304. * editing/ReplaceSelectionCommand.h: Removed unused destructor, type, isSingleTextNode,
  34305. isTreeFragment, m_type, and added a context parameter to inertFragmentForTestRendering.
  34306. Also changed the constructor to take a selection rather than a pointer to the root
  34307. editable element, replaced removeEndBRIfNeeded with shouldRemoveEndBR and removed an
  34308. unused parameter from shouldMergeEnd.
  34309. * editing/ReplaceSelectionCommand.cpp:
  34310. (WebCore::ReplacementFragment::ReplacementFragment): Removed code to set up m_type.
  34311. Compute root editable element from passed-in selection. Used the start of the selection
  34312. as a base node for style purposes for the test rendering. Removed the special case
  34313. "single text node" alternative to createFragmentFromText in the plain text case, since
  34314. createFragmentFromText now handles that correctly.
  34315. (WebCore::ReplacementFragment::insertFragmentForTestRendering): Copy the whitespace
  34316. property from the source location when creating a temporary element for test rendering.
  34317. (WebCore::ReplacementFragment::shouldMergeEnd): Removed unneeded boolean
  34318. parameter fragmentHadInterchangeNewlineAtEnd, which is always false.
  34319. (WebCore::ReplaceSelectionCommand::doApply): Update for ReplacementFragment changes,
  34320. change code to not remove end BR when it can be re-used instead, don't call the
  34321. paragraph separator insertion when the position is at the start of a paragraph already,
  34322. removed redundant computation of identical "next" value, removed unneeded boolean
  34323. parameter to shouldMergeEnd, add case for merging when all we need to do is to delete
  34324. a newline character, removed unneeded code to set insertionPos after all code that uses
  34325. it, and use spaces instead of non-breaking spaces when doing smart paste if the
  34326. context is one where we do not collapse white space.
  34327. (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): Renamed and changed to return
  34328. a boolean instead of doing the removal.
  34329. * editing/markup.h: Use Vector instead of DeprecatedPtrList. Change the
  34330. createFragmentFromText function to take a range for context instead of a document.
  34331. * editing/markup.cpp:
  34332. (WebCore::markup): Use Vector instead of DeprecatedPtrList.
  34333. (WebCore::createMarkup): Ditto.
  34334. (WebCore::createParagraphContentsFromString): Remove unneeded document parameter
  34335. and changed a couple places to use isEmpty instead of comparing with "".
  34336. (WebCore::createFragmentFromText): Given the new context parameter, if the context
  34337. is one that preserves newlines, then use "\n" instead of <br> elements.
  34338. (WebCore::createFragmentFromNodes): Use Vector instead of DeprecatedPtrList.
  34339. * html/HTMLElement.cpp: (WebCore::HTMLElement::setInnerText): Do not use <br>
  34340. elements if the context of this node is one where we preserve newlines.
  34341. * rendering/InlineTextBox.h:
  34342. * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::containsCaretOffset):
  34343. Added. Implements the appropriate rule for determining if a caret position is
  34344. in this line or not. Returns true for both one line and the next in cases where
  34345. affinity must be considered to determine which line the caret is on.
  34346. * rendering/RenderText.h: Make atLineWrap no longer be a member function.
  34347. * rendering/RenderText.cpp:
  34348. (WebCore::atLineWrap): Remove special rule about preserveNewline and isLineBreak,
  34349. which will no longer apply due to the new containsCaretOffset function logic.
  34350. (WebCore::RenderText::caretRect): Use containsCaretOffset.
  34351. (WebCore::RenderText::inlineBox): Ditto.
  34352. * rendering/RenderTextControl.cpp:
  34353. (WebCore::RenderTextControl::updateFromElement): Make a placeholder <br> element
  34354. after calling setInnerText so that the last newline in the string has the effect
  34355. we expect outside the HTML world (an additional line).
  34356. (WebCore::RenderTextControl::setSelectionRange): Set granularity of the selection
  34357. too. The layout tests caught this problem, which needs a better solution long term.
  34358. (WebCore::RenderTextControl::text): Call textContent with the parameter false
  34359. so it will not include newlines for <br> elements. Now the only <br> element
  34360. that will ever be in the shadow DOM tree is the one to prevent collapsing, and
  34361. that one should not show up in the text value.
  34362. * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Took a rule
  34363. that specifically called out the pre whitespace mode and made it work for all
  34364. the modes that preserve newlines. This makes sure we get a last line box for
  34365. text after the last "\n" even in cases where there is no <br> afterward.
  34366. * editing/DeleteSelectionCommand.cpp:
  34367. (WebCore::DeleteSelectionCommand::fixupWhitespace):
  34368. * editing/InsertParagraphSeparatorCommand.cpp:
  34369. (WebCore::InsertParagraphSeparatorCommand::doApply):
  34370. Added assertions to make sure we don't do anything when we're not collapsing
  34371. whitespace.
  34372. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::setDefaultValue):
  34373. Changed to use Vector instead of DeprecatedPtrList.
  34374. * editing/HTMLInterchange.cpp: Removed obsolete comment.
  34375. * loader/Cache.h: Removed a stray include.
  34376. 2006-07-24 Adele Peterson <adele@apple.com>
  34377. Reviewed by Justin.
  34378. - Fix for <rdar://problem/4632132> Changing style of content with mixed editability fails
  34379. Test: * editing/style/apple-style-editable-mix.html
  34380. * dom/Node.cpp: (WebCore::Node::isContentRichlyEditable): Doesn't need to check the editable root. It now just
  34381. checks the user modify property of its own renderer, since that is inherited.
  34382. * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyInlineStyle): If the end position is in a table,
  34383. Adjust the end node to the last descendant of the table, so we don't skip over any runs.
  34384. 2006-07-24 Darin Adler <darin@apple.com>
  34385. Reviewed by Hyatt.
  34386. - implement String::createCFString
  34387. * WebCore.xcodeproj/project.pbxproj: Added StringImplMac.mm and StringMac.mm.
  34388. * bindings/objc/DOMInternal.mm: Moved NSString conversion functions out of here.
  34389. * platform/mac/StringImplMac.mm: Added. Moved NSString conversion members here
  34390. and added the CFStringRef ones.
  34391. * platform/mac/StringMac.mm: Added. Ditto.
  34392. 2006-07-24 David Hyatt <hyatt@apple.com>
  34393. Two bug fixes.
  34394. (1) Make sure to mark positioned objects that depend on line position to
  34395. mark themselves as needing layout when their line box placeholder gets
  34396. repositioned.
  34397. * rendering/RenderBox.cpp:
  34398. (WebCore::RenderBox::position):
  34399. (2) Improve highlighting to factor the inflation into overflow so that
  34400. invalidation and repainting will work properly.
  34401. * rendering/RootInlineBox.cpp:
  34402. (WebCore::RootInlineBox::addHighlightOverflow):
  34403. * rendering/RootInlineBox.h:
  34404. * rendering/bidi.cpp:
  34405. (WebCore::RenderBlock::layoutInlineChildren):
  34406. 2006-07-24 Anders Carlsson <acarlsson@apple.com>
  34407. Reviewed by Adele.
  34408. <rdar://problem/4641824> REGRESSION: Wikipedia widget fails to complete a search after pressing return key
  34409. * html/HTMLInputElement.cpp:
  34410. (WebCore::HTMLInputElement::defaultEventHandler):
  34411. Don't eat enter events for search fields that have no enclosing form; they need to be passed to AppKit so
  34412. that onsearch can be invoked.
  34413. * manual-tests/onsearch-enter.html: Added.
  34414. 2006-07-24 Dave MacLachlan <dmaclach@mac.com>
  34415. Reviewed by Darin and Alexey.
  34416. Fix for: <http://bugs.webkit.org/show_bug.cgi?id=8425>
  34417. and <http://bugs.webkit.org/show_bug.cgi?id=6947>
  34418. Test: svg/custom/non-opaque-filters.svg
  34419. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  34420. (WebCore::KCanvasFilterQuartz::prepareFilter):
  34421. We create an autorelease pool so we can control the deallocation of the
  34422. CIContext that we're creating. The CIContext retains the CGContext that
  34423. you pass it internally so when the CIContext is released, the
  34424. CGContext is released as well.
  34425. This is all fine and dandy unless you wrap the creation of the CIFilter
  34426. with a pair of CGBegin/EndTransparencyLayer calls which swap the context
  34427. out from underneath you. So if you start with context A,
  34428. CGBeginTransparencyLayer swaps it out and gives you B. You create a CIFilter
  34429. with it and add a reference to B. CGEndTransparencyLayer swaps out B and
  34430. gives you back A. Autorelease pool comes and cleans up the Filter, and calls
  34431. release on A, but A never got the refcount in the first place. B did. BOOM!
  34432. So we create a pool, then do a retain, then release the pool so that we
  34433. don't have to worry about the pool releasing it at a later time.
  34434. See <rdar://problem/4647735> for reduction of CGEndTransparencyLayer case
  34435. 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34436. Reviewed by Hyatt.
  34437. - fix http://bugs.webkit.org/show_bug.cgi?id=9669
  34438. Incomplete repaint when changing an inline's border
  34439. Test: fast/repaint/line-overflow.html
  34440. * rendering/RenderBlock.h:
  34441. * rendering/bidi.cpp:
  34442. (WebCore::RenderBlock::layoutInlineChildren): Added repaintTop and repaintBottom
  34443. variables to track the vertical edges of the area that changed, accounting for
  34444. lines that were deleted, inserted or moved. Removed unnecessary updating of
  34445. m_overflowHeight.
  34446. (WebCore::RenderBlock::determineStartPosition): Removed unnecessary updating of
  34447. m_overflowHeight.
  34448. (WebCore::RenderBlock::determineEndPosition):
  34449. (WebCore::RenderBlock::matchedEndLine): Added repaintTop and repaintBottom
  34450. arguments, which this method updates to account for deleted lines.
  34451. (WebCore::RenderBlock::checkLinesForOverflow): Removed outdated FIXME.
  34452. 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34453. Reviewed by Darin.
  34454. - fix http://bugs.webkit.org/show_bug.cgi?id=10075
  34455. REGRESSION: Reversed pop-up text in visually-ordered Hebrew pages
  34456. Test: fast/forms/select-visual-hebrew.html
  34457. * css/html4.css: Set "-webkit-rtl-ordering: logical" on select elements.
  34458. 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
  34459. Reviewed by Darin.
  34460. Fix http://bugs.webkit.org/show_bug.cgi?id=10009
  34461. REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
  34462. * page/Frame.cpp:
  34463. (WebCore::Frame::begin): Give PDF plugins a chance to handle frame content, before ImageDocument
  34464. claims it.
  34465. 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34466. Reviewed by Darin.
  34467. - fix http://bugs.webkit.org/show_bug.cgi?id=10083
  34468. REGRESSION (r15584): editing/selection/select-from-textfield-outwards failing
  34469. * rendering/RenderBlock.cpp:
  34470. (WebCore::RenderBlock::positionForCoordinates): Added back change from the fix
  34471. for bug 9312: For coordinates outside a replaced object, return the position
  34472. just before (after) the element if the coordinates are above or to the left (below
  34473. or to the right).
  34474. 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
  34475. Reviewed by maciej.
  34476. Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
  34477. http://bugs.webkit.org/show_bug.cgi?id=9686
  34478. WebCore portion of the fix.
  34479. * bridge/mac/WebCoreScriptDebugger.h:
  34480. (-[WebScriptDebugger exceptionRaised:sourceId:line::]): Add delegate method.
  34481. * bridge/mac/WebCoreScriptDebugger.mm:
  34482. (WebCoreScriptDebuggerImp::exception): Call delegate method when an exception is raised.
  34483. 2006-07-23 Alice Liu <alice.liu@apple.com>
  34484. Reviewed by Adele.
  34485. Actually Adele figured out how to fix the layout test failures. Landing this patch for her. Layout test failures exposed but not caused by r15584 (my patch earlier today).
  34486. * editing/visible_units.cpp:
  34487. (WebCore::previousLinePosition):
  34488. When setting selection endpoints, don't traverse down into nodes where editing would ignore its contents. Use the parent node instead.
  34489. (WebCore::nextLinePosition):
  34490. same as above
  34491. 2006-07-23 David Harrison <harrison@apple.com>
  34492. Reviewed by timo.
  34493. <rdar://problem/4646759> Mail crash editing To Do - WebCore::InsertTextCommand::prepareForTextInsertion
  34494. * Test: editing/deleting/delete-mixed-editable-content-001.html
  34495. * editing/visible_units.cpp:
  34496. (WebCore::startOfParagraph):
  34497. Respect editable boundary the same way endOfParagraph does.
  34498. 2006-07-23 Beth Dakin <bdakin@apple.com>
  34499. Reviewed by Maciej. (Patch by me, Maciej, and Harrison.)
  34500. Fix for <rdar://problem/4529398> WebCore crashes when pasting rich
  34501. text - WebCore::InlineBox::root()
  34502. The initial rendering crash was due to a render object having a
  34503. stale reference to an inline box that had already been deleted and
  34504. then recreated in the exact same location in memory. (Crazy, I
  34505. know.) The situation seemed pretty specific to list markers
  34506. according to Hyatt according to Maciej, so that is what I patched
  34507. specifically. Fixing this crash unearthed a separate editing crash
  34508. where we were trying to insert a block into itself. I worked on
  34509. that with Maciej and Harrison, and Harrison came up with a fix.
  34510. * editing/CompositeEditCommand.cpp:
  34511. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): This is the fix for the editing crash. If paragraphStart is an atomic
  34512. node, insert the new block into the parent instead.
  34513. * rendering/InlineBox.cpp:
  34514. (WebCore::InlineBox::isChildOfParent): This function is for
  34515. posterity. It will help keep the linebox tree in check.
  34516. * rendering/InlineBox.h:
  34517. * rendering/InlineFlowBox.cpp:
  34518. (WebCore::InlineFlowBox::addToLine): Added assert.
  34519. (WebCore::InlineFlowBox::deleteLine): Added assert.
  34520. * rendering/ListMarkerBox.cpp:
  34521. (WebCore::ListMarkerBox::destroy): If this has a parent, call
  34522. removeChild on this.
  34523. (WebCore::ListMarkerBox::operator delete):
  34524. * rendering/ListMarkerBox.h:
  34525. 2006-07-23 Alice Liu <alice.liu@apple.com>
  34526. Reviewed by Darin.
  34527. fixed <rdar://problem/4617841> REGRESSION (NativeTextField): You can move keyboard focus to a field without getting insertion point
  34528. * rendering/RenderBlock.cpp:
  34529. (WebCore::RenderBlock::positionForCoordinates):
  34530. removed some unnecessary vertical position checks and added a fudge factor to be more forgiving for clicks near lines.
  34531. * rendering/RenderTextControl.cpp:
  34532. (WebCore::RenderTextControl::nodeAtPoint):
  34533. added implementation
  34534. * rendering/RenderTextControl.h:
  34535. added function protocol
  34536. 2006-07-23 Adele Peterson <adele@apple.com>
  34537. Reviewed by Darin.
  34538. Updating fix from last checkin.
  34539. * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutVerticalBox):
  34540. Only tell the view about this flexbox if there isn't another flexbox already cached.
  34541. 2006-07-23 Adele Peterson <adele@apple.com>
  34542. Reviewed by Maciej.
  34543. - Fix for <rdar://problem/4644614> REGRESSION: Typing, pasting or dragging in new text areas causes unnecessary scrolling
  34544. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock): Don't updateScrollInfoAfterLayout if an ancestor flexible box is just on
  34545. its first layout.
  34546. * rendering/RenderFlexibleBox.cpp:
  34547. (WebCore::RenderFlexibleBox::layoutBlock): ditto.
  34548. (WebCore::RenderFlexibleBox::layoutVerticalBox): Let the view know if this flex box is doing its first pass at layout.
  34549. * rendering/RenderView.cpp: (WebCore::RenderView::RenderView): Caches a flexible box that's doing its first layout.
  34550. * rendering/RenderView.h:
  34551. (WebCore::RenderView::setFlexBoxInFirstLayout):
  34552. (WebCore::RenderView::flexBoxInFirstLayout):
  34553. 2006-07-22 Alexey Proskuryakov <ap@nypop.com>
  34554. Reviewed by Darin.
  34555. Fix http://bugs.webkit.org/show_bug.cgi?id=10038
  34556. REGRESSION: Length of navigator.mimeTypes collection returns number of installed plugins, not number
  34557. of registered mime types
  34558. * bindings/js/kjs_navigator.cpp:
  34559. (KJS::MimeTypes::getValueProperty): Return the length of the mime types vector, not the plugins one.
  34560. (KJS::MimeTypes::getOwnPropertySlot): Fixed another typo, which prevented MimeTypes::getValueProperty()
  34561. from even being called.
  34562. 2006-07-21 Maciej Stachowiak <mjs@apple.com>
  34563. Reviewed by Adele and Tim Omernick.
  34564. <rdar://problem/4641004> 9A224: Safari crashes in WebCore::RenderMenuList::showPopup when changing a input select field to input text field
  34565. Couldn't figure out how to make layout test, here's a manual test:
  34566. * manual-tests/remove-select-onchange.html: Added.
  34567. * rendering/RenderMenuList.cpp:
  34568. (WebCore::RenderMenuList::showPopup): Don't add the RenderPopupMenu to the render
  34569. tree so it doesn't get destroyed if we do.
  34570. The remaining changes are to let the RenderPopupMenu know its menu list w/o having
  34571. to be in the render tree:
  34572. * rendering/RenderPopupMenu.cpp:
  34573. (WebCore::RenderPopupMenu::RenderPopupMenu):
  34574. * rendering/RenderPopupMenu.h:
  34575. (WebCore::RenderPopupMenu::menuList):
  34576. * rendering/RenderPopupMenuMac.h:
  34577. * rendering/RenderPopupMenuMac.mm:
  34578. (WebCore::RenderPopupMenuMac::RenderPopupMenuMac):
  34579. * rendering/RenderPopupMenuWin.h:
  34580. (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
  34581. * rendering/RenderTheme.h:
  34582. * rendering/RenderThemeMac.h:
  34583. * rendering/RenderThemeMac.mm:
  34584. (WebCore::RenderThemeMac::createPopupMenu):
  34585. * rendering/RenderThemeWin.cpp:
  34586. (WebCore::RenderThemeWin::createPopupMenu):
  34587. * rendering/RenderThemeWin.h:
  34588. 2006-07-21 Adele Peterson <adele@apple.com>
  34589. Reviewed by Darin.
  34590. Fix for: <rdar://problem/4643238> REGRESSION: Can't set insertion point at the end of a line of text
  34591. Test: fast/forms/textarea-scrolled-endline-caret.html
  34592. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::positionForCoordinates):
  34593. When looking for the closest line box, take the scroll offset into account.
  34594. 2006-07-21 Tim Omernick <timo@apple.com>
  34595. Reviewed by Geoff & Maciej.
  34596. <rdar://problem/4632505> REGRESSION: Crash at WebCore::Widget::getView() const + 6
  34597. Geoff is working on a layout test for this.
  34598. * bridge/mac/FrameMac.mm:
  34599. (WebCore::FrameMac::focusWindow):
  34600. (WebCore::FrameMac::unfocusWindow):
  34601. Check for a NULL view. The view can be NULL if the frame has not yet loaded any data. This fixes the crash, but the behavior is still
  34602. wrong -- we should focus the frame once it gets a view. I've filed <rdar://problem/4645685> to track that. It's not as urgent as this
  34603. crasher.
  34604. 2006-07-21 Maciej Stachowiak <mjs@apple.com>
  34605. Reviewed by Darin.
  34606. <rdar://problem/4523976> REGRESSION (NativeTextField): Crash occurs when choosing "Undo Typing" after typing and setting the value
  34607. * rendering/RenderTextControl.cpp:
  34608. (WebCore::RenderTextControl::updateFromElement): Clear the undo
  34609. chain when the text control contents have been set
  34610. programmatically.
  34611. * bridge/mac/FrameMac.mm:
  34612. (WebCore::FrameMac::clearUndoRedoOperations): Before clearing undo
  34613. stack, close all open undo groups and then open an equal number,
  34614. since otherwise NSUndoManager ends up in an inconsistent state
  34615. leading to uncaught ObjC exceptions.
  34616. 2006-07-21 Beth Dakin <bdakin@apple.com>
  34617. Reviewed by Darin.
  34618. Just moving this assertion down a couple of lines. It was hitting
  34619. every time you try to print a page because we put it too early in
  34620. the function.
  34621. * bridge/mac/WebCoreFrameBridge.mm:
  34622. (-[WebCoreFrameBridge drawRect:]):
  34623. 2006-07-21 Justin Garcia <justin.garcia@apple.com>
  34624. Reviewed by levi
  34625. <rdar://problem/4548238>
  34626. REGRESSION: Can't remove the first OL/UL list item in a Mail's compose window
  34627. * editing/CompositeEditCommand.cpp:
  34628. (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
  34629. Moved from InsertParagraphSeparator. Does its own typing style restoration.
  34630. * editing/CompositeEditCommand.h:
  34631. * editing/InsertParagraphSeparatorCommand.cpp:
  34632. (WebCore::InsertParagraphSeparatorCommand::doApply): Call breakOutOfEmptyListItem.
  34633. * editing/TypingCommand.cpp:
  34634. (WebCore::TypingCommand::deleteKeyPressed): Call breakOutOfEmptyListItem if
  34635. the endingSelection is at the start of an editable region.
  34636. * editing/htmlediting.cpp:
  34637. (WebCore::embeddedSublist): Moved from InsertParagraphSeparator.
  34638. (WebCore::appendedSublist): Ditto.
  34639. (WebCore::enclosingEmptyListItem): Ditto.
  34640. * editing/htmlediting.h:
  34641. === Safari-521.20 ===
  34642. 2006-07-21 Tim Omernick <timo@apple.com>
  34643. Reviewed by Beth Dakin & John Sullivan.
  34644. <rdar://problem/4633717> 9A218: Reproducible crash in -[NSScroller mouseDown:]
  34645. Beth is in the middle of making a layout test for this; she will land it soon.
  34646. * platform/mac/ScrollBarMac.mm:
  34647. (ScrollBar::~ScrollBar):
  34648. Call Widget::removeFromSuperview() rather than -removeFromSuperview directly on the scroll bar view.
  34649. Widget::removeFromSuperview() obeys the "mustStayInWindow" flag, which is set while tracking the mouse
  34650. in view-based widgets to prevent their destruction while the tracking is in progress.
  34651. I searched around WebCore and this is the only Widget subclass that directly removes its view rather
  34652. than using removeFromSuperview().
  34653. 2006-07-21 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34654. Reviewed by Darin.
  34655. - fix http://bugs.webkit.org/show_bug.cgi?id=9312
  34656. REGRESSION: Selection bug in new text fields when selecting past the first letter
  34657. Test: editing/selection/select-from-textfield-outwards.html
  34658. * editing/Selection.cpp:
  34659. (WebCore::Selection::adjustForEditableContent): Added code to handle the case
  34660. where the selection starts (resp. ends) in the last (resp. first) visual position
  34661. inside an editable root.
  34662. * editing/htmlediting.cpp:
  34663. (WebCore::comparePositions): Fixed the case of comparing a position inside a shadow
  34664. tree with a position in the shadow ancestor.
  34665. * rendering/RenderBlock.cpp:
  34666. (WebCore::RenderBlock::positionForCoordinates): For coordinates outside a replaced
  34667. object, return the position just before (after) the element if the coordinates are above or
  34668. to the left (below or to the right).
  34669. * rendering/RenderObject.cpp:
  34670. (WebCore::RenderObject::caretMaxOffset): Changed to return 1 for replaced objects.
  34671. * rendering/RenderText.cpp:
  34672. (WebCore::RenderText::positionForCoordinates): Changed to return the last position
  34673. in the lowest text box if the y coordinate is below all text boxes.
  34674. 2006-07-21 Geoffrey Garen <ggaren@apple.com>
  34675. Reviewed by Darin.
  34676. - Fixed <rdar://problem/4507265> REGRESSION: overlays don't work on
  34677. HousingMaps.com (Google Maps-based site)
  34678. - Made style.filter undetectable, like document.all.
  34679. Unfortunately, the SVG spec-makers invented a CSS attribute named 'filter',
  34680. which conflicts with IE's custom CSS attribute by the same name. Web programs
  34681. like the Google maps API test for style.filter, and assume it's the IE
  34682. style.filter if they find it, so we need to make style.filter undetectable
  34683. to avoid breaking them.
  34684. An alternative solution would be to hotwire a delorean, go back in time,
  34685. and beg the web standards makers to make standards that work on the web.
  34686. * bindings/js/kjs_css.cpp:
  34687. (KJS::DOMCSSStyleDeclaration::cssPropertyGetter):
  34688. 2006-07-20 Justin Garcia <justin.garcia@apple.com>
  34689. Reviewed by john
  34690. <rdar://problem/4641033>
  34691. REGRESSION: Pasting from web pages into Mail (or Blot) often loses most of the content
  34692. * editing/markup.cpp:
  34693. (WebCore::createMarkup): We surround the currently accumulated markup with markup
  34694. for ancestors of the startNode when the pre-order traversal leaves the trees rooted
  34695. at those ancestors. We assumed that any ancestors of the current node not in the
  34696. ancestorsToClose list were those kind of ancestors. But we don't add renderer-less
  34697. containers to the ancestorsToClose list. So, we were incorrectly surrounding the
  34698. currently accumulated markup with markup for render-less containers. Most of the
  34699. content at apple.com was being put inside an <optgroup> inside a <select> element.
  34700. Then on Paste createContextualFragment would drop it.
  34701. 2006-07-21 Anders Carlsson <acarlsson@apple.com>
  34702. Reviewed by Geoff.
  34703. * dom/Document.h:
  34704. (WebCore::Document::):
  34705. * dom/EventTargetNode.cpp:
  34706. (WebCore::EventTargetNode::addEventListener):
  34707. * page/FrameView.cpp:
  34708. (WebCore::FrameView::layout):
  34709. * rendering/RenderLayer.cpp:
  34710. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  34711. Only dispatch overflowchanged events if overflowchanged event listeners have been registered on the document.
  34712. 2006-07-20 Anders Carlsson <acarlsson@apple.com>
  34713. Reviewed by Geoff.
  34714. <rdar://problem/4637807> REGRESSION: "Features & Options" page at volvocars.us fails
  34715. * xml/XSLTProcessor.cpp:
  34716. (WebCore::xsltParamArrayFromParameterMap):
  34717. Turns out parameters never worked. String parameters need to be escaped so we create a transform context,
  34718. add the parameters to it quoted and then use xsltApplyStylesheetUser which lets us pass the transform context to it.
  34719. This also works around a bug in libxslt where a hash table isn't allocated.
  34720. 2006-07-20 Alice Liu <alice.liu@apple.com>
  34721. Reviewed by Tim Omernick.
  34722. Fixed <rdar://problem/4621649> repro crash: Upload link causes crash on pages.google.com in Frame::nodeForWidget
  34723. added manual test because there is no way to change the value of an <input type=file> via the DOM. It's not supported because it's a security risk.
  34724. * manual-tests/remove-input-file-onchange.html: Added.
  34725. * platform/mac/FileButtonMac.mm:
  34726. (-[WebFileChooserButton chooseFilename:]):
  34727. swapped the calls to changeFilename and bridgeForWidget because changeFilename will destroy the widget that is accessed in bridgeForWidget
  34728. 2006-07-20 Alice Liu <alice.liu@apple.com>
  34729. Reviewed by Adele.
  34730. Fixed <rdar://problem/4532113> REGRESSION (NativeTextField): Crash occurs after modifying field then reloading page -[FormDelegate frameLayoutHasChanged:]
  34731. added a manual test because of the need to use AutoFill.
  34732. * dom/Node.h:
  34733. (WebCore::Node::aboutToUnload):
  34734. added virtual function prototype
  34735. * html/HTMLInputElement.cpp:
  34736. (WebCore::HTMLInputElement::aboutToUnload):
  34737. added implementation that sends textFieldDidEndEditing notification
  34738. * html/HTMLInputElement.h:
  34739. added virtual function prototype
  34740. * manual-tests/input-type-file-autocomplete-frame-1.html: Added.
  34741. * manual-tests/input-type-file-autocomplete-frame-2.html: Added.
  34742. * manual-tests/input-type-file-autocomplete-refresh.html: Added.
  34743. * page/Frame.cpp:
  34744. (WebCore::Frame::stopLoading):
  34745. before unloading, call aboutToUnload on the current focused node
  34746. 2006-07-20 Brady Eidson <beidson@apple.com>
  34747. Reviewed by Maciej
  34748. fixed <rdar://problem/4611303> REGRESSION: repro crash in WebCore::EventTargetNode::dispatchWindowEvent at aeropostale.com
  34749. There was an attempt to deref an EventListener that got cleaned up in GC. Changing Document's EventListener list from
  34750. vanilla ptrs to refptrs to prevent GC, following EventTargetNode's proven example.
  34751. * dom/Document.cpp:
  34752. (WebCore::Document::Document):
  34753. (WebCore::Document::clear):
  34754. (WebCore::Document::handleWindowEvent):
  34755. (WebCore::Document::getHTMLWindowEventListener):
  34756. (WebCore::Document::removeHTMLWindowEventListener):
  34757. (WebCore::Document::removeWindowEventListener):
  34758. (WebCore::Document::hasWindowEventListener):
  34759. Changed all of the list iterators to work with RefPtrs instead of vanilla ptrs
  34760. * dom/Document.h:
  34761. Changed the EventListener list to be a vanilla pointer list to a refptr list
  34762. 2006-07-20 John Sullivan <sullivan@apple.com>
  34763. Reviewed by Maciej
  34764. - WebCore part of fix for:
  34765. <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
  34766. closing tabs after clicking in a web page
  34767. * bridge/mac/WebCoreFrameBridge.h:
  34768. (-[WebCoreFrameBridge textViewWasFirstResponderAtMouseDownTime:])
  34769. renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
  34770. * bridge/mac/FrameMac.mm:
  34771. (WebCore::FrameMac::passMouseDownEventToWidget):
  34772. updated for name change
  34773. 2006-07-19 Alexey Proskuryakov <ap@nypop.com>
  34774. Reviewed by Darin.
  34775. Fix http://bugs.webkit.org/show_bug.cgi?id=8272
  34776. Use of window.open & window.close can cause crash
  34777. * platform/PlatformMouseEvent.h:
  34778. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  34779. * platform/mac/PlatformMouseEventMac.mm:
  34780. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  34781. The default constructor now creates a "zero" event, and a new one was added to create the "current" one.
  34782. * bridge/mac/FrameMac.mm:
  34783. (WebCore::FrameMac::handleMouseMoveEvent):
  34784. * rendering/RenderFormElement.cpp:
  34785. (WebCore::RenderFormElement::clicked):
  34786. Updated for the above changes.
  34787. * platform/gdk/MouseEventGdk.cpp:
  34788. * platform/gdk/TemporaryLinkStubs.cpp:
  34789. (PlatformMouseEvent::PlatformMouseEvent):
  34790. * platform/win/MouseEventWin.cpp:
  34791. * platform/win/TemporaryLinkStubs.cpp:
  34792. (PlatformMouseEvent::PlatformMouseEvent):
  34793. Trying not to break other platforms.
  34794. * manual-tests/invalid-mouse-event.html: Added.
  34795. 2006-07-20 Maciej Stachowiak <mjs@apple.com>
  34796. Reviewed by Anders.
  34797. - delete line that I only commented in the last patch - meant to do this before landing
  34798. * html/HTMLFrameElement.cpp:
  34799. (WebCore::HTMLFrameElement::close):
  34800. 2006-07-19 Maciej Stachowiak <mjs@apple.com>
  34801. Reviewed by Geoff.
  34802. - fixed <rdar://problem/4634484> REGRESSION: Project Change Request form should have vertical scroll bar, but doesn't
  34803. I couldn't figure out how to make an automated test case for this,
  34804. or even a manual one. It seems to be timing-related in some way.
  34805. * html/HTMLFrameElement.cpp:
  34806. (WebCore::HTMLFrameElement::close): detach the child frame from
  34807. its element, not the frame containing this element.
  34808. 2006-07-20 Anders Carlsson <acarlsson@apple.com>
  34809. Reviewed by Darin.
  34810. * bridge/mac/FrameMac.mm:
  34811. (WebCore::FrameMac::nextKeyViewInFrame):
  34812. Hold a ref to the node in case it gets destroyed by an event handler.
  34813. 2006-07-19 Mark Rowe <opendarwin.org@bdash.net.nz>
  34814. Reviewed by Darin.
  34815. http://bugs.webkit.org/show_bug.cgi?id=10021
  34816. Bug 10021: REGRESSION: Stack overflow due to infinite recursion in
  34817. Image::checkForSolidColor
  34818. * platform/Image.cpp:
  34819. (WebCore::Image::cacheFrame): Don't call checkForSolidColor unless
  34820. the frame was decoded successfully.
  34821. 2006-07-19 Adele Peterson <adele@apple.com>
  34822. Reviewed by Maciej.
  34823. - Fix for:
  34824. <rdar://problem/4422657> REGRESSION: member name field or password field should have focus after loading webmail.mac.com (7405)
  34825. http://bugs.webkit.org/show_bug.cgi?id=7405
  34826. <rdar://problem/4614181> REGRESSION: Crash in WebCore::RenderTextField::text() when quoting post at the Ars Technica forum (9707)
  34827. http://bugs.webkit.org/show_bug.cgi?id=9707
  34828. Needs an http test. (http://bugs.webkit.org/show_bug.cgi?id=10020)
  34829. These bugs were both cases where focus() was called on an element which didn't have a renderer yet because stylesheets hadn't finished loading yet.
  34830. Now, we detect this case and let setFocusNode be called. And when the stylesheet finishes loading, and the element attaches, a timer will fire,
  34831. which will cause the correct selection & scrolling behavior to occur.
  34832. This fix removes selection and scrolling behavior from the focus method. This code is now in a new method, updateFocusAppearance.
  34833. updateFocusAppearance can now be called directly from focus(), but it can also be called when a timer fires. This timer gets set
  34834. up when an element attaches, and its already been focused by the focus method. We have to use a timer, because updateFocusAppearance can cause
  34835. a layout to happen, and we don't want that to happen in the middle of attach().
  34836. * bindings/objc/DOM.mm: (-[DOMElement isFocused]): Added SPI for autofill.
  34837. * bindings/objc/DOMPrivate.h:
  34838. * dom/Element.cpp:
  34839. (WebCore::Element::Element): Initializes timer and needFocusAppearanceUpdate bool.
  34840. (WebCore::Element::attach): Checks needsFocusAppearanceUpdate, and if the node is focused, then starts the timer.
  34841. (WebCore::Element::focus): Updated to check supportsFocus before calling setFocusNode,
  34842. and only requiring the element to be focusable now before updating focus appearance.
  34843. (WebCore::Element::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
  34844. (WebCore::Element::updateFocusAppearanceTimerFired): Stops the timer, and if the element is focusable, calls updateFocusAppearance.
  34845. (WebCore::Element::stopUpdateFocusAppearanceTimer): Cancels timer, and setsNeedsFocusAppearanceUpdate(false).
  34846. (WebCore::Element::detach): Calls stopUpdateFocusAppearanceTimer.
  34847. (WebCore::Element::blur): ditto.
  34848. * dom/Element.h:
  34849. (WebCore::Element::needsFocusAppearanceUpdate): Added so the timer only fires when focus() methods have caused an element to be focused.
  34850. (WebCore::Element::setNeedsFocusAppearanceUpdate): Added so focus methods can set this flag.
  34851. * dom/Node.h: (WebCore::Node::supportsFocus): Added. Base class just calls isFocusable.
  34852. * html/HTMLAnchorElement.h: Added supportsFocus.
  34853. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::supportsFocus): Added. Checks for the case where stylesheets haven't loaded yet,
  34854. so we can still focus the node without a renderer, and when it gets a renderer, we'll update the focus appearance.
  34855. * html/HTMLGenericFormElement.h: (WebCore::HTMLGenericFormElement::supportsFocus): ditto.
  34856. * html/HTMLGenericFormElement.cpp: Removed include of Document.h since this is now in the header.
  34857. * html/HTMLInputElement.cpp:
  34858. (WebCore::HTMLInputElement::focus): Updated to check supportsFocus before calling setFocusNode,
  34859. and only requiring the element to be focusable now before updating focus appearance.
  34860. (WebCore::HTMLInputElement::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
  34861. * html/HTMLInputElement.h:
  34862. * html/HTMLTextAreaElement.cpp:
  34863. (WebCore::HTMLTextAreaElement::focus): Updated to check supportsFocus before calling setFocusNode,
  34864. and only requiring the element to be focusable now before updating focus appearance.
  34865. (WebCore::HTMLTextAreaElement::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
  34866. * html/HTMLTextAreaElement.h:
  34867. 2006-07-19 Justin Garcia <justin.garcia@apple.com>
  34868. Reviewed by levi
  34869. <rdar://problem/4631972>
  34870. REGRESSION: Mail crashes when pasting entire contents of http://www.apple.com/support/ into a new mail message
  34871. * dom/Position.cpp:
  34872. (WebCore::Position::upstream): Deployed isBlock and enclosingBlock.
  34873. (WebCore::Position::downstream): Ditto.
  34874. * editing/CompositeEditCommand.cpp:
  34875. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): Ditto.
  34876. * editing/htmlediting.cpp:
  34877. (WebCore::canHaveChildrenForEditing): Added !iframe.
  34878. (WebCore::isBlock): Added, returns !node->renderer()->isInline()
  34879. (WebCore::enclosingBlock): Added.
  34880. * editing/htmlediting.h:
  34881. 2006-07-19 Anders Carlsson <acarlsson@apple.com>
  34882. Reviewed by Adele.
  34883. <rdar://problem/4631272> REGRESSION: Crash tabbing out of hostname field at autorestore.apple.com
  34884. * bridge/mac/FrameMac.mm:
  34885. (WebCore::FrameMac::nextKeyViewInFrame):
  34886. Take into account that focus handlers can cause a node's renderer to be destroyed.
  34887. 2006-07-19 David Hyatt <hyatt@apple.com>
  34888. Fix for 4638376. The 1x1 solid color image optimization was broken when
  34889. I re-architected image. This patch restores the optimization for CG. Cairo
  34890. will still need the optimization.
  34891. Reviewed by darin
  34892. WARNING: NO TEST CASES ADDED OR CHANGED (need test cases still)
  34893. * platform/Image.cpp:
  34894. (WebCore::Image::Image):
  34895. (WebCore::Image::invalidateData):
  34896. (WebCore::Image::cacheFrame):
  34897. * platform/Image.h:
  34898. (WebCore::Image::setIsPDF):
  34899. * platform/cairo/ImageCairo.cpp:
  34900. (WebCore::Image::checkForSolidColor):
  34901. * platform/mac/ImageMac.mm:
  34902. (WebCore::Image::initNativeData):
  34903. (WebCore::Image::invalidateNativeData):
  34904. (WebCore::Image::checkForSolidColor):
  34905. (WebCore::Image::draw):
  34906. (WebCore::Image::drawTiled):
  34907. 2006-07-19 Justin Garcia <justin.garcia@apple.com>
  34908. Reviewed by levi
  34909. <rdar://problem/4613519>
  34910. REGRESSION: Pasting text in native text area inserts text one character before it should (9527)
  34911. * editing/InsertParagraphSeparatorCommand.cpp:
  34912. (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreakCommand instead of bailing
  34913. if the enclosingBlockFlowElement doesn't have a parent.
  34914. 2006-07-19 David Harrison <harrison@apple.com>
  34915. Reviewed by Tim Hatcher.
  34916. <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
  34917. <rdar://problem/4062218> pasting in contents of web.apple.com strips off the <table> element from the first table
  34918. Better patch than previous checkin.
  34919. * test: editing/pasteboard/paste-table-003.html
  34920. * editing/markup.cpp:
  34921. (WebCore::createMarkup):
  34922. Make sure to include the table when including a tbody.
  34923. === Safari-521.19 ===
  34924. 2006-07-19 David Harrison <harrison@apple.com>
  34925. Reviewed by Tim Hatcher.
  34926. <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
  34927. No test case as this can only be reproduced through ObjC APIs.
  34928. * editing/markup.cpp:
  34929. (WebCore::createMarkup):
  34930. Adjust the range for ancestor markup handling when main loop skips first node.
  34931. 2006-07-18 David Hyatt <hyatt@apple.com>
  34932. Fix for radar 4611287, make resizable text fields opt-in rather than
  34933. opt-out. Open source users will need to write the pref into their defaults
  34934. to see the resizers on textareas now.
  34935. Reviewed by mjs and adele
  34936. * WebCore.xcodeproj/project.pbxproj:
  34937. * bridge/mac/WebCoreSettings.mm:
  34938. (-[WebCoreSettings setTextAreasAreResizable:]):
  34939. * css/cssparser.cpp:
  34940. (WebCore::CSSParser::parseValue):
  34941. * css/cssstyleselector.cpp:
  34942. (WebCore::CSSStyleSelector::applyProperty):
  34943. * css/html4.css:
  34944. 2006-07-18 Anders Carlsson <acarlsson@apple.com>
  34945. Reviewed by Darin.
  34946. http://bugs.webkit.org/show_bug.cgi?id=9959
  34947. REGRESSION: iframes stop rendering after 200th one on successive reloads
  34948. * html/HTMLFrameElement.cpp:
  34949. (WebCore::HTMLFrameElement::attach):
  34950. (WebCore::HTMLFrameElement::close):
  34951. * html/HTMLIFrameElement.cpp:
  34952. (WebCore::HTMLIFrameElement::insertedIntoDocument):
  34953. (WebCore::HTMLIFrameElement::willRemove):
  34954. Remove calls to incrementFrameCount and decrementFrameCount.
  34955. * page/Frame.cpp:
  34956. (WebCore::Frame::Frame):
  34957. Call incrementFrameCount here.
  34958. (WebCore::Frame::~Frame):
  34959. Call disconnectOwnerElement.
  34960. (WebCore::Frame::disconnectOwnerElement):
  34961. Call decrementFrameCount here.
  34962. 2006-07-18 Alexey Proskuryakov <ap@nypop.com>
  34963. Reviewed by Darin.
  34964. Fix http://bugs.webkit.org/show_bug.cgi?id=9013
  34965. Let correct CSS custom cursor declarations parse
  34966. * css/cssparser.cpp:
  34967. (WebCore::CSSParser::parseValue): Ignore any values following a custom CSS cursor URI, instead of
  34968. requiring that it is the only one in the list (which is actually illegal, according to the spec).
  34969. This is only a temporary hack, with a real implementation to follow in bug 6001/6002.
  34970. * manual-tests/custom-cursors.html: Added a test for this issue.
  34971. * manual-tests/resources/helpCursor.tiff: A cursor image used in the test.
  34972. 2006-07-18 Timothy Hatcher <timothy@apple.com>
  34973. Reviewed by Anders.
  34974. <rdar://problem/4636216> NetNewsWire fails to launch on 9A224 - missing symbols
  34975. WebCore needs to add -sub_library libobjc to maintain
  34976. backwards compatibility with binaries linked with WebKit
  34977. before JavaScriptCore moved out of WebKit.
  34978. * WebCore.xcodeproj/project.pbxproj:
  34979. 2006-07-18 Mitz Pettel <opendarwin.org@mitzpettel.com>
  34980. Reviewed by Justin.
  34981. - fix http://bugs.webkit.org/show_bug.cgi?id=9978
  34982. REGRESSION (r12949-r12988): Clicking the first letter on a line places the caret at the end of the previous line
  34983. Test: editing/selection/click-start-of-line.html
  34984. * rendering/RenderText.cpp:
  34985. (WebCore::RenderText::positionForCoordinates): Changed to return downstream
  34986. affinity if the x coordinate is to the left of the middle of the first character
  34987. in the text box.
  34988. 2006-07-18 Anders Carlsson <acarlsson@apple.com>
  34989. Reviewed by Darin.
  34990. http://bugs.webkit.org/show_bug.cgi?id=9695
  34991. <rdar://problem/4614085>
  34992. TOT REGRESSION: NativeTextArea: Text area does not respond to Cmd-UpArrow/Cmd-DownArrow (9695)
  34993. * editing/SelectionController.cpp:
  34994. (WebCore::SelectionController::modifyExtendingRightForward):
  34995. (WebCore::SelectionController::modifyMovingRightForward):
  34996. (WebCore::SelectionController::modifyExtendingLeftBackward):
  34997. (WebCore::SelectionController::modifyMovingLeftBackward):
  34998. If the caret is inside an editable region, the beginning/end of the document should actually be the
  34999. beginning/end of the editable region.
  35000. 2006-07-17 Tim Omernick <timo@apple.com>
  35001. Reviewed by Maciej.
  35002. <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
  35003. by script
  35004. * bridge/mac/WebCoreFrameBridge.h:
  35005. * bridge/mac/WebCoreFrameBridge.mm:
  35006. (-[WebCoreFrameBridge setProhibitsScrolling:]):
  35007. * page/Frame.cpp:
  35008. (WebCore::Frame::prohibitsScrolling):
  35009. (WebCore::Frame::setProhibitsScrolling):
  35010. * page/Frame.h:
  35011. * page/FramePrivate.h:
  35012. (WebCore::FramePrivate::FramePrivate):
  35013. * page/FrameView.cpp:
  35014. (WebCore::FrameView::scrollPointRecursively):
  35015. (WebCore::FrameView::setContentsPos):
  35016. * page/FrameView.h:
  35017. * platform/ScrollView.h:
  35018. 2006-07-17 Maciej Stachowiak <mjs@apple.com>
  35019. Reviewed by Dave Harrison.
  35020. - fixed <rdar://problem/4618089> Blot crashes when I paste in all the contents of http://www.apple.com/startpage/
  35021. * editing/htmlediting.cpp:
  35022. (WebCore::editingIgnoresContent):
  35023. 2006-07-17 Justin Garcia <justin.garcia@apple.com>
  35024. Reviewed by levi
  35025. <rdar://problem/4621728>
  35026. REGRESSION: Selecting by dragging down creates selection in wrong direction, with certain steps
  35027. <rdar://problem/4604932>
  35028. REGRESSION: Dragging too far left on a line will select all lines above it.
  35029. No layout test because of 9980.
  35030. * rendering/RenderBlock.cpp:
  35031. (WebCore::RenderBlock::positionForCoordinates): Don't return positions inside editable roots
  35032. for coordinates outside those roots, except for coordinates outside a document that is entirely
  35033. editable.
  35034. 2006-07-17 Timothy Hatcher <timothy@apple.com>
  35035. Reviewed by Darin.
  35036. <rdar://problem/4635281> JSCanvasRenderingContext2D::drawImage needs to initialize the exception code to zero
  35037. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  35038. (WebCore::JSCanvasRenderingContext2D::drawImage): initialize ec to zero
  35039. * html/CanvasRenderingContext2D.cpp:
  35040. (WebCore::CanvasRenderingContext2D::drawImage): initialize ec before earlier return
  35041. 2006-07-17 Timothy Hatcher <timothy@apple.com>
  35042. Reviewed by Maciej.
  35043. <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
  35044. Moves WebScriptObject and WebUndefined to WebCore.
  35045. * WebCore.exp:
  35046. * WebCore.xcodeproj/project.pbxproj:
  35047. * bindings/objc/DOM.mm:
  35048. * bindings/objc/DOMCore.h:
  35049. * bindings/objc/DOMInternal.mm:
  35050. * bindings/objc/DOMUtility.mm:
  35051. * bindings/objc/WebScriptObject.mm: Added.
  35052. (+[WebUndefined allocWithZone:]):
  35053. (-[WebUndefined initWithCoder:]):
  35054. (-[WebUndefined encodeWithCoder:]):
  35055. (-[WebUndefined copyWithZone:]):
  35056. * bindings/objc/WebScriptObjectPrivate.h: Added.
  35057. * bridge/mac/FrameMac.mm:
  35058. * bridge/mac/WebCoreScriptDebugger.mm:
  35059. 2006-07-17 David Hyatt <hyatt@apple.com>
  35060. Back out the fix for 5564, since it turns out font:x-small; is a pretty
  35061. prominent IE-specific CSS hack. Because Web sites rely on IE's incorrect
  35062. font parsing as a means of also correcting IE's incorrect font size rules.
  35063. This fixes Yahoo.com.
  35064. Reviewed by darin
  35065. * css/cssparser.cpp:
  35066. (WebCore::CSSParser::parseFont):
  35067. 2006-07-17 Justin Garcia <justin.garcia@apple.com>
  35068. Reviewed by levi
  35069. <rdar://problem/4618389> REGRESSION: After applying a link to the last word of a sentence, a new selection is created at the start of the sentence
  35070. * dom/Document.cpp:
  35071. (WebCore::Document::updateSelection):
  35072. 2006-07-17 Maciej Stachowiak <mjs@apple.com>
  35073. Reviewed by Beth.
  35074. <rdar://problem/4604946> REGRESSION: 'checkboxRef.checked = true' fires onchange event in Leopard
  35075. * html/HTMLInputElement.cpp:
  35076. (WebCore::HTMLInputElement::setChecked):
  35077. (WebCore::HTMLInputElement::preDispatchEventHandler):
  35078. * html/HTMLInputElement.h:
  35079. 2006-07-16 David Kilzer <ddkilzer@kilzer.net>
  35080. Reviewed by Darin.
  35081. - fix for http://bugs.webkit.org/show_bug.cgi?id=9954
  35082. REGRESSION: document.dir should return empty string in <head>
  35083. Test: fast/dom/document-dir-property.html
  35084. * bindings/js/kjs_html.cpp:
  35085. (KJS::JSHTMLDocument::getValueProperty): Return an empty string instead of an
  35086. undefined value for an unset document.dir property.
  35087. 2006-07-16 David Kilzer <ddkilzer@kilzer.net>
  35088. Reviewed by Darin.
  35089. * dom/NodeFilter.idl:
  35090. Removed "No newline at end of file" that snuck in as part of the "apply patch" process.
  35091. * manual-tests/input-empty-on-focus.html:
  35092. Removed "Property changes" that snuck in as part of the "apply patch" process.
  35093. 2006-07-16 Darin Adler <darin@apple.com>
  35094. Reviewed by John Sullivan.
  35095. - fix http://bugs.webkit.org/show_bug.cgi?id=9943
  35096. <rdar://problem/4590613>
  35097. REGRESSION (Tiger-TOT): menus are offset to the right at http://movies.aol.com/movie-photo-bts/superman-returns
  35098. The problem turns out to be the fact that body.offsetLeft is returning a non-zero value.
  35099. I have no idea why the menus worked in Tiger Safari, because body.offsetLeft behavior has not changed.
  35100. Presumably some other bug that we fixed had been compensating.
  35101. Test: fast/html/body-offset-properties.html
  35102. * rendering/RenderObject.cpp:
  35103. (WebCore::RenderObject::offsetLeft): Always return 0 for any object without an offsetParent.
  35104. (WebCore::RenderObject::offsetTop): Ditto.
  35105. (WebCore::RenderObject::offsetParent): Return 0 for the body (treat as a special case).
  35106. 2006-07-16 Beth Dakin <bdakin@apple.com>
  35107. Reviewed by Maciej.
  35108. Fix for <rdar://problem/4616595> REGRESSION: Problems with world
  35109. clock widget clock hand motion on 9A211 + 4604574
  35110. The second hand on the widget was jiggling because the rotation was
  35111. messing up the use of the affine transformation matrix while
  35112. rounding to pixel boundaries in device space. We are mainly
  35113. concerned with rounding to pixel boundaries with the scale in mind,
  35114. so this patch extracts the scale to device space from the matrix,
  35115. and rounds to pixel boundaries using only the scale. This doesn't
  35116. seem like it is a perfect solution, but it definitely solves the
  35117. immediate problem. We will probably need to re-address what should
  35118. happen to avoid pixel cracks with rotations at non-integral scale
  35119. factors.
  35120. * platform/cg/GraphicsContextCG.cpp:
  35121. (WebCore::GraphicsContext::roundToDevicePixels):
  35122. 2006-07-15 Darin Adler <darin@apple.com>
  35123. - fix mistake from fix for 8952 that was breaking layout tests
  35124. * editing/SelectionController.cpp: (WebCore::SelectionController::nodeWillBeRemoved):
  35125. Justin was right! I changed the behavior of the function by accident. Changed it
  35126. back so that it doesn't blow away the selection on the DOM side in the case where
  35127. it didn't before.
  35128. I will write 100 times on the blackboard: "When Justin says something about editing,
  35129. assume he is right."
  35130. 2006-07-15 Darin Adler <darin@apple.com>
  35131. - try to fix Windows build
  35132. * WebCore.vcproj/WebCore/WebCore.vcproj: Added StreamingTextDecoderICU.cpp/h.
  35133. 2006-07-15 Darin Adler <darin@apple.com>
  35134. Reviewed by John Sullivan.
  35135. - fix http://bugs.webkit.org/show_bug.cgi?id=8952
  35136. <rdar://problem/4575185>
  35137. REGRESSION: crash on drag of highlighted Google custom home page modules
  35138. Test: fast/dynamic/move-node-with-selection.html
  35139. * editing/SelectionController.cpp: (WebCore::SelectionController::nodeWillBeRemoved):
  35140. Call updateRendering before calling clearSelection(), since it's important to do any
  35141. work beforehand, and there are calls inside clearSelection that will indirectly do an
  35142. updateRendering. Also change code to make fewer assumptions about object lifetime.
  35143. 2006-07-15 Darin Adler <darin@apple.com>
  35144. Reviewed by John Sullivan.
  35145. - fix http://bugs.webkit.org/show_bug.cgi?id=8587
  35146. <rdar://problem/4631844>
  35147. REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
  35148. Test: fast/lists/numeric-markers-outside-list.html
  35149. * rendering/RenderListItem.cpp: (WebCore::previousListItem):
  35150. Look for list items, even when we're outside any list.
  35151. 2006-07-15 Adele Peterson <adele@apple.com>
  35152. Reviewed by John.
  35153. - Fix for <rdar://problem/4593970> REGRESSION (NativeTextField): autofill menu disappears after typing a 2nd character
  35154. This was caused by composite editing commands, (like typing or pasting) that include a DeleteCommand, being
  35155. interpreted by the form delegate as an actual delete. This fix doesn't notify the form delegate if the deletion is
  35156. part of an editing command to replace the selected text.
  35157. * editing/DeleteSelectionCommand.h: Added m_replace to keep track of whether this deletion is
  35158. part of a composite command to replace the text being deleted.
  35159. * editing/DeleteSelectionCommand.cpp:
  35160. (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Initialize m_replace.
  35161. (WebCore::DeleteSelectionCommand::doApply): Only notify the form delegate of the deletion if the text is not being replaced.
  35162. * editing/CompositeEditCommand.h:
  35163. * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::deleteSelection):
  35164. Added replace argument to construct DeleteSelectionCommand.
  35165. * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input): Call deleteSelection with replace argument.
  35166. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): ditto.
  35167. 2006-07-15 Geoffrey Garen <ggaren@apple.com>
  35168. Reviewed by Maciej, tweaked to match Darin's patch.
  35169. - Fixed <rdar://problem/4631837> REGRESSION: Reproducible crash on
  35170. FCKeditor demo (9911)
  35171. * WebCore.xcodeproj/project.pbxproj:
  35172. * bindings/js/kjs_html.cpp:
  35173. (KJS::JSHTMLDocument::putValueProperty): Check for a null body element before
  35174. forwarding the put request to it. I confirmed that no other parts of the
  35175. file use 'body' or 'bodyElement' without checking for null.
  35176. Also, use 'body' rather than 'bodyElement' because dir can bet set on
  35177. any element, not just HTMLBodyElement.
  35178. 2006-07-15 Darin Adler <darin@apple.com>
  35179. Reviewed by Adele.
  35180. - fix http://bugs.webkit.org/show_bug.cgi?id=8871
  35181. <rdar://problem/4575417>
  35182. REGRESSION: Pressing Enter/Return in a text input removes the selected text
  35183. - fix http://bugs.webkit.org/show_bug.cgi?id=9743
  35184. <rdar://problem/4614228>
  35185. REGRESSION: crash dispatching JavaScript-created keyboard event to input element
  35186. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::doTextFieldCommandFromEvent):
  35187. Add a null check to fix the crash, and a FIXME explaining why this is not necessarily
  35188. enough for the future.
  35189. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
  35190. Consume Enter key keypress events even if the element is not in a form.
  35191. * platform/mac/KeyEventMac.mm: (WebCore::keyIdentifierForKeyEvent): Added \n to the
  35192. characters that turn into "Enter". Actual keyboard events always are \r or \003 on
  35193. the Macintosh, but in layout tests we can use \n, and everything other than the
  35194. code path here works, so worth fixing.
  35195. 2006-07-15 Darin Adler <darin@apple.com>
  35196. Reviewed by John Sullivan.
  35197. - fix http://bugs.webkit.org/show_bug.cgi?id=9883
  35198. <rdar://problem/4631821>
  35199. REGRESSION: NativePopups don't work correctly in some forum software
  35200. Test: fast/forms/select-selected.html
  35201. * rendering/RenderMenuList.h:
  35202. * rendering/RenderMenuList.cpp:
  35203. (WebCore::RenderMenuList::updateFromElement): Added code to map the selected option
  35204. index to a list index before using it to index into the list.
  35205. (WebCore::RenderMenuList::showPopup): Added code to map the selection option index
  35206. to a list index before passing it to the menu renderer.
  35207. (WebCore::RenderMenuList::valueChanged): Added code to map the list index back to a
  35208. option index before calling setSelectedIndex (that function takes an option index).
  35209. 2006-07-15 Darin Adler <darin@apple.com>
  35210. Reviewed by John Sullivan.
  35211. - fix http://bugs.webkit.org/show_bug.cgi?id=9928
  35212. REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
  35213. * bindings/objc/DOM.mm:
  35214. (-[DOMNode addEventListener:::]): Moved into DOMEventTarget category.
  35215. (-[DOMNode removeEventListener:::]): Ditto.
  35216. (-[DOMNode dispatchEvent:]): Ditto.
  35217. * WebCore.xcodeproj/project.pbxproj: Allow Xcode to do its thing.
  35218. 2006-07-15 Maciej Stachowiak <mjs@apple.com>
  35219. Reviewed by Anders.
  35220. <rdar://problem/4632144> REGRESSION: table column tests failing as a result of very recent fix
  35221. * rendering/RenderTable.cpp:
  35222. (WebCore::RenderTable::addChild): columns and colgroups are valid children of a table too, not
  35223. just table sections!
  35224. 2006-07-15 Anders Carlsson <acarlsson@apple.com>
  35225. Reviewed by Darin.
  35226. http://bugs.webkit.org/show_bug.cgi?id=9866
  35227. <rdar://problem/4631561>
  35228. REGRESSION: Repro crash from mangleme using iframe, only from server.
  35229. * html/HTMLIFrameElement.cpp:
  35230. (WebCore::HTMLIFrameElement::attach):
  35231. Add null check for contentFrame() since content frames won't be created for invalid URLs.
  35232. 2006-07-14 Alexey Proskuryakov <ap@nypop.com>
  35233. Reviewed by Darin.
  35234. Fix http://bugs.webkit.org/show_bug.cgi?id=4195
  35235. REGRESSION: KOI8-U encoding no longer supported.
  35236. Tests:
  35237. * http/tests/misc/BOM-override.pl
  35238. * http/tests/misc/BOM-override-script.html
  35239. * fast/encoding/charset-koi8-u.html
  35240. * fast/encoding/charset-x-nextstep.html
  35241. Restored a TEC code path for encodings that are not supported by ICU (but which currently
  35242. passes all layout tests even by itself with ICU disabled). A lot of refactoring is
  35243. still needed - most importantly, round-tripping encoding names via CFStringEncoding
  35244. makes little sense now.
  35245. * WebCore.exp:
  35246. * bridge/mac/WebCoreTextDecoder.h: Removed.
  35247. * bridge/mac/WebCoreTextDecoder.mm: Removed.
  35248. WebCoreTextDecoder was not used anywhere since WebTextView was moved into WebCore.
  35249. * loader/Decoder.cpp:
  35250. (Decoder::Decoder):
  35251. (Decoder::setEncodingName):
  35252. (Decoder::decode):
  35253. Use StreamingTextDecoder::create().
  35254. * platform/StreamingTextDecoder.cpp:
  35255. (WebCore::StreamingTextDecoder::create):
  35256. (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
  35257. * platform/StreamingTextDecoder.h:
  35258. StreamingTextDecoder is just an abstract interface to implementations now.
  35259. * platform/StreamingTextDecoderICU.cpp: Added.
  35260. (WebCore::StreamingTextDecoderICU::StreamingTextDecoderICU):
  35261. (WebCore::StreamingTextDecoderICU::~StreamingTextDecoderICU):
  35262. (WebCore::StreamingTextDecoderICU::releaseICUConverter):
  35263. (WebCore::StreamingTextDecoderICU::textEncodingSupported):
  35264. (WebCore::StreamingTextDecoderICU::convertUTF16):
  35265. (WebCore::StreamingTextDecoderICU::convertIfASCII):
  35266. (WebCore::StreamingTextDecoderICU::createICUConverter):
  35267. (WebCore::StreamingTextDecoderICU::appendOmittingBOM):
  35268. (WebCore::StreamingTextDecoderICU::convertUsingICU):
  35269. (WebCore::StreamingTextDecoderICU::convert):
  35270. (WebCore::StreamingTextDecoderICU::toUnicode):
  35271. (WebCore::StreamingTextDecoderICU::fromUnicode):
  35272. * platform/StreamingTextDecoderICU.h: Added.
  35273. Renamed from StreamingTextDecoder; added a way to tell whether the encoding is actually
  35274. supported by the decoder; minor cleanup.
  35275. * platform/TextEncoding.cpp:
  35276. (WebCore::TextEncoding::effectiveEncoding): Moved from StreamingTextDecoder.
  35277. (WebCore::TextEncoding::toUnicode): Use StreamingTextDecoder::create().
  35278. (WebCore::TextEncoding::fromUnicode): Moved to StreamingTextDecoderICU.
  35279. * platform/TextEncoding.h: Changed __APPLE__ to PLATFORM(MAC); added effectiveEncoding().
  35280. * platform/mac/StreamingTextDecoderMac.cpp: Added.
  35281. (WebCore::StreamingTextDecoderMac::StreamingTextDecoderMac):
  35282. (WebCore::StreamingTextDecoderMac::~StreamingTextDecoderMac):
  35283. (WebCore::StreamingTextDecoderMac::releaseTECConverter):
  35284. (WebCore::StreamingTextDecoderMac::textEncodingSupported):
  35285. (WebCore::StreamingTextDecoderMac::convertUTF16):
  35286. (WebCore::StreamingTextDecoderMac::convertIfASCII):
  35287. (WebCore::StreamingTextDecoderMac::createTECConverter):
  35288. (WebCore::StreamingTextDecoderMac::appendOmittingBOM):
  35289. (WebCore::StreamingTextDecoderMac::convertOneChunkUsingTEC):
  35290. (WebCore::StreamingTextDecoderMac::convertUsingTEC):
  35291. (WebCore::StreamingTextDecoderMac::convert):
  35292. (WebCore::StreamingTextDecoderMac::toUnicode):
  35293. (WebCore::StreamingTextDecoderMac::fromUnicode):
  35294. * platform/mac/StreamingTextDecoderMac.h: Added.
  35295. (WebCore::StreamingTextDecoderMac::convert):
  35296. This is a TEC+CFString code path for decoding, basically restored from a year-old revision.
  35297. * platform/mac/TextEncodingMac.cpp: Removed. Code moved to StreamingTextDecoderMac.
  35298. * WebCore.xcodeproj/project.pbxproj:
  35299. === Safari-521.17 ===
  35300. 2006-07-14 Timothy Hatcher <timothy@apple.com>
  35301. <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
  35302. Made a DOMNode category in DOMEvents.h that lets DOMNode conform to the
  35303. DOMEventTarget protocol that works with GCC 5412.
  35304. Removed forward declarations of WebCoreWidgetHolder and imported WebCoreWidgetHolder.h.
  35305. Removed all <Cocoa/Cocoa.h> and <Foundation/Foundation.h> imports in other headers,
  35306. we import <Cocoa/Cocoa.h> in the prefix header for ObjC.
  35307. * WebCore.xcodeproj/project.pbxproj:
  35308. * bindings/objc/DOMCore.h:
  35309. * bindings/objc/DOMEvents.h:
  35310. * bridge/mac/FormDataMac.h:
  35311. * bridge/mac/WebCoreAXObject.h:
  35312. * bridge/mac/WebCoreCache.h:
  35313. * bridge/mac/WebCoreEncodings.h:
  35314. * bridge/mac/WebCoreFrameBridge.h:
  35315. * bridge/mac/WebCoreFrameNamespaces.h:
  35316. * bridge/mac/WebCoreJavaScript.h:
  35317. * bridge/mac/WebCorePageBridge.h:
  35318. * bridge/mac/WebCorePageState.h:
  35319. * bridge/mac/WebCoreResourceLoader.h:
  35320. * bridge/mac/WebCoreScriptDebugger.h:
  35321. * bridge/mac/WebCoreSettings.h:
  35322. * bridge/mac/WebCoreStringTruncator.h:
  35323. * bridge/mac/WebCoreStringTruncator.mm:
  35324. * bridge/mac/WebCoreTextDecoder.h:
  35325. * bridge/mac/WebDashboardRegion.h:
  35326. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  35327. * platform/mac/CookieJar.mm:
  35328. * platform/mac/DeprecatedStringMac.mm:
  35329. * platform/mac/FontDataMac.mm:
  35330. * platform/mac/FoundationExtras.h:
  35331. * platform/mac/TextBoundaries.mm:
  35332. * platform/mac/WebCoreHistory.h:
  35333. * platform/mac/WebCoreHistory.m:
  35334. * platform/mac/WebCoreKeyGenerator.h:
  35335. * platform/mac/WebCoreTextArea.h:
  35336. * platform/mac/WebCoreTextField.h:
  35337. * platform/mac/WebCoreTextRenderer.h:
  35338. * platform/mac/WebCoreView.h:
  35339. * platform/mac/WebCoreWidgetHolder.h:
  35340. 2006-07-14 Geoffrey Garen <ggaren@apple.com>
  35341. Reviewed by Maciej.
  35342. - Updated ScriptInterpreter to work with Interpreter ref-counting in
  35343. JavaScriptCore.
  35344. (KJS::ScriptInterpreter::~ScriptInterpreter): Now protected to catch
  35345. manual delete.
  35346. 2006-07-14 Anders Carlsson <acarlsson@apple.com>
  35347. Reviewed by Adele and Justin.
  35348. http://bugs.webkit.org/show_bug.cgi?id=9658
  35349. <rdar://problem/4613948>
  35350. REGRESSION: Check Spelling does not work in textarea elements
  35351. * bridge/mac/FrameMac.mm:
  35352. (WebCore::FrameMac::advanceToNextMisspelling):
  35353. Don't use setStartBefore or setEndAfter on the search range because for shadow trees, there
  35354. is no notion of before and after. Instead, use setStart and setEnd and pass in the start and end
  35355. indices respectively.
  35356. * dom/Range.cpp:
  35357. (WebCore::Range::checkNodeBA):
  35358. Allow range operations on shadow trees.
  35359. * manual-tests/form-element-spelling.html: Added.
  35360. 2006-07-14 Beth Dakin <bdakin@apple.com>
  35361. Reviewed by Hyatt.
  35362. Fix for <rdar://problem/4621660> REGRESSION: Safari crashing in
  35363. WebCore::FrameView::updateOverflowStatus
  35364. m_viewportRenderer is never initialized for framesets, and it
  35365. shouldn't be. So we just need to nil-check for it in
  35366. updateOverflowStatus() and return early.
  35367. * page/FrameView.cpp:
  35368. (WebCore::FrameView::updateOverflowStatus): Nil check.
  35369. 2006-07-14 Adele Peterson <adele@apple.com>
  35370. RS by Darin.
  35371. Backing out fix for <rdar://problem/4604703>
  35372. REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field
  35373. Darin had a better fix in WebKit for this.
  35374. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
  35375. 2006-07-14 Adele Peterson <adele@apple.com>
  35376. Reviewed by Darin.
  35377. - Fix for <rdar://problem/4614054> REGRESSION: Safari submits forms when the Return key is hit to complete inline inputs
  35378. * page/Frame.h: (WebCore::Frame::inputManagerHasMarkedText): Added.
  35379. * bridge/mac/FrameMac.h: ditto.
  35380. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::inputManagerHasMarkedText): Added. Asks the input manager if there's marked text.
  35381. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): For text fields, don't submit the form on Enter
  35382. if the input manager says there's marked text. I added this code for all text field paths. For widgets, WebCoreTextField.mm
  35383. has code to deal with this case. But as we convert search, password, and isindex, they will need to do this check too.
  35384. 2006-07-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
  35385. Reviewed by Darin.
  35386. - fix http://bugs.webkit.org/show_bug.cgi?id=9907
  35387. REGRESSION (r15418): editing/pasteboard/paste-table-001 fails in pixel mode
  35388. * rendering/RenderText.cpp:
  35389. (WebCore::RenderText::caretRect): Fixed the calculation of the max/min allowed caret
  35390. position.
  35391. 2006-07-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
  35392. Reviewed by Darin.
  35393. - fix http://bugs.webkit.org/show_bug.cgi?id=9905
  35394. REGRESSION (r15404-r15415): Repro crash when pressing delete in an empty editable div
  35395. Test: editing/deleting/delete-at-start-or-end.html
  35396. * editing/TypingCommand.cpp:
  35397. (WebCore::TypingCommand::deleteKeyPressed): Added null check.
  35398. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  35399. 2006-07-14 David Kilzer <ddkilzer@kilzer.net>
  35400. Reviewed by Geoffrey.
  35401. - fix http://bugs.webkit.org/show_bug.cgi?id=9903
  35402. Simplify logic in JSHTMLOptionsCollection::setLength() by using no-arg getNumber()
  35403. No test cases since there is no change in functionality.
  35404. * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
  35405. (WebCore::JSHTMLOptionsCollection::setLength): Simplified logic by using the
  35406. no-argument getNumber() method.
  35407. 2006-07-14 Geoffrey Garen <ggaren@apple.com>
  35408. Reviewed by Adele.
  35409. - Build fix: don't need BLOCK_OBJC_EXCEPTIONS because we already have
  35410. one surrounding this function, and the nested one makes the compiler
  35411. think our local variable is volatile (seems like a compiler bug to me).
  35412. * bridge/mac/FrameMac.mm:
  35413. (WebCore::FrameMac::sendContextMenuEvent):
  35414. 2006-07-14 Timothy Hatcher <timothy@apple.com>
  35415. Reviewed by Maciej.
  35416. Make JavaScriptCore a public framework. Adjusted the paths.
  35417. * WebCore.xcodeproj/project.pbxproj:
  35418. 2006-07-14 Maciej Stachowiak <mjs@apple.com>
  35419. Reviewed by Hyatt.
  35420. - fixed <rdar://problem/4567031> REGRESSION: Crash at WebCore::RenderBlock::createLineBoxes (seems to be a security hole?)
  35421. I also fixed all the similar crash / assertion failure cases I could think of.
  35422. * dom/Node.cpp:
  35423. (WebCore::Node::nextRendererWithSameParent): Helper function for some of the above.
  35424. * dom/Node.h:
  35425. * rendering/RenderTable.cpp:
  35426. (WebCore::RenderTable::addChild): Don't allow inserting forms when not in
  35427. an HTML document, since we don't need that quirk and because parsing won't
  35428. do certain render tree fixups. Also watch out for case when inserting before
  35429. the renderer of a misnested child.
  35430. * rendering/RenderTableRow.cpp:
  35431. (WebCore::RenderTableRow::addChild): ditto
  35432. * rendering/RenderTableSection.cpp:
  35433. (WebCore::RenderTableSection::addChild): ditto
  35434. 2006-07-13 Adele Peterson <adele@apple.com>
  35435. Reviewed by Maciej.
  35436. - Fix for <rdar://problem/4604703>
  35437. REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field
  35438. Test:
  35439. * manual-tests/password-ctrl-click-lose-focus.html: Added.
  35440. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
  35441. If we're about to set a selection in the current view, make sure its the first responder.
  35442. In this case, this will cause the password field to resign first responder at the right time.
  35443. 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
  35444. Reviewed by Hyatt.
  35445. - fix http://bugs.webkit.org/show_bug.cgi?id=9670
  35446. REGRESSION: RTL white-space:pre-wrap text is offset to the right
  35447. Test: fast/text/international/rtl-white-space-pre-wrap.html
  35448. * rendering/RenderText.cpp:
  35449. (WebCore::RenderText::caretRect): Fixed LTR case and added the RTL case
  35450. of clipping the caret position to the text box when the caret is after
  35451. the trailing space of an autowrapped line.
  35452. * rendering/bidi.cpp:
  35453. (WebCore::RenderBlock::computeHorizontalPositionsForLine): Changed to truncate-
  35454. to-fit the logically last text box if it contains the trailing spaces of an
  35455. autowrapped line.
  35456. (WebCore::RenderBlock::bidiReorderLine): Remember the logically last text run.
  35457. In the case of autowrapped text with white space that overflows beyond the line,
  35458. the last text run is the one containing the overflowing white space.
  35459. (WebCore::RenderBlock::findNextLineBreak): Split overflowing white space on a
  35460. line that autowraps only after white space into a separate text run.
  35461. 2006-07-13 David Harrison <harrison@apple.com>
  35462. Reviewed by Dave Hyatt.
  35463. <rdar://problem/4624203> -webkit-highlight should be behind images
  35464. * rendering/RenderImage.cpp:
  35465. (WebCore::RenderImage::paint):
  35466. * rendering/RenderListMarker.cpp:
  35467. (WebCore::RenderListMarker::paint):
  35468. * rendering/RenderWidget.cpp:
  35469. (WebCore::RenderWidget::paint):
  35470. Call custom highlighter before painting the image, marker, or widget.
  35471. 2006-07-13 David Harrison <harrison@apple.com>
  35472. Reviewed by Justin and Levi.
  35473. <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
  35474. * Tests:
  35475. editing/deleting/delete-by-word-001.html
  35476. editing/deleting/delete-by-word-002.html
  35477. * editing/TypingCommand.cpp:
  35478. (WebCore::TypingCommand::deleteKeyPressed):
  35479. (WebCore::TypingCommand::forwardDeleteKeyPressed):
  35480. (WebCore::TypingCommand::doApply):
  35481. * editing/TypingCommand.h:
  35482. Delete and forward delete to use specified granularity.
  35483. Undo of delete and forward delete to select what had been deleted (non-char granularity only).
  35484. * page/Frame.cpp:
  35485. (WebCore::Frame::setSelection):
  35486. Close typing and end style even if selection is not changing.
  35487. * page/Frame.h:
  35488. Remove unused setSelection parameter keepTypingStyle.
  35489. 2006-07-12 Levi Weintraub <lweintraub@apple.com>
  35490. Reviewed by justin
  35491. <rdar://problem/4622763> Deleting from beginning of paragraph following a table deletes rather than selects the table
  35492. * editing/DeleteSelectionCommand.cpp:
  35493. (WebCore::DeleteSelectionCommand::initializeStartEnd): Added selection expansion for HRs.
  35494. (WebCore::DeleteSelectionCommand::initializePositionData): Now uses enclosingBlockFlowOrTableElement
  35495. instead of enclosingBlockFlowElement.
  35496. (WebCore::DeleteSelectionCommand::removeNode): Use to identify that we need a placeholder
  35497. when the start or end block is removed.
  35498. (WebCore::DeleteSelectionCommand::handleGeneralDelete): Added check for canHaveChildrenForEditing
  35499. to keep things like HRs from being given children.
  35500. (WebCore::DeleteSelectionCommand::doApply): Switched to use member variable for needPlaceholder.
  35501. * editing/DeleteSelectionCommand.h: Made needPlaceholder a member variable.
  35502. * editing/TypingCommand.cpp:
  35503. (WebCore::TypingCommand::deleteKeyPressed): Fixed selection bug for tables and open typing commands.
  35504. (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
  35505. * editing/htmlediting.cpp:
  35506. (WebCore::editingIgnoresContent): Added check for HRs, since it's not considered a widget.
  35507. * editing/visible_units.cpp:
  35508. (WebCore::startOfParagraph): Fix for HRs and tables.
  35509. (WebCore::endOfParagraph): Ditto.
  35510. 2006-07-13 Alexey Proskuryakov <ap@nypop.com>
  35511. Reviewed by Darin.
  35512. - fix http://bugs.webkit.org/show_bug.cgi?id=9880
  35513. Memory leaks running DOM-Hanoi
  35514. No change in behavior, thus no test included.
  35515. * bridge/mac/FrameMac.mm:
  35516. (WebCore::FrameMac::setStatusBarText): Use a local autorelease pool to release the temporaries -
  35517. the test runs non-stop, and the enclosing pool doesn't get a chance to be drained.
  35518. 2006-07-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
  35519. Reviewed by Adele.
  35520. - fix http://bugs.webkit.org/show_bug.cgi?id=9862
  35521. REGRESSION: GMail: Crash in RenderView::repaintViewRectangle when spoofing as FF
  35522. - see also <rdar://problem/4622407>
  35523. Test: fast/frames/repaint-display-none-crash.html
  35524. * rendering/RenderView.cpp:
  35525. (WebCore::RenderView::repaintViewRectangle): Added null checking of the owner element's
  35526. renderer, which can be null if the iframe is set to display:none.
  35527. 2006-07-12 Justin Garcia <justin.garcia@apple.com>
  35528. Reviewed by levi
  35529. <rdar://problem/4509393>
  35530. selected DOM range starts with <object>, 0 offset but selection should include the <object>
  35531. * editing/ReplaceSelectionCommand.cpp:
  35532. (WebCore::ReplaceSelectionCommand::shouldMergeStart):
  35533. Don't pull content out of a table cell.
  35534. * editing/htmlediting.cpp:
  35535. (WebCore::editingIgnoresContent): Added <select> nodes.
  35536. (WebCore::rangeCompliantEquivalent): Convert [node, 0] positions to positionBeforeNode(node)
  35537. for more types of nodes.
  35538. * rendering/RenderContainer.cpp:
  35539. (WebCore::RenderContainer::positionForCoordinates):
  35540. Fix a crasher when right clicking on an anonymous table.
  35541. 2006-07-12 John Sullivan <sullivan@apple.com>
  35542. Reviewed by Brady Eidson
  35543. - fixed <rdar://problem/4611164> REGRESSION: Crash occurs when undoing a series of
  35544. misspelled words (WebCore::RenderObject::repaint(bool)
  35545. * dom/Document.cpp:
  35546. (WebCore::Document::removeMarkers):
  35547. put (it - markers.begin()) in a local variable before altering markers, in every case where this was
  35548. happening. One of the cases like this was fixed a while back, but other cases were
  35549. either missed at that time or crept in since.
  35550. 2006-07-13 Anders Carlsson <acarlsson@apple.com>
  35551. Reviewed by Justin.
  35552. http://bugs.webkit.org/show_bug.cgi?id=9663
  35553. REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
  35554. * dom/Document.cpp:
  35555. (WebCore::Document::updateSelection):
  35556. Don't return early if the selection is empty.
  35557. 2006-07-12 Anders Carlsson <acarlsson@apple.com>
  35558. Reviewed by Adele.
  35559. <rdar://problem/4614656> REGRESSION: onpaste() handlers don't run for textarea elements
  35560. * bridge/mac/FrameMac.mm:
  35561. (WebCore::FrameMac::dispatchCPPEvent):
  35562. If the element is a shadow node, dispatch the event to its real parent.
  35563. * manual-tests/textarea-onpaste.html: Added.
  35564. 2006-07-12 Beth Dakin <bdakin@apple.com>
  35565. Reviewed by Anders.
  35566. Fix for layout test regressions after my check-in last night. Just
  35567. a silly mistake where I should have asked if we were NOT printing
  35568. instead of if we were in the listbox code.
  35569. * WebCore.xcodeproj/project.pbxproj: Project file wars. Back to
  35570. XCode 2.3
  35571. * platform/mac/ListBoxMac.mm:
  35572. (itemTextRenderer): Inverted check.
  35573. (groupLabelTextRenderer): Inverted check.
  35574. 2006-07-12 Darin Adler <darin@apple.com>
  35575. Reviewed by Maciej.
  35576. - fix http://bugs.webkit.org/show_bug.cgi?id=9806
  35577. <rdar://problem/4622622>
  35578. REGRESSION: Large rowspan causes WebKit to call abort()
  35579. Test: fast/table/large-rowspan-crash.html
  35580. * rendering/RenderTableSection.cpp:
  35581. (WebCore::RenderTableSection::ensureRows):
  35582. Use sizeof(RowStruct) instead of sizeof(int).
  35583. Clearly we'll need something better to solve this completely.
  35584. I expect another smaller, but still huge, value will still cause a problem.
  35585. 2006-07-12 Anders Carlsson <acarlsson@apple.com>
  35586. Reviewed by Maciej.
  35587. <rdar://problem/4586665> REGRESSION: autorestore.apple.com: Crashes Safari in WebCore::Widget::client() const
  35588. * bridge/mac/FrameMac.h:
  35589. Add focusCallResultedInViewBeingCreated argument.
  35590. * bridge/mac/FrameMac.mm:
  35591. (WebCore::FrameMac::nextKeyViewInFrame):
  35592. If the call to focus() caused the node to get a native widget, set focusCallResultedInViewBeingCreated to true.
  35593. (WebCore::FrameMac::nextKeyViewInFrameHierarchy):
  35594. Don't reset the focus node if focusCallResultedInViewBeingCreated is true. Also, add magic to prevent setting
  35595. a text field as the first responder if its field editor already is the current first responder.
  35596. * page/FrameView.cpp:
  35597. (WebCore::FrameView::handleMousePressEvent):
  35598. In some cases, get the event target node again after dispatching the mouse event.
  35599. 2006-07-12 Beth Dakin <bdakin@apple.com>
  35600. Reviewed by Adele.
  35601. Fix for <rdar://problem/4615765> Input[type='search' fields
  35602. initially render too large in Widgets
  35603. Fundamentally, the problem here is that we were miscalculating
  35604. things because [NSGraphicsContext currentContextDrawingToScreen]
  35605. was evaluating to false when widgets first load. We only ever used
  35606. this check, however, to determine if we were printing or not, so it
  35607. should not have evaluated to false for loading in Dashbaord.
  35608. Instead, if we query the RenderView about whether or not we are
  35609. printing, we will get the right answer.
  35610. No test case added since this appears only to affect Dashboard.
  35611. * bridge/mac/WebCoreFrameBridge.mm:
  35612. (-[WebCoreFrameBridge drawRect:]): Ask the RenderView if we are
  35613. printing instead. This is not part of the actual bug fix, but it
  35614. seems wise to get rid of all calls to [NSGraphicsContext
  35615. currentContextDrawingToScreen] when we are just trying to determine
  35616. if we are printing or not.
  35617. * platform/mac/ListBoxMac.mm:
  35618. (itemTextRenderer):This function now takes a boolean, isPrinting.
  35619. (groupLabelTextRenderer): Same as above.
  35620. (ListBox::sizeForNumberOfLines): Ask the RenderView if we are
  35621. printing.
  35622. (-[WebCoreTableView drawRow:clipRect:]): Same as above.
  35623. * platform/mac/PopUpButtonMac.mm:
  35624. (PopUpButton::sizeHint): Same as above.
  35625. * platform/mac/TextFieldMac.mm:
  35626. (-[NSSearchFieldCell _addStringToRecentSearches:]):
  35627. * rendering/RenderLineEdit.cpp: Same as above.
  35628. 2006-07-12 Adele Peterson <adele@apple.com>
  35629. Reviewed by Maciej.
  35630. Fix for: http://bugs.webkit.org/show_bug.cgi?id=9813
  35631. OPTION text can paint over select element's scrollbar
  35632. Test: fast/forms/option-text-clip.html
  35633. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::paintObject):
  35634. When calculating the clip to apply to the button text, also consider padding.
  35635. In the future, we may have separate renderers for the text part, and the arrow part
  35636. of the control, and then the separation should be natural. For now, we use padding.
  35637. 2006-07-11 David Kilzer <ddkilzer@kilzer.net>
  35638. Windows build fix. Reviewed by NOBODY.
  35639. * WebCore.vcproj/WebCore/WebCore.vcproj: Added JSHTMLOptionsCollection.cpp/h
  35640. and JSHTMLOptionsCollectionCuston.cpp. VC++ Express realphabetized the file list.
  35641. 2006-07-11 Darin Adler <darin@apple.com>
  35642. Reviewed by Adele.
  35643. - fix http://bugs.webkit.org/show_bug.cgi?id=9809
  35644. <rdar://problem/4619515>
  35645. focus ring fails to appear on select element after choosing item from popup
  35646. - includes http://bugs.webkit.org/show_bug.cgi?id=9853
  35647. improvements to select element, including some storage leak fixes
  35648. * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::index): Use a const
  35649. reference for the list items, so we don't have to copy a vector.
  35650. * html/HTMLSelectElement.cpp:
  35651. (WebCore::HTMLSelectElement::selectedIndex): Ditto.
  35652. (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
  35653. (WebCore::HTMLSelectElement::length): Ditto.
  35654. (WebCore::HTMLSelectElement::remove): Ditto.
  35655. (WebCore::HTMLSelectElement::value): Ditto.
  35656. (WebCore::HTMLSelectElement::setValue): Ditto.
  35657. (WebCore::HTMLSelectElement::stateValue): Ditto.
  35658. (WebCore::HTMLSelectElement::restoreState): Ditto.
  35659. (WebCore::HTMLSelectElement::appendFormData): Ditto.
  35660. (WebCore::HTMLSelectElement::optionToListIndex): Ditto.
  35661. (WebCore::HTMLSelectElement::listToOptionIndex): Ditto.
  35662. (WebCore::HTMLSelectElement::recalcListItems): Made const, with the appropriate
  35663. fields mutable.
  35664. (WebCore::HTMLSelectElement::reset): Use a const reference for
  35665. the list items, so we don't have to copy the vector. Remove the call to
  35666. setSelectionChanged for the RenderMenuList case.
  35667. (WebCore::HTMLSelectElement::notifyOptionSelected): Ditto, on both counts.
  35668. (WebCore::HTMLSelectElement::defaultEventHandler): Call focus() before showing
  35669. the pop-up.
  35670. * html/HTMLSelectElement.h: The RenderMenuList class is no longer a friend.
  35671. Changed the listItems function to return a const reference to the vector so
  35672. it no longer copies the vector. Removed the const_cast to the call to
  35673. recalcListItems and changed it to a const member function. Made m_recalcListItems
  35674. mutable.
  35675. * rendering/DeprecatedRenderSelect.cpp:
  35676. (WebCore::DeprecatedRenderSelect::updateFromElement): Removed an unnecessary call
  35677. to recalcListItems, which is called automatically. Use a const reference for the
  35678. list items so we don't have to copy a vector.
  35679. (WebCore::DeprecatedRenderSelect::layout): Ditto.
  35680. (WebCore::DeprecatedRenderSelect::selectionChanged): Ditto.
  35681. (WebCore::DeprecatedRenderSelect::updateSelection): Ditto.
  35682. * rendering/RenderMenuList.cpp:
  35683. (WebCore::RenderMenuList::RenderMenuList): Updated for renamed data members.
  35684. (WebCore::RenderMenuList::createInnerBlock): Ditto.
  35685. (WebCore::RenderMenuList::addChild): Ditto.
  35686. (WebCore::RenderMenuList::removeChild): Ditto.
  35687. (WebCore::RenderMenuList::setStyle): Ditto. Also removed code to set the style
  35688. on the pop-up menu, because it's created with the correct style and destroyed
  35689. before it a style change could occur.
  35690. (WebCore::RenderMenuList::updateFromElement): Rearranged code to compute the
  35691. maximum width in a simpler fashion, and to not bother trying to maintain
  35692. the "selected" flags on the elements, since the HTMLSelectElement class
  35693. takes care of that. Store the width as an int. Call setText to set the text
  35694. based on the selected element's option text.
  35695. (WebCore::RenderMenuList::paintObject): Don't check m_inner when setting
  35696. up the clip -- always set up the clip.
  35697. (WebCore::RenderMenuList::calcMinMaxWidth): Use m_optionsWidth directly
  35698. instead of calling ceilf on m_longestWidth.
  35699. (WebCore::RenderMenuList::showPopup): Don't use m_popupMenu to store the
  35700. menu -- instead keep the pointer in a local variable. Get the selected
  35701. index from the HTMLSelectElement.
  35702. (WebCore::RenderMenuList::valueChanged): Call HTMLSelectElement::setSelectedIndex
  35703. to do most of the work.
  35704. * rendering/RenderMenuList.h: Renamed m_inner to m_innerBlock. Removed
  35705. m_popupMenu, m_size, m_selectionChanged, and m_selectedIndex. Renamed
  35706. m_longestWidth to m_optionsWidth and changed it to be an int. Removed
  35707. unneeded override of removeLeftoverAnonymousBoxes function. Removed
  35708. unneeded selectionChanged, setSelectionChanged, updateSelection, and
  35709. hasPopupMenu functions. Removed extra includes.
  35710. * rendering/RenderPopupMenu.cpp: (WebCore::RenderPopupMenu::populate):
  35711. Change to iterate the list items instead of iterating all children
  35712. of the select node.
  35713. * rendering/RenderPopupMenu.h: Renamed getRenderMenuList to menuList.
  35714. * rendering/RenderPopupMenuMac.mm:
  35715. (WebCore::RenderPopupMenuMac::populate): Moved code to clear and create
  35716. the pop-up here from the caller. Removed an extra retain that would cause
  35717. the NSPopUpButtonCell to leak.
  35718. (WebCore::RenderPopupMenuMac::showPopup): Removed unnecessary code to
  35719. create the pop-up, which is now in populate, and also the call to the
  35720. clear function, for the same reason. Reorganized code to make it a bit
  35721. more readable. Removed an unnecessary if to check if frame is nil.
  35722. Used a RefPtr to make sure we don't make a call on a frame after it's
  35723. deleted. As part of the reorganization fixed a problem where we'd retain
  35724. the event and then return early without releasing it in one case.
  35725. (WebCore::RenderPopupMenuMac::addSeparator): Tweaked a little.
  35726. (WebCore::RenderPopupMenuMac::addGroupLabel): Grouped all the code to
  35727. manage the NSMenu at the bottom of the function.
  35728. (WebCore::RenderPopupMenuMac::addOption): Ditto.
  35729. 2006-07-11 Justin Garcia <justin.garcia@apple.com>
  35730. Reviewed by levi
  35731. <rdar://problem/4620686>
  35732. REGRESSION: Mispelling markers are still displayed when using the delete key to place caret into a misspelled word
  35733. * bridge/mac/FrameMac.mm:
  35734. (WebCore::FrameMac::respondToChangedSelection): Remove markers from newAdjacentWords
  35735. even if oldAdjacentWords is equal to newAdjacentWords. This happens during a deletion.
  35736. 2006-07-11 Tim Omernick <timo@apple.com>
  35737. Reviewed by NOBODY (build fix)
  35738. * bindings/objc/DOMPrivate.h:
  35739. Don't @class NPObject; that breaks files that actually #import <JavaScriptCore/npruntime.h>, since the NPObject
  35740. there is of a different type.
  35741. Also clarified a highly misleading comment from my last commit. I meant to clarify the comment
  35742. before landing.
  35743. 2006-07-12 Anders Carlsson <acarlsson@apple.com>
  35744. Reviewed by Geoff.
  35745. http://bugs.webkit.org/show_bug.cgi?id=9635
  35746. REGRESSION: Crash when adding to cart at <http://www.yemeksepeti.com/>
  35747. * html/HTMLTokenizer.cpp:
  35748. (WebCore::HTMLTokenizer::scriptHandler):
  35749. Don't load external scripts if the parser is stopped.
  35750. * manual-tests/open-close-tokenizer-crash.html: Added.
  35751. * manual-tests/resources/empty-file.js: Added.
  35752. * manual-tests/resources/open-close-tokenizer-crash.html: Added.
  35753. Add manual test.
  35754. 2006-07-11 John Sullivan <sullivan@apple.com>
  35755. Reviewed by Kevin, Timo O, Brady, Darin, and Hyatt (whee!)
  35756. - added support for creating a selection image with white text
  35757. * rendering/RenderObject.h:
  35758. (WebCore::):
  35759. add PaintRestriction enum
  35760. (WebCore::RenderObject::PaintInfo::PaintInfo):
  35761. add forceWhiteText boolean to PaintInfo struct
  35762. * page/FramePrivate.h:
  35763. (WebCore::FramePrivate::FramePrivate):
  35764. replaced m_selectionOnly bool with m_paintRestriction, which also handles forcing the
  35765. text to white
  35766. * page/Frame.cpp:
  35767. (WebCore::Frame::paint):
  35768. updated to use & pass m_paintRestriction where it used to use & pass just m_selectionOnly
  35769. * bridge/mac/FrameMac.h:
  35770. * bridge/mac/FrameMac.mm:
  35771. (WebCore::FrameMac::selectionImage):
  35772. now takes forceWhiteText parameter, stored in FramePrivate as part of PaintRestriction
  35773. * bridge/mac/WebCoreFrameBridge.h:
  35774. * bridge/mac/WebCoreFrameBridge.mm:
  35775. (-[WebCoreFrameBridge selectionImageForcingWhiteText:]):
  35776. renamed from selectionImage, now takes forceWhiteText parameter, which is passed
  35777. down into Frame
  35778. * rendering/RenderLayer.h:
  35779. * rendering/RenderLayer.cpp:
  35780. (WebCore::RenderLayer::paint):
  35781. use a PaintRestriction value where we used to use a selectionOnly bool
  35782. (WebCore::RenderLayer::paintLayer):
  35783. ditto; also stores forceWhiteText in PaintInfo struct
  35784. * kcanvas/KCanvasResources.cpp:
  35785. (WebCore::KCanvasMarker::draw):
  35786. updated for changed signature of PaintInfo constructor
  35787. * ksvg2/svg/SVGMaskElement.cpp:
  35788. (WebCore::SVGMaskElement::drawMaskerContent):
  35789. ditto
  35790. * ksvg2/svg/SVGPatternElement.cpp:
  35791. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  35792. ditto
  35793. * rendering/InlineTextBox.cpp:
  35794. (WebCore::InlineTextBox::paint):
  35795. paint with white text color if forceWhiteText is set in PaintInfo struct
  35796. 2006-07-11 Tim Omernick <timo@apple.com>
  35797. Reviewed by Anders.
  35798. <http://bugs.webkit.org/show_bug.cgi?id=9843>:
  35799. Give Netscape plug-ins access to their own DOM element
  35800. * html/HTMLPlugInElement.h:
  35801. Just import JSC headers on Mac. The NPObject and Bindings::Instance stuff is only used on Mac anyway.
  35802. Changed __APPLE__ to PLATFORM(MAC).
  35803. Added m_NPObject ivar.
  35804. * html/HTMLPlugInElement.cpp:
  35805. (WebCore::HTMLPlugInElement::HTMLPlugInElement):
  35806. Initialize the NPObject.
  35807. (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
  35808. Release the NPObject when the element is destroyed.
  35809. (WebCore::HTMLPlugInElement::createNPObject):
  35810. Creates an NPObject for the element.
  35811. (WebCore::HTMLPlugInElement::getNPObject):
  35812. Returns the NPObject for the element, creating and caching it if necessary.
  35813. * html/HTMLAppletElement.h:
  35814. Changed __APPLE__ to PLATFORM(MAC).
  35815. * html/HTMLAppletElement.cpp:
  35816. ditto
  35817. * html/HTMLEmbedElement.h:
  35818. ditto
  35819. * html/HTMLEmbedElement.cpp:
  35820. ditto
  35821. * html/HTMLObjectElement.h:
  35822. ditto
  35823. * html/HTMLObjectElement.cpp:
  35824. ditto
  35825. * bindings/objc/DOMPrivate.h:
  35826. Added -[DOMElement _NPObject].
  35827. * bindings/objc/DOM.mm:
  35828. (-[DOMElement _NPObject]):
  35829. Returns the NPObject for the element. Since this is only needed by the Netscape plug-in API, you can only get
  35830. the NPObject for applet, embed, and object elements.
  35831. 2006-07-11 Adele Peterson <adele@apple.com>
  35832. Reviewed by Hyatt.
  35833. - Fix for http://bugs.webkit.org/show_bug.cgi?id=9861
  35834. REGRESSION: Can't dynamically change list box to popup
  35835. and updated fix for http://bugs.webkit.org/show_bug.cgi?id=9859
  35836. REGRESSION: Can't dynamically change popup to list box
  35837. The original fix for 9859 was in the renderer, and I think we can catch the change
  35838. earlier in the element to detach and reattach.
  35839. I also did some cleanup to remove the PopupButton code path from DeprecatedRenderSelect
  35840. Test: fast/forms/select-change-listbox-to-popup.html
  35841. * html/HTMLSelectElement.cpp:
  35842. (WebCore::HTMLSelectElement::parseMappedAttribute): If the new attribute value is going to require us to change from listbox to popup or vice versa,
  35843. and we're already attached, then detach and reattach to create the correct renderer. If we're not attached, then we'll create the correct renderer
  35844. when we attach.
  35845. (WebCore::HTMLSelectElement::recalcStyle): Updated shouldUseMenuList since it no longer takes a RenderStyle.
  35846. (WebCore::HTMLSelectElement::isKeyboardFocusable): ditto.
  35847. (WebCore::HTMLSelectElement::isMouseFocusable): ditto.
  35848. (WebCore::HTMLSelectElement::createRenderer): ditto.
  35849. (WebCore::HTMLSelectElement::setRecalcListItems): ditto.
  35850. (WebCore::HTMLSelectElement::reset): ditto.
  35851. (WebCore::HTMLSelectElement::notifyOptionSelected): ditto.
  35852. (WebCore::HTMLSelectElement::defaultEventHandler): ditto.
  35853. * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList):
  35854. This method no longer takes a RenderStyle. That was leftover from when we used to use the appearance
  35855. to determine whether or not to use the new menu list implementation.
  35856. * rendering/DeprecatedRenderSelect.h: Removed PopupButton code path.
  35857. * rendering/DeprecatedRenderSelect.cpp:
  35858. (WebCore::DeprecatedRenderSelect::DeprecatedRenderSelect):
  35859. (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
  35860. (WebCore::DeprecatedRenderSelect::updateFromElement):
  35861. (WebCore::DeprecatedRenderSelect::baselinePosition):
  35862. (WebCore::DeprecatedRenderSelect::layout):
  35863. (WebCore::DeprecatedRenderSelect::updateSelection):
  35864. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
  35865. Backed out previous fix since this is now done in HTMLSelectElement.
  35866. 2006-07-11 Adele Peterson <adele@apple.com>
  35867. Reviewed by Hyatt.
  35868. Fix for http://bugs.webkit.org/show_bug.cgi?id=9859
  35869. REGRESSION: Can't dynamically change popup to list box
  35870. Test: fast/forms/select-change-popup-to-listbox.html
  35871. * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
  35872. If the select element has the multiple property set, or has a size > 1, then it
  35873. really should be a list box, so we detach and attach the element so it creates the
  35874. correct type of renderer.
  35875. 2006-07-11 John Sullivan <sullivan@apple.com>
  35876. Reviewed by Beth Dakin and Tim Omernick
  35877. - fixed <rdar://problem/4622794> HiDPI: dragging the selection in Safari can show pixel cracks
  35878. at non-integral scale factors
  35879. * bridge/mac/FrameMac.mm:
  35880. (WebCore::FrameMac::imageFromRect):
  35881. round image rect in window coordinate space
  35882. 2006-07-10 Darin Adler <darin@apple.com>
  35883. Reviewed by Geoff.
  35884. - fix http://bugs.webkit.org/show_bug.cgi?id=9811
  35885. rdar://problem/4619572
  35886. OPTION text contained in OPTGROUP appears at the wrong size
  35887. * dom/Node.h:
  35888. * dom/Node.cpp: (WebCore::Node::renderStyle): Made a const member function.
  35889. The derived classes were overriding with const member functions, and I could
  35890. change either this or the derived -- decided to do this.
  35891. 2006-07-10 Darin Adler <darin@apple.com>
  35892. Reviewed by Geoff.
  35893. - fix http://bugs.webkit.org/show_bug.cgi?id=9810
  35894. rdar://problem/4619534
  35895. OPTGROUP label text is using the default font instead of Lucida Grande
  35896. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize):
  35897. Code wants the family name, but was calling fontName, which is not the same thing.
  35898. Also removed the unneeded conversion to DeprecatedString.
  35899. === Safari-521.16 ===
  35900. 2006-07-10 David Kilzer <ddkilzer@kilzer.net>
  35901. Reviewed by Darin.
  35902. - fix http://bugs.webkit.org/show_bug.cgi?id=9179
  35903. Implement select.options.add() method
  35904. Tests:
  35905. - fast/dom/select-selectedIndex-multiple.html
  35906. - fast/dom/select-selectedIndex.html
  35907. - fast/js/select-options-add.html
  35908. * DerivedSources.make: Added JSHTMLOptionsCollection.h.
  35909. * ForwardingHeaders/kjs/operations.h: Added.
  35910. * WebCore.xcodeproj/project.pbxproj: Added new source files.
  35911. * bindings/js/JSHTMLOptionsCollectionCustom.cpp: Added.
  35912. (WebCore::JSHTMLOptionsCollection::length):
  35913. (WebCore::JSHTMLOptionsCollection::setLength):
  35914. (WebCore::JSHTMLOptionsCollection::indexSetter):
  35915. * bindings/js/kjs_html.cpp: Removed JSHTMLOptionsCollection implementation.
  35916. Renamed classes and methods for consistency.
  35917. (KJS::JSHTMLElement::selectGetter):
  35918. (KJS::JSHTMLElement::put):
  35919. (KJS::JSHTMLElement::selectSetter):
  35920. (KJS::JSHTMLCollection::JSHTMLCollection):
  35921. (KJS::JSHTMLCollectionProtoFunc::callAsFunction):
  35922. (KJS::getHTMLOptionsCollection):
  35923. * bindings/js/kjs_html.h: Ditto.
  35924. * bindings/scripts/CodeGeneratorJS.pm: Added support for HasCustomIndexSetter class attribute.
  35925. Added support for Optional parameter attribute, which makes generated code assume overloaded
  35926. implementation methods are available for a JavaScript function with optional arguments. Changed
  35927. local 'impl' variables to 'imp' so that impl() methods could be called without class designation.
  35928. * html/HTMLOptionElement.idl: Added GenerateNativeConverter attribute.
  35929. * html/HTMLOptionsCollection.cpp: Added methods used by generated JSHTMLOptionsCollection class.
  35930. (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
  35931. (WebCore::HTMLOptionsCollection::add):
  35932. (WebCore::HTMLOptionsCollection::selectedIndex):
  35933. (WebCore::HTMLOptionsCollection::setSelectedIndex):
  35934. (WebCore::HTMLOptionsCollection::setLength):
  35935. * html/HTMLOptionsCollection.h: Ditto.
  35936. * html/HTMLOptionsCollection.idl: Added.
  35937. 2006-07-10 David Harrison <harrison@apple.com>
  35938. Reviewed by Dave Hyatt.
  35939. <rdar://problem/4602408> -webkit-highlight needs to support images and elements other than text
  35940. * rendering/RenderBox.cpp:
  35941. (WebCore::RenderBox::paintCustomHighlight):
  35942. * rendering/RenderBox.h:
  35943. Utility for subclasses.
  35944. * rendering/RenderImage.cpp:
  35945. (WebCore::RenderImage::paint):
  35946. Custom highlight in front of images.
  35947. * rendering/RenderListMarker.cpp:
  35948. (WebCore::RenderListMarker::paint):
  35949. Custom highlight in front of list markers.
  35950. * rendering/RenderWidget.cpp:
  35951. (WebCore::RenderWidget::paint):
  35952. Custom highlight in front of objects.
  35953. 2006-07-10 David Hyatt <hyatt@apple.com>
  35954. <rdar://problem/4620557> REGRESSION: In a mail message, text isn't painted
  35955. correctly after choosing Redo Typing
  35956. Better fix for repainting issue with positioned objects when height
  35957. changes. Optimize when only a positioned child changes so that we don't
  35958. incorrectly do normal flow layout.
  35959. Reviewed by darin
  35960. * WebCore.xcodeproj/project.pbxproj:
  35961. * rendering/RenderBlock.cpp:
  35962. (WebCore::RenderBlock::layoutBlock):
  35963. * rendering/RenderFlexibleBox.cpp:
  35964. (WebCore::RenderFlexibleBox::layoutBlock):
  35965. * rendering/RenderTable.cpp:
  35966. (WebCore::RenderTable::layout):
  35967. * rendering/RenderView.cpp:
  35968. (WebCore::RenderView::layout):
  35969. * rendering/bidi.cpp:
  35970. (WebCore::RenderBlock::layoutInlineChildren):
  35971. 2006-07-10 Adele Peterson <adele@apple.com>
  35972. Reviewed by Beth.
  35973. - Fix for <rdar://problem/4621442> REGRESSION (NativePopup) : Popup menus aren't drawn correctly on page at orbitz.com; cheaptickets.com
  35974. Test: fast/forms/select-style.html
  35975. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
  35976. Don't let popups be style-able for now. We'll allow it later, when we
  35977. have a good way to handle border & backgrounds and still having it look like a control.
  35978. 2006-07-10 Justin Garcia <justin.garcia@apple.com>
  35979. Reviewed by harrison
  35980. <rdar://problem/4619260>
  35981. 9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
  35982. <rdar://problem/4619841>
  35983. REGRESSION: Dragging selection over input field results in a crash (WebCore::maxDeepOffset(WebCore::Node const*)
  35984. * WebCore.xcodeproj/project.pbxproj:
  35985. * editing/Selection.cpp:
  35986. (WebCore::Selection::adjustForEditableContent): Iterate using next/previousVisuallyDistinctCandidate
  35987. instead of traverseNext/Previous node because we were skipping positions. Jump out of shadow trees.
  35988. Migrate to isEditablePosition instead of isContentEditable.
  35989. 2006-07-10 Beth Dakin <bdakin@apple.com>
  35990. Reviewed by Adele.
  35991. Shuffling comments around from my last check-in to make things read
  35992. more clearly.
  35993. * page/DOMWindow.h:
  35994. * page/DOMWindow.idl:
  35995. 2006-07-10 Beth Dakin <bdakin@apple.com>
  35996. Reviewed by Darin.
  35997. Fix for <rdar://problem/4621095> The should be a way to
  35998. access the user interface scale factor through the DOM
  35999. window.devicePixelRatio returns the user interface scale factor.
  36000. * page/DOMWindow.cpp:
  36001. (WebCore::DOMWindow::devicePixelRatio):
  36002. * page/DOMWindow.h:
  36003. * page/DOMWindow.idl:
  36004. 2006-07-10 Brady Eidson <beidson@apple.com>
  36005. Reviewed by Alexey
  36006. Resolved the console error messages people got from the new DB even if they didn't have it enabled
  36007. * icon/IconDatabase.cpp:
  36008. (WebCore::IconDatabase::pruneUnreferencedIcons):
  36009. (WebCore::IconDatabase::pruneUnretainedIcons):
  36010. Added quick check to bail if the DB isn't open
  36011. 2006-07-10 David Harrison <harrison@apple.com>
  36012. Reviewed by Tim Hatcher
  36013. Partial fix for...
  36014. <rdar://problem/4619260> 9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
  36015. * editing/Selection.cpp:
  36016. (WebCore::Selection::adjustForEditableContent):
  36017. Allow for node being 0. This is a bandaid fix to prevent the crash. It will still assert in a debug build. See bug for more info.
  36018. 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  36019. Reviewed by Darin.
  36020. - fix http://bugs.webkit.org/show_bug.cgi?id=9808
  36021. REGRESSION: Incorrect layout (and ERROR) when forcing ATSU For All Text
  36022. * manual-tests/ATSU-bad-layout.html: Added.
  36023. * platform/mac/FontMac.mm:
  36024. (WebCore::Font::floatWidthForComplexText): Return 0 immediately for empty runs.
  36025. 2006-07-10 Darin Adler <darin@apple.com>
  36026. - try to fix the no-SVG build
  36027. * ksvg2/misc/SVGImageLoader.cpp: Move namespace brace inside the #if.
  36028. 2006-07-10 Darin Adler <darin@apple.com>
  36029. Reviewed by Anders.
  36030. - fix http://bugs.webkit.org/show_bug.cgi?id=9833
  36031. REGRESSION: Reproducible crash: RenderMenuList.cpp:58: failed assertion `!m_first'
  36032. * manual-tests/empty-title-popup.html: Added.
  36033. * rendering/RenderMenuList.h: Add createInnerBlock.
  36034. * rendering/RenderMenuList.cpp:
  36035. (WebCore::RenderMenuList::createInnerBlock): Factored out of addChild.
  36036. (WebCore::RenderMenuList::addChild): Call createInnerBlock.
  36037. (WebCore::RenderMenuList::setText): Changed parameter type.
  36038. (WebCore::RenderMenuList::showPopup): Call createInnerBlock before calling
  36039. the parent class's addChild.
  36040. 2006-07-10 Rob Buis <buis@kde.org>
  36041. Reviewed by Maciej via IRC.
  36042. Make sure the attributes are calculated against viewport width value,
  36043. as defined in the spec. http://paste.lisp.org/display/22342
  36044. * ksvg2/svg/SVGEllipseElement.cpp:
  36045. (WebCore::SVGEllipseElement::rx): Changed LM_HEIGHT to LM_WIDTH.
  36046. * ksvg2/svg/SVGLineElement.cpp:
  36047. (SVGLineElement::x2): Ditto.
  36048. 2006-07-10 Beth Dakin <bdakin@apple.com>
  36049. Reviewed by Maciej.
  36050. Fix for <rdar://problem/4610314> Support the CSS3 content property
  36051. for images
  36052. This patch provides initial support for the CSS3 content property.
  36053. It lacks support for any content other than images, and only allows
  36054. content for elements that seemed safe for now.
  36055. * css/cssstyleselector.cpp:
  36056. (WebCore::CSSStyleSelector::applyProperty): Remove restrictions for
  36057. just :before and :after
  36058. * html/HTMLBRElement.cpp:
  36059. (WebCore::HTMLBRElement::createRenderer):
  36060. * html/HTMLFrameSetElement.cpp:
  36061. (WebCore::HTMLFrameSetElement::createRenderer):
  36062. * html/HTMLImageElement.cpp:
  36063. (WebCore::HTMLImageElement::createRenderer):
  36064. * html/HTMLLegendElement.cpp:
  36065. (WebCore::HTMLLegendElement::createRenderer):
  36066. * rendering/RenderImage.cpp:
  36067. (WebCore::RenderImage::RenderImage):
  36068. (WebCore::RenderImage::setCachedImage): Don't allow the image to be
  36069. set this way if it was already set with the content property.
  36070. * rendering/RenderImage.h:
  36071. (WebCore::RenderImage::setIsAnonymousImage): Anonymous images are
  36072. those set through the content property.
  36073. (WebCore::RenderImage::isAnonymousImage):
  36074. * rendering/RenderObject.cpp:
  36075. (WebCore::RenderObject::createObject): If there is content
  36076. specified, create a RenderImage with the content and initialize the
  36077. cached image to whatever was specified in the CSS.
  36078. 2006-07-10 Brady Eidson <beidson@apple.com>
  36079. Reviewed by NOBODY (Build Fix!)
  36080. * icon/SiteIcon.cpp:
  36081. (SiteIcon::getImage):
  36082. Release build made an "unused variable" warning, which is, of course, an error. fixed that.
  36083. 2006-07-10 Brady Eidson <beidson@apple.com>
  36084. Reviewed by Maciej
  36085. SQLite Icon DB now fully replicates functionality of the old DB, including pruning to keep unused
  36086. information out to keep down disk usage. For now, it is still off by default, as the critical
  36087. feature of importing old icons into the new DB is still unrealized.
  36088. If you'd like to test, add #define ICONDEBUG to your WebKitPrefix.h
  36089. * icon/IconDatabase.cpp:
  36090. (WebCore::IconDatabase::IconDatabase):
  36091. (WebCore::IconDatabase::open):
  36092. -Sets up a timer for initial pruning
  36093. (WebCore::IconDatabase::iconForPageURL):
  36094. -Switched away from "dirty blob hack" as the problem is provisionally solved
  36095. (WebCore::IconDatabase::retainIconForURL):
  36096. (WebCore::IconDatabase::releaseIconForURL):
  36097. -Same as found in WebKit
  36098. (WebCore::IconDatabase::totalRetainCountForIconURL):
  36099. -Adds up all retainers of icon
  36100. (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
  36101. -Wipes an Icon table entry out
  36102. (WebCore::IconDatabase::establishTemporaryIconIDForIconURL):
  36103. (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
  36104. (WebCore::IconDatabase::establishIconIDForIconURL):
  36105. (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
  36106. -Added ability to get an iconID without creating a new one if a lookup is all
  36107. that is genuinely wanted
  36108. (WebCore::IconDatabase::pruneUnreferencedIcons):
  36109. (WebCore::IconDatabase::pruneUnretainedIcons):
  36110. -Called on a timer on DB startup to clean it out
  36111. * icon/IconDatabase.h:
  36112. * icon/SiteIcon.cpp:
  36113. (SiteIcon::SiteIcon):
  36114. (SiteIcon::~SiteIcon):
  36115. -Deletes the image on deletion
  36116. (SiteIcon::getImage):
  36117. -Cut down on no-longer-necessary debug info
  36118. 2006-07-10 Anders Carlsson <acarlsson@apple.com>
  36119. Reviewed by Adele.
  36120. http://bugs.webkit.org/show_bug.cgi?id=9245
  36121. Quirksmode: Incorrect handling of disabled BUTTON elements
  36122. * html/HTMLButtonElement.cpp:
  36123. (WebCore::HTMLButtonElement::defaultEventHandler):
  36124. Don't call prepareSubmit if the element is disabled.
  36125. * html/HTMLInputElement.cpp:
  36126. (WebCore::HTMLInputElement::defaultEventHandler):
  36127. Don't call prepareSubmit if the element is disabled.
  36128. 2006-07-10 Darin Adler <darin@apple.com>
  36129. - try to fix Windows build
  36130. * platform/win/TemporaryLinkStubs.cpp: Put a few functions in the WebCore namespace.
  36131. * platform/gdk/TemporaryLinkStubs.cpp: Ditto.
  36132. 2006-07-10 Darin Adler <darin@apple.com>
  36133. Reviewed by Geoff.
  36134. - fix failures seen in layout tests
  36135. * bindings/js/kjs_dom.cpp: (KJS::toJS): Restore one of the few WebCore:: prefixes
  36136. that really needed to be there -- because we have two classes named JSHTMLDocument
  36137. at the moment! (One in KJS and one in WebCore namespace.)
  36138. 2006-07-10 Darin Adler <darin@apple.com>
  36139. - try to fix Windows build
  36140. * rendering/RenderLayer.h: Correct a forward declaration of ScrollBar.
  36141. 2006-07-09 Adele Peterson <adele@apple.com>
  36142. Reviewed by Maciej.
  36143. Fix for <rdar://problem/4463835> Switch to use new popup menu implementation for <select>
  36144. * css/html4.css: Added style for new selects, and for list boxes.
  36145. * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Removed check for appearance so new popups can be styled.
  36146. * rendering/RenderMenuList.cpp:
  36147. (WebCore::RenderMenuList::setStyle): Removed padding. This is now set by the theme.
  36148. (WebCore::RenderMenuList::calcMinMaxWidth): Now takes minimum text size into account.
  36149. * rendering/RenderMenuList.h: Removed baselinePosition since we're letting the theme calculate that.
  36150. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isControlContainer): Added menuList as a ControlContainer,
  36151. so RenderThemeMac will compute its baseline.
  36152. * rendering/RenderTheme.h: (WebCore::RenderTheme::minimumTextSize): Added.
  36153. * rendering/RenderThemeMac.h: Added minimumTextSize, setPopupPaddingFromControlSize, popupButtonSizes, popupButtonMargins, popupButtonPadding.
  36154. Removed sizeOfArrowControl.
  36155. * rendering/RenderThemeMac.mm:
  36156. (WebCore::): Added enum for padding.
  36157. (WebCore::RenderThemeMac::adjustRepaintRect): Now inflates rect to account for control shadow.
  36158. (WebCore::RenderThemeMac::baselinePosition): Now calculates baseline for menulist.
  36159. (WebCore::RenderThemeMac::popupButtonMargins): Tweaked values.
  36160. (WebCore::RenderThemeMac::popupButtonSizes): Added.
  36161. (WebCore::RenderThemeMac::popupButtonPadding): Added, so different padding can be set for different control sizes.
  36162. (WebCore::RenderThemeMac::setPopupPaddingFromControlSize): Added.
  36163. (WebCore::RenderThemeMac::paintMenuList): Now inflates rect to account for control shadow.
  36164. (WebCore::RenderThemeMac::adjustMenuListStyle): Resets border, sets padding, sets control size.
  36165. (WebCore::RenderThemeMac::setPopupButtonCellState): Removed unnecessary class name.
  36166. (WebCore::RenderThemeMac::minimumTextSize): Added.
  36167. 2006-07-09 Darin Adler <darin@apple.com>
  36168. - add back "unused code" for plain text fields, still used by <isindex>!
  36169. * platform/TextField.h:
  36170. * platform/mac/TextFieldMac.mm:
  36171. * platform/mac/WebCoreTextField.h:
  36172. * platform/mac/WebCoreTextField.mm:
  36173. * rendering/RenderLineEdit.cpp:
  36174. 2006-07-09 Darin Adler <darin@apple.com>
  36175. Reviewed by Tim Hatcher.
  36176. - put more into the WebCore namespace
  36177. - removed unused code for plain text fields
  36178. Put more classes, class templates, enums, functions, and constants into
  36179. the WebCore namespace, including all the headers in the platform directory.
  36180. Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
  36181. Added some "WebCore::" qualifiers in a few places.
  36182. Removed "uses WebCore::" in headers that we said we'd remove "when
  36183. everything is in the WebCore namespace".
  36184. * bindings/js/JSDOMParser.cpp:
  36185. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  36186. * bindings/js/JSXSLTProcessor.cpp:
  36187. * bindings/js/kjs_binding.cpp:
  36188. * bindings/js/kjs_css.cpp:
  36189. * bindings/js/kjs_dom.cpp:
  36190. * bindings/js/kjs_dom.h:
  36191. * bindings/js/kjs_events.cpp:
  36192. * bindings/js/kjs_proxy.h:
  36193. * bindings/js/kjs_window.h:
  36194. * bindings/objc/DOM.mm:
  36195. * bridge/History.h:
  36196. * bridge/JavaAppletWidget.h:
  36197. * bridge/mac/FormDataMac.h:
  36198. * bridge/mac/FormDataMac.mm:
  36199. * bridge/mac/WebCoreAXObject.mm:
  36200. * bridge/mac/WebCoreEncodings.mm:
  36201. * bridge/mac/WebCoreFrameBridge.h:
  36202. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  36203. * bridge/mac/WebCorePageState.h:
  36204. * bridge/mac/WebCoreScriptDebugger.mm:
  36205. * bridge/mac/WebCoreSettings.h:
  36206. * css/CSSGrammar.y:
  36207. * css/CSSPageRule.cpp:
  36208. * css/CSSPageRule.h:
  36209. * css/MediaList.cpp:
  36210. * css/cssstyleselector.h:
  36211. * dom/Clipboard.h:
  36212. * dom/Document.cpp:
  36213. * dom/Document.h:
  36214. * dom/EventTargetNode.h:
  36215. * dom/Node.cpp:
  36216. * dom/Node.h:
  36217. * dom/Position.h:
  36218. * dom/Range.cpp:
  36219. * dom/XMLTokenizer.cpp:
  36220. * editing/AppendNodeCommand.h:
  36221. * editing/ApplyStyleCommand.cpp:
  36222. * editing/BreakBlockquoteCommand.cpp:
  36223. * editing/BreakBlockquoteCommand.h:
  36224. * editing/CompositeEditCommand.cpp:
  36225. * editing/CompositeEditCommand.h:
  36226. * editing/CreateLinkCommand.h:
  36227. * editing/DeleteFromTextNodeCommand.h:
  36228. * editing/DeleteSelectionCommand.h:
  36229. * editing/FormatBlockCommand.h:
  36230. * editing/HTMLInterchange.cpp:
  36231. * editing/HTMLInterchange.h:
  36232. * editing/IndentOutdentCommand.h:
  36233. * editing/InsertIntoTextNodeCommand.h:
  36234. * editing/InsertLineBreakCommand.h:
  36235. * editing/InsertListCommand.h:
  36236. * editing/InsertNodeBeforeCommand.h:
  36237. * editing/InsertTextCommand.cpp:
  36238. * editing/InsertTextCommand.h:
  36239. * editing/JSEditor.cpp:
  36240. * editing/JSEditor.h:
  36241. * editing/JoinTextNodesCommand.h:
  36242. * editing/MergeIdenticalElementsCommand.cpp:
  36243. * editing/MergeIdenticalElementsCommand.h:
  36244. * editing/ModifySelectionListLevel.h:
  36245. * editing/MoveSelectionCommand.h:
  36246. * editing/RebalanceWhitespaceCommand.h:
  36247. * editing/RemoveNodeAttributeCommand.h:
  36248. * editing/RemoveNodeCommand.h:
  36249. * editing/RemoveNodePreservingChildrenCommand.h:
  36250. * editing/ReplaceSelectionCommand.h:
  36251. * editing/SetNodeAttributeCommand.h:
  36252. * editing/SplitElementCommand.cpp:
  36253. * editing/SplitElementCommand.h:
  36254. * editing/SplitTextNodeCommand.cpp:
  36255. * editing/SplitTextNodeCommand.h:
  36256. * editing/SplitTextNodeContainingElementCommand.h:
  36257. * editing/TypingCommand.cpp:
  36258. * editing/TypingCommand.h:
  36259. * editing/UnlinkCommand.h:
  36260. * editing/VisiblePosition.cpp:
  36261. * editing/WrapContentsInDummySpanCommand.cpp:
  36262. * editing/WrapContentsInDummySpanCommand.h:
  36263. * editing/markup.cpp:
  36264. * editing/markup.h:
  36265. * html/HTMLAnchorElement.cpp:
  36266. * html/HTMLBodyElement.cpp:
  36267. * html/HTMLButtonElement.h:
  36268. * html/HTMLCollection.h:
  36269. * html/HTMLDocument.h:
  36270. * html/HTMLEmbedElement.cpp:
  36271. * html/HTMLFormElement.cpp:
  36272. * html/HTMLFormElement.h:
  36273. * html/HTMLFrameElement.cpp:
  36274. * html/HTMLFrameSetElement.cpp:
  36275. * html/HTMLKeygenElement.cpp:
  36276. * html/HTMLLabelElement.cpp:
  36277. * html/HTMLObjectElement.cpp:
  36278. * html/HTMLObjectElement.h:
  36279. * html/HTMLTableElement.cpp:
  36280. * html/HTMLTablePartElement.cpp:
  36281. * icon/IconDatabase.h:
  36282. * kcanvas/KCanvasPath.h:
  36283. * kcanvas/KCanvasResources.cpp:
  36284. * kcanvas/KCanvasResources.h:
  36285. * kcanvas/KCanvasTreeDebug.cpp:
  36286. * kcanvas/KCanvasTreeDebug.h:
  36287. * kcanvas/RenderSVGContainer.cpp:
  36288. * kcanvas/RenderSVGText.h:
  36289. * kcanvas/device/KRenderingPaintServer.h:
  36290. * kcanvas/device/KRenderingPaintServerGradient.h:
  36291. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  36292. * ksvg2/misc/SVGImageLoader.cpp:
  36293. * ksvg2/svg/SVGElement.cpp:
  36294. * ksvg2/svg/SVGElement.h:
  36295. * ksvg2/svg/SVGForeignObjectElement.cpp:
  36296. * ksvg2/svg/SVGForeignObjectElement.h:
  36297. * ksvg2/svg/SVGImageElement.cpp:
  36298. * ksvg2/svg/SVGPoint.h:
  36299. * ksvg2/svg/SVGStylable.h:
  36300. * ksvg2/svg/SVGTRefElement.cpp:
  36301. * ksvg2/svg/SVGTRefElement.h:
  36302. * ksvg2/svg/SVGTSpanElement.cpp:
  36303. * ksvg2/svg/SVGTSpanElement.h:
  36304. * ksvg2/svg/SVGTextElement.h:
  36305. * ksvg2/svg/svgpathparser.cpp:
  36306. * ksvg2/svg/svgpathparser.h:
  36307. * loader/Cache.h:
  36308. * loader/DocLoader.h:
  36309. * loader/LoaderFunctions.h:
  36310. * loader/mac/LoaderFunctionsMac.mm:
  36311. * page/Frame.h:
  36312. * page/FrameView.h:
  36313. * page/Page.h:
  36314. * page/Settings.h:
  36315. * platform/AffineTransform.cpp:
  36316. * platform/AffineTransform.h:
  36317. * platform/Arena.cpp:
  36318. * platform/Arena.h:
  36319. * platform/CookieJar.h:
  36320. * platform/DeprecatedCString.cpp:
  36321. * platform/DeprecatedCString.h:
  36322. * platform/DeprecatedPtrList.h:
  36323. * platform/DeprecatedPtrListImpl.cpp:
  36324. * platform/DeprecatedPtrListImpl.h:
  36325. * platform/DeprecatedPtrQueue.h:
  36326. * platform/DeprecatedString.cpp:
  36327. * platform/DeprecatedString.h:
  36328. * platform/DeprecatedStringList.cpp:
  36329. * platform/DeprecatedStringList.h:
  36330. * platform/DeprecatedValueList.h:
  36331. * platform/DeprecatedValueListImpl.cpp:
  36332. * platform/DeprecatedValueListImpl.h:
  36333. * platform/FileButton.h:
  36334. * platform/FloatPoint.h:
  36335. * platform/FloatRect.h:
  36336. * platform/FloatSize.h:
  36337. * platform/FontData.h:
  36338. * platform/FontFallbackList.h:
  36339. * platform/GraphicsContext.h:
  36340. * platform/IntPoint.h:
  36341. * platform/IntRect.h:
  36342. * platform/IntSize.h:
  36343. * platform/KURL.cpp:
  36344. * platform/KURL.h:
  36345. * platform/ListBox.h:
  36346. * platform/Logging.cpp:
  36347. * platform/Logging.h:
  36348. * platform/Pen.h:
  36349. * platform/PopUpButton.h:
  36350. * platform/RegularExpression.cpp:
  36351. * platform/RegularExpression.h:
  36352. * platform/SSLKeyGenerator.h:
  36353. * platform/ScrollBar.h:
  36354. * platform/SegmentedString.h:
  36355. * platform/Shared.h:
  36356. * platform/Slider.h:
  36357. * platform/StringImpl.h:
  36358. * platform/TextBox.h:
  36359. * platform/TextField.h:
  36360. * platform/TextStream.cpp:
  36361. * platform/TextStream.h:
  36362. * platform/TransferJob.h:
  36363. * platform/TransferJobClient.h:
  36364. * platform/Widget.h:
  36365. * platform/cg/AffineTransformCG.cpp:
  36366. * platform/mac/ClipboardMac.h:
  36367. * platform/mac/ClipboardMac.mm:
  36368. * platform/mac/DeprecatedStringListMac.mm:
  36369. * platform/mac/FontCacheMac.mm:
  36370. * platform/mac/KURLMac.mm:
  36371. * platform/mac/ListBoxMac.mm:
  36372. * platform/mac/PopUpButtonMac.mm:
  36373. * platform/mac/SSLKeyGeneratorMac.mm:
  36374. * platform/mac/TextBoxMac.mm:
  36375. * platform/mac/TextFieldMac.mm:
  36376. * platform/mac/WebCoreTextArea.h:
  36377. * platform/mac/WebCoreTextArea.mm:
  36378. * platform/mac/WebCoreTextField.h:
  36379. * platform/mac/WebCoreTextField.mm:
  36380. * rendering/DeprecatedRenderSelect.h:
  36381. * rendering/RenderArena.cpp:
  36382. * rendering/RenderArena.h:
  36383. * rendering/RenderBlock.cpp:
  36384. * rendering/RenderBox.cpp:
  36385. * rendering/RenderContainer.cpp:
  36386. * rendering/RenderFlexibleBox.cpp:
  36387. * rendering/RenderFlow.cpp:
  36388. * rendering/RenderLayer.cpp:
  36389. * rendering/RenderLineEdit.cpp:
  36390. * rendering/RenderObject.h:
  36391. * rendering/RenderStyle.cpp:
  36392. * rendering/RenderStyle.h:
  36393. * rendering/RenderText.cpp:
  36394. * rendering/RenderTextFragment.cpp:
  36395. * rendering/RenderTheme.h:
  36396. * rendering/RenderTreeAsText.cpp:
  36397. * rendering/RenderTreeAsText.h:
  36398. * rendering/RenderView.h:
  36399. * rendering/bidi.h:
  36400. * xml/XSLStyleSheet.cpp:
  36401. * xml/XSLTProcessor.cpp:
  36402. 2006-07-09 Geoffrey Garen <ggaren@apple.com>
  36403. Reviewed by Beth.
  36404. * bindings/js/kjs_window.cpp:
  36405. (KJS::Window::clear): Garbage collect after reinitalizing the global
  36406. object, not before, since the reinitialization tends to create garbage.
  36407. 2006-07-09 Timothy Hatcher <timothy@apple.com>
  36408. Reviewed by Darin.
  36409. Bug 9820: Move new DOM API that has been through API review to public headers
  36410. http://bugs.webkit.org/show_bug.cgi?id=9820
  36411. * bindings/objc/DOM.mm:
  36412. (-[DOMElement focus]):
  36413. (-[DOMElement blur]):
  36414. (-[DOMRange text]):
  36415. (-[DOMRange _text]):
  36416. * bindings/objc/DOMCSS.mm:
  36417. (-[DOMRGBColor color]):
  36418. (-[DOMRGBColor _color]):
  36419. * bindings/objc/DOMCore.h:
  36420. * bindings/objc/DOMEvents.h:
  36421. * bindings/objc/DOMExtensions.h:
  36422. * bindings/objc/DOMHTML.mm:
  36423. (-[DOMHTMLElement titleDisplayString]):
  36424. (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
  36425. (-[DOMHTMLDocument createDocumentFragmentWithText:]):
  36426. (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
  36427. (-[DOMHTMLDocument _createDocumentFragmentWithText:]):
  36428. * bindings/objc/DOMPrivate.h:
  36429. * bindings/objc/DOMXPath.h:
  36430. * bindings/objc/DOMXPath.mm:
  36431. 2006-07-09 Beth Dakin <bdakin@apple.com>
  36432. Reviewed by Maciej.
  36433. Fix for http://bugs.webkit.org/show_bug.cgi?id=9749 A
  36434. nested content editable div causes unnecessary screen redraws.
  36435. We were repainting too much because we were deciding that we needed
  36436. a full layout because we didn't have a first line box. Our code
  36437. used to hold a lot of assumptions that positioned elements would
  36438. always have line boxes, but I fixed a few bugs a while back that
  36439. appeared because this assumption isn't true. This assumption was
  36440. also causing the extra redraws because the check meant that we
  36441. would decide to do a full layout for any positioned element that
  36442. did not have any line boxes in the first place. Maciej and I talked
  36443. about this, and we couldn't figure out why the check for line boxes
  36444. was part of determining if we need a full layout in the first
  36445. place. After hunting around the code, we decided to assume that
  36446. this check is antiquated. Removing it fixes the bug and doesn't
  36447. seem to break any layout tests. So, fingers crossed!
  36448. Will add layout test so soon.
  36449. * rendering/bidi.cpp:
  36450. (WebCore::RenderBlock::layoutInlineChildren): Remove firstLineBox
  36451. check.
  36452. 2006-07-09 David Harrison <harrison@apple.com>
  36453. Reviewed by John Sullivan.
  36454. <rdar://problem/4598149> Deleting the contents of a DOMRange and then inserting a node into it crashes in WebCore::Font::canUseGlyphCache
  36455. Test: fast/dom/delete-contents.html
  36456. * dom/Range.cpp:
  36457. (WebCore::Range::processContents):
  36458. 2006-07-09 Darin Adler <darin@apple.com>
  36459. - another round of renaming; and KWQ is dead
  36460. * WebCore.vcproj/WebCore/WebCore.vcproj: Remove paths for kwq and khtml directories.
  36461. Move files to their new locations. Did rename.
  36462. * WebCore.xcodeproj/project.pbxproj: Move files to their new locations. Did rename.
  36463. * WebCoreSources.bkl: Did rename.
  36464. * webcore-base.bkl: Removed kwq.
  36465. * kwq/AccessibilityObjectCache.h: Removed.
  36466. * kwq/AccessibilityObjectCache.mm: Removed.
  36467. * kwq/FormDataMac.h: Removed.
  36468. * kwq/FormDataMac.mm: Removed.
  36469. * kwq/WebCoreAXObject.h: Removed.
  36470. * kwq/WebCoreAXObject.mm: Removed.
  36471. * kwq/WebCoreEditCommand.h: Removed.
  36472. * kwq/WebCoreEditCommand.mm: Removed.
  36473. * kwq/WebCorePageState.h: Removed.
  36474. * kwq/WebCorePageState.mm: Removed.
  36475. * kwq/WebCoreResourceLoaderImp.h: Removed.
  36476. * kwq/WebCoreResourceLoaderImp.mm: Removed.
  36477. * bridge/AXObjectCache.h: Added.
  36478. * bridge/mac/AXObjectCacheMac.mm: Added.
  36479. * bridge/mac/WebCoreAXObject.h: Added.
  36480. * bridge/mac/WebCoreAXObject.mm: Added.
  36481. * loader/CachedObject.cpp: Removed.
  36482. * loader/CachedObject.h: Removed.
  36483. * loader/CachedObjectClient.h: Removed.
  36484. * loader/CachedObjectClientWalker.cpp: Removed.
  36485. * loader/CachedObjectClientWalker.h: Removed.
  36486. * loader/CachedResource.cpp: Added.
  36487. * loader/CachedResource.h: Added.
  36488. * loader/CachedResourceClient.h: Added.
  36489. * loader/CachedResourceClientWalker.cpp: Added.
  36490. * loader/CachedResourceClientWalker.h: Added.
  36491. * bridge/mac/FrameMac.mm:
  36492. * bridge/mac/WebCoreFrameBridge.mm:
  36493. * css/CSSImageValue.h:
  36494. * css/CSSImportRule.h:
  36495. * dom/Document.cpp:
  36496. * dom/Document.h:
  36497. * dom/Notation.h:
  36498. * dom/ProcessingInstruction.h:
  36499. * dom/XMLTokenizer.cpp:
  36500. * html/CanvasPattern.h:
  36501. * html/HTMLDocument.h:
  36502. * html/HTMLImageLoader.cpp:
  36503. * html/HTMLImageLoader.h:
  36504. * html/HTMLLinkElement.h:
  36505. * html/HTMLScriptElement.cpp:
  36506. * html/HTMLScriptElement.h:
  36507. * html/HTMLTokenizer.cpp:
  36508. * html/HTMLTokenizer.h:
  36509. * kcanvas/KCanvasFilters.h:
  36510. * ksvg2/svg/SVGCursorElement.cpp:
  36511. * ksvg2/svg/SVGCursorElement.h:
  36512. * ksvg2/svg/SVGFEImageElement.cpp:
  36513. * ksvg2/svg/SVGFEImageElement.h:
  36514. * loader/Cache.cpp:
  36515. * loader/Cache.h:
  36516. * loader/CachedCSSStyleSheet.cpp:
  36517. * loader/CachedCSSStyleSheet.h:
  36518. * loader/CachedImage.cpp:
  36519. * loader/CachedImage.h:
  36520. * loader/CachedScript.cpp:
  36521. * loader/CachedScript.h:
  36522. * loader/CachedXBLDocument.cpp:
  36523. * loader/CachedXBLDocument.h:
  36524. * loader/CachedXSLStyleSheet.cpp:
  36525. * loader/CachedXSLStyleSheet.h:
  36526. * loader/DocLoader.cpp:
  36527. * loader/DocLoader.h:
  36528. * loader/LoaderFunctions.h:
  36529. * loader/Request.cpp:
  36530. * loader/Request.h:
  36531. * loader/loader.cpp:
  36532. * loader/loader.h:
  36533. * loader/mac/LoaderFunctionsMac.mm:
  36534. * page/Frame.cpp:
  36535. * page/FrameView.cpp:
  36536. * platform/gdk/TemporaryLinkStubs.cpp:
  36537. * platform/mac/ClipboardMac.h:
  36538. * platform/win/TemporaryLinkStubs.cpp:
  36539. * rendering/RenderBox.h:
  36540. * rendering/RenderContainer.cpp:
  36541. * rendering/RenderImage.cpp:
  36542. * rendering/RenderImage.h:
  36543. * rendering/RenderLayer.h:
  36544. * rendering/RenderObject.cpp:
  36545. * rendering/RenderObject.h:
  36546. * rendering/RenderStyle.cpp:
  36547. * rendering/RenderStyle.h:
  36548. * xml/XSLImportRule.h:
  36549. Did renaming.
  36550. * platform/mac/can-convert.mm: Removed.
  36551. 2006-07-09 Anders Carlsson <acarlsson@apple.com>
  36552. Reviewed by Tim O.
  36553. * WebCore.exp:
  36554. Add wkPathFromFont.
  36555. * platform/mac/FontDataMac.mm:
  36556. (-[NSFont WebCore]):
  36557. Use wkPathFromFont.
  36558. * platform/mac/WebCoreSystemInterface.h:
  36559. * platform/mac/WebCoreSystemInterface.mm:
  36560. Declare wkPathFromFont.
  36561. 2006-07-09 Brady Eidson <beidson@apple.com>
  36562. Reviewed by Maciej
  36563. Set the stage to remove the workaround for the SQLite BLOB corruption. A few other small cleanups, and
  36564. preparation for pruning unreferenced and unretained icons.
  36565. * icon/IconDatabase.cpp:
  36566. (WebCore::IconDatabase::recreateDatabase): Added another trigger to assist in icon removal
  36567. (WebCore::IconDatabase::deletePrivateTables): Cleaned up logging messages
  36568. (WebCore::IconDatabase::imageDataForIconID): #ifdefed the blobbing hack for impending removal, use the real blob by default
  36569. (WebCore::IconDatabase::imageDataForIconURL): same
  36570. (WebCore::IconDatabase::imageDataForPageURL): same
  36571. (WebCore::IconDatabase::pruneUnreferencedIcons): Will delete any icons and their data that are not referenced
  36572. by any PageURL
  36573. * icon/IconDatabase.h:
  36574. * icon/SQLDatabase.h: Changed BlobAsVector to be unsigned char as thats the most reasonable type for
  36575. a byte-buffer, and is what CFData expects
  36576. * icon/SQLStatement.cpp:
  36577. (WebCore::SQLStatement::getColumnBlobAsVector):
  36578. 2006-07-09 Darin Adler <darin@apple.com>
  36579. - move all but the last 12 files out of kwq directory
  36580. - removed a few unused source files I discovered
  36581. * WebCore.vcproj/WebCore/WebCore.vcproj: Update for new file locations.
  36582. * WebCore.xcodeproj/project.pbxproj: Ditto.
  36583. * bridge/mac/FrameMac.mm:
  36584. * dom/Element.h:
  36585. * html/HTMLImageLoader.cpp:
  36586. * loader/Cache.cpp:
  36587. * loader/Cache.h:
  36588. * loader/CachedCSSStyleSheet.cpp:
  36589. * loader/CachedCSSStyleSheet.h:
  36590. * loader/CachedImage.cpp:
  36591. * loader/CachedImage.h:
  36592. * loader/CachedObject.h:
  36593. * loader/CachedScript.cpp:
  36594. * loader/CachedScript.h:
  36595. * loader/CachedXBLDocument.cpp:
  36596. * loader/CachedXBLDocument.h:
  36597. * loader/CachedXSLStyleSheet.cpp:
  36598. * loader/CachedXSLStyleSheet.h:
  36599. * loader/DocLoader.cpp:
  36600. * loader/DocLoader.h:
  36601. * page/Frame.cpp:
  36602. * page/Frame.h:
  36603. * page/FramePrivate.h:
  36604. * platform/gdk/TemporaryLinkStubs.cpp:
  36605. * platform/win/TemporaryLinkStubs.cpp:
  36606. * rendering/DeprecatedSlider.cpp:
  36607. * rendering/RenderObject.h:
  36608. * xml/xmlhttprequest.cpp:
  36609. Updated includes as needed for file location changes. Changed
  36610. CachePolicy uses to match new filename and enum names.
  36611. * loader/CachedResource.cpp: Removed.
  36612. * loader/CachedResource.h: Removed.
  36613. * loader/CachedResourceClient.h: Removed.
  36614. * loader/CachedResourceClientWalker.cpp: Removed.
  36615. * loader/CachedResourceClientWalker.h: Removed.
  36616. The above files were checked in by accident a while back. The rename of
  36617. CachedObject to CachedResource is now reflected in do-webcore-rename,
  36618. and will be done soon.
  36619. * kwq/AffineTransform.cpp: Removed.
  36620. * kwq/AffineTransform.h: Removed.
  36621. * kwq/CacheControl.h: Removed.
  36622. * kwq/DeprecatedPtrQueue.h: Removed.
  36623. * kwq/FileButton.h: Removed.
  36624. * kwq/FileButton.mm: Removed.
  36625. * kwq/ListBox.h: Removed.
  36626. * kwq/ListBox.mm: Removed.
  36627. * kwq/LoaderFunctions.h: Removed.
  36628. * kwq/LoaderFunctions.mm: Removed.
  36629. * kwq/PopUpButton.h: Removed.
  36630. * kwq/PopUpButton.mm: Removed.
  36631. * kwq/SSLKeyGenerator.h: Removed.
  36632. * kwq/SSLKeyGenerator.mm: Removed.
  36633. * kwq/Settings.h: Removed.
  36634. * kwq/TextBox.h: Removed.
  36635. * kwq/TextBox.mm: Removed.
  36636. * kwq/TextField.h: Removed.
  36637. * kwq/TextField.mm: Removed.
  36638. * kwq/WebCoreScrollBar.h: Removed.
  36639. * kwq/WebCoreScrollBar.mm: Removed.
  36640. * kwq/WebCoreSlider.h: Removed.
  36641. * kwq/WebCoreSlider.mm: Removed.
  36642. * loader/CachePolicy.h: Added.
  36643. * loader/LoaderFunctions.h: Added.
  36644. * loader/mac/LoaderFunctionsMac.mm: Added.
  36645. * page/Settings.h: Added.
  36646. * platform/AffineTransform.cpp: Added.
  36647. * platform/AffineTransform.h: Added.
  36648. * platform/DeprecatedPtrQueue.h: Added.
  36649. * platform/FileButton.h: Added.
  36650. * platform/ListBox.h: Added.
  36651. * platform/PopUpButton.h: Added.
  36652. * platform/SSLKeyGenerator.h: Added.
  36653. * platform/ScrollBar.h: Added.
  36654. * platform/Slider.h: Added.
  36655. * platform/TextBox.h: Added.
  36656. * platform/TextField.h: Added.
  36657. * platform/cg/AffineTransformCG.cpp: Added.
  36658. * platform/mac/FileButtonMac.mm: Added.
  36659. * platform/mac/ListBoxMac.mm: Added.
  36660. * platform/mac/PopUpButtonMac.mm: Added.
  36661. * platform/mac/SSLKeyGeneratorMac.mm: Added.
  36662. * platform/mac/ScrollBarMac.mm: Added.
  36663. * platform/mac/ScrollBarMac.mm: Added.
  36664. * platform/mac/SliderMac.mm: Added.
  36665. * platform/mac/SliderMac.mm: Added.
  36666. * platform/mac/TextBoxMac.mm: Added.
  36667. * platform/mac/TextFieldMac.mm: Added.
  36668. 2006-07-09 Darin Adler <darin@apple.com>
  36669. - move 4 files out of kwq directory
  36670. - make some minor project adjustments for the WebCore project
  36671. * WebCore.xcodeproj/project.pbxproj: Link libsqlite3 the same way we do other
  36672. libraries, rather than using a custom linker option. Moved the files from their
  36673. old locations to the new ones. Removed "khtml" from the list of header search
  36674. paths since that directory doesn't exist any more. Eliminated STYLE_LDFLAGS
  36675. and just put -umbrella WebKit in OTHER_LDFLAGS in the Production configuration
  36676. (was a leftover from "build styles" in Xcode 1). Changed to use EXPORTED_SYMBOLS_FILE
  36677. instead of using -exported_symbols_list directly again now that Xcode has fixed the
  36678. "strip twice" bug. Removed unneeded explicit SECTORDER_FLAGS = "" settings.
  36679. Removed the explicit -Y,3 option now that Xcode does that by default.
  36680. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed some obsolete uneeded files,
  36681. many of which didn't exist any more. Moved the files from their old locations
  36682. to the new ones.
  36683. * WebCoreSources.bkl: Moved the files from their old locations to the new ones.
  36684. * kwq/DeprecatedCString.cpp: Removed.
  36685. * kwq/DeprecatedCString.h: Removed.
  36686. * kwq/TextStream.cpp: Removed.
  36687. * kwq/TextStream.h: Removed.
  36688. * platform/DeprecatedCString.cpp: Added.
  36689. * platform/DeprecatedCString.h: Added.
  36690. * platform/TextStream.cpp: Added.
  36691. * platform/TextStream.h: Added.
  36692. 2006-07-09 Darin Adler <darin@apple.com>
  36693. Rubber stamped by Maciej (kinda).
  36694. - did the next pass of renaming (used do-webcore-rename script)
  36695. this takes care of most of the remaining KWQ names (almost all)
  36696. * WebCore+SVG/DOMList.h:
  36697. * WebCore.vcproj/WebCore/WebCore.vcproj:
  36698. * WebCore.xcodeproj/project.pbxproj:
  36699. * WebCoreSources.bkl:
  36700. * bindings/js/kjs_dom.cpp:
  36701. * bindings/js/kjs_window.cpp:
  36702. * bindings/objc/DOMHTML.mm:
  36703. * bridge/mac/FrameMac.h:
  36704. * bridge/mac/FrameMac.mm:
  36705. * bridge/mac/WebCoreFrameBridge.mm:
  36706. * bridge/mac/WebCoreSettings.h:
  36707. * bridge/mac/WebCoreSettings.mm:
  36708. * bridge/win/FrameWin.cpp:
  36709. * css/CSSPrimitiveValue.cpp:
  36710. * css/CSSValueKeywords.in:
  36711. * css/MediaQueryEvaluator.cpp:
  36712. * css/cssparser.cpp:
  36713. * css/cssstyleselector.cpp:
  36714. * css/cssstyleselector.h:
  36715. * dom/CharacterData.cpp:
  36716. * dom/CharacterData.h:
  36717. * dom/Document.cpp:
  36718. * dom/Element.cpp:
  36719. * dom/Element.h:
  36720. * dom/EventTargetNode.cpp:
  36721. * dom/EventTargetNode.h:
  36722. * dom/Node.cpp:
  36723. * dom/Node.h:
  36724. * dom/Position.cpp:
  36725. * dom/ProcessingInstruction.cpp:
  36726. * dom/QualifiedName.cpp:
  36727. * dom/QualifiedName.h:
  36728. * dom/XMLTokenizer.cpp: Added.
  36729. * dom/xml_tokenizer.cpp: Removed.
  36730. * dom/xml_tokenizer.h: Removed.
  36731. * editing/EditAction.h:
  36732. * editing/HTMLInterchange.cpp:
  36733. * editing/HTMLInterchange.h:
  36734. * editing/Selection.h:
  36735. * editing/SelectionController.h:
  36736. * editing/TextAffinity.h:
  36737. * editing/TextIterator.cpp:
  36738. * editing/TextIterator.h:
  36739. * editing/VisiblePosition.h:
  36740. * editing/htmlediting.cpp:
  36741. * editing/markup.cpp:
  36742. * editing/markup.h:
  36743. * editing/visible_units.cpp:
  36744. * editing/visible_units.h:
  36745. * html/HTMLDocument.cpp:
  36746. * html/HTMLFontElement.cpp:
  36747. * html/HTMLInputElement.cpp:
  36748. * html/HTMLKeygenElement.cpp:
  36749. * html/HTMLSelectElement.h:
  36750. * html/HTMLTextAreaElement.cpp:
  36751. * html/HTMLTextFieldInnerElement.cpp:
  36752. * html/HTMLTokenizer.cpp:
  36753. * html/HTMLTokenizer.h:
  36754. * kcanvas/KCanvasContainer.cpp: Removed.
  36755. * kcanvas/KCanvasContainer.h: Removed.
  36756. * kcanvas/KCanvasCreator.cpp:
  36757. * kcanvas/KCanvasFilters.cpp:
  36758. * kcanvas/KCanvasFilters.h:
  36759. * kcanvas/KCanvasMatrix.cpp:
  36760. * kcanvas/KCanvasMatrix.h:
  36761. * kcanvas/KCanvasPath.cpp:
  36762. * kcanvas/KCanvasPath.h:
  36763. * kcanvas/KCanvasResources.cpp:
  36764. * kcanvas/KCanvasResources.h:
  36765. * kcanvas/KCanvasTreeDebug.cpp:
  36766. * kcanvas/KCanvasTreeDebug.h:
  36767. * kcanvas/RenderForeignObject.cpp:
  36768. * kcanvas/RenderForeignObject.h:
  36769. * kcanvas/RenderPath.cpp:
  36770. * kcanvas/RenderPath.h:
  36771. * kcanvas/RenderSVGContainer.cpp: Added.
  36772. * kcanvas/RenderSVGContainer.h: Added.
  36773. * kcanvas/RenderSVGImage.cpp:
  36774. * kcanvas/RenderSVGImage.h:
  36775. * kcanvas/RenderSVGText.cpp:
  36776. * kcanvas/RenderSVGText.h:
  36777. * kcanvas/device/KRenderingPaintServer.h:
  36778. * kcanvas/device/KRenderingPaintServerGradient.cpp:
  36779. * kcanvas/device/KRenderingPaintServerGradient.h:
  36780. * kcanvas/device/KRenderingPaintServerPattern.cpp:
  36781. * kcanvas/device/KRenderingPaintServerPattern.h:
  36782. * kcanvas/device/KRenderingPaintServerSolid.cpp:
  36783. * kcanvas/device/KRenderingPaintServerSolid.h:
  36784. * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
  36785. * kcanvas/device/quartz/KCanvasItemQuartz.h:
  36786. * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
  36787. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  36788. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  36789. * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
  36790. * ksvg2/css/CSSValueKeywords.in:
  36791. * ksvg2/css/SVGRenderStyleDefs.cpp:
  36792. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  36793. * ksvg2/misc/KSVGTimeScheduler.cpp:
  36794. * ksvg2/svg/SVGAElement.cpp:
  36795. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  36796. * ksvg2/svg/SVGAnimateTransformElement.h:
  36797. * ksvg2/svg/SVGGElement.cpp:
  36798. * ksvg2/svg/SVGHelper.cpp:
  36799. * ksvg2/svg/SVGHelper.h:
  36800. * ksvg2/svg/SVGImageElement.cpp:
  36801. * ksvg2/svg/SVGLinearGradientElement.cpp:
  36802. * ksvg2/svg/SVGMarkerElement.cpp:
  36803. * ksvg2/svg/SVGMaskElement.cpp:
  36804. * ksvg2/svg/SVGMatrix.cpp:
  36805. * ksvg2/svg/SVGMatrix.h:
  36806. * ksvg2/svg/SVGPatternElement.cpp:
  36807. * ksvg2/svg/SVGRadialGradientElement.cpp:
  36808. * ksvg2/svg/SVGSVGElement.cpp:
  36809. * ksvg2/svg/SVGStyledElement.h:
  36810. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  36811. * ksvg2/svg/SVGStyledTransformableElement.h:
  36812. * ksvg2/svg/SVGSwitchElement.cpp:
  36813. * ksvg2/svg/SVGTextElement.cpp:
  36814. * ksvg2/svg/SVGTransformable.h:
  36815. * ksvg2/svg/SVGUseElement.cpp:
  36816. * kwq/AffineTransform.cpp: Added.
  36817. * kwq/AffineTransform.h: Added.
  36818. * kwq/DeprecatedCString.cpp: Added.
  36819. * kwq/DeprecatedCString.h: Added.
  36820. * kwq/DeprecatedPtrQueue.h: Added.
  36821. * kwq/FileButton.h: Added.
  36822. * kwq/FileButton.mm: Added.
  36823. * kwq/FormDataMac.mm: Added.
  36824. * kwq/KWQCString.cpp: Removed.
  36825. * kwq/KWQCString.h: Removed.
  36826. * kwq/KWQComboBox.h: Removed.
  36827. * kwq/KWQComboBox.mm: Removed.
  36828. * kwq/KWQEditCommand.h: Removed.
  36829. * kwq/KWQEditCommand.mm: Removed.
  36830. * kwq/KWQFileButton.h: Removed.
  36831. * kwq/KWQFileButton.mm: Removed.
  36832. * kwq/KWQFormData.h: Removed.
  36833. * kwq/KWQFormData.mm: Removed.
  36834. * kwq/KWQKHTMLSettings.h: Removed.
  36835. * kwq/KWQKIOGlobal.h: Removed.
  36836. * kwq/KWQKSSLKeyGen.h: Removed.
  36837. * kwq/KWQKSSLKeyGen.mm: Removed.
  36838. * kwq/KWQLineEdit.h: Removed.
  36839. * kwq/KWQLineEdit.mm: Removed.
  36840. * kwq/KWQListBox.h: Removed.
  36841. * kwq/KWQListBox.mm: Removed.
  36842. * kwq/KWQLoader.h: Removed.
  36843. * kwq/KWQLoader.mm: Removed.
  36844. * kwq/KWQPageState.h: Removed.
  36845. * kwq/KWQPageState.mm: Removed.
  36846. * kwq/KWQPtrQueue.h: Removed.
  36847. * kwq/KWQResourceLoader.h: Removed.
  36848. * kwq/KWQResourceLoader.mm: Removed.
  36849. * kwq/KWQScrollBar.h: Removed.
  36850. * kwq/KWQScrollBar.mm: Removed.
  36851. * kwq/KWQSlider.h: Removed.
  36852. * kwq/KWQSlider.mm: Removed.
  36853. * kwq/KWQTextEdit.h: Removed.
  36854. * kwq/KWQTextEdit.mm: Removed.
  36855. * kwq/KWQTextStream.cpp: Removed.
  36856. * kwq/KWQTextStream.h: Removed.
  36857. * kwq/KWQWMatrix.cpp: Removed.
  36858. * kwq/KWQWMatrix.h: Removed.
  36859. * kwq/ListBox.h: Added.
  36860. * kwq/ListBox.mm: Added.
  36861. * kwq/LoaderFunctions.h: Added.
  36862. * kwq/LoaderFunctions.mm: Added.
  36863. * kwq/PopUpButton.h: Added.
  36864. * kwq/PopUpButton.mm: Added.
  36865. * kwq/SSLKeyGenerator.h: Added.
  36866. * kwq/SSLKeyGenerator.mm: Added.
  36867. * kwq/Settings.h: Added.
  36868. * kwq/TextBox.h: Added.
  36869. * kwq/TextBox.mm: Added.
  36870. * kwq/TextField.h: Added.
  36871. * kwq/TextField.mm: Added.
  36872. * kwq/TextStream.cpp: Added.
  36873. * kwq/TextStream.h: Added.
  36874. * kwq/WebCoreEditCommand.h: Added.
  36875. * kwq/WebCoreEditCommand.mm: Added.
  36876. * kwq/WebCorePageState.h: Added.
  36877. * kwq/WebCorePageState.mm: Added.
  36878. * kwq/WebCoreResourceLoaderImp.h: Added.
  36879. * kwq/WebCoreResourceLoaderImp.mm: Added.
  36880. * kwq/WebCoreScrollBar.h: Added.
  36881. * kwq/WebCoreScrollBar.mm: Added.
  36882. * kwq/WebCoreSlider.h: Added.
  36883. * kwq/WebCoreSlider.mm: Added.
  36884. * loader/Cache.h:
  36885. * loader/CachedCSSStyleSheet.cpp:
  36886. * loader/CachedImage.cpp:
  36887. * loader/CachedObject.h:
  36888. * loader/CachedObjectClientWalker.h:
  36889. * loader/CachedResource.h:
  36890. * loader/CachedResourceClientWalker.h:
  36891. * loader/CachedScript.h:
  36892. * loader/CachedXBLDocument.h:
  36893. * loader/Decoder.h:
  36894. * loader/DocLoader.cpp:
  36895. * loader/DocLoader.h:
  36896. * loader/FormData.h:
  36897. * loader/ImageDocument.cpp:
  36898. * loader/PluginDocument.cpp:
  36899. * loader/TextDocument.cpp:
  36900. * loader/loader.cpp:
  36901. * loader/loader.h:
  36902. * page/Frame.cpp:
  36903. * page/Frame.h:
  36904. * page/FramePrivate.h:
  36905. * page/Page.cpp:
  36906. * page/Page.h:
  36907. * platform/DeprecatedPtrList.h:
  36908. * platform/DeprecatedPtrListImpl.cpp:
  36909. * platform/DeprecatedPtrListImpl.h:
  36910. * platform/DeprecatedString.cpp:
  36911. * platform/DeprecatedString.h:
  36912. * platform/DeprecatedStringList.cpp:
  36913. * platform/DeprecatedStringList.h:
  36914. * platform/DeprecatedValueList.h:
  36915. * platform/DeprecatedValueListImpl.cpp:
  36916. * platform/DeprecatedValueListImpl.h:
  36917. * platform/FloatSize.h:
  36918. * platform/Font.cpp:
  36919. * platform/KURL.cpp:
  36920. * platform/RegularExpression.cpp:
  36921. * platform/RegularExpression.h:
  36922. * platform/SegmentedString.h:
  36923. * platform/StreamingTextDecoder.cpp:
  36924. * platform/String.cpp:
  36925. * platform/StringImpl.cpp:
  36926. * platform/TextEncoding.cpp:
  36927. * platform/TransferJob.cpp:
  36928. * platform/TransferJob.h:
  36929. * platform/TransferJobInternal.h:
  36930. * platform/gdk/FrameGdk.cpp:
  36931. * platform/gdk/TemporaryLinkStubs.cpp:
  36932. * platform/mac/ClipboardMac.h:
  36933. * platform/mac/ClipboardMac.mm:
  36934. * platform/mac/CursorMac.mm:
  36935. * platform/mac/DeprecatedStringMac.mm: Added.
  36936. * platform/mac/FontCacheMac.mm:
  36937. * platform/mac/FontMac.mm:
  36938. * platform/mac/FoundationExtras.h:
  36939. * platform/mac/ImageMac.mm:
  36940. * platform/mac/KURLMac.mm:
  36941. * platform/mac/MouseEventMac.mm: Removed.
  36942. * platform/mac/QStringListMac.mm: Removed.
  36943. * platform/mac/QStringMac.mm: Removed.
  36944. * platform/mac/TransferJobMac.mm:
  36945. * platform/mac/WebCoreTextArea.h:
  36946. * platform/mac/WebCoreTextArea.mm:
  36947. * platform/mac/WebCoreTextField.h:
  36948. * platform/mac/WebCoreTextField.mm:
  36949. * platform/mac/WidgetMac.mm:
  36950. * platform/win/TemporaryLinkStubs.cpp:
  36951. * rendering/DataRef.h:
  36952. * rendering/DeprecatedRenderSelect.cpp:
  36953. * rendering/DeprecatedRenderSelect.h:
  36954. * rendering/DeprecatedSlider.cpp:
  36955. * rendering/InlineFlowBox.cpp:
  36956. * rendering/RenderApplet.cpp:
  36957. * rendering/RenderBlock.cpp:
  36958. * rendering/RenderBlock.h:
  36959. * rendering/RenderContainer.cpp:
  36960. * rendering/RenderFileButton.cpp:
  36961. * rendering/RenderFlexibleBox.cpp:
  36962. * rendering/RenderFlow.cpp:
  36963. * rendering/RenderFormElement.cpp:
  36964. * rendering/RenderFrameSet.cpp:
  36965. * rendering/RenderFrameSet.h:
  36966. * rendering/RenderImage.cpp:
  36967. * rendering/RenderInline.cpp:
  36968. * rendering/RenderLayer.cpp:
  36969. * rendering/RenderLayer.h:
  36970. * rendering/RenderLineEdit.cpp:
  36971. * rendering/RenderListItem.cpp:
  36972. * rendering/RenderListMarker.cpp:
  36973. * rendering/RenderObject.cpp:
  36974. * rendering/RenderObject.h:
  36975. * rendering/RenderPartObject.cpp:
  36976. * rendering/RenderReplaced.cpp:
  36977. * rendering/RenderStyle.cpp: Added.
  36978. * rendering/RenderStyle.h: Added.
  36979. * rendering/RenderTable.cpp:
  36980. * rendering/RenderTable.h:
  36981. * rendering/RenderTableCell.cpp:
  36982. * rendering/RenderTableCell.h:
  36983. * rendering/RenderTableCol.cpp:
  36984. * rendering/RenderTableCol.h:
  36985. * rendering/RenderTableRow.cpp:
  36986. * rendering/RenderTableSection.cpp:
  36987. * rendering/RenderTableSection.h:
  36988. * rendering/RenderText.cpp:
  36989. * rendering/RenderText.h:
  36990. * rendering/RenderTextArea.cpp:
  36991. * rendering/RenderTextControl.cpp: Added.
  36992. * rendering/RenderTextControl.h: Added.
  36993. * rendering/RenderTextField.cpp: Removed.
  36994. * rendering/RenderTextField.h: Removed.
  36995. * rendering/RenderTheme.cpp:
  36996. * rendering/RenderThemeMac.mm:
  36997. * rendering/RenderTreeAsText.cpp:
  36998. * rendering/RenderTreeAsText.h:
  36999. * rendering/RenderView.cpp:
  37000. * rendering/RenderWidget.cpp:
  37001. * rendering/bidi.cpp:
  37002. * rendering/render_style.cpp: Removed.
  37003. * rendering/render_style.h: Removed.
  37004. * xml/XSLStyleSheet.cpp:
  37005. * xml/XSLTProcessor.cpp:
  37006. * xml/xmlhttprequest.cpp:
  37007. * xpath/impl/XPathParser.cpp:
  37008. 2006-07-09 Rob Buis <buis@kde.org>
  37009. Reviewed by Darin.
  37010. http://bugs.webkit.org/show_bug.cgi?id=8251
  37011. navigator.platform incorrect in WebKit.app on Intel Macs
  37012. For navigator.platform return "MacIntel" for Intel processors, "MacPPC"
  37013. otherwise.
  37014. * bindings/js/kjs_navigator.cpp:
  37015. (KJS::Navigator::getValueProperty):
  37016. 2006-07-08 Timothy Hatcher <timothy@apple.com>
  37017. Reviewed by Maciej.
  37018. Bug 5312: comments aren't available via DOM
  37019. http://bugs.webkit.org/show_bug.cgi?id=5312
  37020. <rdar://problem/4564414> getting comments via DOM isn't working (5312)
  37021. <rdar://problem/4545691> DOM_COMMENT node masking out real DOM elements
  37022. * dom/Document.cpp:
  37023. (WebCore::Document::removedLastRef): set m_documentElement to 0
  37024. (WebCore::Document::childrenChanged): invalidate the document element we have cached in case it was replaced
  37025. (WebCore::Document::documentElement): cache the first element as the document node if m_documentElement is 0
  37026. * dom/Document.h: added m_documentElement
  37027. * html/HTMLDocument.cpp: removed documentElement(), HTML documents just use Document's documentElement()
  37028. * html/HTMLDocument.h: ditto
  37029. * html/HTMLParser.cpp:
  37030. (WebCore::HTMLParser::handleError): make a new HTML node is the document's firstChild is NULL or
  37031. the firstChild is not a HTML element (like a comment)
  37032. * html/HTMLTokenizer.cpp:
  37033. (WebCore::HTMLTokenizer::parseComment): removed the #ifdef to include comment nodes
  37034. 2006-07-08 Anders Carlsson <acarlsson@apple.com>
  37035. Reviewed by Darin, tweaked slightly and landed by Maciej.
  37036. http://bugs.webkit.org/show_bug.cgi?id=9787
  37037. fast/frames tests failing (bad pointer to owner element) under MallocScribble
  37038. * html/HTMLFrameElement.cpp:
  37039. (WebCore::HTMLFrameElement::close):
  37040. Disconnect the owner element of our frame.
  37041. * html/HTMLIFrameElement.cpp:
  37042. (WebCore::HTMLIFrameElement::attach):
  37043. Don't call setFrame here.
  37044. * html/HTMLPlugInElement.cpp:
  37045. (WebCore::HTMLPlugInElement::detach):
  37046. Disconnect the owner element of our frame.
  37047. * html/HTMLPlugInElement.h:
  37048. (WebCore::HTMLPlugInElement::setFrameName):
  37049. New function.
  37050. * page/Frame.cpp:
  37051. (WebCore::Frame::Frame):
  37052. Don't call setFrame.
  37053. (WebCore::Frame::~Frame):
  37054. Null out the owner element.
  37055. (WebCore::Frame::requestObject):
  37056. When an object creates a child frame, assign it a name so it can be
  37057. accessed from HTMLPlugInElement.
  37058. * rendering/RenderPart.cpp:
  37059. (WebCore::RenderPart::RenderPart):
  37060. (WebCore::RenderPart::~RenderPart):
  37061. * rendering/RenderPart.h:
  37062. Get rid of setFrame.
  37063. 2006-07-08 Darin Adler <darin@apple.com>
  37064. Reviewed by Geoff.
  37065. - better fix for http://bugs.webkit.org/show_bug.cgi?id=9622
  37066. REGRESSION: showModalDialog returnValue ignored, function result is always "undefined"
  37067. * bindings/js/kjs_window.cpp:
  37068. (KJS::showModalDialog): Set the return value after returning from the function if the
  37069. window is not cleared; this is a better way to handle the case where the window does
  37070. not get cleared before returning, and handles some new cases created by slight changes
  37071. in the latest Safari properly too.
  37072. (KJS::Window::clear): Changed logic slightly so we always store the result of getDirect
  37073. into the return value slot -- the old code left the storage untouched if it was 0.
  37074. Also made it only overwrite the return value slot if it's 0.
  37075. * bindings/js/kjs_proxy.h:
  37076. * bindings/js/kjs_proxy.cpp:
  37077. * bindings/js/kjs_window.h:
  37078. * bindings/js/kjs_window.cpp:
  37079. * page/Frame.cpp:
  37080. Roll the previous fix out.
  37081. 2006-07-08 Darin Adler <darin@apple.com>
  37082. - try to fix Windows build
  37083. * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing source files.
  37084. === Safari-521.15 ===
  37085. 2006-07-07 Justin Garcia <justin.garcia@apple.com>
  37086. Reviewed by levi
  37087. Fix Mail ToDo crashers.
  37088. * dom/Range.cpp:
  37089. (WebCore::Range::compareBoundaryPoints): Added an ASSERT that both
  37090. containers are non-null and an early return.
  37091. * editing/Selection.cpp:
  37092. (WebCore::Selection::validate): Fix a dangling start/end.
  37093. (WebCore::Selection::adjustForEditableContent): Added an early return if
  37094. m_start or m_end are null.
  37095. (WebCore::Selection::isContentEditable): Use isRichlyEditablePosition.
  37096. (WebCore::Selection::isContentRichlyEditable): Ditto.
  37097. * editing/Selection.h:
  37098. * editing/VisiblePosition.cpp:
  37099. (WebCore::VisiblePosition::next): Use the new highestEditableRoot.
  37100. (WebCore::VisiblePosition::previous): Ditto.
  37101. * editing/htmlediting.cpp:
  37102. (WebCore::highestEditableRoot): Takes in a position.
  37103. (WebCore::isEditablePosition): Added.
  37104. (WebCore::isRichlyEditablePosition): Added.
  37105. (WebCore::rootEditableElement): Added.
  37106. (WebCore::nextCandidate): Moved and split out from nextVisiblePosition.
  37107. (WebCore::nextVisuallyDistinctCandidate): Ditto.
  37108. (WebCore::previousCandidate): Moved and split out from previousVisiblePosition.
  37109. (WebCore::previousVisuallyDistinctCandidate): Ditto.
  37110. (WebCore::firstEditablePositionAfterPositionInRoot): Iterate over positions,
  37111. using nextVisuallyDistinctCandidate, skipping atomic nodes that are non-editable.
  37112. (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
  37113. * editing/htmlediting.h:
  37114. * editing/visible_units.cpp:
  37115. (WebCore::startOfWord): Added a FIXME.
  37116. 2006-07-07 Levi Weintraub <lweintraub@apple.com>
  37117. Reviewed by justin
  37118. Allowed deletion typing commands to take in a granularity
  37119. * bridge/mac/WebCoreFrameBridge.h: Pass granularity across the bridge
  37120. * bridge/mac/WebCoreFrameBridge.mm: Ditto
  37121. (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
  37122. (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
  37123. * editing/TypingCommand.cpp: Constructors take in a granularity
  37124. (WebCore::TypingCommand::TypingCommand):
  37125. (WebCore::TypingCommand::deleteKeyPressed):
  37126. (WebCore::TypingCommand::forwardDeleteKeyPressed):
  37127. * editing/TypingCommand.h: ditto
  37128. * page/Frame.h: Fixed bug that shouldDeleteSelection wasn't virtual
  37129. 2006-07-07 Brady Eidson <beidson@apple.com>
  37130. Reviewed by Anders and Tim Hatcher
  37131. Added an accessor to a SQLite config option to change its disk-syncing behavior.
  37132. Used this accessor to significantly speed up writes to the Icon DB.
  37133. * icon/IconDatabase.cpp:
  37134. (WebCore::IconDatabase::open): Disable full syncing to the SQLite db to speed up writes to the icondb
  37135. * icon/SQLDatabase.cpp:
  37136. (SQLDatabase::setFullsync):
  37137. (SQLDatabase::setSynchronous):
  37138. * icon/SQLDatabase.h:
  37139. (WebCore::SQLDatabase::): Added accessor to the SQLite config pragma "synchronous"
  37140. 2006-07-07 Darin Adler <darin@apple.com>
  37141. Reviewed by Maciej.
  37142. - fixed a storage leak noticed by the buildbot
  37143. * dom/Document.cpp: (WebCore::Document::removedLastRef):
  37144. Call delete on the markers before clearing the map containing them.
  37145. 2006-07-08 Anders Carlsson <acarlsson@apple.com>
  37146. Reviewed by Brady.
  37147. http://bugs.webkit.org/show_bug.cgi?id=9777
  37148. Reproducible crash in Loading/Frames in ToT.
  37149. The problem was that the renderpart destructor resets the frame's
  37150. owner element. For iframes, this should only be done when the element is
  37151. going to be removed from the document.
  37152. * html/HTMLIFrameElement.cpp:
  37153. (WebCore::HTMLIFrameElement::~HTMLIFrameElement):
  37154. (WebCore::HTMLIFrameElement::willRemove):
  37155. (WebCore::HTMLIFrameElement::removedFromDocument):
  37156. (WebCore::HTMLIFrameElement::detach):
  37157. * html/HTMLIFrameElement.h:
  37158. Remove the frame in willRemove instead.
  37159. * rendering/RenderPart.cpp:
  37160. (WebCore::RenderPart::RenderPart):
  37161. (WebCore::RenderPart::~RenderPart):
  37162. * rendering/RenderPart.h:
  37163. Don't call setFrame(0) in the destructor when the element is an iframe element.
  37164. 2006-07-07 Darin Adler <darin@apple.com>
  37165. Reviewed by Anders.
  37166. - fixed a storage leak noticed by the buildbot
  37167. * page/FrameView.cpp: (WebCore::FrameViewPrivate::~FrameViewPrivate):
  37168. Delete m_scheduledEvents.
  37169. 2006-07-07 Darin Adler <darin@apple.com>
  37170. Reviewed by Adele.
  37171. - fixed a couple of storage leaks noticed by the buildbot
  37172. * html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::attach):
  37173. Call deref on the style after calling setRenderStyle, since styleForRenderer
  37174. returns us a "ref'd" RenderStyle object.
  37175. * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::attach): Ditto.
  37176. 2006-07-07 Darin Adler <darin@apple.com>
  37177. Reviewed by Adele.
  37178. - fix some license mistakes
  37179. * LICENSE-APPLE: Added more years of publication to the copyright here.
  37180. * html/CanvasGradient.idl: Corrected license on this file. It had the wrong one.
  37181. * html/CanvasPattern.idl: Ditto.
  37182. * html/CanvasRenderingContext2D.idl: Ditto.
  37183. * html/HTMLCanvasElement.idl: Ditto.
  37184. 2006-07-06 Levi Weintraub <lweintraub@apple.com>
  37185. Reviewed by justin
  37186. Improved table editing: pressing delete directly before or after a table will now select
  37187. the table first, then delete it, instead of just deleting it. Useful for when the table's
  37188. existence is non-obvious.
  37189. * bridge/mac/FrameMac.h: Added shouldDeleteSelection, which allows WebCore to trigger
  37190. deletion editing deligates
  37191. * bridge/mac/FrameMac.mm: ditto
  37192. (WebCore::FrameMac::shouldDeleteSelection):
  37193. * bridge/mac/WebCoreFrameBridge.h: ditto
  37194. * editing/TypingCommand.cpp: Implemented check for a caret position next to a table, and
  37195. subsequent selection (as opposed to removal)
  37196. (WebCore::TypingCommand::deleteKeyPressed):
  37197. (WebCore::TypingCommand::forwardDeleteKeyPressed):
  37198. * page/Frame.cpp: shouldDeleteSelection added
  37199. (WebCore::Frame::shouldDeleteSelection):
  37200. * page/Frame.h: ditto
  37201. 2006-07-07 Sam Weinig <sam.weinig@gmail.com>
  37202. Reviewed by Eric.
  37203. - fix http://bugs.webkit.org/show_bug.cgi?id=9768
  37204. Split XSLImportRule out of XSLStyleSheet.* into separate
  37205. files (one class per file).
  37206. * WebCore.xcodeproj/project.pbxproj:
  37207. * xml/XSLImportRule.cpp: Added.
  37208. (WebCore::XSLImportRule::XSLImportRule):
  37209. (WebCore::XSLImportRule::parentStyleSheet):
  37210. (WebCore::XSLImportRule::loadSheet):
  37211. * xml/XSLImportRule.h: Added.
  37212. * xml/XSLStyleSheet.cpp:
  37213. * xml/XSLStyleSheet.h:
  37214. 2006-07-07 Anders Carlsson <acarlsson@apple.com>
  37215. Reviewed by Darin.
  37216. http://bugs.webkit.org/show_bug.cgi?id=8300
  37217. REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
  37218. * css/html4.css:
  37219. Set "-webkit-user-select: ignore" on radio buttons and check boxes .
  37220. 2006-07-07 Maciej Stachowiak <mjs@apple.com>
  37221. Reviewed by Tim Hatcher.
  37222. - fix 20 Node leaks on fast/events tests - these should be the last ones
  37223. * bindings/objc/DOMEvents.mm:
  37224. (-[DOMEvent dealloc]): implement - deref the event!
  37225. (-[DOMEvent finalize]): ditto
  37226. 2006-07-06 Maciej Stachowiak <mjs@apple.com>
  37227. Reviewed by Tim Hatcher.
  37228. - fix 26 Node leaks on fast/dom tests
  37229. * dom/Document.cpp:
  37230. (WebCore::Document::removedLastRef): delete tokenizer - if we are still parsing at this point, we don't
  37231. want nodes held by the parser to keep the document alive.
  37232. * html/HTMLParser.cpp:
  37233. (WebCore::RefNonDocNodePtr::RefNonDocNodePtr): Smart pointer that acts like RefPtr for Node,
  37234. but avoids refing document nodes to avoid cycles.
  37235. (WebCore::RefNonDocNodePtr::~RefNonDocNodePtr):
  37236. (WebCore::RefNonDocNodePtr::get):
  37237. (WebCore::RefNonDocNodePtr::operator*):
  37238. (WebCore::RefNonDocNodePtr::operator->):
  37239. (WebCore::RefNonDocNodePtr::operator!):
  37240. (WebCore::RefNonDocNodePtr::operator UnspecifiedBoolType):
  37241. (WebCore::RefNonDocNodePtr::operator=):
  37242. (WebCore::operator==):
  37243. (WebCore::operator!=):
  37244. (WebCore::HTMLStackElem): Use a RefNonDocNodePtr instead of RefPtr<Node>
  37245. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Use a RefPtr here to avoid crashing
  37246. 2006-07-06 Adele Peterson <adele@apple.com>
  37247. Reviewed by Maciej.
  37248. Fixed new popup control to open up when the spacebar and the up and down arrows are pressed.
  37249. - Fixed http://bugs.webkit.org/show_bug.cgi?id=9762
  37250. [Native pop up] Highlighted item text is black instead of white
  37251. * html/HTMLSelectElement.cpp:
  37252. (WebCore::HTMLSelectElement::isKeyboardFocusable): Added.
  37253. (WebCore::HTMLSelectElement::isMouseFocusable): Added.
  37254. (WebCore::HTMLSelectElement::defaultEventHandler): Updated to showPopup for up and down arrow keys and spacebar.
  37255. * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Made this const.
  37256. * rendering/RenderPopupMenu.cpp: (WebCore::RenderPopupMenu::populate): Added FIXME.
  37257. * rendering/RenderPopupMenuMac.mm:
  37258. (WebCore::RenderPopupMenuMac::showPopup): Updated to save the NSEvent that triggers the popup, so we can send
  37259. fake mouseUp and keyUp events when the NSMenu returns.
  37260. (WebCore::RenderPopupMenuMac::addGroupLabel): Only set the NSForegroundColorAttributeName attribute if the text isn't black.
  37261. Follow-up bug about other colors: http://bugs.webkit.org/show_bug.cgi?id=9769
  37262. (WebCore::RenderPopupMenuMac::addOption): ditto.
  37263. * bridge/mac/FrameMac.h: (WebCore::FrameMac::currentEvent): Returns the current NSEvent.
  37264. 2006-07-06 Justin Garcia <justin.garcia@apple.com>
  37265. Reviewed by levi
  37266. <rdar://problem/4609184>
  37267. Mail crashes at WebCore::Selection::adjustForEditableContent
  37268. <rdar://problem/4609140>
  37269. Crash at WebCore::Range::compareBoundaryPoints
  37270. * editing/Selection.cpp:
  37271. (WebCore::Selection::adjustForEditableContent):
  37272. * editing/VisiblePosition.cpp:
  37273. (WebCore::VisiblePosition::next): Moved code into a helper function.
  37274. (WebCore::VisiblePosition::previous): Ditto.
  37275. * editing/htmlediting.cpp:
  37276. (WebCore::comparePositions): Moved from Selection.cpp.
  37277. (WebCore::lowestEditableAncestor): Added. Returns rootEditableElement
  37278. for a node in editable content and the rootEditableElement for the first
  37279. ancestor that's editable for a node in non-editable content.
  37280. (WebCore::firstEditablePositionAfterPositionInRoot):
  37281. (WebCore::lastEditablePositionBeforePositionInRoot):
  37282. * editing/htmlediting.h:
  37283. 2006-07-06 Anders Carlsson <acarlsson@apple.com>
  37284. Reviewed by Adele.
  37285. http://bugs.webkit.org/show_bug.cgi?id=9528
  37286. REGRESSION: arrow key skips '>' in Bugzilla replies due to '\n' in text nodes
  37287. Patch by Darin, tweaked by Anders.
  37288. * html/HTMLElement.cpp:
  37289. (WebCore::HTMLElement::setInnerText):
  37290. Convert newline characters to <br> elements. I've verified that what's done here is what WinIE does when setting innerText.
  37291. (WebCore::HTMLElement::setOuterText):
  37292. Fix comment.
  37293. * rendering/RenderTextField.cpp:
  37294. (WebCore::RenderTextField::textWithHardLineBreaks):
  37295. Remove assert. m_div->firstChild() can be null now because setInnerText doesn't create
  37296. text nodes for empty strings anymore.
  37297. 2006-07-06 Adele Peterson <adele@apple.com>
  37298. Reviewed by Tim Hatcher.
  37299. - Speculative fix for <rdar://problem/4605532> unrepro crash at cnn.com after upgrading to 10.4.7 (but happening with 10.4.6 too)
  37300. * page/FrameView.cpp: (WebCore::FrameView::layout): Ref's the view during layout, since a recalcStyle could cause the view to be deleted.
  37301. If we get back from recalcStyle, and there's only one ref, return early since the the view will be deleted when we exit layout.
  37302. * page/FrameView.h: (WebCore::FrameView::hasOneRef): Added.
  37303. 2006-07-06 Anders Carlsson <acarlsson@apple.com>
  37304. Reviewed by Maciej.
  37305. <rdar://problem/4610891> Support overflow events
  37306. * DerivedSources.make:
  37307. Add generated sources.
  37308. * WebCore.xcodeproj/project.pbxproj:
  37309. Add new files.
  37310. * bindings/js/kjs_events.cpp:
  37311. (KJS::toJS):
  37312. Support creating wrappers for overflow events..
  37313. * bindings/objc/DOMEvents.h:
  37314. * bindings/objc/DOMEvents.mm:
  37315. (+[DOMEvent _eventWith:]):
  37316. (-[DOMOverflowEvent _overflowEvent]):
  37317. (-[DOMOverflowEvent orient]):
  37318. (-[DOMOverflowEvent horizontalOverflow]):
  37319. (-[DOMOverflowEvent verticalOverflow]):
  37320. Add Objective-C wrapper for overflow events.
  37321. * dom/Event.cpp:
  37322. (WebCore::Event::isOverflowEvent):
  37323. * dom/Event.h:
  37324. * dom/EventNames.h:
  37325. * dom/OverflowEvent.cpp: Added.
  37326. (WebCore::OverflowEvent::OverflowEvent):
  37327. (WebCore::OverflowEvent::isOverflowEvent):
  37328. * dom/OverflowEvent.h: Added.
  37329. (WebCore::OverflowEvent::):
  37330. (WebCore::OverflowEvent::orient):
  37331. (WebCore::OverflowEvent::horizontalOverflow):
  37332. (WebCore::OverflowEvent::verticalOverflow):
  37333. * dom/OverflowEvent.idl: Added.
  37334. Add overflow events.
  37335. * page/FrameView.cpp:
  37336. (WebCore::FrameViewPrivate::FrameViewPrivate):
  37337. (WebCore::FrameView::applyOverflowToViewport):
  37338. (WebCore::FrameView::layout):
  37339. Dispatch any scheduled events when layout is done.
  37340. (WebCore::FrameView::scheduleEvent):
  37341. New function which schedules an event.
  37342. (WebCore::FrameView::updateOverflowStatus):
  37343. Update overflow status for the viewport.
  37344. (WebCore::FrameView::dispatchScheduledEvents):
  37345. New function which dispatches all scheduled events.
  37346. * page/FrameView.h:
  37347. Add declarations.
  37348. * rendering/RenderLayer.cpp:
  37349. (WebCore::RenderLayer::RenderLayer):
  37350. (WebCore::RenderLayer::updateOverflowStatus):
  37351. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  37352. * rendering/RenderLayer.h:
  37353. Schedule overflow events when overflow status changes.
  37354. 2006-07-06 Timothy Hatcher <timothy@apple.com>
  37355. Reviewed by Geoff.
  37356. <rdar://problem/4610881> Expose scroll-related JS properties to ObjC DOM interface
  37357. <rdar://problem/4519675> offsetLeft, offsetTop, offsetHeight, and offsetWidth
  37358. properties are not exposed to ObjC
  37359. * bindings/objc/DOMPrivate.h:
  37360. * bindings/objc/DOMHTML.mm:
  37361. (-[DOMHTMLElement offsetLeft]):
  37362. (-[DOMHTMLElement offsetTop]):
  37363. (-[DOMHTMLElement offsetWidth]):
  37364. (-[DOMHTMLElement offsetHeight]):
  37365. (-[DOMHTMLElement offsetParent]):
  37366. (-[DOMHTMLElement clientWidth]):
  37367. (-[DOMHTMLElement clientHeight]):
  37368. (-[DOMHTMLElement scrollLeft]):
  37369. (-[DOMHTMLElement setScrollLeft:]):
  37370. (-[DOMHTMLElement scrollTop]):
  37371. (-[DOMHTMLElement setScrollTop:]):
  37372. (-[DOMHTMLElement scrollWidth]):
  37373. (-[DOMHTMLElement scrollHeight]):
  37374. 2006-07-06 Maciej Stachowiak <mjs@apple.com>
  37375. Reviewed by Adele.
  37376. - fix 435 more layout tests Node leaks
  37377. * editing/CompositeEditCommand.cpp:
  37378. (WebCore::CompositeEditCommand::moveParagraphs): fix more instances of leaked DOM ranges
  37379. 2006-07-06 David Harrison <harrison@apple.com>
  37380. Reviewed by Geoff
  37381. <rdar://problem/4565031> innerHTML of XMP tag returns special characters like '&gt;' instead of '>'
  37382. Test: fast/innerHTML/006.html
  37383. * editing/markup.cpp:
  37384. (WebCore::startMarkup):
  37385. (WebCore::createMarkup):
  37386. Do not special quote content of XMP nodes.
  37387. 2006-07-06 Maciej Stachowiak <mjs@apple.com>
  37388. - back out earlier leak fix, as it caused a crash on one of the fast/invalid layout tests
  37389. * dom/Document.cpp:
  37390. (WebCore::Document::removedLastRef):
  37391. * html/HTMLParser.cpp:
  37392. (WebCore::HTMLStackElem::HTMLStackElem):
  37393. (WebCore::HTMLParser::popNestedHeaderTag):
  37394. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
  37395. (WebCore::HTMLParser::reopenResidualStyleTags):
  37396. (WebCore::HTMLParser::popBlock):
  37397. (WebCore::HTMLParser::popOneBlock):
  37398. 2006-07-06 Maciej Stachowiak <mjs@apple.com>
  37399. Reviewed by Anders.
  37400. - fix ~3000 Node leaks on the editing tests
  37401. * editing/CompositeEditCommand.cpp:
  37402. (WebCore::CompositeEditCommand::moveParagraphs): put a newly created Range in a RefPtr
  37403. to avoid leaking it, as this leaks the whole document.
  37404. 2006-07-06 Maciej Stachowiak <mjs@apple.com>
  37405. Reviewed by Anders.
  37406. - fix 26 Node leaks on various fast/dom tests
  37407. * dom/Document.cpp:
  37408. (WebCore::Document::removedLastRef): Delete the tokenizer here, since if we are in mid-parse,
  37409. the parser might hold refs on some of our children that have self-only refs.
  37410. * html/HTMLParser.cpp:
  37411. (WebCore::HTMLStackElem::HTMLStackElem): don't ref the node if it is a document to avoid ref cycles
  37412. (WebCore::HTMLStackElem::~HTMLStackElem): ditto
  37413. (WebCore::HTMLStackElem::node): changed interface a bit to support the above
  37414. (WebCore::HTMLStackElem::setNode): ditto
  37415. (WebCore::HTMLParser::popNestedHeaderTag): use new interface to HTMLStackElem
  37416. (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): ditto
  37417. (WebCore::HTMLParser::reopenResidualStyleTags): ditto
  37418. (WebCore::HTMLParser::popBlock): ditto
  37419. (WebCore::HTMLParser::popOneBlock): ditto
  37420. 2006-07-06 Mitz Pettel <opendarwin.org@mitzpettel.com>
  37421. Reviewed by Adele.
  37422. * rendering/RenderMenuList.h:
  37423. (WebCore::RenderMenuList::createsAnonymousWrapper): This method replaces
  37424. allowsReusingAnonymousChild() and has the opposite meaning.
  37425. 2006-07-05 Adele Peterson <adele@apple.com>
  37426. Build fixes.
  37427. * WebCore.vcproj/WebCore/WebCore.vcproj:
  37428. * platform/win/TemporaryLinkStubs.cpp:
  37429. * rendering/RenderMenuList.cpp:
  37430. (WebCore::RenderMenuList::calcMinMaxWidth):
  37431. * rendering/RenderPopupMenuWin.h:
  37432. (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
  37433. * rendering/RenderThemeWin.cpp:
  37434. 2006-07-05 Maciej Stachowiak <mjs@apple.com>
  37435. Reviewed by Adele.
  37436. - fix 308 Node leaks on the editing layout tests
  37437. * dom/Document.cpp: (WebCore::Document::removedLastRef): Clear the markers once there
  37438. are no real refs on the document, otherwise a self-only reference cycle w/ the document
  37439. can occur.
  37440. 2006-07-05 Adele Peterson <adele@apple.com>
  37441. Reviewed by Maciej and Hyatt.
  37442. Initial implementation of popup menu control. This can be turned on by setting -webkit-appearance: menulist on a select element.
  37443. * WebCore.xcodeproj/project.pbxproj: Added RenderMenuList.h, RenderMenuList.cpp, RenderPopupMenu.h, RenderPopupMenu.cpp,
  37444. RenderPopupMenuWin.h, RenderPopupMenuMac.h, RenderPopupMenuMac.mm,
  37445. * dom/Node.cpp:
  37446. (WebCore::Node::renderStyle): Added. Returns the renderer's style. If there's no renderer, returns's a RenderStyle that's kept by the node.
  37447. This is important for HTMLOptGroupElement and HTMLOptionElement, which don't have renderers.
  37448. (WebCore::Node::setRenderStyle): Added.
  37449. * dom/Node.h:
  37450. * dom/Element.cpp: (WebCore::Element::recalcStyle): Updated to use renderStyle so recalcStyle will work for HTMLOptionElements and HTMLOptGroupElements.
  37451. * css/cssstyleselector.cpp: Updated to call renderStyle method on the node, so resolving style works on elements w/o renderers that cache style.
  37452. (WebCore::CSSStyleSelector::initForStyleResolve):
  37453. (WebCore::CSSStyleSelector::locateCousinList):
  37454. (WebCore::CSSStyleSelector::canShareStyleWithElement):
  37455. (WebCore::CSSStyleSelector::locateSharedStyle):
  37456. (WebCore::CSSStyleSelector::checkOneSelector):
  37457. * css/html4.css: Removed display:none from options and optgroups, since we're now caching style for these elements.
  37458. Added font-weight styles for option and optgroup.
  37459. * html/HTMLOptGroupElement.h: Added m_style to keep track of a RenderStyle for the element, even though we aren't creating a renderer.
  37460. This will allow us to honor style for optgroups and options for popup menus (and eventually list boxes too).
  37461. (WebCore::HTMLOptGroupElement::rendererIsNeeded): Added.
  37462. (WebCore::HTMLOptGroupElement::renderStyle): Added.
  37463. * html/HTMLOptionElement.h: ditto.
  37464. (WebCore::HTMLOptionElement::rendererIsNeeded): Added.
  37465. (WebCore::HTMLOptionElement::renderStyle): Added.
  37466. * html/HTMLOptGroupElement.cpp:
  37467. (WebCore::HTMLOptGroupElement::HTMLOptGroupElement): Initialize m_style.
  37468. (WebCore::HTMLOptGroupElement::attach): Set the renderStyle.
  37469. (WebCore::HTMLOptGroupElement::detach): Clear m_style.
  37470. (WebCore::HTMLOptGroupElement::setRenderStyle): Added.
  37471. (WebCore::HTMLOptGroupElement::groupLabelText): Added.
  37472. * html/HTMLOptionElement.cpp: ditto.
  37473. (WebCore::HTMLOptionElement::HTMLOptionElement):
  37474. (WebCore::HTMLOptionElement::attach):
  37475. (WebCore::HTMLOptionElement::detach):
  37476. (WebCore::HTMLOptionElement::setRenderStyle):
  37477. (WebCore::HTMLOptionElement::optionText):
  37478. * html/HTMLSelectElement.cpp: Added code to use the new RenderMenuList if the appearance is set to MenuListAppearance,
  37479. and if we're not creating a list box renderer.
  37480. (WebCore::HTMLSelectElement::recalcStyle):
  37481. (WebCore::HTMLSelectElement::createRenderer):
  37482. (WebCore::HTMLSelectElement::setRecalcListItems):
  37483. (WebCore::HTMLSelectElement::reset):
  37484. (WebCore::HTMLSelectElement::notifyOptionSelected):
  37485. (WebCore::HTMLSelectElement::defaultEventHandler):
  37486. * html/HTMLSelectElement.h:
  37487. * WebCore.exp: Added _wkPopupMenu.
  37488. * platform/mac/WebCoreSystemInterface.h: Added wkPopupMenu to get the NSMenu to pop up.
  37489. * platform/mac/WebCoreSystemInterface.mm:
  37490. * platform/win/TemporaryLinkStubs.cpp: Added stubs for RenderPopupMenuWin.
  37491. (RenderPopupMenuWin::RenderPopupMenuWin):
  37492. (RenderPopupMenuWin::~RenderPopupMenuWin):
  37493. (RenderPopupMenuWin::clear):
  37494. (RenderPopupMenuWin::populate):
  37495. (RenderPopupMenuWin::showPopup):
  37496. (RenderPopupMenuWin::addSeparator):
  37497. (RenderPopupMenuWin::addGroupLabel):
  37498. (RenderPopupMenuWin::addOption):
  37499. * rendering/RenderPopupMenuWin.h: Added.
  37500. * rendering/RenderPopupMenu.cpp: Added.
  37501. (WebCore::RenderPopupMenu::RenderPopupMenu):
  37502. (WebCore::RenderPopupMenu::~RenderPopupMenu):
  37503. (WebCore::RenderPopupMenu::clear):
  37504. (WebCore::RenderPopupMenu::populate): Walks the DOM tree, and adds separators, options, and group labels to the RenderPopupMenu.
  37505. (WebCore::RenderPopupMenu::showPopup):
  37506. (WebCore::RenderPopupMenu::addSeparator):
  37507. (WebCore::RenderPopupMenu::addGroupLabel):
  37508. (WebCore::RenderPopupMenu::addOption):
  37509. * rendering/RenderPopupMenu.h: Added.
  37510. (WebCore::RenderPopupMenu::renderName):
  37511. (WebCore::RenderPopupMenu::getRenderMenuList):
  37512. * rendering/RenderPopupMenuMac.h: Added.
  37513. * rendering/RenderPopupMenuMac.mm: Added.
  37514. (WebCore::RenderPopupMenuMac::RenderPopupMenuMac):
  37515. (WebCore::RenderPopupMenuMac::~RenderPopupMenuMac):
  37516. (WebCore::RenderPopupMenuMac::clear): Removes all items from the menu.
  37517. (WebCore::RenderPopupMenuMac::populate): Disables menuChangedMessages before populating the menu.
  37518. (WebCore::RenderPopupMenuMac::showPopup): Calculates the right position, and calls wkPopupMenu.
  37519. (WebCore::RenderPopupMenuMac::addSeparator):
  37520. (WebCore::RenderPopupMenuMac::addGroupLabel):
  37521. (WebCore::RenderPopupMenuMac::addOption):
  37522. * rendering/RenderMenuList.cpp: Added.
  37523. (WebCore::RenderMenuList::RenderMenuList):
  37524. (WebCore::RenderMenuList::addChild):
  37525. (WebCore::RenderMenuList::removeChild):
  37526. (WebCore::RenderMenuList::setStyle):
  37527. (WebCore::RenderMenuList::updateFromElement): If the options have changed, iterate through the children to find the menu item with the widest text.
  37528. Set the button text to the selected item's text.
  37529. (WebCore::RenderMenuList::setText):
  37530. (WebCore::RenderMenuList::paintObject):
  37531. (WebCore::RenderMenuList::baselinePosition):
  37532. (WebCore::RenderMenuList::calcMinMaxWidth):
  37533. (WebCore::RenderMenuList::showPopup):
  37534. (WebCore::RenderMenuList::layout):
  37535. (WebCore::RenderMenuList::updateSelection):
  37536. (WebCore::RenderMenuList::valueChanged):
  37537. * rendering/RenderMenuList.h: Added.
  37538. (WebCore::RenderMenuList::removeLeftoverAnonymousBoxes):
  37539. (WebCore::RenderMenuList::allowsReusingAnonymousChild):
  37540. (WebCore::RenderMenuList::canHaveChildren):
  37541. (WebCore::RenderMenuList::renderName):
  37542. (WebCore::RenderMenuList::setOptionsChanged):
  37543. (WebCore::RenderMenuList::selectionChanged):
  37544. (WebCore::RenderMenuList::setSelectionChanged):
  37545. (WebCore::RenderMenuList::hasPopupMenu):
  37546. * rendering/RenderTheme.cpp: Added cases for MenuListAppearance.
  37547. (WebCore::RenderTheme::adjustStyle):
  37548. (WebCore::RenderTheme::paint):
  37549. (WebCore::RenderTheme::paintBorderOnly):
  37550. (WebCore::RenderTheme::isControlStyled):
  37551. (WebCore::RenderTheme::adjustMenuListStyle):
  37552. (WebCore::RenderTheme::createPopupMenu): creates platform-specific RenderPopupMenu.
  37553. * rendering/RenderTheme.h:
  37554. (WebCore::RenderTheme::sizeOfArrowControl): Added.
  37555. (WebCore::RenderTheme::paintMenuList): Added.
  37556. * rendering/RenderThemeMac.h:
  37557. * rendering/RenderThemeMac.mm:
  37558. (WebCore::RenderThemeMac::adjustRepaintRect):
  37559. (WebCore::RenderThemeMac::paintMenuList):
  37560. (WebCore::RenderThemeMac::adjustMenuListStyle):
  37561. (WebCore::RenderThemeMac::setPopupButtonCellState):
  37562. (WebCore::RenderThemeMac::createPopupMenu):
  37563. (WebCore::RenderThemeMac::sizeOfArrowControl):
  37564. * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::createPopupMenu):
  37565. * rendering/RenderThemeWin.h:
  37566. 2006-07-05 Brady Eidson <beidson@apple.com>
  37567. Reviewed by Tim Omernick.
  37568. IconDatabase now respects private browsing via the use of in memory, temporary tables
  37569. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  37570. (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
  37571. (-[WebCoreIconDatabaseBridge iconURLForPageURL:]): Renamed WebCore::IconDatabase methods, changes reflected here
  37572. * icon/IconDatabase.cpp:
  37573. (WebCore::IconDatabase::clearDatabase):
  37574. (WebCore::IconDatabase::deletePrivateTables):
  37575. (WebCore::IconDatabase::imageDataForIconID):
  37576. (WebCore::IconDatabase::imageDataForIconURL):
  37577. (WebCore::IconDatabase::imageDataForPageURL):
  37578. (WebCore::IconDatabase::setPrivateBrowsingEnabled):
  37579. (WebCore::IconDatabase::iconForPageURL):
  37580. (WebCore::IconDatabase::iconURLForPageURL):
  37581. (WebCore::IconDatabase::setIconDataForIconURL):
  37582. (WebCore::IconDatabase::performSetIconDataForIconID):
  37583. (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
  37584. (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
  37585. (WebCore::IconDatabase::setHaveNoIconForIconURL):
  37586. (WebCore::IconDatabase::setIconURLForPageURL):
  37587. (WebCore::IconDatabase::performSetIconURLForPageURL):
  37588. (WebCore::IconDatabase::hasIconForIconURL):
  37589. -Some style/comment cleanups, but mainly putting private browsing handling in place
  37590. * icon/IconDatabase.h: Some methods added, others renamed, some comments added
  37591. * icon/SQLStatement.cpp:
  37592. (WebCore::SQLStatement::getColumnName):
  37593. (WebCore::SQLStatement::getColumnName16):
  37594. (WebCore::SQLStatement::getColumnText):
  37595. (WebCore::SQLStatement::getColumnText16):
  37596. -The above 4 had changes to return String() for empty results instead of "" as it's less expensive;
  37597. 2006-07-05 John Sullivan <sullivan@apple.com>
  37598. Reviewed by Darin and Adele.
  37599. - fixed <rdar://problem/4609162> REGRESSION: When tabbing between links on a page,
  37600. the window doesn't scroll to link that's not in view
  37601. * html/HTMLAnchorElement.cpp:
  37602. * html/HTMLAnchorElement.h:
  37603. removed HTMLAnchorElement::focus and HTMLAnchorElement::blur.
  37604. HTMLAnchorElement::focus just called document()->setFocusNode(). The scroll-to-reveal
  37605. code used to be inside document()->setFocusNode(), but now it's in Element::focus, and this override
  37606. was preventing that code from running.
  37607. HTMLAnchorElement::blur was exactly the same implementation as Element::blur (and there aren't any
  37608. other implementations of ::blur in the class hierarchy in between). This change has no practical
  37609. effect, other than removing duplicate code.
  37610. Adele and I think that it was an oversight not to remove these two methods on 12/20/05
  37611. these methods were removed from HTMLButtonElementImpl and HTMLInputElementImpl.
  37612. 2006-07-05 Anders Carlsson <acarlsson@apple.com>
  37613. * bridge/win/FrameWin.cpp:
  37614. (WebCore::FrameWin::FrameWin):
  37615. * bridge/win/FrameWin.h:
  37616. * platform/win/TemporaryLinkStubs.cpp:
  37617. (FrameWin::createFrame):
  37618. Fix Win32 build.
  37619. 2006-07-05 Anders Carlsson <acarlsson@apple.com>
  37620. * WebCore.xcodeproj/project.pbxproj:
  37621. Revert accidental change of debug format to DWARF.
  37622. 2006-07-05 Anders Carlsson <acarlsson@apple.com>
  37623. Reviewed by Maciej.
  37624. http://bugs.webkit.org/show_bug.cgi?id=3581
  37625. iFrames set to display:none are Missing from frames array
  37626. * bridge/mac/FrameMac.h:
  37627. * bridge/mac/FrameMac.mm:
  37628. (WebCore::FrameMac::FrameMac):
  37629. (WebCore::FrameMac::createFrame):
  37630. * bridge/mac/WebCoreFrameBridge.h:
  37631. * bridge/mac/WebCoreFrameBridge.mm:
  37632. (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
  37633. (-[WebCoreFrameBridge installInFrame:]):
  37634. Modify to pass the owner element instead of the owner renderer.
  37635. * dom/ContainerNode.cpp:
  37636. (WebCore::ContainerNode::insertBefore):
  37637. (WebCore::ContainerNode::replaceChild):
  37638. (WebCore::ContainerNode::appendChild):
  37639. Dispatch the node inserted events before attaching the nodes. This is what the
  37640. tokenizer does.
  37641. * html/HTMLFrameElement.cpp:
  37642. (WebCore::HTMLFrameElement::openURL):
  37643. (WebCore::HTMLFrameElement::attach):
  37644. Pass the element to requestFrame.
  37645. (WebCore::HTMLFrameElement::setLocation):
  37646. Don't call attach/detach on an iframe.
  37647. * html/HTMLIFrameElement.cpp:
  37648. (WebCore::HTMLIFrameElement::insertedIntoDocument):
  37649. Load the frame here (using openURL).
  37650. (WebCore::HTMLIFrameElement::removedFromDocument):
  37651. Call frameDetached.
  37652. (WebCore::HTMLIFrameElement::attach):
  37653. If there's a renderer, attach the content frame to it.
  37654. (WebCore::HTMLIFrameElement::detach):
  37655. Reset the renderer's frame.
  37656. (WebCore::HTMLIFrameElement::openURL):
  37657. Modify to request the frame.
  37658. * html/HTMLIFrameElement.h:
  37659. Add detach.
  37660. * page/Frame.cpp:
  37661. (WebCore::parentFromOwnerElement):
  37662. (WebCore::Frame::Frame):
  37663. (WebCore::Frame::~Frame):
  37664. (WebCore::Frame::requestFrame):
  37665. (WebCore::Frame::requestObject):
  37666. (WebCore::Frame::loadSubframe):
  37667. (WebCore::Frame::ownerElement):
  37668. (WebCore::Frame::ownerRenderer):
  37669. (WebCore::Frame::disconnectOwnerElement):
  37670. * page/Frame.h:
  37671. * page/FramePrivate.h:
  37672. (WebCore::FramePrivate::FramePrivate):
  37673. * rendering/RenderPart.cpp:
  37674. (WebCore::RenderPart::setFrame):
  37675. Modify to keep an owner element around instead of the renderer.
  37676. * rendering/RenderPartObject.cpp:
  37677. (WebCore::RenderPartObject::updateWidget):
  37678. Don't do anything for iframes.
  37679. 2006-07-04 Kevin Ollivier <kevino@theolliviers.com>
  37680. Reviewed by Maciej, reworked a bit by Darin.
  37681. Compile fixes for wx port / gcc 4.0.2
  37682. * platform/PlatformString.h:
  37683. * platform/StringImpl.h:
  37684. Include CoreFoundation for CF-specific code.
  37685. * dom/DocPtr.h:
  37686. * doc/EventTargetNode.h:
  37687. Silence warnings about 'extra tokens' after #endif on gcc 4.0.2.
  37688. (Not an error but warnings appear frequently.)
  37689. * WebCoreSources.bkl:
  37690. * webcore-base.bkl:
  37691. Synching ports sources file with TOT. Also, making sure SRCDIR variable
  37692. overrides any previous values.
  37693. * loader/ImageDocument.cpp:
  37694. Use PLATFORM(MAC) for the parts that are specific to the Macintosh version,
  37695. and move the Objective-C parts to another file.
  37696. * loader/mac/ImageDocumentMac.h: Added.
  37697. * loader/mac/ImageDocumentMac.mm: Added.
  37698. 2006-07-04 Sam Weinig <sam.weinig@gmail.com>
  37699. Build fix.
  37700. * platform/Color.cpp:
  37701. (WebCore::makeRGBAFromHSLA):
  37702. 2006-07-02 David Carson <dacarson@gmail.com>
  37703. Reviewed by Darin.
  37704. - Added HSL color support as specified in CSS3 spec.
  37705. http://bugs.webkit.org/show_bug.cgi?id=9506
  37706. Added parsing support of hsl(h,s,l) and hsla(h,s,l,a)
  37707. Added converting code to convert HSL to RGB
  37708. * css/cssparser.cpp:
  37709. (WebCore::CSSParser::parseColorParameters):
  37710. Moved common code to parse RGB/RGBA values into it's
  37711. own function. This code was duplicated in the parseColorFromValue()
  37712. method.
  37713. (WebCore::CSSParser::parseHSLParameters):
  37714. Common code to parse HSL/HSLA values.
  37715. (WebCore::CSSParser::parseColorFromValue):
  37716. Moved RGB/RGBA parsing out to seperate function as the code was
  37717. duplicated.
  37718. Added parsing support for hsl( and hsla(
  37719. * css/cssparser.h:
  37720. Added two new functions parseColorParameters() and
  37721. parseHSLParameters().
  37722. * platform/Color.cpp:
  37723. (WebCore::calcHue):
  37724. Added Hue parameter to RGB color.
  37725. (WebCore::makeRGBAFromHSLA):
  37726. New function to convert HSLA to RGBA.
  37727. * platform/Color.h:
  37728. Added new functions makeRGBAFromHSLA() and calcHue().
  37729. 2006-07-02 Mike Emmel <mike.emmel@gmail.com>
  37730. Reviewed and landed by ggaren.
  37731. * platform/gdk/TransferJobManager.cpp
  37732. Fixed broken dowload logic
  37733. * platform/gdk/ScrollViewGdk.cpp
  37734. Add comment that scrollbarSize is a temporary variable
  37735. * Projects/gdk/webcore-gdk.bkl
  37736. Defined NDEBUG build executable is miscompiled otherwise
  37737. * WebCoreSources.bkl
  37738. added icon/SiteIcon.cpp editing/IndentOutdentCommand.cpp
  37739. html/HTMLViewSourceDocument.cpp
  37740. 2006-07-02 Shawn Stricker <kb1ibt@gmail.com>
  37741. Reviewed by Timothy Hatcher. Build fix for Linux.
  37742. - fix http://bugs.webkit.org/show_bug.cgi?id=9684
  37743. [GDK] multiple little fixes and a few new things for Templinkstubs
  37744. * platform/gdk/ScrollViewGdk.cpp:
  37745. (WebCore::ScrollView::setDrawable): Changed SCROLLBAR_SIZE to scrollbarSize.
  37746. * platform/gdk/TemporaryLinkStubs.cpp:
  37747. (Image::drawTiled): Added missing parameter to argument list.
  37748. * platform/gdk/TransferJobManager.cpp:
  37749. (WebCore::writeCallback): Added missing parenthesis to static_cast.
  37750. 2006-07-02 Mitz Pettel <opendarwin.org@mitzpettel.com>
  37751. Reviewed by Darin.
  37752. - fix http://bugs.webkit.org/show_bug.cgi?id=9674
  37753. REGRESSION (r15075): Blank or incomplete pages on digg.com
  37754. Replaced the requestingScript state bit added in the fix for bug 9317
  37755. with a m_requestingScript bool that is set before and restored
  37756. after calling ref() on a CachedScript.
  37757. Test: fast/tokenizer/nested-cached-scripts.html
  37758. * html/HTMLTokenizer.cpp:
  37759. (WebCore::HTMLTokenizer::HTMLTokenizer):
  37760. (WebCore::HTMLTokenizer::begin):
  37761. (WebCore::HTMLTokenizer::scriptHandler):
  37762. (WebCore::HTMLTokenizer::notifyFinished):
  37763. * html/HTMLTokenizer.h:
  37764. (WebCore::HTMLTokenizer::State::):
  37765. 2006-07-01 David Kilzer <ddkilzer@kilzer.net>
  37766. Reviewed by NOBODY (build fix).
  37767. * platform/gdk/TransferJobManager.cpp:
  37768. (WebCore::writeCallback): Changed 'static_cat' to 'static_cast'.
  37769. 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
  37770. Reviewed and worked over a lot by Darin.
  37771. - check in first set of GDK-specific sources
  37772. * platform/gdk/BrowserExtensionGdk.h: Added.
  37773. * platform/gdk/CookieJarGdk.cpp: Added.
  37774. * platform/gdk/CursorGdk.cpp: Added.
  37775. * platform/gdk/FontCacheGdk.cpp: Added.
  37776. * platform/gdk/FontDataGdk.cpp: Added.
  37777. * platform/gdk/FontGdk.cpp: Added.
  37778. * platform/gdk/FontPlatformData.h: Added.
  37779. * platform/gdk/FontPlatformDataGdk.cpp: Added.
  37780. * platform/gdk/FrameGdk.cpp: Added.
  37781. * platform/gdk/FrameGdk.h: Added.
  37782. * platform/gdk/GlyphMapGdk.cpp: Added.
  37783. * platform/gdk/KeyEventGdk.cpp: Added.
  37784. * platform/gdk/KeyboardCodes.h: Added.
  37785. * platform/gdk/MouseEventGdk.cpp: Added.
  37786. * platform/gdk/PageGdk.cpp: Added.
  37787. * platform/gdk/RenderThemeGdk.cpp: Added.
  37788. * platform/gdk/RenderThemeGdk.h: Added.
  37789. * platform/gdk/ScreenGdk.cpp: Added.
  37790. * platform/gdk/ScrollViewGdk.cpp: Added.
  37791. * platform/gdk/SharedTimerLinux.cpp: Added.
  37792. * platform/gdk/SystemTimeLinux.cpp: Added.
  37793. * platform/gdk/TemporaryLinkStubs.cpp: Added.
  37794. * platform/gdk/TransferJobCurl.cpp: Added.
  37795. * platform/gdk/TransferJobManager.cpp: Added.
  37796. * platform/gdk/TransferJobManager.h: Added.
  37797. * platform/gdk/WheelEventGdk.cpp: Added.
  37798. * platform/gdk/WidgetGdk.cpp: Added.
  37799. * platform/gdk/gdk-encodings.txt: Added.
  37800. 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
  37801. Reviewed by Darin.
  37802. * WebCoreSources.bkl: Updated for recent file changes.
  37803. 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
  37804. Reviewed and enhanced by Darin.
  37805. Compilation fixes for Linux/Gdk.
  37806. * WebCore/platform/FontData.h: Added forward declaration of a class.
  37807. * WebCore/platform/cairo/GraphicsContextCairo.cpp: Fixed case on include.
  37808. * WebCore/bindings/js/kjs_html.cpp: Added <math.h> include.
  37809. * WebCore/css/maketokenizer: Fixed incorrect check for Linux that was
  37810. already true even on Mac OS X. Added some additional includes and
  37811. defines to the Linux extra generated code.
  37812. 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
  37813. Reviewed by Hyatt.
  37814. - fix http://bugs.webkit.org/show_bug.cgi?id=7204
  37815. float inserted in fixed height block via DOM not repainted
  37816. Test: fast/repaint/float-move-during-layout.html
  37817. * rendering/RenderBlock.cpp:
  37818. (WebCore::RenderBlock::layoutBlockChildren):
  37819. (WebCore::RenderBlock::repaintOverhangingFloats): Renamed repaintFloatingDescendants()
  37820. to this and limited it to repainting overhanging floats. Added a boolean parameter that forces
  37821. all descendant overhanging floats (that don't have their own layer) to paint.
  37822. * rendering/RenderBlock.h:
  37823. * rendering/RenderBox.cpp:
  37824. (WebCore::RenderBox::repaintDuringLayoutIfMoved): Changed to paint all descendant
  37825. floats.
  37826. * rendering/RenderObject.cpp:
  37827. (WebCore::RenderObject::repaintOverhangingFloats):
  37828. * rendering/RenderObject.h:
  37829. 2006-06-30 Levi Weintraub <lweintraub@apple.com>
  37830. Reviewed by justin
  37831. * editing/VisiblePosition.cpp: Removed is[Not]EqualIgnoringAffinity and made operator== use the logic that ignores affinity.
  37832. * editing/VisiblePosition.h: Ditto.
  37833. (WebCore::operator==):
  37834. * editing/visible_units.cpp:
  37835. (WebCore::isStartOfParagraph): Changed to compare VisiblePositions using ==.
  37836. (WebCore::isEndOfParagraph): Ditto.
  37837. (WebCore::isStartOfBlock): Ditto.
  37838. (WebCore::isEndOfBlock): Ditto.
  37839. === Safari-521.14 ===
  37840. 2006-06-30 Justin Garcia <justin.garcia@apple.com>
  37841. Reviewed by levi
  37842. * editing/htmlediting.cpp:
  37843. (WebCore::canHaveChildrenForEditing): Don't insert children into
  37844. object tags while editing.
  37845. 2006-06-30 Justin Garcia <justin.garcia@apple.com>
  37846. Reviewed by harrison
  37847. <rdar://problem/4598309
  37848. Caret gets stuck when it hits non editable content within an editable body
  37849. <http://bugs.webkit.org/show_bug.cgi?id=9510>
  37850. Caret will jump out of an editable region
  37851. * dom/Position.cpp:
  37852. (WebCore::Position::upstream): Don't move into a new editable region so that
  37853. candidates that that straddle an editable/non-editable boundary will
  37854. correspond to different VisiblePositions.
  37855. (WebCore::Position::downstream): Ditto.
  37856. * editing/SelectionController.cpp:
  37857. (WebCore::SelectionController::modifyMovingRightForward): Use VisiblePosition::next(true)
  37858. (WebCore::SelectionController::modifyMovingLeftBackward): Use VisiblePosition::previous(true)
  37859. * editing/VisiblePosition.cpp:
  37860. (WebCore::VisiblePosition::next): Added code to jump to the next editable region as long
  37861. as it has the same highest editable root.
  37862. (WebCore::VisiblePosition::previous): Ditto.
  37863. * editing/VisiblePosition.h:
  37864. * editing/htmlediting.cpp:
  37865. (WebCore::highestEditableRoot): Added, returns the highest editable root of a node if that
  37866. node is in editable content, otherwise 0.
  37867. * editing/htmlediting.h:
  37868. 2006-06-30 David Kilzer <ddkilzer@kilzer.net>
  37869. Reviewed by Darin.
  37870. - Fix http://bugs.webkit.org/show_bug.cgi?id=9358
  37871. REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer
  37872. (value == constrainValue(value)) when deleting all text
  37873. Test: editing/deleting/delete-all-text-in-text-field-assertion.html
  37874. Bug 9661 filed to fix the follow-up issue:
  37875. http://bugs.webkit.org/show_bug.cgi?id=9661
  37876. textContent returns "\n" for a <br> even if it is collapsed
  37877. * html/HTMLInputElement.cpp:
  37878. (WebCore::HTMLInputElement::setValueFromRenderer): Work around "\n" value
  37879. when all characters are deleted from a text field.
  37880. 2006-06-30 David Harrison <harrison@apple.com>
  37881. Reviewed by Tim Omernick
  37882. <rdar://problem/4609481> Crash calling -[WebScriptObject valueForKey:] when JS disabled
  37883. * bridge/mac/FrameMac.mm:
  37884. (WebCore::FrameMac::executionContextForDOM):
  37885. Early return if JS is not enabled.
  37886. 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
  37887. Reviewed by Tim H.
  37888. - fix http://bugs.webkit.org/show_bug.cgi?id=9664
  37889. REGRESSION (r15106): Crash in fast/events/mouseover-mouseout2.html
  37890. * page/FrameView.cpp:
  37891. (WebCore::FrameView::handleMouseMoveEvent): Added a check that oldSubframe is
  37892. still a subframe of the view's frame before passing the event to it.
  37893. 2006-06-29 Timothy Hatcher <timothy@apple.com>
  37894. Reviewed by Darin.
  37895. <rdar://problem/3694163> -[KWQPageState finalize] is incorrect; design change needed
  37896. <rdar://problem/3694165> -[WebCoreFrameBridge finalize] is incorrect; design change needed
  37897. Added close methods that need to be called before these
  37898. objects can be released. This ensures proper tear-down under GC.
  37899. * WebCore.xcodeproj/project.pbxproj:
  37900. * bridge/mac/WebCoreFrameBridge.h:
  37901. * bridge/mac/WebCoreFrameBridge.mm:
  37902. (-[WebCoreFrameBridge dealloc]):
  37903. (-[WebCoreFrameBridge finalize]):
  37904. (-[WebCoreFrameBridge close]):
  37905. * bridge/mac/WebCorePageBridge.h:
  37906. * bridge/mac/WebCorePageBridge.mm:
  37907. (-[WebCorePageBridge setMainFrame:]):
  37908. (-[WebCorePageBridge dealloc]):
  37909. (-[WebCorePageBridge finalize]):
  37910. (-[WebCorePageBridge close]):
  37911. (-[WebCorePageBridge mainFrame]):
  37912. (-[WebCorePageBridge setGroupName:]):
  37913. (-[WebCorePageBridge groupName]):
  37914. * kwq/KWQPageState.h:
  37915. * kwq/KWQPageState.mm:
  37916. (-[KWQPageState dealloc]):
  37917. (-[KWQPageState finalize]):
  37918. (-[KWQPageState close]):
  37919. 2006-06-29 Sam Weinig <sam.weinig@gmail.com>
  37920. Reviewed by Hyatt.
  37921. - test for http://bugs.webkit.org/show_bug.cgi?id=4874
  37922. Table with absolute bottom positioning is positioned incorrectly
  37923. Note: patch originally from Mitz, spruced up by Weinig.
  37924. * rendering/RenderBox.cpp:
  37925. (WebCore::RenderBox::calcAbsoluteVerticalValues):
  37926. * rendering/RenderTable.cpp:
  37927. (WebCore::RenderTable::layout):
  37928. 2006-06-29 Graham Dennis <Graham.Dennis@gmail.com>
  37929. Reviewed by Justin.
  37930. - fix http://bugs.webkit.org/show_bug.cgi?id=9505
  37931. moveParagraphContentsToNewBlockIfNecessary creates a new block outside the current position
  37932. * editing/CompositeEditCommand.cpp:
  37933. Added sanity checking to prevent modifying nodes outside of
  37934. where we should be
  37935. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
  37936. 2006-06-29 Brady Eidson <beidson@apple.com>
  37937. Reviewed by Levi.
  37938. In addition to a few small details, logging changes, and style cleanups, this is a stop-gap hack
  37939. for a problem in SQLite's blob handling. Querying for a blob in a void* form is reproducibly
  37940. returning a corrupt buffer. The temporary solution is to query for the blob as "quoted text" and
  37941. manually convert the return string into a character buffer.
  37942. * icon/IconDatabase.cpp:
  37943. (WebCore::IconDatabase::recreateDatabase):
  37944. (WebCore::IconDatabase::createPrivateTables):
  37945. (WebCore::hexToUnsignedChar): These two functions are the text-to-character-data converters for the time being
  37946. (WebCore::hexStringToVector):
  37947. (WebCore::IconDatabase::imageDataForIconID):
  37948. (WebCore::IconDatabase::imageDataForIconURL):
  37949. (WebCore::IconDatabase::imageDataForPageURL):
  37950. (WebCore::IconDatabase::iconForPageURL):
  37951. (WebCore::IconDatabase::hasIconForIconURL):
  37952. * icon/IconDatabase.h: changes the icon data accessors to return a Vector<unsigned char> instead of void*
  37953. * icon/SQLStatement.cpp:
  37954. (WebCore::SQLStatement::columnCount):
  37955. (WebCore::SQLStatement::getColumnBlob):
  37956. * icon/SiteIcon.cpp:
  37957. (SiteIcon::getImage):
  37958. 2006-06-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
  37959. Reviewed by Darin.
  37960. - fix http://bugs.webkit.org/show_bug.cgi?id=9652
  37961. Assertion failure when changing an RTL table cell to display:none
  37962. Test: fast/table/rtl-cell-display-none-assert.html
  37963. * rendering/RenderTableSection.cpp:
  37964. (WebCore::RenderTableSection::layoutRows): Corrected the index used as
  37965. the last index in the columnPos vector.
  37966. 2006-06-29 Darin Adler <darin@apple.com>
  37967. Reviewed by Anders.
  37968. - fix http://bugs.webkit.org/show_bug.cgi?id=9622
  37969. showModalDialog returnValue ignored, function result is always "undefined"
  37970. * manual-tests/modal-dialog.html: Added.
  37971. * manual-tests/show-modal-dialog-test.html: Added.
  37972. * page/Frame.cpp: (WebCore::Frame::clear): Call KJSProxy::clear with the
  37973. clearWindowProperties parameter instead of not calling it at all when
  37974. clearWindowProperties is false.
  37975. * bindings/js/kjs_proxy.h: Add boolean clearWindowProperties parameter.
  37976. * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::clear): Pass clearWindowProperties
  37977. variable through to Window::clear instead of not calling it at all.
  37978. * bindings/js/kjs_window.h: Add boolean clearWindowProperties parameter.
  37979. * bindings/js/kjs_window.cpp: (KJS::Window::clear): If clearWindowProperties
  37980. is false, do only the returnValue work, not the rest of the work.
  37981. * manual-tests/modal-dialog.html: Added.
  37982. * manual-tests/show-modal-dialog-test.html: Added.
  37983. 2006-06-29 Beth Dakin <bdakin@apple.com>
  37984. Reviewed by Hyatt.
  37985. Fix for <rdar://problem/4450615> Add composite mode to background
  37986. styles
  37987. -webkit-background-composite will set a composite mode on a
  37988. background image.
  37989. * css/CSSComputedStyleDeclaration.cpp:
  37990. (WebCore::):
  37991. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  37992. * css/CSSPropertyNames.in: Add -webkit-background-composite
  37993. * css/CSSValueKeywords.in: Add all possible values (clear, copy,
  37994. source-over, source-in, source-out, source-atop, destination-over,
  37995. destination-in, destination-out, destination-atop, xor, plus-
  37996. darker, highlight, and plus-lighter)
  37997. * css/cssparser.cpp:
  37998. (WebCore::CSSParser::parseValue):
  37999. (WebCore::CSSParser::parseBackgroundProperty):
  38000. * css/cssstyleselector.cpp:
  38001. (WebCore::CSSStyleSelector::applyProperty):
  38002. (WebCore::CSSStyleSelector::mapBackgroundComposite):
  38003. * css/cssstyleselector.h:
  38004. * platform/GraphicsContext.cpp:
  38005. (WebCore::GraphicsContext::drawTiledImage):
  38006. * platform/GraphicsContext.h: drawTiledImage() now takes a
  38007. composite operator.
  38008. * platform/Image.h: drawTiled() now takes a composite operator.
  38009. * platform/cairo/ImageCairo.cpp:
  38010. (WebCore::Image::drawTiled): Set the composite operator.
  38011. * platform/mac/ImageMac.mm:
  38012. (WebCore::Image::drawTiled): Set the composite operator.
  38013. * platform/win/TemporaryLinkStubs.cpp:
  38014. (Image::drawTiled):
  38015. * rendering/RenderBox.cpp:
  38016. (WebCore::RenderBox::paintBackgroundExtended): Send the composite
  38017. operator in the render style over to the graphics context.
  38018. * rendering/render_style.cpp:
  38019. (WebCore::BackgroundLayer::BackgroundLayer):
  38020. (WebCore::BackgroundLayer::operator=):
  38021. (WebCore::BackgroundLayer::operator==):
  38022. (WebCore::BackgroundLayer::fillUnsetProperties):
  38023. (WebCore::BackgroundLayer::cullEmptyLayers):
  38024. * rendering/render_style.h:
  38025. (WebCore::BackgroundLayer::backgroundComposite):
  38026. (WebCore::BackgroundLayer::isBackgroundCompositeSet):
  38027. (WebCore::BackgroundLayer::setBackgroundComposite):
  38028. (WebCore::BackgroundLayer::clearBackgroundComposite):
  38029. (WebCore::RenderStyle::backgroundComposite):
  38030. (WebCore::RenderStyle::initialBackgroundComposite):
  38031. 2006-06-29 David Kilzer <ddkilzer@kilzer.net>
  38032. Reviewed by Darin.
  38033. http://bugs.webkit.org/show_bug.cgi?id=9649
  38034. The no-svg build broke after r15091
  38035. * bindings/objc/DOMInternal.h: Added #if XPATH_SUPPORT/#endif.
  38036. * bindings/objc/DOMInternal.mm: Ditto.
  38037. (raiseDOMException):
  38038. * bindings/objc/DOMXPath.h: Ditto.
  38039. * bindings/objc/DOMXPath.mm: Ditto.
  38040. * bindings/objc/DOMXPathInternal.h: Ditto.
  38041. 2006-06-29 Anders Carlsson <acarlsson@apple.com>
  38042. Reviewed by Tim O.
  38043. <rdar://problem/4599760> Objective-C XPath support
  38044. * WebCore.xcodeproj/project.pbxproj:
  38045. Add files.
  38046. * bindings/objc/DOMInternal.h:
  38047. * bindings/objc/DOMInternal.mm:
  38048. (raiseDOMException):
  38049. Handle XPath exceptions
  38050. * bindings/objc/DOMXPath.h: Added.
  38051. (-[DOMXPathNSResolver lookupNamespaceURI:]):
  38052. * bindings/objc/DOMXPath.mm: Added.
  38053. (-[DOMNativeXPathNSResolver dealloc]):
  38054. (-[DOMNativeXPathNSResolver finalize]):
  38055. (-[DOMNativeXPathNSResolver _xpathNSResolver]):
  38056. (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:]):
  38057. (+[DOMNativeXPathNSResolver _xpathNSResolverWith:]):
  38058. (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
  38059. (-[DOMXPathResult dealloc]):
  38060. (-[DOMXPathResult finalize]):
  38061. (-[DOMXPathResult resultType]):
  38062. (-[DOMXPathResult numberValue]):
  38063. (-[DOMXPathResult stringValue]):
  38064. (-[DOMXPathResult booleanValue]):
  38065. (-[DOMXPathResult singleNodeValue]):
  38066. (-[DOMXPathResult invalidIteratorState]):
  38067. (-[DOMXPathResult snapshotLength]):
  38068. (-[DOMXPathResult iterateNext]):
  38069. (-[DOMXPathResult snapshotItem:]):
  38070. (-[DOMXPathResult _xpathResult]):
  38071. (-[DOMXPathResult _initWithXPathResult:]):
  38072. (+[DOMXPathResult _xpathResultWith:]):
  38073. (-[DOMXPathExpression evaluate:::]):
  38074. (-[DOMXPathExpression _xpathExpression]):
  38075. (-[DOMXPathExpression _initWithXPathExpression:]):
  38076. (+[DOMXPathExpression _xpathExpressionWith:]):
  38077. (-[DOMDocument createExpression::]):
  38078. (-[DOMDocument createNSResolver:]):
  38079. (-[DOMDocument evaluate:::::]):
  38080. * bindings/objc/DOMXPathInternal.h: Added.
  38081. Add Objective-C XPath API.
  38082. 2006-06-28 David Hyatt <hyatt@apple.com>
  38083. Add support for custom highlighting to paint at the root line box level
  38084. (and to inflate the box it uses so that it can go outside the bounds of
  38085. the line if necessary).
  38086. Reviewed by harrison
  38087. * bridge/mac/FrameMac.h:
  38088. * bridge/mac/FrameMac.mm:
  38089. (WebCore::FrameMac::customHighlightLineRect):
  38090. (WebCore::FrameMac::paintCustomHighlight):
  38091. * bridge/mac/WebCoreFrameBridge.h:
  38092. * rendering/InlineTextBox.cpp:
  38093. (WebCore::InlineTextBox::paintCustomHighlight):
  38094. * rendering/RootInlineBox.cpp:
  38095. (WebCore::RootInlineBox::paintCustomHighlight):
  38096. (WebCore::RootInlineBox::paint):
  38097. * rendering/RootInlineBox.h:
  38098. 2006-06-28 Levi Weintraub <lweintraub@apple.com>
  38099. Reviewed by justin
  38100. <rdar://problem/4592005> FormatBlock inserts in the wrong place, disregarding editable content
  38101. <rdar://problem/4590763> FormatBlock for paragraph style doesn't work
  38102. * dom/Node.cpp:
  38103. (WebCore::Node::rootEditableElement): Return inline nodes
  38104. * editing/FormatBlockCommand.cpp:
  38105. (WebCore::FormatBlockCommand::doApply): Keep from inserting before editable content
  38106. * editing/JSEditor.cpp: Support html braces (<>) around tag names
  38107. 2006-06-28 Justin Garcia <justin.garcia@apple.com>
  38108. Reviewed by levi
  38109. svg/custom/text-hit-test.svg was failing
  38110. * rendering/RenderContainer.cpp:
  38111. (WebCore::RenderContainer::positionForCoordinates): Don't skip child
  38112. renderers that have a height of 0 when looking for the closest child
  38113. renderer, they may contain content that overflows.
  38114. * rendering/RenderText.cpp:
  38115. (WebCore::RenderText::positionForCoordinates): Fixed typos.
  38116. 2006-06-28 David Hyatt <hyatt@apple.com>
  38117. Make the view source document properly handle <script>. We don't syntax
  38118. highlight the JS yet, but it shows up properly now.
  38119. Reviewed by john
  38120. * WebCore.xcodeproj/project.pbxproj:
  38121. * html/HTMLTokenizer.cpp:
  38122. (WebCore::HTMLTokenizer::scriptHandler):
  38123. 2006-06-28 Timothy Hatcher <timothy@apple.com>
  38124. Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
  38125. * WebCore.xcodeproj/project.pbxproj:
  38126. 2006-06-28 Justin Garcia <justin.garcia@apple.com>
  38127. Reviewed by levi
  38128. Fixed EditActions for InsertHorizontalRule and RemoveFormat.
  38129. * editing/JSEditor.cpp:
  38130. * editing/ReplaceSelectionCommand.cpp:
  38131. (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
  38132. (WebCore::ReplaceSelectionCommand::editingAction):
  38133. * editing/ReplaceSelectionCommand.h:
  38134. 2006-06-28 Levi Weintraub <lweintraub@apple.com>
  38135. Build Fix. Reviewed by NOBODY
  38136. * editing/IndentOutdentCommand.cpp:
  38137. (WebCore::IndentOutdentCommand::indentRegion):
  38138. 2006-06-28 Levi Weintraub <lweintraub@apple.com>
  38139. Reviewed by justin
  38140. http://bugs.webkit.org/show_bug.cgi?id=7568
  38141. Bug 7568: Implement Indent/Outdent
  38142. * WebCore.vcproj/WebCore/WebCore.vcproj: Added IndentOutdentCommand.h/cpp
  38143. * WebCore.xcodeproj/project.pbxproj: Ditto.
  38144. * editing/IndentOutdentCommand.cpp: Added.
  38145. (WebCore::IndentOutdentCommand::IndentOutdentCommand):
  38146. (WebCore::enclosingListOrBlockquote):
  38147. (WebCore::IndentOutdentCommand::splitTreeToNode): Splits the DOM tree from a
  38148. descendent node to an ending ancestor, duplicating nodes when necessary. Returns
  38149. the last node split. Used to insert blockquotes at the topmost level.
  38150. (WebCore::IndentOutdentCommand::indentRegion):
  38151. (WebCore::IndentOutdentCommand::outdentParagraph):
  38152. (WebCore::IndentOutdentCommand::outdentRegion):
  38153. (WebCore::IndentOutdentCommand::doApply):
  38154. * editing/IndentOutdentCommand.h: Added.
  38155. (WebCore::IndentOutdentCommand::):
  38156. * editing/JSEditor.cpp: Added the execCommands Indent and Outdent
  38157. * editing/htmlediting.cpp:
  38158. (WebCore::enclosingNodeWithTag): Finds the enclosing node with any specified tag.
  38159. (WebCore::enclosingListChild): Added checks for nill and editable boundaries.
  38160. (WebCore::outermostEnclosingListChild): Returns the highest ancestor list child.
  38161. (WebCore::highestAncestor): Added.
  38162. (WebCore::createElement): Changed the passed in string to a const reference.
  38163. * editing/htmlediting.h:
  38164. 2006-06-28 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38165. Reviewed by Darin and Hyatt.
  38166. - fix http://bugs.webkit.org/show_bug.cgi?id=9561
  38167. REGRESSION: Content property on :before of button causes hang on click or hover
  38168. Test: fast/forms/button-generated-content.html
  38169. * rendering/RenderBlock.cpp:
  38170. (WebCore::RenderBlock::setStyle):
  38171. * rendering/RenderButton.cpp:
  38172. (WebCore::RenderButton::updatePseudoChild): Added. Calls updatePseudoChildForObject()
  38173. on the button itself or on its inner div, if it has one.
  38174. * rendering/RenderButton.h:
  38175. (WebCore::RenderButton::createsAnonymousWrapper): Added. Returns true.
  38176. * rendering/RenderContainer.cpp:
  38177. (WebCore::RenderContainer::pseudoChild): Added. Returns the child containing
  38178. generated content of the requested type if there is one, or otherwise the
  38179. child before/after which such generated content should come.
  38180. (WebCore::RenderContainer::updatePseudoChild): Removed the child parameter and moved the guts
  38181. of this method into updatePseudoChildForObject, which this method calls unless the object
  38182. is an anonymous wrapper.
  38183. (WebCore::RenderContainer::updatePseudoChildForObject): Added. Does the what
  38184. updatePseudoChildForObject did previously, but fetches the pseudo style from
  38185. the styledObject parameter.
  38186. * rendering/RenderContainer.h:
  38187. * rendering/RenderInline.cpp:
  38188. (WebCore::RenderInline::setStyle):
  38189. (WebCore::RenderInline::addChildToFlow):
  38190. (WebCore::RenderInline::splitInlines):
  38191. (WebCore::RenderInline::splitFlow):
  38192. * rendering/RenderObject.h:
  38193. (WebCore::RenderObject::createsAnonymousWrapper): Added. This method replaces
  38194. allowsReusingAnonymousChild and returns the opposite of what that method used to
  38195. return. Returns true if the object creates an anonymous child to contain all its
  38196. other children.
  38197. 2006-06-27 Brady Eidson <beidson@apple.com>
  38198. Reviewed by Maciej
  38199. Hookup the new semi-functional SQLite icon database.
  38200. For now, it is living side-by-side with the old DB so one can compare the
  38201. two for debugging purposes. Also, it is disabled (in WebKit) by default unless you
  38202. compile with ICONDEBUG #defined.
  38203. * WebCore.xcodeproj/project.pbxproj: Added file SiteIcon.cpp
  38204. * bridge/mac/WebCoreIconDatabaseBridge.h:
  38205. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  38206. (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
  38207. (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
  38208. (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
  38209. (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
  38210. * icon/IconDatabase.cpp:
  38211. (WebCore::IconDatabase::isValidDatabase):
  38212. (WebCore::IconDatabase::recreateDatabase):
  38213. (WebCore::IconDatabase::createPrivateTables):
  38214. (WebCore::IconDatabase::deletePrivateTables):
  38215. (WebCore::IconDatabase::imageDataForIconID):
  38216. (WebCore::IconDatabase::imageDataForIconURL):
  38217. (WebCore::IconDatabase::imageDataForPageURL):
  38218. (WebCore::IconDatabase::setPrivateBrowsingEnabled):
  38219. (WebCore::IconDatabase::iconForPageURL):
  38220. (WebCore::IconDatabase::iconURLForURL):
  38221. (WebCore::IconDatabase::setIconDataForIconURL):
  38222. (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
  38223. (WebCore::IconDatabase::setHaveNoIconForIconURL):
  38224. (WebCore::IconDatabase::setIconURLForPageURL):
  38225. (WebCore::IconDatabase::hasIconForIconURL):
  38226. * icon/IconDatabase.h:
  38227. (WebCore::SiteIcon::getIconURL):
  38228. (WebCore::IconDatabase::getPrivateBrowsingEnabled):
  38229. * icon/SiteIcon.cpp: Added.
  38230. (SiteIcon::SiteIcon):
  38231. (SiteIcon::~SiteIcon):
  38232. (SiteIcon::getImage):
  38233. (SiteIcon::resetExpiration):
  38234. (SiteIcon::getExpiration):
  38235. 2006-06-27 Rob Buis <buis@kde.org>
  38236. Reviewed by Darin.
  38237. http://bugs.webkit.org/show_bug.cgi?id=9605
  38238. REGRESSION: pageX and pageY are both 0 for events created with initMouseEvent
  38239. Calculate pageX/pageY and clientX/clientY values when using initMouseEvent.
  38240. * dom/MouseEvent.cpp:
  38241. (WebCore::MouseEvent::initMouseEvent):
  38242. * dom/MouseRelatedEvent.cpp:
  38243. (WebCore::MouseRelatedEvent::initCoordinates):
  38244. * dom/MouseRelatedEvent.h:
  38245. 2006-06-27 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38246. Reviewed by Maciej and Darin.
  38247. - fix http://bugs.webkit.org/show_bug.cgi?id=9317
  38248. REGRESSION: crash in HTML tokenizer at Japanese Apple support page
  38249. Test: fast/tokenizer/write-unclosed-script.html
  38250. * html/HTMLTokenizer.cpp:
  38251. (WebCore::HTMLTokenizer::scriptHandler): Changed to reset the inScript flag
  38252. and scriptCodeSize before possible script execution, but not afterwards.
  38253. This way, if script execution write()s a <script> tag without closing it,
  38254. the tokenizer is left in inScript state. Added code to set the requestingScript
  38255. flag around the request for the cached script, to let notifiyFinished() know
  38256. that it's being called under scriptHandler().
  38257. (WebCore::HTMLTokenizer::scriptExecution): Removed code that saved and restored
  38258. the inScript flag. This function is always entered now with inScript being false.
  38259. (WebCore::HTMLTokenizer::notifyFinished): Changed to use the new requestingScript
  38260. state flag instead of the inScript flag, which is always false now when entering
  38261. this function.
  38262. * html/HTMLTokenizer.h:
  38263. Added the requestingScript state bit, used to tell notifyFinished() that it
  38264. is being called under scriptHandler() (which happens when the script is already
  38265. in cache).
  38266. 2006-06-27 Justin Garcia <justin.garcia@apple.com>
  38267. Reviewed by levi
  38268. * editing/JSEditor.cpp: Added RemoveFormat.
  38269. 2006-06-27 Kevin Decker <kdecker@apple.com>
  38270. Reviewed by brady.
  38271. Fixed: <rdar://problem/4597679> TOT REGRESSION: popup blocker DOA
  38272. Need to add window.open() support to DumpRenderTree before landing an actual layout test.
  38273. * bindings/js/kjs_window.cpp:
  38274. (KJS::WindowFunc::callAsFunction): Because FrameTree::find() returns true for empty strings,
  38275. we must check for empty framenames. Otherwise, illegitimate window.open() calls with no name
  38276. will pass right through the popup blocker.
  38277. 2006-06-28 Anders Carlsson <acarlsson@apple.com>
  38278. Reviewed by Darin.
  38279. * css/CSSComputedStyleDeclaration.cpp:
  38280. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  38281. Move FIXME comment here.
  38282. * page/DOMWindow.cpp:
  38283. (WebCore::DOMWindow::getComputedStyle):
  38284. Don't do a null check on the renderer here. Everything's handled by
  38285. CSSComputedStyleDeclaration anyway.
  38286. 2006-06-27 Justin Garcia <justin.garcia@apple.com>
  38287. Reviewed by darin
  38288. * rendering/RenderContainer.cpp: Fixed #include formatting.
  38289. 2006-06-27 Justin Garcia <justin.garcia@apple.com>
  38290. Reviewed by levi
  38291. <rdar://problem/4599735> Clicking out of a table at the extremes of an editable document doesn't appear to work
  38292. * rendering/RenderBlock.cpp:
  38293. (WebCore::RenderBlock::positionForCoordinates): In the fall through case,
  38294. where we can't find a child block that contains (x, y), pass to RenderFlow
  38295. instead of the last visible child block.
  38296. * rendering/RenderContainer.cpp:
  38297. (WebCore::RenderContainer::positionForCoordinates): Don't pass to the closest
  38298. child renderer if this is a table and (x, y) is outside the table. Return
  38299. a VisiblePosition before or after the table.
  38300. Fixed the code that finds the closest child renderer.
  38301. 2006-06-27 David Hyatt <hyatt@apple.com>
  38302. Preserve entity text in view source mode. This patch doesn't highlight the
  38303. the entities yet, but it at least prevents their resolution and removal.
  38304. Reviewed by darin
  38305. * WebCore.xcodeproj/project.pbxproj:
  38306. * html/HTMLTokenizer.cpp:
  38307. (WebCore::HTMLTokenizer::parseEntity):
  38308. 2006-06-27 Anders Carlsson <acarlsson@apple.com>
  38309. Reviewed by Geoff.
  38310. http://bugs.webkit.org/show_bug.cgi?id=9623
  38311. REGRESSION: getComputedStyle should do a relayout
  38312. * page/DOMWindow.cpp:
  38313. (WebCore::DOMWindow::getComputedStyle):
  38314. Do a relayout.
  38315. 2006-06-27 Maciej Stachowiak <mjs@apple.com>
  38316. Reviewed by Adele
  38317. - fixed <rdar://problem/4550473> Reproducible hang on www.digg.com
  38318. * dom/NodeList.cpp:
  38319. (WebCore::NodeList::recursiveItem): Make NodeList caching also
  38320. work for backwards iteration - if the requested index is before
  38321. the last cached, but closer to it than to the start of the list,
  38322. then search backwards from there.
  38323. (WebCore::NodeList::itemForwardsFromCurrent): Split this out as a
  38324. helper method.
  38325. (WebCore::NodeList::itemBackwardsFromCurrent): New helper, similar
  38326. to the above.
  38327. * dom/NodeList.h:
  38328. 2006-06-27 Brady Eidson <beidson@apple.com>
  38329. Reviewed by Levi
  38330. Some SQLDatabase cleanup (style stuff) and enhancements
  38331. * icon/SQLDatabase.cpp:
  38332. (SQLDatabase::open):
  38333. (SQLDatabase::executeCommand):
  38334. (SQLDatabase::returnsAtLeastOneResult): Accessor to see if this query returns results
  38335. (SQLDatabase::lastInsertRowID): Accessor for the rowid of the last insert
  38336. * icon/SQLDatabase.h:
  38337. (WebCore::SQLStatement::prepareAndStep):
  38338. * icon/SQLStatement.cpp:
  38339. (WebCore::SQLStatement::bindInt64):
  38340. -All of the following used to require the user to manually prepare and step a statement
  38341. before asking for the result. Now it will prepare and step itself so you can use a temporary
  38342. object to get a quick result
  38343. (WebCore::SQLStatement::getColumnName):
  38344. (WebCore::SQLStatement::getColumnName16):
  38345. (WebCore::SQLStatement::getColumnText):
  38346. (WebCore::SQLStatement::getColumnText16):
  38347. (WebCore::SQLStatement::getColumnDouble):
  38348. (WebCore::SQLStatement::getColumnInt):
  38349. (WebCore::SQLStatement::getColumnInt64):
  38350. (WebCore::SQLStatement::getColumnBlobAsVector):
  38351. (WebCore::SQLStatement::getColumnBlob):
  38352. 2006-06-27 Ada Chan <adachan@apple.com>
  38353. Reviewed by sfalken.
  38354. Fixed build.
  38355. * WebCore.vcproj/WebCore/WebCore.vcproj:
  38356. 2006-06-27 Beth Dakin <bdakin@apple.com>
  38357. Reviewed by Hyatt.
  38358. Fix for <rdar://problem/4602635> Media queries must be extended to
  38359. address CSS pixel scaling factor
  38360. * css/MediaFeatureNames.h: Add -webkit-device-pixel-ratio, -webkit-
  38361. min-device-pixel-ratio, and -webkit-max-device-pixel-ratio to the
  38362. list of feature names.
  38363. * css/MediaQueryEvaluator.cpp:
  38364. (WebCore::cmpvalue): Added a version of cmpvalue that compares
  38365. floats.
  38366. (WebCore::device_pixel_ratioMediaFeatureEval):
  38367. (WebCore::min_device_pixel_ratioMediaFeatureEval):
  38368. (WebCore::max_device_pixel_ratioMediaFeatureEval):
  38369. 2006-06-27 Darin Adler <darin@apple.com>
  38370. Reviewed by Geoff.
  38371. - finish with http://bugs.webkit.org/show_bug.cgi?id=9606
  38372. REGRESSION: some callers are still using clientX/Y to get pageX/Y
  38373. * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
  38374. Change to use pageX/Y, but this really doesn't matter since framesets
  38375. can't be scrolled -- it's the frames that are scrolled. So this change
  38376. has no user-visible effect, but it's still better this way.
  38377. 2006-06-27 Darin Adler <darin@apple.com>
  38378. Reviewed by Geoff.
  38379. - fix 2/3 of http://bugs.webkit.org/show_bug.cgi?id=9606
  38380. REGRESSION: some callers are still using clientX/Y to get pageX/Y
  38381. Test: fast/events/anchor-image-scrolled-x-y.html
  38382. Test: fast/events/input-image-scrolled-x-y.html
  38383. * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): Use pageX/Y.
  38384. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
  38385. 2006-06-27 Brady Eidson <beidson@apple.com>
  38386. Reviewed by Maciej
  38387. Added functionality to WebCore::Image to get multiple representations/sizes into TIFF data
  38388. * platform/mac/ImageMac.mm:
  38389. (WebCore::Image::getTIFFRepresentation):
  38390. 2006-06-26 David Hyatt <hyatt@apple.com>
  38391. Fix for 9538, support syntax highlighted HTML source. Lots of loose
  38392. ends still (script/style/comments/doctype/entities/accurate whitespace).
  38393. Reviewed by darin
  38394. * DerivedSources.make:
  38395. * WebCore.xcodeproj/project.pbxproj:
  38396. * bridge/mac/WebCoreFrameBridge.h:
  38397. * bridge/mac/WebCoreFrameBridge.mm:
  38398. (-[WebCoreFrameBridge setInViewSourceMode:]):
  38399. (-[WebCoreFrameBridge inViewSourceMode]):
  38400. * css/cssstyleselector.cpp:
  38401. (WebCore::CSSStyleSelector::loadDefaultStyle):
  38402. (WebCore::CSSStyleSelector::matchUARules):
  38403. * css/cssstyleselector.h:
  38404. * css/view-source.css: Added.
  38405. * dom/Document.cpp:
  38406. (WebCore::Document::implicitClose):
  38407. * dom/xml_tokenizer.h:
  38408. (WebCore::Tokenizer::Tokenizer):
  38409. (WebCore::Tokenizer::~Tokenizer):
  38410. (WebCore::Tokenizer::inViewSourceMode):
  38411. (WebCore::Tokenizer::setInViewSourceMode):
  38412. * html/HTMLAttributeNames.in:
  38413. * html/HTMLFrameElement.cpp:
  38414. (WebCore::HTMLFrameElement::init):
  38415. (WebCore::HTMLFrameElement::parseMappedAttribute):
  38416. (WebCore::HTMLFrameElement::attach):
  38417. * html/HTMLFrameElement.h:
  38418. (WebCore::HTMLFrameElement::viewSourceMode):
  38419. * html/HTMLTokenizer.cpp:
  38420. (WebCore::HTMLTokenizer::HTMLTokenizer):
  38421. (WebCore::HTMLTokenizer::scriptHandler):
  38422. (WebCore::HTMLTokenizer::scriptExecution):
  38423. (WebCore::HTMLTokenizer::parseTag):
  38424. (WebCore::HTMLTokenizer::continueProcessing):
  38425. (WebCore::HTMLTokenizer::write):
  38426. (WebCore::HTMLTokenizer::timerFired):
  38427. (WebCore::HTMLTokenizer::end):
  38428. (WebCore::HTMLTokenizer::processToken):
  38429. (WebCore::HTMLTokenizer::notifyFinished):
  38430. * html/HTMLTokenizer.h:
  38431. * html/HTMLViewSourceDocument.cpp: Added.
  38432. (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
  38433. (WebCore::HTMLViewSourceDocument::createTokenizer):
  38434. (WebCore::HTMLViewSourceDocument::addViewSourceToken):
  38435. (WebCore::HTMLViewSourceDocument::addViewSourceAttribute):
  38436. (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
  38437. * html/HTMLViewSourceDocument.h: Added.
  38438. * page/Frame.cpp:
  38439. (WebCore::Frame::begin):
  38440. (WebCore::Frame::inViewSourceMode):
  38441. (WebCore::Frame::setInViewSourceMode):
  38442. * page/Frame.h:
  38443. * page/FramePrivate.h:
  38444. (WebCore::FramePrivate::FramePrivate):
  38445. * rendering/RenderPartObject.cpp:
  38446. (WebCore::RenderPartObject::updateWidget):
  38447. 2006-06-26 Anders Carlsson <acarlsson@apple.com>
  38448. Reviewed by Darin.
  38449. http://bugs.webkit.org/show_bug.cgi?id=9031
  38450. REGRESSION: Crash when closing tabs on newegg.com
  38451. * page/Frame.cpp:
  38452. (WebCore::Frame::pageDestroyed):
  38453. * page/Frame.h:
  38454. Add new method which is invoked when the frame's page has been destroyed.
  38455. Currently this function disassociates the JS Window object with the frame,
  38456. stopping any running JS timers.
  38457. * page/Page.cpp:
  38458. (WebCore::Page::~Page):
  38459. Call pageDestroyed on all frames.
  38460. 2006-06-26 Rob Buis <buis@kde.org>
  38461. Reviewed and reworked by Darin.
  38462. Code cleanup, calculate clientX/clientY in one central place.
  38463. * dom/EventTargetNode.h:
  38464. * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchMouseEvent):
  38465. Renamed parameters to pageX/Y since they aren't clientX/Y values.
  38466. Removed code to compute clientX/Y (was a bit confused in naming before),
  38467. because that's now done inside MouseEvent.
  38468. * dom/MouseEvent.h:
  38469. * dom/MouseEvent.cpp:
  38470. (WebCore::MouseEvent::MouseEvent): Removed clientX/Y parameters.
  38471. (WebCore::MouseEvent::initMouseEvent): Added comments about problems I noticed.
  38472. (WebCore::MouseEvent::which): Fixed comment that confusingly mentioned KHTML,
  38473. when it was talking about the DOM standard.
  38474. * dom/MouseRelatedEvent.h:
  38475. * dom/MouseRelatedEvent.cpp:
  38476. (WebCore::contentsX): Added helper function.
  38477. (WebCore::contentsY): Ditto.
  38478. (WebCore::MouseRelatedEvent::MouseRelatedEvent): Removed clientX/Y parameter,
  38479. and added code to compute clientX/Y based on pageX/Y.
  38480. (WebCore::MouseRelatedEvent::receivedTarget): Fixed comments.
  38481. * dom/WheelEvent.h:
  38482. * dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Removed clientX/Y
  38483. parameter.
  38484. * page/FrameView.cpp: (WebCore::FrameView::dispatchDragEvent): Removed the code
  38485. to compute coordinates, and renamed the confusingly named clientPos (which was
  38486. a page-relative position) to contentsPos.
  38487. 2006-06-25 David Carson <dacarson@gmail.com>
  38488. Reviewed and tweaked by Darin.
  38489. - http://bugs.webkit.org/show_bug.cgi?id=9185
  38490. REGRESSION: UserID field appears with an incorrect height
  38491. on americanexpresslogin page
  38492. - Height and Width attribute only applies to IMAGE and HIDDEN
  38493. types.
  38494. * dom/NamedMappedAttrMap.h:
  38495. (WebCore::NamedMappedAttrMap::getAttributeItem):
  38496. Added to static_cast method.
  38497. * html/HTMLInputElement.cpp:
  38498. (WebCore::HTMLInputElement::setInputType):
  38499. Update the style decl if input type has changed.
  38500. (WebCore::HTMLInputElement::mapToEntry):
  38501. Only Cache height and width if it is an IMAGE or HIDDEN
  38502. (WebCore::HTMLInputElement::parseMappedAttribute):
  38503. Check type before adding height and width style.
  38504. (WebCore::HTMLInputElement::attach):
  38505. Remove code for discarding width.
  38506. * html/HTMLInputElement.h:
  38507. (WebCore::HTMLInputElement::respectHeightAndWidthAttrs):
  38508. New method added to report if this input type uses height & width.
  38509. 2006-06-25 David Kilzer <ddkilzer@kilzer.net>
  38510. Reviewed by Darin.
  38511. - http://bugs.webkit.org/show_bug.cgi?id=9537
  38512. REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()
  38513. Test: fast/forms/textarea-hard-linewrap-empty.html
  38514. * rendering/RenderTextField.cpp:
  38515. (WebCore::RenderTextField::textWithHardLineBreaks): Added null check for
  38516. m_div->firstChild()->renderer().
  38517. 2006-06-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38518. Reviewed by Darin.
  38519. - fix http://bugs.webkit.org/show_bug.cgi?id=9388
  38520. REGRESSION: outlines don't get erased when removed in some cases
  38521. Test: fast/repaint/outline-shrinking.html
  38522. * rendering/RenderObject.cpp:
  38523. (WebCore::RenderObject::setStyle): Always repaint with the old style if the outline is
  38524. becoming narrower, even if we are going to relayout.
  38525. 2006-06-25 Rob Buis <buis@kde.org>
  38526. Reviewed by Darin.
  38527. Fix for http://bugs.webkit.org/show_bug.cgi?id=8707:
  38528. event.clientX and event.clientY should be relative to the viewport, not the canvas
  38529. Make sure clientX and clientY take into account the scroll offsets
  38530. of the view.
  38531. * dom/EventTargetNode.cpp:
  38532. (WebCore::EventTargetNode::dispatchMouseEvent):
  38533. * dom/MouseEvent.cpp:
  38534. (WebCore::MouseEvent::MouseEvent):
  38535. * dom/MouseEvent.h:
  38536. * dom/MouseRelatedEvent.cpp:
  38537. (WebCore::MouseRelatedEvent::MouseRelatedEvent):
  38538. (WebCore::MouseRelatedEvent::initCoordinates):
  38539. * dom/MouseRelatedEvent.h:
  38540. * dom/WheelEvent.cpp:
  38541. (WebCore::WheelEvent::WheelEvent):
  38542. * page/FrameView.cpp:
  38543. (WebCore::FrameView::dispatchDragEvent):
  38544. 2006-06-25 Timothy Hatcher <timothy@apple.com>
  38545. Reviewed by Darin.
  38546. Bug 9574: Drosera should show inline scripts within the original HTML
  38547. http://bugs.webkit.org/show_bug.cgi?id=9574
  38548. * Pass the starting line number and error message to the debugger.
  38549. * Call parsedSource even if there was a script parse error so the
  38550. debugger can show the parse error.
  38551. * Pass NSURL objects to the ObjC delegate for the script URLs.
  38552. * bridge/mac/WebCoreScriptDebugger.h:
  38553. * bridge/mac/WebCoreScriptDebugger.mm:
  38554. (toNSURL):
  38555. (WebCoreScriptDebuggerImp::sourceParsed):
  38556. 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
  38557. Build fix. Reviewed by NOBODY.
  38558. - Backed out patch for http://bugs.webkit.org/show_bug.cgi?id=8707
  38559. event.clientX and event.clientY should be relative to the viewport, not the canvas
  38560. * dom/EventTargetNode.cpp:
  38561. (WebCore::EventTargetNode::dispatchMouseEvent):
  38562. * dom/MouseEvent.cpp:
  38563. (WebCore::MouseEvent::MouseEvent):
  38564. * dom/MouseEvent.h:
  38565. * dom/MouseRelatedEvent.cpp:
  38566. (WebCore::MouseRelatedEvent::MouseRelatedEvent):
  38567. (WebCore::MouseRelatedEvent::initCoordinates):
  38568. * dom/MouseRelatedEvent.h:
  38569. * dom/WheelEvent.cpp:
  38570. (WebCore::WheelEvent::WheelEvent):
  38571. 2006-06-24 Rob Buis <buis@kde.org>
  38572. Reviewed by Darin.
  38573. Fix for http://bugs.webkit.org/show_bug.cgi?id=8707:
  38574. event.clientX and event.clientY should be relative to the viewport, not the canvas
  38575. Make sure clientX and clientY take into account the scroll offsets
  38576. of the view.
  38577. Test: fast/dom/window-xy-properties.html
  38578. * dom/EventTargetNode.cpp:
  38579. (WebCore::EventTargetNode::dispatchMouseEvent):
  38580. * dom/MouseEvent.cpp:
  38581. (WebCore::MouseEvent::MouseEvent):
  38582. * dom/MouseEvent.h:
  38583. * dom/MouseRelatedEvent.cpp:
  38584. (WebCore::MouseRelatedEvent::MouseRelatedEvent):
  38585. (WebCore::MouseRelatedEvent::initCoordinates):
  38586. * dom/MouseRelatedEvent.h:
  38587. * dom/WheelEvent.cpp:
  38588. (WebCore::WheelEvent::WheelEvent):
  38589. 2006-06-24 Rob Buis <buis@kde.org>
  38590. Reviewed by Darin.
  38591. http://bugs.webkit.org/show_bug.cgi?id=9352
  38592. Webkit doesn't respect stroke-width in SVG for smaller <circle>s
  38593. Make sure the stroke path is set before applying gradient transforms.
  38594. * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
  38595. (WebCore::KRenderingPaintServerGradientQuartz::setup):
  38596. (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
  38597. 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
  38598. Rubber-stamped by Eric.
  38599. Add a -h (do not follow symlinks) option to ln in derived sources build script (without it,
  38600. a symlink was created inside the source directory on second build).
  38601. * WebCore.xcodeproj/project.pbxproj:
  38602. 2006-06-24 James G. Speth <speth@end.com>
  38603. Reviewed by Darin. Copyrights tweaked by ddkilzer.
  38604. Bug 8331: DOMNodeLists returned to Objective-C are not properly wrapped
  38605. http://bugs.webkit.org/show_bug.cgi?id=8331
  38606. DOMNodes were the only objects handled by createObjcInstanceForValue.
  38607. now it handles all of these: DOMNode, DOMNodeList, DOMNamedNodeMap, DOMStyleSheetList,
  38608. DOMStyleSheet, DOMMediaList, DOMCSSRuleList, DOMCSSRule, DOMCSSStyleDeclaration, and DOMCSSValue
  38609. * WebCore.xcodeproj/project.pbxproj: added file DOMCSSInternal.h to project
  38610. * bindings/js/kjs_css.cpp:
  38611. (KJS::): changed ClassInfo for DOMCSSStyleSheet to have DOMStyleSheet as its parent class
  38612. * bindings/objc/DOM.mm:
  38613. (-[DOMDocumentType :]): moved DOMNamedNodeMap (WebCoreInternal) interface to DOMInternal.h
  38614. * bindings/objc/DOMCSS.mm: moved WebCoreInternal interfaces to DOMCSSInternal.h
  38615. * bindings/objc/DOMCSSInternal.h: Added file, contains WebCoreInternal interface for CSS classes
  38616. * bindings/objc/DOMInternal.h: added DOMNamedNodeMap (WebCoreInternal) interface
  38617. * bindings/objc/DOMUtility.mm:
  38618. (KJS::ScriptInterpreter::createObjcInstanceForValue): support for more classes
  38619. 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
  38620. Reviewed by Timothy.
  38621. * Info.plist: Fixed copyright to include 2003-2006.
  38622. * manual-tests/NPN_Invoke/Info.plist: Added copyright statement.
  38623. 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38624. Reviewed by Darin, landed by ap.
  38625. - fix http://bugs.webkit.org/show_bug.cgi?id=9547
  38626. Resize corner does not track the mouse accurately
  38627. Test: fast/css/resize-corner-tracking.html
  38628. * page/FrameView.cpp:
  38629. (WebCore::FrameView::handleMousePressEvent): Store the offset from the layer's
  38630. resizing corner where dragging has started.
  38631. (WebCore::FrameView::handleMouseMoveEvent): Pass the stored offset to the
  38632. layer's resize method.
  38633. * rendering/RenderLayer.cpp:
  38634. (WebCore::RenderLayer::resize): Added an offset parameter, which is added to
  38635. the mouse location.
  38636. For objects that may have intrinsic margins applied to them,
  38637. added code to lift the margins into the object's style in order to keep them
  38638. constant.
  38639. Changed to take the content size as the base size if the box-sizing property
  38640. is content-box.
  38641. (WebCore::RenderLayer::offsetFromResizeCorner): Added. Returns the offset of the
  38642. given point from the corner that tracks the mouse when resizing.
  38643. * rendering/RenderLayer.h:
  38644. 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38645. Reviewed by Darin, landed by ap.
  38646. - fix http://bugs.webkit.org/show_bug.cgi?id=9316
  38647. REGRESSION: text field width shrinks on first keystroke
  38648. Test: fast/forms/floating-textfield-relayout.html
  38649. * page/FrameView.cpp:
  38650. (WebCore::FrameView::layoutRoot): Added. During subtree relayout, returns
  38651. the subtree root. Otherwise returns 0.
  38652. (WebCore::FrameView::layoutPending): Made const.
  38653. * page/FrameView.h:
  38654. * rendering/RenderBox.cpp:
  38655. (WebCore::RenderBox::calcWidth): Added early return if this is the root
  38656. of a subtree being laid out.
  38657. 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38658. Reviewed by Hyatt.
  38659. - fix http://bugs.webkit.org/show_bug.cgi?id=9531
  38660. Pages that need only a horizontal scroll bar get a vertical one as well
  38661. The change affects many existing tests.
  38662. * page/FrameView.cpp:
  38663. (WebCore::FrameView::layout): Mark the body renderer as needing layout if
  38664. the view's height has changed and the body stretches to the view's height.
  38665. * rendering/RenderBox.cpp:
  38666. (WebCore::RenderBox::calcHeight):
  38667. * rendering/RenderBox.h:
  38668. (WebCore::RenderBox::stretchesToViewHeight): Added. Moved the logic for when
  38669. the HTML block needs to stretch to the view's height from calcHeight() here.
  38670. 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
  38671. Reviewed by Darin.
  38672. - fix http://bugs.webkit.org/show_bug.cgi?id=7461
  38673. Always encode the path part of an URI as UTF-8
  38674. Test: http/tests/uri/utf8-path.html
  38675. * platform/KURL.cpp:
  38676. (encodeRelativeString): Always set pathEncoding to UTF-8.
  38677. 2006-06-24 Graham Dennis <Graham.Dennis@gmail.com>
  38678. Reviewed by Darin, landed by ap.
  38679. - fix http://bugs.webkit.org/show_bug.cgi?id=9467
  38680. TreeWalker/NodeIterator do not restrict the traversal
  38681. Test: traversal/stay-within-root.html
  38682. * dom/Node.cpp:
  38683. (WebCore::Node::traversePreviousNode):
  38684. * dom/Node.h:
  38685. Add a stayWithin argument to traversePreviousNode just like the other
  38686. traversal functions
  38687. * dom/NodeIterator.cpp:
  38688. (WebCore::NodeIterator::findNextNode):
  38689. (WebCore::NodeIterator::findPreviousNode):
  38690. Ensure that when moving forward or backward that the root node is not
  38691. exited
  38692. * dom/TreeWalker.cpp:
  38693. (WebCore::TreeWalker::previousNode):
  38694. (WebCore::TreeWalker::nextNode):
  38695. Ditto
  38696. (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
  38697. 2006-06-24 Jonas Witt <jonas.witt@gmail.com>
  38698. Reviewed by ggaren, landed by ap.
  38699. - http://bugs.webkit.org/show_bug.cgi?id=9181
  38700. Complete DOMUIEvent Obj-C API to reflect UIEvent
  38701. * WebCore.exp: add new classes DOMKeyboardEvent and DOMWheelEvent to the exported
  38702. symbols list of WebCore.framework
  38703. Updated DOMUIEvent to include all DOM Level 2 properties
  38704. Added DOMKeyboardEvent (DOM Level 3)
  38705. Added two non-W3C accessors (keyCode, charCode) of DOMKeyboardEvent to a separate file (DOMEventsNonstandard)
  38706. Added DOMWheelEvent (non-W3C) in separate file (DOMEventsNonstandard)
  38707. Added this file (DOMEventsNonstandard) to the build process
  38708. * WebCore.xcodeproj/project.pbxproj:
  38709. * bindings/objc/DOM.h:
  38710. * bindings/objc/DOMEvents.h:
  38711. * bindings/objc/DOMEvents.mm:
  38712. (+[DOMEvent _eventWith:]):
  38713. (-[DOMUIEvent _UIEvent]):
  38714. (-[DOMUIEvent view]):
  38715. (-[DOMUIEvent detail]):
  38716. (-[DOMUIEvent initUIEvent:::::]):
  38717. (-[DOMKeyboardEvent _keyboardEvent]):
  38718. (-[DOMKeyboardEvent keyIdentifier]):
  38719. (-[DOMKeyboardEvent keyLocation]):
  38720. (-[DOMKeyboardEvent ctrlKey]):
  38721. (-[DOMKeyboardEvent shiftKey]):
  38722. (-[DOMKeyboardEvent altKey]):
  38723. (-[DOMKeyboardEvent metaKey]):
  38724. (-[DOMKeyboardEvent getModifierState:]):
  38725. (-[DOMMouseEvent button]):
  38726. * bindings/objc/DOMEventsNonstandard.mm: Added.
  38727. (-[DOMWheelEvent _wheelEvent]):
  38728. (-[DOMWheelEvent screenX]):
  38729. (-[DOMWheelEvent screenY]):
  38730. (-[DOMWheelEvent clientX]):
  38731. (-[DOMWheelEvent clientY]):
  38732. (-[DOMWheelEvent ctrlKey]):
  38733. (-[DOMWheelEvent shiftKey]):
  38734. (-[DOMWheelEvent altKey]):
  38735. (-[DOMWheelEvent metaKey]):
  38736. (-[DOMWheelEvent isHorizontal]):
  38737. (-[DOMWheelEvent wheelDelta]):
  38738. (-[DOMKeyboardEvent _keyboardEvent]):
  38739. (-[DOMKeyboardEvent keyCode]):
  38740. (-[DOMKeyboardEvent charCode]):
  38741. * bindings/objc/DOMPrivate.h:
  38742. 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38743. Reviewed and landed by ap.
  38744. - http://bugs.webkit.org/show_bug.cgi?id=9563
  38745. Remove unused layoutSuppressed field and inLayout() method
  38746. No test added because there is no change in functionality.
  38747. * page/FrameView.cpp:
  38748. (WebCore::FrameViewPrivate::reset):
  38749. (WebCore::FrameView::layout):
  38750. * page/FrameView.h:
  38751. * rendering/RenderView.cpp:
  38752. (WebCore::RenderView::layout):
  38753. 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
  38754. Reviewed by Darin.
  38755. - http://bugs.webkit.org/show_bug.cgi?id=8177
  38756. Javascript search incredibly slow
  38757. No change in functionality, thus no test.
  38758. Use info sharing for named collections, too. Moved shared HTMLCollection infos from HTMLDocument
  38759. to Document. Renamed collection types to use the preferred WebKit style. Replaced direct
  38760. HTMLCollection creation with using accessors from Document in a few places.
  38761. * bindings/objc/DOMHTML.mm:
  38762. (-[DOMHTMLElement children]):
  38763. (-[DOMHTMLDocument images]):
  38764. (-[DOMHTMLDocument applets]):
  38765. (-[DOMHTMLDocument links]):
  38766. (-[DOMHTMLDocument forms]):
  38767. (-[DOMHTMLDocument anchors]):
  38768. (-[DOMHTMLMapElement areas]):
  38769. (-[DOMHTMLTableSectionElement rows]):
  38770. (-[DOMHTMLTableElement rows]):
  38771. (-[DOMHTMLTableElement tBodies]):
  38772. (-[DOMHTMLTableRowElement cells]):
  38773. * dom/Document.cpp:
  38774. (WebCore::Document::images):
  38775. (WebCore::Document::applets):
  38776. (WebCore::Document::embeds):
  38777. (WebCore::Document::objects):
  38778. (WebCore::Document::scripts):
  38779. (WebCore::Document::links):
  38780. (WebCore::Document::forms):
  38781. (WebCore::Document::anchors):
  38782. (WebCore::Document::all):
  38783. (WebCore::Document::windowNamedItems):
  38784. (WebCore::Document::documentNamedItems):
  38785. (WebCore::Document::nameCollectionInfo):
  38786. * dom/Document.h:
  38787. (WebCore::Document::collectionInfo):
  38788. * html/HTMLCollection.cpp:
  38789. (WebCore::HTMLCollection::HTMLCollection):
  38790. (WebCore::HTMLCollection::traverseNextItem):
  38791. (WebCore::HTMLCollection::checkForNameMatch):
  38792. (WebCore::HTMLCollection::updateNameCache):
  38793. * html/HTMLCollection.h:
  38794. (WebCore::HTMLCollection::):
  38795. * html/HTMLDocument.h:
  38796. * html/HTMLElement.cpp:
  38797. (WebCore::HTMLElement::children):
  38798. * html/HTMLMapElement.cpp:
  38799. (WebCore::HTMLMapElement::areas):
  38800. * html/HTMLNameCollection.h:
  38801. * html/HTMLNameCollection.cpp:
  38802. (WebCore::HTMLNameCollection::HTMLNameCollection):
  38803. (WebCore::HTMLNameCollection::traverseNextItem):
  38804. * html/HTMLFormCollection.cpp:
  38805. * html/HTMLOptionsCollection.cpp:
  38806. (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
  38807. * html/HTMLSelectElement.h:
  38808. (WebCore::HTMLSelectElement::collectionInfo):
  38809. * html/HTMLTableElement.cpp:
  38810. (WebCore::HTMLTableElement::rows):
  38811. (WebCore::HTMLTableElement::tBodies):
  38812. * html/HTMLTableRowElement.cpp:
  38813. (WebCore::HTMLTableRowElement::cells):
  38814. * html/HTMLTableSectionElement.cpp:
  38815. (WebCore::HTMLTableSectionElement::rows):
  38816. * kwq/WebCoreAXObject.mm:
  38817. (-[WebCoreAXObject accessibilityAttributeValue:]):
  38818. * page/Frame.cpp:
  38819. (WebCore::Frame::gotoAnchor):
  38820. 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
  38821. Reviewed by Darin.
  38822. - http://bugs.webkit.org/show_bug.cgi?id=9418
  38823. WebKit will not build when Space exists in path
  38824. * WebCore.xcodeproj/project.pbxproj: Enclose search paths in quotes; create symlinks to
  38825. avoid passing paths with spaces to make.
  38826. 2006-06-23 Tim Omernick <timo@apple.com>
  38827. Reviewed by Tim Hatcher.
  38828. <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
  38829. * page/FrameView.cpp:
  38830. (WebCore::FrameView::updateDragAndDrop):
  38831. Use the passed mouse event, instead of the "current" event. There is no such thing as
  38832. a "drag event". Asking for the current event during a drag returns a weird system-
  38833. internal event with an invalid mouse location.
  38834. 2006-06-23 Timothy Hatcher <timothy@apple.com>
  38835. Reviewed by Eric.
  38836. Manual test added: cursor.html
  38837. Bug 9560: should support new CSS3 cursor types to get more resizing directions
  38838. http://bugs.webkit.org/show_bug.cgi?id=9560
  38839. Adds support for ew-resize, ns-resize, nesw-resize, nwse-resize,
  38840. col-resize and row-resize CSS3 cursor values.
  38841. Also converted some of the cursor images to grayscale tiffs,
  38842. some were RGB but had no color data.
  38843. * Resources/eastResizeCursor.tiff:
  38844. * Resources/eastWestResizeCursor.tiff: Added.
  38845. * Resources/helpCursor.tiff:
  38846. * Resources/moveCursor.tiff:
  38847. * Resources/northEastResizeCursor.tiff:
  38848. * Resources/northEastSouthWestResizeCursor.tiff: Added.
  38849. * Resources/northResizeCursor.tiff:
  38850. * Resources/northSouthResizeCursor.tiff: Added.
  38851. * Resources/northWestResizeCursor.tiff:
  38852. * Resources/northWestSouthEastResizeCursor.tiff: Added.
  38853. * Resources/southEastResizeCursor.tiff:
  38854. * Resources/southResizeCursor.tiff:
  38855. * Resources/southWestResizeCursor.tiff:
  38856. * Resources/textAreaResizeCorner.tiff:
  38857. * Resources/waitCursor.tiff:
  38858. * Resources/westResizeCursor.tiff:
  38859. * WebCore.xcodeproj/project.pbxproj:
  38860. * css/CSSComputedStyleDeclaration.cpp:
  38861. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  38862. * css/CSSValueKeywords.in:
  38863. * css/cssparser.cpp:
  38864. (WebCore::CSSParser::parseValue):
  38865. * manual-tests/cursor.html: Added.
  38866. * page/FrameView.cpp:
  38867. (WebCore::selectCursor):
  38868. * platform/Cursor.h:
  38869. * platform/mac/CursorMac.mm:
  38870. (WebCore::northSouthResizeCursor):
  38871. (WebCore::eastWestResizeCursor):
  38872. (WebCore::northEastSouthWestResizeCursor):
  38873. (WebCore::northWestSouthEastResizeCursor):
  38874. (WebCore::columnResizeCursor):
  38875. (WebCore::rowResizeCursor):
  38876. * platform/win/CursorWin.cpp:
  38877. (WebCore::northSouthResizeCursor):
  38878. (WebCore::eastWestResizeCursor):
  38879. (WebCore::northEastSouthWestResizeCursor):
  38880. (WebCore::northWestSouthEastResizeCursor):
  38881. (WebCore::columnResizeCursor):
  38882. (WebCore::rowResizeCursor):
  38883. * rendering/render_style.h: cursor needs 5 bits now
  38884. 2006-06-23 John Sullivan <sullivan@apple.com>
  38885. Reviewed by Tim Omernick
  38886. - fixed <rdar://problem/4597685> stale rects for document markers can be left behind in certain cases
  38887. * dom/Document.h:
  38888. * dom/Document.cpp:
  38889. (WebCore::Document::setRenderedRectForMarker):
  38890. changed parameter from IntRect to const IntRect& at Darin's request
  38891. (WebCore::Document::invalidateRenderedRectsForMarkersInRect):
  38892. new method, tests whether the rendered rect for each marker intersects the
  38893. passed rect. If so, sets the rendered rect back to the placeholder rect that
  38894. means that the rect for this marker isn't known.
  38895. * page/Frame.cpp:
  38896. (WebCore::Frame::paint):
  38897. call invalidateRenderedRectsForMarkersInRect on the rect we're about to paint.
  38898. This ensures that old stale rects won't be preserved if the associated marker
  38899. has moved such that it is out of the painted area.
  38900. 2006-06-23 Justin Garcia <justin.garcia@apple.com>
  38901. Reviewed by levi
  38902. <rdar://problem/4527702>
  38903. REGRESSION: Quote bars go away on first paragraph when I delete reply text
  38904. * editing/DeleteSelectionCommand.cpp:
  38905. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  38906. Add a rule for when to merge into empty blocks.
  38907. === WebCore-521.13 ===
  38908. 2006-06-23 Patrick Beard <beard@apple.com>
  38909. Reviewed by Tim Hatcher.
  38910. <rdar://problem/4223619> Safari crashed in -[NSFont __isSystemFont]
  38911. CFRetain and CFRelease NSFont's when FontPlatformData has a reference.
  38912. We only do this when GC is enabled for performance reasons.
  38913. No tests possible.
  38914. * platform/mac/FontPlatformData.h:
  38915. (WebCore::FontPlatformData::FontPlatformData):
  38916. (WebCore::FontPlatformData::~FontPlatformData):
  38917. 2006-06-23 Justin Garcia <justin.garcia@apple.com>
  38918. Reviewed by levi
  38919. <http://bugs.webkit.org/show_bug.cgi?id=8074>
  38920. Caret before/after block tables is too small
  38921. <rdar://problem/4598331>
  38922. right arrow out of a table shows cursor in a weird place
  38923. * rendering/RenderBox.cpp:
  38924. (WebCore::RenderBox::caretRect): Don't propagate to children,
  38925. VisiblePositions inside containers don't refer to children.
  38926. Don't use the font height for tables.
  38927. 2006-06-23 Brady Eidson <beidson@apple.com>
  38928. Reviewed by Kevin.
  38929. Added 64-bit String::number() functions
  38930. * platform/PlatformString.h:
  38931. * platform/String.cpp:
  38932. (WebCore::String::number):
  38933. 2006-06-22 Mitz Pettel <opendarwin.org@mitzpettel.com>
  38934. Reviewed by Hyatt.
  38935. - fix http://bugs.webkit.org/show_bug.cgi?id=9497
  38936. REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
  38937. Test: fast/repaint/clipped-relative.html
  38938. * page/FrameView.cpp:
  38939. (WebCore::FrameView::layout):
  38940. * rendering/RenderBlock.cpp:
  38941. (WebCore::RenderBlock::removePositionedObjects): Removed call to computeRepaintRects().
  38942. Previously, it was needed to update the cached rects before RenderBox::setStyle()
  38943. called updateLayerPositions().
  38944. * rendering/RenderBox.cpp:
  38945. (WebCore::RenderBox::setStyle): Changed to call updateLayerPositions() for a newly-
  38946. created layer only if it does not need layout. Otherwise, updateLayerPositions() will
  38947. be called after layout. This saves a repaint in some cases.
  38948. * rendering/RenderLayer.cpp:
  38949. (WebCore::RenderLayer::checkForRepaintOnResize): Renamed computeRepaintRects() to
  38950. this and deleted the code that cached the absolute position and repaint rects.
  38951. (WebCore::RenderLayer::updateLayerPositions): Added code to cache the absolute
  38952. position and repaint rects right after updating the layer's position.
  38953. * rendering/RenderLayer.h:
  38954. 2006-06-22 Beth Dakin <bdakin@apple.com>
  38955. Reviewed by Maciej.
  38956. Fix for <rdar://problem/4599015> REGRESSION: Hand on clock widget
  38957. don't appear at all
  38958. This regression was caused by <rdar://problem/4567520> HIDPI: pixel
  38959. cracks in weather widget at 1.83 scaling
  38960. * html/CanvasRenderingContext2D.cpp:
  38961. (WebCore::CanvasRenderingContext2D::drawImage): Do the contains
  38962. check before rounding to integral device pixels.
  38963. 2006-06-22 Anders Carlsson <acarlsson@apple.com>
  38964. Reviewed by John.
  38965. <rdar://problem/4529334> REGRESSION: Can't configure RadarInMotion widget for U.S. locations on Leopard (Javascript errors)
  38966. * dom/Document.cpp:
  38967. (WebCore::Document::completeURL):
  38968. Check if both the URL and base URL are empty instead of using URL() which returns "about:blank" if the URL is empty.
  38969. 2006-06-22 Anders Carlsson <acarlsson@apple.com>
  38970. Reviewed by Maciej.
  38971. <rdar://problem/4499675> Package Tracker widget always crashes in WebCore::Frame::jScriptEnabled() const + 0
  38972. * html/HTMLParser.cpp:
  38973. (WebCore::HTMLParser::noscriptCreateErrorCheck):
  38974. (WebCore::HTMLParser::canvasCreateErrorCheck):
  38975. (WebCore::HTMLParser::isInline):
  38976. Add null-checks for document->frame() since it can be 0 for documents created using createHTMLDocument.
  38977. 2006-06-22 Anders Carlsson <acarlsson@apple.com>
  38978. Reviewed by Maciej.
  38979. <rdar://problem/4524840> Entities contained in DOCTYPE referenced DTD in XSLT source document are unknown
  38980. * dom/xml_tokenizer.cpp:
  38981. (WebCore::shouldAllowExternalLoad):
  38982. Use correct path for the catalog.
  38983. (WebCore::errorFunc):
  38984. Add error function to keep parser errors from going to the console.
  38985. (WebCore::XMLTokenizer::write):
  38986. Remove if (0 &&)
  38987. (WebCore::XMLTokenizer::end):
  38988. Pass DocLoader to xmlDocPtrForString.
  38989. (WebCore::xmlDocPtrForString):
  38990. * dom/xml_tokenizer.h:
  38991. Add DocLoader argument to xmlDocPtrForString so external DTDs and entities can be loaded.
  38992. * xml/XSLTProcessor.cpp:
  38993. (WebCore::xmlDocPtrFromNode):
  38994. Pass DocLoader to xmlDocPtrForString
  38995. 2006-06-21 David Hyatt <hyatt@apple.com>
  38996. Back out -webkit-overlay and just rename it back to overlay.
  38997. Reviewed by darin
  38998. * css/CSSComputedStyleDeclaration.cpp:
  38999. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  39000. * css/CSSValueKeywords.in:
  39001. * css/cssparser.cpp:
  39002. (WebCore::CSSParser::parseValue):
  39003. * css/cssstyleselector.cpp:
  39004. (WebCore::CSSStyleSelector::applyProperty):
  39005. 2006-06-21 Justin Garcia <justin.garcia@apple.com>
  39006. Reviewed by levi
  39007. * editing/DeleteSelectionCommand.cpp:
  39008. (WebCore::DeleteSelectionCommand::initializePositionData): Fix a bug in the code
  39009. to stop merges across table cells.
  39010. (WebCore::DeleteSelectionCommand::mergeParagraphs): Move the code to stop merges
  39011. across table cells to initializePositionData so that its changes to
  39012. m_mergeBlocksAfterDelete can take effect on the endingPosition.
  39013. * editing/InsertParagraphSeparatorCommand.cpp:
  39014. (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreak
  39015. instead of splitting/cloning a table cell.
  39016. 2006-06-21 Beth Dakin <bdakin@apple.com>
  39017. Reviewed by John.
  39018. Fix for <rdar://problem/3914965> Misspelled text underline doesn't
  39019. look right at non-standard scale factors
  39020. * platform/mac/GraphicsContextMac.mm:
  39021. (WebCore::GraphicsContext::drawLineForMisspelling): We need to call
  39022. into our previously-created SPI for pattern-drawing so that the
  39023. phase is right at all scale factors.
  39024. 2006-06-21 David Hyatt <hyatt@apple.com>
  39025. Fix for 7362, implement the CSS3 overflow-x and overflow-y properties.
  39026. Reviewed by adele
  39027. * WebCore.xcodeproj/project.pbxproj:
  39028. * css/CSSComputedStyleDeclaration.cpp:
  39029. (WebCore::):
  39030. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  39031. * css/CSSPropertyNames.in:
  39032. * css/cssparser.cpp:
  39033. (WebCore::CSSParser::parseValue):
  39034. * css/cssstyleselector.cpp:
  39035. (WebCore::CSSStyleSelector::adjustRenderStyle):
  39036. (WebCore::CSSStyleSelector::applyProperty):
  39037. * page/FrameView.cpp:
  39038. (WebCore::FrameView::applyOverflowToViewport):
  39039. (WebCore::FrameView::layout):
  39040. * rendering/RenderBlock.cpp:
  39041. (WebCore::RenderBlock::layoutBlock):
  39042. (WebCore::RenderBlock::determineHorizontalPosition):
  39043. (WebCore::RenderBlock::layoutBlockChildren):
  39044. (WebCore::RenderBlock::rightOffset):
  39045. (WebCore::RenderBlock::rightmostPosition):
  39046. (WebCore::RenderBlock::calcMinMaxWidth):
  39047. * rendering/RenderBox.cpp:
  39048. (WebCore::RenderBox::setStyle):
  39049. (WebCore::RenderBox::contentWidth):
  39050. (WebCore::RenderBox::contentHeight):
  39051. (WebCore::RenderBox::sizesToIntrinsicWidth):
  39052. (WebCore::RenderBox::calcHeight):
  39053. (WebCore::RenderBox::calcPercentageHeight):
  39054. * rendering/RenderFlexibleBox.cpp:
  39055. (WebCore::RenderFlexibleBox::layoutBlock):
  39056. * rendering/RenderLayer.cpp:
  39057. (WebCore::RenderLayer::scrollToOffset):
  39058. (WebCore::RenderLayer::shouldAutoscroll):
  39059. (WebCore::RenderLayer::updateScrollInfoAfterLayout):
  39060. (WebCore::RenderLayer::styleChanged):
  39061. * rendering/RenderLayer.h:
  39062. * rendering/RenderObject.cpp:
  39063. (WebCore::RenderObject::clientWidth):
  39064. (WebCore::RenderObject::clientHeight):
  39065. * rendering/RenderObject.h:
  39066. (WebCore::RenderObject::hasAutoVerticalScrollbar):
  39067. (WebCore::RenderObject::hasAutoHorizontalScrollbar):
  39068. (WebCore::RenderObject::scrollsOverflow):
  39069. (WebCore::RenderObject::scrollsOverflowX):
  39070. (WebCore::RenderObject::scrollsOverflowY):
  39071. (WebCore::RenderObject::includeVerticalScrollbarSize):
  39072. (WebCore::RenderObject::includeHorizontalScrollbarSize):
  39073. * rendering/RenderTextArea.cpp:
  39074. (WebCore::RenderTextArea::setStyle):
  39075. * rendering/RenderTextField.cpp:
  39076. (WebCore::RenderTextField::createDivStyle):
  39077. (WebCore::RenderTextField::calcHeight):
  39078. (WebCore::RenderTextField::calcMinMaxWidth):
  39079. * rendering/bidi.cpp:
  39080. (WebCore::RenderBlock::layoutInlineChildren):
  39081. * rendering/render_style.cpp:
  39082. (WebCore::RenderStyle::diff):
  39083. * rendering/render_style.h:
  39084. (WebCore::):
  39085. (WebCore::RenderStyle::NonInheritedFlags::operator==):
  39086. (WebCore::RenderStyle::setBitDefaults):
  39087. (WebCore::RenderStyle::overflowX):
  39088. (WebCore::RenderStyle::overflowY):
  39089. (WebCore::RenderStyle::setOverflowX):
  39090. (WebCore::RenderStyle::setOverflowY):
  39091. (WebCore::RenderStyle::initialOverflowX):
  39092. (WebCore::RenderStyle::initialOverflowY):
  39093. 2006-06-21 Justin Garcia <justin.garcia@apple.com>
  39094. Reviewed by levi
  39095. <rdar://problem/4590366>
  39096. REGRESSION: Selection incorrectly paints gaps on TOT
  39097. * dom/Document.cpp:
  39098. (WebCore::Document::updateSelection): Use the leftmost candidate for the end of the
  39099. selection and the rightmost candidate for the start of the selection.
  39100. * dom/Position.cpp:
  39101. (WebCore::Position::upstream): Cross line wraps so that we can use upstream/downstream
  39102. to get to candidates before/after linewraps.
  39103. (WebCore::Position::downstream):
  39104. (WebCore::Position::inRenderedContent):
  39105. * editing/DeleteSelectionCommand.cpp:
  39106. (WebCore::DeleteSelectionCommand::handleGeneralDelete):
  39107. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  39108. * editing/InsertParagraphSeparatorCommand.cpp:
  39109. (WebCore::InsertParagraphSeparatorCommand::doApply):
  39110. Ensure that the leftmost candidate is used. We should sample the style from that one.
  39111. When the block to insert is after a br, a br should be inserted even in strict mode.
  39112. * editing/InsertTextCommand.cpp:
  39113. (WebCore::InsertTextCommand::input):
  39114. Insert at the leftmost candidate, get rid of a use of trailingWhitespacePosition.
  39115. Don't apply a style if its unnecessary.
  39116. * editing/ReplaceSelectionCommand.cpp:
  39117. (WebCore::ReplaceSelectionCommand::doApply): "pos" can be invalidated, don't use it.
  39118. * editing/VisiblePosition.cpp:
  39119. Renamed initDeepPosition and made it return the canonical position.
  39120. (WebCore::VisiblePosition::init):
  39121. (WebCore::VisiblePosition::canonicalPosition):
  39122. * editing/VisiblePosition.h:
  39123. (WebCore::VisiblePosition::characterBefore): Added.
  39124. * editing/visible_units.cpp:
  39125. (WebCore::startOfParagraph):
  39126. * rendering/InlineTextBox.cpp:
  39127. (WebCore::InlineTextBox::selectionState): When a selection ends at a line wrap, it shouldn't extend
  39128. onto the next line.
  39129. 2006-06-21 David Hyatt <hyatt@apple.com>
  39130. Reviewed and committed by Beth.
  39131. Fix for <rdar://problem/4595337> Resizing a containing block
  39132. strictly vertically does not cause contained height:100% element to
  39133. also be resized.
  39134. * rendering/RenderBlock.cpp:
  39135. (WebCore::RenderBlock::layoutBlockChildren): Also layout if the
  39136. child's min or max height is a percent.
  39137. 2006-06-21 Anders Carlsson <acarlsson@apple.com>
  39138. Reviewed by Geoff.
  39139. http://bugs.webkit.org/show_bug.cgi?id=6058
  39140. XMLTokenizer runs all <script> tags at once instead of as they're encountered
  39141. * dom/xml_tokenizer.cpp:
  39142. (WebCore::XMLTokenizer::XMLTokenizer):
  39143. Initialize new members.
  39144. (WebCore::XMLTokenizer::endElementNs):
  39145. If we've encountered a script tag, execute the script here. If the script
  39146. tag refers to an external resource, pause the parser while loading it.
  39147. (WebCore::XMLTokenizer::end):
  39148. Move code from finish() to here
  39149. (WebCore::XMLTokenizer::finish):
  39150. Only call end() if the parser isn't paused.
  39151. (WebCore::XMLTokenizer::notifyFinished):
  39152. Evaluate the script here and resume the parser.
  39153. (WebCore::XMLTokenizer::resumeParsing):
  39154. If finish() was called, call end() after writing all data.
  39155. 2006-06-21 Steve Falkenburg <sfalken@apple.com>
  39156. Fix build break
  39157. * platform/win/TemporaryLinkStubs.cpp:
  39158. (FrameWin::shouldInterruptJavaScript):
  39159. 2006-06-21 Anders Carlsson <acarlsson@apple.com>
  39160. Move FrameWin::shouldInterruptJavaScript to TemporaryLinkStubs.cpp
  39161. * bridge/win/FrameWin.cpp:
  39162. * platform/win/TemporaryLinkStubs.cpp:
  39163. (FrameWin::shouldInterruptJavaScript):
  39164. 2006-06-21 Ben Goodger <bengoodger@gmail.com>
  39165. Reviewed by Maciej.
  39166. Fix for: http://bugs.webkit.org/show_bug.cgi?id=9523
  39167. More Win32 build bustage.
  39168. * WebCore.vcproj/WebCore/WebCore.vcproj:
  39169. * bridge/win/FrameWin.cpp:
  39170. (WebCore::FrameWin::shouldInterruptJavaScript):
  39171. * bridge/win/FrameWin.h:
  39172. 2006-06-20 Adele Peterson <adele@apple.com>
  39173. Reviewed by Anders.
  39174. Fix for: http://bugs.webkit.org/show_bug.cgi?id=8948
  39175. Switch to use new text field implementation for <textarea>
  39176. * css/html4.css:
  39177. * html/HTMLTextAreaElement.cpp:
  39178. (WebCore::HTMLTextAreaElement::selectionStart):
  39179. (WebCore::HTMLTextAreaElement::selectionEnd):
  39180. (WebCore::HTMLTextAreaElement::setSelectionStart):
  39181. (WebCore::HTMLTextAreaElement::setSelectionEnd):
  39182. (WebCore::HTMLTextAreaElement::select):
  39183. (WebCore::HTMLTextAreaElement::setSelectionRange):
  39184. (WebCore::HTMLTextAreaElement::createRenderer):
  39185. (WebCore::HTMLTextAreaElement::appendFormData):
  39186. (WebCore::HTMLTextAreaElement::isKeyboardFocusable):
  39187. (WebCore::HTMLTextAreaElement::isMouseFocusable):
  39188. (WebCore::HTMLTextAreaElement::focus):
  39189. (WebCore::HTMLTextAreaElement::defaultEventHandler):
  39190. (WebCore::HTMLTextAreaElement::updateValue):
  39191. (WebCore::HTMLTextAreaElement::setValue):
  39192. 2006-06-20 Brady Eidson <beidson@apple.com>
  39193. Reviewed by Maciej
  39194. Fixed capitalization mistake that I made, someone else fixed, then I accidentally made it go back to the old way
  39195. * icon/SQLStatement.cpp:
  39196. 2006-06-20 Brady Eidson <beidson@apple.com>
  39197. Reviewed by Maciej.
  39198. More changes/additions setting the stage for the major IconDatabase hookup.
  39199. * WebCore.xcodeproj/project.pbxproj: Added SQLTransaction.cpp
  39200. * bridge/mac/WebCoreIconDatabaseBridge.h: Added call-throughs and translations to pass WebKit DB to WebCore DB
  39201. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  39202. (+[WebCoreIconDatabaseBridge sharedBridgeInstance]):
  39203. (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
  39204. (-[WebCoreIconDatabaseBridge iconForURL:withSize:]):
  39205. (-[WebCoreIconDatabaseBridge iconURLForURL:]):
  39206. (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
  39207. (-[WebCoreIconDatabaseBridge retainIconForURL:]):
  39208. (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
  39209. (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
  39210. (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
  39211. (-[WebCoreIconDatabaseBridge _setIconURL:forURL:]):
  39212. (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
  39213. * bridge/mac/WebCorePageBridge.mm: Added WebCore's IconDatabase logging channel to the user-prefs check
  39214. (initializeLoggingChannelsIfNecessary):
  39215. * icon/IconDatabase.cpp: Added stubs and basic SQL usage to create the sqlite DB and respond to WebKit calls
  39216. (WebCore::IconDatabase::IconDatabase):
  39217. (WebCore::IconDatabase::open):
  39218. (WebCore::IconDatabase::close):
  39219. (WebCore::IconDatabase::isValidDatabase):
  39220. (WebCore::IconDatabase::recreateDatabase):
  39221. (WebCore::IconDatabase::setPrivateBrowsingEnabled):
  39222. (WebCore::IconDatabase::iconForURL):
  39223. (WebCore::IconDatabase::iconURLForURL):
  39224. (WebCore::IconDatabase::defaultIcon):
  39225. (WebCore::IconDatabase::retainIconForURL):
  39226. (WebCore::IconDatabase::releaseIconForURL):
  39227. (WebCore::IconDatabase::setIconForIconURL):
  39228. (WebCore::IconDatabase::setHaveNoIconForIconURL):
  39229. (WebCore::IconDatabase::setIconURLForPageURL):
  39230. (WebCore::IconDatabase::hasIconForIconURL):
  39231. * icon/IconDatabase.h: WebIcon will be an internal class used in IconDatabase but is not complete yet
  39232. (WebCore::WebIcon::getExpiration):
  39233. (WebCore::WebIcon::getTouch):
  39234. * icon/SQLDatabase.cpp: Added more SQLite convenience methods
  39235. (SQLDatabase::setFullsync):
  39236. (SQLDatabase::setBusyTimeout):
  39237. (SQLDatabase::setBusyHandler):
  39238. * icon/SQLDatabase.h:
  39239. * icon/SQLStatement.cpp:
  39240. (WebCore::SQLStatement::returnsAtLeastOneResult):
  39241. * icon/SQLTransaction.cpp: Added basic commit/rollback support with this simple class
  39242. (SQLTransaction::SQLTransaction):
  39243. (SQLTransaction::~SQLTransaction):
  39244. (SQLTransaction::begin):
  39245. (SQLTransaction::commit):
  39246. (SQLTransaction::rollback):
  39247. 2006-06-20 Adele Peterson <adele@apple.com>
  39248. Reviewed by Maciej.
  39249. Fixes for:
  39250. http://bugs.webkit.org/show_bug.cgi?id=8724
  39251. REGRESSION: onSelect handler doesn't work for text fields
  39252. http://bugs.webkit.org/show_bug.cgi?id=7676
  39253. REGRESSION: Selection methods on new text fields don't work if text field is hidden
  39254. http://bugs.webkit.org/show_bug.cgi?id=8867
  39255. REGRESSION: selectionStart/End return 0 for input element once it no longer has focus
  39256. Implemented onSelect for new text fields and textareas. Also fixed selection restore
  39257. behavior to better match other browsers and Safari 2.0 behavior.
  39258. Tests:
  39259. * fast/forms/input-selection-restore.html
  39260. * fast/forms/input-selection-hidden.html
  39261. * fast/forms/onselect-textarea.html
  39262. * fast/forms/onselect-textfield.html
  39263. * html/HTMLInputElement.h: (WebCore::HTMLInputElement::cacheSelection): Added.
  39264. * html/HTMLInputElement.cpp:
  39265. (WebCore::HTMLInputElement::init): Initializes cached selection.
  39266. (WebCore::HTMLInputElement::selectionStart): If this element doesn't have focus, return the cached selection value.
  39267. (WebCore::HTMLInputElement::selectionEnd): ditto.
  39268. (WebCore::HTMLInputElement::setValue): Restore a caret at the starting point of the old selection. Matches Safari 2.0 behavior.
  39269. * html/HTMLTextAreaElement.h: (WebCore::HTMLTextAreaElement::cacheSelection): Added.
  39270. * html/HTMLTextAreaElement.cpp:
  39271. (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Initializes cached selection.
  39272. (WebCore::HTMLTextAreaElement::selectionStart): If this element doesn't have focus, return the cached selection value.
  39273. (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
  39274. (WebCore::HTMLTextAreaElement::focus): If this is the first focus, set a caret at the end of the text. Otherwise,
  39275. restore the cached selection. This matches other browsers' behavior.
  39276. (WebCore::HTMLTextAreaElement::setValue): Restore a caret at the starting point of the old selection. Matches Safari 2.0 behavior.
  39277. * page/Frame.h: Added notifyRendererOfSelectionChange method.
  39278. * page/Frame.cpp:
  39279. (WebCore::Frame::notifyRendererOfSelectionChange): Added. Calls selectionChanged for text fields and textareas. Forwards a userTriggered
  39280. argument so selectionChanged knows whether or not to fire onSelect.
  39281. (WebCore::Frame::setSelection): Calls notifyRendererOfSelectionChange(false). This gets called for all selection changes, so the renderer
  39282. can always update its cached selection values.
  39283. (WebCore::Frame::handleMouseReleaseEvent): Calls notifyRendererOfSelectionChange(true) so onSelect will get fired when the user is done
  39284. making a selection with the mouse.
  39285. * bridge/mac/WebCoreFrameBridge.mm:
  39286. (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]): Calls notifyRendererOfSelectionChange(true) so onSelect gets
  39287. fired when the user makes a selection with the keyboard.
  39288. (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]): ditto.
  39289. * rendering/RenderTextField.h: Add userTriggered parameter to selectionChanged.
  39290. * rendering/RenderTextField.cpp:
  39291. (WebCore::RenderTextField::setSelectionRange): For visibility:hidden, cache the selection and
  39292. return early since we won't be able to actually set the selection.
  39293. (WebCore::RenderTextField::selectionChanged): Caches the selection.
  39294. If the selection is a range, and its triggered by user action, then fire the onSelect event.
  39295. 2006-06-21 Anders Carlsson <acarlsson@apple.com>
  39296. * bridge/win/FrameWin.cpp:
  39297. (WebCore::shouldInterruptJavaScript):
  39298. * bridge/win/FrameWin.h:
  39299. Try fixing the Windows build.
  39300. 2006-06-20 Adele Peterson <adele@apple.com>
  39301. RS by Tim Hatcher.
  39302. Renamed RenderSelect to DeprecatedRenderSelect to prepare for new popup menu and list menu implementations.
  39303. * WebCore.xcodeproj/project.pbxproj:
  39304. * html/HTMLOptionElement.h:
  39305. * html/HTMLSelectElement.cpp:
  39306. (WebCore::HTMLSelectElement::recalcStyle):
  39307. (WebCore::HTMLSelectElement::createRenderer):
  39308. (WebCore::HTMLSelectElement::setRecalcListItems):
  39309. (WebCore::HTMLSelectElement::reset):
  39310. (WebCore::HTMLSelectElement::notifyOptionSelected):
  39311. * html/HTMLSelectElement.h:
  39312. * rendering/DeprecatedRenderSelect.cpp: Added.
  39313. (WebCore::DeprecatedRenderSelect::DeprecatedRenderSelect):
  39314. (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
  39315. (WebCore::DeprecatedRenderSelect::setStyle):
  39316. (WebCore::DeprecatedRenderSelect::updateFromElement):
  39317. (WebCore::DeprecatedRenderSelect::baselinePosition):
  39318. (WebCore::DeprecatedRenderSelect::calcMinMaxWidth):
  39319. (WebCore::DeprecatedRenderSelect::layout):
  39320. (WebCore::DeprecatedRenderSelect::valueChanged):
  39321. (WebCore::DeprecatedRenderSelect::selectionChanged):
  39322. (WebCore::DeprecatedRenderSelect::setOptionsChanged):
  39323. (WebCore::DeprecatedRenderSelect::createListBox):
  39324. (WebCore::DeprecatedRenderSelect::updateSelection):
  39325. * rendering/DeprecatedRenderSelect.h: Added.
  39326. (WebCore::DeprecatedRenderSelect::renderName):
  39327. * rendering/RenderSelect.cpp: Removed.
  39328. * rendering/RenderSelect.h: Removed.
  39329. 2006-06-20 Anders Carlsson <acarlsson@apple.com>
  39330. Reviewed by Geoff.
  39331. http://bugs.webkit.org/show_bug.cgi?id=9509
  39332. Would like a way to pause/resume XML parsing
  39333. * dom/xml_tokenizer.cpp:
  39334. (WebCore::PendingCallbacks::PendingCallbacks):
  39335. (WebCore::PendingCallbacks::appendStartElementNSCallback):
  39336. (WebCore::PendingCallbacks::appendEndElementNSCallback):
  39337. (WebCore::PendingCallbacks::appendCharactersCallback):
  39338. (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
  39339. (WebCore::PendingCallbacks::appendCDATABlockCallback):
  39340. (WebCore::PendingCallbacks::appendCommentCallback):
  39341. (WebCore::PendingCallbacks::appendInternalSubsetCallback):
  39342. (WebCore::PendingCallbacks::appendErrorCallback):
  39343. (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
  39344. (WebCore::PendingCallbacks::isEmpty):
  39345. (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
  39346. (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
  39347. (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
  39348. (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
  39349. (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
  39350. (WebCore::PendingCallbacks::PendingCharactersCallback::call):
  39351. (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
  39352. (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
  39353. (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
  39354. (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
  39355. (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
  39356. (WebCore::PendingCallbacks::PendingCommentCallback::call):
  39357. (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
  39358. (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
  39359. (WebCore::PendingCallbacks::):
  39360. New classes which manage a list of pending SAX callbacks that have not yet
  39361. been sent to the tokenizer.
  39362. (WebCore::XMLTokenizer::XMLTokenizer):
  39363. Initialize new member variables.
  39364. (WebCore::XMLTokenizer::~XMLTokenizer):
  39365. Delete PendingCallbacks object.
  39366. (WebCore::XMLTokenizer::write):
  39367. If the parser is paused, queue the data to be written.
  39368. (WebCore::XMLTokenizer::startElementNs):
  39369. (WebCore::XMLTokenizer::endElementNs):
  39370. (WebCore::XMLTokenizer::characters):
  39371. (WebCore::XMLTokenizer::error):
  39372. (WebCore::XMLTokenizer::processingInstruction):
  39373. (WebCore::XMLTokenizer::cdataBlock):
  39374. (WebCore::XMLTokenizer::comment):
  39375. (WebCore::XMLTokenizer::internalSubset):
  39376. If the parser has been paused, queue the callbacks instead.
  39377. (WebCore::XMLTokenizer::handleError):
  39378. New function, called by both ::error and :PendingCallbacks::callAndRemoveFirstCallback
  39379. (WebCore::XMLTokenizer::finish):
  39380. (WebCore::XMLTokenizer::pauseParsing):
  39381. Set m_parserPaused to true.
  39382. (WebCore::XMLTokenizer::resumeParsing):
  39383. Call the pending callbacks and then parse the pending source.
  39384. 2006-06-20 David Hyatt <hyatt@apple.com>
  39385. Don't send the custom highlighter callback when painting is disabled.
  39386. Reviewed by harrison
  39387. * WebCore.xcodeproj/project.pbxproj:
  39388. * rendering/InlineTextBox.cpp:
  39389. (WebCore::InlineTextBox::paint):
  39390. 2006-06-20 Anders Carlsson <acarlsson@apple.com>
  39391. Reviewed by John
  39392. <rdar://problem/4592244> REGRESSION (417.9.3 - 420+): (some?) plain text files have all lines concatenated into one line
  39393. * loader/TextDocument.cpp:
  39394. (WebCore::TextTokenizer::checkBuffer):
  39395. (WebCore::TextTokenizer::TextTokenizer):
  39396. (WebCore::TextTokenizer::write):
  39397. (WebCore::TextTokenizer::finish):
  39398. Add a text buffer which is used for translation of CR and CRLF to plain LF,
  39399. like the HTML tokenizer does.
  39400. 2006-06-20 Maciej Stachowiak <mjs@apple.com>
  39401. Reviewed by Eric.
  39402. - fix crasher on one of the layout tests caused by my recent checkin
  39403. * kcanvas/RenderSVGText.cpp:
  39404. (WebCore::RenderSVGText::paint):
  39405. 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
  39406. Reviewed by Darin.
  39407. - http://bugs.webkit.org/show_bug.cgi?id=5499
  39408. Page reload does not send any cache control headers
  39409. Test: http/tests/misc/refresh-headers.php
  39410. * bindings/js/kjs_window.cpp:
  39411. (KJS::LocationFunc::callAsFunction): Call scheduleRefresh() for Location::Reload.
  39412. * page/Frame.h: Add scheduleRefresh(). Don't derive from TransferJob or implement its methods - that was
  39413. used only for storing response HTTP headers, which was an overkill.
  39414. * page/FramePrivate.h: Replace TransferJob with a HashMap for storing response headers.
  39415. * page/Frame.cpp:
  39416. (WebCore::Frame::didOpenURL): Don't needlessly change d->m_cachePolicy. Don't create a TransferJob.
  39417. (WebCore::Frame::stopLoading): Directly access the metadata map, instead of going through a TransferJob.
  39418. (WebCore::Frame::receivedFirstData): Ditto.
  39419. (WebCore::Frame::addMetaData): Ditto.
  39420. (WebCore::Frame::scheduleRefresh): A new function that schedules a refresh, similarly to what
  39421. scheduleRedirection() does.
  39422. (WebCore::Frame::changeLocation): Set request.reload attribute based on the current cache policy.
  39423. 2006-06-19 Ben Goodger <bengoodger@gmail.com>
  39424. Reviewed by Darin.
  39425. http://bugs.webkit.org/show_bug.cgi?id=9501
  39426. Windows build fails with link error CharsetTable not defined
  39427. * platform/make-charset-table.pl:
  39428. (process_iana_charsets): Move test for equality to alias "None" until after
  39429. normalization steps to ensure escape characters in the input data don't
  39430. interfere with processing. Convert nearby tabs to 4 spaces in this function.
  39431. 2006-06-18 Maciej Stachowiak <mjs@apple.com>
  39432. Reviewed by Darin.
  39433. - fixed http://bugs.webkit.org/show_bug.cgi?id=9488
  39434. "Animated GIFs do not respect transforms in SVG"
  39435. http://bugs.webkit.org/show_bug.cgi?id=6946
  39436. "SVG shows invalidation issues in WebKit"
  39437. http://www.treebuilder.de/default.asp?file=441875.xml
  39438. "Invalidation issues with "SVG 3d" demo"
  39439. http://code.google.com/webstats/2005-12/pages.html
  39440. "SVG text doesn't repaint correctly"
  39441. * kcanvas/KCanvasContainer.cpp:
  39442. (WebCore::KCanvasContainer::computeAbsoluteRepaintRect): Override base class, and apply
  39443. appropriate transforms, so damage rects in transformed SVG content get propagated up properly.
  39444. (WebCore::KCanvasContainer::getAbsoluteRepaintRect): note a FIXME; this method
  39445. seems wrong.
  39446. * kcanvas/KCanvasContainer.h: Prototype new method.
  39447. * css/svg.css: Don't apply overflow:hidden to foreignObject, since that makes it a RenderLayer
  39448. so it paints twice.
  39449. * kcanvas/RenderForeignObject.cpp:
  39450. (WebCore::RenderForeignObject::paint): Transform the damage rect before passing it down to HTML content,
  39451. so everything paints that is supposed to. Also handle opacity here since we won't get layers.
  39452. (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
  39453. appropriate transforms, so damage rects in HTML embedded in SVG get propagated up properly.
  39454. (WebCore::RenderForeignObject::requiresLayer): Never use a RenderLayer.
  39455. (WebCore::RenderForeignObject::layout): Make sure to dirty our previous bounds when layout
  39456. changes, as by transform.
  39457. * kcanvas/RenderForeignObject.h:
  39458. * kcanvas/RenderSVGImage.cpp:
  39459. (WebCore::RenderSVGImage::paint): Transform the damage rect when painting. Also handle opacity
  39460. here since we won't get layers.
  39461. (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
  39462. appropriate transforms, so damage rects in SVG images get propagated up properly.
  39463. (WebCore::RenderSVGImage::translationForAttributes): New helper method, factored out of below.
  39464. (WebCore::RenderSVGImage::translateForAttributes): Use above.
  39465. (WebCore::RenderSVGImage::requiresLayer): Never use a RenderLayer.
  39466. (WebCore::RenderSVGImage::layout): Make sure to properly dirty the old bounds, accounting
  39467. for transforms.
  39468. (WebCore::RenderSVGImage::relativeBBox): Correct bbox computation.
  39469. * kcanvas/RenderSVGImage.h:
  39470. * kcanvas/RenderSVGText.cpp:
  39471. (WebCore::RenderSVGText::paint): Transform incoming damage rect. Handle opacity here since we
  39472. won't get a layer.
  39473. (WebCore::RenderSVGText::computeAbsoluteRepaintRect): Apply transforms.
  39474. (WebCore::RenderSVGText::requiresLayer): Never use a RenderLayer.
  39475. (WebCore::RenderSVGText::layout): Make sure to dirty the old bounds.
  39476. * platform/cg/GraphicsContextCG.cpp:
  39477. (WebCore::GraphicsContext::roundToDevicePixels): Instead of transforming rect to device space
  39478. and back to user space, do this for the origin and lower right corner of the rect. Otherwise the
  39479. rect will get inflated if user space is rotated or skewed.
  39480. * kcanvas/RenderPath.cpp:
  39481. (WebCore::RenderPath::layout): Make sure to dirty the old bounds.
  39482. (WebCore::RenderPath::paint): Hhandle opacity here.
  39483. Bonus fix:
  39484. * kcanvas/RenderSVGImage.cpp:
  39485. (WebCore::RenderSVGImage::nodeAtPoint): Fix hit testing. Wasn't applying the x/y
  39486. attribute transform.
  39487. 2006-06-19 Sam Weinig <sam.weinig@gmail.com>
  39488. Reviewed by Darin.
  39489. - fix for http://bugs.webkit.org/show_bug.cgi?id=9500
  39490. Split dom2_eventsimpl.* into separate files (one class per file).
  39491. * WebCore.xcodeproj/project.pbxproj:
  39492. * bindings/js/kjs_binding.cpp:
  39493. * bindings/js/kjs_dom.cpp:
  39494. * bindings/js/kjs_events.cpp:
  39495. * bindings/js/kjs_html.cpp:
  39496. * bindings/js/kjs_window.cpp:
  39497. * bindings/objc/DOM.mm:
  39498. * bindings/objc/DOMEvents.mm:
  39499. * bindings/objc/DOMInternal.mm:
  39500. * bindings/scripts/CodeGeneratorJS.pm:
  39501. * bridge/mac/FrameMac.mm:
  39502. * dom/BeforeTextInsertedEvent.h:
  39503. * dom/BeforeUnloadEvent.cpp: Added.
  39504. * dom/BeforeUnloadEvent.h: Added.
  39505. (WebCore::BeforeUnloadEvent::result):
  39506. * dom/CharacterData.cpp:
  39507. * dom/Clipboard.h: Added.
  39508. (WebCore::Clipboard::~Clipboard):
  39509. * dom/ClipboardEvent.cpp: Added.
  39510. (WebCore::ClipboardEvent::ClipboardEvent):
  39511. * dom/ClipboardEvent.h: Added.
  39512. (WebCore::ClipboardEvent::clipboard):
  39513. * dom/ContainerNode.cpp:
  39514. * dom/Document.cpp:
  39515. * dom/Event.cpp: Added.
  39516. (WebCore::Event::Event):
  39517. (WebCore::Event::initEvent):
  39518. * dom/Event.h: Added.
  39519. (WebCore::):
  39520. (WebCore::Event::):
  39521. (WebCore::Event::type):
  39522. (WebCore::Event::target):
  39523. (WebCore::Event::currentTarget):
  39524. (WebCore::Event::setCurrentTarget):
  39525. (WebCore::Event::eventPhase):
  39526. (WebCore::Event::setEventPhase):
  39527. (WebCore::Event::bubbles):
  39528. (WebCore::Event::cancelable):
  39529. (WebCore::Event::timeStamp):
  39530. (WebCore::Event::stopPropagation):
  39531. (WebCore::Event::propagationStopped):
  39532. (WebCore::Event::defaultPrevented):
  39533. (WebCore::Event::setDefaultHandled):
  39534. (WebCore::Event::defaultHandled):
  39535. (WebCore::Event::preventDefault):
  39536. (WebCore::Event::setDefaultPrevented):
  39537. (WebCore::Event::setCancelBubble):
  39538. (WebCore::Event::getCancelBubble):
  39539. (WebCore::Event::dispatched):
  39540. * dom/EventTargetNode.cpp:
  39541. * dom/KeyboardEvent.cpp: Added.
  39542. (WebCore::KeyboardEvent::KeyboardEvent):
  39543. (WebCore::KeyboardEvent::initKeyboardEvent):
  39544. * dom/KeyboardEvent.h: Added.
  39545. (WebCore::KeyboardEvent::):
  39546. (WebCore::KeyboardEvent::keyIdentifier):
  39547. (WebCore::KeyboardEvent::keyLocation):
  39548. (WebCore::KeyboardEvent::altGraphKey):
  39549. (WebCore::KeyboardEvent::keyEvent):
  39550. * dom/MouseEvent.cpp: Added.
  39551. (WebCore::MouseEvent::MouseEvent):
  39552. (WebCore::MouseEvent::initMouseEvent):
  39553. (WebCore::MouseEvent::isDragEvent):
  39554. (WebCore::MouseEvent::toElement):
  39555. (WebCore::MouseEvent::fromElement):
  39556. * dom/MouseEvent.h: Added.
  39557. (WebCore::MouseEvent::button):
  39558. (WebCore::MouseEvent::relatedTarget):
  39559. (WebCore::MouseEvent::clipboard):
  39560. * dom/MouseRelatedEvent.cpp: Added.
  39561. (WebCore::MouseRelatedEvent::MouseRelatedEvent):
  39562. * dom/MouseRelatedEvent.h: Added.
  39563. (WebCore::MouseRelatedEvent::screenX):
  39564. (WebCore::MouseRelatedEvent::screenY):
  39565. (WebCore::MouseRelatedEvent::clientX):
  39566. (WebCore::MouseRelatedEvent::clientY):
  39567. (WebCore::MouseRelatedEvent::layerX):
  39568. (WebCore::MouseRelatedEvent::layerY):
  39569. (WebCore::MouseRelatedEvent::offsetX):
  39570. (WebCore::MouseRelatedEvent::offsetY):
  39571. (WebCore::MouseRelatedEvent::isSimulated):
  39572. * dom/MutationEvent.cpp: Added.
  39573. (WebCore::MutationEvent::MutationEvent):
  39574. (WebCore::MutationEvent::initMutationEvent):
  39575. * dom/MutationEvent.h: Added.
  39576. (WebCore::MutationEvent::):
  39577. (WebCore::MutationEvent::relatedNode):
  39578. (WebCore::MutationEvent::prevValue):
  39579. (WebCore::MutationEvent::newValue):
  39580. (WebCore::MutationEvent::attrName):
  39581. (WebCore::MutationEvent::attrChange):
  39582. * dom/RegisteredEventListener.cpp: Added.
  39583. (WebCore::RegisteredEventListener::RegisteredEventListener):
  39584. (WebCore::operator==):
  39585. * dom/RegisteredEventListener.h: Added.
  39586. (WebCore::RegisteredEventListener::eventType):
  39587. (WebCore::RegisteredEventListener::listener):
  39588. (WebCore::RegisteredEventListener::useCapture):
  39589. (WebCore::RegisteredEventListener::removed):
  39590. (WebCore::RegisteredEventListener::setRemoved):
  39591. (WebCore::operator!=):
  39592. * dom/UIEvent.cpp: Added.
  39593. (WebCore::UIEvent::UIEvent):
  39594. (WebCore::UIEvent::initUIEvent):
  39595. * dom/UIEvent.h: Added.
  39596. (WebCore::UIEvent::view):
  39597. (WebCore::UIEvent::detail):
  39598. * dom/UIEventWithKeyState.h: Added.
  39599. (WebCore::UIEventWithKeyState::UIEventWithKeyState):
  39600. (WebCore::UIEventWithKeyState::ctrlKey):
  39601. (WebCore::UIEventWithKeyState::shiftKey):
  39602. (WebCore::UIEventWithKeyState::altKey):
  39603. (WebCore::UIEventWithKeyState::metaKey):
  39604. * dom/WheelEvent.cpp: Added.
  39605. (WebCore::WheelEvent::WheelEvent):
  39606. * dom/WheelEvent.h: Added.
  39607. (WebCore::WheelEvent::isHorizontal):
  39608. (WebCore::WheelEvent::wheelDelta):
  39609. * dom/dom2_eventsimpl.cpp: Removed.
  39610. * dom/dom2_eventsimpl.h: Removed.
  39611. * editing/EditCommand.cpp:
  39612. * editing/SelectionController.cpp:
  39613. * html/HTMLAnchorElement.cpp:
  39614. * html/HTMLButtonElement.cpp:
  39615. * html/HTMLDocument.cpp:
  39616. * html/HTMLElement.cpp:
  39617. * html/HTMLFrameSetElement.cpp:
  39618. * html/HTMLInputElement.cpp:
  39619. * html/HTMLSelectElement.cpp:
  39620. * html/HTMLTextAreaElement.cpp:
  39621. * ksvg2/events/SVGZoomEvent.h:
  39622. * ksvg2/svg/SVGAElement.cpp:
  39623. * page/Frame.cpp:
  39624. * page/FrameView.cpp:
  39625. * platform/PlatformKeyboardEvent.h:
  39626. * platform/PlatformMouseEvent.h:
  39627. (WebCore::PlatformMouseEvent::PlatformMouseEvent):
  39628. * platform/PlatformWheelEvent.h:
  39629. * platform/mac/ClipboardMac.h:
  39630. * rendering/RenderFrameSet.cpp:
  39631. * rendering/RenderLayer.cpp:
  39632. * rendering/RenderObject.cpp:
  39633. * rendering/RenderTextField.cpp:
  39634. * xml/xmlhttprequest.cpp:
  39635. 2006-06-19 Darin Adler <darin@apple.com>
  39636. Reviewed by Brady.
  39637. - removed a few empty/unused files Brady found by tracking down the nm error message
  39638. * editing/VisibleRange.cpp: Removed.
  39639. * editing/VisibleRange.h: Removed.
  39640. * kcanvas/KCanvasImage.cpp: Removed.
  39641. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed VisibleRange.cpp/h.
  39642. * WebCore.xcodeproj/project.pbxproj: Removed VisibleRange.cpp/h and KCanvasImage.cpp.
  39643. * WebCoreSources.bkl: Removed VisibleRange.cpp.
  39644. 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
  39645. Reviewed by Darin.
  39646. - http://bugs.webkit.org/show_bug.cgi?id=9492
  39647. Fix or remove window.debug.
  39648. It was only available in newly created windows, and became undefined after changing the URL
  39649. or reloading. Let's try removing it; hopefully, no-one will notice.
  39650. * bindings/js/kjs_proxy.cpp:
  39651. (WebCore::KJSProxy::initScriptIfNeeded): Don't add window.debug.
  39652. 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
  39653. Reviewed by Darin.
  39654. - http://bugs.webkit.org/show_bug.cgi?id=8972
  39655. REGRESSION: invalid UTF-8 sequences are not displayed
  39656. Test: LayoutTests/fast/encoding/invalid-UTF-8.html
  39657. * dom/xml_tokenizer.cpp:
  39658. (WebCore::getXHTMLEntity): Properly null-terminate the result. This didn't matter
  39659. before, because the garbage at the end was guaranteed to be invalid UTF-8, and was
  39660. omitted in appendOmittingUnwanted();
  39661. * platform/StreamingTextDecoder.cpp:
  39662. (WebCore::StreamingTextDecoder::appendOmittingBOM): Only omit BOM characters.
  39663. Renamed back from appendOmittingUnwanted();
  39664. (WebCore::StreamingTextDecoder::convertUsingICU):
  39665. * platform/StreamingTextDecoder.h:
  39666. Update for the above function renaming.
  39667. 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
  39668. Reviewed by darin.
  39669. http://bugs.webkit.org/show_bug.cgi?id=9498
  39670. Remove dead code left in JSHTMLDocument::getOwnPropertySlot() from r14298 (Bug 7838)
  39671. * bindings/js/kjs_html.cpp:
  39672. (KJS::JSHTMLDocument::getOwnPropertySlot): Remove dead code.
  39673. 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
  39674. Reviewed by ggaren.
  39675. * manual-tests/redraw-page-cache-visited-links.html: Changed to use DOM mouse event.
  39676. 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
  39677. Reviewed by ggaren.
  39678. - Update a manual test for http://bugs.webkit.org/show_bug.cgi?id=9150
  39679. DumpRenderTree should be able to keep URL history during runs
  39680. * manual-tests/redraw-page-cache-visited-links.html: Added note about window.history hack.
  39681. Fixed coordinates for mouse events. Added call to keepWebHistory().
  39682. * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added note about
  39683. window.history hack.
  39684. 2006-06-17 Anders Carlsson <acarlsson@apple.com>
  39685. Reviewed by Geoff.
  39686. * bindings/js/kjs_binding.cpp:
  39687. (KJS::ScriptInterpreter::ScriptInterpreter):
  39688. Set the default script timeout.
  39689. (KJS::ScriptInterpreter::shouldInterruptScript):
  39690. New function which asks the frame if the script should be interrupted.
  39691. * bindings/js/kjs_binding.h:
  39692. * bindings/js/kjs_events.cpp:
  39693. (KJS::JSAbstractEventListener::handleEvent):
  39694. * bindings/js/kjs_proxy.cpp:
  39695. (WebCore::KJSProxy::evaluate):
  39696. Add calls to startTimeoutCheck/stopTimeoutCheck
  39697. * bindings/js/kjs_window.cpp:
  39698. (KJS::WindowFunc::callAsFunction):
  39699. Add calls to pauseTimeoutCheck/unpauseTimeoutCheck
  39700. (KJS::ScheduledAction::execute):
  39701. Add calls to startTimeoutCheck/stopTimeoutCheck
  39702. * bridge/mac/FrameMac.h:
  39703. * bridge/mac/FrameMac.mm:
  39704. (WebCore::FrameMac::shouldInterruptJavaScript):
  39705. New function which asks the bridge if the script should be interrupted.
  39706. * bridge/mac/WebCoreFrameBridge.h:
  39707. * page/Frame.h:
  39708. Add function declarations.
  39709. 2006-06-17 Alexey Proskuryakov <ap@nypop.com>
  39710. Reviewed by ggaren.
  39711. - http://bugs.webkit.org/show_bug.cgi?id=8131
  39712. Some properties and methods of window and document objects cannot be converted to a string
  39713. Most of the properties were already fixed, this just adds adds a prototype to window.debug.
  39714. Test: fast/dom/everything-to-string.html
  39715. * bindings/js/kjs_proxy.cpp:
  39716. (WebCore::TestFunctionImp::TestFunctionImp):
  39717. (WebCore::KJSProxy::initScriptIfNeeded):
  39718. 2006-06-17 David Kilzer <ddkilzer@kilzer.net>
  39719. Reviewed by Maciej.
  39720. - Fix capitalization issue for case-sensitive filesystems.
  39721. * icon/SQLStatement.cpp: Change assertions.h to Assertions.h.
  39722. 2006-06-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
  39723. Reviewed by Hyatt.
  39724. - fix http://bugs.webkit.org/show_bug.cgi?id=7395
  39725. Table not properly re-flowed when floated div removed from layout
  39726. Test: fast/block/float/table-relayout.html
  39727. * rendering/RenderBlock.cpp:
  39728. (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout): Added marking
  39729. of children that use lineWidth.
  39730. * rendering/RenderBlock.h: Added a FIXME.
  39731. 2006-06-17 Rob Buis <buis@kde.org>
  39732. Reviewed by Darin.
  39733. Fix for http://bugs.webkit.org/show_bug.cgi?id=6282:
  39734. Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex
  39735. Update selectedIndex when a new option is added using javascript.
  39736. * bindings/js/kjs_html.cpp:
  39737. (KJS::JSHTMLSelectCollection::put):
  39738. * html/HTMLSelectElement.cpp:
  39739. (WebCore::HTMLSelectElement::setSelectedIndex):
  39740. (WebCore::HTMLSelectElement::setOption):
  39741. (WebCore::HTMLSelectElement::setLength):
  39742. * html/HTMLSelectElement.h:
  39743. 2006-06-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
  39744. Reviewed by Darin.
  39745. - test for http://bugs.webkit.org/show_bug.cgi?id=9466
  39746. Assertion failure when dragging an image from the document into Safari's address bar
  39747. * manual-tests/reset-initiatedDrag.html: Added.
  39748. 2006-06-16 David Kilzer <ddkilzer@kilzer.net>
  39749. Reviewed by darin.
  39750. http://bugs.webkit.org/show_bug.cgi?id=9463
  39751. REGRESSION (r14879): Assertion failure in CSSParser::sinkFloatingSelector()
  39752. (m_floatingSelectors.contains(selector)) in some CSS tests
  39753. * css/CSSGrammar.y: Create CSSSelector for FUNCTION using CSSParser::createFloatingSelector()
  39754. instead of the bare constructor.
  39755. 2006-06-16 David Harrison <harrison@apple.com>
  39756. Reviewed by Hatcher.
  39757. <rdar://problem/4565312> Mail has a weird drawing artifact with dotted red lines running across the window
  39758. Problem was that revision lost a check to not draw the markers
  39759. when paintingDisabled(). This led the markers to be drawn when
  39760. the window deactivated, at which time the view happens to be flipped.
  39761. It is similar but not the same as the Mail ToDo highlighting
  39762. issue, which is due to the custom highlight method
  39763. drawing when the focusView is nil. Mail team knows this
  39764. and has tested the fix.
  39765. * platform/mac/GraphicsContextMac.mm:
  39766. (WebCore::GraphicsContext::drawLineForMisspelling):
  39767. Early return if paintingDisabled().
  39768. 2006-06-16 Adele Peterson <adele@apple.com>
  39769. Reviewed by Hyatt.
  39770. Adjust padding of inner div so text lines up with text fields.
  39771. Adjust height of textarea so it only leaves room for the horizontal
  39772. scrollbar if overflow is set to scroll, or if overflow is set to
  39773. auto and there's no word wrap.
  39774. These changes will be tested by current layout tests when the
  39775. new textarea implementation takes effect.
  39776. * rendering/RenderTextField.cpp:
  39777. (WebCore::RenderTextField::createDivStyle):
  39778. (WebCore::RenderTextField::calcHeight):
  39779. 2006-06-16 John Sullivan <sullivan@apple.com>
  39780. Reviewed by Darin
  39781. - fixed <rdar://problem/4590062> crash in marker code with particular set of steps on daringfireball.net
  39782. * dom/Document.cpp:
  39783. (WebCore::Document::addMarker):
  39784. Store [it - markers.begin()] in a local variable before modifying markers, since modifying markers can
  39785. change value of [it - markers.begin()].
  39786. 2006-06-16 Adele Peterson <adele@apple.com>
  39787. Reviewed by Alice.
  39788. Added code to draw Cocoa-like border for textareas instead of just using CSS.
  39789. * WebCore.exp:
  39790. * css/html4.css: Sets a 1px solid border.
  39791. * platform/mac/WebCoreSystemInterface.h:
  39792. * platform/mac/WebCoreSystemInterface.mm:
  39793. * rendering/RenderThemeMac.h: Formatting changes.
  39794. * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintTextArea):
  39795. Uses new wkDrawBezeledTextArea to draw border.
  39796. 2006-06-16 Mitz Pettel <opendarwin.org@mitzpettel.com>
  39797. Reviewed by hyatt.
  39798. - fix http://bugs.webkit.org/show_bug.cgi?id=9432
  39799. REGRESSION: crash in capitalization code due to empty-string generated content
  39800. Test: fast/text/capitalize-empty-generated-string.html
  39801. * rendering/RenderText.cpp:
  39802. (WebCore::RenderText::setText): Skip empty-string text renderers when
  39803. looking for the previous character.
  39804. 2006-06-15 Justin Garcia <justin.garcia@apple.com>
  39805. Reviewed by levi
  39806. <http://bugs.webkit.org/show_bug.cgi?id=8637>
  39807. REGRESSION (11-16-05): Selection gaps left behind after delete
  39808. * editing/SelectionController.cpp:
  39809. (WebCore::SelectionController::nodeWillBeRemoved): Invalidate the selection so that
  39810. selection gaps are invalidated.
  39811. 2006-06-15 Timothy Hatcher <timothy@apple.com>
  39812. Reviewed by Geoff and Darin.
  39813. Prefer the DWARF debugging symbols format for use in Xcode 2.3.
  39814. * WebCore.xcodeproj/project.pbxproj:
  39815. 2006-06-15 Justin Garcia <justin.garcia@apple.com>
  39816. Reviewed by harrison
  39817. * editing/CompositeEditCommand.cpp:
  39818. (WebCore::hasARenderedDescendant):
  39819. (WebCore::CompositeEditCommand::prune): Ascend using the DOM
  39820. (WebCore::CompositeEditCommand::moveParagraphs): Placeholder insertion
  39821. during deletion is fixed, removing the fall back.
  39822. 2006-06-15 Nicholas Shanks <contact@nickshanks.com>
  39823. Reviewed by Hyatt, landed by Joost de Valk.
  39824. Fix http://bugs.webkit.org/show_bug.cgi?id=3233
  39825. Add support for the :lang pseudo-class.
  39826. * css/CSSGrammar.y:
  39827. * css/CSSSelector.cpp:
  39828. (WebCore::CSSSelector::operator == ):
  39829. * css/CSSSelector.h:
  39830. (WebCore::CSSSelector::CSSSelector):
  39831. * css/cssparser.cpp:
  39832. (WebCore::CSSParser::lex):
  39833. * css/cssstyleselector.cpp:
  39834. (WebCore::CSSStyleSelector::checkOneSelector):
  39835. * css/tokenizer.flex:
  39836. 2006-06-15 Justin Garcia <justin.garcia@apple.com>
  39837. Reviewed by harrison
  39838. <http://bugs.webkit.org/show_bug.cgi?id=9456>
  39839. REGRESSION (417.9.2-420+): Cmd-G doesn't work in Safari after double-click and Cmd-E
  39840. * page/Frame.cpp:
  39841. (WebCore::Frame::findString): When comparing the found range with
  39842. what's currently selected a) build a selection with the found
  39843. range to remove collapsed whitespace and b) compare ranges
  39844. instead of selection objects to ignore the way that the
  39845. current selection was made (to ignore the base and extent).
  39846. 2006-06-15 David Kilzer <ddkilzer@kilzer.net>
  39847. Reviewed by mjs.
  39848. http://bugs.webkit.org/show_bug.cgi?id=9382
  39849. IDL files missing copyright/license headers
  39850. Add Apple BSD license and copyright to IDL files.
  39851. * ksvg2/bindings/idl/svg/GetSVGDocument.idl:
  39852. * ksvg2/bindings/idl/svg/SVGAElement.idl:
  39853. * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl:
  39854. * ksvg2/bindings/idl/svg/SVGAnimateElement.idl:
  39855. * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl:
  39856. * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl:
  39857. * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl:
  39858. * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl:
  39859. * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl:
  39860. * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl:
  39861. * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl:
  39862. * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl:
  39863. * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl:
  39864. * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl:
  39865. * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl:
  39866. * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl:
  39867. * ksvg2/bindings/idl/svg/SVGAnimatedString.idl:
  39868. * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl:
  39869. * ksvg2/bindings/idl/svg/SVGAnimationElement.idl:
  39870. * ksvg2/bindings/idl/svg/SVGCircleElement.idl:
  39871. * ksvg2/bindings/idl/svg/SVGClipPathElement.idl:
  39872. * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl:
  39873. * ksvg2/bindings/idl/svg/SVGCursorElement.idl:
  39874. * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl:
  39875. * ksvg2/bindings/idl/svg/SVGDefsElement.idl:
  39876. * ksvg2/bindings/idl/svg/SVGDescElement.idl:
  39877. * ksvg2/bindings/idl/svg/SVGElementInstance.idl:
  39878. * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl:
  39879. * ksvg2/bindings/idl/svg/SVGEllipseElement.idl:
  39880. * ksvg2/bindings/idl/svg/SVGEvent.idl:
  39881. * ksvg2/bindings/idl/svg/SVGException.idl:
  39882. * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl:
  39883. * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl:
  39884. * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl:
  39885. * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl:
  39886. * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl:
  39887. * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl:
  39888. * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl:
  39889. * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl:
  39890. * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl:
  39891. * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl:
  39892. * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl:
  39893. * ksvg2/bindings/idl/svg/SVGFEImageElement.idl:
  39894. * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl:
  39895. * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl:
  39896. * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl:
  39897. * ksvg2/bindings/idl/svg/SVGFETileElement.idl:
  39898. * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl:
  39899. * ksvg2/bindings/idl/svg/SVGFilterElement.idl:
  39900. * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl:
  39901. * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl:
  39902. * ksvg2/bindings/idl/svg/SVGGElement.idl:
  39903. * ksvg2/bindings/idl/svg/SVGGradientElement.idl:
  39904. * ksvg2/bindings/idl/svg/SVGICCColor.idl:
  39905. * ksvg2/bindings/idl/svg/SVGImageElement.idl:
  39906. * ksvg2/bindings/idl/svg/SVGLangSpace.idl:
  39907. * ksvg2/bindings/idl/svg/SVGLengthList.idl:
  39908. * ksvg2/bindings/idl/svg/SVGLineElement.idl:
  39909. * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl:
  39910. * ksvg2/bindings/idl/svg/SVGLocatable.idl:
  39911. * ksvg2/bindings/idl/svg/SVGMarkerElement.idl:
  39912. * ksvg2/bindings/idl/svg/SVGNumberList.idl:
  39913. * ksvg2/bindings/idl/svg/SVGPaint.idl:
  39914. * ksvg2/bindings/idl/svg/SVGPathElement.idl:
  39915. * ksvg2/bindings/idl/svg/SVGPathSeg.idl:
  39916. * ksvg2/bindings/idl/svg/SVGPathSegArc.idl:
  39917. * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl:
  39918. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl:
  39919. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl:
  39920. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl:
  39921. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl:
  39922. * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl:
  39923. * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl:
  39924. * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl:
  39925. * ksvg2/bindings/idl/svg/SVGPathSegList.idl:
  39926. * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl:
  39927. * ksvg2/bindings/idl/svg/SVGPatternElement.idl:
  39928. * ksvg2/bindings/idl/svg/SVGPointList.idl:
  39929. * ksvg2/bindings/idl/svg/SVGPolygonElement.idl:
  39930. * ksvg2/bindings/idl/svg/SVGPolylineElement.idl:
  39931. * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl:
  39932. * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl:
  39933. * ksvg2/bindings/idl/svg/SVGRectElement.idl:
  39934. * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl:
  39935. * ksvg2/bindings/idl/svg/SVGScriptElement.idl:
  39936. * ksvg2/bindings/idl/svg/SVGSetElement.idl:
  39937. * ksvg2/bindings/idl/svg/SVGStopElement.idl:
  39938. * ksvg2/bindings/idl/svg/SVGStringList.idl:
  39939. * ksvg2/bindings/idl/svg/SVGStylable.idl:
  39940. * ksvg2/bindings/idl/svg/SVGStyleElement.idl:
  39941. * ksvg2/bindings/idl/svg/SVGSwitchElement.idl:
  39942. * ksvg2/bindings/idl/svg/SVGSymbolElement.idl:
  39943. * ksvg2/bindings/idl/svg/SVGTSpanElement.idl:
  39944. * ksvg2/bindings/idl/svg/SVGTests.idl:
  39945. * ksvg2/bindings/idl/svg/SVGTextContentElement.idl:
  39946. * ksvg2/bindings/idl/svg/SVGTextElement.idl:
  39947. * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl:
  39948. * ksvg2/bindings/idl/svg/SVGTitleElement.idl:
  39949. * ksvg2/bindings/idl/svg/SVGTransformList.idl:
  39950. * ksvg2/bindings/idl/svg/SVGTransformable.idl:
  39951. * ksvg2/bindings/idl/svg/SVGURIReference.idl:
  39952. * ksvg2/bindings/idl/svg/SVGUnitTypes.idl:
  39953. * ksvg2/bindings/idl/svg/SVGUseElement.idl:
  39954. * ksvg2/bindings/idl/svg/SVGViewElement.idl:
  39955. * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl:
  39956. * ksvg2/bindings/idl/svg/SVGZoomEvent.idl:
  39957. * ksvg2/svg/SVGAnimatedLength.idl:
  39958. 2006-06-14 Justin Garcia <justin.garcia@apple.com>
  39959. Reviewed by levi
  39960. <rdar://problem/4439248>
  39961. REGRESSION(412-417): [RTL] Serious problem with RTL signatures in Mail.app in 10.4.4 (7766)
  39962. * editing/markup.cpp:
  39963. (WebCore::renderedText): Use plainText so that we'll pull rendered text but in DOM order.
  39964. 2006-06-14 Levi Weintraub <lweintraub@apple.com>
  39965. Reviewed by justin
  39966. <http://bugs.webkit.org/show_bug.cgi?id=7580>
  39967. TinyMCE: Implement execCommand(formatBlock, ...)
  39968. * WebCore.xcodeproj/project.pbxproj: Added FormatBlock.{h,cpp} to the project.
  39969. * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
  39970. * bridge/mac/WebCoreFrameBridge.h: Added WebUndoActions
  39971. * editing/CompositeEditCommand.cpp:
  39972. (WebCore::CompositeEditCommand::moveParagraph): Added a preserveStyle bool.
  39973. (WebCore::CompositeEditCommand::moveParagraphs): Ditto. downstream() the start
  39974. or else we'll move collapsed whitespace and uncollapse it.
  39975. * editing/CompositeEditCommand.h:
  39976. * editing/DeleteSelectionCommand.cpp:
  39977. (WebCore::DeleteSelectionCommand::initializePositionData):
  39978. (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Don't update m_endingPosition
  39979. because that's removeNode's responsibility.
  39980. (WebCore::updatePositionForNodeRemoval): Added.
  39981. (WebCore::DeleteSelectionCommand::removeNode): Turned removeFullySelectedNode into a virtual
  39982. overload of removeNode so that we can update positions as we remove nodes.
  39983. (WebCore::updatePositionForTextRemoval): Added.
  39984. (WebCore::DeleteSelectionCommand::deleteTextFromNode):
  39985. (WebCore::DeleteSelectionCommand::handleGeneralDelete):
  39986. (WebCore::DeleteSelectionCommand::fixupWhitespace): Got rid of m_trailingWhitespaceValid
  39987. since m_trailingWhitespace is always valid (we update it as we remove nodes).
  39988. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  39989. (WebCore::DeleteSelectionCommand::doApply): Leading and trailing spaces should
  39990. be fixed if they have collapsed before merging paragraphs.
  39991. * editing/DeleteSelectionCommand.h:
  39992. * editing/EditAction.h:
  39993. (WebCore::):
  39994. * editing/FormatBlockCommand.cpp: Added.
  39995. (WebCore::FormatBlockCommand::FormatBlockCommand):
  39996. (WebCore::FormatBlockCommand::modifyRange): Similar to InsertListCommand::modifyRange().
  39997. (WebCore::FormatBlockCommand::doApply):
  39998. * editing/FormatBlockCommand.h: Added.
  39999. (WebCore::FormatBlockCommand::editingAction):
  40000. * editing/InsertListCommand.h:
  40001. (WebCore::InsertListCommand::editingAction):
  40002. * editing/JSEditor.cpp:
  40003. * editing/MergeIdenticalElementsCommand.cpp:
  40004. (WebCore::MergeIdenticalElementsCommand::doApply):
  40005. * editing/htmlediting.cpp:
  40006. (WebCore::validBlockTag):
  40007. (WebCore::createElement):
  40008. * editing/htmlediting.h:
  40009. 2006-06-14 Maciej Stachowiak <mjs@apple.com>
  40010. Reviewed by Anders.
  40011. - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work
  40012. * dom/EventTargetNode.cpp:
  40013. (WebCore::EventTargetNode::dispatchWindowEvent):
  40014. 2006-06-14 David Hyatt <hyatt@apple.com>
  40015. Rename RenderSlider to DeprecatedSlider, so that I can start work on
  40016. the new NSView-less slider.
  40017. Reviewed by john
  40018. * WebCore.vcproj/WebCore/WebCore.vcproj:
  40019. * WebCore.xcodeproj/project.pbxproj:
  40020. * html/HTMLInputElement.cpp:
  40021. (WebCore::HTMLInputElement::createRenderer):
  40022. * rendering/DeprecatedSlider.cpp: Added.
  40023. (WebCore::DeprecatedSlider::DeprecatedSlider):
  40024. (WebCore::DeprecatedSlider::calcMinMaxWidth):
  40025. (WebCore::DeprecatedSlider::updateFromElement):
  40026. (WebCore::DeprecatedSlider::valueChanged):
  40027. * rendering/DeprecatedSlider.h: Added.
  40028. (WebCore::DeprecatedSlider::renderName):
  40029. * rendering/RenderSlider.cpp: Removed.
  40030. * rendering/RenderSlider.h: Removed.
  40031. 2006-06-13 Geoffrey Garen <ggaren@apple.com>
  40032. Reviewed by Maciej.
  40033. - Fixed <rdar://problem/4562192> Creating a new DOMHTMLDocument
  40034. appears challenging.
  40035. - Added createHTMLDocument to Objc bindings, fixed up implementation
  40036. to comply with the DOM 2 Candidate Recommendation in which is was defined.
  40037. (It never made the final spec.) Also removed use of deprecatedString,
  40038. to avoid unnecessary killing of puppies.
  40039. * WebCore.xcodeproj/project.pbxproj:
  40040. * bindings/objc/DOM.mm:
  40041. (-[DOMImplementation createHTMLDocument:]):
  40042. * bindings/objc/DOMPrivate.h:
  40043. * dom/DOMImplementation.cpp:
  40044. (WebCore::DOMImplementation::createDocument):
  40045. (WebCore::DOMImplementation::createHTMLDocument):
  40046. 2006-06-13 Alice Liu <alice.liu@apple.com>
  40047. Reviewed by Adele.
  40048. fixed <rdar://problem/4457902> HTMLSelectElement.remove() can't handle an option obj being passed to it, results in hang on http://www.ibc-solar.de/www_ibc/fst_solarmonitoring.jsp
  40049. * bindings/js/kjs_html.cpp:
  40050. (KJS::HTMLElementFunction::callAsFunction):
  40051. support this by converting the argument to an options object
  40052. before passing to remove()
  40053. 2006-06-13 Darin Adler <darin@apple.com>
  40054. Reviewed by Geoff.
  40055. - fix <rdar://problem/4585333> Changing location for weather on yahoo.com home page redirects to another page
  40056. This patch fixes a bug where the event listener cache does not distinguish
  40057. HTML and non-HTML listeners. Incorrect behavior where stopPropagation also
  40058. prevented default masked a case of this bug on the yahoo.com home page until
  40059. we fixed bug 5180 on 2005-10-03.
  40060. Test: fast/events/event-listener-html-non-html-confusion.html
  40061. * bindings/js/kjs_window.h: Add additional listener maps for HTML event listeners.
  40062. * bindings/js/kjs_window.cpp:
  40063. (KJS::Window::~Window): Go through the additional maps when clearing the window object
  40064. pointer in event listeners.
  40065. (KJS::Window::getJSEventListener): Look in the HTML or non-HTML map depending on the
  40066. argument passed.
  40067. (KJS::Window::getJSUnprotectedEventListener): Ditto.
  40068. * bindings/js/kjs_events.cpp:
  40069. (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener): Add to either the HTML
  40070. or non-HTML map depending on the argument passed.
  40071. (KJS::JSUnprotectedEventListener::~JSUnprotectedEventListener): Remove from either the
  40072. HTML or non-HTML map depending on whether the HTML flag is set.
  40073. (KJS::JSEventListener::JSEventListener): More of the same.
  40074. (KJS::JSEventListener::~JSEventListener): Ditto.
  40075. (KJS::JSLazyEventListener::parseCode): Same thing here. In a lazy event listener there
  40076. is not a listener at construction time, thus the code here to put the listener into a
  40077. map needs the HTML vs. non-HTML logic.
  40078. 2006-06-13 Maciej Stachowiak <mjs@apple.com>
  40079. Reviewed by Darin.
  40080. <rdar://problem/4583892> 10.4.7 regression: Hang occurs when attempting to load search results at mapquest.com
  40081. * dom/EventTargetNode.cpp:
  40082. (WebCore::EventTargetNode::dispatchGenericEvent): Don't allow
  40083. "load" events to propagate up to the window. We need this quirk to
  40084. avoid site hangs, because they depend on an old Mozilla bug.
  40085. 2006-06-13 Antti Koivisto <koivisto@iki.fi>
  40086. Reviewed by Hyatt.
  40087. http://bugs.webkit.org/show_bug.cgi?id=9314
  40088. Relative positioned block size doesnt update root layer size
  40089. - take relative positioning into account in leftmost/rightmost/lowestPosition()
  40090. - ignore zero width/height boxes in leftmost/rightmost/lowestPosition()
  40091. - split relativePositionOffset() to x and y functions
  40092. * rendering/RenderBox.cpp:
  40093. (WebCore::RenderBox::absolutePosition):
  40094. (WebCore::RenderBox::relativePositionOffsetX):
  40095. (WebCore::RenderBox::relativePositionOffsetY):
  40096. (WebCore::RenderBox::lowestPosition):
  40097. (WebCore::RenderBox::rightmostPosition):
  40098. (WebCore::RenderBox::leftmostPosition):
  40099. * rendering/RenderBox.h:
  40100. * rendering/RenderFlow.cpp:
  40101. (WebCore::RenderFlow::lowestPosition):
  40102. (WebCore::RenderFlow::rightmostPosition):
  40103. (WebCore::RenderFlow::leftmostPosition):
  40104. * rendering/RenderLayer.cpp:
  40105. (WebCore::RenderLayer::updateLayerPosition):
  40106. * rendering/RenderObject.cpp:
  40107. (WebCore::RenderObject::offsetLeft):
  40108. (WebCore::RenderObject::offsetTop):
  40109. 2006-06-13 Anders Carlsson <acarlsson@apple.com>
  40110. Reviewed by Dave Hyatt.
  40111. http://bugs.webkit.org/show_bug.cgi?id=9427
  40112. xml-stylesheet processing instructions outside of the prolog should have no effect.
  40113. * dom/ProcessingInstruction.cpp:
  40114. (WebCore::ProcessingInstruction::checkStyleSheet):
  40115. Remove todo comment.
  40116. * dom/xml_tokenizer.cpp:
  40117. (WebCore::XMLTokenizer::processingInstruction):
  40118. Only check for style sheet if the root element hasn't yet been encountered.
  40119. 2006-06-13 Anders Carlsson <acarlsson@apple.com>
  40120. Reviewed by Geoff.
  40121. http://bugs.webkit.org/show_bug.cgi?id=9406
  40122. REGRESSION: fix for bug 9390 broke two layout tests
  40123. * loader/PluginDocument.cpp:
  40124. (WebCore::PluginTokenizer::writeRawData):
  40125. Call finished() after setting up the document structure so we'll emit onload events.
  40126. 2006-06-12 Geoffrey Garen <ggaren@apple.com>
  40127. build fix -- forgot to svn add this file
  40128. * ForwardingHeaders/kjs/SavedBuiltins.h: Added.
  40129. 2006-06-12 Brady Eidson <beidson@apple.com>
  40130. Reviewed by Maciej.
  40131. Fixed a bug in append(char) and append(UChar) where our intended copy-on-write semantics was ignored!
  40132. * platform/String.cpp:
  40133. (WebCore::String::append):
  40134. 2006-06-12 Geoffrey Garen <ggaren@apple.com>
  40135. Reviewed by TimO, Maciej.
  40136. - WebCore part of merging InterpreterImp into Interpreter. No test
  40137. because there's no behavior change.
  40138. A substantive change here is that ScriptInterpreter::mark must now chain to
  40139. Interpreter::mark, since Interpreter needs to mark the things that
  40140. InterpreterImp used to mark.
  40141. * WebCore.xcodeproj/project.pbxproj:
  40142. * bindings/js/kjs_binding.cpp:
  40143. * bindings/js/kjs_window.cpp:
  40144. (KJS::Window::put):
  40145. * bridge/mac/WebCoreFrameBridge.mm:
  40146. * bridge/mac/WebCoreScriptDebugger.mm:
  40147. (-[WebCoreScriptCallFrame evaluateWebScript:]):
  40148. * kwq/KWQPageState.mm:
  40149. 2006-06-12 Brady Eidson <beidson@apple.com>
  40150. Reviewed by Maciej.
  40151. Changed String::ascii() to return a Vector<char> instead of const char*
  40152. This allows us to use it "regularly" as the returned vector will destruct
  40153. and not leak memory like the previous approach.
  40154. We can now do a String.ascii().data() to get a char* buffer instead of
  40155. String.deprecatedString().ascii(). It doesn't improve the style much but
  40156. dumping the memory-leak issue is a plus.
  40157. * icon/IconDatabase.cpp:
  40158. (WebCore::IconDatabase::open):
  40159. (WebCore::IconDatabase::clearDatabase):
  40160. * icon/SQLDatabase.cpp:
  40161. (SQLDatabase::open):
  40162. * icon/SQLStatement.cpp:
  40163. (WebCore::SQLStatement::prepare):
  40164. (WebCore::SQLStatement::step):
  40165. (WebCore::SQLStatement::returnTextResults):
  40166. (WebCore::SQLStatement::returnTextResults16):
  40167. (WebCore::SQLStatement::returnIntResults):
  40168. (WebCore::SQLStatement::returnInt64Results):
  40169. (WebCore::SQLStatement::returnDoubleResults):
  40170. In addition to the changes to the string classes, changed my database code over to the new
  40171. preferred method.
  40172. * platform/PlatformString.h:
  40173. * platform/String.cpp:
  40174. (WebCore::String::ascii):
  40175. * platform/StringImpl.cpp:
  40176. (WebCore::StringImpl::ascii):
  40177. * platform/StringImpl.h:
  40178. 2006-06-12 Dave Hyatt <hyatt@apple.com>
  40179. Add the notion of a selection foreground color to the engine for
  40180. Win32. Rename existing selectionColor methods to be
  40181. selectionBackgroundColor instead.
  40182. Change the 60% alpha blend rule for transparent selection to
  40183. instead be a range from 60-80%, with less transparency being
  40184. used as needed to ensure the transformed color more closely
  40185. approximates the original operating system color when blended
  40186. with a white background.
  40187. Reviewed by mjs
  40188. * platform/Color.cpp:
  40189. (WebCore::blend):
  40190. (WebCore::Color::blendWithWhite):
  40191. * platform/Color.h:
  40192. * rendering/InlineTextBox.cpp:
  40193. (WebCore::InlineTextBox::paint):
  40194. (WebCore::InlineTextBox::paintSelection):
  40195. * rendering/RenderBlock.cpp:
  40196. (WebCore::RenderBlock::fillHorizontalSelectionGap):
  40197. (WebCore::RenderBlock::fillVerticalSelectionGap):
  40198. (WebCore::RenderBlock::fillLeftSelectionGap):
  40199. (WebCore::RenderBlock::fillRightSelectionGap):
  40200. * rendering/RenderHTMLCanvas.cpp:
  40201. (WebCore::RenderHTMLCanvas::paint):
  40202. * rendering/RenderImage.cpp:
  40203. (WebCore::RenderImage::paint):
  40204. * rendering/RenderListMarker.cpp:
  40205. (WebCore::RenderListMarker::paint):
  40206. * rendering/RenderObject.cpp:
  40207. (WebCore::RenderObject::selectionBackgroundColor):
  40208. (WebCore::RenderObject::selectionForegroundColor):
  40209. * rendering/RenderObject.h:
  40210. * rendering/RenderTheme.cpp:
  40211. (WebCore::RenderTheme::activeSelectionBackgroundColor):
  40212. (WebCore::RenderTheme::inactiveSelectionBackgroundColor):
  40213. (WebCore::RenderTheme::platformActiveSelectionBackgroundColor):
  40214. (WebCore::RenderTheme::platformInactiveSelectionBackgroundColor):
  40215. (WebCore::RenderTheme::platformActiveSelectionForegroundColor):
  40216. (WebCore::RenderTheme::platformInactiveSelectionForegroundColor):
  40217. * rendering/RenderTheme.h:
  40218. * rendering/RenderThemeMac.h:
  40219. * rendering/RenderThemeMac.mm:
  40220. (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
  40221. (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
  40222. * rendering/RenderThemeWin.cpp:
  40223. (WebCore::RenderThemeWin::platformActiveSelectionBackgroundColor):
  40224. (WebCore::RenderThemeWin::platformInactiveSelectionBackgroundColor):
  40225. (WebCore::RenderThemeWin::platformActiveSelectionForegroundColor):
  40226. (WebCore::RenderThemeWin::platformInactiveSelectionForegroundColor):
  40227. * rendering/RenderThemeWin.h:
  40228. * rendering/RenderWidget.cpp:
  40229. (WebCore::RenderWidget::paint):
  40230. 2006-06-12 John Sullivan <sullivan@apple.com>
  40231. Reviewed by Darin Adler.
  40232. * page/Frame.cpp:
  40233. (WebCore::Frame::markAllMatchesForText):
  40234. Do a "fake" paint here so that the rectangles for the text matches will have been
  40235. computed by the time this method returns.
  40236. 2006-06-12 Brady Eidson <beidson@apple.com>
  40237. Reviewed by Levi and Tim Omernick.
  40238. -Added a skeleton sqlite3 icon database file to IconDatabase
  40239. -Added functionality to validate and recreate this icon.db file
  40240. -Fixed some buggys in SQLDatabase.cpp
  40241. * icon/IconDatabase.cpp:
  40242. (WebCore::IconDatabase::open):
  40243. (WebCore::IconDatabase::isValidDatabase):
  40244. (WebCore::IconDatabase::clearDatabase):
  40245. (WebCore::IconDatabase::recreateDatabase):
  40246. * icon/IconDatabase.h:
  40247. * icon/SQLStatement.cpp:
  40248. (WebCore::SQLStatement::columnCount):
  40249. (WebCore::SQLStatement::getColumnName):
  40250. (WebCore::SQLStatement::getColumnName16):
  40251. (WebCore::SQLStatement::getColumnText):
  40252. (WebCore::SQLStatement::getColumnText16):
  40253. (WebCore::SQLStatement::getColumnDouble):
  40254. (WebCore::SQLStatement::getColumnInt):
  40255. (WebCore::SQLStatement::getColumnInt64):
  40256. (WebCore::SQLStatement::getColumnBlob):
  40257. -Added checks to make sure we had a valid working sqlite3_statement as the sqlite3_*
  40258. function calls weren't as error-tolerant as documentation advertised
  40259. (maybe differences between the 3.3 docs I looked at and the 3.1.3 version installed on OSX)
  40260. 2006-06-12 Brady Eidson <beidson@apple.com>
  40261. Reviewed by Levi.
  40262. -Added SQLite helper wrappers to ease use of SQLite in the IconDatabase.
  40263. -Changed the base IconDatabase over to this new framework.
  40264. * WebCore.xcodeproj/project.pbxproj:
  40265. * bridge/mac/WebCoreIconDatabaseBridge.mm:
  40266. (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
  40267. -By popular request, removed an annoying log message I'd accidentally left in
  40268. * icon/IconDatabase.cpp:
  40269. (WebCore::IconDatabase::IconDatabase):
  40270. (WebCore::IconDatabase::open):
  40271. (WebCore::IconDatabase::close):
  40272. (WebCore::IconDatabase::~IconDatabase):
  40273. * icon/IconDatabase.h:
  40274. (WebCore::IconDatabase::isOpen):
  40275. -Changed over IconDatabase from direct sqlite3_* calls to the new SQLDatabase calls
  40276. * icon/SQLDatabase.cpp: Added.
  40277. (SQLDatabase::SQLDatabase):
  40278. (SQLDatabase::open):
  40279. (SQLDatabase::close):
  40280. (SQLDatabase::executeCommand):
  40281. (SQLDatabase::tableExists):
  40282. * icon/SQLDatabase.h: Added.
  40283. (WebCore::SQLDatabase::isOpen):
  40284. (WebCore::SQLDatabase::getPath):
  40285. (WebCore::SQLDatabase::lastError):
  40286. (WebCore::SQLDatabase::lastErrorMsg):
  40287. (WebCore::SQLStatement::isPrepared):
  40288. (WebCore::SQLStatement::lastError):
  40289. (WebCore::SQLStatement::lastErrorMsg):
  40290. * icon/SQLStatement.cpp: Added.
  40291. (WebCore::SQLStatement::SQLStatement):
  40292. (WebCore::SQLStatement::~SQLStatement):
  40293. (WebCore::SQLStatement::prepare):
  40294. (WebCore::SQLStatement::step):
  40295. (WebCore::SQLStatement::finalize):
  40296. (WebCore::SQLStatement::reset):
  40297. (WebCore::SQLStatement::executeCommand):
  40298. (WebCore::SQLStatement::bindBlob):
  40299. (WebCore::SQLStatement::bindText):
  40300. (WebCore::SQLStatement::columnCount):
  40301. (WebCore::SQLStatement::getColumnName):
  40302. (WebCore::SQLStatement::getColumnName16):
  40303. (WebCore::SQLStatement::getColumnText):
  40304. (WebCore::SQLStatement::getColumnText16):
  40305. (WebCore::SQLStatement::getColumnDouble):
  40306. (WebCore::SQLStatement::getColumnInt):
  40307. (WebCore::SQLStatement::getColumnInt64):
  40308. (WebCore::SQLStatement::getColumnBlob):
  40309. (WebCore::SQLStatement::returnTextResults):
  40310. (WebCore::SQLStatement::returnTextResults16):
  40311. (WebCore::SQLStatement::returnIntResults):
  40312. (WebCore::SQLStatement::returnInt64Results):
  40313. (WebCore::SQLStatement::returnDoubleResults):
  40314. -Initial checking of SQLDatabase framework
  40315. * platform/PlatformString.h:
  40316. * platform/String.cpp:
  40317. (WebCore::String::String):
  40318. -Added an explicit UChar* constructor to our string class as much of sqlite3's UTF16 handling is based on
  40319. null-terminated UTF16 which we didn't yet support.
  40320. 2006-06-11 David Kilzer <ddkilzer@kilzer.net>
  40321. Reviewed by Maciej.
  40322. http://bugs.webkit.org/show_bug.cgi?id=9408
  40323. Clean build fails with "make: *** No rule to make target `SVGElementFactory.cpp', needed by `all'. Stop"
  40324. * DerivedSources.make: Fix clean builds.
  40325. 2006-06-11 Darin Adler <darin@apple.com>
  40326. - another try at fixing Windows
  40327. * loader/CachedResource.h:
  40328. * platform/cairo/GraphicsContextCairo.cpp:
  40329. * platform/image-decoders/ImageDecoder.h:
  40330. (WebCore::ImageDecoder::setData):
  40331. * platform/image-decoders/gif/GIFImageDecoder.cpp:
  40332. (WebCore::GIFImageDecoderPrivate::decode):
  40333. (WebCore::GIFImageDecoder::setData):
  40334. * platform/image-decoders/gif/GIFImageDecoder.h:
  40335. * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
  40336. (WebCore::JPEGImageReader::decode):
  40337. (WebCore::JPEGImageDecoder::setData):
  40338. * platform/image-decoders/jpeg/JPEGImageDecoder.h:
  40339. * platform/image-decoders/png/PNGImageDecoder.cpp:
  40340. (WebCore::PNGImageReader::decode):
  40341. (WebCore::PNGImageDecoder::setData):
  40342. * platform/image-decoders/png/PNGImageDecoder.h:
  40343. s/DeprecatedByteArray/Vector<char>/
  40344. 2006-06-11 Darin Adler <darin@apple.com>
  40345. - try to fix Windows build
  40346. * platform/cairo/ImageCairo.cpp: (WebCore::Image::loadResource):
  40347. Use Vector<char> instead of DeprecatedByteArray.
  40348. * platform/win/TemporaryLinkStubs.cpp: (KWQServeSynchronousRequest):
  40349. Don't try to return 0 from a function that returns a Vector<char>.
  40350. 2006-06-11 Sam Weinig <sam.weinig@gmail.com>
  40351. Reviewed by Hyatt, tweaked quite a bit and landed by Darin.
  40352. - Fix for http://bugs.webkit.org/show_bug.cgi?id=8039
  40353. Remove use of DeprecatedArray in favor of new Vector class
  40354. This removes most of the uses of DeprecatedArray and
  40355. DeprecatedByteArray, with the exception of DeprecatedCString.
  40356. No test cases added because there is no change in
  40357. functionality.
  40358. * loader/CachedCSSStyleSheet.cpp:
  40359. (WebCore::CachedCSSStyleSheet::data):
  40360. * loader/CachedCSSStyleSheet.h:
  40361. * loader/CachedImage.cpp:
  40362. (WebCore::CachedImage::bufferData):
  40363. (WebCore::CachedImage::data):
  40364. (WebCore::CachedImage::checkNotify):
  40365. (WebCore::CachedImage::shouldStopAnimation):
  40366. * loader/CachedImage.h:
  40367. * loader/CachedObject.cpp:
  40368. (WebCore::CachedObject::bufferData):
  40369. (WebCore::CachedObject::setExpireDate):
  40370. * loader/CachedObject.h:
  40371. (WebCore::CachedObject::setCharset):
  40372. * loader/CachedScript.cpp:
  40373. (WebCore::CachedScript::data):
  40374. * loader/CachedScript.h:
  40375. * loader/CachedXBLDocument.cpp:
  40376. (WebCore::CachedXBLDocument::data):
  40377. (WebCore::CachedXBLDocument::checkNotify):
  40378. * loader/CachedXBLDocument.h:
  40379. * loader/CachedXSLStyleSheet.cpp:
  40380. (WebCore::CachedXSLStyleSheet::data):
  40381. * loader/CachedXSLStyleSheet.h:
  40382. * loader/Request.cpp:
  40383. (WebCore::Request::Request):
  40384. (WebCore::Request::~Request):
  40385. * loader/Request.h:
  40386. (WebCore::Request::buffer):
  40387. (WebCore::Request::cachedObject):
  40388. (WebCore::Request::docLoader):
  40389. (WebCore::Request::isIncremental):
  40390. (WebCore::Request::setIsIncremental):
  40391. (WebCore::Request::isMultipart):
  40392. (WebCore::Request::setIsMultipart):
  40393. * loader/loader.cpp:
  40394. (WebCore::crossDomain):
  40395. (WebCore::Loader::Loader):
  40396. (WebCore::Loader::load):
  40397. (WebCore::Loader::servePendingRequests):
  40398. (WebCore::Loader::receivedAllData):
  40399. (WebCore::Loader::receivedResponse):
  40400. (WebCore::Loader::receivedData):
  40401. (WebCore::Loader::numRequests):
  40402. (WebCore::Loader::cancelRequests):
  40403. (WebCore::Loader::removeBackgroundDecodingRequest):
  40404. (WebCore::Loader::jobForRequest):
  40405. * platform/Image.cpp:
  40406. (WebCore::Image::setData):
  40407. * platform/Image.h:
  40408. (WebCore::Image::dataBuffer):
  40409. * css/cssstyleselector.cpp:
  40410. (WebCore::CSSStyleSelector::init):
  40411. (WebCore::CSSStyleSelector::matchRules):
  40412. (WebCore::CSSStyleSelector::matchRulesForList):
  40413. (WebCore::CSSStyleSelector::sortMatchedRules):
  40414. (WebCore::CSSStyleSelector::initForStyleResolve):
  40415. (WebCore::CSSStyleSelector::createStyleForElement):
  40416. (WebCore::CSSStyleSelector::createPseudoStyleForElement):
  40417. * css/cssstyleselector.h:
  40418. (WebCore::CSSStyleSelector::addMatchedRule):
  40419. (WebCore::CSSStyleSelector::addMatchedDeclaration):
  40420. * dom/xml_tokenizer.cpp:
  40421. (WebCore::OffsetBuffer::OffsetBuffer):
  40422. (WebCore::openFunc):
  40423. * html/HTMLOptionElement.cpp:
  40424. (WebCore::HTMLOptionElement::index):
  40425. * html/HTMLSelectElement.cpp:
  40426. (WebCore::HTMLSelectElement::selectedIndex):
  40427. (WebCore::HTMLSelectElement::setSelectedIndex):
  40428. (WebCore::HTMLSelectElement::length):
  40429. (WebCore::HTMLSelectElement::remove):
  40430. (WebCore::HTMLSelectElement::value):
  40431. (WebCore::HTMLSelectElement::setValue):
  40432. (WebCore::HTMLSelectElement::state):
  40433. (WebCore::HTMLSelectElement::restoreState):
  40434. (WebCore::HTMLSelectElement::appendFormData):
  40435. (WebCore::HTMLSelectElement::optionToListIndex):
  40436. (WebCore::HTMLSelectElement::listToOptionIndex):
  40437. (WebCore::HTMLSelectElement::recalcListItems):
  40438. (WebCore::HTMLSelectElement::reset):
  40439. (WebCore::HTMLSelectElement::notifyOptionSelected):
  40440. * html/HTMLSelectElement.h:
  40441. (WebCore::HTMLSelectElement::listItems):
  40442. * kwq/KWQLoader.h:
  40443. * kwq/KWQLoader.mm:
  40444. (KWQServeSynchronousRequest):
  40445. * kwq/KWQTextStream.cpp:
  40446. (QTextStream::operator<<):
  40447. * kwq/KWQTextStream.h:
  40448. * loader/FormData.cpp:
  40449. (WebCore::FormData::flatten):
  40450. (WebCore::FormData::flattenToString):
  40451. * loader/FormData.h:
  40452. (WebCore::FormDataElement::FormDataElement):
  40453. * platform/DeprecatedString.cpp:
  40454. * platform/DeprecatedString.h:
  40455. * platform/IntPointArray.cpp: Removed.
  40456. * platform/IntPointArray.h: Removed.
  40457. * platform/TextEncoding.cpp:
  40458. (WebCore::TextEncoding::toUnicode):
  40459. * platform/TextEncoding.h:
  40460. * platform/cairo/pixman/src/pixregion.c:
  40461. * platform/cg/PathCG.cpp:
  40462. (WebCore::Path::Path):
  40463. * rendering/RenderObject.cpp:
  40464. (WebCore::RenderObject::drawBorder):
  40465. * rendering/RenderTable.h:
  40466. (WebCore::RenderTable::colToEffCol):
  40467. (WebCore::RenderTable::effColToCol):
  40468. * rendering/RenderTableSection.cpp:
  40469. (WebCore::RenderTableSection::ensureRows):
  40470. (WebCore::RenderTableSection::addCell):
  40471. (WebCore::RenderTableSection::setCellWidths):
  40472. * rendering/RenderTableSection.h:
  40473. * rendering/bidi.cpp:
  40474. (WebCore::addMidpoint):
  40475. (WebCore::RenderBlock::layoutInlineChildren):
  40476. * rendering/render_form.cpp:
  40477. (WebCore::RenderSelect::updateFromElement):
  40478. (WebCore::RenderSelect::layout):
  40479. (WebCore::RenderSelect::valueChanged):
  40480. (WebCore::RenderSelect::selectionChanged):
  40481. (WebCore::RenderSelect::updateSelection):
  40482. * rendering/table_layout.cpp:
  40483. (WebCore::FixedTableLayout::layout):
  40484. * rendering/table_layout.h:
  40485. * xml/XSLTProcessor.cpp:
  40486. (WebCore::docLoaderFunc):
  40487. * xml/xmlhttprequest.cpp:
  40488. (WebCore::XMLHttpRequest::send):
  40489. (WebCore::XMLHttpRequest::processSyncLoadResults):
  40490. * xml/xmlhttprequest.h:
  40491. 2006-06-11 David Kilzer <ddkilzer@kilzer.net>
  40492. Reviewed by darin.
  40493. http://bugs.webkit.org/show_bug.cgi?id=9394
  40494. Fix no-SVG build
  40495. * DerivedSources.make: Removed tabs. Create empty SVGElementFactory.cpp on no-svg build.
  40496. * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Added #if SVG_SUPPORT/#endif.
  40497. * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Ditto.
  40498. * ksvg2/bindings/idl/svg/SVGAElement.idl: Add "Conditional=SVG" to all interfaces.
  40499. * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl: Ditto.
  40500. * ksvg2/bindings/idl/svg/SVGAnimateElement.idl: Ditto.
  40501. * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl: Ditto.
  40502. * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl: Ditto.
  40503. * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl: Ditto.
  40504. * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl: Ditto.
  40505. * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl: Ditto.
  40506. * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl: Ditto.
  40507. * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl: Ditto.
  40508. * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl: Ditto.
  40509. * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl: Ditto.
  40510. * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl: Ditto.
  40511. * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl: Ditto.
  40512. * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl: Ditto.
  40513. * ksvg2/bindings/idl/svg/SVGAnimatedString.idl: Ditto.
  40514. * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl: Ditto.
  40515. * ksvg2/bindings/idl/svg/SVGAnimationElement.idl: Ditto.
  40516. * ksvg2/bindings/idl/svg/SVGCircleElement.idl: Ditto.
  40517. * ksvg2/bindings/idl/svg/SVGClipPathElement.idl: Ditto.
  40518. * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl: Ditto.
  40519. * ksvg2/bindings/idl/svg/SVGCursorElement.idl: Ditto.
  40520. * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Ditto.
  40521. * ksvg2/bindings/idl/svg/SVGDefsElement.idl: Ditto.
  40522. * ksvg2/bindings/idl/svg/SVGDescElement.idl: Ditto.
  40523. * ksvg2/bindings/idl/svg/SVGElementInstance.idl: Ditto.
  40524. * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl: Ditto.
  40525. * ksvg2/bindings/idl/svg/SVGEllipseElement.idl: Ditto.
  40526. * ksvg2/bindings/idl/svg/SVGEvent.idl: Ditto.
  40527. * ksvg2/bindings/idl/svg/SVGException.idl: Ditto.
  40528. * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl: Ditto.
  40529. * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl: Ditto.
  40530. * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl: Ditto.
  40531. * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl: Ditto.
  40532. * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl: Ditto.
  40533. * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl: Ditto.
  40534. * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl: Ditto.
  40535. * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl: Ditto.
  40536. * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl: Ditto.
  40537. * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl: Ditto.
  40538. * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl: Ditto.
  40539. * ksvg2/bindings/idl/svg/SVGFEImageElement.idl: Ditto.
  40540. * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl: Ditto.
  40541. * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl: Ditto.
  40542. * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl: Ditto.
  40543. * ksvg2/bindings/idl/svg/SVGFETileElement.idl: Ditto.
  40544. * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl: Ditto.
  40545. * ksvg2/bindings/idl/svg/SVGFilterElement.idl: Ditto.
  40546. * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl: Ditto.
  40547. * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl: Ditto.
  40548. * ksvg2/bindings/idl/svg/SVGGElement.idl: Ditto.
  40549. * ksvg2/bindings/idl/svg/SVGGradientElement.idl: Ditto.
  40550. * ksvg2/bindings/idl/svg/SVGICCColor.idl: Ditto.
  40551. * ksvg2/bindings/idl/svg/SVGImageElement.idl: Ditto.
  40552. * ksvg2/bindings/idl/svg/SVGLangSpace.idl: Ditto.
  40553. * ksvg2/bindings/idl/svg/SVGLengthList.idl: Ditto.
  40554. * ksvg2/bindings/idl/svg/SVGLineElement.idl: Ditto.
  40555. * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl: Ditto.
  40556. * ksvg2/bindings/idl/svg/SVGLocatable.idl: Ditto.
  40557. * ksvg2/bindings/idl/svg/SVGMarkerElement.idl: Ditto.
  40558. * ksvg2/bindings/idl/svg/SVGNumberList.idl: Ditto.
  40559. * ksvg2/bindings/idl/svg/SVGPaint.idl: Ditto.
  40560. * ksvg2/bindings/idl/svg/SVGPathElement.idl: Ditto.
  40561. * ksvg2/bindings/idl/svg/SVGPathSeg.idl: Ditto.
  40562. * ksvg2/bindings/idl/svg/SVGPathSegArc.idl: Ditto.
  40563. * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl: Ditto.
  40564. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl: Ditto.
  40565. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl: Ditto.
  40566. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl: Ditto.
  40567. * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl: Ditto.
  40568. * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl: Ditto.
  40569. * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl: Ditto.
  40570. * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl: Ditto.
  40571. * ksvg2/bindings/idl/svg/SVGPathSegList.idl: Ditto.
  40572. * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl: Ditto.
  40573. * ksvg2/bindings/idl/svg/SVGPatternElement.idl: Ditto.
  40574. * ksvg2/bindings/idl/svg/SVGPointList.idl: Ditto.
  40575. * ksvg2/bindings/idl/svg/SVGPolygonElement.idl: Ditto.
  40576. * ksvg2/bindings/idl/svg/SVGPolylineElement.idl: Ditto.
  40577. * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl: Ditto.
  40578. * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl: Ditto.
  40579. * ksvg2/bindings/idl/svg/SVGRectElement.idl: Ditto.
  40580. * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl: Ditto.
  40581. * ksvg2/bindings/idl/svg/SVGScriptElement.idl: Ditto.
  40582. * ksvg2/bindings/idl/svg/SVGSetElement.idl: Ditto.
  40583. * ksvg2/bindings/idl/svg/SVGStopElement.idl: Ditto.
  40584. * ksvg2/bindings/idl/svg/SVGStringList.idl: Ditto.
  40585. * ksvg2/bindings/idl/svg/SVGStylable.idl: Ditto.
  40586. * ksvg2/bindings/idl/svg/SVGStyleElement.idl: Ditto.
  40587. * ksvg2/bindings/idl/svg/SVGSwitchElement.idl: Ditto.
  40588. * ksvg2/bindings/idl/svg/SVGSymbolElement.idl: Ditto.
  40589. * ksvg2/bindings/idl/svg/SVGTSpanElement.idl: Ditto.
  40590. * ksvg2/bindings/idl/svg/SVGTests.idl: Ditto.
  40591. * ksvg2/bindings/idl/svg/SVGTextContentElement.idl: Ditto.
  40592. * ksvg2/bindings/idl/svg/SVGTextElement.idl: Ditto.
  40593. * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl: Ditto.
  40594. * ksvg2/bindings/idl/svg/SVGTitleElement.idl: Ditto.
  40595. * ksvg2/bindings/idl/svg/SVGTransformList.idl: Ditto.
  40596. * ksvg2/bindings/idl/svg/SVGTransformable.idl: Ditto.
  40597. * ksvg2/bindings/idl/svg/SVGURIReference.idl: Ditto.
  40598. * ksvg2/bindings/idl/svg/SVGUnitTypes.idl: Ditto.
  40599. * ksvg2/bindings/idl/svg/SVGUseElement.idl: Ditto.
  40600. * ksvg2/bindings/idl/svg/SVGViewElement.idl: Ditto.
  40601. * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl: Ditto.
  40602. * ksvg2/bindings/idl/svg/SVGZoomEvent.idl: Ditto.
  40603. * ksvg2/svg/SVGAngle.idl: Ditto.
  40604. * ksvg2/svg/SVGAnimatedLength.idl: Ditto.
  40605. * ksvg2/svg/SVGColor.idl: Ditto.
  40606. * ksvg2/svg/SVGDocument.idl: Ditto.
  40607. * ksvg2/svg/SVGElement.idl: Ditto.
  40608. * ksvg2/svg/SVGEvent.idl: Ditto.
  40609. * ksvg2/svg/SVGLength.idl: Ditto.
  40610. * ksvg2/svg/SVGMatrix.idl: Ditto.
  40611. * ksvg2/svg/SVGNumber.idl: Ditto.
  40612. * ksvg2/svg/SVGPoint.idl: Ditto.
  40613. * ksvg2/svg/SVGRect.idl: Ditto.
  40614. * ksvg2/svg/SVGSVGElement.idl: Ditto.
  40615. * ksvg2/svg/SVGTransform.idl: Ditto.
  40616. 2006-06-11 Anders Carlsson <acarlsson@apple.com>
  40617. Reviewed by Geoff.
  40618. http://bugs.webkit.org/show_bug.cgi?id=9390
  40619. Move full-frame plugins to WebCore
  40620. * WebCore.vcproj/WebCore/WebCore.vcproj:
  40621. * WebCore.xcodeproj/project.pbxproj:
  40622. Add PluginDocument
  40623. * bridge/mac/FrameMac.h:
  40624. * bridge/mac/FrameMac.mm:
  40625. (WebCore::FrameMac::redirectDataToPlugin):
  40626. Call the bridge.
  40627. * bridge/mac/WebCoreFrameBridge.h:
  40628. * bridge/mac/WebCoreFrameBridge.mm:
  40629. Add redirectDataToPlugin which is used to redirect incoming data
  40630. to a plugin.
  40631. * bridge/mac/WebCoreViewFactory.h:
  40632. Add pluginSupportsMIMEType which returns whether any plugins support a given MIME type.
  40633. * dom/DOMImplementation.cpp:
  40634. * dom/DOMImplementation.h:
  40635. Get rid of createTextDocument and just create a text document explicitly when needed.
  40636. * dom/Document.h:
  40637. (WebCore::Document::isPluginDocument):
  40638. * loader/PluginDocument.cpp: Added.
  40639. (WebCore::PluginTokenizer::PluginTokenizer):
  40640. (WebCore::PluginTokenizer::wantsRawData):
  40641. (WebCore::PluginTokenizer::write):
  40642. (WebCore::PluginTokenizer::createDocumentStructure):
  40643. (WebCore::PluginTokenizer::writeRawData):
  40644. (WebCore::PluginTokenizer::stopParsing):
  40645. (WebCore::PluginTokenizer::finish):
  40646. (WebCore::PluginTokenizer::isWaitingForScripts):
  40647. (WebCore::PluginDocument::PluginDocument):
  40648. (WebCore::PluginDocument::createTokenizer):
  40649. * loader/PluginDocument.h: Added.
  40650. (WebCore::PluginDocument::isPluginDocument):
  40651. Add PluginDocument.
  40652. * page/Frame.cpp:
  40653. (WebCore::Frame::begin):
  40654. Possibly create a plugin document.
  40655. * page/Frame.h:
  40656. (WebCore::Frame::redirectDataToPlugin):
  40657. Add declaration.
  40658. * platform/PlugInInfoStore.h:
  40659. * platform/mac/PlugInInfoStoreMac.mm:
  40660. (WebCore::PlugInInfoStore::supportsMIMEType):
  40661. Ask WebCoreViewFactory if the MIME type is supported.
  40662. 2006-06-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  40663. Reviewed by hyatt.
  40664. - fix http://bugs.webkit.org/show_bug.cgi?id=9334
  40665. Incomplete repaint when changing block from non-positioned to positioned
  40666. Test: fast/repaint/static-to-positioned.html
  40667. * rendering/RenderObject.cpp:
  40668. (WebCore::RenderObject::setStyle): If changing from static to positioned, repaint
  40669. as static.
  40670. 2006-06-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  40671. Reviewed by hyatt.
  40672. - fix http://bugs.webkit.org/show_bug.cgi?id=9193
  40673. REGRESSION: setting an opacity on an element with an outline causes the outline to disappear completely
  40674. Test: fast/layers/opacity-outline.html
  40675. - fix repainting of layer children's outlines that extend beyond the layer
  40676. Test: fast/repaint/layer-child-outline.html
  40677. * rendering/RenderLayer.cpp:
  40678. (WebCore::RenderLayer::intersectsDamageRect): Account for outlines.
  40679. (WebCore::RenderLayer::absoluteBoundingBox): Ditto.
  40680. * rendering/RenderObject.cpp:
  40681. (WebCore::RenderObject::maximalOutlineSize): Changed to return the view's maximal
  40682. outline size rather than 0 for PaintPhaseChildOutlines.
  40683. 2006-06-10 Steve Falkenburg <sfalken@apple.com>
  40684. Fix build break
  40685. * platform/cairo/GraphicsContextCairo.cpp:
  40686. * platform/win/TemporaryLinkStubs.cpp:
  40687. (GraphicsContext::scale):
  40688. 2006-06-10 Geoffrey Garen <ggaren@apple.com>
  40689. - http://bugs.webkit.org/show_bug.cgi?id=8515
  40690. Linux porting compile bug
  40691. Fix by Mike Emmel, Reviewed by Darin.
  40692. * Projects/gdk/webcore-gdk.bkl:
  40693. * WebCoreSources.bkl:
  40694. * css/maketokenizer:
  40695. * html/HTMLCanvasElement.cpp:
  40696. * html/HTMLImageElement.h:
  40697. * icon/IconDatabase.cpp:
  40698. * make-generated-sources.sh:
  40699. * page/Frame.h:
  40700. * page/FramePrivate.h:
  40701. * platform/Cursor.h:
  40702. * platform/FontData.h:
  40703. (WebCore::FontData::getGlyphIndex):
  40704. * platform/GlyphBuffer.h:
  40705. (WebCore::GlyphBuffer::glyphAt):
  40706. (WebCore::GlyphBuffer::advanceAt):
  40707. (WebCore::GlyphBuffer::add):
  40708. * platform/GraphicsContext.h:
  40709. * platform/PlatformKeyboardEvent.h:
  40710. * platform/PlatformMouseEvent.h:
  40711. * platform/PlatformWheelEvent.h:
  40712. * platform/ScrollView.h:
  40713. * platform/TransferJob.h:
  40714. (WebCore::TransferJob::getInternal):
  40715. * platform/TransferJobInternal.h:
  40716. (WebCore::TransferJobInternal::TransferJobInternal):
  40717. * platform/Widget.h:
  40718. * platform/cairo/GraphicsContextCairo.cpp:
  40719. (WebCore::GraphicsContext::GraphicsContext):
  40720. (WebCore::GraphicsContext::roundToDevicePixels):
  40721. * webcore-base.bkl:
  40722. * xpath/impl/XPathValue.cpp:
  40723. 2006-06-09 John Sullivan <sullivan@apple.com>
  40724. Reviewed by Tim Omernick and Dave Hyatt.
  40725. WebCore support for computing but not highlighting rects for text matches.
  40726. * dom/Document.h:
  40727. added setRenderedRectForMarker() and renderedRectsForMarkers(), and redefined
  40728. MarkerMap to be a hashtable of node -> (pair of vectors), one vector of markers
  40729. and one vector of rects
  40730. * dom/Document.cpp:
  40731. (placeholderRectForMarker()):
  40732. new function, returns a recognizable degenerate rect used until a real rect has been set
  40733. (WebCore::Document::addMarker):
  40734. Reworked for new MarkerMap data structure; now adds parallel placeholder rect
  40735. along with marker
  40736. (WebCore::Document::copyMarkers):
  40737. Reworked for new MarkerMap data structure
  40738. (WebCore::Document::removeMarkers):
  40739. Reworked for new MarkerMap data structure; now removed corresponding rect along
  40740. with marker
  40741. (WebCore::Document::markersForNode):
  40742. Reworked for new MarkerMap data structure
  40743. (WebCore::Document::renderedRectsForMarkers):
  40744. New method, returns an array of all non-placeholder rects for the given marker type
  40745. (WebCore::Document::repaintMarkers):
  40746. Reworked for new MarkerMap data structure
  40747. (WebCore::Document::setRenderedRectForMarker):
  40748. New method, sets the rendered rect for a given marker
  40749. (WebCore::Document::shiftMarkers):
  40750. Reworked for new MarkerMap data structure; resets rendered rects to placeholders.
  40751. * rendering/InlineTextBox.cpp:
  40752. (WebCore::InlineTextBox::paint):
  40753. removed markedTextMatchesAreHighlighted guard; we always want to call paintTextMatchMarker
  40754. now, but sometimes we will end up only computing the rect, not actually highlighting it.
  40755. (Maybe some names should be improved here?)
  40756. (WebCore::InlineTextBox::paintTextMatchMarker):
  40757. Reorganized to move all the code that actually draws into a block that's guarded by
  40758. markedTextMatchesAreHighlighted. The rest of the code computes where the highlight will
  40759. go, and now we always use that computation in order to call setRenderedRectForMarker.
  40760. * bridge/mac/WebCoreFrameBridge.h:
  40761. * bridge/mac/WebCoreFrameBridge.mm:
  40762. (-[WebCoreFrameBridge rectsForTextMatches]):
  40763. New method, returns an array of NSValues representing NSRects. Gets them
  40764. from Document::renderedRectsForMarkers
  40765. 2006-06-10 Anders Carlsson <acarlsson@apple.com>
  40766. Reviewed by Eric.
  40767. * bindings/js/kjs_html.cpp:
  40768. (KJS::JSHTMLElement::put):
  40769. Call WebCore::JSHTMLElement::put so that autogenerated setters will work
  40770. for HTMLElement.
  40771. 2006-06-09 Geoffrey Garen <ggaren@apple.com>
  40772. - Build fix after last JSC check-in (oops!)
  40773. * bridge/mac/WebCoreScriptDebugger.mm:
  40774. (-[WebCoreScriptCallFrame scopeChain]):
  40775. (-[WebCoreScriptCallFrame functionName]):
  40776. (-[WebCoreScriptCallFrame evaluateWebScript:]):
  40777. 2006-06-09 David Hyatt <hyatt@apple.com>
  40778. Rename m_isFocused on the frame to m_isActive, since it isn't really
  40779. about focus but is instead about whether or not the top-level window is
  40780. active.
  40781. Pull code that was incorrectly factored into Mac-only code out of FrameMac
  40782. and back up into Frame.
  40783. Reviewed by andersca
  40784. * bridge/mac/FrameMac.h:
  40785. * bridge/mac/FrameMac.mm:
  40786. * page/Frame.cpp:
  40787. (WebCore::Frame::setFocusNodeIfNeeded):
  40788. (WebCore::Frame::isActive):
  40789. (WebCore::Frame::setIsActive):
  40790. * page/FramePrivate.h:
  40791. (WebCore::FramePrivate::FramePrivate):
  40792. 2006-06-09 David Hyatt <hyatt@apple.com>
  40793. Rework selection coloring. Rename displaysWithFocusAttributes
  40794. to isActive. Move the white-blending code onto the Color API to make
  40795. it more convenient to mutate colors for selection blending. Eliminate all
  40796. the selection state from the GraphicsContext and move it to the RenderTheme.
  40797. Implement both Win32 and Mac theme selection colors.
  40798. Reviewed by sfalken
  40799. * bridge/mac/FrameMac.h:
  40800. * bridge/mac/FrameMac.mm:
  40801. (WebCore::FrameMac::setIsActive):
  40802. * bridge/mac/WebCoreFrameBridge.h:
  40803. * bridge/mac/WebCoreFrameBridge.mm:
  40804. (-[WebCoreFrameBridge drawRect:]):
  40805. (-[WebCoreFrameBridge setIsActive:]):
  40806. (-[WebCoreFrameBridge selectionColor]):
  40807. * css/cssstyleselector.cpp:
  40808. (WebCore::CSSStyleSelector::checkOneSelector):
  40809. * page/Frame.cpp:
  40810. (WebCore::Frame::isActive):
  40811. (WebCore::Frame::setIsActive):
  40812. * page/Frame.h:
  40813. * platform/Color.cpp:
  40814. (WebCore::blend):
  40815. (WebCore::Color::blendWithWhite):
  40816. * platform/Color.h:
  40817. (WebCore::Color::hasAlpha):
  40818. * platform/GraphicsContext.cpp:
  40819. (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
  40820. * platform/GraphicsContext.h:
  40821. * platform/mac/GraphicsContextMac.mm:
  40822. * platform/win/TemporaryLinkStubs.cpp:
  40823. (GraphicsContext::endTransparencyLayer):
  40824. * rendering/InlineTextBox.cpp:
  40825. (WebCore::InlineTextBox::paintSelection):
  40826. * rendering/RenderBlock.cpp:
  40827. (WebCore::RenderBlock::fillHorizontalSelectionGap):
  40828. (WebCore::RenderBlock::fillVerticalSelectionGap):
  40829. (WebCore::RenderBlock::fillLeftSelectionGap):
  40830. (WebCore::RenderBlock::fillRightSelectionGap):
  40831. * rendering/RenderHTMLCanvas.cpp:
  40832. (WebCore::RenderHTMLCanvas::paint):
  40833. * rendering/RenderImage.cpp:
  40834. (WebCore::RenderImage::paint):
  40835. * rendering/RenderListMarker.cpp:
  40836. (WebCore::RenderListMarker::paint):
  40837. * rendering/RenderListMarker.h:
  40838. * rendering/RenderObject.cpp:
  40839. (WebCore::RenderObject::selectionColor):
  40840. * rendering/RenderObject.h:
  40841. * rendering/RenderReplaced.cpp:
  40842. * rendering/RenderReplaced.h:
  40843. * rendering/RenderTheme.cpp:
  40844. (WebCore::RenderTheme::activeSelectionColor):
  40845. (WebCore::RenderTheme::inactiveSelectionColor):
  40846. (WebCore::RenderTheme::platformActiveSelectionColor):
  40847. (WebCore::RenderTheme::platformInactiveSelectionColor):
  40848. * rendering/RenderTheme.h:
  40849. * rendering/RenderThemeMac.h:
  40850. * rendering/RenderThemeMac.mm:
  40851. (WebCore::RenderThemeMac::platformActiveSelectionColor):
  40852. (WebCore::RenderThemeMac::platformInactiveSelectionColor):
  40853. * rendering/RenderThemeWin.cpp:
  40854. (WebCore::RenderThemeWin::platformActiveSelectionColor):
  40855. (WebCore::RenderThemeWin::platformInactiveSelectionColor):
  40856. * rendering/RenderThemeWin.h:
  40857. * rendering/RenderWidget.cpp:
  40858. (WebCore::RenderWidget::paint):
  40859. 2006-06-09 Justin Garcia <justin.garcia@apple.com>
  40860. Reviewed by levi
  40861. <rdar://problem/4549980>
  40862. REGRESSION: "Find Again" can get stuck when searching for string with a trailing space
  40863. * bridge/mac/FrameMac.h: Moved findString to Frame.
  40864. * bridge/mac/FrameMac.mm: Ditto.
  40865. * bridge/mac/WebCoreFrameBridge.mm:
  40866. (-[WebCoreFrameBridge searchFor:direction:caseSensitive:wrap:]):
  40867. Convert the NSString to a String.
  40868. * editing/JSEditor.cpp: Added execCommand(FindString, ...)
  40869. * editing/Selection.cpp: Added a constructor for Ranges
  40870. (WebCore::Selection::Selection):
  40871. * editing/Selection.h:
  40872. * page/Frame.cpp:
  40873. (WebCore::Frame::findString): Moved from FrameMac. Compare a selection created
  40874. using the found range with the current selection in case the current selection is
  40875. the found range minus some collapsed whitespace on the edges.
  40876. * page/Frame.h:
  40877. 2006-06-09 Steve Falkenburg <sfalken@apple.com>
  40878. Fix build break
  40879. * WebCore.vcproj/WebCore/WebCore.vcproj:
  40880. * css/MediaQueryEvaluator.cpp:
  40881. * platform/win/TemporaryLinkStubs.cpp:
  40882. (GraphicsContext::addRoundedRectClip):
  40883. (GraphicsContext::addInnerRoundedRectClip):
  40884. (WebCore::screenDepthPerComponent):
  40885. (WebCore::screenIsMonochrome):
  40886. 2006-06-09 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
  40887. Reviewed by Hyatt. Tweaked by Maciej. Tweaks reviewed by Beth.
  40888. Landed by Beth.
  40889. CSS3 Media Queries implementation.
  40890. <http://bugs.webkit.org/show_bug.cgi?id=4127>
  40891. * WebCore.xcodeproj/project.pbxproj:
  40892. * bindings/js/kjs_css.cpp:
  40893. (KJS::DOMMediaList::put):
  40894. (KJS::KJS::DOMMediaListProtoFunc::callAsFunction):
  40895. * bindings/objc/DOMCSS.mm:
  40896. (-[DOMMediaList setMediaText:]):
  40897. (-[DOMMediaList deleteMedium:]):
  40898. (-[DOMMediaList appendMedium:]):
  40899. * css/CSSGrammar.y:
  40900. * css/MediaFeatureNames.cpp: Added.
  40901. (WebCore::MediaFeatureNames::init):
  40902. * css/MediaFeatureNames.h: Added.
  40903. * css/MediaList.cpp:
  40904. (WebCore::MediaList::MediaList):
  40905. (WebCore::MediaList::~MediaList):
  40906. (WebCore::parseMediaDescriptor):
  40907. (WebCore::MediaList::deleteMedium):
  40908. (WebCore::MediaList::mediaText):
  40909. (WebCore::MediaList::setMediaText):
  40910. (WebCore::MediaList::item):
  40911. (WebCore::MediaList::appendMedium):
  40912. (WebCore::MediaList::appendMediaQuery):
  40913. * css/MediaList.h:
  40914. (WebCore::MediaList::MediaList):
  40915. (WebCore::MediaList::length):
  40916. (WebCore::MediaList::mediaQueries):
  40917. * css/MediaQuery.cpp: Added.
  40918. (WebCore::MediaQuery::MediaQuery):
  40919. (WebCore::MediaQuery::~MediaQuery):
  40920. (WebCore::MediaQuery::operator==):
  40921. (WebCore::MediaQuery::cssText):
  40922. * css/MediaQuery.h: Added.
  40923. (WebCore::MediaQuery::):
  40924. (WebCore::MediaQuery::restrictor):
  40925. (WebCore::MediaQuery::expressions):
  40926. (WebCore::MediaQuery::mediaType):
  40927. (WebCore::MediaQuery::append):
  40928. * css/MediaQueryEvaluator.cpp: Added.
  40929. (WebCore::):
  40930. (WebCore::MediaQueryEvaluator):
  40931. (WebCore::MediaQueryEvaluator::~MediaQueryEvaluator):
  40932. (WebCore::MediaQueryEvaluator::mediaTypeMatch):
  40933. (WebCore::applyRestrictor):
  40934. (WebCore::MediaQueryEvaluator::eval):
  40935. (WebCore::parseAspectRatio):
  40936. (WebCore::cmpvalue):
  40937. (WebCore::numberValue):
  40938. (WebCore::colorMediaFeatureEval):
  40939. (WebCore::monochromeMediaFeatureEval):
  40940. (WebCore::device_aspect_ratioMediaFeatureEval):
  40941. (WebCore::gridMediaFeatureEval):
  40942. (WebCore::device_heightMediaFeatureEval):
  40943. (WebCore::device_widthMediaFeatureEval):
  40944. (WebCore::heightMediaFeatureEval):
  40945. (WebCore::widthMediaFeatureEval):
  40946. (WebCore::min_colorMediaFeatureEval):
  40947. (WebCore::max_colorMediaFeatureEval):
  40948. (WebCore::min_monochromeMediaFeatureEval):
  40949. (WebCore::max_monochromeMediaFeatureEval):
  40950. (WebCore::min_device_aspect_ratioMediaFeatureEval):
  40951. (WebCore::max_device_aspect_ratioMediaFeatureEval):
  40952. (WebCore::min_heightMediaFeatureEval):
  40953. (WebCore::max_heightMediaFeatureEval):
  40954. (WebCore::min_widthMediaFeatureEval):
  40955. (WebCore::max_widthMediaFeatureEval):
  40956. (WebCore::min_device_heightMediaFeatureEval):
  40957. (WebCore::max_device_heightMediaFeatureEval):
  40958. (WebCore::min_device_widthMediaFeatureEval):
  40959. (WebCore::max_device_widthMediaFeatureEval):
  40960. (WebCore::createFunctionMap):
  40961. * css/MediaQueryEvaluator.h: Added.
  40962. * css/MediaQueryExp.cpp: Added.
  40963. (WebCore::MediaQueryExp::MediaQueryExp):
  40964. (WebCore::MediaQueryExp::~MediaQueryExp):
  40965. * css/MediaQueryExp.h: Added.
  40966. (WebCore::MediaQueryExp::mediaFeature):
  40967. (WebCore::MediaQueryExp::value):
  40968. (WebCore::MediaQueryExp::operator==):
  40969. * css/StyleSheet.cpp:
  40970. (WebCore::StyleSheet::setMedia):
  40971. * css/cssparser.cpp:
  40972. (WebCore::CSSParser::CSSParser):
  40973. (WebCore::CSSParser::~CSSParser):
  40974. (WebCore::CSSParser::setupParser):
  40975. (WebCore::CSSParser::parseMediaQuery):
  40976. (WebCore::CSSParser::createFloatingMediaQueryExp):
  40977. (WebCore::CSSParser::sinkFloatingMediaQueryExp):
  40978. (WebCore::CSSParser::createFloatingMediaQueryExpList):
  40979. (WebCore::CSSParser::sinkFloatingMediaQueryExpList):
  40980. (WebCore::CSSParser::createFloatingMediaQuery):
  40981. (WebCore::CSSParser::sinkFloatingMediaQuery):
  40982. * css/cssparser.h:
  40983. * css/cssstyleselector.cpp:
  40984. (WebCore::CSSStyleSelector::CSSStyleSelector):
  40985. (WebCore::CSSStyleSelector::init):
  40986. (WebCore::CSSStyleSelector::~CSSStyleSelector):
  40987. (WebCore::CSSStyleSelector::loadDefaultStyle):
  40988. (WebCore::CSSStyleSelector::matchUARules):
  40989. (WebCore::CSSStyleSelector::styleForElement):
  40990. (WebCore::CSSStyleSelector::pseudoStyleForElement):
  40991. (WebCore::CSSStyleSelector::updateFont):
  40992. (WebCore::CSSStyleSelector::cacheBorderAndBackground):
  40993. (WebCore::CSSStyleSelector::styleRulesForElement):
  40994. (WebCore::CSSRuleSet::addRulesFromSheet):
  40995. * css/cssstyleselector.h:
  40996. * css/maketokenizer:
  40997. * css/tokenizer.flex:
  40998. * dom/DOMImplementation.cpp:
  40999. (WebCore::DOMImplementation::createCSSStyleSheet):
  41000. * html/HTMLLinkElement.cpp:
  41001. (WebCore::HTMLLinkElement::process):
  41002. (WebCore::HTMLLinkElement::setStyleSheet):
  41003. * html/HTMLStyleElement.cpp:
  41004. (WebCore::HTMLStyleElement::childrenChanged):
  41005. * ksvg2/svg/SVGDOMImplementation.cpp:
  41006. (SVGDOMImplementation::createCSSStyleSheet):
  41007. * ksvg2/svg/SVGStyleElement.cpp:
  41008. (WebCore::SVGStyleElement::childrenChanged):
  41009. * page/Frame.cpp:
  41010. (WebCore::Frame::Frame):
  41011. * platform/Screen.h:
  41012. * platform/mac/ScreenMac.mm:
  41013. (WebCore::screenDepthPerComponent):
  41014. (WebCore::screenIsMonochrome):
  41015. 2006-06-08 Levi Weintraub <lweintraub@apple.com>
  41016. Reviewed by justin
  41017. <http://bugs.webkit.org/show_bug.cgi?id=4468>
  41018. Implement execCommand(Insert{Un}OrderedList)
  41019. * WebCore.xcodeproj/project.pbxproj: Added InsertListCommand.{h,cpp} to the project.
  41020. * dom/Position.cpp:
  41021. (WebCore::hasRenderedNonAnonymousDescendantsWithHeight):
  41022. Added. A block with height is only a candidate if this is false. This should fix the problems
  41023. getting carets into empty blocks.
  41024. (WebCore::Position::inRenderedContent):
  41025. * editing/AppendNodeCommand.cpp:
  41026. (WebCore::AppendNodeCommand::doApply):
  41027. * editing/CompositeEditCommand.cpp:
  41028. (WebCore::hasARenderedDescendant):
  41029. (WebCore::CompositeEditCommand::prune): A node can have DOM descendants that are rendered, yet
  41030. have a renderer with no descendants. Fixed the pruning rule to avoid removing a node like this.
  41031. (WebCore::CompositeEditCommand::mergeIdenticalElements): Put the two elements next to
  41032. each other if they aren't already, as a convenience.
  41033. (WebCore::CompositeEditCommand::moveParagraph): Added code to preserve the current selection.
  41034. (WebCore::CompositeEditCommand::moveParagraphs): Ditto.
  41035. * editing/CompositeEditCommand.h:
  41036. * editing/DeleteSelectionCommand.cpp:
  41037. (WebCore::DeleteSelectionCommand::initializeStartEnd): Expansion for special elements should
  41038. continue to happen until it is no longer possible.
  41039. (WebCore::DeleteSelectionCommand::handleGeneralDelete): The code to adjust the start node
  41040. wouldn't always avoid removing the start block.
  41041. * editing/InsertListCommand.cpp: Added.
  41042. (WebCore::InsertListCommand::fixOrphanedListChild): Puts a list item that isn't inside a list
  41043. into a list.
  41044. (WebCore::InsertListCommand::InsertListCommand):
  41045. (WebCore::InsertListCommand::modifyRange):
  41046. (WebCore::InsertListCommand::doApply):
  41047. * editing/InsertListCommand.h: Added.
  41048. (WebCore::InsertListCommand::):
  41049. * editing/InsertNodeBeforeCommand.cpp:
  41050. (WebCore::InsertNodeBeforeCommand::doApply):
  41051. * editing/InsertParagraphSeparatorCommand.cpp:
  41052. * editing/JSEditor.cpp:
  41053. * editing/TextIterator.cpp:
  41054. (WebCore::TextIterator::advance): Don't handle a node if the end of the range used to create the
  41055. iterator ends at the start of that node.
  41056. * editing/VisiblePosition.cpp:
  41057. (WebCore::VisiblePosition::next):
  41058. (WebCore::VisiblePosition::previous):
  41059. * editing/VisiblePosition.h:
  41060. Added a parameter to next/previous that can prevent them from leaving the current editable region.
  41061. * editing/htmlediting.cpp:
  41062. (WebCore::highestAncestor):
  41063. (WebCore::enclosingList):
  41064. (WebCore::enclosingListChild):
  41065. (WebCore::outermostEnclosingList):
  41066. (WebCore::createListItemElement):
  41067. * editing/htmlediting.h:
  41068. * page/Frame.cpp:
  41069. (WebCore::Frame::selectionListState): Added.
  41070. * page/Frame.h:
  41071. 2006-06-08 David Harrison <harrison@apple.com>
  41072. Reviewed by Geoff and John.
  41073. <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12)
  41074. Problem was the primitive value was getting reset to a generic state before the parameter
  41075. check that relies on that state.
  41076. Test: fast/dom/setPrimitiveValue.html
  41077. * css/CSSPrimitiveValue.cpp:
  41078. (WebCore::CSSPrimitiveValue::setFloatValue):
  41079. (WebCore::CSSPrimitiveValue::setStringValue):
  41080. Move parameter checks ahead of call to cleanup().
  41081. 2006-06-08 Alice Liu <alice.liu@apple.com>
  41082. Reviewed by justin.
  41083. - fixed <rdar://problem/4578115> support Range.isPointInRange
  41084. - fixed <rdar://problem/4578123> support Range.comparePoint
  41085. * dom/Range.cpp:
  41086. (WebCore::Range::isPointInRange):
  41087. added implementation
  41088. (WebCore::Range::comparePoint):
  41089. added implementation
  41090. * dom/Range.h:
  41091. added prototypes
  41092. * dom/Range.idl:
  41093. added bindings
  41094. 2006-06-08 Darin Adler <darin@apple.com>
  41095. Reviewed by justin.
  41096. - fix http://bugs.webkit.org/show_bug.cgi?id=8616
  41097. REGRESSION: TinyMCE: Crash on Undo
  41098. * bridge/mac/WebCoreFrameBridge.mm:
  41099. (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:allowShadowContent:]):
  41100. Changed to call nodeInfoAtPoint directly.
  41101. (-[WebCoreFrameBridge _visiblePositionForPoint:]): Changed to call nodeInfoAtPoint directly.
  41102. Also added code to convert coordinates so it works for points that are in nodes in subframes.
  41103. * page/Frame.cpp:
  41104. (WebCore::Frame::setMark): Added assertions to catch if we attempt to set selection
  41105. endpoints in another document.
  41106. (WebCore::Frame::setSelection): Ditto.
  41107. 2006-06-07 Justin Garcia <justin.garcia@apple.com>
  41108. Reviewed by levi
  41109. Fixed some comments and removed an unused variable.
  41110. * editing/CompositeEditCommand.cpp:
  41111. (WebCore::CompositeEditCommand::removeBlockPlaceholder):
  41112. Don't remove a br if it isn't at the start of a block, since
  41113. it isn't really a "block placeholder".
  41114. * editing/DeleteSelectionCommand.cpp:
  41115. (WebCore::DeleteSelectionCommand::initializePositionData):
  41116. (WebCore::DeleteSelectionCommand::mergeParagraphs):
  41117. (WebCore::DeleteSelectionCommand::doApply):
  41118. * editing/InsertLineBreakCommand.cpp:
  41119. (WebCore::InsertLineBreakCommand::doApply):
  41120. * editing/ReplaceSelectionCommand.cpp:
  41121. (WebCore::ReplaceSelectionCommand::doApply):
  41122. (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
  41123. * editing/htmlediting.cpp:
  41124. 2006-06-07 David Hyatt <hyatt@apple.com>
  41125. Add support for custom highlighting. This is all ifdefed to be Mac-only.
  41126. Reviewed by justin
  41127. * WebCore.xcodeproj/project.pbxproj:
  41128. * bridge/mac/FrameMac.h:
  41129. * bridge/mac/FrameMac.mm:
  41130. (WebCore::FrameMac::paintCustomHighlight):
  41131. * bridge/mac/WebCoreFrameBridge.h:
  41132. * platform/mac/ClipboardMac.h:
  41133. * rendering/InlineTextBox.cpp:
  41134. (WebCore::InlineTextBox::paint):
  41135. (WebCore::InlineTextBox::paintCustomHighlight):
  41136. * rendering/InlineTextBox.h:
  41137. 2006-06-07 Adele Peterson <adele@apple.com>
  41138. Reviewed by Hyatt
  41139. Added support for cross-platform resize property.
  41140. * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
  41141. already cache this info when we handle mouse down and mouse up.
  41142. * platform/mac/MouseEventMac.mm: ditto.
  41143. * platform/win/TemporaryLinkStubs.cpp: ditto.
  41144. * page/Frame.cpp:
  41145. (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
  41146. * page/FrameView.cpp:
  41147. (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
  41148. (WebCore::FrameView::mousePressed): Added.
  41149. * page/FrameView.h: Added mousePressed.
  41150. * rendering/RenderTheme.h: Removed paintResizeControl.
  41151. Since its not dependent on the theme, the layer can just paint this.
  41152. * rendering/RenderTheme.cpp: ditto.
  41153. * rendering/RenderLayer.cpp:
  41154. (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
  41155. (WebCore::RenderLayer::~RenderLayer): Deletes m_resizeCornerImage.
  41156. (WebCore::RenderLayer::resize): Uses passed in event instead of creating a new one.
  41157. (WebCore::RenderLayer::paintResizeControl): Now loads and paints the resize image.
  41158. * rendering/RenderLayer.h: Added m_resizeCornerImage. Important to have one per-layer for when we allow
  41159. more customization.
  41160. * platform/cairo/ImageCairo.cpp:
  41161. (WebCore::Image::loadResource): Loads image resources.
  41162. 2006-06-07 David Hyatt <hyatt@apple.com>
  41163. Add support for a new property for custom highlighting. This patch just
  41164. adds support for the parsing of the property. It doesn't do anything yet.
  41165. Reviewed by beth
  41166. * css/CSSComputedStyleDeclaration.cpp:
  41167. (WebCore::):
  41168. (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
  41169. * css/CSSPropertyNames.in:
  41170. * css/cssparser.cpp:
  41171. (WebCore::CSSParser::parseValue):
  41172. * css/cssstyleselector.cpp:
  41173. (WebCore::CSSStyleSelector::applyProperty):
  41174. * rendering/render_style.cpp:
  41175. (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
  41176. (WebCore::StyleCSS3InheritedData::operator==):
  41177. (WebCore::RenderStyle::diff):
  41178. * rendering/render_style.h:
  41179. (WebCore::RenderStyle::highlight):
  41180. (WebCore::RenderStyle::setHighlight):
  41181. (WebCore::RenderStyle::initialHighlight):
  41182. 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41183. Fix suggested by Rob Buis. Reviewed by Darin.
  41184. - fix http://bugs.webkit.org/show_bug.cgi?id=9341
  41185. REGRESSION: Repro crash caused by style="font:bold"
  41186. Test: fast/css/font-shorthand-weight-only.html
  41187. * css/cssparser.cpp: (WebCore::CSSParser::parseFont): Revert part of the change
  41188. made to fix bug 5564.
  41189. 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41190. Reviewed by Hyatt.
  41191. - fix http://bugs.webkit.org/show_bug.cgi?id=9122
  41192. REGRESSION: Incorrect vertical position for text fields in a "display: table" block
  41193. Test: fast/table/text-field-baseline.html
  41194. * rendering/RenderTableCell.cpp:
  41195. (WebCore::RenderTableCell::baselinePosition): Do not descend into replaced objects, just
  41196. use their baseline.
  41197. 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41198. Reviewed by Hyatt (concept) and Darin (some coding details).
  41199. - fix http://bugs.webkit.org/show_bug.cgi?id=4334
  41200. REGRESSION: Flickering when css-hover should change opacity on floating elements
  41201. Pixel test: fast/block/float/nopaint-after-layer-destruction.html
  41202. * rendering/RenderBlock.cpp:
  41203. (WebCore::RenderBlock::setPaintsFloatingObject): Added. Changes the noPaint flag
  41204. in the block's FloatingObject for the given float and calls setChildNeedsLayout.
  41205. * rendering/RenderBlock.h:
  41206. * rendering/RenderBox.cpp:
  41207. (WebCore::blockThatPaintsFloat): Added this helper function.
  41208. (WebCore::RenderBox::setStyle): Added. Calls to setPaintsFloatingObject when a float
  41209. gains or loses its layer.
  41210. 2006-06-06 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41211. Reviewed by Hyatt.
  41212. - fix http://bugs.webkit.org/show_bug.cgi?id=9121
  41213. REGRESSION: [Incremental Repaint] DHTML movement test failures
  41214. Test (repaint): fast/repaint/containing-block-position-change.html
  41215. * manual-tests/containing-block-position-chage.html: Added.
  41216. * rendering/RenderBlock.cpp:
  41217. (WebCore::RenderBlock::layoutBlock): Unrelated change: fixed typo from
  41218. the RenderCanvas to RenderView rename.
  41219. (WebCore::RenderBlock::removePositionedObject): Added a return immediately
  41220. after removing the object.
  41221. (WebCore::RenderBlock::removePositionedObjects): Added.
  41222. * rendering/RenderBlock.h:
  41223. * rendering/RenderObject.cpp:
  41224. (WebCore::RenderObject::setStyle): Added code to remove absolutely positioned
  41225. descendants from the positioned objects list of their current containing block
  41226. when they are going to have a new one as a result of this block's position
  41227. property changing.
  41228. * rendering/RenderObject.h:
  41229. (WebCore::RenderObject::removePositionedObjects):
  41230. 2006-06-06 Justin Garcia <justin.garcia@apple.com>
  41231. Reviewed by levi
  41232. * dom/Node.cpp:
  41233. (WebCore::Node::firstDescendant): Added.
  41234. * dom/Node.h:
  41235. * dom/Range.cpp: Added a constructor that takes in Positions.
  41236. (WebCore::Range::Range):
  41237. * dom/Range.h:
  41238. * editing/CompositeEditCommand.cpp:
  41239. (WebCore::CompositeEditCommand::insertNodeAt):
  41240. Let this function insert children into empty containers.
  41241. Calls canHaveChildrenForEditing.
  41242. (WebCore::CompositeEditCommand::appendNode): Assert that the parent canHaveChildrenForEditing.
  41243. (WebCore::CompositeEditCommand::moveParagraph): Tell ReplaceSelectionCommand to select the
  41244. replacement so that moveParagraph's callers have a valid destination after the move.
  41245. * editing/CompositeEditCommand.h: Moved removeFullySelectedNode to DeleteSelectionCommand,
  41246. made deleteTextFromNode virtual so that DeleteSelectionCommand can update it's endingPosition.
  41247. * editing/DeleteSelectionCommand.cpp:
  41248. (WebCore::DeleteSelectionCommand::DeleteSelectionCommand):
  41249. Removed m_startNode, used a local variable.
  41250. (WebCore::DeleteSelectionCommand::initializeStartEnd): Fixed special element expansion.
  41251. (WebCore::DeleteSelectionCommand::initializePositionData): Compute the endingPosition up
  41252. front and keep track of it as nodes and text are removed.
  41253. (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Removed use of m_startNode.
  41254. (WebCore::DeleteSelectionCommand::removeFullySelectedNode): Moved from CompositeEditCommand.
  41255. Update m_endingPosition as we remove nodes.
  41256. (WebCore::DeleteSelectionCommand::deleteTextFromNode):
  41257. Update m_endingPosition as we delete text.
  41258. (WebCore::DeleteSelectionCommand::handleGeneralDelete): Retain the start block. Cleaned up.
  41259. (WebCore::DeleteSelectionCommand::mergeParagraphs): Recompute m_endingPosition since moveParagraph
  41260. clobbers the old one.
  41261. (WebCore::DeleteSelectionCommand::doApply): Fixed the logic for placeholder insertion after
  41262. deletion. Make the placeholder decision before we do special element expansion.
  41263. * editing/DeleteSelectionCommand.h:
  41264. * editing/InsertLineBreakCommand.cpp:
  41265. (WebCore::InsertLineBreakCommand::doApply): Fixed a bug where an extra br was inserted and cleaned
  41266. up the code.
  41267. * editing/InsertParagraphSeparatorCommand.cpp:
  41268. (WebCore::InsertParagraphSeparatorCommand::doApply): Deletion of the current selection should do
  41269. a merge (added a testcase).
  41270. * editing/RebalanceWhitespaceCommand.cpp:
  41271. (WebCore::RebalanceWhitespaceCommand::doUnapply): Remove/insert in a way that will trigger a layout.
  41272. * editing/ReplaceSelectionCommand.cpp:
  41273. (WebCore::ReplaceSelectionCommand::doApply): Ditto.
  41274. Merge even when the incoming fragment has interchange newlines (added a testcase).
  41275. Merge when the selection being pasted into starts at the start of a block because not
  41276. doing so would leave one or more hanging empty blocks.
  41277. (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
  41278. Rebalance whitespace using rebalanceWhitespaceAt because rebalanceWhitespace requires
  41279. a selection, and a selection can't be created until whitespace has been rebalanced.
  41280. * editing/htmlediting.cpp:
  41281. (WebCore::canHaveChildrenForEditing): Added.
  41282. * editing/htmlediting.h:
  41283. 2006-06-06 Beth Dakin <bdakin@apple.com>
  41284. Reviewed by Maciej.
  41285. Fix for <rdar://problem/4570475> Dashboard regions do not scale for
  41286. non-1.0 scale factors.
  41287. No test cases added since this only affects non-1.0 resolution
  41288. scale factors.
  41289. * platform/FloatRect.cpp:
  41290. (WebCore::FloatRect::scale): Added new function that scales a
  41291. rect's origin and size by a given factor.
  41292. * platform/FloatRect.h:
  41293. * platform/IntRect.cpp:
  41294. (WebCore::IntRect::scale): Same as above.
  41295. * platform/IntRect.h:
  41296. * rendering/RenderObject.cpp:
  41297. (WebCore::RenderObject::addDashboardRegions): After the bounds and
  41298. clip rects on the Dashboard region have been calculated, get the
  41299. user space scale factor, and if it is not 1.0, scale the rects.
  41300. 2006-06-06 John Sullivan <sullivan@apple.com>
  41301. Reviewed by Darin Adler.
  41302. - fixed <rdar://problem/4566087> REGRESSION (420+): Crash occurs while completing a find again query at
  41303. http://www.apple.com/ (RenderObject::repaint(bool))
  41304. This wasn't a new problem in the code, but the recent use of DocumentMarkers for find results brought
  41305. it to the surface.
  41306. * dom/Document.h:
  41307. Use a RefPtr<Node> instead of a Node* in MarkerMap, so the node will be retained
  41308. * dom/Document.cpp:
  41309. (WebCore::Document::removeMarkers):
  41310. Add a .get() to compensate for using RefPtr. Also, only repaint if this node actually had a marker
  41311. removed.
  41312. (WebCore::Document::repaintMarkers):
  41313. Add a .get() to compensate for using RefPtr.
  41314. 2006-06-06 Anders Carlsson <acarlsson@apple.com>
  41315. Reviewed by Darin.
  41316. http://bugs.webkit.org/show_bug.cgi?id=9325
  41317. clientWidth/clientHeight on document element in strict mode should return visible frame size
  41318. * dom/Element.cpp:
  41319. (WebCore::Element::clientWidth):
  41320. (WebCore::Element::clientHeight):
  41321. If we're the document element, and in strict mode, return the visible size of the frame.
  41322. 2006-06-06 Anders Carlsson <acarlsson@apple.com>
  41323. Reviewed by John.
  41324. * bridge/mac/WebCoreFrameBridge.h:
  41325. * bridge/mac/WebCoreFrameBridge.mm:
  41326. (-[WebCoreFrameBridge containsPlugins]):
  41327. * page/Frame.cpp:
  41328. (WebCore::Frame::containsPlugins):
  41329. * page/Frame.h:
  41330. Add containsPlugins function which returns whether a frame contains plugins
  41331. or not.
  41332. 2006-06-05 Rob Buis <buis@kde.org>
  41333. Reviewed by mjs.
  41334. http://bugs.webkit.org/show_bug.cgi?id=5564
  41335. 'font' shorthand parsing should be more tolerant in quirks mode
  41336. When not in strict mode accept font property specifications
  41337. lacking a font family part, like WinIE does.
  41338. * css/cssparser.cpp:
  41339. (WebCore::CSSParser::parseFont):
  41340. 2006-06-05 Beth Dakin <bdakin@apple.com>
  41341. Reviewed by Darin.
  41342. Fix for <rdar://problem/4567520> Pixel cracks in weather widget at
  41343. 1.83 scaling
  41344. To prevent pixel cracks at non-integral scaling factors, before we
  41345. call into CG to draw an image, we have to convert the rect to
  41346. device space, round the origin and size to integers in device
  41347. space, and convert back to user space.
  41348. No test cases added since this only affects non-1.0 resolution
  41349. scale factors.
  41350. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  41351. (WebCore::JSCanvasRenderingContext2D::drawImage): drawImage() now
  41352. takes FloatRects.
  41353. * html/CanvasPattern.cpp:
  41354. (WebCore::patternCallback): Call roundToDevicePixels()
  41355. * html/CanvasRenderingContext2D.cpp:
  41356. (WebCore::CanvasRenderingContext2D::drawImage): drawImage() now
  41357. takes FloatRects and call roundToDevicePixels()
  41358. * html/CanvasRenderingContext2D.h: drawImage() now takes
  41359. FloatRects.
  41360. * html/HTMLCanvasElement.cpp:
  41361. (WebCore::HTMLCanvasElement::paint): Call roundToDevicePixels()
  41362. * kcanvas/device/quartz/QuartzSupport.mm:
  41363. (WebCore::debugDumpCGImageToFile): Same as above.
  41364. * platform/GraphicsContext.h:
  41365. * platform/cg/GraphicsContextCG.cpp:
  41366. (WebCore::GraphicsContext::roundToDevicePixels): Takes care of
  41367. converting between coordinate spaces and rounding.
  41368. (WebCore::GraphicsContext::drawLineForText):
  41369. * platform/mac/ImageMac.mm: Call roundToDevicePixels()
  41370. (WebCore::Image::draw): Same as above.
  41371. (WebCore::drawPattern): Same as above.
  41372. 2006-06-05 Geoffrey Garen <ggaren@apple.com>
  41373. Reviewed by Darin.
  41374. - http://bugs.webkit.org/show_bug.cgi?id=9310
  41375. Add missing DOM prototypes and other DOM cleanup
  41376. - Added the built-in object prototype to DOM objects that were missing it
  41377. so that primitive operations like == work on them.
  41378. - Removed dead EventConstructor class (it's autogenerated now)
  41379. - Changed HTML collections to describe themselves as "[object Collection]",
  41380. to match IE.
  41381. - Made DOMCSSRule constructor private because JSCSSRule is the class
  41382. to use.
  41383. * bindings/js/JSHTMLOptionElementConstructor.cpp:
  41384. (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
  41385. * bindings/js/kjs_css.cpp:
  41386. (KJS::DOMStyleSheet::DOMStyleSheet):
  41387. (KJS::DOMStyleSheetList::DOMStyleSheetList):
  41388. (KJS::DOMCSSRule::DOMCSSRule):
  41389. (KJS::DOMCSSValue::DOMCSSValue):
  41390. (KJS::toJS):
  41391. (KJS::DOMRGBColor::DOMRGBColor):
  41392. (KJS::getDOMRGBColor):
  41393. (KJS::DOMRect::DOMRect):
  41394. * bindings/js/kjs_css.h:
  41395. * bindings/js/kjs_dom.cpp:
  41396. (KJS::DOMNodeList::DOMNodeList):
  41397. (KJS::DOMExceptionConstructor::DOMExceptionConstructor):
  41398. (KJS::DOMExceptionConstructor::getOwnPropertySlot):
  41399. (KJS::):
  41400. (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
  41401. * bindings/js/kjs_dom.h:
  41402. (KJS::DOMNamedNodesCollection::classInfo):
  41403. * bindings/js/kjs_events.h:
  41404. * bindings/js/kjs_html.cpp:
  41405. (KJS::):
  41406. 2006-06-04 Darin Adler <darin@apple.com>
  41407. Reviewed by Maciej.
  41408. - fix http://bugs.webkit.org/show_bug.cgi?id=9031
  41409. REGRESSION: Crash when closing tabs on newegg.com
  41410. - removed a no-longer-needed Win32-specific workaround (not reviewed)
  41411. * bindings/js/kjs_window.cpp: Added include of <wtf/MathExtras.h>.
  41412. (WebCore::floatFeature): Remove WIN32 ifdef around isnan.
  41413. (WebCore::toJS): Add null checks.
  41414. 2006-06-04 Darin Adler <darin@apple.com>
  41415. Reviewed by Maciej.
  41416. - fix http://bugs.webkit.org/show_bug.cgi?id=9176
  41417. REGRESSION: repro crash in WebCore::StringImpl::hash() const + 28 (StringImpl.h:67)
  41418. Test: fast/loader/link-no-URL.html
  41419. * loader/Cache.h:
  41420. * loader/Cache.cpp:
  41421. (WebCore::Cache::updateCacheStatus): Removed the URL parameter. Instead get the URL
  41422. from the cached object itself. Callers were passing in the wrong URL. When it was a
  41423. null string, it caused the crash mentioned above. But in other cases it may have
  41424. caused some other minor problems as well. Added an assert to catch cases where the
  41425. URL is null (should never happen).
  41426. (WebCore::Cache::requestImage): Changed call site to not pass URL.
  41427. (WebCore::Cache::requestStyleSheet): Ditto.
  41428. (WebCore::Cache::requestScript): Ditto.
  41429. (WebCore::Cache::requestXSLStyleSheet): Ditto.
  41430. (WebCore::Cache::requestXBLDocument): Ditto.
  41431. 2006-06-04 Darin Adler <darin@apple.com>
  41432. Reviewed by Adele.
  41433. - fix http://bugs.webkit.org/show_bug.cgi?id=7291
  41434. REGRESSION: delete key does not work in isIndex fields
  41435. * platform/mac/WebCoreTextField.mm:
  41436. (inputElement): Added. Helper function to get the Objective-C wrapper for an
  41437. input element associated with a QTextEdit. Returns nil if the element is not
  41438. an input element. The bug was caused by passing a non-input element to the
  41439. delegate methods.
  41440. (-[KWQTextFieldController controlTextDidBeginEditing:]): Use inputElement
  41441. and don't make the delegate call at all if there is none. This happens only
  41442. with isindex elements; it's not important to have auto-fill work with those.
  41443. (-[KWQTextFieldController controlTextDidEndEditing:]): Ditto.
  41444. (-[KWQTextFieldController controlTextDidChange:]): Ditto.
  41445. (-[KWQTextFieldController control:textShouldEndEditing:]): Ditto.
  41446. (-[KWQTextFieldController control:textView:doCommandBySelector:]): Ditto.
  41447. (-[KWQTextFieldController textView:shouldHandleEvent:]): Ditto.
  41448. 2006-06-04 Darin Adler <darin@apple.com>
  41449. Reviewed by Anders.
  41450. - fix http://bugs.webkit.org/show_bug.cgi?id=8995
  41451. memory leak in XPath code -- seen in layout tests
  41452. - fixed malloc error on exit due to SVGDOMImplementation destructor
  41453. - attempted to fix the no-XPATH_SUPPORT build by adding an #if
  41454. - changed around includes and header-file formatting in XPath code
  41455. * bindings/scripts/CodeGeneratorJS.pm: Include PlatformString.h when
  41456. generating the bindings for XPathNSResolver.
  41457. * dom/DOMImplementation.h: Added a virtual destructor for the benefit of
  41458. SVGDOMImplementation.
  41459. * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::~DOMImplementation): Added.
  41460. * ksvg2/svg/SVGDOMImplementation.h: Reformatted a bit, removed unneeded declarations.
  41461. * ksvg2/svg/SVGDOMImplementation.cpp:
  41462. (SVGDOMImplementation::~SVGDOMImplementation): Remove commented-out code.
  41463. (SVGDOMImplementation::createDocument): Remove a reference to KDOMView.
  41464. * xpath/XPathExpression.cpp:
  41465. (WebCore::XPathExpression::createExpression): Called release to avoid a tiny bit of
  41466. reference count churn.
  41467. (WebCore::XPathExpression::evaluate): Set exception code explicitly, because the code
  41468. relies on it being 0 when the function succeeds.
  41469. * xpath/XPathResult.cpp:
  41470. (WebCore::InvalidatingEventListener::InvalidatingEventListener): Removed
  41471. unneeded target node data member.
  41472. (WebCore::XPathResult::XPathResult): Updated for enum name changes and
  41473. InvalidatingEventListener name change. Added an assertion.
  41474. * xpath/impl/XPathFunctions.h: Removed the FunctionLibrary class. Changed the parameter
  41475. for createFunction to be a String instead of char*.
  41476. * xpath/impl/XPathFunctions.cpp: Got rid of local implementation of "round", and
  41477. used <wtf/MathExtras.h> instead. Also removed unused Interval::asString. Marked all
  41478. the Interval functions inline.
  41479. (WebCore::XPath::FunSubstring::doEvaluate): Use lround() instead of (long)round().
  41480. (WebCore::XPath::FunLang::doEvaluate): Removed some unneeded temporary String variables.
  41481. Use equalIgnoringCase() instead of calling lower() on two strings.
  41482. (WebCore::XPath::createFunctionMap): Changed how this works so that it's all local to
  41483. this function. Also removed a duplicate entry for the "last" function.
  41484. (WebCore::XPath::createFunction): Changed from a member function to a separate function.
  41485. Also changed so that if the args are not used in the function they are deleted.
  41486. This was one of the sources of the storage leaks.
  41487. * xpath/impl/XPathGrammar.y: Put XPATH_SUPPORT ifdef in. Replaced <num> with values of
  41488. specific types (numop, eqop). Updated for name change from AxisType to Axis. Changed
  41489. tokens that were declared as <str> but weren't actually using the string to be
  41490. declared with no type (PLUS, MINUS, OR, AND, DOTDOT, SLASHSLASH). Replaced use of
  41491. unregisterString, unregisterPredicateVector, and unregisterExpressionVector to
  41492. call delete functions instead that both unregister and delete. Change call sites for
  41493. createFunction to just use the String, removing the deprecatedString().latin1() call
  41494. that is no longer needed. Added a call to unregisterParseNode that was missing in the
  41495. "FilterExpr DescendantOrSelf RelativeLocationPath" production.
  41496. * xpath/impl/XPathParser.h: Changed Token to hold a String, Step::Axis, NumericOp::Opcode,
  41497. and EqTestOp::Opcode. The token ID number tells us which to use. Rearranged to put the private
  41498. part of the Parser class last. Moved a number of private things inside the cpp file.
  41499. * xpath/impl/XPathParser.cpp:
  41500. (WebCore::XPath::charCat): Made this a separate function, instead of a static member.
  41501. (WebCore::XPath::isAxisName): Ditto. Also put the global axis map inside the function,
  41502. allowing use of a map instead of a map pointer.
  41503. (WebCore::XPath::isNodeTypeName): Ditto.
  41504. (WebCore::XPath::Parser::isOperatorContext): Made this const.
  41505. (WebCore::XPath::Parser::makeTokenAndAdvance): Got rid of the "int" version of this.
  41506. By using the actual types, we can safely use overload instead.
  41507. (WebCore::XPath::Parser::lexString): Use substring() instead of deprecatedString().mid().
  41508. (WebCore::XPath::Parser::lexNumber): Ditto.
  41509. (WebCore::XPath::Parser::lexNCName): Changed to return a bool and a String instead of a
  41510. Token. This avoids the hack of using a token value of "ERROR + 1" which I found quite
  41511. confusing and is also a bit more explicit.
  41512. (WebCore::XPath::Parser::lexQName): Ditto.
  41513. (WebCore::XPath::Parser::nextTokenInternal): Changed to adapt to the changes above and
  41514. to remove some unneeded else statements.
  41515. (WebCore::XPath::Parser::lex): Changed the logic that sets up yylval to use the token ID
  41516. to decide what the type is. This matches what the grammar expects, and removes the need
  41517. for the token object to track which part of the value is good and the need to reserve 0
  41518. to have a special meaning.
  41519. (WebCore::XPath::Parser::parseStatement): Added code to delete the predicates and the
  41520. expressions in the predicate and expression vectors. Before, we were only deleting
  41521. the vectors. This was one of the sources of the storage leaks.
  41522. (WebCore::XPath::Parser::deletePredicateVector): Renamed, and changed to delete
  41523. the vector. However this does not delete the predicates in the vector.
  41524. (WebCore::XPath::Parser::deleteExpressionVector): Renamed, and changed to delete
  41525. the vector. However this does not delete the expressions in the vector.
  41526. (WebCore::XPath::Parser::deleteString): Renamed, and changed to delete the string.
  41527. * xpath/impl/XPathPredicate.h:
  41528. * xpath/impl/XPathPredicate.cpp:
  41529. (WebCore::XPath::NumericOp::NumericOp): Changed opcode from an int to an enum, and
  41530. renamed to "opcode" instead of "opCode".
  41531. (WebCore::XPath::NumericOp::doEvaluate): More of the same.
  41532. (WebCore::XPath::EqTestOp::EqTestOp): Ditto.
  41533. (WebCore::XPath::EqTestOp::doEvaluate): Ditto.
  41534. (WebCore::XPath::LogicalOp::LogicalOp): Ditto.
  41535. (WebCore::XPath::LogicalOp::shortCircuitOn): Ditto.
  41536. (WebCore::XPath::Predicate::evaluate): Removed an unneeded "new".
  41537. * xpath/impl/XPathStep.h:
  41538. * xpath/impl/XPathStep.cpp: Renamed AxisType to Axis. Removed unused axisAsString
  41539. function and default constructor.
  41540. * xpath/impl/XPathValue.h: Renamed the type constants to have a Value suffix,
  41541. instead of the underscore suffix used before on NodeVector and String.
  41542. * xpath/impl/XPathValue.cpp: Updated for name change. Added asserts.
  41543. * xpath/impl/XPathVariableReference.cpp: (WebCore::XPath::VariableReference::doEvaluate):
  41544. Use a reference instead of a pointer.
  41545. * xpath/XPathEvaluator.cpp:
  41546. * xpath/XPathEvaluator.h:
  41547. * xpath/XPathExpression.h:
  41548. * xpath/XPathNSResolver.cpp:
  41549. * xpath/XPathNSResolver.h:
  41550. * xpath/XPathNamespace.cpp:
  41551. * xpath/XPathNamespace.h:
  41552. * xpath/XPathResult.h:
  41553. * xpath/impl/XPathExpressionNode.cpp:
  41554. * xpath/impl/XPathExpressionNode.h:
  41555. * xpath/impl/XPathPath.cpp:
  41556. * xpath/impl/XPathPath.h:
  41557. * xpath/impl/XPathUtil.cpp:
  41558. * xpath/impl/XPathUtil.h:
  41559. * xpath/impl/XPathVariableReference.h:
  41560. Reformatted and changed includes around; no substantive changes.
  41561. 2006-06-04 Sam Weinig <sam.weinig@gmail.com>
  41562. Reviewed by hyatt.
  41563. - fix for http://bugs.webkit.org/show_bug.cgi?id=9213
  41564. Absolutely positioned objects with relatively positioned inline
  41565. containing blocks are rendered incorrectly
  41566. * rendering/RenderBox.cpp:
  41567. (WebCore::RenderBox::containingBlockWidthForPositioned):
  41568. (WebCore::RenderBox::containingBlockHeightForPositioned):
  41569. (WebCore::RenderBox::calcAbsoluteHorizontal):
  41570. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  41571. (WebCore::RenderBox::calcAbsoluteVertical):
  41572. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  41573. (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
  41574. * rendering/RenderBox.h:
  41575. 2006-06-04 Anders Carlsson <acarlsson@apple.com>
  41576. Reviewed by Darin.
  41577. http://bugs.webkit.org/show_bug.cgi?id=9035
  41578. document.evaluate and createNSResolver miss on namespaced elements
  41579. * xpath/XPathExpression.cpp:
  41580. (WebCore::XPathExpression::createExpression):
  41581. Pass the resolver to the parser.
  41582. * xpath/XPathResult.cpp:
  41583. (WebCore::XPathResult::iterateNext):
  41584. Fix off-by-one error.
  41585. * xpath/impl/XPathExpressionNode.h:
  41586. (WebCore::XPath::EvaluationContext::EvaluationContext):
  41587. Get rid of the resolver in the evaluation context.
  41588. * xpath/impl/XPathGrammar.y:
  41589. Fetch the resolver from the parser. Only return the local name.
  41590. * xpath/impl/XPathParser.cpp:
  41591. (WebCore::XPath::Parser::parseStatement):
  41592. * xpath/impl/XPathParser.h:
  41593. (WebCore::XPath::Parser::resolver):
  41594. Update to hold the resolver.
  41595. * xpath/impl/XPathStep.cpp:
  41596. (WebCore::XPath::Step::Step):
  41597. If the parser has stored a namespace URI, set it.
  41598. (WebCore::XPath::Step::nodeTestMatches):
  41599. Check namespace URIs.
  41600. * xpath/impl/XPathStep.h:
  41601. Add m_namespaceURI.
  41602. 2006-06-03 Rob Buis <buis@kde.org>
  41603. Reviewed by mjs. Tweaked and landed by ddkilzer.
  41604. http://bugs.webkit.org/show_bug.cgi?id=7281
  41605. With java disabled wrong information is displayed.
  41606. Test: fast/replaced/applet-rendering-java-disabled.html
  41607. Match WinIE, render applet content inline when java is
  41608. disabled.
  41609. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderEmptyApplet.cpp and RenderEmptyApplet.h.
  41610. * WebCore.xcodeproj/project.pbxproj: Ditto.
  41611. * WebCoreSources.bkl: Ditto.
  41612. * html/HTMLAppletElement.cpp:
  41613. (WebCore::HTMLAppletElement::createRenderer):
  41614. * rendering/RenderEmptyApplet.cpp: Removed.
  41615. * rendering/RenderEmptyApplet.h: Removed.
  41616. 2006-06-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41617. Reviewed by Hyatt.
  41618. - fix http://bugs.webkit.org/show_bug.cgi?id=9252
  41619. REGRESSION: Very odd roll-over issues (content disappearing)
  41620. Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html
  41621. * html/HTMLLinkElement.cpp:
  41622. (WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
  41623. loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
  41624. count correct.
  41625. 2006-06-03 Darin Adler <darin@apple.com>
  41626. - fix Windows build
  41627. * platform/Widget.h: Moved scaleFactor function out of Apple-specific
  41628. section of the header into the common part.
  41629. 2006-06-03 Beth Dakin <bdakin@apple.com>
  41630. Reviewed by Darin.
  41631. Fix for <rdar://problem/4537274> HiDPI: <canvas> needs to apply a
  41632. scale. <canvas> needs to scale itself along with whatever scale
  41633. factor is set on the window.
  41634. * html/HTMLCanvasElement.cpp:
  41635. (WebCore::HTMLCanvasElement::createDrawingContext): Get the scale
  41636. factor and use it to create a larger buffer and to scale the
  41637. CGContext.
  41638. * platform/Widget.h: Provide a new function that returns the user
  41639. space scale factor.
  41640. * platform/mac/WidgetMac.mm:
  41641. (WebCore::Widget::scaleFactor): Get the scale factor from the
  41642. window and return it.
  41643. * platform/win/WidgetWin.cpp:
  41644. (WebCore::Widget::scaleFactor): Just return 1.0f for now.
  41645. 2006-06-03 Steve Falkenburg <sfalken@apple.com>
  41646. Reviewed by hyatt.
  41647. Don't send empty referrers. Fixes image load fail on Spinneret default content.
  41648. * platform/win/TransferJobWin.cpp:
  41649. (WebCore::TransferJob::start):
  41650. 2006-06-02 Adele Peterson <adele@apple.com>
  41651. Reviewed by Darin.
  41652. Windows theme for textareas. Also made some formatting changes.
  41653. * rendering/RenderThemeWin.cpp:
  41654. (WebCore::RenderThemeWin::supportsFocus):
  41655. (WebCore::RenderThemeWin::getThemeData):
  41656. (WebCore::RenderThemeWin::adjustButtonStyle):
  41657. (WebCore::RenderThemeWin::adjustTextFieldStyle):
  41658. (WebCore::RenderThemeWin::adjustTextAreaStyle):
  41659. (WebCore::RenderThemeWin::paintTextArea):
  41660. * rendering/RenderThemeWin.h:
  41661. (WebCore::RenderThemeWin::supportsHover):
  41662. 2006-06-02 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
  41663. Reviewed by Hyatt, checked in by Tim H.
  41664. Explicitly run perl on *.pl files instead of relying
  41665. on Windows shell figuring out which program to run for
  41666. this extention.
  41667. * DerivedSources.make:
  41668. 2006-06-02 David Carson <dacarson@gmail.com>
  41669. Reviewed by Hyatt, checked in by Tim H.
  41670. fixes http://bugs.webkit.org/show_bug.cgi?id=9115
  41671. Changed RenderLayer to only render layers that are not
  41672. totally transparent.
  41673. * rendering/RenderLayer.cpp
  41674. (RenderLayer::paintLayer):
  41675. Changed function to also check if the layer is totally transparent
  41676. and if it is, don't bother painting it.
  41677. 2006-06-02 Rob Buis <buis@kde.org>
  41678. Reviewed by Hyatt, checked in by Tim H.
  41679. http://bugs.webkit.org/show_bug.cgi?id=8223
  41680. WebKit fails to update style on element via DOM
  41681. Handle !important by detecting it and using a different code
  41682. path from normal priority.
  41683. * bindings/js/kjs_css.cpp:
  41684. (KJS::DOMCSSStyleDeclaration::put):
  41685. * css/CSSStyleDeclaration.cpp:
  41686. (WebCore::CSSStyleDeclaration::setProperty):
  41687. * css/CSSStyleDeclaration.h:
  41688. 2006-06-02 Darin Adler <darin@apple.com>
  41689. Reviewed by Geoff, checked in by Maciej.
  41690. - fix http://bugs.webkit.org/show_bug.cgi?id=9236
  41691. REGRESSION: focus method does not work on some elements before they are laid out
  41692. * dom/Element.cpp: (WebCore::Element::focus): Do the updateLayout call before
  41693. calling isFocusable, since isFocusable looks at the size of the renderer.
  41694. 2006-06-02 Steve Falkenburg <sfalken@apple.com>
  41695. Reviewed by darin.
  41696. Platform hookup fixes
  41697. * bridge/win/FrameWin.cpp:
  41698. (WebCore::FrameWin::urlSelected):
  41699. (WebCore::FrameWin::setTitle):
  41700. (WebCore::FrameWin::setStatusBarText):
  41701. * bridge/win/FrameWin.h:
  41702. * platform/win/TemporaryLinkStubs.cpp:
  41703. (FrameWin::overrideMediaType):
  41704. * platform/win/TransferJobWin.cpp:
  41705. (WebCore::TransferJobWndProc):
  41706. (WebCore::TransferJob::start):
  41707. (WebCore::TransferJob::fileLoadTimer):
  41708. (WebCore::TransferJob::cancel):
  41709. 2006-06-02 Rémi Zara <remi_zara@mac.com>
  41710. Reviewed by Hyatt.
  41711. - fix http://bugs.webkit.org/show_bug.cgi?id=3379
  41712. attr(X) does not work
  41713. Test: fast/css-generated-content/016.html
  41714. * css/cssstyleselector.cpp:
  41715. (WebCore::CSSStyleSelector::canShareStyleWithElement): Don't share style
  41716. if the unique bit is set.
  41717. (WebCore::CSSStyleSelector::applyProperty): When applying the "attr" property,
  41718. set the unique bit and add to m_selectorAttrs.
  41719. * rendering/render_style.cpp: Did a lot of reformatting, and this one real change.
  41720. (WebCore::RenderStyle::RenderStyle): Initialize m_unique to false.
  41721. * rendering/render_style.h:
  41722. (WebCore::RenderStyle::unique): Added. Returns value of m_unique.
  41723. (WebCore::RenderStyle::setUnique): Added. Sets m_unique.
  41724. 2006-06-02 David Kilzer <ddkilzer@kilzer.net>
  41725. Reviewed by mjs.
  41726. http://bugs.webkit.org/show_bug.cgi?id=9183
  41727. Finish renaming of RenderCanvas to RenderView
  41728. * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView".
  41729. 2006-06-01 Darin Adler <darin@apple.com>
  41730. - try to fix Windows build
  41731. * bridge/win/FrameWin.cpp: Added include of Decoder.h.
  41732. 2006-06-01 Darin Adler <darin@apple.com>
  41733. Reviewed by Maciej.
  41734. - WebCore doesn't need to load WebKit images any more; removed code for that
  41735. * WebCore.exp: Removed WebCoreImageRendererFactory.
  41736. * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRendererFactory.h/mm.
  41737. * bridge/mac/WebCoreFrameBridge.mm: Removed include of WebCoreImageRendererFactory.h.
  41738. * platform/mac/ImageMac.mm: Removed include of WebCoreImageRendererFactory.h.
  41739. * platform/mac/WebCoreImageRendererFactory.h: Removed.
  41740. * platform/mac/WebCoreImageRendererFactory.m: Removed.
  41741. 2006-06-01 Sam Weinig <sam.weinig@gmail.com>
  41742. Reviewed by Geoff, tweaked a bit by Darin.
  41743. - http://bugs.webkit.org/show_bug.cgi?id=9064
  41744. Split dom2_traversalimpl.* into separate files (one class per file).
  41745. * WebCore.xcodeproj/project.pbxproj: Updated for new files.
  41746. * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
  41747. * bindings/js/kjs_traversal.h:
  41748. * bindings/scripts/CodeGeneratorJS.pm:
  41749. * bindings/objc/DOM.mm:
  41750. * dom/Document.cpp:
  41751. * dom/Document.h:
  41752. Updated includes.
  41753. * dom/NodeFilter.cpp: Added.
  41754. * dom/NodeFilter.h: Added.
  41755. * dom/NodeFilterCondition.cpp: Added.
  41756. * dom/NodeFilterCondition.h: Added.
  41757. * dom/NodeIterator.cpp: Added.
  41758. * dom/NodeIterator.h: Added.
  41759. * dom/Traversal.cpp: Added.
  41760. * dom/Traversal.h: Added.
  41761. * dom/TreeWalker.cpp: Added.
  41762. * dom/TreeWalker.h: Added.
  41763. * dom/dom2_traversalimpl.cpp: Removed.
  41764. * dom/dom2_traversalimpl.h: Removed.
  41765. 2006-06-01 David Carson <dacarson@gmail.com>
  41766. Reviewed by Maciej and Adele
  41767. Fix for http://bugs.webkit.org/show_bug.cgi?id=8398
  41768. REGRESSION: LABEL in OPTION element is clobbering display #TEXT
  41769. Patch provided by Darin.
  41770. * rendering/RenderSelect.cpp
  41771. (RenderSelect::updateFromElement):
  41772. Changed to use the containing text by default, and not the label text
  41773. 2006-06-01 David Carson <dacarson@gmail.com>
  41774. Reviewed by Hyatt.
  41775. Fix for http://bugs.webkit.org/show_bug.cgi?id=8646
  41776. Correcting the value returned for window.screen.pixelDepth and
  41777. window.screen.colorDepth
  41778. * platform/mac/ScreenMac.mm
  41779. (screenDepth):
  41780. Changed to return the BitsPerPixelFromDepth rather than the WindowDepth
  41781. 2006-06-01 Adele Peterson <adele@apple.com>
  41782. Reviewed by Maciej.
  41783. Missed an initialization in my last checkin which caused too many
  41784. resizers to be drawn.
  41785. * rendering/render_style.cpp: (WebCore::resize):
  41786. Initialize resize to RESIZE_NONE.
  41787. 2006-06-01 Dave Hyatt <hyatt@apple.com>
  41788. Implement form POST using WinINet. This code is crazy... CRAZY!
  41789. * platform/TransferJobInternal.h:
  41790. (WebCore::TransferJobInternal::TransferJobInternal):
  41791. * platform/win/CookieJarWin.cpp:
  41792. (WebCore::setCookies):
  41793. (WebCore::cookies):
  41794. * platform/win/TransferJobWin.cpp:
  41795. (WebCore::TransferJobWndProc):
  41796. (WebCore::TransferJob::start):
  41797. 2006-06-01 Adele Peterson <adele@apple.com>
  41798. Reviewed by Hyatt.
  41799. Fix for http://bugs.webkit.org/show_bug.cgi?id=9216
  41800. Implement CSS3 resize property
  41801. * css/html4.css: Sets resize:both for textareas. This won't affect old-style textareas.
  41802. * css/CSSPropertyNames.in: Added resize property.
  41803. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Added case for CSS_PROP_RESIZE.
  41804. * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
  41805. * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): ditto.
  41806. * rendering/render_style.cpp: (WebCore::StyleCSS3InheritedData): Initialize resize.
  41807. * rendering/render_style.h:
  41808. (WebCore::): Added EResize enum.
  41809. (WebCore::RenderStyle::resize):
  41810. (WebCore::RenderStyle::setResize):
  41811. (WebCore::RenderStyle::initialResize):
  41812. * page/FrameView.cpp:
  41813. (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_resizeLayer to keep track of a layer that has begun resizing.
  41814. (WebCore::FrameViewPrivate::reset): Reset m_resizeLayer.
  41815. (WebCore::FrameView::handleMousePressEvent): If the mouse was pressed in a layer's resize control, then put the layer into resize mode.
  41816. (WebCore::selectCursor): Updated so we get a pointer cursor for the resize control.
  41817. (WebCore::FrameView::handleMouseMoveEvent): If there's a layer currently resizing, then tell the layer to continue resizing.
  41818. (WebCore::FrameView::handleMouseReleaseEvent): If there's a layer currently resizing, then pull it out of resize mode.
  41819. * rendering/RenderBlock.cpp: (WebCore::RenderBlock::isPointInScrollbar): Updated so the resize control isn't considered part of the scrollbar.
  41820. * rendering/RenderLayer.cpp:
  41821. (WebCore::RenderLayer::RenderLayer): Initialize m_inResizeMode
  41822. (WebCore::RenderLayer::updateLayerPositions): Calls positionResizeControl.
  41823. (WebCore::RenderLayer::resize): Added. Sets a new width and height based on the current mouse point.
  41824. (WebCore::RenderLayer::isPointInResizeControl): Added.
  41825. (WebCore::RenderLayer::positionResizeControl): Added.
  41826. (WebCore::RenderLayer::positionScrollbars): Calls positionResizeControl.
  41827. (WebCore::RenderLayer::paintScrollbars): Calls positionResizeControl.
  41828. (WebCore::RenderLayer::paintResizeControl): Added.
  41829. (WebCore::RenderLayer::paintLayer): Calls paintResizeControl.
  41830. * rendering/RenderLayer.h: Added m_inResizeMode.
  41831. (WebCore::RenderLayer::resizeControlRect):
  41832. (WebCore::RenderLayer::setResizeControlRect):
  41833. (WebCore::RenderLayer::inResizeMode): Added.
  41834. (WebCore::RenderLayer::setInResizeMode): Added.
  41835. * platform/mac/ImageMac.mm: (WebCore::Image::loadResource): Moved code from WebImageRendererFactory. Now loads images from WebCore's resources.
  41836. WebImageRendererFactory is no longer used and should be removed.
  41837. * Resources/missingImage.tiff: Added. Copied from WebKit.
  41838. * WebCore.xcodeproj/project.pbxproj: Added missingImage.tiff
  41839. * loader/Cache.cpp: (WebCore::Cache::init): Updated name from missing_image to missingImage.
  41840. * rendering/RenderTheme.h:
  41841. * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paintResizeControl): Added.
  41842. * rendering/RenderThemeMac.h:
  41843. * rendering/RenderThemeMac.mm:
  41844. (WebCore::RenderThemeMac::RenderThemeMac): Initialize resizeCornerImage.
  41845. (WebCore::RenderThemeMac::paintResizeControl): Paints resizeCornerImage.
  41846. 2006-06-01 Brady Eidson <beidson@apple.com>
  41847. Reviewed by Maciej.
  41848. Added the beginnings of sqlite-based code in a WebCore
  41849. based version of the Icon Database. Right now the code
  41850. is very loosely hooked up through a Bridge and only
  41851. creates an sqlite3 database.
  41852. There are also changes to our String classes to allow appending
  41853. a single character to a String without creating a temporary object.
  41854. * WebCore.exp:
  41855. -Added a symbol export
  41856. * WebCore.xcodeproj/project.pbxproj:
  41857. * bridge/mac/WebCoreIconDatabaseBridge.h: Added.
  41858. * bridge/mac/WebCoreIconDatabaseBridge.mm: Added.
  41859. (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
  41860. (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
  41861. (-[WebCoreIconDatabaseBridge isOpen]):
  41862. -This class will eventually shadow WebIconDatabase but for now
  41863. is a minimal interface to make the sql code live
  41864. * icon: Added.
  41865. * icon/IconDatabase.cpp: Added.
  41866. -This class will eventually resemble WebIconDatabase but for now
  41867. is minimal just to make the sql code live
  41868. (WebCore::IconDatabase::sharedIconDatabase):
  41869. (WebCore::IconDatabase::IconDatabase):
  41870. (WebCore::IconDatabase::open):
  41871. -This method calls a mkdir to make sure the target directory
  41872. exists
  41873. (WebCore::IconDatabase::close):
  41874. (WebCore::IconDatabase::~IconDatabase):
  41875. * icon/IconDatabase.h: Added.
  41876. (WebCore::IconDatabase::isOpen):
  41877. * platform/Logging.cpp:
  41878. * platform/Logging.h:
  41879. -Added an IconDatabase logging channel
  41880. * platform/PlatformString.h:
  41881. * platform/String.cpp:
  41882. (WebCore::String::append):
  41883. * platform/StringImpl.cpp:
  41884. (WebCore::StringImpl::append):
  41885. * platform/StringImpl.h:
  41886. -Added append(char) and append(UChar) to allow appending a
  41887. single character without creating a temporary object. Required
  41888. to facilitate manually adding a null character to a unicode 16
  41889. string
  41890. 2006-06-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41891. Reviewed and landed by Anders.
  41892. - fixed all places in the Canvas to RenderView rename patch where
  41893. view() should have been changed to frameView().
  41894. * kwq/WebCoreAXObject.mm:
  41895. (-[WebCoreAXObject position]):
  41896. (-[WebCoreAXObject accessibilityAttributeValue:]):
  41897. * rendering/RenderBlock.cpp:
  41898. (WebCore::RenderBlock::layoutBlock):
  41899. * rendering/RenderBox.cpp:
  41900. (WebCore::RenderBox::paintBackgroundExtended):
  41901. * rendering/RenderTreeAsText.cpp:
  41902. (externalRepresentation):
  41903. 2006-06-01 Geoffrey Garen <ggaren@apple.com>
  41904. Fix by Mitz. Reviewed, tweaked, tested, landed by me.
  41905. - Fixed http://bugs.webkit.org/show_bug.cgi?id=9113
  41906. REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with
  41907. a readystate == 4
  41908. An XMLHttpRequest must be added to the DOMObject cache so that its
  41909. DOM implementation object can protect it, and by extension, its event
  41910. listeners.
  41911. This design seems slightly backwards to me -- the bindings should know
  41912. about the DOM, not the other way around -- but I'm restoring it for
  41913. now to fix the regression.
  41914. * bindings/js/JSXMLHttpRequest.cpp:
  41915. (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
  41916. (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
  41917. 2006-06-01 Anders Carlsson <acarlsson@apple.com>
  41918. * platform/KURL.cpp:
  41919. (equalIgnoringRef):
  41920. Whoops. Fix build.
  41921. 2006-06-01 Anders Carlsson <acarlsson@apple.com>
  41922. Reviewed by Darin.
  41923. http://bugs.webkit.org/show_bug.cgi?id=6309
  41924. multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
  41925. * bindings/js/kjs_window.cpp:
  41926. (KJS::Location::put):
  41927. Handle the case where the hash starts with a "#". Also, don't do anything if the previous and new hashes
  41928. are equal.
  41929. * bridge/BrowserExtension.h:
  41930. * bridge/mac/BrowserExtensionMac.h:
  41931. * bridge/mac/BrowserExtensionMac.mm:
  41932. (WebCore::BrowserExtensionMac::historyURL):
  41933. * bridge/mac/WebCoreFrameBridge.h:
  41934. * bridge/mac/WebCoreFrameBridge.mm:
  41935. New function historyURL which returns the complete URL for a given item in the history.
  41936. * page/Frame.cpp:
  41937. (WebCore::Frame::scheduleLocationChange):
  41938. (WebCore::Frame::scheduleHistoryNavigation):
  41939. If the URL of the new location only differs in the hash, don't schedule the load. Instead, load it
  41940. directly.
  41941. * platform/KURL.cpp:
  41942. * platform/KURL.h:
  41943. Add equalsIgnoringRef which returns whether two URLs are equal, ignoring the ref.
  41944. 2006-06-01 Anders Carlsson <acarlsson@apple.com>
  41945. Reviewed by Maciej.
  41946. http://bugs.webkit.org/show_bug.cgi?id=9212
  41947. dispatchEvent13.html crashes under GuardMalloc
  41948. * dom/EventTargetNode.cpp:
  41949. (WebCore::EventTargetNode::addEventListener):
  41950. (WebCore::EventTargetNode::removeEventListener):
  41951. (WebCore::EventTargetNode::handleLocalEvents):
  41952. (WebCore::EventTargetNode::removeHTMLEventListener):
  41953. (WebCore::EventTargetNode::getHTMLEventListener):
  41954. * dom/EventTargetNode.h:
  41955. Make the list of registered event listeners refcount the listeners
  41956. by using a value list of RefPtr objects.
  41957. Set removed flag to true in removeEventListener
  41958. Only invoke event listeners if they don't have the removed flag.
  41959. * dom/dom2_eventsimpl.cpp:
  41960. (WebCore::RegisteredEventListener::RegisteredEventListener):
  41961. * dom/dom2_eventsimpl.h:
  41962. Make RegisteredEventListener refcounted.
  41963. (WebCore::RegisteredEventListener::removed):
  41964. (WebCore::RegisteredEventListener::setRemoved):
  41965. Add removed flag and getter and setter
  41966. 2006-06-01 Justin Garcia <justin.garcia@apple.com>
  41967. Reviewed by harrison
  41968. <rdar://problem/4567752> When forwarding a message, pressing TAB key to place caret in body actually selects the entire message instead
  41969. * dom/Element.cpp:
  41970. (WebCore::Element::focus):
  41971. 2006-06-01 David Kilzer <ddkilzer@kilzer.net>
  41972. Reviewed by darin.
  41973. http://bugs.webkit.org/show_bug.cgi?id=9144
  41974. Test for Bug 8079 (REGRESSION: Redraw from page cache does not show visited links)
  41975. * manual-tests/redraw-page-cache-visited-links.html: Added.
  41976. * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added.
  41977. 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41978. Reviewed by Hyatt.
  41979. - fix http://bugs.webkit.org/show_bug.cgi?id=9124
  41980. Drop shadow obscures "add more stuff" bubble at live.com
  41981. Test: fast/css/find-next-layer.html
  41982. * rendering/RenderObject.cpp:
  41983. (WebCore::RenderObject::findNextLayer): Fixed a bug where this function could reach
  41984. two levels down in the layer tree and return 0.
  41985. 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
  41986. Reviewed by Geoff.
  41987. - http://bugs.webkit.org/show_bug.cgi?id=9109
  41988. Remove bogus assertion in RenderBlock::tabWidth
  41989. Changed the uninitialized value of m_tabWidth to -1 and removed the
  41990. assertion that it cannot be 0.
  41991. * rendering/RenderBlock.cpp:
  41992. (WebCore:::RenderBlock::RenderBlock):
  41993. (WebCore::RenderBlock::setStyle):
  41994. * rendering/bidi.cpp:
  41995. (WebCore::RenderBlock::tabWidth):
  41996. 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
  41997. Reviewed by Hyatt.
  41998. - fix for http://bugs.webkit.org/show_bug.cgi?id=9100
  41999. Absolutely positioned replaced elements with all non-auto
  42000. values are rendered incorrectly
  42001. * rendering/RenderBox.cpp:
  42002. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Add support for case when all values are specified.
  42003. (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto
  42004. 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
  42005. Reviewed by Hyatt.
  42006. - fix http://bugs.webkit.org/show_bug.cgi?id=9012
  42007. Row height not updated when cell heights change
  42008. Test: fast/table/row-height-recalc.html
  42009. * rendering/RenderTableCell.cpp:
  42010. (WebCore::RenderTableCell::setStyle): Mark the section as needing recalculation
  42011. if the height property changed.
  42012. * rendering/RenderTableRow.cpp:
  42013. (WebCore::RenderTableRow::setStyle): Ditto.
  42014. * rendering/RenderTableSection.cpp:
  42015. (WebCore::RenderTableSection::recalcCells): Initialize the grid row height
  42016. to the height of the row element (like addChild() does).
  42017. 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
  42018. Reviewed by Hyatt.
  42019. - fix for http://bugs.webkit.org/show_bug.cgi?id=8969
  42020. REGRESSION: typing in textfield repaints whole web page at gamefaqs.com
  42021. No test possible (no functionality change)
  42022. * dom/Document.cpp:
  42023. (WebCore::Document::updateLayout): Changed to ensure that pending subtree
  42024. layouts are performed too.
  42025. * page/Frame.cpp:
  42026. (WebCore::Frame::forceLayout): Force a full layout.
  42027. * page/FrameView.cpp:
  42028. (WebCore::FrameViewPrivate::reset):
  42029. (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
  42030. at d->layoutRoot if it's non-zero and allowSubtree is true.
  42031. (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
  42032. normal relayout by clearing d->layoutRoot and propagating needsLayout to the
  42033. root.
  42034. (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
  42035. * page/FrameView.h:
  42036. * rendering/RenderObject.cpp:
  42037. (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
  42038. parameter. FrameView passes false to force marking all the way to the root
  42039. when turning a pending subtree relayout into a full relayout. Otherwise,
  42040. marking stops at the first textField (or at the root) and
  42041. relayout of the last object reached is scheduled.
  42042. (WebCore::RenderObject::scheduleRelayout):
  42043. * rendering/RenderObject.h:
  42044. 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
  42045. Reviewed by Darin.
  42046. patch for <http://bugs.webkit.org/show_bug.cgi?id=8910>
  42047. Bug 8910: Various code cleanups in RenderBox
  42048. Clean up with some slight optimizations.
  42049. * rendering/RenderBox.cpp:
  42050. (WebCore::RenderBox::contentWidth):
  42051. (WebCore::RenderBox::contentHeight):
  42052. (WebCore::RenderBox::setPos):
  42053. (WebCore::RenderBox::calcWidth):
  42054. (WebCore::RenderBox::calcWidthUsing):
  42055. * rendering/RenderBox.h:
  42056. 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
  42057. Reviewed by Hyatt.
  42058. patch for <http://bugs.webkit.org/show_bug.cgi?id=8899>
  42059. Bug 8899: Removes some unneeded code from RenderBox
  42060. Removes the use of WidthType where not needed to simplify
  42061. the code a little.
  42062. * rendering/RenderBox.cpp:
  42063. (WebCore::RenderBox::calcWidthUsing):
  42064. (WebCore::RenderBox::sizesToIntrinsicWidth):
  42065. (WebCore::RenderBox::calcReplacedWidth):
  42066. (WebCore::RenderBox::calcReplacedWidthUsing):
  42067. (WebCore::RenderBox::calcReplacedHeight):
  42068. (WebCore::RenderBox::calcReplacedHeightUsing):
  42069. * rendering/RenderBox.h:
  42070. (WebCore::):
  42071. (WebCore::RenderBox::renderName):
  42072. * rendering/RenderImage.cpp:
  42073. (WebCore::RenderImage::calcReplacedWidth):
  42074. (WebCore::RenderImage::calcReplacedHeight):
  42075. 2006-05-31 Rob Buis <buis@kde.org>
  42076. Reviewed by Geoff.
  42077. Fix for http://bugs.webkit.org/show_bug.cgi?id=8455
  42078. selectedIndex for a select after a Form reset() has wrong value
  42079. Make sure the list items are reset properly by selecting
  42080. the first option in case no options have the selected attribute
  42081. set.
  42082. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::reset):
  42083. 2006-05-31 Rob Buis <buis@kde.org>
  42084. Reviewed by Geoff.
  42085. Fix for http://bugs.webkit.org/show_bug.cgi?id=8024
  42086. "Go" button (search) doesn't work at fifa.com (document.all.FormName)
  42087. Allow input elements with name attributes as possible named
  42088. items for document.all.
  42089. * html/HTMLCollection.cpp:
  42090. (WebCore::HTMLCollection::checkForNameMatch):
  42091. (WebCore::HTMLCollection::updateNameCache):
  42092. 2006-05-31 Dave Hyatt <hyatt@apple.com>
  42093. Adding stubs for BMP/ICO/XBM image decoders. They don't
  42094. do anything yet though.
  42095. * WebCore.vcproj/WebCore/WebCore.vcproj:
  42096. * platform/cairo/ImageSourceCairo.cpp:
  42097. (WebCore::createDecoder):
  42098. * platform/image-decoders/bmp: Added.
  42099. * platform/image-decoders/bmp/BMPImageDecoder.cpp: Added.
  42100. (WebCore::BMPImageDecoder::isSizeAvailable):
  42101. (WebCore::BMPImageDecoder::frameBufferAtIndex):
  42102. * platform/image-decoders/bmp/BMPImageDecoder.h: Added.
  42103. * platform/image-decoders/ico: Added.
  42104. * platform/image-decoders/ico/ICOImageDecoder.cpp: Added.
  42105. (WebCore::ICOImageDecoder::isSizeAvailable):
  42106. (WebCore::ICOImageDecoder::frameBufferAtIndex):
  42107. * platform/image-decoders/ico/ICOImageDecoder.h: Added.
  42108. * platform/image-decoders/xbm: Added.
  42109. * platform/image-decoders/xbm/XBMImageDecoder.cpp: Added.
  42110. (WebCore::XBMImageDecoder::isSizeAvailable):
  42111. (WebCore::XBMImageDecoder::frameBufferAtIndex):
  42112. * platform/image-decoders/xbm/XBMImageDecoder.h: Added.
  42113. 2006-05-31 David Hyatt <hyatt@apple.com>
  42114. Fix for the gmail tab-focus-stealing bug.
  42115. Reviewed by darin
  42116. * bindings/js/kjs_window.cpp:
  42117. (KJS::WindowFunc::callAsFunction):
  42118. * bridge/mac/BrowserExtensionMac.mm:
  42119. (WebCore::BrowserExtensionMac::createNewWindow):
  42120. * bridge/mac/FrameMac.h:
  42121. * bridge/mac/FrameMac.mm:
  42122. (WebCore::FrameMac::focusWindow):
  42123. (WebCore::FrameMac::unfocusWindow):
  42124. * bridge/mac/WebCoreFrameBridge.h:
  42125. * page/Frame.h:
  42126. * platform/Widget.h:
  42127. * platform/mac/WidgetMac.mm:
  42128. * platform/win/TemporaryLinkStubs.cpp:
  42129. (FrameWin::focusWindow):
  42130. * platform/win/WidgetWin.cpp:
  42131. 2006-05-31 Beth Dakin <bdakin@apple.com>
  42132. Reviewed by Hyatt.
  42133. Fix for http://bugs.webkit.org/show_bug.cgi?id=6755 CSS3:
  42134. Borders rounded with border-radius don't draw the roundings
  42135. This patch does not draw all of the different border styles
  42136. perfectly, so I have filed a few followup bugs that I will
  42137. reference from this Bugzilla.
  42138. * platform/GraphicsContext.h:
  42139. * platform/cairo/GraphicsContextCairo.cpp:
  42140. (WebCore::GraphicsContext::drawArc): drawArc() has different
  42141. parameters now, but mostly this needs to be implemented to match
  42142. the Mac side later.
  42143. (WebCore::GraphicsContext::addRoundedRectClip): Just a stub.
  42144. Implement this later.
  42145. (WebCore::GraphicsContext::addInnerRoundedRectClip): Just a stub.
  42146. Implement this later.
  42147. * platform/cg/GraphicsContextCG.cpp:
  42148. (WebCore::GraphicsContext::drawArc): drawArc() now handles drawing
  42149. elliptical arcs as well as circular arcs, it also takes a thickness
  42150. parameter to draw an arc of a given thickness and draws with the
  42151. appropriate pen style.
  42152. (WebCore::GraphicsContext::addInnerRoundedRectClip): Adds a clip to
  42153. the inside of an arc instead of to the outside which is already
  42154. done by addRoundedClipRect()
  42155. * rendering/RenderObject.cpp:
  42156. (WebCore::RenderObject::drawBorderArc): Draws the border arcs in
  42157. the appropriate styles.
  42158. (WebCore::RenderObject::paintBorder): Calls drawBorderArc() when
  42159. border arcs are needed.
  42160. * rendering/RenderObject.h:
  42161. 2006-05-30 Eric Seidel <eric@webkit.org>
  42162. Reviewed by andersca.
  42163. Add first-cut SVG JS bindings autogeneration.
  42164. SVGSVGElement and various other support classes are generated.
  42165. Various small style fixes.
  42166. http://bugs.webkit.org/show_bug.cgi?id=4249
  42167. * DerivedSources.make:
  42168. * WebCore+SVG/RGBColor.cpp: Removed.
  42169. * WebCore+SVG/RGBColor.h: Removed.
  42170. * WebCore.xcodeproj/project.pbxproj:
  42171. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  42172. (WebCore::createJSHTMLWrapper): renamed from createJSWrapper
  42173. * bindings/js/JSHTMLElementWrapperFactory.h:
  42174. * bindings/js/kjs_dom.cpp:
  42175. (KJS::DOMNode::DOMNode):
  42176. (KJS::DOMNode::toBoolean):
  42177. (KJS::DOMNode::getOwnPropertySlot):
  42178. (KJS::DOMNode::getValueProperty):
  42179. (KJS::DOMNode::put):
  42180. (KJS::DOMNode::putValueProperty):
  42181. (KJS::DOMNode::toPrimitive):
  42182. (KJS::DOMNode::toString):
  42183. (KJS::DOMNodeProtoFunc::callAsFunction):
  42184. (KJS::toEventTargetNode):
  42185. (KJS::DOMEventTargetNode::getOwnPropertySlot):
  42186. (KJS::DOMEventTargetNode::getValueProperty):
  42187. (KJS::DOMEventTargetNode::put):
  42188. (KJS::DOMEventTargetNode::putValueProperty):
  42189. (KJS::DOMEventTargetNode::setListener):
  42190. (KJS::DOMEventTargetNode::getListener):
  42191. (KJS::DOMEventTargetNode::pushEventHandlerScope):
  42192. (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
  42193. (KJS::DOMNodeList::toPrimitive):
  42194. (KJS::DOMNodeList::getValueProperty):
  42195. (KJS::DOMNodeList::indexGetter):
  42196. (KJS::DOMNodeList::nameGetter):
  42197. (KJS::DOMNodeList::getOwnPropertySlot):
  42198. (KJS::DOMNodeList::callAsFunction):
  42199. (KJS::DOMNodeListFunc::callAsFunction):
  42200. (KJS::toElement):
  42201. (KJS::toDocumentType):
  42202. (KJS::DOMNamedNodeMap::DOMNamedNodeMap):
  42203. (KJS::DOMNamedNodeMap::~DOMNamedNodeMap):
  42204. (KJS::DOMNamedNodeMap::lengthGetter):
  42205. (KJS::DOMNamedNodeMap::indexGetter):
  42206. (KJS::DOMNamedNodeMap::nameGetter):
  42207. (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
  42208. (KJS::toJS):
  42209. (KJS::checkNodeSecurity):
  42210. (KJS::getRuntimeObject):
  42211. (KJS::DOMExceptionConstructor::getOwnPropertySlot):
  42212. (KJS::DOMExceptionConstructor::getValueProperty):
  42213. (KJS::getDOMExceptionConstructor):
  42214. (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
  42215. (KJS::DOMNamedNodesCollection::lengthGetter):
  42216. (KJS::DOMNamedNodesCollection::indexGetter):
  42217. (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
  42218. * bindings/scripts/CodeGenerator.pm:
  42219. * bindings/scripts/CodeGeneratorJS.pm:
  42220. * dom/Document.cpp:
  42221. (WebCore::Document::implicitClose):
  42222. * dom/Element.h:
  42223. * dom/StyledElement.h:
  42224. * ksvg2/bindings/idl/svg/SVGAngle.idl: Removed.
  42225. * ksvg2/bindings/idl/svg/SVGAnimatedLength.idl: Removed.
  42226. * ksvg2/bindings/idl/svg/SVGColor.idl: Removed.
  42227. * ksvg2/bindings/idl/svg/SVGDocument.idl: Removed.
  42228. * ksvg2/bindings/idl/svg/SVGElement.idl: Removed.
  42229. * ksvg2/bindings/idl/svg/SVGLength.idl: Removed.
  42230. * ksvg2/bindings/idl/svg/SVGMatrix.idl: Removed.
  42231. * ksvg2/bindings/idl/svg/SVGNumber.idl: Removed.
  42232. * ksvg2/bindings/idl/svg/SVGPoint.idl: Removed.
  42233. * ksvg2/bindings/idl/svg/SVGRect.idl: Removed.
  42234. * ksvg2/bindings/idl/svg/SVGSVGElement.idl: Removed.
  42235. * ksvg2/bindings/idl/svg/SVGTransform.idl: Removed.
  42236. * ksvg2/bindings/idl/svg/kdomdefs.idl: Removed.
  42237. * ksvg2/bindings/js: Added.
  42238. * ksvg2/bindings/js/JSSVGNumber.cpp: Added.
  42239. (WebCore::):
  42240. (WebCore::JSSVGNumber::~JSSVGNumber):
  42241. (WebCore::JSSVGNumber::getOwnPropertySlot):
  42242. (WebCore::JSSVGNumber::getValue):
  42243. (WebCore::getJSSVGNumber):
  42244. * ksvg2/bindings/js/JSSVGNumber.h: Added.
  42245. (WebCore::JSSVGNumber::JSSVGNumber):
  42246. (WebCore::JSSVGNumber::classInfo):
  42247. * ksvg2/bindings/js/JSSVGPoint.cpp: Added.
  42248. (WebCore::):
  42249. (WebCore::JSSVGPoint::~JSSVGPoint):
  42250. (WebCore::JSSVGPoint::getOwnPropertySlot):
  42251. (WebCore::JSSVGPoint::getValueProperty):
  42252. (WebCore::getJSSVGPoint):
  42253. (WebCore::toFloatPoint):
  42254. * ksvg2/bindings/js/JSSVGPoint.h: Added.
  42255. (WebCore::JSSVGPoint::JSSVGPoint):
  42256. (WebCore::JSSVGPoint::classInfo):
  42257. (WebCore::JSSVGPoint::):
  42258. (WebCore::JSSVGPoint::impl):
  42259. * ksvg2/bindings/js/JSSVGRect.cpp: Added.
  42260. (WebCore::):
  42261. (WebCore::JSSVGRect::~JSSVGRect):
  42262. (WebCore::JSSVGRect::getOwnPropertySlot):
  42263. (WebCore::JSSVGRect::getValueProperty):
  42264. (WebCore::getJSSVGRect):
  42265. (WebCore::toFloatRect):
  42266. * ksvg2/bindings/js/JSSVGRect.h: Added.
  42267. (WebCore::JSSVGRect::JSSVGRect):
  42268. (WebCore::JSSVGRect::classInfo):
  42269. (WebCore::JSSVGRect::):
  42270. (WebCore::JSSVGRect::impl):
  42271. * ksvg2/css/SVGCSSParser.cpp:
  42272. (WebCore::CSSParser::parseSVGValue):
  42273. * ksvg2/css/SVGCSSStyleSelector.cpp:
  42274. (WebCore::CSSStyleSelector::applySVGProperty):
  42275. * ksvg2/events/SVGZoomEvent.cpp:
  42276. (SVGZoomEvent::SVGZoomEvent):
  42277. (SVGZoomEvent::zoomRectScreen):
  42278. (SVGZoomEvent::previousTranslate):
  42279. (SVGZoomEvent::newTranslate):
  42280. * ksvg2/events/SVGZoomEvent.h:
  42281. * ksvg2/ksvg.h:
  42282. (WebCore::):
  42283. * ksvg2/misc/SVGDocumentExtensions.cpp:
  42284. (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
  42285. (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions):
  42286. (WebCore::SVGDocumentExtensions::addTimeContainer):
  42287. (WebCore::SVGDocumentExtensions::removeTimeContainer):
  42288. (WebCore::SVGDocumentExtensions::startAnimations):
  42289. (WebCore::SVGDocumentExtensions::pauseAnimations):
  42290. (WebCore::SVGDocumentExtensions::unpauseAnimations):
  42291. * ksvg2/misc/SVGDocumentExtensions.h:
  42292. * ksvg2/svg/SVGAElement.h:
  42293. * ksvg2/svg/SVGAngle.h:
  42294. (WebCore::SVGAngle::):
  42295. * ksvg2/svg/SVGAngle.idl: Added.
  42296. * ksvg2/svg/SVGAnimateColorElement.cpp:
  42297. (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
  42298. (WebCore::SVGAnimateColorElement::handleTimerEvent):
  42299. (WebCore::SVGAnimateColorElement::clampColor):
  42300. * ksvg2/svg/SVGAnimateColorElement.h:
  42301. * ksvg2/svg/SVGAnimateElement.cpp:
  42302. (SVGAnimateElement::SVGAnimateElement):
  42303. (SVGAnimateElement::handleTimerEvent):
  42304. * ksvg2/svg/SVGAnimateElement.h:
  42305. * ksvg2/svg/SVGAnimateTransformElement.cpp:
  42306. (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
  42307. (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
  42308. (WebCore::SVGAnimateTransformElement::handleTimerEvent):
  42309. (WebCore::SVGAnimateTransformElement::parseTransformValue):
  42310. (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
  42311. (WebCore::SVGAnimateTransformElement::initialMatrix):
  42312. * ksvg2/svg/SVGAnimateTransformElement.h:
  42313. * ksvg2/svg/SVGAnimatedLength.idl: Added.
  42314. * ksvg2/svg/SVGAnimationElement.cpp:
  42315. (SVGAnimationElement::closeRenderer):
  42316. * ksvg2/svg/SVGAnimationElement.h:
  42317. * ksvg2/svg/SVGCircleElement.h:
  42318. * ksvg2/svg/SVGClipPathElement.h:
  42319. * ksvg2/svg/SVGColor.cpp:
  42320. (WebCore::SVGColor::SVGColor):
  42321. (WebCore::SVGColor::rgbColor):
  42322. (WebCore::SVGColor::setRGBColor):
  42323. (WebCore::SVGColor::setRGBColorICCColor):
  42324. (WebCore::SVGColor::setColor):
  42325. (WebCore::SVGColor::color):
  42326. * ksvg2/svg/SVGColor.h:
  42327. (WebCore::SVGColor::):
  42328. (WebCore::SVGColor::setRGBColor):
  42329. * ksvg2/svg/SVGColor.idl: Added.
  42330. * ksvg2/svg/SVGComponentTransferFunctionElement.h:
  42331. * ksvg2/svg/SVGCursorElement.h:
  42332. * ksvg2/svg/SVGDefsElement.h:
  42333. * ksvg2/svg/SVGDescElement.h:
  42334. * ksvg2/svg/SVGDocument.idl: Added.
  42335. * ksvg2/svg/SVGElement.cpp:
  42336. (WebCore::SVGElement::SVGElement):
  42337. (WebCore::SVGElement::isSupported):
  42338. (WebCore::SVGElement::id):
  42339. (WebCore::SVGElement::setId):
  42340. (WebCore::SVGElement::xmlbase):
  42341. (WebCore::SVGElement::setXmlbase):
  42342. (WebCore::SVGElement::ownerSVGElement):
  42343. (WebCore::SVGElement::viewportElement):
  42344. (WebCore::SVGElement::tryGetAttribute):
  42345. (WebCore::SVGElement::tryGetAttributeNS):
  42346. (WebCore::SVGElement::childShouldCreateRenderer):
  42347. * ksvg2/svg/SVGElement.h:
  42348. * ksvg2/svg/SVGElement.idl: Added.
  42349. * ksvg2/svg/SVGEllipseElement.h:
  42350. * ksvg2/svg/SVGEvent.idl: Added.
  42351. * ksvg2/svg/SVGFEBlendElement.h:
  42352. * ksvg2/svg/SVGFEColorMatrixElement.h:
  42353. * ksvg2/svg/SVGFEComponentTransferElement.h:
  42354. * ksvg2/svg/SVGFECompositeElement.h:
  42355. * ksvg2/svg/SVGFEDiffuseLightingElement.h:
  42356. * ksvg2/svg/SVGFEDistantLightElement.h:
  42357. * ksvg2/svg/SVGFEFloodElement.h:
  42358. * ksvg2/svg/SVGFEFuncAElement.h:
  42359. * ksvg2/svg/SVGFEFuncBElement.h:
  42360. * ksvg2/svg/SVGFEFuncGElement.h:
  42361. * ksvg2/svg/SVGFEFuncRElement.h:
  42362. * ksvg2/svg/SVGFEGaussianBlurElement.h:
  42363. * ksvg2/svg/SVGFEImageElement.h:
  42364. * ksvg2/svg/SVGFELightElement.h:
  42365. * ksvg2/svg/SVGFEMergeElement.h:
  42366. * ksvg2/svg/SVGFEMergeNodeElement.h:
  42367. * ksvg2/svg/SVGFEOffsetElement.h:
  42368. * ksvg2/svg/SVGFEPointLightElement.h:
  42369. * ksvg2/svg/SVGFESpecularLightingElement.h:
  42370. * ksvg2/svg/SVGFESpotLightElement.h:
  42371. * ksvg2/svg/SVGFETileElement.h:
  42372. * ksvg2/svg/SVGFETurbulenceElement.h:
  42373. * ksvg2/svg/SVGFilterElement.h:
  42374. * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
  42375. * ksvg2/svg/SVGForeignObjectElement.h:
  42376. * ksvg2/svg/SVGGElement.h:
  42377. * ksvg2/svg/SVGGradientElement.h:
  42378. * ksvg2/svg/SVGHelper.cpp:
  42379. (WebCore::SVGHelper::PercentageOfViewport):
  42380. (WebCore::SVGHelper::ParseSeperatedList):
  42381. * ksvg2/svg/SVGImageElement.h:
  42382. * ksvg2/svg/SVGLength.h:
  42383. (WebCore::SVGLength::):
  42384. * ksvg2/svg/SVGLength.idl: Added.
  42385. * ksvg2/svg/SVGLineElement.h:
  42386. * ksvg2/svg/SVGLinearGradientElement.h:
  42387. * ksvg2/svg/SVGLocatable.cpp:
  42388. (SVGLocatable::getBBox):
  42389. * ksvg2/svg/SVGLocatable.h:
  42390. * ksvg2/svg/SVGMarkerElement.h:
  42391. * ksvg2/svg/SVGMaskElement.h:
  42392. * ksvg2/svg/SVGMatrix.cpp:
  42393. (SVGMatrix::inverse):
  42394. (SVGMatrix::rotateFromVector):
  42395. * ksvg2/svg/SVGMatrix.h:
  42396. * ksvg2/svg/SVGMatrix.idl: Added.
  42397. * ksvg2/svg/SVGNumber.idl: Added.
  42398. * ksvg2/svg/SVGPathElement.cpp:
  42399. (WebCore::SVGPathElement::getPointAtLength):
  42400. * ksvg2/svg/SVGPathElement.h:
  42401. * ksvg2/svg/SVGPatternElement.cpp:
  42402. (WebCore::SVGPatternElement::x):
  42403. (WebCore::SVGPatternElement::y):
  42404. (WebCore::SVGPatternElement::width):
  42405. (WebCore::SVGPatternElement::height):
  42406. (WebCore::SVGPatternElement::pushAttributeContext):
  42407. (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
  42408. (WebCore::SVGPatternElement::drawPatternContentIntoTile):
  42409. (WebCore::SVGPatternElement::notifyClientsToRepaint):
  42410. (WebCore::SVGPatternElement::notifyAttributeChange):
  42411. (WebCore::SVGPatternElement::canvasResource):
  42412. (WebCore::SVGPatternElement::getCTM):
  42413. * ksvg2/svg/SVGPatternElement.h:
  42414. * ksvg2/svg/SVGPoint.idl: Added.
  42415. * ksvg2/svg/SVGPolyElement.h:
  42416. * ksvg2/svg/SVGPolygonElement.h:
  42417. * ksvg2/svg/SVGPolylineElement.h:
  42418. * ksvg2/svg/SVGRadialGradientElement.h:
  42419. * ksvg2/svg/SVGRect.idl: Added.
  42420. * ksvg2/svg/SVGRectElement.h:
  42421. * ksvg2/svg/SVGSVGElement.cpp:
  42422. (WebCore::SVGSVGElement::SVGSVGElement):
  42423. (WebCore::SVGSVGElement::~SVGSVGElement):
  42424. (WebCore::SVGSVGElement::viewport):
  42425. (WebCore::SVGSVGElement::currentTranslate):
  42426. (WebCore::SVGSVGElement::unsuspendRedraw):
  42427. (WebCore::SVGSVGElement::getIntersectionList):
  42428. (WebCore::SVGSVGElement::getEnclosureList):
  42429. (WebCore::SVGSVGElement::checkIntersection):
  42430. (WebCore::SVGSVGElement::checkEnclosure):
  42431. (WebCore::SVGSVGElement::createSVGNumber):
  42432. (WebCore::SVGSVGElement::createSVGPoint):
  42433. (WebCore::SVGSVGElement::createSVGRect):
  42434. (WebCore::SVGSVGElement::pauseAnimations):
  42435. (WebCore::SVGSVGElement::unpauseAnimations):
  42436. (WebCore::SVGSVGElement::animationsPaused):
  42437. (WebCore::SVGSVGElement::getCurrentTime):
  42438. (WebCore::SVGSVGElement::setCurrentTime):
  42439. * ksvg2/svg/SVGSVGElement.h:
  42440. (WebCore::SVGSVGElement::timeScheduler):
  42441. * ksvg2/svg/SVGSVGElement.idl: Added.
  42442. * ksvg2/svg/SVGScriptElement.h:
  42443. * ksvg2/svg/SVGSetElement.cpp:
  42444. (WebCore::SVGSetElement::SVGSetElement):
  42445. (WebCore::SVGSetElement::handleTimerEvent):
  42446. * ksvg2/svg/SVGSetElement.h:
  42447. * ksvg2/svg/SVGStopElement.h:
  42448. * ksvg2/svg/SVGStyleElement.h:
  42449. * ksvg2/svg/SVGStyledElement.h:
  42450. * ksvg2/svg/SVGStyledLocatableElement.cpp:
  42451. (SVGStyledLocatableElement::getBBox):
  42452. * ksvg2/svg/SVGStyledLocatableElement.h:
  42453. * ksvg2/svg/SVGStyledTransformableElement.cpp:
  42454. (SVGStyledTransformableElement::getBBox):
  42455. * ksvg2/svg/SVGStyledTransformableElement.h:
  42456. * ksvg2/svg/SVGSwitchElement.h:
  42457. * ksvg2/svg/SVGSymbolElement.h:
  42458. * ksvg2/svg/SVGTRefElement.h:
  42459. * ksvg2/svg/SVGTSpanElement.h:
  42460. * ksvg2/svg/SVGTextContentElement.cpp:
  42461. (SVGTextContentElement::getStartPositionOfChar):
  42462. (SVGTextContentElement::getEndPositionOfChar):
  42463. (SVGTextContentElement::getExtentOfChar):
  42464. (SVGTextContentElement::getCharNumAtPosition):
  42465. (SVGTextContentElement::parseMappedAttribute):
  42466. * ksvg2/svg/SVGTextContentElement.h:
  42467. * ksvg2/svg/SVGTextElement.cpp:
  42468. (WebCore::SVGTextElement::getBBox):
  42469. * ksvg2/svg/SVGTextElement.h:
  42470. * ksvg2/svg/SVGTextPositioningElement.h:
  42471. * ksvg2/svg/SVGTitleElement.h:
  42472. * ksvg2/svg/SVGTransform.h:
  42473. (WebCore::SVGTransform::):
  42474. * ksvg2/svg/SVGTransform.idl: Added.
  42475. * ksvg2/svg/SVGUseElement.h:
  42476. * ksvg2/svg/SVGViewElement.h:
  42477. * page/Frame.cpp:
  42478. (WebCore::Frame::Frame):
  42479. (WebCore::Frame::pauseTimeouts):
  42480. (WebCore::Frame::resumeTimeouts):
  42481. * platform/Color.h:
  42482. * rendering/RenderBR.h:
  42483. * rendering/RenderBox.h:
  42484. (WebCore::RenderBox::renderName):
  42485. * rendering/RenderCanvas.h:
  42486. (WebCore::RenderCanvas::view):
  42487. * rendering/RenderContainer.h:
  42488. * rendering/RenderFlexibleBox.h:
  42489. * rendering/RenderFlow.h:
  42490. (WebCore::RenderFlow::RenderFlow):
  42491. * rendering/RenderInline.h:
  42492. * rendering/RenderTableSection.h:
  42493. * rendering/RenderTextFragment.h:
  42494. (WebCore::RenderTextFragment::contentString):
  42495. * xml/xmlattrs.in: Added.
  42496. 2006-05-30 Geoffrey Garen <ggaren@apple.com>
  42497. Reviewed by Maciej.
  42498. - Fixed <rdar://problem/4559720> window sizing: make javascript window
  42499. and screen sizing methods and properties work @ HIDPI
  42500. The general approach here is to change some ints to floats, make
  42501. a few key functions that scale between WebView and window/screen
  42502. coordinates, and change other functions that work with screen
  42503. coordinates to use the scaling functions for their underlying
  42504. implementations.
  42505. * manual-tests/window-open-features.html: Removed.
  42506. * manual-tests/window-sizing.html: Added. More test coverage.
  42507. * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
  42508. FloatRects, because window coordinates can be fractional when scaled
  42509. to WebView/DOM coordinates.
  42510. (KJS::floatFeature):
  42511. (KJS::showModalDialog):
  42512. (KJS::Window::getValueProperty):
  42513. (KJS::constrainToVisible):
  42514. (KJS::WindowFunc::callAsFunction):
  42515. * bridge/BrowserExtension.h:
  42516. * bridge/mac/BrowserExtensionMac.mm:
  42517. (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
  42518. code and replaced with calls to Page::windowRect and
  42519. Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
  42520. 'frameBridge,' respectively.
  42521. * bridge/mac/PageMac.mm:
  42522. (WebCore::Page::windowRect): Changed to use scaling
  42523. (WebCore::Page::setWindowRect): ditto
  42524. * bridge/mac/WebCoreFrameBridge.mm:
  42525. (globalPoint):
  42526. * page/Page.h:
  42527. * platform/IntRect.h:
  42528. * platform/Screen.h:
  42529. * platform/mac/MouseEventMac.mm:
  42530. (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
  42531. * platform/mac/ScreenMac.mm:
  42532. (WebCore::flipScreenRect): New key function
  42533. (WebCore::flipScreenPoint): New key function
  42534. (WebCore::scaleScreenRectToView): New key function
  42535. (WebCore::scaleViewRectToScreen): New key function
  42536. (WebCore::screenRect): Changed to use scaling
  42537. (WebCore::usableScreenRect): ditto
  42538. Feeble attempt to preserve Windows build:
  42539. * platform/win/ScreenWin.cpp:
  42540. (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
  42541. (WebCore::scaleWidgetRectToScreen): ditto
  42542. * bridge/win/PageWin.cpp:
  42543. (WebCore::Page::Page):
  42544. (WebCore::Page::widget):
  42545. 2006-05-30 David Hyatt <hyatt@apple.com>
  42546. Rename RenderCanvas to RenderView. Rename canvas(), isCanvas()
  42547. to view(), isView(). Rename the frame view accessor on the old canvas
  42548. from view() to frameView() (to avoid view()->view(), since that just looks
  42549. stupid). :)
  42550. Reviewed by andersca
  42551. * WebCore.vcproj/WebCore/WebCore.vcproj:
  42552. * WebCore.xcodeproj/project.pbxproj:
  42553. * bindings/js/kjs_dom.cpp:
  42554. * bindings/js/kjs_window.cpp:
  42555. * bridge/mac/FrameMac.mm:
  42556. * bridge/mac/WebCoreFrameBridge.mm:
  42557. (-[WebCoreFrameBridge _setupRootForPrinting:]):
  42558. (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
  42559. (-[WebCoreFrameBridge selectionColor]):
  42560. (-[WebCoreFrameBridge accessibilityTree]):
  42561. * dom/Document.cpp:
  42562. (WebCore::Document::attach):
  42563. (WebCore::Document::updateSelection):
  42564. (WebCore::Document::prepareMouseEvent):
  42565. * editing/SelectionController.cpp:
  42566. * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
  42567. * ksvg2/svg/SVGClipPathElement.cpp:
  42568. (SVGClipPathElement::canvasResource):
  42569. * ksvg2/svg/SVGFEFloodElement.cpp:
  42570. (SVGFEFloodElement::filterEffect):
  42571. * ksvg2/svg/SVGGradientElement.cpp:
  42572. (SVGGradientElement::rebuildStops):
  42573. * ksvg2/svg/SVGHelper.cpp:
  42574. (SVGHelper::PercentageOfViewport):
  42575. * ksvg2/svg/SVGPathElement.cpp:
  42576. (WebCore::SVGPathElement::getPointAtLength):
  42577. * ksvg2/svg/SVGSVGElement.cpp:
  42578. (WebCore::SVGSVGElement::currentTranslate):
  42579. * ksvg2/svg/SVGStyledElement.cpp:
  42580. (WebCore::SVGStyledElement::view):
  42581. (WebCore::SVGStyledElement::pushAttributeContext):
  42582. * ksvg2/svg/SVGStyledElement.h:
  42583. * kwq/WebCoreAXObject.mm:
  42584. (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
  42585. (-[WebCoreAXObject role]):
  42586. (-[WebCoreAXObject value]):
  42587. (-[WebCoreAXObject position]):
  42588. (-[WebCoreAXObject accessibilityIsIgnored]):
  42589. (-[WebCoreAXObject accessibilityAttributeNames]):
  42590. (-[WebCoreAXObject topView]):
  42591. (-[WebCoreAXObject accessibilityAttributeValue:]):
  42592. * page/Frame.cpp:
  42593. (WebCore::Frame::selectionRect):
  42594. (WebCore::Frame::paint):
  42595. (WebCore::Frame::adjustPageHeight):
  42596. (WebCore::Frame::forceLayoutWithPageWidthRange):
  42597. * page/FrameView.cpp:
  42598. (WebCore::FrameView::adjustViewSize):
  42599. (WebCore::FrameView::layout):
  42600. * page/FrameView.h:
  42601. * rendering/AutoTableLayout.cpp:
  42602. (WebCore::shouldScaleColumns):
  42603. * rendering/RenderBlock.cpp:
  42604. (WebCore::RenderBlock::MarginInfo::MarginInfo):
  42605. (WebCore::RenderBlock::isSelfCollapsingBlock):
  42606. (WebCore::RenderBlock::layoutBlock):
  42607. (WebCore::RenderBlock::paintChildren):
  42608. (WebCore::RenderBlock::setSelectionState):
  42609. (WebCore::RenderBlock::isSelectionRoot):
  42610. (WebCore::RenderBlock::fillInlineSelectionGaps):
  42611. (WebCore::RenderBlock::lowestPosition):
  42612. (WebCore::RenderBlock::rightmostPosition):
  42613. (WebCore::RenderBlock::leftmostPosition):
  42614. (WebCore::RenderBlock::clearFloats):
  42615. (WebCore::RenderBlock::nodeAtPoint):
  42616. (WebCore::RenderBlock::calcBlocminMaxWidth):
  42617. (WebCore::RenderBlock::inRootBlockContext):
  42618. * rendering/RenderBox.cpp:
  42619. (WebCore::RenderBox::setStyle):
  42620. (WebCore::RenderBox::paintRootBoxDecorations):
  42621. (WebCore::RenderBox::paintBackgroundExtended):
  42622. (WebCore::RenderBox::calcHeight):
  42623. (WebCore::RenderBox::calcPercentageHeight):
  42624. (WebCore::RenderBox::availableHeightUsing):
  42625. * rendering/RenderCanvas.cpp: Removed.
  42626. * rendering/RenderCanvas.h: Removed.
  42627. * rendering/RenderContainer.cpp:
  42628. (WebCore::RenderContainer::removeChildNode):
  42629. * rendering/RenderFileButton.cpp:
  42630. (WebCore::RenderFileButton::RenderFileButton):
  42631. * rendering/RenderFlow.cpp:
  42632. (WebCore::RenderFlow::destroy):
  42633. (WebCore::RenderFlow::paintLines):
  42634. * rendering/RenderFrameSet.cpp:
  42635. (WebCore::RenderFrameSet::layout):
  42636. (WebCore::RenderFrameSet::userResize):
  42637. (WebCore::RenderFrameSet::setResizing):
  42638. * rendering/RenderImage.cpp:
  42639. (WebCore::RenderImage::paint):
  42640. * rendering/RenderLayer.cpp:
  42641. (WebCore::RenderLayer::updateLayerPositions):
  42642. (WebCore::RenderLayer::updateLayerPosition):
  42643. (WebCore::RenderLayer::stackingContext):
  42644. (WebCore::RenderLayer::enclosingPositionedAncestor):
  42645. (WebCore::RenderLayer::convertToLayerCoords):
  42646. (WebCore::RenderLayer::scrollToOffset):
  42647. (WebCore::isSubframeCanvas):
  42648. (WebCore::RenderLayer::intersectsDamageRect):
  42649. * rendering/RenderLayer.h:
  42650. (WebCore::RenderLayer::isStackingContext):
  42651. * rendering/RenderListMarker.cpp:
  42652. (WebCore::RenderListMarker::paint):
  42653. * rendering/RenderObject.cpp:
  42654. (WebCore::RenderObject::scroll):
  42655. (WebCore::RenderObject::containingBlock):
  42656. (WebCore::RenderObject::repaint):
  42657. (WebCore::RenderObject::repaintRectangle):
  42658. (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
  42659. (WebCore::RenderObject::draggableNode):
  42660. (WebCore::RenderObject::selectionStartEnd):
  42661. (WebCore::RenderObject::setStyle):
  42662. (WebCore::RenderObject::viewRect):
  42663. (WebCore::RenderObject::view):
  42664. (WebCore::RenderObject::container):
  42665. (WebCore::RenderObject::removeFromObjectLists):
  42666. (WebCore::RenderObject::scheduleRelayout):
  42667. (WebCore::RenderObject::imageChanged):
  42668. (WebCore::RenderObject::maximalOutlineSize):
  42669. * rendering/RenderObject.h:
  42670. (WebCore::RenderObject::isRenderView):
  42671. * rendering/RenderTextArea.cpp:
  42672. (WebCore::RenderTextArea::RenderTextArea):
  42673. * rendering/RenderThemeMac.mm:
  42674. (WebCore::RenderThemeMac::paintCheckbox):
  42675. (WebCore::RenderThemeMac::paintRadio):
  42676. (WebCore::RenderThemeMac::paintButton):
  42677. * rendering/RenderTreeAsText.cpp:
  42678. (externalRepresentation):
  42679. * rendering/RenderView.cpp: Added.
  42680. (WebCore::RenderView::RenderView):
  42681. (WebCore::RenderView::~RenderView):
  42682. (WebCore::RenderView::calcHeight):
  42683. (WebCore::RenderView::calcWidth):
  42684. (WebCore::RenderView::calcMinMaxWidth):
  42685. (WebCore::RenderView::layout):
  42686. (WebCore::RenderView::absolutePosition):
  42687. (WebCore::RenderView::paint):
  42688. (WebCore::RenderView::paintBoxDecorations):
  42689. (WebCore::RenderView::repaintViewRectangle):
  42690. (WebCore::RenderView::getAbsoluteRepaintRect):
  42691. (WebCore::RenderView::computeAbsoluteRepaintRect):
  42692. (WebCore::RenderView::absoluteRects):
  42693. (WebCore::RenderView::selectionRect):
  42694. (WebCore::RenderView::setSelection):
  42695. (WebCore::RenderView::clearSelection):
  42696. (WebCore::RenderView::selectionStartEnd):
  42697. (WebCore::RenderView::updateWidgetPositions):
  42698. (WebCore::RenderView::addWidget):
  42699. (WebCore::RenderView::removeWidget):
  42700. (WebCore::RenderView::viewRect):
  42701. (WebCore::RenderView::docHeight):
  42702. (WebCore::RenderView::docWidth):
  42703. (WebCore::RenderView::setBestTruncatedAt):
  42704. * rendering/RenderView.h: Added.
  42705. (WebCore::RenderView::renderName):
  42706. (WebCore::RenderView::isRenderView):
  42707. (WebCore::RenderView::frameView):
  42708. * rendering/RenderWidget.cpp:
  42709. (WebCore::RenderWidget::RenderWidget):
  42710. (WebCore::RenderWidget::destroy):
  42711. (WebCore::RenderWidget::updateWidgetPosition):
  42712. * rendering/RenderWidget.h:
  42713. (WebCore::RenderWidget::widget):
  42714. * rendering/bidi.cpp:
  42715. (WebCore::RenderBlock::layoutInlineChildren):
  42716. 2006-05-30 Tim Omernick <timo@apple.com>
  42717. Reviewed by Geoff.
  42718. <rdar://problem/4567776> REGRESSION: window.open() links do not work at www.newarchery.com
  42719. * bindings/js/kjs_window.cpp:
  42720. (KJS::WindowFunc::callAsFunction):
  42721. Set the URL in the ResourceRequest; otherwise, it'll be uninitialized and createNewWindow() will
  42722. not be able to load the URL into a pre-existing frame.
  42723. 2006-05-30 Sam Weinig <sam.weinig@gmail.com>
  42724. Reviewed by Maciej, landed by Beth.
  42725. - fix for http://bugs.webkit.org/show_bug.cgi?id=9137
  42726. Children with percentage heights of absolutely positioned element
  42727. with height: auto and top and bottom non-auto does not lay out
  42728. correctly
  42729. Adds special case.
  42730. * rendering/RenderBox.cpp:
  42731. (WebCore::RenderBox::calcPercentageHeight):
  42732. (WebCore::RenderBox::calcReplacedHeightUsing):
  42733. 2006-05-30 Sam Weinig <sam.weinig@gmail.com>
  42734. Reviewed by Hyatt, landed by Beth.
  42735. - Fix for http://bugs.webkit.org/show_bug.cgi?id=9085
  42736. Absolutely positioned objects with 'height': auto and 'top': and
  42737. 'bottom': non-auto should not be content based
  42738. * rendering/RenderBox.cpp:
  42739. (WebCore::RenderBox::calcAbsoluteVertical):
  42740. (WebCore::RenderBox::calcAbsoluteVerticalValues):
  42741. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  42742. (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
  42743. 2006-05-30 Eric Seidel <eric@webkit.org>
  42744. Reviewed by andersca.
  42745. Small amount of svg-related code cleanup.
  42746. No test case possible.
  42747. * ksvg2/svg/SVGColor.h:
  42748. * ksvg2/svg/SVGLength.cpp:
  42749. (SVGLength::SVGLength):
  42750. (SVGLength::value):
  42751. * ksvg2/svg/SVGMarkerElement.cpp:
  42752. * ksvg2/svg/SVGMatrix.cpp:
  42753. (SVGMatrix::SVGMatrix):
  42754. (SVGMatrix::copy):
  42755. (SVGMatrix::postMultiply):
  42756. (SVGMatrix::inverse):
  42757. (SVGMatrix::postTranslate):
  42758. (SVGMatrix::postScale):
  42759. (SVGMatrix::postScaleNonUniform):
  42760. (SVGMatrix::postRotate):
  42761. (SVGMatrix::postRotateFromVector):
  42762. (SVGMatrix::postFlipX):
  42763. (SVGMatrix::postFlipY):
  42764. (SVGMatrix::postSkewX):
  42765. (SVGMatrix::postSkewY):
  42766. (SVGMatrix::multiply):
  42767. (SVGMatrix::translate):
  42768. (SVGMatrix::scale):
  42769. (SVGMatrix::scaleNonUniform):
  42770. (SVGMatrix::rotate):
  42771. (SVGMatrix::rotateFromVector):
  42772. (SVGMatrix::flipX):
  42773. (SVGMatrix::flipY):
  42774. (SVGMatrix::skewX):
  42775. (SVGMatrix::skewY):
  42776. (SVGMatrix::setMatrix):
  42777. (SVGMatrix::qmatrix):
  42778. (SVGMatrix::removeScale):
  42779. * ksvg2/svg/SVGMatrix.h:
  42780. 2006-05-30 Eric Seidel <eric@webkit.org>
  42781. Reviewed by andersca.
  42782. Small amount of bindings-related code cleanup.
  42783. No test case possible.
  42784. * bindings/js/JSHTMLFormElementCustom.cpp:
  42785. (WebCore::JSHTMLFormElement::nameGetter):
  42786. * bindings/js/JSXMLSerializer.cpp:
  42787. (WebCore::JSXMLSerializerConstructorImp::JSXMLSerializerConstructorImp):
  42788. (WebCore::JSXMLSerializerConstructorImp::implementsConstruct):
  42789. (WebCore::JSXMLSerializerConstructorImp::construct):
  42790. (WebCore::):
  42791. (WebCore::JSXMLSerializer::JSXMLSerializer):
  42792. (WebCore::JSXMLSerializerProtoFunc::callAsFunction):
  42793. * bindings/js/JSXMLSerializer.h:
  42794. (WebCore::JSXMLSerializer::toBoolean):
  42795. (WebCore::JSXMLSerializer::classInfo):
  42796. (WebCore::JSXMLSerializer::):
  42797. * bindings/js/kjs_window.cpp:
  42798. (KJS::Window::getValueProperty):
  42799. 2006-05-27 Anders Carlsson <acarlsson@apple.com>
  42800. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  42801. Correct include file names.
  42802. 2006-05-26 Justin Garcia <justin.garcia@apple.com>
  42803. Reviewed by levi
  42804. <rdar://problem/4564296> Mail crashes on Leopard9A184 when I attempt to compose a new message
  42805. * dom/Position.cpp:
  42806. (WebCore::Position::inRenderedContent):
  42807. Removed a candidate at [html, 0].
  42808. * editing/CreateLinkCommand.cpp:
  42809. (WebCore::CreateLinkCommand::doApply): Added early return when there is no selection.
  42810. * editing/InsertLineBreakCommand.cpp:
  42811. (WebCore::InsertLineBreakCommand::doApply): Ditto.
  42812. * editing/InsertTextCommand.cpp:
  42813. (WebCore::InsertTextCommand::input): Ditto.
  42814. * editing/Selection.cpp:
  42815. (WebCore::Selection::validate): If visible positions can't be created from the endpoints,
  42816. then create a null selection. Not doing this was making editing code think there was
  42817. a valid, editable selection even though there wasn't.
  42818. * editing/UnlinkCommand.cpp:
  42819. (WebCore::UnlinkCommand::doApply): Early return.
  42820. * editing/VisiblePosition.cpp:
  42821. (WebCore::VisiblePosition::initDeepPosition): Special case the html/body element boundary.
  42822. It looks like a non-editable/editable boundary since rootEditableElement stops at the body
  42823. even if the html element is editable.
  42824. 2006-05-26 Adele Peterson <adele@apple.com>
  42825. Reviewed by Justin.
  42826. Fixes a mistake in my last checkin. Uses maxDeepOffset to get the end position for
  42827. the textarea's inner div.
  42828. * rendering/RenderTextField.cpp: (WebCore::RenderTextField::textWithHardLineBreaks):
  42829. 2006-05-26 Adele Peterson <adele@apple.com>
  42830. Reviewed by Hyatt.
  42831. Added support for wrap=hard for new textarea implementation.
  42832. Tests: fast/forms/textarea-appearance-wrap.html
  42833. * dom/Range.h: Added version of toString that will convert BRs to newlines.
  42834. * dom/Range.cpp: (WebCore::Range::toString):
  42835. * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::ReplacementFragment):
  42836. When in plain-text mode, and a white-space mode that doesn't collapse whitespace, create a fragment with one text node.
  42837. * editing/visible_units.cpp:
  42838. (WebCore::previousLinePosition): Subtract scroll offset so the absolute position for the containing block is correct.
  42839. (WebCore::nextLinePosition): ditto.
  42840. * rendering/RenderText.cpp:
  42841. (WebCore::RenderText::positionForCoordinates): If the position is equal to the left edge of the box,
  42842. make the affinity downstream so the position doesn't jump back to the previous line.
  42843. (WebCore::RenderText::atLineWrap): The logic was reversed here in a recent change.
  42844. If the box is not at a line break, then its at a line wrap.
  42845. (WebCore::RenderText::caretRect): Only go to the next text box if its at a line wrap and the
  42846. affinity is also downstream. If its upstream, then the correct box is on the current line.
  42847. (WebCore::RenderText::inlineBox): ditto.
  42848. * rendering/RenderTextField.cpp:
  42849. (WebCore::RenderTextField::updateFromElement): multi line controls don't need to check
  42850. valueMatchesRenderer before updating the renderer. For textareas, the renderer should always try to update.
  42851. This matches our old textarea behavior.
  42852. (WebCore::RenderTextField::text): Pass true to textContent so it converts BRs to newlines.
  42853. (WebCore::RenderTextField::textWithHardLineBreaks): Iterate through the RootLineBoxes to find the soft wraps and replace them with newlines.
  42854. 2006-05-26 Anders Carlsson <acarlsson@apple.com>
  42855. Reviewed by Geoff.
  42856. http://bugs.webkit.org/show_bug.cgi?id=9127
  42857. Invoke capturing event listeners when AT_TARGET
  42858. * dom/EventTargetNode.cpp:
  42859. (WebCore::EventTargetNode::handleLocalEvents):
  42860. Invoke capturing event listeners for the AT_TARGET phase. This violates the
  42861. DOM spec but it's what Mozilla does.
  42862. 2006-05-26 David Harrison <harrison@apple.com>
  42863. Reviewed by John Sullivan.
  42864. <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
  42865. * WebCore.vcproj/WebCore/WebCore.vcproj:
  42866. * WebCore.xcodeproj/project.pbxproj:
  42867. - Renamed ModifySelectionListLevelCommand .cpp and .h to ModifySelectionListLevel .cpp and .h
  42868. * bridge/mac/WebCoreFrameBridge.h:
  42869. * bridge/mac/WebCoreFrameBridge.mm:
  42870. (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
  42871. (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
  42872. (-[WebCoreFrameBridge increaseSelectionListLevel]):
  42873. (-[WebCoreFrameBridge decreaseSelectionListLevel]):
  42874. - Call functions in IncreaseSelectionListLevelCommand or DecreaseSelectionListLevelCommand instead
  42875. of ModifySelectionListLevelCommand.
  42876. (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
  42877. (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
  42878. - Added.
  42879. * editing/ModifySelectionListLevel.cpp: Added.
  42880. - Renamed from ModifySelectionListLevelCommand.cpp
  42881. - Made ModifySelectionListLevelCommand class into a useful base class for new
  42882. classes IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand.
  42883. (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
  42884. (WebCore::getStartEndListChildren):
  42885. (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
  42886. (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
  42887. - ModifySelectionListLevelCommand is base class for IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand
  42888. (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
  42889. (WebCore::IncreaseSelectionListLevelCommand::listElement):
  42890. (WebCore::canIncreaseListLevel):
  42891. (WebCore::IncreaseSelectionListLevelCommand::doApply):
  42892. (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
  42893. (WebCore::increaseSelectionListLevelWithType):
  42894. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
  42895. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
  42896. (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
  42897. - Now a subclass of ModifySelectionListLevelCommand
  42898. - Added Ordered and Unordered increaser functions
  42899. - Increaser functions return the list element that the items were moved into
  42900. (WebCore::DecreaseSelectionListLevelCommand::DecreaseSelectionListLevelCommand):
  42901. (WebCore::canDecreaseListLevel):
  42902. (WebCore::DecreaseSelectionListLevelCommand::doApply):
  42903. (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
  42904. (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel):
  42905. - No functional changes other than to become a subclass of ModifySelectionListLevelCommand
  42906. * editing/ModifySelectionListLevel.h: Added.
  42907. (WebCore::):
  42908. - Renamed from ModifySelectionListLevelCommand.cpp
  42909. * editing/ModifySelectionListLevelCommand.cpp: Removed.
  42910. - Renamed to ModifySelectionListLevel.cpp
  42911. * editing/ModifySelectionListLevelCommand.h: Removed.
  42912. - Renamed to ModifySelectionListLevel.h
  42913. * editing/htmlediting.cpp:
  42914. (WebCore::createOrderedListElement):
  42915. (WebCore::createUnorderedListElement):
  42916. * editing/htmlediting.h:
  42917. 2006-05-26 Steve Falkenburg <sfalken@apple.com>
  42918. Reviewed by adele.
  42919. Build fixes/tweaks
  42920. * WebCore.vcproj/WebCore/WebCore.vcproj:
  42921. * config.h:
  42922. * ksvg2/scripts/make_names.pl:
  42923. 2006-05-26 Steve Falkenburg <sfalken@apple.com>
  42924. Reviewed by adele.
  42925. Fix build
  42926. * WebCore.vcproj/WebCore/WebCore.vcproj:
  42927. * config.h:
  42928. 2006-05-25 Dave Hyatt <hyatt@apple.com>
  42929. Change default font size for fixed pitch to 13 to match Safari
  42930. on Mac (and every other browser on the planet too).
  42931. Reviewed by adele
  42932. * bridge/win/FrameWin.cpp:
  42933. (WebCore::FrameWin::FrameWin):
  42934. * platform/win/FontCacheWin.cpp:
  42935. (WebCore::FontCache::getFontLinkInterface):
  42936. 2006-05-25 Alice Liu <alice.liu@apple.com>
  42937. Reviewed by Adele.
  42938. * bindings/js/kjs_html.cpp:
  42939. added bindings
  42940. (KJS::HTMLElementFunction::callAsFunction):
  42941. added case to handle namedItem for select elements
  42942. * bindings/js/kjs_html.h:
  42943. added enum value for bindings
  42944. (KJS::JSHTMLElement::):
  42945. * html/HTMLSelectElement.cpp:
  42946. (WebCore::HTMLSelectElement::namedItem):
  42947. implemented namedItem method
  42948. * html/HTMLSelectElement.h:
  42949. added prototype for namedItem method
  42950. 2006-05-25 Dave Hyatt <hyatt@apple.com>
  42951. Make soft hyphens work on Win32 by special casing them
  42952. along with normal hyphens.
  42953. Reviewed by mjs
  42954. * rendering/break_lines.cpp:
  42955. (WebCore::nextBreakablePosition):
  42956. 2006-05-25 Dave Hyatt <hyatt@apple.com>
  42957. Implement the fallback method containsCharacters for
  42958. checking if a font has the necessary glyphs to be
  42959. selected as a fallback choide.
  42960. * platform/win/FontDataWin.cpp:
  42961. (WebCore::FontData::containsCharacters):
  42962. 2006-05-25 Dave Hyatt <hyatt@apple.com>
  42963. For now eliminate the logical scale factor from Cairo.
  42964. This enables bitmap fonts like MS Sans Serif to work on
  42965. Win32.
  42966. * platform/cairo/cairo/src/cairo-win32-font.c:
  42967. (cairo_win32_scaled_font_select_font):
  42968. * platform/cairo/cairo/src/cairo-win32-private.h:
  42969. * platform/cairo/font-bug-patch.txt: Removed.
  42970. * platform/cairo/scale-removal.txt: Added.
  42971. * platform/win/FontCacheWin.cpp:
  42972. (WebCore::FontCache::createFontPlatformData):
  42973. * platform/win/FontDataWin.cpp:
  42974. (WebCore::FontData::smallCapsFontData):
  42975. (WebCore::FontData::platformWidthForGlyph):
  42976. * platform/win/FontPlatformData.h:
  42977. * platform/win/GlyphMapWin.cpp:
  42978. (WebCore::GlyphMap::fillPage):
  42979. 2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
  42980. Reviewed by hyatt. Landed by eseidel.
  42981. - fix http://bugs.webkit.org/show_bug.cgi?id=8848
  42982. TFOOT borders are copied to THEAD and TBODY
  42983. Test: fast/table/border-collapsing/border-collapsing-head-foot.html
  42984. * rendering/RenderTable.cpp:
  42985. (WebCore::RenderTable::sectionAbove): Added.
  42986. (WebCore::RenderTable::sectionBelow): Added.
  42987. (WebCore::RenderTable::cellAbove): Changed to call sectionAbove.
  42988. (WebCore::RenderTable::cellBelow): Changed to call sectionBelow.
  42989. * rendering/RenderTable.h:
  42990. * rendering/RenderTableCell.cpp:
  42991. (WebCore::RenderTableCell::collapsedTopBorder): Changed to call sectionAbove.
  42992. (WebCore::RenderTableCell::collapsedBottomBorder): Changed to call sectionBelow.
  42993. 2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
  42994. Reviewed by hyatt. Landed by eseidel.
  42995. - fix http://bugs.webkit.org/show_bug.cgi?id=3297
  42996. height property is not honored on table rows
  42997. * rendering/RenderTableSection.cpp:
  42998. (WebCore::RenderTableSection::addChild): Assign the row renderer to the
  42999. grid row.
  43000. (WebCore::RenderTableSection::calcRowHeight): Fix off-by-one index bug
  43001. and add vertical spacing only for grid rows that have a renderer.
  43002. (WebCore::RenderTableSection::recalcCells): Assign row renderers to
  43003. grid rows.
  43004. 2006-05-25 Rob Buis <buis@kde.org>
  43005. Reviewed by darin. Landed by eseidel.
  43006. Fix for http://bugs.webkit.org/show_bug.cgi?id=5978
  43007. WebKIt+SVG should use SVGDocumentImpl for image/svg+xml
  43008. Make sure SVGDocument is created for standalone svg
  43009. documents.
  43010. * ksvg2/svg/SVGDOMImplementation.cpp:
  43011. (SVGDOMImplementation::instance):
  43012. (SVGDOMImplementation::createDocument):
  43013. * ksvg2/svg/SVGDOMImplementation.h:
  43014. * ksvg2/svg/SVGDocument.cpp:
  43015. (WebCore::SVGDocument::SVGDocument):
  43016. (WebCore::SVGDocument::~SVGDocument):
  43017. * ksvg2/svg/SVGDocument.h:
  43018. * ksvg2/svg/SVGTests.cpp:
  43019. (WebCore::SVGTests::isValid):
  43020. * ksvg2/svg/SVGTitleElement.cpp:
  43021. * ksvg2/svg/SVGTitleElement.h:
  43022. * page/Frame.cpp:
  43023. (WebCore::Frame::begin):
  43024. 2006-05-25 Rob Buis <buis@kde.org>
  43025. Reviewed by darin. Landed by eseidel.
  43026. http://bugs.webkit.org/show_bug.cgi?id=5889
  43027. HTMLNames.* should be generated using make_names.pl
  43028. Use a patched make_names.pl to autogenerate HTMLNames.*
  43029. * DerivedSources.make:
  43030. * WebCore.xcodeproj/project.pbxproj:
  43031. * html/HTMLNames.cpp: Removed.
  43032. * html/HTMLNames.h: Removed.
  43033. * html/HTMLTagNames.in: Added.
  43034. * html/HTMLAttributeNames.in: Added.
  43035. * ksvg2/scripts/make_names.pl:
  43036. 2006-05-25 Eric Seidel <eric@webkit.org>
  43037. Reviewed by andersca.
  43038. Add "HasIndexGetter" support to bindings autogen system.
  43039. http://bugs.webkit.org/show_bug.cgi?id=9057
  43040. * DerivedSources.make:
  43041. * WebCore.xcodeproj/project.pbxproj:
  43042. * bindings/js/JSHTMLInputElementBase.cpp:
  43043. * bindings/js/kjs_css.cpp:
  43044. (KJS::toJS):
  43045. * bindings/js/kjs_css.h:
  43046. * bindings/js/kjs_dom.cpp:
  43047. (KJS::DOMNamedNodeMap::getOwnPropertySlot):
  43048. * bindings/scripts/CodeGeneratorJS.pm:
  43049. * css/CSSValueList.idl: Added.
  43050. 2006-05-24 David Hyatt <hyatt@apple.com>
  43051. Implement font aliasing of family names for Courier/Courier New,
  43052. Arial/Helvetica, and Times/Times New Roman. This behavior matches
  43053. WinIE and Firefox.
  43054. Reviewed by maciej
  43055. Test cases not really possible, since they would have to rely on people
  43056. not having the fonts installed (so not having installed Office).
  43057. * platform/FontCache.cpp:
  43058. (WebCore::alternateFamilyName):
  43059. (WebCore::FontCache::getCachedFontPlatformData):
  43060. * platform/FontCache.h:
  43061. * rendering/RenderContainer.cpp:
  43062. (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
  43063. === WebCore-521.11 ===
  43064. 2006-05-24 Justin Garcia <justin.garcia@apple.com>
  43065. Reviewed by levi
  43066. <rdar://problem/4549610> REGRESSION: No initial cursor in Mail reply or Blot document
  43067. <rdar://problem/4560698> Mail is very crashy in Leopard9A182, WebCore::Range::compareBoundaryPoints(WebCore::Node*, int, WebCore::Node*, int)
  43068. * page/Frame.cpp:
  43069. (WebCore::Frame::setSelectionFromNone): Find the body and stick a caret
  43070. in it.
  43071. 2006-05-24 Geoffrey Garen <ggaren@apple.com>
  43072. Rubber stamped by Anders.
  43073. Removed meaningless 'dom::' prefix in IDL files.
  43074. * dom/Range.idl:
  43075. * html/CanvasRenderingContext2D.idl:
  43076. * html/HTMLOptionElement.idl:
  43077. 2006-05-24 Geoffrey Garen <ggaren@apple.com>
  43078. Reviewed by andersca.
  43079. - Fixed http://bugs.webkit.org/show_bug.cgi?id=9095
  43080. regression: can't select by setting option.selected to true
  43081. 'text' and 'selected' were erroneously marked read-only for option elements.
  43082. * html/HTMLOptionElement.idl:
  43083. 2006-05-24 Geoffrey Garen <ggaren@apple.com>
  43084. Reviewed by mjs.
  43085. - WebCore half of fix for <rdar://problem/4557926> TOT REGRESSION: Crash
  43086. occurs when attempting to view image in slideshow mode at
  43087. http://d.smugmug.com/gallery/581716 ( KJS::IfNode::execute
  43088. (KJS::ExecState*) + 312)
  43089. On alternate threads, DOMObjects remain in the
  43090. ScriptInterpreter's cache because they're not collected. So, they
  43091. need an opportunity to mark their children.
  43092. I'm not particularly happy with this solution because it fails to
  43093. resolve many outstanding issues with the DOM object cache. Since none
  43094. of those issues is a crasher or a serious compatibility concern,
  43095. and since the behavior of other browsers is not much to go on in this
  43096. case, I've filed <rdar://problem/4561439> about that, and I'm moving
  43097. on with my life.
  43098. Also added functionality for testing garbage collection from inside
  43099. DumpRenderTree.
  43100. Also removed XMLHttpRequest from the DOM object cache because XMLHttpRequest
  43101. objects aren't accessed through the DOM.
  43102. Also added JS locking around access to some shared data structures in
  43103. WebCoreJavaScript, even though it probably doesn't matter in practice.
  43104. * bindings/js/JSXMLHttpRequest.cpp:
  43105. (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
  43106. (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
  43107. * bindings/js/kjs_binding.cpp:
  43108. (KJS::ScriptInterpreter::mark):
  43109. * bindings/js/kjs_binding.h:
  43110. * bridge/mac/WebCoreJavaScript.h:
  43111. * bridge/mac/WebCoreJavaScript.mm:
  43112. (collect):
  43113. (+[WebCoreJavaScript objectCount]):
  43114. (+[WebCoreJavaScript interpreterCount]):
  43115. (+[WebCoreJavaScript protectedObjectCount]):
  43116. (+[WebCoreJavaScript garbageCollect]):
  43117. (+[WebCoreJavaScript garbageCollectOnAlternateThread:]):
  43118. (+[WebCoreJavaScript shouldPrintExceptions]):
  43119. (+[WebCoreJavaScript setShouldPrintExceptions:]):
  43120. 2006-05-24 Dave Hyatt <hyatt@apple.com>
  43121. Fix the font cache corruption problems on Win32. Move the
  43122. native font destruction code out of FontPlatformData and
  43123. into FontData. Implement smallCaps.
  43124. * platform/win/FontDataWin.cpp:
  43125. (WebCore::FontData::platformDestroy):
  43126. (WebCore::FontData::smallCapsFontData):
  43127. * platform/win/FontPlatformDataWin.cpp:
  43128. (WebCore::FontPlatformData::~FontPlatformData):
  43129. 2006-05-24 Anders Carlsson <acarlsson@apple.com>
  43130. Reviewed by Maciej.
  43131. http://bugs.webkit.org/show_bug.cgi?id=9093
  43132. Implement document.scripts
  43133. * bindings/js/kjs_html.cpp:
  43134. (KJS::JSHTMLDocument::getValueProperty):
  43135. Return document.scripts() instead of a placeholder object.
  43136. * dom/Document.cpp:
  43137. (WebCore::Document::scripts):
  43138. * dom/Document.h:
  43139. Add Document::scripts.
  43140. * html/HTMLCollection.cpp:
  43141. (WebCore::HTMLCollection::traverseNextItem):
  43142. * html/HTMLCollection.h:
  43143. (WebCore::HTMLCollection::):
  43144. Add scripts collection type which traverses all script elements.
  43145. 2006-05-24 Anders Carlsson <acarlsson@apple.com>
  43146. Reviewed by Geoff.
  43147. http://bugs.webkit.org/show_bug.cgi?id=9092
  43148. innerText is empty for elements without renderers
  43149. * dom/Node.cpp:
  43150. (WebCore::Node::textContent):
  43151. * dom/Node.h:
  43152. Add optional convertBRsToNewlines argument for textContent.
  43153. * html/HTMLElement.cpp:
  43154. (WebCore::HTMLElement::innerText):
  43155. If the element doesn't have a renderer, return textContent.
  43156. 2006-05-24 Dave Hyatt <hyatt@apple.com>
  43157. Fix a bug with the computation of the Cairo glyph offsets
  43158. on the Win32 code path.
  43159. * ChangeLog:
  43160. * platform/GlyphBuffer.h:
  43161. (WebCore::GlyphBuffer::add):
  43162. * platform/win/FontWin.cpp:
  43163. (WebCore::Font::drawGlyphs):
  43164. 2006-05-23 Dave Hyatt <hyatt@apple.com>
  43165. Disable some code in Cairo that is attempting to clip
  43166. runs of text to their glyph boundaries, since:
  43167. (a) Why re-measure text again when I just gave you
  43168. the glyph bounds anyway.
  43169. (b) It gets the measurements wrong.
  43170. * platform/GlyphBuffer.h:
  43171. (WebCore::GlyphBuffer::add):
  43172. * platform/cairo/cairo/src/cairo-surface-fallback.c:
  43173. (_cairo_surface_fallback_show_glyphs):
  43174. * platform/cairo/clipping-cleartype-font-bug-patch.txt: Added.
  43175. * platform/win/FontWin.cpp:
  43176. (WebCore::Font::drawGlyphs):
  43177. 2006-05-23 Timothy Hatcher <timothy@apple.com>
  43178. Reviewed by Eric.
  43179. Remove the recent idl files from the WebCore target to prevent them
  43180. from being copied into the framework resources.
  43181. * WebCore.xcodeproj/project.pbxproj:
  43182. 2006-05-23 John Sullivan <sullivan@apple.com>
  43183. Reviewed by Justin Garcia and Levi Weintraub.
  43184. - fixed Bug 9072: REGRESSION: Misspelling marker incorrect in editing/deleting/delete-and-undo.html
  43185. * dom/Document.cpp:
  43186. (WebCore::Document::removeMarkers):
  43187. One more time to get this right, ugh. There is still one case where we don't want to advance the
  43188. iterator, and that's when we remove a marker and do not insert a replacement marker. So I undid
  43189. my previous patch, and added it++ to each of the two cases that insert a replacement marker. Now
  43190. the layout tests pass even with the pixel tests enabled.
  43191. 2006-05-23 Dave Hyatt <hyatt@apple.com>
  43192. Do an initial implementation of CookieJar on Win32. No policy
  43193. checking yet and the cookies are just always on.
  43194. Reviewed by mjs
  43195. * WebCore.vcproj/WebCore/WebCore.vcproj:
  43196. * platform/win/CookieJarWin.cpp: Added.
  43197. (WebCore::setCookies):
  43198. (WebCore::cookies):
  43199. (WebCore::cookiesEnabled):
  43200. * platform/win/TemporaryLinkStubs.cpp:
  43201. 2006-05-23 Dave Hyatt <hyatt@apple.com>
  43202. Fix the JS autogeneration for WebCore so that the hashtables
  43203. are correct on Win32.
  43204. Switch to using GetCharWidthI so that we can obtain widths
  43205. for glyphs instead of having to obtain them from UChars.
  43206. Reviewed by eric (autogeneration) and maciej (fonts)
  43207. * bindings/scripts/CodeGeneratorJS.pm:
  43208. * platform/Font.cpp:
  43209. (WebCore::WidthIterator::advance):
  43210. * platform/FontData.cpp:
  43211. (WebCore::m_smallCapsFontData):
  43212. (WebCore::FontData::widthForGlyph):
  43213. * platform/FontData.h:
  43214. * platform/mac/FontDataMac.mm:
  43215. (-[NSFont WebCore]):
  43216. * platform/win/FontDataWin.cpp:
  43217. (WebCore::FontData::platformWidthForGlyph):
  43218. 2006-05-23 Levi Weintraub <lweintraub@apple.com>
  43219. Reviewed by Hyatt.
  43220. Cleaned up changes to markup by adding the non-virtual
  43221. nodeNamePreservingCase accessor function.
  43222. * dom/Element.cpp:
  43223. (WebCore::Element::nodeNamePreservingCase):
  43224. * dom/Element.h:
  43225. * editing/markup.cpp:
  43226. (WebCore::startMarkup):
  43227. (WebCore::endMarkup):
  43228. 2006-05-23 John Sullivan <sullivan@apple.com>
  43229. Reviewed by Anders Carlsson.
  43230. * dom/Document.cpp:
  43231. (WebCore::Document::removeMarkers):
  43232. Fix to my previous checkin (which broke a layout test).
  43233. Advance the iterator position every time through the loop; formerly it was not advanced in the
  43234. case where a marker was actually removed, causing an infinite loop in certain cases. Also
  43235. modified a comment that was confusing the situation by falsely claiming that iterating over a
  43236. just-inserted node would always be OK.
  43237. 2006-05-23 Anders Carlsson <acarlsson@apple.com>
  43238. Reviewed by Maciej.
  43239. http://bugs.webkit.org/show_bug.cgi?id=9017
  43240. Weather2.css incorrectly treated as JavaScript file @ www.live.com
  43241. * dom/Element.cpp:
  43242. (WebCore::Element::getAttribute):
  43243. (WebCore::Element::setAttribute):
  43244. (WebCore::Element::removeAttribute):
  43245. (WebCore::Element::getAttributeNode):
  43246. (WebCore::Element::hasAttribute):
  43247. Use new getAttributeItem method.
  43248. * dom/NamedAttrMap.cpp:
  43249. (WebCore::NamedAttrMap::getNamedItem):
  43250. (WebCore::NamedAttrMap::removeNamedItem):
  43251. Use new getAttributeItem method.
  43252. (WebCore::NamedAttrMap::getAttributeItem):
  43253. * dom/NamedAttrMap.h:
  43254. New method which returns the attribute based on the nodeName.
  43255. 2006-05-22 Eric Seidel <eric@webkit.org>
  43256. Rubber-stamped by adele.
  43257. * bindings/js/kjs_html.h: simple style cleanup.
  43258. === WebCore-521.10 ===
  43259. 2006-05-22 John Sullivan <sullivan@apple.com>
  43260. Reviewed by Anders Carlsson.
  43261. - fixed Bug 9038: Rework Document::TextMarker mechanism to not use deprecated data structures
  43262. Changed Document::markersForNode and Document::MarkerMap to use Vector rather than
  43263. DeprecatedValueList and DeprecatedValueListIterator.
  43264. * dom/Document.h:
  43265. * dom/Document.cpp:
  43266. (WebCore::Document::addMarker):
  43267. (WebCore::Document::copyMarkers):
  43268. (WebCore::Document::removeMarkers):
  43269. (WebCore::Document::markersForNode):
  43270. (WebCore::Document::repaintMarkers):
  43271. (WebCore::Document::shiftMarkers):
  43272. * rendering/InlineTextBox.cpp:
  43273. (WebCore::InlineTextBox::paintAllMarkersOfType):
  43274. 2006-05-22 Levi Weintraub <lweintraub@apple.com>
  43275. Reviewed by Eric.
  43276. - Fix for http://bugs.webkit.org/show_bug.cgi?id=8393
  43277. <br>s created by createMarkup aren't valid xhtml
  43278. Fixed uppered output from innerHTML
  43279. * editing/markup.cpp:
  43280. (WebCore::startMarkup):
  43281. (WebCore::endMarkup):
  43282. 2006-05-21 Dave Hyatt <hyatt@apple.com>
  43283. Fix Win32 bustage. I forgot to add a bunch of files.
  43284. Also tweak some existing functions a bit (just cleanup).
  43285. * platform/FontCache.cpp:
  43286. (WebCore::FontCache::getCachedFontPlatformData):
  43287. (WebCore::FontCache::getFontData):
  43288. * platform/FontCache.h:
  43289. * platform/mac/FontCacheMac.mm:
  43290. (WebCore::FontCache::createFontPlatformData):
  43291. * platform/win/FontDataWin.cpp:
  43292. (WebCore::FontData::platformDestroy):
  43293. (WebCore::FontData::smallCapsFontData):
  43294. 2006-05-21 Adele Peterson <adele@apple.com>
  43295. Reviewed by Maciej.
  43296. - Fix for http://bugs.webkit.org/show_bug.cgi?id=9016
  43297. crash loading live.com in TreeShared::ref because accessing RenderTextField::text() can destroy the RenderTextField
  43298. * rendering/RenderTextField.cpp: (WebCore::RenderTextField::text):
  43299. Reverting recent change to user innerText instead of textContent. For textareas,
  43300. we need a better solution than textContent that also takes newlines into account,
  43301. but this should fix this crasher.
  43302. 2006-05-21 Anders Carlsson <acarlsson@apple.com>
  43303. Fix build.
  43304. * ForwardingHeaders/wtf/MathExtras.h: Added.
  43305. 2006-05-20 Dave Hyatt <hyatt@apple.com>
  43306. Switch on Cairo-based text rendering on Win32. This is tracked
  43307. by bug 9019.
  43308. Reviewed by maciej
  43309. * WebCore.vcproj/WebCore/WebCore.vcproj:
  43310. * config.h:
  43311. * platform/Font.cpp:
  43312. (WebCore::WidthIterator::advance):
  43313. (WebCore::WidthIterator::normalizeVoicingMarks):
  43314. (WebCore::Font::width):
  43315. * platform/Font.h:
  43316. (WebCore::Font::isRoundingHackCharacter):
  43317. * platform/FontCache.cpp:
  43318. (WebCore::computeHash):
  43319. (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
  43320. (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
  43321. (WebCore::FontDataCacheKeyTraits::deletedValue):
  43322. (WebCore::FontDataCacheKeyTraits::emptyValue):
  43323. * platform/FontData.cpp:
  43324. (WebCore::m_smallCapsFontData):
  43325. (WebCore::FontData::widthForGlyph):
  43326. * platform/FontData.h:
  43327. * platform/FontPlatformData.h: Removed.
  43328. * platform/GlyphBuffer.h:
  43329. (WebCore::GlyphBuffer::clear):
  43330. (WebCore::GlyphBuffer::glyphs):
  43331. (WebCore::GlyphBuffer::advances):
  43332. (WebCore::GlyphBuffer::swap):
  43333. (WebCore::GlyphBuffer::glyphAt):
  43334. (WebCore::GlyphBuffer::advanceAt):
  43335. (WebCore::GlyphBuffer::add):
  43336. * platform/GlyphMap.cpp:
  43337. (WebCore::GlyphMap::locatePage):
  43338. * platform/cairo/cairo/src/cairo-win32-font.c:
  43339. (cairo_win32_scaled_font_select_font):
  43340. * platform/cairo/font-bug-patch.txt: Added.
  43341. * platform/mac/FontDataMac.mm:
  43342. (-[NSFont WebCore]):
  43343. * platform/mac/FontPlatformData.h: Added.
  43344. (WebCore::FontPlatformData::FontPlatformData):
  43345. * platform/win/FontDataWin.cpp: Added.
  43346. (WebCore::FontData::platformInit):
  43347. (WebCore::FontData::platformDestroy):
  43348. (WebCore::FontData::smallCapsFontData):
  43349. (WebCore::FontData::containsCharacters):
  43350. (WebCore::FontData::determinePitch):
  43351. (WebCore::FontData::platformWidthForGlyph):
  43352. * platform/win/FontPlatformDataWin.cpp:
  43353. (WebCore::m_size):
  43354. (WebCore::FontPlatformData::~FontPlatformData):
  43355. * platform/win/FontWin.cpp:
  43356. (WebCore::notImplemented):
  43357. (WebCore::Font::drawGlyphs):
  43358. (WebCore::Font::selectionRectForComplexText):
  43359. (WebCore::Font::drawComplexText):
  43360. (WebCore::Font::floatWidthForComplexText):
  43361. (WebCore::Font::offsetForPositionForComplexText):
  43362. 2006-05-20 Alexey Proskuryakov <ap@nypop.com>
  43363. Reviewed by Darin.
  43364. - http://bugs.webkit.org/show_bug.cgi?id=8991
  43365. REGRESSION: missing or broken CSS custom cursors are displayed as
  43366. a missing image icon
  43367. * page/FrameView.cpp:
  43368. (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
  43369. * manual-tests/custom-cursors.html: Added.
  43370. 2006-05-20 Mitz Pettel <opendarwin.org@mitzpettel.com>
  43371. Reviewed and landed by ap.
  43372. - fix http://bugs.webkit.org/show_bug.cgi?id=9009
  43373. REGRESSION: ToT crash in WebCore at Zap2it
  43374. Test: fast/table/empty-section-crash.html
  43375. * rendering/RenderTableSection.cpp:
  43376. (WebCore::RenderTableSection::paint): Return immediately if the section
  43377. has 0 rows or 0 columns.
  43378. 2006-05-19 Levi Weintraub <lweintraub@apple.com>
  43379. Reviewed by justin.
  43380. <http://bugs.webkit.org/show_bug.cgi?id=8931>
  43381. Drag caret not painted for editable sub-frames
  43382. Moved the drag caret out of Frame and into Page.
  43383. Only the Frame that contains the drag caret will paint it.
  43384. * editing/SelectionController.h:
  43385. * page/Frame.cpp:
  43386. (WebCore::Frame::dragCaret):
  43387. (WebCore::Frame::setDragCaret):
  43388. (WebCore::Frame::paintDragCaret):
  43389. * page/FramePrivate.h:
  43390. * page/Page.cpp:
  43391. (WebCore::Page::dragCaret):
  43392. (WebCore::Page::setDragCaret):
  43393. * page/Page.h:
  43394. 2006-05-19 Alice Liu <alice.liu@apple.com>
  43395. Reviewed by Adele.
  43396. * html/HTMLButtonElement.idl:
  43397. added support for HTMLButtonElement.click()
  43398. 2006-05-19 Geoffrey Garen <ggaren@apple.com>
  43399. Reviewed by Eric.
  43400. - Fixed non-autogenerated global constructors to match autogenerated
  43401. ones and FF. (Found this bug while @ the GOOG.)
  43402. (1) They're no longer read-only, so they can be overridden.
  43403. (2) They now have the default object prototype, so they can do things
  43404. like 'toString' and 'valueOf', necessary for general functionality,
  43405. including my layout test.
  43406. (3) Their prototype properties are now enumerable and not read-only.
  43407. * bindings/js/JSDOMParser.cpp:
  43408. (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
  43409. * bindings/js/JSXMLHttpRequest.cpp:
  43410. (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
  43411. * bindings/js/JSXMLHttpRequest.h:
  43412. * bindings/js/JSXMLSerializer.cpp:
  43413. (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
  43414. * bindings/js/JSXSLTProcessor.cpp:
  43415. (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
  43416. * bindings/js/kjs_html.cpp:
  43417. (KJS::OptionConstructorImp::OptionConstructorImp):
  43418. (KJS::ImageConstructorImp::ImageConstructorImp):
  43419. * bindings/js/kjs_window.cpp:
  43420. 2006-05-19 Anders Carlsson <acarlsson@apple.com>
  43421. Reviewed by Eric.
  43422. http://bugs.webkit.org/show_bug.cgi?id=8983
  43423. Autogenerate another 22 HTML classes
  43424. Already covered by existing DOM tests.
  43425. * DerivedSources.make:
  43426. * WebCore.vcproj/WebCore/WebCore.vcproj:
  43427. * WebCore.xcodeproj/project.pbxproj:
  43428. Add new IDL files and generated sources.
  43429. * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
  43430. (WebCore::JSCanvasRenderingContext2D::drawImage):
  43431. (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
  43432. (WebCore::JSCanvasRenderingContext2D::createPattern):
  43433. Use JSHTMLImageElement::info in inherits.
  43434. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  43435. (WebCore::createJSWrapper):
  43436. Add macros for the functions and the code to populate the hash set.
  43437. * bindings/js/kjs_html.cpp:
  43438. (KJS::):
  43439. (KJS::JSHTMLElement::classInfo):
  43440. (KJS::JSHTMLElement::accessors):
  43441. (KJS::HTMLElementFunction::callAsFunction):
  43442. * bindings/js/kjs_html.h:
  43443. (KJS::JSHTMLElement::):
  43444. Delete old cruft.
  43445. * bindings/scripts/CodeGeneratorJS.pm:
  43446. Add support for creating a JS object from a HTMLCollection.
  43447. * html/HTMLAreaElement.idl: Added.
  43448. * html/HTMLBRElement.idl: Added.
  43449. * html/HTMLBaseFontElement.idl: Added.
  43450. * html/HTMLBlockquoteElement.idl: Added.
  43451. * html/HTMLBodyElement.cpp:
  43452. (WebCore::HTMLBodyElement::scrollLeft):
  43453. (WebCore::HTMLBodyElement::setScrollLeft):
  43454. (WebCore::HTMLBodyElement::scrollTop):
  43455. (WebCore::HTMLBodyElement::setScrollTop):
  43456. (WebCore::HTMLBodyElement::scrollHeight):
  43457. (WebCore::HTMLBodyElement::scrollWidth):
  43458. * html/HTMLBodyElement.h:
  43459. Add new functions that used to be implemented in kjs_html.cpp
  43460. * html/HTMLBodyElement.idl: Added.
  43461. * html/HTMLFieldSetElement.idl: Added.
  43462. * html/HTMLFontElement.idl: Added.
  43463. * html/HTMLHRElement.idl: Added.
  43464. * html/HTMLHeadingElement.idl: Added.
  43465. * html/HTMLImageElement.idl: Added.
  43466. * html/HTMLIsIndexElement.idl: Added.
  43467. * html/HTMLLIElement.idl: Added.
  43468. * html/HTMLLabelElement.idl: Added.
  43469. * html/HTMLLegendElement.idl: Added.
  43470. * html/HTMLMapElement.idl: Added.
  43471. * html/HTMLMenuElement.idl: Added.
  43472. * html/HTMLModElement.idl: Added.
  43473. * html/HTMLParagraphElement.idl: Added.
  43474. * html/HTMLParamElement.idl: Added.
  43475. * html/HTMLPreElement.idl: Added.
  43476. * html/HTMLQuoteElement.idl: Added.
  43477. * html/HTMLScriptElement.idl: Added.
  43478. 2006-05-18 David Hyatt <hyatt@apple.com>
  43479. Turn off responding to font changes while running. It doesn't work
  43480. right anyway.
  43481. Reviewed by darin
  43482. * platform/FontCache.cpp:
  43483. (WebCore::FontCache::getCachedFontPlatformData):
  43484. * platform/FontCache.h:
  43485. * platform/GlyphMap.h:
  43486. (WebCore::GlyphMap::~GlyphMap):
  43487. * platform/GlyphWidthMap.h:
  43488. (WebCore::GlyphWidthMap::~GlyphWidthMap):
  43489. * platform/mac/FontCacheMac.mm:
  43490. (WebCore::FontCache::platformInit):
  43491. 2006-05-18 Darin Adler <darin@apple.com>
  43492. - try to fix the Windows build
  43493. * platform/TextEncoding.h: Changed a ";" to a ",".
  43494. * WebCore.vcproj/WebCore/WebCore.vcproj: Removed
  43495. JSCanvasRenderingContext2DBase.cpp and
  43496. JSCanvasRenderingContext2DBase.h. Added
  43497. JSCanvasRenderingContext2DCustom.cpp.
  43498. 2006-05-18 Sam Weinig <sam.weinig@gmail.com>
  43499. Reviewed by Hyatt.
  43500. Fix for <http://bugs.webkit.org/show_bug.cgi?id=8896>
  43501. Bug 8896: Absolutely positioned elements should use their parent's
  43502. direction when left, right and width are auto in quirks mode.
  43503. Use the parent's direction instead of the containing
  43504. block's in quirks mode for absolute positioning to match
  43505. WinIE.
  43506. * rendering/RenderBox.cpp:
  43507. (WebCore::RenderBox::calcAbsoluteHorizontal):
  43508. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  43509. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
  43510. * rendering/RenderBox.h:
  43511. 2006-05-18 Mitz Pettel <opendarwin.org@mitzpettel.com>
  43512. Reviewed and tweaked (way too much) by Darin.
  43513. - fix http://bugs.webkit.org/show_bug.cgi?id=8937
  43514. EncodingMap uses 0 as its empty value but 0 is a valid TextEncodingID
  43515. * platform/CharsetNames.cpp:
  43516. (WebCore::TextEncodingIDHashTraits::emptyValue): Added a non-zero empty value,
  43517. InvalidEncoding, and used InvalidEncoding2 for the deleted value.
  43518. (WebCore::buildCharsetMaps): Added an assertion that the deleted and empty
  43519. values are not valid encodings.
  43520. * platform/TextEncoding.h: Defined InvalidEncoding2.
  43521. 2006-05-18 David Hyatt <hyatt@apple.com>
  43522. Horrible glyph map performance regression fix.
  43523. The initial page of the map was being rebuilt over and over again.
  43524. Reviewed by andersca
  43525. * platform/GlyphMap.cpp:
  43526. (WebCore::GlyphMap::locatePage):
  43527. * platform/GlyphWidthMap.cpp:
  43528. (WebCore::GlyphWidthMap::locatePage):
  43529. 2006-05-18 Anders Carlsson <acarlsson@apple.com>
  43530. Reviewed by Darin.
  43531. http://bugs.webkit.org/show_bug.cgi?id=8964
  43532. Autogenerate more HTML classes
  43533. * DerivedSources.make:
  43534. * WebCore.xcodeproj/project.pbxproj:
  43535. Add new files.
  43536. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  43537. (WebCore::createAnchorWrapper):
  43538. (WebCore::createAppletWrapper):
  43539. (WebCore::createDivWrapper):
  43540. (WebCore::createDirectoryWrapper):
  43541. (WebCore::createDListWrapper):
  43542. (WebCore::createHtmlWrapper):
  43543. (WebCore::createOListWrapper):
  43544. (WebCore::createUListWrapper):
  43545. (WebCore::createJSWrapper):
  43546. Add wrappers.
  43547. * bindings/js/kjs_html.cpp:
  43548. (KJS::):
  43549. (KJS::JSHTMLElement::classInfo):
  43550. (KJS::JSHTMLElement::accessors):
  43551. (KJS::HTMLElementFunction::callAsFunction):
  43552. * bindings/js/kjs_html.h:
  43553. (KJS::JSHTMLElement::):
  43554. Delete the old implementations.
  43555. * html/HTMLAnchorElement.cpp:
  43556. (WebCore::HTMLAnchorElement::hash):
  43557. (WebCore::HTMLAnchorElement::host):
  43558. (WebCore::HTMLAnchorElement::hostname):
  43559. (WebCore::HTMLAnchorElement::pathname):
  43560. (WebCore::HTMLAnchorElement::port):
  43561. (WebCore::HTMLAnchorElement::protocol):
  43562. (WebCore::HTMLAnchorElement::search):
  43563. (WebCore::HTMLAnchorElement::text):
  43564. * html/HTMLAnchorElement.h:
  43565. Add some new accessor methods which used to be in kjs_html.cpp.
  43566. * html/HTMLAnchorElement.idl: Added.
  43567. * html/HTMLAppletElement.idl: Added.
  43568. * html/HTMLDListElement.idl: Added.
  43569. * html/HTMLDirectoryElement.idl: Added.
  43570. * html/HTMLDivElement.idl: Added.
  43571. * html/HTMLHtmlElement.idl: Added.
  43572. * html/HTMLOListElement.idl: Added.
  43573. * html/HTMLUListElement.idl: Added.
  43574. 2006-05-17 David Hyatt <hyatt@apple.com>
  43575. Convert the width map for glyphs into the same new HashMap-style as the
  43576. glyph map for characters.
  43577. * WebCore.xcodeproj/project.pbxproj:
  43578. * platform/FontData.cpp:
  43579. (WebCore::FontData::~FontData):
  43580. (WebCore::FontData::widthForGlyph):
  43581. * platform/FontData.h:
  43582. * platform/GlyphWidthMap.cpp: Added.
  43583. (WebCore::GlyphWidthMap::widthForGlyph):
  43584. (WebCore::GlyphWidthMap::setWidthForGlyph):
  43585. (WebCore::GlyphWidthMap::locatePage):
  43586. * platform/GlyphWidthMap.h: Added.
  43587. (WebCore::GlyphWidthMap::GlyphWidthMap):
  43588. (WebCore::GlyphWidthMap::~GlyphWidthMap):
  43589. (WebCore::GlyphWidthMap::GlyphWidthPage::widthForGlyph):
  43590. (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForGlyph):
  43591. (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForIndex):
  43592. 2006-05-17 David Hyatt <hyatt@apple.com>
  43593. Rename FontData.mm to FontData.cpp, since it has no obj-c in it.
  43594. * WebCore.xcodeproj/project.pbxproj:
  43595. * platform/FontData.cpp: Added.
  43596. 2006-05-17 David Hyatt <hyatt@apple.com>
  43597. Split FontData.mm into platform-specific and cross-platform pieces.
  43598. Reviewed by andersca
  43599. * WebCore.xcodeproj/project.pbxproj:
  43600. * platform/FontData.h:
  43601. (WebCore::FontData::xHeight):
  43602. * platform/mac/FontData.mm:
  43603. (WebCore::FontData::widthForGlyph):
  43604. (WebCore::m_smallCapsFontData):
  43605. (WebCore::FontData::~FontData):
  43606. (WebCore::extendWidthMap):
  43607. 2006-05-17 John Sullivan <sullivan@apple.com>
  43608. Reviewed by Darin Adler
  43609. Improvement to my previous patch, suggested by Darin
  43610. * dom/Document.cpp:
  43611. (WebCore::Document::repaintMarkers):
  43612. new method, similar in structure to removeMarkers but just repaints each node that
  43613. has a marker of the specified type
  43614. * dom/Document.h:
  43615. declare new method, and tweak style in related method declarations
  43616. * page/Frame.cpp:
  43617. (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
  43618. if the value changes, call repaintMarkers
  43619. 2006-05-17 Eric Seidel <eseidel@apple.com>
  43620. Reviewed by andersca.
  43621. Autogenerate button, optgroup, option, input and textarea js bindings
  43622. http://bugs.webkit.org/show_bug.cgi?id=8953
  43623. * DerivedSources.make:
  43624. * WebCore.xcodeproj/project.pbxproj:
  43625. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  43626. (WebCore::createButtonWrapper):
  43627. (WebCore::createInputWrapper):
  43628. (WebCore::createOptGroupWrapper):
  43629. (WebCore::createOptionWrapper):
  43630. (WebCore::createTextAreaWrapper):
  43631. (WebCore::createJSWrapper):
  43632. * bindings/js/JSHTMLInputElementBase.cpp: Added.
  43633. (WebCore::JSHTMLInputElementBaseProtoFunc::callAsFunction):
  43634. (WebCore::):
  43635. (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
  43636. (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
  43637. * bindings/js/JSHTMLInputElementBase.h: Added.
  43638. (WebCore::JSHTMLInputElementBase::classInfo):
  43639. (WebCore::JSHTMLInputElementBase::):
  43640. (WebCore::JSHTMLInputElementBase::impl):
  43641. * bindings/js/JSHTMLOptionElementConstructor.cpp: Added.
  43642. (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
  43643. (WebCore::JSHTMLOptionElementConstructor::implementsConstruct):
  43644. (WebCore::JSHTMLOptionElementConstructor::construct):
  43645. * bindings/js/JSHTMLOptionElementConstructor.h: Added.
  43646. * bindings/js/kjs_domnode.h:
  43647. * bindings/js/kjs_html.cpp:
  43648. (KJS::):
  43649. (KJS::JSHTMLElement::classInfo):
  43650. (KJS::JSHTMLElement::accessors):
  43651. (KJS::JSHTMLElement::getOwnPropertySlot):
  43652. (KJS::HTMLElementFunction::callAsFunction):
  43653. (KJS::JSHTMLElement::put):
  43654. (KJS::JSHTMLElement::htmlSetter):
  43655. * bindings/js/kjs_html.h:
  43656. (KJS::JSHTMLElement::):
  43657. * bindings/js/kjs_window.cpp:
  43658. (KJS::Window::getValueProperty):
  43659. * bindings/scripts/CodeGeneratorJS.pm:
  43660. * html/HTMLButtonElement.idl: Added.
  43661. * html/HTMLInputElement.idl: Added.
  43662. * html/HTMLOptGroupElement.idl: Added.
  43663. * html/HTMLOptionElement.idl: Added.
  43664. * html/HTMLTextAreaElement.idl: Added.
  43665. 2006-05-17 Adele Peterson <adele@apple.com>
  43666. Reviewed by Hyatt.
  43667. First step for http://bugs.webkit.org/show_bug.cgi?id=8948
  43668. Switch to use new text field implementation for <textarea>
  43669. New textareas can be turned on by setting -webkit-appearance:textarea.
  43670. Tests:
  43671. * LayoutTests/fast/block/float/032.html - Updated results.
  43672. * bridge/mac/FrameMac.h: Added textDidChangeinTextArea to send notification over the bridge to form delegate.
  43673. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::textDidChangeInTextArea): ditto.
  43674. * page/Frame.cpp: (WebCore::Frame::textDidChangeInTextArea): ditto.
  43675. * page/Frame.h: ditto.
  43676. * css/CSSValueKeywords.in: Added textarea.
  43677. * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Updates to check for textarea.
  43678. * css/html4.css: Added style for textarea. Leaved background-color and appearance values commented out.
  43679. * rendering/render_style.h: (WebCore::): Added TextAreaAppearance.
  43680. * rendering/RenderTheme.cpp:
  43681. (WebCore::RenderTheme::adjustStyle): Updated for textarea.
  43682. (WebCore::RenderTheme::paint): ditto.
  43683. (WebCore::RenderTheme::paintBorderOnly): ditto.
  43684. (WebCore::RenderTheme::isControlStyled): ditto.
  43685. (WebCore::RenderTheme::supportsFocusRing): ditto.
  43686. (WebCore::RenderTheme::adjustTextFieldStyle): ditto.
  43687. (WebCore::RenderTheme::adjustTextAreaStyle): ditto.
  43688. * rendering/RenderTheme.h: (WebCore::RenderTheme::paintTextArea): Added.
  43689. * rendering/RenderThemeMac.h: Added adjustTextAreaStyle.
  43690. Note- I didn't add a paintTextArea function for RenderThemeMac, since we can just paint the border
  43691. specified in html4.css to match the NSTextView border. Added a paintTextArea function to the Windows
  43692. theme can override that border.
  43693. * rendering/RenderThemeMac.mm:
  43694. (WebCore::RenderThemeMac::isControlStyled): Updated for textarea.
  43695. (WebCore::RenderThemeMac::adjustTextAreaStyle): ditto.
  43696. * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::HTMLGenericFormElement):
  43697. Moved m_valueMatchesRenderer and its setters and getters into this class so HTMLInputElement and
  43698. HTMLTextArea can share.
  43699. * html/HTMLGenericFormElement.h:
  43700. (WebCore::HTMLGenericFormElement::valueMatchesRenderer): Added.
  43701. (WebCore::HTMLGenericFormElement::setValueMatchesRenderer): Added.
  43702. * html/HTMLInputElement.cpp:
  43703. (WebCore::HTMLInputElement::init): Remove m_valueMatchesRenderer intialization.
  43704. (WebCore::HTMLInputElement::isKeyboardFocusable): Updated spelling.
  43705. (WebCore::HTMLInputElement::createRenderer): Pass multiLine bool to RenderTextField constructor.
  43706. (WebCore::HTMLInputElement::parseMappedAttribute): Use setValueMatchesRenderer instead of m_valueMatchesRenderer.
  43707. (WebCore::HTMLInputElement::detach): ditto.
  43708. (WebCore::HTMLInputElement::setValue): ditto.
  43709. (WebCore::HTMLInputElement::setValueFromRenderer): ditto.
  43710. * html/HTMLInputElement.h: Remove setValueMatchesRenderer and valueMatchesRenderer and m_valueMatchesRenderer.
  43711. * html/HTMLTextAreaElement.cpp:
  43712. (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Calls setValueMatchesRenderer to intialize m_valueMatchesRenderer.
  43713. (WebCore::HTMLTextAreaElement::selectionStart): Uses appearance to determine which renderer to use.
  43714. (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
  43715. (WebCore::HTMLTextAreaElement::setSelectionStart): ditto.
  43716. (WebCore::HTMLTextAreaElement::setSelectionEnd): ditto.
  43717. (WebCore::HTMLTextAreaElement::select): ditto.
  43718. (WebCore::HTMLTextAreaElement::setSelectionRange): ditto.
  43719. (WebCore::HTMLTextAreaElement::createRenderer): ditto.
  43720. (WebCore::HTMLTextAreaElement::appendFormData): ditto.
  43721. (WebCore::HTMLTextAreaElement::updateValue): ditto.
  43722. (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Added.
  43723. (WebCore::HTMLTextAreaElement::isMouseFocusable): Added.
  43724. (WebCore::HTMLTextAreaElement::focus): Added.
  43725. (WebCore::HTMLTextAreaElement::defaultEventHandler): Added to forward events to the inner div.
  43726. (WebCore::HTMLTextAreaElement::setValue): Calls setValueMatchesRenderer.
  43727. * html/HTMLTextAreaElement.h: Added defaultEventHandler, isMouseFocusable, isKeyboardFocusable, and focus methods.
  43728. Removed invalidateValue and m_valueMatchesRenderer since those are now handled in the base class.
  43729. * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler):
  43730. Updated to handle textareas.
  43731. * rendering/RenderTextArea.cpp: (WebCore::RenderTextArea::valueChanged):
  43732. Calls setValueMatchesRenderer(false) instead of invalidateValue.
  43733. * rendering/RenderTextField.h: Changed to be a RenderFlexibleBox instead of a RenderBlock.
  43734. This was necessary to get the inner div's height to grow and shrink with the size of the textarea.
  43735. Added m_multiLine bool, and calcHeight, canHaveChildren, baselinePosition, isTextArea, textWithHardLineBreaks, selectionChanged.
  43736. (WebCore::RenderTextField::canHaveChildren): Returns false now so that no renderer gets created for
  43737. the textarea's child text node for its initial contents.
  43738. (WebCore::RenderTextField::isTextField): Returns true if m_multiLine is false.
  43739. (WebCore::RenderTextField::isTextArea): Returns true if m_multiLine is true.
  43740. * rendering/RenderTextField.cpp:
  43741. (WebCore::RenderTextField::RenderTextField): Initializes m_multiLine.
  43742. (WebCore::RenderTextField::~RenderTextField): Notifies HTMLTextAreaElement that the renderer is being destroyed so the value gets updated.
  43743. (WebCore::RenderTextField::setStyle): Makes sure there's no overflow clip on the RenderTextField, since we're handling overflow on the inner div.
  43744. (WebCore::RenderTextField::createDivStyle): Sets white-space, box-flex, overflow, word-wrap styles needed for text area.
  43745. (WebCore::RenderTextField::updateFromElement): Updated for textarea elements.
  43746. (WebCore::RenderTextField::setSelectionRange): Optimized caret case by checking to see if start is equal to end before calculating
  43747. the same VisiblePosition twice.
  43748. (WebCore::RenderTextField::subtreeHasChanged): Updated for textarea elements.
  43749. (WebCore::RenderTextField::text): Use innerText so newlines are considered.
  43750. (WebCore::RenderTextField::textWithHardLineBreaks): Added. Not implemented yet. Just calls text method.
  43751. (WebCore::RenderTextField::calcHeight): Added. Sets initial height based on specified number of rows, and then calls the base class.
  43752. (WebCore::RenderTextField::baselinePosition): Added. Unlike text fields, textareas align to the bottom.
  43753. (WebCore::RenderTextField::calcMinMaxWidth): Updated for textareas.
  43754. (WebCore::RenderTextField::selectionChanged): Added. Not implemented yet.
  43755. 2006-05-17 David Hyatt <hyatt@apple.com>
  43756. Fix for 8954, separate the glyph map out into its own files and make it
  43757. cross-platform.
  43758. Reviewed by darin
  43759. * WebCore.xcodeproj/project.pbxproj:
  43760. * platform/Font.cpp:
  43761. (WebCore::WidthIterator::advance):
  43762. * platform/FontData.h:
  43763. (WebCore::FontData::glyphDataForCharacter):
  43764. (WebCore::FontData::setGlyphDataForCharacter):
  43765. * platform/GlyphMap.cpp: Added.
  43766. (WebCore::GlyphMap::glyphDataForCharacter):
  43767. (WebCore::GlyphMap::setGlyphDataForCharacter):
  43768. (WebCore::GlyphMap::locatePage):
  43769. * platform/GlyphMap.h: Added.
  43770. (WebCore::GlyphMap::GlyphMap):
  43771. (WebCore::GlyphMap::~GlyphMap):
  43772. (WebCore::GlyphMap::GlyphPage::glyphDataForCharacter):
  43773. (WebCore::GlyphMap::GlyphPage::setGlyphDataForCharacter):
  43774. (WebCore::GlyphMap::GlyphPage::setGlyphDataForIndex):
  43775. * platform/mac/FontData.mm:
  43776. (-[NSFont WebCore]):
  43777. (WidthMap::m_ATSUMirrors):
  43778. (WidthMap::FontData::~FontData):
  43779. (WidthMap::FontData::xHeight):
  43780. (WidthMap::FontData::platformInit):
  43781. (WidthMap::extendWidthMap):
  43782. * platform/mac/GlyphMapMac.cpp: Added.
  43783. (WebCore::GlyphMap::fillPage):
  43784. * platform/mac/WebCoreSystemInterface.h:
  43785. 2006-05-17 Anders Carlsson <acarlsson@apple.com>
  43786. Reviewed by Maciej.
  43787. http://bugs.webkit.org/show_bug.cgi?id=8958
  43788. Should be able to have custom implementations for JS methods
  43789. * DerivedSources.make:
  43790. * WebCore.xcodeproj/project.pbxproj:
  43791. * bindings/js/JSCanvasRenderingContext2DBase.cpp: Removed.
  43792. * bindings/js/JSCanvasRenderingContext2DBase.h: Removed.
  43793. * bindings/js/JSCanvasRenderingContext2DCustom.cpp: Added.
  43794. Remove JSCanvasRenderingContext2DBase and add
  43795. JSCanvasRenderingContext2DCustom with custom implementations.
  43796. (WebCore::toJS):
  43797. (WebCore::toHTMLCanvasStyle):
  43798. (WebCore::JSCanvasRenderingContext2D::strokeStyle):
  43799. (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
  43800. (WebCore::JSCanvasRenderingContext2D::fillStyle):
  43801. (WebCore::JSCanvasRenderingContext2D::setFillStyle):
  43802. (WebCore::JSCanvasRenderingContext2D::setFillColor):
  43803. (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
  43804. (WebCore::JSCanvasRenderingContext2D::strokeRect):
  43805. (WebCore::JSCanvasRenderingContext2D::drawImage):
  43806. (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
  43807. (WebCore::JSCanvasRenderingContext2D::setShadow):
  43808. (WebCore::JSCanvasRenderingContext2D::createPattern):
  43809. Move implementations from JSCanvasRenderingContext2DBase.
  43810. * bindings/scripts/CodeGeneratorJS.pm:
  43811. Add new "Custom" extended attribute for functions and attributes. When a function or
  43812. attribute has this attribute, a custom implementation is called instead of calling down to
  43813. the DOM object.
  43814. * html/CanvasRenderingContext2D.idl:
  43815. Add bunch of custom attributes and functions.
  43816. 2006-05-17 John Sullivan <sullivan@apple.com>
  43817. Reviewed by Maciej.
  43818. First step towards making text-matching mechanism more flexible; now caller can
  43819. control whether or not the matches are highlighted.
  43820. * bridge/mac/WebCoreFrameBridge.h:
  43821. * bridge/mac/WebCoreFrameBridge.mm:
  43822. (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:]):
  43823. renamed from highlightAllMatchesForString:
  43824. (-[WebCoreFrameBridge markedTextMatchesAreHighlighted]):
  43825. new getter method
  43826. (-[WebCoreFrameBridge setMarkedTextMatchesAreHighlighted:]):
  43827. new setter method
  43828. (-[WebCoreFrameBridge unmarkAllTextMatches]):
  43829. renamed from clearHighlightedMatches
  43830. * page/Frame.h:
  43831. * page/Frame.cpp:
  43832. (WebCore::Frame::markAllMatchesForText):
  43833. renamed from highlightAllMatchesForString
  43834. (WebCore::Ferame::markedTextMatchesAreHighlighted):
  43835. new getter method, uses boolean ivar in FramePrivate
  43836. (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
  43837. new setter method, uses boolean ivar in FramePrivate
  43838. * page/FramePrivate.h:
  43839. (WebCore::FramePrivate::FramePrivate):
  43840. added boolean ivar m_highlightTextMatches, initialized to 0
  43841. * rendering/InlineTextBox.cpp:
  43842. (WebCore::InlineTextBox::paint):
  43843. respect markedTextMatchesAreHighlighted
  43844. * WebCore.xcodeproj/project.pbxproj:
  43845. newer Xcode removed some obsolete settings
  43846. 2006-05-17 Adele Peterson <adele@apple.com>
  43847. Reviewed by Beth.
  43848. * editing/htmlediting.cpp: (WebCore::editingIgnoresContent):
  43849. Reverting change that Darin made a few weeks ago. He was trying
  43850. to make editingIgnoresContent return true for the new text fields, but the code
  43851. actually didn't change that result. When the new text fields actually do return
  43852. true for editingIgnoresContent, other editing problems are exposed. For example,
  43853. moving the cursor around an editable area that contains a text field will cross the
  43854. text field boundary and descend into the shadow tree. So for now, we'll revert this
  43855. change.
  43856. 2006-05-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
  43857. Reviewed by Maciej, tweaked by Darin.
  43858. - fix http://bugs.webkit.org/show_bug.cgi?id=8951
  43859. AtomicString hash corrupted by high-bit Latin-1
  43860. Test: fast/encoding/high-bit-latin1.html
  43861. * platform/AtomicString.cpp: (WebCore::CStringTranslator::equal): Use an
  43862. unsigned char local.
  43863. * platform/StringImpl.cpp: (WebCore::StringImpl::init): Ditto.
  43864. 2006-05-17 Rob Buis <buis@kde.org>
  43865. Reviewed by Maciej.
  43866. Fix for http://bugs.webkit.org/show_bug.cgi?id=7492
  43867. CSS attribute selectors fail when the setAttribute() method is used
  43868. to create an attribute and the attribute name is not Class or ID.
  43869. Keep track of attributes used in attribute selectors to
  43870. check after setAttribute whether a style recalc is needed.
  43871. Test: fast/css/selector-set-attribute.html
  43872. * css/cssstyleselector.cpp:
  43873. (WebCore::CSSStyleSelector::checkOneSelector):
  43874. (WebCore::CSSStyleSelector::hasSelectorForAttribute):
  43875. * css/cssstyleselector.h:
  43876. * dom/StyledElement.cpp:
  43877. (WebCore::StyledElement::attributeChanged):
  43878. 2006-05-17 Rob Buis <buis@kde.org>
  43879. Reviewed by Darin.
  43880. Fix for http://bugs.webkit.org/show_bug.cgi?id=5264
  43881. document.createElementNS() should not allow to insert a second <html> element
  43882. Do extra checks for document nodes to detect multiple document elements
  43883. and document types.
  43884. Test: fast/dom/createDocumentType2.html
  43885. Test: fast/dom/createElementNS.html
  43886. * dom/Document.cpp:
  43887. (WebCore::Document::childTypeAllowed):
  43888. * dom/Document.h:
  43889. 2006-05-17 Anders Carlsson <acarlsson@apple.com>
  43890. Reviewed by Darin.
  43891. * DerivedSources.make:
  43892. Conditionally generate the SVG and XPath related files based on the value of
  43893. FEATURE_DEFINES. Also, pass FEATURE_DEFINES to the bindings generator.
  43894. * WebCore.xcodeproj/project.pbxproj:
  43895. Add FEATURE_DEFINES as a toplevel build setting and set it to "SVG_SUPPORT XPATH_SUPPORT"
  43896. to keep SVG and XPath support turned on. Add FEATURE_DEFINES to the CPP defines.
  43897. * bindings/js/kjs_binding.cpp:
  43898. (KJS::setDOMException):
  43899. Add #ifdefs around the XPath code.
  43900. * bindings/scripts/CodeGeneratorJS.pm:
  43901. Add "Conditional" extended attribute for interfaces. If this is set, the generated code will be
  43902. surrounded by an #if.
  43903. * bindings/scripts/IDLParser.pm:
  43904. Pass the define flags on to the preprocessor.
  43905. * bindings/scripts/generate-bindings.pl:
  43906. Add a --defines property and pass it on to the parser.
  43907. * css/cssstyleselector.h:
  43908. Add DeprecatedString.h include.
  43909. * dom/Document.idl:
  43910. Put back #if around the XPath functions
  43911. * page/DOMWindow.idl:
  43912. Put #if around the XPath constructors
  43913. * xpath/XPathEvaluator.idl:
  43914. * xpath/XPathExpression.idl:
  43915. * xpath/XPathNSResolver.cpp:
  43916. * xpath/XPathNSResolver.idl:
  43917. * xpath/XPathNamespace.cpp:
  43918. * xpath/XPathResult.idl:
  43919. Add "Conditional=XPATH" to all interfaces.
  43920. 2006-05-16 Darin Adler <darin@apple.com>
  43921. Reviewed by Anders.
  43922. - http://bugs.webkit.org/show_bug.cgi?id=8940
  43923. remove extra copy of image code
  43924. * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRenderer.h.
  43925. * platform/mac/WebCoreImageRenderer.h: Removed.
  43926. * bridge/mac/WebCoreFrameBridge.h: Added supportedImageResourceMIMETypes.
  43927. Like supportedImageMIMETypes, but includes PDF and PostScript.
  43928. * bridge/mac/WebCoreFrameBridge.mm:
  43929. (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): Added.
  43930. Has code that came from -[WebImageRendererFactory supportedMIMETypes].
  43931. (+[WebCoreFrameBridge supportedImageMIMETypes]):
  43932. * platform/mac/ImageMac.mm:
  43933. (WebCore::Image::supportsType): Instead of calling the old
  43934. -[WebCoreImageRendererFactory supportedMIMETypes], call the new
  43935. +[WebCoreFrameBridge supportedImageResourceMIMETypes].
  43936. (WebCore::Image::drawTiled): Use wkSetPatternPhaseInUserSpace instead of
  43937. the WebCoreImageRendererFactory.
  43938. * platform/mac/ClipboardMac.mm: Removed an unneeded include of
  43939. WebCoreImageRenderer.h.
  43940. * platform/mac/WebCoreImageRendererFactory.h: Removed everything except
  43941. for the one remaining method, imageDataForName:, which gets resources
  43942. from the WebKit localized resources. We should figure out how to remove
  43943. that one too later.
  43944. * platform/mac/WebCoreImageRendererFactory.m: Ditto.
  43945. * platform/mac/WebCoreSystemInterface.h: Added some new calls.
  43946. * platform/mac/WebCoreSystemInterface.mm: Ditto.
  43947. * WebCore.exp: Ditto.
  43948. * platform/cairo/ImageCairo.cpp: Moved a stub to the stubs file. If it's
  43949. here it has to have a FIXME comment and also it contains a big commented-out
  43950. pile of code. Better to have it in the stubs file with all the other stubs.
  43951. * platform/win/TemporaryLinkStubs.cpp: (Image::drawTiled): Put stub here
  43952. instead of having it in ImageCairo.cpp.
  43953. 2006-05-16 Anders Carlsson <acarlsson@apple.com>
  43954. Reviewed by Dave Hyatt.
  43955. http://bugs.webkit.org/show_bug.cgi?id=8941
  43956. document.cookie undefined for documents of type text/javascript
  43957. * loader/TextDocument.cpp:
  43958. (WebCore::TextDocument::TextDocument):
  43959. * loader/TextDocument.h:
  43960. Inherit from HTMLDocument.
  43961. 2006-05-16 Darin Adler <darin@apple.com>
  43962. Reviewed by Hyatt.
  43963. - fix http://bugs.webkit.org/show_bug.cgi?id=8898
  43964. REGRESSION: Attempting to right-click image in own tab on website causes crash
  43965. - fix http://bugs.webkit.org/show_bug.cgi?id=8919
  43966. REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
  43967. * bridge/mac/WebCoreFrameBridge.mm:
  43968. (-[WebCoreFrameBridge domain]): Removed unneeded check of isHTMLDocument.
  43969. (-[WebCoreFrameBridge getData:andResponse:forURL:]): Handle document() of 0.
  43970. (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]): Ditto.
  43971. 2006-05-16 Eric Seidel <eseidel@apple.com>
  43972. Reviewed by andersca.
  43973. Autogenerate BASE, HEAD, LINK, STYLE and TITLE JS bindings.
  43974. Already covered by existing dom tests.
  43975. * DerivedSources.make:
  43976. * WebCore.xcodeproj/project.pbxproj:
  43977. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  43978. (WebCore::createBaseWrapper):
  43979. (WebCore::createHeadWrapper):
  43980. (WebCore::createLinkWrapper):
  43981. (WebCore::createStyleWrapper):
  43982. (WebCore::createTitleWrapper):
  43983. (WebCore::createJSWrapper):
  43984. * bindings/js/kjs_html.cpp:
  43985. (KJS::):
  43986. (KJS::JSHTMLElement::classInfo):
  43987. (KJS::JSHTMLElement::accessors):
  43988. * bindings/js/kjs_html.h:
  43989. * html/HTMLBaseElement.idl: Added.
  43990. * html/HTMLHeadElement.idl: Added.
  43991. * html/HTMLLinkElement.idl: Added.
  43992. * html/HTMLStyleElement.idl: Added.
  43993. * html/HTMLTitleElement.idl: Added.
  43994. 2006-05-16 Anders Carlsson <acarlsson@apple.com>
  43995. Reviewed by Maciej.
  43996. http://bugs.webkit.org/show_bug.cgi?id=8921
  43997. Use WebCore to render full-frame images.
  43998. * WebCore.xcodeproj/project.pbxproj:
  43999. Add ImageDocument.
  44000. * bridge/mac/WebCoreFrameBridge.h:
  44001. Add mainResourceURLResponse and imageTitleForFilename.
  44002. * bridge/mac/WebCoreFrameBridge.mm:
  44003. (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
  44004. This used to be supportedMIMETypes but WebKit requires that we handle the
  44005. image MIME types separately.
  44006. (+[WebCoreFrameBridge supportedImageMIMETypes]):
  44007. Add image types from WebCoreImageRendererFactory.
  44008. (-[WebCoreFrameBridge canProvideDocumentSource]):
  44009. Return no for image types.
  44010. * dom/xml_tokenizer.h:
  44011. (WebCore::Tokenizer::wantsRawData):
  44012. (WebCore::Tokenizer::writeRawData):
  44013. New virtual functions which tokenizers can override if they want to get
  44014. raw data (which isn't fed through the decoder)
  44015. * html/HTMLImageElement.h:
  44016. (WebCore::HTMLImageElement::setLoadManually):
  44017. New function which calls HTMLImageLoader::setLoadManually
  44018. * html/HTMLImageLoader.cpp:
  44019. (WebCore::HTMLImageLoader::HTMLImageLoader):
  44020. (WebCore::HTMLImageLoader::updateFromElement):
  44021. Don't request the image from the loader if the load is set to be manual.
  44022. * html/HTMLImageLoader.h:
  44023. (WebCore::HTMLImageLoader::setLoadManually):
  44024. New function which decides if the image data should be fed manually or loaded
  44025. by the loader.
  44026. * loader/DocLoader.h:
  44027. Add HTMLImageLoader as a friend.
  44028. * loader/ImageDocument.cpp: Added.
  44029. (WebCore::ImageTokenizer::ImageTokenizer):
  44030. (WebCore::ImageTokenizer::wantsRawData):
  44031. (WebCore::ImageTokenizer::write):
  44032. (WebCore::ImageTokenizer::writeRawData):
  44033. (WebCore::ImageTokenizer::stopParsing):
  44034. (WebCore::ImageTokenizer::finish):
  44035. (WebCore::ImageTokenizer::isWaitingForScripts):
  44036. (WebCore::ImageDocument::ImageDocument):
  44037. (WebCore::ImageDocument::createTokenizer):
  44038. * loader/ImageDocument.h: Added.
  44039. Add new ImageDocument class which will feed its data to a created image element.
  44040. * loader/TextDocument.h:
  44041. Inherit from HTMLDocument here too, in case any broken web pages want to manipulate
  44042. the DOM of any plain text documents.
  44043. * page/Frame.cpp:
  44044. (WebCore::Frame::begin):
  44045. (WebCore::Frame::write):
  44046. Don't create or use the decoder if the tokenizer is in "raw mode".
  44047. 2006-05-16 Eric Seidel <eseidel@apple.com>
  44048. Reviewed by andersca.
  44049. Autogenerate JSHTMLMetaElement.
  44050. http://bugs.webkit.org/show_bug.cgi?id=8938
  44051. Test: fast/dom/HTMLMetaElement/meta-attributes.html
  44052. * DerivedSources.make:
  44053. * WebCore.xcodeproj/project.pbxproj:
  44054. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  44055. (WebCore::createMetaWrapper):
  44056. (WebCore::createJSWrapper):
  44057. * bindings/js/kjs_html.cpp:
  44058. (KJS::):
  44059. (KJS::JSHTMLElement::classInfo):
  44060. (KJS::JSHTMLElement::accessors):
  44061. * bindings/js/kjs_html.h:
  44062. * html/HTMLMetaElement.h:
  44063. 2006-05-16 David Hyatt <hyatt@apple.com>
  44064. Bug 8936, eliminate WebTextRendererFactory and convert it over to the
  44065. new FontCache.
  44066. Reviewed by andersca
  44067. * WebCore.xcodeproj/project.pbxproj:
  44068. * bridge/mac/WebCoreStringTruncator.mm:
  44069. * kwq/KWQComboBox.mm:
  44070. * kwq/KWQLineEdit.mm:
  44071. * kwq/KWQListBox.mm:
  44072. * platform/Font.h:
  44073. (WebCore::Font::bold):
  44074. * platform/FontCache.cpp: Added.
  44075. (WebCore::FontPlatformDataCacheKey::m_italic):
  44076. (WebCore::FontPlatformDataCacheKey::operator==):
  44077. (WebCore::computeHash):
  44078. (WebCore::FontPlatformDataCacheKeyHash::hash):
  44079. (WebCore::FontPlatformDataCacheKeyHash::equal):
  44080. (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
  44081. (WebCore::FontCache::getCachedFontPlatformData):
  44082. (WebCore::FontDataCacheKeyHash::hash):
  44083. (WebCore::FontDataCacheKeyHash::equal):
  44084. (WebCore::FontDataCacheKeyTraits::deletedValue):
  44085. (WebCore::FontCache::getCachedFontData):
  44086. (WebCore::FontCache::getFontData):
  44087. (WebCore::FontCache::clearCommonCaches):
  44088. * platform/FontCache.h:
  44089. * platform/FontData.h:
  44090. * platform/FontFamily.cpp:
  44091. (WebCore::FontFamily::FontFamily):
  44092. (WebCore::FontFamily::operator=):
  44093. (WebCore::FontFamily::setFamily):
  44094. * platform/FontFamily.h:
  44095. (WebCore::FontFamily::familyIsEmpty):
  44096. * platform/FontPlatformData.h:
  44097. (WebCore::FontPlatformData::hash):
  44098. (WebCore::FontPlatformData::operator==):
  44099. * platform/mac/FontCacheMac.mm:
  44100. (WebCore::getAppDefaultValue):
  44101. (WebCore::getUserDefaultValue):
  44102. (WebCore::getLCDScaleParameters):
  44103. (WebCore::fontsChanged):
  44104. (WebCore::FontCache::registerForFontChanges):
  44105. (WebCore::FontCache::clearCaches):
  44106. (WebCore::FontCache::getFontDataForCharacters):
  44107. (WebCore::FontCache::getSimilarFontPlatformData):
  44108. (WebCore::FontCache::getLastResortFallbackFont):
  44109. (WebCore::FontCache::createFontPlatformData):
  44110. * platform/mac/FontData.mm:
  44111. (-[NSFont WebCore]):
  44112. (WidthMap::FontData::xHeight):
  44113. (WidthMap::FontData::smallCapsFontData):
  44114. (WidthMap::computeWidthForSpace):
  44115. (WidthMap::setUpFont):
  44116. (WidthMap::fillStyleWithAttributes):
  44117. (WidthMap::FontData::determinePitch):
  44118. * platform/mac/FontFallbackListMac.mm:
  44119. (WebCore::FontFallbackList::setPlatformFont):
  44120. * platform/mac/FontFamilyMac.mm: Removed.
  44121. * platform/mac/FontMac.mm:
  44122. * platform/mac/WebCoreTextRenderer.mm:
  44123. (WebCoreFindFont):
  44124. * platform/mac/WebFontCache.h: Added.
  44125. * platform/mac/WebFontCache.mm: Added.
  44126. (acceptableChoice):
  44127. (betterChoice):
  44128. (+[WebFontCache fontWithFamily:traits:size:]):
  44129. * platform/mac/WebTextRendererFactory.h: Removed.
  44130. * platform/mac/WebTextRendererFactory.mm: Removed.
  44131. 2006-05-16 Eric Seidel <eseidel@apple.com>
  44132. Reviewed by andersca.
  44133. Add Rect.idl, even though it can't be used quite yet due to generator limitations.
  44134. * WebCore.xcodeproj/project.pbxproj:
  44135. * css/Rect.idl: Added.
  44136. 2006-05-16 Sam Weinig <sam.weinig@gmail.com>
  44137. Reviewed by darin. Landed by eseidel.
  44138. Patch for <http://bugs.webkit.org/show_bug.cgi?id=8924>
  44139. Bug 8924: re-apply the 'disabled type=file' change
  44140. from bug 5882 to RenderFileButton
  44141. * rendering/RenderFileButton.cpp:
  44142. (WebCore::RenderFileButton::updateFromElement):
  44143. 2006-05-16 Eric Seidel <eseidel@apple.com>
  44144. Reviewed by hyatt.
  44145. Split css_base.* into separate files (one per class).
  44146. http://bugs.webkit.org/show_bug.cgi?id=8935
  44147. * WebCore.xcodeproj/project.pbxproj:
  44148. * bindings/js/kjs_css.cpp:
  44149. * css/CSSBorderImageValue.cpp:
  44150. * css/CSSBorderImageValue.h:
  44151. * css/CSSCharsetRule.h:
  44152. * css/CSSFontFaceRule.h:
  44153. * css/CSSGrammar.y:
  44154. * css/CSSImportRule.h:
  44155. * css/CSSInheritedValue.cpp:
  44156. * css/CSSInitialValue.cpp:
  44157. * css/CSSMediaRule.h:
  44158. * css/CSSMutableStyleDeclaration.h:
  44159. * css/CSSNamespace.h: Added.
  44160. (WebCore::CSSNamespace::CSSNamespace):
  44161. (WebCore::CSSNamespace::namespaceForPrefix):
  44162. * css/CSSPageRule.h:
  44163. * css/CSSPrimitiveValue.h:
  44164. * css/CSSProperty.cpp:
  44165. * css/CSSProperty.h:
  44166. * css/CSSRule.h:
  44167. * css/CSSRuleList.cpp:
  44168. * css/CSSSelector.cpp: Added.
  44169. * css/CSSSelector.h: Added.
  44170. (WebCore::CSSSelector::CSSSelector):
  44171. * css/CSSStyleDeclaration.h:
  44172. * css/CSSStyleRule.cpp:
  44173. * css/CSSStyleRule.h:
  44174. * css/CSSStyleSheet.cpp:
  44175. (WebCore::CSSStyleSheet::~CSSStyleSheet):
  44176. * css/CSSStyleSheet.h:
  44177. * css/CSSValue.h:
  44178. * css/CSSValueList.cpp:
  44179. * css/CSSValueList.h:
  44180. * css/FontFamilyValue.cpp:
  44181. * css/FontValue.cpp:
  44182. * css/FontValue.h:
  44183. * css/MediaList.h:
  44184. * css/ShadowValue.cpp:
  44185. * css/ShadowValue.h:
  44186. * css/StyleBase.cpp: Added.
  44187. (WebCore::StyleBase::stylesheet):
  44188. * css/StyleBase.h: Added.
  44189. (WebCore::StyleBase::StyleBase):
  44190. * css/StyleList.cpp: Added.
  44191. * css/StyleList.h: Added.
  44192. * css/StyleSheet.h:
  44193. * css/css_base.cpp: Removed.
  44194. * css/css_base.h: Removed.
  44195. * css/cssparser.cpp:
  44196. * css/cssstyleselector.cpp:
  44197. (WebCore::CSSStyleSelector::matchRulesForList):
  44198. * css/cssstyleselector.h:
  44199. * dom/CSSMappedAttributeDeclaration.h:
  44200. * ksvg2/svg/SVGColor.cpp:
  44201. (WebCore::SVGColor::SVGColor):
  44202. (WebCore::SVGColor::setRGBColor):
  44203. (WebCore::SVGColor::setRGBColorICCColor):
  44204. (WebCore::SVGColor::setColor):
  44205. (WebCore::SVGColor::cssText):
  44206. (WebCore::SVGColor::color):
  44207. * ksvg2/svg/SVGColor.h:
  44208. * ksvg2/svg/SVGStyledElement.cpp:
  44209. (WebCore::SVGStyledElement::SVGStyledElement):
  44210. (WebCore::SVGStyledElement::className):
  44211. (WebCore::SVGStyledElement::createRenderer):
  44212. (WebCore::SVGStyledElement::parseMappedAttribute):
  44213. (WebCore::SVGStyledElement::notifyAttributeChange):
  44214. (WebCore::SVGStyledElement::attributeChanged):
  44215. (WebCore::SVGStyledElement::canvas):
  44216. (WebCore::SVGStyledElement::updateCanvasItem):
  44217. (WebCore::SVGStyledElement::pushAttributeContext):
  44218. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44219. Reviewed by hyatt.
  44220. Split css_valueimpl.* and css_ruleimpl.* into separate files (one per class).
  44221. http://bugs.webkit.org/show_bug.cgi?id=8934
  44222. * WebCore+SVG/RGBColor.cpp:
  44223. (WebCore::RGBColor::RGBColor):
  44224. * WebCore.vcproj/WebCore/WebCore.vcproj:
  44225. * WebCore.xcodeproj/project.pbxproj:
  44226. * bindings/js/kjs_css.cpp:
  44227. (KJS::DOMCSSRule::classInfo):
  44228. * bindings/js/kjs_css.h:
  44229. * bindings/js/kjs_dom.cpp:
  44230. * bindings/js/kjs_html.cpp:
  44231. * bindings/js/kjs_window.cpp:
  44232. * bindings/objc/DOMCSS.mm:
  44233. * bindings/scripts/CodeGeneratorJS.pm:
  44234. * css/CSSBorderImageValue.cpp: Added.
  44235. (WebCore::CSSBorderImageValue::CSSBorderImageValue):
  44236. * css/CSSBorderImageValue.h: Added.
  44237. * css/CSSCharsetRule.h: Added.
  44238. (WebCore::CSSCharsetRule::CSSCharsetRule):
  44239. * css/CSSComputedStyleDeclaration.cpp:
  44240. (WebCore::valueForShadow):
  44241. (WebCore::):
  44242. * css/CSSComputedStyleDeclaration.h:
  44243. * css/CSSFontFaceRule.cpp: Added.
  44244. (WebCore::CSSFontFaceRule::CSSFontFaceRule):
  44245. * css/CSSFontFaceRule.h: Added.
  44246. (WebCore::CSSFontFaceRule::isFontFaceRule):
  44247. * css/CSSGrammar.y:
  44248. * css/CSSImageValue.cpp: Added.
  44249. (WebCore::CSSImageValue::CSSImageValue):
  44250. * css/CSSImageValue.h: Added.
  44251. * css/CSSImportRule.cpp: Added.
  44252. * css/CSSImportRule.h: Added.
  44253. * css/CSSInheritedValue.cpp: Added.
  44254. * css/CSSInheritedValue.h: Added.
  44255. * css/CSSInitialValue.cpp: Added.
  44256. * css/CSSInitialValue.h: Added.
  44257. * css/CSSMediaRule.cpp: Added.
  44258. (WebCore::CSSMediaRule::CSSMediaRule):
  44259. (WebCore::CSSMediaRule::~CSSMediaRule):
  44260. (WebCore::CSSMediaRule::append):
  44261. (WebCore::CSSMediaRule::deleteRule):
  44262. (WebCore::CSSMediaRule::cssText):
  44263. * css/CSSMediaRule.h: Added.
  44264. (WebCore::CSSMediaRule::media):
  44265. (WebCore::CSSMediaRule::cssRules):
  44266. * css/CSSMutableStyleDeclaration.cpp: Added.
  44267. (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration):
  44268. (WebCore::CSSMutableStyleDeclaration::setChanged):
  44269. * css/CSSMutableStyleDeclaration.h: Added.
  44270. * css/CSSPageRule.cpp: Added.
  44271. (WebCore::CSSPageRule::CSSPageRule):
  44272. * css/CSSPageRule.h: Added.
  44273. (WebCore::CSSPageRule::isPageRule):
  44274. * css/CSSPrimitiveValue.cpp: Added.
  44275. * css/CSSPrimitiveValue.h: Added.
  44276. * css/CSSProperty.cpp: Added.
  44277. (WebCore::CSSProperty::cssText):
  44278. * css/CSSProperty.h: Added.
  44279. (WebCore::CSSProperty::CSSProperty):
  44280. * css/CSSQuirkPrimitiveValue.h: Added.
  44281. * css/CSSRule.cpp: Added.
  44282. * css/CSSRule.h: Added.
  44283. (WebCore::CSSRule::CSSRule):
  44284. * css/CSSRuleList.cpp: Added.
  44285. (WebCore::CSSRuleList::CSSRuleList):
  44286. (WebCore::CSSRuleList::~CSSRuleList):
  44287. (WebCore::CSSRuleList::deleteRule):
  44288. (WebCore::CSSRuleList::append):
  44289. (WebCore::CSSRuleList::insertRule):
  44290. * css/CSSRuleList.h: Added.
  44291. (WebCore::CSSRuleList::item):
  44292. * css/CSSStyleDeclaration.cpp: Added.
  44293. (WebCore::CSSStyleDeclaration::CSSStyleDeclaration):
  44294. (WebCore::CSSStyleDeclaration::diff):
  44295. * css/CSSStyleDeclaration.h: Added.
  44296. * css/CSSStyleRule.cpp: Added.
  44297. (WebCore::CSSStyleRule::CSSStyleRule):
  44298. (WebCore::CSSStyleRule::selectorText):
  44299. * css/CSSStyleRule.h: Added.
  44300. * css/CSSStyleSheet.cpp:
  44301. (WebCore::CSSStyleSheet::ownerRule):
  44302. * css/CSSUnknownRule.h: Added.
  44303. (WebCore::CSSUnknownRule::CSSUnknownRule):
  44304. * css/CSSValue.h: Added.
  44305. * css/CSSValueList.cpp: Added.
  44306. * css/CSSValueList.h: Added.
  44307. * css/Counter.h: Added.
  44308. * css/DashboardRegion.h: Added.
  44309. * css/FontFamilyValue.cpp: Added.
  44310. * css/FontFamilyValue.h: Added.
  44311. (WebCore::FontFamilyValue::genericFamilyType):
  44312. * css/FontValue.cpp: Added.
  44313. (WebCore::FontValue::cssText):
  44314. * css/FontValue.h: Added.
  44315. * css/MediaList.cpp:
  44316. * css/Pair.h: Added.
  44317. (WebCore::Pair::~Pair):
  44318. * css/RectImpl.h: Added.
  44319. (WebCore::RectImpl::~RectImpl):
  44320. * css/ShadowValue.cpp: Added.
  44321. (WebCore::ShadowValue::ShadowValue):
  44322. * css/ShadowValue.h: Added.
  44323. * css/css_base.cpp:
  44324. * css/css_ruleimpl.cpp: Removed.
  44325. * css/css_ruleimpl.h: Removed.
  44326. * css/css_valueimpl.cpp: Removed.
  44327. * css/css_valueimpl.h: Removed.
  44328. * css/cssparser.cpp:
  44329. (WebCore::CSSParser::parseColor):
  44330. (WebCore::CSSParser::parseFontFamily):
  44331. * css/cssstyleselector.cpp:
  44332. (WebCore::CSSStyleSelector::locateCousinList):
  44333. (WebCore::CSSStyleSelector::checkSelector):
  44334. (WebCore::CSSRuleSet::addRulesFromSheet):
  44335. (WebCore::CSSStyleSelector::applyProperty):
  44336. (WebCore::CSSStyleSelector::mapBackgroundImage):
  44337. * css/cssstyleselector.h:
  44338. * dom/CSSMappedAttributeDeclaration.h:
  44339. (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
  44340. * dom/Document.cpp:
  44341. * editing/ApplyStyleCommand.cpp:
  44342. * editing/CompositeEditCommand.h:
  44343. * editing/EditCommand.cpp:
  44344. * editing/InsertLineBreakCommand.cpp:
  44345. (WebCore::InsertLineBreakCommand::doApply):
  44346. * editing/InsertLineBreakCommand.h:
  44347. * editing/InsertTextCommand.cpp:
  44348. (WebCore::InsertTextCommand::input):
  44349. * editing/RemoveCSSPropertyCommand.cpp:
  44350. (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand):
  44351. (WebCore::RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand):
  44352. * editing/RemoveCSSPropertyCommand.h:
  44353. (WebCore::RemoveCSSPropertyCommand::styleDeclaration):
  44354. * html/HTMLBodyElement.cpp:
  44355. * html/HTMLElement.cpp:
  44356. * html/HTMLScriptElement.h:
  44357. * html/HTMLTokenizer.h:
  44358. * kcanvas/KCanvasFilters.h:
  44359. (WebCore::KCanvasFEColorMatrix::values):
  44360. (WebCore::KCanvasFEColorMatrix::setValues):
  44361. (WebCore::KCanvasFEConvolveMatrix::kernel):
  44362. (WebCore::KCanvasFEConvolveMatrix::setKernel):
  44363. * kcanvas/KCanvasPath.h:
  44364. * kcanvas/KCanvasTreeDebug.h:
  44365. (WebCore::operator<<):
  44366. * kcanvas/RenderPath.h:
  44367. * ksvg2/css/SVGCSSParser.cpp:
  44368. (WebCore::CSSParser::parseSVGValue):
  44369. (WebCore::CSSParser::parseSVGStrokeDasharray):
  44370. (WebCore::CSSParser::parseSVGPaint):
  44371. (WebCore::CSSParser::parseSVGColor):
  44372. * ksvg2/css/SVGCSSStyleSelector.cpp:
  44373. (WebCore::CSSStyleSelector::applySVGProperty):
  44374. * ksvg2/css/SVGRenderStyleDefs.h:
  44375. * ksvg2/ecma/Ecma.cpp:
  44376. * ksvg2/misc/KCanvasRenderingStyle.cpp:
  44377. * ksvg2/misc/KCanvasRenderingStyle.h:
  44378. * ksvg2/svg/SVGAnimationElement.cpp:
  44379. * ksvg2/svg/SVGColor.cpp:
  44380. * ksvg2/svg/SVGColor.h:
  44381. * ksvg2/svg/SVGCursorElement.h:
  44382. * ksvg2/svg/SVGFEColorMatrixElement.cpp:
  44383. (SVGFEColorMatrixElement::filterEffect):
  44384. * page/DOMWindow.cpp:
  44385. * page/Frame.cpp:
  44386. * page/FramePrivate.h:
  44387. * platform/DeprecatedValueList.h:
  44388. * rendering/RenderTextField.cpp:
  44389. 2006-05-15 Darin Adler <darin@apple.com>
  44390. * WebCore.xcodeproj/project.pbxproj: Removed duplicate files that were
  44391. screwing up Xcode.
  44392. 2006-05-15 Darin Adler <darin@apple.com>
  44393. * make-generated-sources.sh: Changed to be executable and removed
  44394. text in the file generated by "svn diff".
  44395. * move-js-headers.sh: Ditto.
  44396. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44397. Reviewed by mjs.
  44398. Split css_stylesheetimpl.* into separate files (one per class).
  44399. http://bugs.webkit.org/show_bug.cgi?id=8933
  44400. * WebCore.vcproj/WebCore/WebCore.vcproj:
  44401. * WebCore.xcodeproj/project.pbxproj:
  44402. * css/CSSStyleSheet.cpp: Added.
  44403. (WebCore::CSSStyleSheet::CSSStyleSheet):
  44404. (WebCore::CSSStyleSheet::addRule):
  44405. (WebCore::CSSStyleSheet::deleteRule):
  44406. (WebCore::CSSStyleSheet::parseString):
  44407. (WebCore::CSSStyleSheet::docLoader):
  44408. * css/CSSStyleSheet.h: Added.
  44409. * css/MediaList.cpp: Added.
  44410. (WebCore::MediaList::MediaList):
  44411. (WebCore::MediaList::contains):
  44412. (WebCore::MediaList::parentStyleSheet):
  44413. (WebCore::MediaList::parentRule):
  44414. (WebCore::MediaList::deleteMedium):
  44415. (WebCore::MediaList::setMediaText):
  44416. * css/MediaList.h: Added.
  44417. * css/StyleSheet.cpp: Added.
  44418. (WebCore::StyleSheet::StyleSheet):
  44419. (WebCore::StyleSheet::parentStyleSheet):
  44420. (WebCore::StyleSheet::setMedia):
  44421. * css/StyleSheet.h: Added.
  44422. (WebCore::StyleSheet::ownerNode):
  44423. * css/StyleSheetList.cpp: Added.
  44424. (WebCore::StyleSheetList::~StyleSheetList):
  44425. (WebCore::StyleSheetList::add):
  44426. (WebCore::StyleSheetList::remove):
  44427. (WebCore::StyleSheetList::item):
  44428. * css/StyleSheetList.h: Added.
  44429. * css/css_stylesheetimpl.cpp: Removed.
  44430. * css/css_stylesheetimpl.h: Removed.
  44431. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44432. * WebCore.xcodeproj/project.pbxproj: build fix.
  44433. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44434. Reviewed by ggaren.
  44435. Split dom_xmlimpl.* into separate files (one per class).
  44436. * WebCore.xcodeproj/project.pbxproj:
  44437. * dom/Entity.cpp: Added.
  44438. (WebCore::Entity::Entity):
  44439. * dom/Entity.h: Added.
  44440. * dom/EntityReference.cpp: Added.
  44441. (WebCore::EntityReference::EntityReference):
  44442. * dom/EntityReference.h: Added.
  44443. * dom/Notation.cpp: Added.
  44444. (WebCore::Notation::Notation):
  44445. * dom/Notation.h: Added.
  44446. * dom/ProcessingInstruction.cpp: Added.
  44447. (WebCore::ProcessingInstruction::ProcessingInstruction):
  44448. * dom/ProcessingInstruction.h: Added.
  44449. * dom/dom_xmlimpl.cpp: Removed.
  44450. * dom/dom_xmlimpl.h: Removed.
  44451. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44452. Reviewed by Tim Hatcher.
  44453. Split html_imageimpl.* into separate files (one per class).
  44454. http://bugs.webkit.org/show_bug.cgi?id=8929
  44455. * WebCore.xcodeproj/project.pbxproj:
  44456. * bindings/js/JSCanvasRenderingContext2DBase.cpp:
  44457. * bindings/js/kjs_events.cpp:
  44458. * bindings/js/kjs_html.cpp:
  44459. * bindings/objc/DOMHTML.mm:
  44460. * bridge/mac/WebCoreFrameBridge.mm:
  44461. * dom/Document.cpp:
  44462. * editing/JSEditor.cpp:
  44463. * html/CanvasRenderingContext2D.cpp:
  44464. * html/HTMLAnchorElement.cpp:
  44465. * html/HTMLAreaElement.cpp: Added.
  44466. (WebCore::HTMLAreaElement::HTMLAreaElement):
  44467. (WebCore::HTMLAreaElement::mapMouseEvent):
  44468. (WebCore::HTMLAreaElement::getRect):
  44469. (WebCore::HTMLAreaElement::getRegion):
  44470. * html/HTMLAreaElement.h: Added.
  44471. * html/HTMLCanvasElement.h:
  44472. * html/HTMLDocument.cpp:
  44473. * html/HTMLElementFactory.cpp:
  44474. * html/HTMLFormCollection.cpp:
  44475. * html/HTMLFormElement.cpp:
  44476. * html/HTMLImageElement.cpp: Added.
  44477. (WebCore::HTMLImageElement::HTMLImageElement):
  44478. * html/HTMLImageElement.h: Added.
  44479. * html/HTMLImageLoader.cpp: Added.
  44480. (WebCore::HTMLImageLoader::HTMLImageLoader):
  44481. * html/HTMLImageLoader.h: Added.
  44482. * html/HTMLInputElement.cpp:
  44483. * html/HTMLMapElement.cpp: Added.
  44484. (WebCore::HTMLMapElement::mapMouseEvent):
  44485. (WebCore::HTMLMapElement::parseMappedAttribute):
  44486. * html/HTMLMapElement.h: Added.
  44487. * html/HTMLObjectElement.cpp:
  44488. * html/HTMLParser.cpp:
  44489. * html/html_imageimpl.cpp: Removed.
  44490. * html/html_imageimpl.h: Removed.
  44491. * ksvg2/misc/SVGImageLoader.h:
  44492. * kwq/WebCoreAXObject.mm:
  44493. (-[WebCoreAXObject addChildrenToArray:]):
  44494. * page/Frame.cpp:
  44495. * rendering/RenderImage.cpp:
  44496. (WebCore::RenderImage::RenderImage):
  44497. (WebCore::RenderImage::nodeAtPoint):
  44498. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44499. Reviewed by beth.
  44500. Split html_blockimpl.* into separate files (one per class).
  44501. http://bugs.webkit.org/show_bug.cgi?id=8927
  44502. * WebCore.xcodeproj/project.pbxproj:
  44503. * bindings/js/kjs_html.cpp:
  44504. * bindings/objc/DOMHTML.mm:
  44505. * html/HTMLBlockquoteElement.cpp: Added.
  44506. (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
  44507. * html/HTMLBlockquoteElement.h: Added.
  44508. * html/HTMLDivElement.cpp: Added.
  44509. * html/HTMLDivElement.h: Added.
  44510. * html/HTMLElementFactory.cpp:
  44511. * html/HTMLHRElement.cpp: Added.
  44512. * html/HTMLHRElement.h: Added.
  44513. * html/HTMLHeadingElement.cpp: Added.
  44514. * html/HTMLHeadingElement.h: Added.
  44515. * html/HTMLMarqueeElement.cpp: Added.
  44516. (WebCore::HTMLMarqueeElement::HTMLMarqueeElement):
  44517. (WebCore::HTMLMarqueeElement::parseMappedAttribute):
  44518. * html/HTMLMarqueeElement.h: Added.
  44519. * html/HTMLParagraphElement.cpp: Added.
  44520. * html/HTMLParagraphElement.h: Added.
  44521. * html/HTMLParser.cpp:
  44522. * html/HTMLPreElement.cpp: Added.
  44523. (WebCore::HTMLPreElement::HTMLPreElement):
  44524. (WebCore::HTMLPreElement::setWrap):
  44525. * html/HTMLPreElement.h: Added.
  44526. * html/HTMLTextFieldInnerElement.h:
  44527. * html/html_blockimpl.cpp: Removed.
  44528. * html/html_blockimpl.h: Removed.
  44529. * rendering/RenderLayer.cpp:
  44530. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44531. Reviewed by ggaren.
  44532. Split render_list.* and html_listimpl.* into separate files (one per class).
  44533. http://bugs.webkit.org/show_bug.cgi?id=8925
  44534. * WebCore.xcodeproj/project.pbxproj:
  44535. * bindings/js/kjs_html.cpp:
  44536. * bindings/objc/DOMHTML.mm:
  44537. * bridge/mac/FrameMac.mm:
  44538. (WebCore::FrameMac::attributedString):
  44539. * html/HTMLDListElement.cpp: Added.
  44540. (WebCore::HTMLDListElement::HTMLDListElement):
  44541. * html/HTMLDListElement.h: Added.
  44542. * html/HTMLDirectoryElement.cpp: Added.
  44543. (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
  44544. * html/HTMLDirectoryElement.h: Added.
  44545. * html/HTMLElementFactory.cpp:
  44546. * html/HTMLKeygenElement.cpp:
  44547. * html/HTMLLIElement.cpp: Added.
  44548. (WebCore::HTMLLIElement::HTMLLIElement):
  44549. (WebCore::HTMLLIElement::parseMappedAttribute):
  44550. (WebCore::HTMLLIElement::attach):
  44551. (WebCore::HTMLLIElement::setType):
  44552. * html/HTMLLIElement.h: Added.
  44553. * html/HTMLMenuElement.cpp: Added.
  44554. (WebCore::HTMLMenuElement::HTMLMenuElement):
  44555. * html/HTMLMenuElement.h: Added.
  44556. * html/HTMLOListElement.cpp: Added.
  44557. (WebCore::HTMLOListElement::HTMLOListElement):
  44558. (WebCore::HTMLOListElement::parseMappedAttribute):
  44559. (WebCore::HTMLOListElement::setType):
  44560. * html/HTMLOListElement.h: Added.
  44561. (WebCore::HTMLOListElement::start):
  44562. * html/HTMLOptionElement.cpp:
  44563. (WebCore::HTMLOptionElement::HTMLOptionElement):
  44564. (WebCore::HTMLOptionElement::checkDTD):
  44565. (WebCore::HTMLOptionElement::text):
  44566. (WebCore::HTMLOptionElement::setText):
  44567. (WebCore::HTMLOptionElement::getSelect):
  44568. (WebCore::HTMLOptionElement::setLabel):
  44569. * html/HTMLOptionElement.h:
  44570. * html/HTMLParser.cpp:
  44571. * html/HTMLSelectElement.cpp:
  44572. (WebCore::HTMLSelectElement::HTMLSelectElement):
  44573. * html/HTMLUListElement.cpp: Added.
  44574. (WebCore::HTMLUListElement::HTMLUListElement):
  44575. * html/HTMLUListElement.h: Added.
  44576. * html/html_listimpl.cpp: Removed.
  44577. * html/html_listimpl.h: Removed.
  44578. * kwq/WebCoreAXObject.mm:
  44579. * rendering/InlineFlowBox.cpp:
  44580. * rendering/ListMarkerBox.cpp: Added.
  44581. (WebCore::ListMarkerBox::ListMarkerBox):
  44582. (WebCore::ListMarkerBox::isText):
  44583. * rendering/ListMarkerBox.h: Added.
  44584. * rendering/RenderContainer.cpp:
  44585. (WebCore::updateListMarkerNumbers):
  44586. (WebCore::RenderContainer::addChild):
  44587. (WebCore::RenderContainer::removeChild):
  44588. (WebCore::RenderContainer::layout):
  44589. (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
  44590. (WebCore::RenderContainer::positionForCoordinates):
  44591. (WebCore::RenderContainer::lineBoxRects):
  44592. * rendering/RenderListItem.cpp: Added.
  44593. (WebCore::RenderListItem::RenderListItem):
  44594. (WebCore::RenderListItem::setStyle):
  44595. (WebCore::RenderListItem::calcValue):
  44596. (WebCore::RenderListItem::markerStringValue):
  44597. * rendering/RenderListItem.h: Added.
  44598. (WebCore::RenderListItem::renderName):
  44599. (WebCore::RenderListItem::setValue):
  44600. (WebCore::RenderListItem::setNotInList):
  44601. (WebCore::RenderListItem::notInList):
  44602. * rendering/RenderListMarker.cpp: Added.
  44603. (WebCore::RenderListMarker::RenderListMarker):
  44604. (WebCore::RenderListMarker::setStyle):
  44605. (WebCore::RenderListMarker::paint):
  44606. (WebCore::RenderListMarker::layout):
  44607. (WebCore::RenderListMarker::calcMinMaxWidth):
  44608. * rendering/RenderListMarker.h: Added.
  44609. (WebCore::RenderListMarker::renderName):
  44610. * rendering/RenderObject.cpp:
  44611. * rendering/render_list.cpp: Removed.
  44612. * rendering/render_list.h: Removed.
  44613. 2006-05-15 Sam Weinig <sam.weinig@gmail.com>
  44614. Reviewed by eseidel.
  44615. Split render_form.* into separate files (one per class).
  44616. http://bugs.webkit.org/show_bug.cgi?id=8889
  44617. * WebCore.xcodeproj/project.pbxproj:
  44618. * html/HTMLButtonElement.cpp:
  44619. (WebCore::HTMLButtonElement::HTMLButtonElement):
  44620. * html/HTMLFieldSetElement.cpp:
  44621. * html/HTMLFormElement.cpp:
  44622. * html/HTMLInputElement.cpp:
  44623. * html/HTMLLabelElement.cpp:
  44624. * html/HTMLLegendElement.cpp:
  44625. (WebCore::HTMLLegendElement::createRenderer):
  44626. * html/HTMLOptionElement.cpp:
  44627. * html/HTMLSelectElement.cpp:
  44628. * html/HTMLTextAreaElement.cpp:
  44629. (WebCore::HTMLTextAreaElement::selectionStart):
  44630. (WebCore::HTMLTextAreaElement::selectionEnd):
  44631. (WebCore::HTMLTextAreaElement::setSelectionStart):
  44632. (WebCore::HTMLTextAreaElement::setSelectionEnd):
  44633. (WebCore::HTMLTextAreaElement::setSelectionRange):
  44634. (WebCore::HTMLTextAreaElement::parseMappedAttribute):
  44635. (WebCore::HTMLTextAreaElement::createRenderer):
  44636. (WebCore::HTMLTextAreaElement::setValue):
  44637. (WebCore::HTMLTextAreaElement::setDefaultValue):
  44638. (WebCore::HTMLTextAreaElement::setAccessKey):
  44639. * kwq/KWQComboBox.mm:
  44640. * kwq/KWQFileButton.mm:
  44641. * kwq/KWQListBox.mm:
  44642. * kwq/KWQSlider.mm:
  44643. * platform/mac/WebCoreTextField.mm:
  44644. * rendering/RenderFieldset.cpp: Added.
  44645. (WebCore::RenderFieldset::RenderFieldset):
  44646. (WebCore::RenderFieldset::findLegend):
  44647. (WebCore::RenderFieldset::paintBorderMinusLegend):
  44648. (WebCore::RenderFieldset::setStyle):
  44649. * rendering/RenderFieldset.h: Added.
  44650. (WebCore::RenderFieldset::renderName):
  44651. * rendering/RenderFileButton.cpp: Added.
  44652. (WebCore::RenderFileButton::RenderFileButton):
  44653. (WebCore::RenderFileButton::calcMinMaxWidth):
  44654. (WebCore::RenderFileButton::updateFromElement):
  44655. (WebCore::RenderFileButton::click):
  44656. * rendering/RenderFileButton.h: Added.
  44657. (WebCore::RenderFileButton::renderName):
  44658. (WebCore::RenderFileButton::calcReplacedHeight):
  44659. (WebCore::RenderFileButton::isEditable):
  44660. * rendering/RenderFormElement.cpp: Added.
  44661. (WebCore::RenderFormElement::RenderFormElement):
  44662. (WebCore::RenderFormElement::baselinePosition):
  44663. (WebCore::RenderFormElement::layout):
  44664. * rendering/RenderFormElement.h: Added.
  44665. (WebCore::RenderFormElement::renderName):
  44666. (WebCore::RenderFormElement::isFormElement):
  44667. (WebCore::RenderFormElement::borderTop):
  44668. (WebCore::RenderFormElement::borderBottom):
  44669. (WebCore::RenderFormElement::borderLeft):
  44670. (WebCore::RenderFormElement::borderRight):
  44671. (WebCore::RenderFormElement::paddingTop):
  44672. (WebCore::RenderFormElement::paddingBottom):
  44673. (WebCore::RenderFormElement::paddingLeft):
  44674. (WebCore::RenderFormElement::paddingRight):
  44675. (WebCore::RenderFormElement::canHaveIntrinsicMargins):
  44676. (WebCore::RenderFormElement::intrinsicMargin):
  44677. (WebCore::RenderFormElement::isEditable):
  44678. * rendering/RenderImageButton.cpp: Added.
  44679. (WebCore::RenderImageButton::RenderImageButton):
  44680. * rendering/RenderImageButton.h: Added.
  44681. (WebCore::RenderImageButton::renderName):
  44682. (WebCore::RenderImageButton::isImageButton):
  44683. * rendering/RenderLabel.cpp: Added.
  44684. (WebCore::RenderLabel::RenderLabel):
  44685. * rendering/RenderLabel.h: Added.
  44686. (WebCore::RenderLabel::renderName):
  44687. * rendering/RenderLegend.cpp: Added.
  44688. (WebCore::RenderLegend::RenderLegend):
  44689. * rendering/RenderLegend.h: Added.
  44690. (WebCore::RenderLegend::renderName):
  44691. * rendering/RenderLineEdit.cpp: Added.
  44692. (WebCore::RenderLineEdit::RenderLineEdit):
  44693. * rendering/RenderLineEdit.h: Added.
  44694. (WebCore::RenderLineEdit::renderName):
  44695. (WebCore::RenderLineEdit::calcReplacedHeight):
  44696. (WebCore::RenderLineEdit::canHaveIntrinsicMargins):
  44697. (WebCore::RenderLineEdit::isTextField):
  44698. (WebCore::RenderLineEdit::isEditable):
  44699. * rendering/RenderSelect.cpp: Added.
  44700. (WebCore::RenderSelect::RenderSelect):
  44701. (WebCore::RenderSelect::setWidgetWritingDirection):
  44702. (WebCore::RenderSelect::setStyle):
  44703. (WebCore::RenderSelect::updateFromElement):
  44704. (WebCore::RenderSelect::baselinePosition):
  44705. (WebCore::RenderSelect::calcMinMaxWidth):
  44706. (WebCore::RenderSelect::layout):
  44707. (WebCore::RenderSelect::valueChanged):
  44708. (WebCore::RenderSelect::selectionChanged):
  44709. (WebCore::RenderSelect::updateSelection):
  44710. * rendering/RenderSelect.h: Added.
  44711. (WebCore::RenderSelect::renderName):
  44712. (WebCore::RenderSelect::calcReplacedHeight):
  44713. (WebCore::RenderSelect::canHaveIntrinsicMargins):
  44714. (WebCore::RenderSelect::selectionChanged):
  44715. (WebCore::RenderSelect::setSelectionChanged):
  44716. * rendering/RenderSlider.cpp: Added.
  44717. (WebCore::RenderSlider::calcMinMaxWidth):
  44718. (WebCore::RenderSlider::updateFromElement):
  44719. * rendering/RenderSlider.h: Added.
  44720. (WebCore::RenderSlider::renderName):
  44721. (WebCore::RenderSlider::canHaveIntrinsicMargins):
  44722. * rendering/RenderTextArea.cpp: Added.
  44723. (WebCore::RenderTextArea::RenderTextArea):
  44724. (WebCore::RenderTextArea::calcMinMaxWidth):
  44725. (WebCore::RenderTextArea::setStyle):
  44726. (WebCore::RenderTextArea::updateFromElement):
  44727. (WebCore::RenderTextArea::selectionStart):
  44728. (WebCore::RenderTextArea::selectionEnd):
  44729. (WebCore::RenderTextArea::setSelectionStart):
  44730. (WebCore::RenderTextArea::setSelectionEnd):
  44731. (WebCore::RenderTextArea::select):
  44732. (WebCore::RenderTextArea::setSelectionRange):
  44733. * rendering/RenderTextArea.h: Added.
  44734. (WebCore::RenderTextArea::renderName):
  44735. (WebCore::RenderTextArea::isTextArea):
  44736. (WebCore::RenderTextArea::isEdited):
  44737. (WebCore::RenderTextArea::canHaveIntrinsicMargins):
  44738. (WebCore::RenderTextArea::isEditable):
  44739. * rendering/render_form.cpp: Removed.
  44740. * rendering/render_form.h: Removed.
  44741. 2006-05-15 Anders Carlsson <acarlsson@apple.com>
  44742. Reviewed by Eric.
  44743. Remove the XPath log calls. They were causing leaks and were never
  44744. really useful.
  44745. * bridge/mac/WebCorePageBridge.mm:
  44746. (initializeLoggingChannelsIfNecessary):
  44747. * platform/Logging.cpp:
  44748. * platform/Logging.h:
  44749. * xpath/XPathResult.cpp:
  44750. (WebCore::XPathResult::convertTo):
  44751. * xpath/impl/XPathFunctions.cpp:
  44752. (round):
  44753. (WebCore::XPath::FunCount::doEvaluate):
  44754. (WebCore::XPath::FunSum::doEvaluate):
  44755. (WebCore::XPath::FunctionLibrary::createFunction):
  44756. * xpath/impl/XPathPath.cpp:
  44757. (WebCore::XPath::Filter::doEvaluate):
  44758. (WebCore::XPath::LocationPath::doEvaluate):
  44759. * xpath/impl/XPathPredicate.cpp:
  44760. (WebCore::XPath::Negative::doEvaluate):
  44761. (WebCore::XPath::NumericOp::doEvaluate):
  44762. (WebCore::XPath::Union::doEvaluate):
  44763. * xpath/impl/XPathStep.cpp:
  44764. (WebCore::XPath::Step::evaluate):
  44765. (WebCore::XPath::Step::nodesInAxis):
  44766. (WebCore::XPath::Step::nodeTestMatches):
  44767. * xpath/impl/XPathValue.cpp:
  44768. (WebCore::XPath::Value::toNodeVector):
  44769. 2006-05-15 Eric Seidel <eseidel@apple.com>
  44770. Fix linux build.
  44771. * html/HTMLBodyElement.cpp: Fix case of #include "cssstyleselector.h"
  44772. 2006-05-15 Anders Carlsson <acarlsson@apple.com>
  44773. Reviewed by Maciej.
  44774. http://bugs.webkit.org/show_bug.cgi?id=8913
  44775. REGRESSION: Can view source for text files
  44776. * bridge/mac/WebCoreFrameBridge.h:
  44777. * bridge/mac/WebCoreFrameBridge.mm:
  44778. (-[WebCoreFrameBridge canProvideDocumentSource]):
  44779. (-[WebCoreFrameBridge canSaveAsWebArchive]):
  44780. 2006-05-15 David Hyatt <hyatt@apple.com>
  44781. Remove the .forPrinter boolean from FontPlatformData. After the initial
  44782. acquisition of an NSFont, the font is then adjusted to printer or screen
  44783. when put into a FontPlatformData. Then it can simply be used in the hash
  44784. lookup to get a FontData.
  44785. Reviewed by mjs
  44786. * platform/Font.cpp:
  44787. (WebCore::WidthIterator::advance):
  44788. * platform/FontData.h:
  44789. * platform/FontDescription.h:
  44790. (WebCore::FontDescription::bold):
  44791. * platform/FontPlatformData.h:
  44792. (WebCore::FontPlatformData::syntheticOblique):
  44793. * platform/mac/FontCacheMac.mm:
  44794. (WebCore::FontCache::getFontDataForCharacters):
  44795. * platform/mac/FontData.mm:
  44796. (WebCore::FontData::smallCapsFontData):
  44797. (WebCore::getSmallCapsFontData):
  44798. (WebCore::setUpFont):
  44799. * platform/mac/FontMac.mm:
  44800. (WebCore::ATSULayoutParameters::initialize):
  44801. * platform/mac/WebTextRendererFactory.h:
  44802. * platform/mac/WebTextRendererFactory.mm:
  44803. (-[WebTextRendererFactory rendererWithFont:]):
  44804. (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
  44805. 2006-05-15 Anders Carlsson <acarlsson@apple.com>
  44806. Reviewed by Maciej.
  44807. * dom/Document.idl:
  44808. Remove #if XPATH_SUPPORT until we have a way to feed defines to the bindings generator
  44809. (see http://bugs.webkit.org/show_bug.cgi?id=8912)
  44810. 2006-05-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
  44811. Reviewed by Hyatt.
  44812. - fix http://bugs.webkit.org/show_bug.cgi?id=6838
  44813. Incomplete repaint of collapsed table borders
  44814. This patch updates the implementation of collapsing borders to match
  44815. the current spec.
  44816. Test: fast/repaint/table-collapsed-border.html
  44817. * rendering/RenderTable.cpp:
  44818. (WebCore::RenderTable::RenderTable):
  44819. (WebCore::RenderTable::layout): Calculate horizontal overflows.
  44820. (WebCore::RenderTable::calcMinMaxWidth): Added call to recalcHorizontalBorders.
  44821. (WebCore::RenderTable::colElement): Made const.
  44822. (WebCore::RenderTable::calcBorderLeft): Calculates the left border. In the collapsing
  44823. borders model, this is the left border of the leftmost cell of the first row.
  44824. (WebCore::RenderTable::calcBorderRight): Ditto for the right border.
  44825. (WebCore::RenderTable::recalcHorizontalBorders): Added.
  44826. (WebCore::RenderTable::borderTop): Changed to return outerBorderTop in the
  44827. collapsing case.
  44828. (WebCore::RenderTable::borderBottom): Changed to return outerBorderBottom in
  44829. the collapsing case.
  44830. (WebCore::RenderTable::outerBorderTop): Added. Returns the table half of the
  44831. top border, which is half the widest top border on the first row.
  44832. (WebCore::RenderTable::outerBorderBottom): Added. Returns the table half of the
  44833. bottom border, which is half the widest bottom border on the last row.
  44834. (WebCore::RenderTable::outerBorderLeft): Added. Returns the table half of the
  44835. left border, which is half the widest left border on the leftmost column.
  44836. (WebCore::RenderTable::outerBorderRight): Added. Returns the table half of the
  44837. right border, which is half the widest right border on the rightmost column.
  44838. (WebCore::RenderTable::cellAbove): Return 0 if the cell is in the first row
  44839. of the header.
  44840. (WebCore::RenderTable::cellBelow): Return 0 if the cell is in the last row
  44841. of the footer.
  44842. * rendering/RenderTable.h:
  44843. (WebCore::RenderTable::borderLeft):
  44844. (WebCore::RenderTable::borderRight):
  44845. (WebCore::RenderTable::overflowHeight):
  44846. * rendering/RenderTableCell.cpp:
  44847. (WebCore::RenderTableCell::borderLeft): Removed unnecessary use of floats.
  44848. (WebCore::RenderTableCell::borderTop): Ditto.
  44849. (WebCore::RenderTableCell::paint): Account for the table half of the vertical
  44850. borders.
  44851. (WebCore::RenderTableCell::paintCollapsedBorder): Removed unnecessary use of
  44852. floats.
  44853. * rendering/RenderTableSection.cpp:
  44854. (WebCore::RenderTableSection::RenderTableSection):
  44855. (WebCore::RenderTableSection::layoutRows): Added call to recalcOuterBorder.
  44856. (WebCore::RenderTableSection::calcOuterBorderTop): Added. Calculates the outer half of
  44857. the section's top border, which is half the widest top border on the first row.
  44858. (WebCore::RenderTableSection::calcOuterBorderBottom): Ditto for the bottom border.
  44859. (WebCore::RenderTableSection::calcOuterBorderLeft): Ditto for the left border.
  44860. (WebCore::RenderTableSection::calcOuterBorderRight): Ditto for the right border.
  44861. (WebCore::RenderTableSection::recalcOuterBorder): Added.
  44862. (WebCore::RenderTableSection::paint): Account for the table half of the borders.
  44863. * rendering/RenderTableSection.h:
  44864. (WebCore::RenderTableSection::outerBorderTop):
  44865. (WebCore::RenderTableSection::outerBorderBottom):
  44866. (WebCore::RenderTableSection::outerBorderLeft):
  44867. (WebCore::RenderTableSection::outerBorderRight):
  44868. * rendering/render_style.cpp:
  44869. (WebCore::RenderStyle::diff): Changed to return Layout if a border style changed
  44870. from 'hidden' to 'none' or vice versa in the collapsing borders model, since
  44871. 'hidden' suppresses other borders.
  44872. 2006-05-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
  44873. Reviewed by Darin.
  44874. - test for http://bugs.webkit.org/show_bug.cgi?id=8739
  44875. Crash in RenderTableSection::paint due to manipulating DOM on resize
  44876. * manual-tests/dom-manipulation-on-resize.html: Added.
  44877. 2006-05-14 Rob Buis <buis@kde.org>
  44878. Reviewed by Darin.
  44879. Fix for http://bugs.webkit.org/show_bug.cgi?id=5882:
  44880. disabled type="file" element doesn't appear disabled
  44881. Be sure to call setDisabled on the file button when in
  44882. RenderFileButton::updateFromElement.
  44883. * kwq/KWQFileButton.h:
  44884. * kwq/KWQFileButton.mm:
  44885. (-[WebFileChooserButton setEnabled:]):
  44886. (KWQFileButton::setDisabled):
  44887. * rendering/render_form.cpp:
  44888. (WebCore::RenderFileButton::updateFromElement):
  44889. 2006-05-14 Steve Falkenburg <sfalken@apple.com>
  44890. Fix Windows build.
  44891. * platform/win/FontWin.cpp:
  44892. (WebCore::FontFallbackList::fontDataAt):
  44893. (WebCore::hackishExtentForString):
  44894. (WebCore::Font::floatWidth):
  44895. (WebCore::Font::drawText):
  44896. (WebCore::Font::selectionRectForText):
  44897. (WebCore::Font::offsetForPosition):
  44898. 2006-05-14 David Hyatt <hyatt@apple.com>
  44899. Bug 8895. Rework font substitution and fallback. Lift the concept of
  44900. substitution and fallback out of FontData and up into the FontFallbackList.
  44901. See the bug for details of issues fixed in the fallback code.
  44902. Reviewed by darin
  44903. * WebCore.xcodeproj/project.pbxproj:
  44904. * platform/Font.cpp:
  44905. (WebCore::m_finalRoundingWidth):
  44906. (WebCore::WidthIterator::advance):
  44907. (WebCore::Font::primaryFont):
  44908. (WebCore::Font::fontDataAt):
  44909. (WebCore::Font::fontDataForCharacters):
  44910. (WebCore::Font::ascent):
  44911. (WebCore::Font::descent):
  44912. (WebCore::Font::lineSpacing):
  44913. (WebCore::Font::xHeight):
  44914. (WebCore::Font::isFixedPitch):
  44915. * platform/Font.h:
  44916. (WebCore::Font::getNSFont):
  44917. * platform/FontCache.h: Added.
  44918. * platform/FontData.h:
  44919. (WebCore::FontData::pitch):
  44920. (WebCore::FontData::getNSFont):
  44921. (WebCore::):
  44922. * platform/FontFallbackList.cpp: Added.
  44923. (WebCore::m_pitch):
  44924. (WebCore::FontFallbackList::~FontFallbackList):
  44925. (WebCore::FontFallbackList::invalidate):
  44926. (WebCore::FontFallbackList::determinePitch):
  44927. (WebCore::FontFallbackList::fontDataAt):
  44928. (WebCore::FontFallbackList::fontDataForCharacters):
  44929. * platform/FontFallbackList.h:
  44930. (WebCore::FontFallbackList::isFixedPitch):
  44931. (WebCore::FontFallbackList::primaryFont):
  44932. * platform/FontFamily.h:
  44933. * platform/mac/FontCacheMac.mm: Added.
  44934. (WebCore::FontCache::getFontData):
  44935. (WebCore::FontCache::getFontDataForCharacters):
  44936. * platform/mac/FontData.mm:
  44937. (WebCore::FontData::containsCharacters):
  44938. * platform/mac/FontMac.mm:
  44939. (WebCore::ATSULayoutParameters::initialize):
  44940. * platform/mac/WebTextRendererFactory.h:
  44941. * platform/mac/WebTextRendererFactory.mm:
  44942. (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
  44943. (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
  44944. * platform/win/FontWin.cpp:
  44945. (WebCore::FontFallbackList::determinePitch):
  44946. (WebCore::FontFallbackList::primaryFont):
  44947. (WebCore::FontFallbackList::fontDataAt):
  44948. (WebCore::FontFallbackList::fontDataForCharacters):
  44949. 2006-05-14 Sam Weinig <sam.weinig@gmail.com>
  44950. Reviewed by Hyatt, landed by ap.
  44951. Fix for <http://bugs.webkit.org/show_bug.cgi?id=8387>
  44952. "border-left/padding-Left do not show up on multiline rtl inline boxes"
  44953. Test: fast/inline/inline-borders-with-bidi-override.html: added
  44954. * rendering/InlineFlowBox.cpp:
  44955. (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
  44956. 2006-05-14 Steve Falkenburg <sfalken@apple.com>
  44957. Fix the Windows build the rest of the way
  44958. * WebCore.vcproj/WebCore/WebCore.vcproj:
  44959. 2006-05-14 Steve Falkenburg <sfalken@apple.com>
  44960. Get FontWin.cpp compiling.
  44961. WebCore and JSCore now build, but Spinneret still gets link errors.
  44962. * platform/win/FontWin.cpp:
  44963. (WebCore::Font::offsetForPosition):
  44964. 2006-05-14 Steve Falkenburg <sfalken@apple.com>
  44965. Reviewed by maciej.
  44966. Fix Windows build except for fontwin.cpp.
  44967. * WebCore/platform/win/FontWin.cpp:
  44968. * WebCore.vcproj/WebCore/WebCore.vcproj:
  44969. * bridge/win/FrameWin.cpp:
  44970. 2006-05-13 Kevin M. Ollivier <kevino@theolliviers.com>
  44971. Reviewed by Darin, landed by ap.
  44972. - http://bugs.webkit.org/show_bug.cgi?id=8528
  44973. Bakefiles (and generated Makefiles) for wx and gdk ports
  44974. * make-generated-sources.sh:
  44975. Added script to configure environment to run DerivedSources.make
  44976. * move-js-headers.sh:
  44977. Added script to copy JavaScriptCore includes into one dir so that
  44978. Framework-style includes will work on all OSes. (written by Mike Emmel)
  44979. * platform/wx: New dir, home for the wxWidgets port
  44980. * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
  44981. * Projects: New dir, for various project files for ports.
  44982. * Projects/gdk: New dir, GDK port files.
  44983. * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
  44984. * Projects/wx: New dir, wxWidgets port files.
  44985. * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
  44986. 2006-05-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
  44987. Reviewed by Darin, landed by ap.
  44988. - fix http://bugs.webkit.org/show_bug.cgi?id=8485
  44989. iExploder(#11705): Freeze in RenderBlock::layout()
  44990. Test: fast/text/midword-break-hang.html
  44991. * rendering/bidi.cpp:
  44992. (WebCore::RenderBlock::findNextLineBreak): If this is a mid-word break,
  44993. ignore breakOnlyAfterWhiteSpace.
  44994. 2006-05-13 Alexey Proskuryakov <ap@nypop.com>
  44995. Fix release build.
  44996. * rendering/RenderBox.cpp:
  44997. (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue.
  44998. This value will never be used, because 'left' and 'right' cannot both be 'auto'.
  44999. (WebCore::RenderBox::calcAbsoluteVerticalValues): Initialize topValue.
  45000. (WebCore::RenderBox::calcAbsoluteVerticalReplaced): Same changes as above.
  45001. 2006-05-13 Alexey Proskuryakov <ap@nypop.com>
  45002. Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection
  45003. highlight stays behind) to a correct file; removed the stale one.
  45004. * rendering/RootInlineBox.cpp:
  45005. (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
  45006. and m_selectionBottom.
  45007. * rendering/render_line.cpp: Removed.
  45008. 2006-05-13 Rob Buis <buis@kde.org>
  45009. Reviewed by Darin, landed by ap.
  45010. Fix for http://bugs.webkit.org/show_bug.cgi?id=8132
  45011. CSS parser sometimes accepts real number as integer
  45012. Add a boolean variable per css value to catch whether values
  45013. are specified as floats or integers.
  45014. Test: fast/css/rgb-float.html
  45015. * css/CSSGrammar.y:
  45016. * css/cssparser.cpp:
  45017. (WebCore::CSSParser::validUnit):
  45018. (WebCore::CSSParser::lex):
  45019. * css/cssparser.h:
  45020. * css/tokenizer.flex:
  45021. 2006-05-13 Sam Weinig <sam.weinig@gmail.com>
  45022. Reviewed by Hyatt, landed by ap.
  45023. Patch for http://bugs.webkit.org/show_bug.cgi?id=7604
  45024. calcAbsoluteHorizontalValues() is being getting passed arguments
  45025. in the wrong order in calcAbsoluteHorizontal()
  45026. Cleans up the RenderBox code for absolutely positioned elements
  45027. and adds new functions for replaced absolutely positioned
  45028. elements. Now uses Length so that magic number -666666 for
  45029. auto lengths is no longer used.
  45030. * rendering/RenderBox.cpp:
  45031. (WebCore::RenderBox::calcAbsoluteHorizontal):
  45032. (WebCore::RenderBox::calcAbsoluteHorizontalValues):
  45033. (WebCore::RenderBox::calcAbsoluteVertical):
  45034. (WebCore::RenderBox::calcAbsoluteVerticalValues):
  45035. (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
  45036. case separately.
  45037. (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
  45038. * rendering/RenderBox.h:
  45039. 2006-05-12 David Hyatt <hyatt@apple.com>
  45040. Bug 8880, remove the remaining drawing/hit testing code from
  45041. FontData.
  45042. Reviewed by tim h
  45043. * platform/Font.cpp:
  45044. (WebCore::m_finalRoundingWidth):
  45045. (WebCore::WidthIterator::advanceOneCharacter):
  45046. (WebCore::Font::selectionRectForText):
  45047. (WebCore::Font::selectionRectForSimpleText):
  45048. (WebCore::Font::offsetForPosition):
  45049. (WebCore::Font::offsetForPositionForSimpleText):
  45050. * platform/Font.h:
  45051. (WebCore::TextRun::makeComplete):
  45052. * platform/FontData.h:
  45053. * platform/GlyphBuffer.h:
  45054. (WebCore::GlyphBuffer::clear):
  45055. * platform/mac/FontData.mm:
  45056. * platform/mac/FontMac.mm:
  45057. (WebCore::Font::selectionRectForComplexText):
  45058. (WebCore::Font::offsetForPositionForComplexText):
  45059. 2006-05-12 Kevin M. Ollivier <kevino@theolliviers.com>
  45060. Reviewed by Maciej.
  45061. Add missing include.
  45062. * dom/Node.h: Add missing include for DeprecatedString.
  45063. 2006-05-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
  45064. Reviewed by Darin.
  45065. - fix http://bugs.webkit.org/show_bug.cgi?id=8835
  45066. REGRESSION: Line moves but selection highlight stays behind
  45067. Test: fast/dynamic/selection-highlight-adjust.html
  45068. * rendering/render_line.cpp:
  45069. (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
  45070. and m_selectionBottom.
  45071. 2006-05-12 Timothy Hatcher <timothy@apple.com>
  45072. Reviewed by Darin.
  45073. http://bugs.webkit.org/show_bug.cgi?id=7156
  45074. Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
  45075. Links in editable areas will not activate or perform a navigation
  45076. change (on par with WinIE and Firefox.) To visit the link
  45077. you can shift-click. Manual test added.
  45078. * css/cssstyleselector.cpp:
  45079. (WebCore::CSSStyleSelector::adjustRenderStyle):
  45080. * html/HTMLAnchorElement.cpp:
  45081. (WebCore::HTMLAnchorElement::defaultEventHandler):
  45082. (WebCore::HTMLAnchorElement::setActive):
  45083. * html/HTMLAnchorElement.h:
  45084. * manual-tests/contenteditable-link.html: Added.
  45085. * page/FrameView.cpp:
  45086. (WebCore::selectCursor):
  45087. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45088. Reviewed by timo.
  45089. Split out html_inlineimpl.* into separate files (one per class).
  45090. * WebCore.xcodeproj/project.pbxproj:
  45091. * bindings/js/kjs_html.cpp:
  45092. * bindings/objc/DOMHTML.mm:
  45093. * editing/CreateLinkCommand.cpp:
  45094. * editing/UnlinkCommand.cpp:
  45095. * html/HTMLAnchorElement.cpp: Added.
  45096. (WebCore::HTMLAnchorElement::HTMLAnchorElement):
  45097. * html/HTMLAnchorElement.h: Added.
  45098. * html/HTMLBRElement.cpp: Added.
  45099. * html/HTMLBRElement.h: Added.
  45100. * html/HTMLElementFactory.cpp:
  45101. * html/HTMLFontElement.cpp: Added.
  45102. (WebCore::HTMLFontElement::HTMLFontElement):
  45103. (WebCore::HTMLFontElement::setColor):
  45104. (WebCore::HTMLFontElement::setFace):
  45105. (WebCore::HTMLFontElement::setSize):
  45106. * html/HTMLFontElement.h: Added.
  45107. * html/HTMLModElement.cpp: Added.
  45108. (WebCore::HTMLModElement::setCite):
  45109. (WebCore::HTMLModElement::setDateTime):
  45110. * html/HTMLModElement.h: Added.
  45111. * html/HTMLQuoteElement.cpp: Added.
  45112. * html/HTMLQuoteElement.h: Added.
  45113. * html/html_imageimpl.h:
  45114. * html/html_inlineimpl.cpp: Removed.
  45115. * html/html_inlineimpl.h: Removed.
  45116. * page/FrameView.cpp:
  45117. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45118. Reviewed by beth.
  45119. Fix build error.
  45120. * rendering/InlineFlowBox.cpp:
  45121. * rendering/RootInlineBox.cpp:
  45122. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45123. Reviewed by beth.
  45124. Split out render_line.* into separate files (one per class).
  45125. * WebCore.xcodeproj/project.pbxproj:
  45126. * dom/ContainerNode.cpp:
  45127. * rendering/EllipsisBox.cpp: Added.
  45128. * rendering/EllipsisBox.h: Added.
  45129. (WebCore::EllipsisBox::EllipsisBox):
  45130. * rendering/InlineBox.cpp: Added.
  45131. * rendering/InlineBox.h: Added.
  45132. (WebCore::InlineBox::InlineBox):
  45133. (WebCore::InlineBox::~InlineBox):
  45134. (WebCore::InlineBox::bottomOverflow):
  45135. (WebCore::InlineBox::rightOverflow):
  45136. * rendering/InlineFlowBox.cpp: Added.
  45137. (WebCore::InlineFlowBox::placeBoxesHorizontally):
  45138. * rendering/InlineFlowBox.h: Added.
  45139. * rendering/InlineRunBox.h: Added.
  45140. (WebCore::InlineRunBox::InlineRunBox):
  45141. (WebCore::InlineRunBox::paintBackgroundAndBorder):
  45142. (WebCore::InlineRunBox::paintDecorations):
  45143. * rendering/InlineTextBox.h:
  45144. * rendering/RenderBlock.h:
  45145. * rendering/RenderFlow.h:
  45146. * rendering/RenderReplaced.cpp:
  45147. * rendering/RootInlineBox.cpp: Added.
  45148. * rendering/RootInlineBox.h: Added.
  45149. (WebCore::RootInlineBox::RootInlineBox):
  45150. * rendering/render_line.h: Removed.
  45151. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45152. Reviewed by hyatt.
  45153. Split out table_layout.* into separate files (one per class).
  45154. Search replace instance variables "foo" with "m_foo" to comply with modern style.
  45155. * WebCore.xcodeproj/project.pbxproj:
  45156. * rendering/AutoTableLayout.cpp: Added.
  45157. (WebCore::AutoTableLayout::AutoTableLayout):
  45158. (WebCore::AutoTableLayout::recalcColumn):
  45159. (WebCore::AutoTableLayout::fullRecalc):
  45160. (WebCore::AutoTableLayout::calcMinMaxWidth):
  45161. (WebCore::AutoTableLayout::calcEffectiveWidth):
  45162. (WebCore::AutoTableLayout::insertSpanCell):
  45163. (WebCore::AutoTableLayout::layout):
  45164. (WebCore::AutoTableLayout::calcPercentages):
  45165. * rendering/AutoTableLayout.h: Added.
  45166. (WebCore::AutoTableLayout::totalPercent):
  45167. (WebCore::AutoTableLayout::Layout::Layout):
  45168. * rendering/FixedTableLayout.cpp: Added.
  45169. (WebCore::FixedTableLayout::FixedTableLayout):
  45170. (WebCore::FixedTableLayout::calcWidthArray):
  45171. (WebCore::FixedTableLayout::calcMinMaxWidth):
  45172. (WebCore::FixedTableLayout::layout):
  45173. * rendering/FixedTableLayout.h: Added.
  45174. * rendering/RenderTable.cpp:
  45175. * rendering/TableLayout.h: Added.
  45176. (WebCore::TableLayout::TableLayout):
  45177. * rendering/table_layout.cpp: Removed.
  45178. * rendering/table_layout.h: Removed.
  45179. 2006-05-12 David Hyatt <hyatt@apple.com>
  45180. Bug 8877. Change form controls and the bridge entry points from the
  45181. Safari UI to use Font instead of FontData.
  45182. Reviewed by mjs
  45183. * bridge/mac/WebCoreStringTruncator.mm:
  45184. (stringWidth):
  45185. (truncateString):
  45186. (+[WebCoreStringTruncator widthOfString:font:]):
  45187. (+[WebCoreStringTruncator clear]):
  45188. * kwq/KWQComboBox.mm:
  45189. (QComboBox::sizeHint):
  45190. * kwq/KWQLineEdit.mm:
  45191. (QLineEdit::sizeForCharacterWidth):
  45192. * kwq/KWQListBox.mm:
  45193. (itemTextRenderer):
  45194. (groupLabelTextRenderer):
  45195. (QListBox::sizeForNumberOfLines):
  45196. (QListBox::clearCachedTextRenderers):
  45197. (-[KWQTableView drawRow:clipRect:]):
  45198. * platform/Font.cpp:
  45199. (WebCore::Font::drawSimpleText):
  45200. (WebCore::Font::drawText):
  45201. * platform/Font.h:
  45202. (WebCore::TextStyle::disableRoundingHacks):
  45203. (WebCore::TextStyle::setRTL):
  45204. * platform/FontData.h:
  45205. * platform/FontFallbackList.h:
  45206. * platform/FontPlatformData.h:
  45207. (WebCore::FontPlatformData::syntheticOblique):
  45208. * platform/Pen.h:
  45209. * platform/mac/FontData.mm:
  45210. (WebCore::FontData::smallCapsFontData):
  45211. (WebCore::findSubstituteRenderer):
  45212. * platform/mac/FontMac.mm:
  45213. (WebCore::FontFallbackList::setPlatformFont):
  45214. (WebCore::m_wordSpacing):
  45215. (WebCore::Font::drawComplexText):
  45216. * platform/mac/WebCoreTextRenderer.mm:
  45217. (WebCoreDrawTextAtPoint):
  45218. (WebCoreTextFloatWidth):
  45219. * platform/win/FontWin.cpp:
  45220. (WebCore::Font::drawText):
  45221. * rendering/InlineTextBox.cpp:
  45222. (WebCore::InlineTextBox::positionForOffset):
  45223. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45224. Reviewed by kevin.
  45225. Move render_button to RenderButton.
  45226. Various small style cleanup.
  45227. * WebCore.xcodeproj/project.pbxproj:
  45228. * html/HTMLButtonElement.cpp:
  45229. * html/HTMLElement.cpp:
  45230. * html/HTMLGenericFormElement.cpp:
  45231. * html/HTMLInputElement.cpp:
  45232. * platform/mac/WebCoreTextArea.mm:
  45233. * rendering/RenderApplet.h:
  45234. * rendering/RenderBox.cpp:
  45235. * rendering/RenderButton.cpp: Added.
  45236. (WebCore::RenderButton::RenderButton):
  45237. (WebCore::RenderButton::addChild):
  45238. (WebCore::RenderButton::removeChild):
  45239. * rendering/RenderButton.h: Added.
  45240. * rendering/RenderEmptyApplet.h:
  45241. * rendering/RenderHTMLCanvas.h:
  45242. * rendering/RenderTreeAsText.cpp:
  45243. * rendering/render_button.cpp: Removed.
  45244. * rendering/render_button.h: Removed.
  45245. * rendering/table_layout.cpp:
  45246. (WebCore::FixedTableLayout::FixedTableLayout):
  45247. (WebCore::FixedTableLayout::calcWidthArray):
  45248. (WebCore::FixedTableLayout::calcMinMaxWidth):
  45249. (WebCore::FixedTableLayout::layout):
  45250. (WebCore::AutoTableLayout::AutoTableLayout):
  45251. (WebCore::AutoTableLayout::recalcColumn):
  45252. (WebCore::AutoTableLayout::fullRecalc):
  45253. (WebCore::AutoTableLayout::calcMinMaxWidth):
  45254. (WebCore::AutoTableLayout::calcEffectiveWidth):
  45255. (WebCore::AutoTableLayout::insertSpanCell):
  45256. (WebCore::AutoTableLayout::layout):
  45257. * rendering/table_layout.h:
  45258. (WebCore::TableLayout::TableLayout):
  45259. (WebCore::AutoTableLayout::totalPercent):
  45260. (WebCore::AutoTableLayout::Layout::Layout):
  45261. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45262. Reviewed by mjs.
  45263. Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
  45264. http://bugs.webkit.org/show_bug.cgi?id=8878
  45265. * WebCore.xcodeproj/project.pbxproj:
  45266. * bindings/js/kjs_html.cpp:
  45267. (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
  45268. (KJS::JSHTMLDocument::namedItemGetter):
  45269. (KJS::JSHTMLDocument::getValueProperty):
  45270. (KJS::JSHTMLDocument::getOwnPropertySlot):
  45271. (KJS::JSHTMLDocument::putValueProperty):
  45272. (KJS::JSHTMLElement::formIndexGetter):
  45273. (KJS::JSHTMLElement::formNameGetter):
  45274. (KJS::JSHTMLElement::selectIndexGetter):
  45275. (KJS::JSHTMLElement::framesetNameGetter):
  45276. (KJS::JSHTMLElement::runtimeObjectGetter):
  45277. (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
  45278. (KJS::JSHTMLElement::getOwnPropertySlot):
  45279. (KJS::JSHTMLElement::implementsCall):
  45280. (KJS::JSHTMLElement::callAsFunction):
  45281. (KJS::JSHTMLElement::getValueProperty):
  45282. (KJS::JSHTMLElement::toString):
  45283. (KJS::getForm):
  45284. (KJS::JSHTMLElement::pushEventHandlerScope):
  45285. (KJS::HTMLElementFunction::callAsFunction):
  45286. (KJS::JSHTMLElement::put):
  45287. (KJS::JSHTMLElement::selectSetter):
  45288. (KJS::JSHTMLElement::putValueProperty):
  45289. (KJS::toHTMLElement):
  45290. (KJS::toHTMLTableCaptionElement):
  45291. (KJS::toHTMLTableSectionElement):
  45292. (KJS::JSHTMLCollection::lengthGetter):
  45293. (KJS::JSHTMLCollection::indexGetter):
  45294. (KJS::JSHTMLCollection::nameGetter):
  45295. (KJS::JSHTMLCollection::getOwnPropertySlot):
  45296. (KJS::HTMLCollectionProtoFunc::callAsFunction):
  45297. (KJS::JSHTMLSelectCollection::selectedIndexGetter):
  45298. (KJS::JSHTMLSelectCollection::put):
  45299. (KJS::OptionConstructorImp::construct):
  45300. (KJS::getSelectHTMLCollection):
  45301. * bindings/objc/DOMHTML.mm:
  45302. * bridge/mac/FrameMac.mm:
  45303. (WebCore::FrameMac::createFrame):
  45304. * bridge/mac/WebCoreFrameBridge.mm:
  45305. (-[WebCoreFrameBridge copyRenderNode:copier:]):
  45306. * dom/Document.cpp:
  45307. (WebCore::widgetForNode):
  45308. * html/HTMLBodyElement.cpp: Added.
  45309. (WebCore::HTMLBodyElement::HTMLBodyElement):
  45310. (WebCore::HTMLBodyElement::parseMappedAttribute):
  45311. * html/HTMLBodyElement.h: Added.
  45312. * html/HTMLDocument.cpp:
  45313. * html/HTMLElementFactory.cpp:
  45314. * html/HTMLEmbedElement.cpp:
  45315. * html/HTMLFrameElement.cpp: Added.
  45316. (WebCore::HTMLFrameElement::isURLAllowed):
  45317. (WebCore::HTMLFrameElement::parseMappedAttribute):
  45318. (WebCore::HTMLFrameElement::setLocation):
  45319. * html/HTMLFrameElement.h: Added.
  45320. * html/HTMLFrameSetElement.cpp: Added.
  45321. (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
  45322. (WebCore::HTMLFrameSetElement::parseMappedAttribute):
  45323. (WebCore::HTMLFrameSetElement::attach):
  45324. (WebCore::HTMLFrameSetElement::defaultEventHandler):
  45325. (WebCore::HTMLFrameSetElement::recalcStyle):
  45326. * html/HTMLFrameSetElement.h: Added.
  45327. * html/HTMLHeadElement.cpp: Added.
  45328. (WebCore::HTMLHeadElement::HTMLHeadElement):
  45329. * html/HTMLHeadElement.h: Added.
  45330. * html/HTMLHtmlElement.cpp: Added.
  45331. (WebCore::HTMLHtmlElement::HTMLHtmlElement):
  45332. * html/HTMLHtmlElement.h: Added.
  45333. * html/HTMLIFrameElement.cpp: Added.
  45334. (WebCore::HTMLIFrameElement::HTMLIFrameElement):
  45335. * html/HTMLIFrameElement.h: Added.
  45336. * html/HTMLObjectElement.cpp:
  45337. * html/HTMLParser.cpp:
  45338. * html/html_baseimpl.cpp: Removed.
  45339. * html/html_baseimpl.h: Removed.
  45340. * kwq/WebCoreAXObject.mm:
  45341. * page/Frame.cpp:
  45342. (WebCore::isFrameElement):
  45343. (WebCore::Frame::applyEditingStyleToBodyElement):
  45344. (WebCore::Frame::removeEditingStyleFromBodyElement):
  45345. (WebCore::Frame::applyEditingStyleToElement):
  45346. (WebCore::Frame::removeEditingStyleFromElement):
  45347. (WebCore::Frame::selectionRect):
  45348. (WebCore::Frame::isFrameSet):
  45349. (WebCore::scanForForm):
  45350. (WebCore::Frame::currentForm):
  45351. (WebCore::Frame::nodeInfoAtPoint):
  45352. (WebCore::Frame::adjustPageHeight):
  45353. (WebCore::Frame::frameForWidget):
  45354. (WebCore::Frame::forceLayoutWithPageWidthRange):
  45355. (WebCore::Frame::passWidgetMouseDownEventToWidget):
  45356. * page/FrameView.cpp:
  45357. * rendering/RenderFrame.cpp: Added.
  45358. (WebCore::RenderFrame::viewCleared):
  45359. * rendering/RenderFrame.h: Added.
  45360. * rendering/RenderFrameSet.cpp: Added.
  45361. (WebCore::RenderFrameSet::RenderFrameSet):
  45362. (WebCore::RenderFrameSet::~RenderFrameSet):
  45363. (WebCore::RenderFrameSet::layout):
  45364. (WebCore::RenderFrameSet::positionFrames):
  45365. (WebCore::RenderFrameSet::userResize):
  45366. (WebCore::RenderFrameSet::canResize):
  45367. (WebCore::RenderFrameSet::dump):
  45368. * rendering/RenderFrameSet.h: Added.
  45369. * rendering/RenderImage.h:
  45370. * rendering/RenderPart.cpp: Added.
  45371. (WebCore::RenderPart::RenderPart):
  45372. * rendering/RenderPart.h: Added.
  45373. * rendering/RenderPartObject.cpp: Added.
  45374. (WebCore::isURLAllowed):
  45375. (WebCore::RenderPartObject::updateWidget):
  45376. (WebCore::RenderPartObject::viewCleared):
  45377. * rendering/RenderPartObject.h: Added.
  45378. * rendering/RenderReplaced.cpp: Added.
  45379. (WebCore::RenderReplaced::selectionColor):
  45380. * rendering/RenderReplaced.h: Added.
  45381. * rendering/RenderWidget.cpp: Added.
  45382. (WebCore::RenderWidget::deleteWidget):
  45383. * rendering/RenderWidget.h: Added.
  45384. * rendering/render_form.h:
  45385. * rendering/render_frames.cpp: Removed.
  45386. * rendering/render_frames.h: Removed.
  45387. * rendering/render_replaced.cpp: Removed.
  45388. * rendering/render_replaced.h: Removed.
  45389. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45390. Reviewed by beth.
  45391. Split html_headimpl.* into separate files (one per class)
  45392. http://bugs.webkit.org/show_bug.cgi?id=8875
  45393. * WebCore.xcodeproj/project.pbxproj:
  45394. * bindings/js/kjs_css.cpp:
  45395. * bindings/js/kjs_html.cpp:
  45396. (KJS::JSHTMLElement::headGetter):
  45397. (KJS::JSHTMLElement::linkGetter):
  45398. * bindings/objc/DOMCSS.mm:
  45399. (+[DOMCounter _counterWith:]):
  45400. (-[DOMCounter finalize]):
  45401. (-[DOMCounter _DOMStyleSheet]):
  45402. (-[DOMStyleSheet _initWithStyleSheet:]):
  45403. (-[DOMStyleSheetList dealloc]):
  45404. (-[DOMStyleSheetList finalize]):
  45405. (-[DOMStyleSheetList _styleSheetList]):
  45406. (-[DOMStyleSheetList _initWithStyleSheetList:]):
  45407. (-[DOMCSSStyleSheet _CSSStyleSheet]):
  45408. (-[DOMMediaList dealloc]):
  45409. (-[DOMMediaList finalize]):
  45410. (-[DOMMediaList _mediaList]):
  45411. (-[DOMMediaList _initWithMediaList:]):
  45412. (-[DOMCSSRuleList dealloc]):
  45413. (-[DOMCSSRuleList finalize]):
  45414. (-[DOMCSSRuleList _ruleList]):
  45415. (-[DOMCSSRuleList _initWithRuleList:]):
  45416. (-[DOMCSSRule dealloc]):
  45417. (-[DOMCSSRule finalize]):
  45418. (-[DOMCSSRule _rule]):
  45419. (-[DOMCSSRule _initWithRule:]):
  45420. (-[DOMCSSStyleRule _styleRule]):
  45421. (-[DOMCSSMediaRule _mediaRule]):
  45422. (-[DOMCSSFontFaceRule _fontFaceRule]):
  45423. (-[DOMCSSPageRule _pageRule]):
  45424. (-[DOMCSSImportRule _importRule]):
  45425. (-[DOMCSSCharsetRule _importRule]):
  45426. (-[DOMCSSStyleDeclaration dealloc]):
  45427. (-[DOMCSSStyleDeclaration finalize]):
  45428. (-[DOMCSSStyleDeclaration _initWithStyleDeclaration:]):
  45429. (-[DOMCSSStyleDeclaration _styleDeclaration]):
  45430. (-[DOMCSSValue dealloc]):
  45431. (-[DOMCSSValue finalize]):
  45432. (-[DOMCSSValue _value]):
  45433. (-[DOMCSSValue _initWithValue:]):
  45434. (-[DOMCSSPrimitiveValue _primitiveValue]):
  45435. (-[DOMCSSValueList _valueList]):
  45436. (getWrapperForRGB):
  45437. (setWrapperForRGB):
  45438. (removeWrapperForRGB):
  45439. (-[DOMRGBColor _initWithRGB:]):
  45440. (-[DOMRect dealloc]):
  45441. (-[DOMRect finalize]):
  45442. (-[DOMRect _rect]):
  45443. (-[DOMRect _initWithRect:]):
  45444. (-[DOMCounter dealloc]):
  45445. (-[DOMCounter _counter]):
  45446. (-[DOMCounter _initWithCounter:]):
  45447. (-[DOMObject sheet]):
  45448. * bindings/objc/DOMHTML.mm:
  45449. (-[DOMHTMLCollection dealloc]):
  45450. (-[DOMHTMLCollection finalize]):
  45451. (-[DOMHTMLCollection _collection]):
  45452. (-[DOMHTMLCollection _initWithCollection:]):
  45453. (-[DOMHTMLOptionsCollection dealloc]):
  45454. (-[DOMHTMLOptionsCollection finalize]):
  45455. (-[DOMHTMLOptionsCollection _initWithOptionsCollection:]):
  45456. (-[DOMHTMLOptionsCollection _optionsCollection]):
  45457. (+[DOMHTMLElement _elementWith:]):
  45458. (-[DOMHTMLElement _HTMLElement]):
  45459. (-[DOMHTMLDocument _HTMLDocument]):
  45460. (-[DOMHTMLHtmlElement _HTMLHtmlElement]):
  45461. (-[DOMHTMLHeadElement _headElement]):
  45462. (-[DOMHTMLLinkElement _linkElement]):
  45463. (-[DOMHTMLTitleElement _titleElement]):
  45464. (-[DOMHTMLMetaElement _metaElement]):
  45465. (-[DOMHTMLBaseElement _baseElement]):
  45466. (-[DOMHTMLStyleElement _styleElement]):
  45467. (-[DOMHTMLBodyElement _bodyElement]):
  45468. (-[DOMHTMLFormElement _formElement]):
  45469. (+[DOMHTMLFormElement _formElementWith:]):
  45470. (-[DOMHTMLIsIndexElement _isIndexElement]):
  45471. (-[DOMHTMLSelectElement _selectElement]):
  45472. (-[DOMHTMLOptGroupElement _optGroupElement]):
  45473. (-[DOMHTMLOptionElement _optionElement]):
  45474. (-[DOMHTMLInputElement _inputElement]):
  45475. (-[DOMHTMLTextAreaElement _textAreaElement]):
  45476. (-[DOMHTMLButtonElement _buttonElement]):
  45477. (-[DOMHTMLLabelElement _labelElement]):
  45478. (-[DOMHTMLLabelElement form]):
  45479. (-[DOMHTMLFieldSetElement _fieldSetElement]):
  45480. (-[DOMHTMLLegendElement _legendElement]):
  45481. (-[DOMHTMLUListElement _uListElement]):
  45482. (-[DOMHTMLOListElement _oListElement]):
  45483. (-[DOMHTMLDListElement _dListElement]):
  45484. (-[DOMHTMLDirectoryElement _directoryListElement]):
  45485. (-[DOMHTMLMenuElement _menuListElement]):
  45486. (-[DOMHTMLLIElement _liElement]):
  45487. (-[DOMHTMLQuoteElement _quoteElement]):
  45488. (-[DOMHTMLDivElement _divElement]):
  45489. (-[DOMHTMLParagraphElement _paragraphElement]):
  45490. (-[DOMHTMLHeadingElement _headingElement]):
  45491. (-[DOMHTMLPreElement _preElement]):
  45492. (-[DOMHTMLBRElement _BRElement]):
  45493. (-[DOMHTMLBaseFontElement _baseFontElement]):
  45494. (-[DOMHTMLFontElement _fontElement]):
  45495. (-[DOMHTMLHRElement _HRElement]):
  45496. (-[DOMHTMLModElement _modElement]):
  45497. (-[DOMHTMLAnchorElement _anchorElement]):
  45498. (-[DOMHTMLImageElement _imageElement]):
  45499. (-[DOMHTMLObjectElement _objectElement]):
  45500. (-[DOMHTMLParamElement _paramElement]):
  45501. (-[DOMHTMLMapElement _mapElement]):
  45502. (-[DOMHTMLAreaElement _areaElement]):
  45503. (-[DOMHTMLScriptElement _scriptElement]):
  45504. (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
  45505. (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
  45506. (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
  45507. (-[DOMHTMLTableSectionElement _tableSectionElement]):
  45508. (-[DOMHTMLTableElement createTHead]):
  45509. (-[DOMHTMLTableElement createTFoot]):
  45510. (-[DOMHTMLTableElement createCaption]):
  45511. (-[DOMHTMLTableElement insertRow:]):
  45512. (+[DOMHTMLTableElement _tableElementWith:]):
  45513. (-[DOMHTMLTableElement _tableElement]):
  45514. (-[DOMHTMLTableColElement _tableColElement]):
  45515. (-[DOMHTMLTableRowElement _tableRowElement]):
  45516. (-[DOMHTMLTableRowElement insertCell:]):
  45517. (+[DOMHTMLTableCellElement _tableCellElementWith:]):
  45518. (-[DOMHTMLTableCellElement _tableCellElement]):
  45519. (-[DOMHTMLFrameSetElement _frameSetElement]):
  45520. (-[DOMHTMLFrameElement _frameElement]):
  45521. (-[DOMHTMLIFrameElement _IFrameElement]):
  45522. (-[DOMHTMLEmbedElement _embedElement]):
  45523. (viewForElement):
  45524. * bridge/mac/FrameMac.mm:
  45525. (WebCore::FrameMac::searchForLabelsAboveCell):
  45526. (WebCore::FrameMac::searchForLabelsBeforeElement):
  45527. (WebCore::FrameMac::createFrame):
  45528. (WebCore::FrameMac::passMouseDownEventToWidget):
  45529. (WebCore::FrameMac::passSubframeEventToSubframe):
  45530. (WebCore::FrameMac::passWheelEventToChildWidget):
  45531. (WebCore::FrameMac::fileWrapperForElement):
  45532. (WebCore::listParent):
  45533. (WebCore::FrameMac::attributedString):
  45534. (WebCore::FrameMac::shouldBeginEditing):
  45535. (WebCore::FrameMac::shouldEndEditing):
  45536. (WebCore::FrameMac::setMarkedTextRange):
  45537. * dom/Document.cpp:
  45538. * dom/xml_tokenizer.cpp:
  45539. * html/HTMLBaseElement.cpp: Added.
  45540. (WebCore::HTMLBaseElement::removedFromDocument):
  45541. (WebCore::HTMLBaseElement::process):
  45542. * html/HTMLBaseElement.h: Added.
  45543. * html/HTMLDocument.cpp:
  45544. * html/HTMLElementFactory.cpp:
  45545. * html/HTMLLinkElement.cpp: Added.
  45546. (WebCore::HTMLLinkElement::HTMLLinkElement):
  45547. (WebCore::HTMLLinkElement::process):
  45548. * html/HTMLLinkElement.h: Added.
  45549. * html/HTMLMetaElement.cpp: Added.
  45550. (WebCore::HTMLMetaElement::HTMLMetaElement):
  45551. (WebCore::HTMLMetaElement::parseMappedAttribute):
  45552. (WebCore::HTMLMetaElement::process):
  45553. (WebCore::HTMLMetaElement::setContent):
  45554. (WebCore::HTMLMetaElement::setHttpEquiv):
  45555. (WebCore::HTMLMetaElement::setName):
  45556. * html/HTMLMetaElement.h: Added.
  45557. * html/HTMLParser.cpp:
  45558. * html/HTMLScriptElement.cpp: Added.
  45559. (WebCore::HTMLScriptElement::HTMLScriptElement):
  45560. (WebCore::HTMLScriptElement::parseMappedAttribute):
  45561. (WebCore::HTMLScriptElement::evaluateScript):
  45562. * html/HTMLScriptElement.h: Added.
  45563. * html/HTMLStyleElement.cpp: Added.
  45564. (WebCore::HTMLStyleElement::HTMLStyleElement):
  45565. * html/HTMLStyleElement.h: Added.
  45566. * html/HTMLTitleElement.cpp: Added.
  45567. (WebCore::HTMLTitleElement::HTMLTitleElement):
  45568. (WebCore::HTMLTitleElement::text):
  45569. (WebCore::HTMLTitleElement::setText):
  45570. * html/HTMLTitleElement.h: Added.
  45571. * html/html_headimpl.cpp: Removed.
  45572. * html/html_headimpl.h: Removed.
  45573. * loader/CachedCSSStyleSheet.h:
  45574. * rendering/RenderTableCell.cpp:
  45575. (WebCore::RenderTableCell::updateFromElement):
  45576. * rendering/RenderTableCol.cpp:
  45577. (WebCore::RenderTableCol::updateFromElement):
  45578. 2006-05-12 Eric Seidel <eseidel@apple.com>
  45579. Reviewed by beth.
  45580. Split out html_tableimpl.* into multiple files (one per class)
  45581. http://bugs.webkit.org/show_bug.cgi?id=8873
  45582. * WebCore.xcodeproj/project.pbxproj:
  45583. * html/HTMLTableCaptionElement.cpp: Added.
  45584. (WebCore::HTMLTableCaptionElement::HTMLTableCaptionElement):
  45585. * html/HTMLTableCaptionElement.h: Added.
  45586. * html/HTMLTableCellElement.cpp: Added.
  45587. (WebCore::HTMLTableCellElement::HTMLTableCellElement):
  45588. * html/HTMLTableCellElement.h: Added.
  45589. * html/HTMLTableColElement.cpp: Added.
  45590. (WebCore::HTMLTableColElement::HTMLTableColElement):
  45591. (WebCore::HTMLTableColElement::endTagRequirement):
  45592. (WebCore::HTMLTableColElement::tagPriority):
  45593. (WebCore::HTMLTableColElement::checkDTD):
  45594. * html/HTMLTableColElement.h: Added.
  45595. * html/HTMLTableElement.cpp: Added.
  45596. (WebCore::HTMLTableElement::HTMLTableElement):
  45597. (WebCore::HTMLTableElement::setCaption):
  45598. (WebCore::HTMLTableElement::setTHead):
  45599. (WebCore::HTMLTableElement::setTFoot):
  45600. (WebCore::HTMLTableElement::setTBody):
  45601. (WebCore::HTMLTableElement::createTHead):
  45602. (WebCore::HTMLTableElement::deleteTHead):
  45603. (WebCore::HTMLTableElement::createTFoot):
  45604. (WebCore::HTMLTableElement::deleteTFoot):
  45605. (WebCore::HTMLTableElement::createCaption):
  45606. (WebCore::HTMLTableElement::deleteCaption):
  45607. (WebCore::HTMLTableElement::insertRow):
  45608. (WebCore::HTMLTableElement::deleteRow):
  45609. (WebCore::HTMLTableElement::addChild):
  45610. (WebCore::HTMLTableElement::parseMappedAttribute):
  45611. (WebCore::HTMLTableElement::attach):
  45612. * html/HTMLTableElement.h: Added.
  45613. * html/HTMLTablePartElement.cpp: Added.
  45614. (WebCore::HTMLTablePartElement::parseMappedAttribute):
  45615. * html/HTMLTablePartElement.h: Added.
  45616. * html/HTMLTableRowElement.cpp: Added.
  45617. (WebCore::HTMLTableRowElement::HTMLTableRowElement):
  45618. (WebCore::HTMLTableRowElement::rowIndex):
  45619. * html/HTMLTableRowElement.h: Added.
  45620. * html/HTMLTableSectionElement.cpp: Added.
  45621. (WebCore::HTMLTableSectionElement::insertRow):
  45622. * html/HTMLTableSectionElement.h: Added.
  45623. * html/html_tableimpl.cpp: Removed.
  45624. * html/html_tableimpl.h: Removed.
  45625. 2006-05-10 Eric Seidel <eseidel@apple.com>
  45626. Reviewed by mjs & adele.
  45627. Split html_objectimpl.* into multiple files (one per class)
  45628. http://bugs.webkit.org/show_bug.cgi?id=8836
  45629. * WebCore.xcodeproj/project.pbxproj:
  45630. * bindings/js/kjs_dom.cpp:
  45631. (KJS::DOMNamedNodeMap::lengthGetter):
  45632. (KJS::DOMNamedNodeMap::indexGetter):
  45633. (KJS::DOMNamedNodeMap::nameGetter):
  45634. (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
  45635. (KJS::getRuntimeObject):
  45636. * bindings/js/kjs_html.cpp:
  45637. * html/HTMLAppletElement.cpp: Added.
  45638. * html/HTMLAppletElement.h: Added.
  45639. * html/HTMLElementFactory.cpp:
  45640. * html/HTMLEmbedElement.cpp: Added.
  45641. (WebCore::HTMLEmbedElement::HTMLEmbedElement):
  45642. (WebCore::HTMLEmbedElement::getInstance):
  45643. (WebCore::HTMLEmbedElement::parseMappedAttribute):
  45644. * html/HTMLEmbedElement.h: Added.
  45645. * html/HTMLNameCollection.cpp:
  45646. (WebCore::HTMLNameCollection::traverseNextItem):
  45647. * html/HTMLObjectElement.cpp: Added.
  45648. (WebCore::HTMLObjectElement::getInstance):
  45649. (WebCore::HTMLObjectElement::form):
  45650. (WebCore::HTMLObjectElement::parseMappedAttribute):
  45651. (WebCore::HTMLObjectElement::updateDocNamedItem):
  45652. * html/HTMLObjectElement.h: Added.
  45653. * html/HTMLParamElement.cpp: Added.
  45654. * html/HTMLParamElement.h: Added.
  45655. * html/HTMLParser.cpp:
  45656. * html/HTMLPlugInElement.cpp: Added.
  45657. * html/HTMLPlugInElement.h: Added.
  45658. * html/html_objectimpl.cpp: Removed.
  45659. * html/html_objectimpl.h: Removed.
  45660. * page/Frame.cpp:
  45661. (WebCore::Frame::handleFallbackContent):
  45662. * rendering/RenderApplet.cpp:
  45663. * rendering/render_frames.cpp:
  45664. (WebCore::RenderPartObject::updateWidget):
  45665. 2006-05-12 Darin Adler <darin@apple.com>
  45666. Reviewed by Adele.
  45667. - fix http://bugs.webkit.org/show_bug.cgi?id=8521
  45668. crash bringing up context menu with CSS generated content
  45669. * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
  45670. Added a null check.
  45671. * manual-tests/context-click-generated-content.html: Added.
  45672. 2006-05-12 Darin Adler <darin@apple.com>
  45673. Reviewed by Adele.
  45674. - fix http://bugs.webkit.org/show_bug.cgi?id=8715
  45675. REGRESSION: Caret to the right of an image is a big black rectangle.
  45676. * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect): Move caret to the
  45677. right side of the rect when the offset is non-zero, rather than expanding it.
  45678. * manual-tests/caret-image.html: Added.
  45679. 2006-05-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
  45680. Reviewed and landed by Anders.
  45681. - fix http://bugs.webkit.org/show_bug.cgi?id=8866
  45682. REGRESSION: Incorrect caret position in RTL text
  45683. Test: fast/text/international/rtl-caret.html
  45684. * rendering/InlineTextBox.cpp:
  45685. (WebCore::InlineTextBox::positionForOffset): Added missing m_toAdd argument.
  45686. 2006-05-12 David Hyatt <hyatt@apple.com>
  45687. Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle).
  45688. Reviewed by mjs
  45689. * platform/Font.cpp:
  45690. (WebCore::m_finalRoundingWidth):
  45691. (WebCore::WidthIterator::advance):
  45692. (WebCore::Font::width):
  45693. (WebCore::Font::drawSimpleText):
  45694. (WebCore::Font::drawText):
  45695. (WebCore::Font::floatWidth):
  45696. (WebCore::Font::floatWidthForSimpleText):
  45697. * platform/Font.h:
  45698. (WebCore::TextStyle::m_attemptFontSubstitution):
  45699. (WebCore::TextStyle::tabWidth):
  45700. (WebCore::TextStyle::xPos):
  45701. (WebCore::TextStyle::padding):
  45702. (WebCore::TextStyle::rtl):
  45703. (WebCore::TextStyle::ltr):
  45704. (WebCore::TextStyle::directionalOverride):
  45705. (WebCore::TextStyle::applyRunRounding):
  45706. (WebCore::TextStyle::applyWordRounding):
  45707. (WebCore::TextStyle::attemptFontSubstitution):
  45708. (WebCore::Font::operator==):
  45709. * platform/GraphicsContext.cpp:
  45710. (WebCore::GraphicsContext::drawText):
  45711. (WebCore::GraphicsContext::drawHighlightForText):
  45712. * platform/GraphicsContext.h:
  45713. * platform/mac/FontMac.mm:
  45714. (WebCore::overrideLayoutOperation):
  45715. (WebCore::ATSULayoutParameters::initialize):
  45716. (WebCore::Font::selectionRectForText):
  45717. (WebCore::Font::drawComplexText):
  45718. (WebCore::Font::floatWidthForComplexText):
  45719. (WebCore::Font::offsetForPosition):
  45720. * rendering/InlineTextBox.cpp:
  45721. (WebCore::InlineTextBox::selectionRect):
  45722. (WebCore::InlineTextBox::paint):
  45723. (WebCore::InlineTextBox::paintSelection):
  45724. (WebCore::InlineTextBox::paintMarkedTextBackground):
  45725. (WebCore::InlineTextBox::paintTextMatchMarker):
  45726. (WebCore::InlineTextBox::offsetForPosition):
  45727. (WebCore::InlineTextBox::positionForOffset):
  45728. * rendering/RenderText.cpp:
  45729. (WebCore::RenderText::widthFromCache):
  45730. (WebCore::RenderText::calcMinMaxWidth):
  45731. (WebCore::RenderText::width):
  45732. * rendering/RenderTextField.cpp:
  45733. (WebCore::RenderTextField::calcMinMaxWidth):
  45734. * rendering/render_line.cpp:
  45735. (WebCore::EllipsisBox::paint):
  45736. 2006-05-11 Alexey Proskuryakov <ap@nypop.com>
  45737. Reviewed by Darin.
  45738. - http://bugs.webkit.org/show_bug.cgi?id=8770
  45739. XMLHttpRequest should strip CR/LF characters from the URL
  45740. Test: fast/loader/url-strip-cr-lf-tab.html
  45741. * platform/KURL.cpp:
  45742. (appendEscapingBadChars): Strip CR, LF and TAB, as Firefox and IE do.
  45743. 2006-05-11 David Hyatt <hyatt@apple.com>
  45744. Remove the misspelling drawing code from Font and FontData. Implement it
  45745. natively in GraphicContext instead.
  45746. Reviewed by maciej
  45747. * platform/FontData.h:
  45748. * platform/GraphicsContext.cpp:
  45749. * platform/GraphicsContext.h:
  45750. * platform/cairo/GraphicsContextCairo.cpp:
  45751. (WebCore::GraphicsContext::drawLineForMisspelling):
  45752. * platform/mac/FontData.mm:
  45753. * platform/mac/FontMac.mm:
  45754. * platform/mac/GraphicsContextMac.mm:
  45755. (WebCore::GraphicsContext::drawLineForMisspelling):
  45756. * platform/win/FontWin.cpp:
  45757. * rendering/InlineTextBox.cpp:
  45758. (WebCore::InlineTextBox::paintSpellingMarker):
  45759. 2006-05-11 David Hyatt <hyatt@apple.com>
  45760. Remove drawLineForText from the Font API. Implement it natively in
  45761. the two GraphicsContexts (CG and Cairo) instead.
  45762. Reviewed by maciej
  45763. * platform/Font.h:
  45764. * platform/FontData.h:
  45765. * platform/GraphicsContext.cpp:
  45766. * platform/GraphicsContext.h:
  45767. * platform/cairo/GraphicsContextCairo.cpp:
  45768. (WebCore::GraphicsContext::drawLineForText):
  45769. * platform/cg/GraphicsContextCG.cpp:
  45770. (WebCore::GraphicsContext::drawLineForText):
  45771. * platform/mac/FontData.mm:
  45772. * platform/mac/FontMac.mm:
  45773. * platform/win/FontWin.cpp:
  45774. (WebCore::Font::drawLineForText):
  45775. * rendering/InlineTextBox.cpp:
  45776. (WebCore::InlineTextBox::paintDecoration):
  45777. (WebCore::InlineTextBox::paintMarkedTextUnderline):
  45778. * rendering/render_line.cpp:
  45779. (WebCore::InlineFlowBox::paintDecorations):
  45780. 2006-05-11 Steve Falkenburg <sfalken@apple.com>
  45781. Reviewed by eric.
  45782. Fix last fix.
  45783. * dom/QualifiedName.h:
  45784. (WebCore::QualifiedName::QualifiedName):
  45785. 2006-05-11 Steve Falkenburg <sfalken@apple.com>
  45786. Reviewed by eric.
  45787. Fix crash on static constructors builds at exit due to qualified name default constructor not
  45788. initializing m_impl.
  45789. * dom/QualifiedName.cpp:
  45790. (WebCore::QualifiedName::deref):
  45791. 2006-05-11 Mitz Pettel <opendarwin.org@mitzpettel.com>
  45792. Reviewed by hyatt
  45793. - fix http://bugs.webkit.org/show_bug.cgi?id=8851
  45794. REGRESSION: RTL text shifted to the right
  45795. Already covered by several tests in fast/text
  45796. * platform/Font.h:
  45797. (WebCore::TextRun::TextRun): Added length parameter.
  45798. * rendering/InlineTextBox.cpp: Pass the length to the TextRun constructor.
  45799. (WebCore::InlineTextBox::selectionRect):
  45800. (WebCore::InlineTextBox::paint):
  45801. (WebCore::InlineTextBox::paintSelection):
  45802. (WebCore::InlineTextBox::paintMarkedTextBackground):
  45803. (WebCore::InlineTextBox::paintTextMatchMarker):
  45804. (WebCore::InlineTextBox::offsetForPosition):
  45805. (WebCore::InlineTextBox::positionForOffset):
  45806. * rendering/RenderText.cpp:
  45807. (WebCore::RenderText::widthFromCache): Pass length and from instead of from and to
  45808. to the TextRun constructor.
  45809. (WebCore::RenderText::width): Ditto.
  45810. 2006-05-11 David Hyatt <hyatt@apple.com>
  45811. Fix a regression from the TextRun landing. Delete the characters in
  45812. the adjustedRun, not the ones in the original run!
  45813. Reviewed by beth
  45814. * platform/mac/FontMac.mm:
  45815. (WebCore::Font::drawComplexText):
  45816. 2006-05-10 Justin Garcia <justin.garcia@apple.com>
  45817. Reviewed by thatcher, levi
  45818. * editing/ReplaceSelectionCommand.cpp:
  45819. (WebCore::ReplaceSelectionCommand::doApply):
  45820. Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
  45821. position pasted into must be split to avoid block nesting. We now split unnecessarily
  45822. some times, but the end merge cleans up for us.
  45823. 2006-05-11 David Hyatt <hyatt@apple.com>
  45824. This patch makes drawHighlightForText a completely cross-platform method
  45825. implemented by the GraphicsContext. The platform-specific implementations
  45826. of the method in the Font class have been eliminated.
  45827. Reviewed by andersca
  45828. * platform/Font.h:
  45829. * platform/FontData.h:
  45830. Remove the drawHighlight methods. Change the selectionRect method in
  45831. Font to return a FloatRect so that the GraphicsContext can do an accurate
  45832. fill.
  45833. * platform/GraphicsContext.cpp:
  45834. (WebCore::GraphicsContext::drawHighlightForText):
  45835. Implement the drawHighlightFunction in terms of the cross-platform
  45836. Font selectionRect functions and a new float-based fillRect graphics context
  45837. function.
  45838. * platform/GraphicsContext.h:
  45839. * platform/cairo/GraphicsContextCairo.cpp:
  45840. (WebCore::GraphicsContext::fillRect):
  45841. * platform/cg/GraphicsContextCG.cpp:
  45842. (WebCore::GraphicsContext::fillRect):
  45843. Add the new float-based fillRect function for Cairo and CG.
  45844. * platform/mac/FontData.mm:
  45845. (WebCore::CG_draw):
  45846. (WebCore::ATSU_draw):
  45847. Removed the CG and ATSU drawHighlight methods. Remove the drawing of
  45848. the background from the deprecated draw methods (they'll be removed
  45849. soon).
  45850. * platform/mac/FontMac.mm:
  45851. (WebCore::Font::selectionRectForText):
  45852. * platform/win/FontWin.cpp:
  45853. (WebCore::Font::selectionRectForText):
  45854. Change selectionRectForText to return a FloatRect instead of an IntRect,
  45855. so that the GraphicsContext can do a precise fill.
  45856. * rendering/InlineTextBox.cpp:
  45857. (WebCore::InlineTextBox::selectionRect):
  45858. (WebCore::InlineTextBox::positionForOffset):
  45859. Modify the callers who expect an int-based selection rect so that they call
  45860. enclosingIntRect.
  45861. 2006-05-11 Darin Adler <darin@apple.com>
  45862. Reviewed by Adele.
  45863. - http://bugs.webkit.org/show_bug.cgi?id=8743
  45864. REGRESSION: focus() on input field selects all text within it
  45865. (was: cannot select cities on British Rail reservation site)
  45866. Test: fast/forms/double-focus.html
  45867. * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::focus):
  45868. Changed to only call setFocusNode, select, and revealSelection
  45869. if the element is not already focused. Also changed to use return
  45870. a bit more rather than else.
  45871. 2006-05-11 Darin Adler <darin@apple.com>
  45872. Reviewed by Tim Hatcher (earlier version).
  45873. - http://bugs.webkit.org/show_bug.cgi?id=8821
  45874. use the preprocessor for IDL files
  45875. * bindings/scripts/IDLParser.pm: Invoke the preprocessor via the "gcc"
  45876. driver script, passing "-E" so we only preprocess, "-P" so we don't get
  45877. "#line" directives, and "-x c++" so we handle both C and C++ comments.
  45878. Removed the code to eliminate comments since the preprocessor handles that.
  45879. * css/make-css-file-arrays.pl: This already invoked the preprocessor, but
  45880. updated it to do the same way as above.
  45881. 2006-05-11 Anders Carlsson <acarlsson@apple.com>
  45882. Reviewed by Darin.
  45883. http://bugs.webkit.org/show_bug.cgi?id=7838
  45884. Add support for mozilla-style node constructors as properties of the window object
  45885. * DerivedSources.make:
  45886. * WebCore.xcodeproj/project.pbxproj:
  45887. Add new generated files.
  45888. * bindings/js/JSCanvasRenderingContext2DBase.cpp:
  45889. (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
  45890. * bindings/js/JSHTMLElementWrapperFactory.cpp:
  45891. (WebCore::createJSWrapper):
  45892. Specify the KJS namespace for JSHTMLElmement.
  45893. * bindings/js/kjs_dom.cpp:
  45894. (KJS::toJS):
  45895. Create a WebCore::JSHTMLDocument for document nodes. Also, create
  45896. JSDocumentFragments for document fragments (instead of plain node objects).
  45897. * bindings/js/kjs_html.cpp:
  45898. (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
  45899. (KJS::JSHTMLDocument::JSHTMLDocument):
  45900. (KJS::JSHTMLDocument::getOwnPropertySlot):
  45901. Add a prototype for JSHTMLDocument and move all functions there.
  45902. (KJS::JSHTMLElement::JSHTMLElement):
  45903. (KJS::JSHTMLElement::getOwnPropertySlot):
  45904. Update since JSHTMLElement now inherits from WebCore::JSHTMLElement.
  45905. (KJS::JSHTMLElement::getValueProperty):
  45906. (KJS::JSHTMLElement::putValueProperty):
  45907. Remove title setter and getter. Those are autogenerated now.
  45908. * bindings/js/kjs_html.h:
  45909. (KJS::JSHTMLElement::):
  45910. Inherit from WebCore::JSHTMLElement. Clarify the inheritance chain.
  45911. * bindings/scripts/CodeGeneratorJS.pm:
  45912. Always generate a prototype object, regardless of whether the object has any functions or
  45913. constants.
  45914. Use the type of generator attributes to determine what constructor to use. This is useful for
  45915. the XMLDocument property in DOMWindow.idl, since that's just an alias for the Document constructor.
  45916. * dom/DocumentFragment.idl: Added.
  45917. * html/HTMLDocument.idl: Added.
  45918. * html/HTMLElement.idl: Added.
  45919. * page/DOMWindow.idl:
  45920. Add constructors for DocumentFragment, HTMLElement, HTMLDocument and XMLDocument. XMLDocument is just
  45921. an alias for the Document constructor.
  45922. 2006-05-11 David Hyatt <hyatt@apple.com>
  45923. Bug 8845. Define a TextRun (similar to the old WebCoreTextRun) and
  45924. make it the new API for Font and GraphicsContext when drawing/measuring
  45925. text.
  45926. Reviewed by andersca
  45927. * platform/Font.cpp:
  45928. (WebCore::m_finalRoundingWidth):
  45929. (WebCore::WidthIterator::advance):
  45930. (WebCore::WidthIterator::normalizeVoicingMarks):
  45931. (WebCore::Font::width):
  45932. (WebCore::Font::canUseGlyphCache):
  45933. (WebCore::Font::drawSimpleText):
  45934. (WebCore::Font::drawText):
  45935. (WebCore::Font::floatWidth):
  45936. (WebCore::Font::floatWidthForSimpleText):
  45937. * platform/Font.h:
  45938. (WebCore::TextRun::m_to):
  45939. (WebCore::TextRun::operator[]):
  45940. (WebCore::TextRun::data):
  45941. (WebCore::TextRun::adjustFrom):
  45942. (WebCore::TextRun::adjustTo):
  45943. (WebCore::TextRun::characters):
  45944. (WebCore::TextRun::length):
  45945. (WebCore::TextRun::from):
  45946. (WebCore::TextRun::to):
  45947. * platform/GraphicsContext.cpp:
  45948. (WebCore::GraphicsContext::drawText):
  45949. (WebCore::GraphicsContext::drawHighlightForText):
  45950. * platform/GraphicsContext.h:
  45951. * platform/mac/FontMac.mm:
  45952. (WebCore::addDirectionalOverride):
  45953. (WebCore::overrideLayoutOperation):
  45954. (WebCore::ATSULayoutParameters::initialize):
  45955. (WebCore::Font::selectionRectForText):
  45956. (WebCore::Font::drawComplexText):
  45957. (WebCore::Font::drawHighlightForText):
  45958. (WebCore::Font::floatWidthForComplexText):
  45959. (WebCore::Font::checkSelectionPoint):
  45960. * platform/win/FontWin.cpp:
  45961. (WebCore::hackishExtentForString):
  45962. (WebCore::Font::floatWidth):
  45963. (WebCore::Font::drawText):
  45964. (WebCore::Font::drawHighlightForText):
  45965. (WebCore::Font::selectionRectForText):
  45966. (WebCore::Font::checkSelectionPoint):
  45967. * rendering/InlineTextBox.cpp:
  45968. (WebCore::InlineTextBox::selectionRect):
  45969. (WebCore::InlineTextBox::paint):
  45970. (WebCore::InlineTextBox::paintSelection):
  45971. (WebCore::InlineTextBox::paintMarkedTextBackground):
  45972. (WebCore::InlineTextBox::paintTextMatchMarker):
  45973. (WebCore::InlineTextBox::offsetForPosition):
  45974. (WebCore::InlineTextBox::positionForOffset):
  45975. * rendering/RenderBlock.cpp:
  45976. (WebCore::stripTrailingSpace):
  45977. * rendering/RenderFlexibleBox.cpp:
  45978. (WebCore::RenderFlexibleBox::layoutVerticalBox):
  45979. * rendering/RenderImage.cpp:
  45980. (WebCore::RenderImage::imageChanged):
  45981. (WebCore::RenderImage::paint):
  45982. * rendering/RenderText.cpp:
  45983. (WebCore::RenderText::cacheWidths):
  45984. (WebCore::RenderText::widthFromCache):
  45985. (WebCore::RenderText::trimmedMinMaxWidth):
  45986. (WebCore::RenderText::calcMinMaxWidth):
  45987. (WebCore::RenderText::width):
  45988. * rendering/RenderTextField.cpp:
  45989. (WebCore::RenderTextField::calcMinMaxWidth):
  45990. * rendering/bidi.cpp:
  45991. (WebCore::RenderBlock::tabWidth):
  45992. (WebCore::RenderBlock::checkLinesForTextOverflow):
  45993. * rendering/render_line.cpp:
  45994. (WebCore::EllipsisBox::paint):
  45995. * rendering/render_list.cpp:
  45996. (WebCore::RenderListMarker::paint):
  45997. (WebCore::RenderListMarker::calcMinMaxWidth):
  45998. (WebCore::RenderListMarker::getRelativeMarkerRect):
  45999. 2006-05-10 Justin Garcia <justin.garcia@apple.com>
  46000. Reviewed by darin
  46001. * editing/ReplaceSelectionCommand.cpp:
  46002. (WebCore::ReplaceSelectionCommand::doApply):
  46003. Removed the code to find out if we must later add smart replace whitespace. We can
  46004. wait until we've done the insertion to figure it out, and the position sampled (startPos)
  46005. to make the decision about trailing whitespace was wrong.
  46006. Changed the order that work is done during a paste: 1) Insert everything 2) Do one of
  46007. the following: a) handle a trailing interchange newline, b) uncollapse the last incoming
  46008. br if it has been collapsed because of quirks mode, c) do an end merge 3) Add smart replace
  46009. whitespace (2 and 3 were reversed because the end merge must happen before we can know
  46010. whether or not we need to add a trailing space).
  46011. Don't do an end merge if the last node inserted was a br because the end merge will
  46012. clobber it.
  46013. (WebCore::ReplaceSelectionCommand::removeEndBRIfNeeded):
  46014. brs where [br, 0] is at the end of a block and not at the start of a paragraph
  46015. are the ones that are collapsed because of quirks mode.
  46016. 2006-05-10 David Hyatt <hyatt@apple.com>
  46017. Rename isSpace to treatAsSpace. Move it and the rounding hack function into
  46018. Font and make them static methods (inlined in the header). Make the rounding
  46019. hack character table a static member as well. Remove the redundant space/rounding
  46020. functions from FontData.mm.
  46021. Reviewed by darin
  46022. * platform/Font.cpp:
  46023. (WebCore::):
  46024. (WebCore::m_finalRoundingWidth):
  46025. (WebCore::WidthIterator::advance):
  46026. * platform/Font.h:
  46027. (WebCore::Font::treatAsSpace):
  46028. (WebCore::Font::isRoundingHackCharacter):
  46029. * platform/mac/FontData.mm:
  46030. (WebCore::overrideLayoutOperation):
  46031. (WebCore::createATSULayoutParameters):
  46032. (WebCore::initializeWidthIterator):
  46033. (WebCore::advanceWidthIterator):
  46034. * platform/mac/FontMac.mm:
  46035. (WebCore::overrideLayoutOperation):
  46036. (WebCore::ATSULayoutParameters::initialize):
  46037. 2006-05-10 Darin Adler <darin@apple.com>
  46038. * WebCore: Removed an extra WebCore subtree that somehow got checked in.
  46039. 2006-05-10 David Carson <dacarson@gmail.com>
  46040. - Fix for bug 8833. Removed inline keyword from functions declared
  46041. in .mm and .cpp files. inline function code needs to reside in the
  46042. header file for the linker to find the code.
  46043. http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
  46044. Reviewed by Darin, landed by Timothy.
  46045. * platform/Font.cpp:
  46046. (WebCore::isSpace):
  46047. * platform/mac/FontData.mm:
  46048. (WebCore::widthForGlyph):
  46049. (WebCore::isRoundingHackCharacter):
  46050. (WebCore::glyphForCharacter):
  46051. 2006-05-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
  46052. Reviewed and landed by Anders.
  46053. - fix http://bugs.webkit.org/show_bug.cgi?id=8830
  46054. REGRESSION: Words render on top of each other when fallback font is used
  46055. Already covered by several pixel tests in fast/text
  46056. * platform/Font.cpp:
  46057. (WebCore::Font::drawSimpleText):
  46058. 2006-05-10 David Hyatt <hyatt@apple.com>
  46059. Fix for bug 8809, lift the Mac-specific WebTextRenderer code for
  46060. drawing and measuring of runs up into the Font class. The fast code
  46061. path is in Font.cpp and is designed to be mostly cross-platform. The
  46062. slow code path is in FontMac.cpp and is Mac-specific.
  46063. Reviewed by darin
  46064. * WebCore.xcodeproj/project.pbxproj:
  46065. * platform/Font.cpp:
  46066. (WebCore::isSpace):
  46067. (WebCore::):
  46068. (WebCore::isRoundingHackCharacter):
  46069. (WebCore::m_finalRoundingWidth):
  46070. (WebCore::WidthIterator::advance):
  46071. (WebCore::WidthIterator::normalizeVoicingMarks):
  46072. (WebCore::Font::primaryFont):
  46073. (WebCore::Font::setAlwaysUseComplexPath):
  46074. (WebCore::Font::canUseGlyphCache):
  46075. (WebCore::Font::drawSimpleText):
  46076. (WebCore::Font::drawText):
  46077. (WebCore::Font::floatWidth):
  46078. (WebCore::Font::floatWidthForSimpleText):
  46079. * platform/Font.h:
  46080. * platform/FontData.h:
  46081. (WebCore::FontData::platformData):
  46082. * platform/GlyphBuffer.h: Added.
  46083. (WebCore::GlyphBuffer::GlyphBuffer):
  46084. (WebCore::GlyphBuffer::isEmpty):
  46085. (WebCore::GlyphBuffer::size):
  46086. (WebCore::GlyphBuffer::glyphs):
  46087. (WebCore::GlyphBuffer::advances):
  46088. (WebCore::GlyphBuffer::fontDataAt):
  46089. (WebCore::GlyphBuffer::swap):
  46090. (WebCore::GlyphBuffer::glyphAt):
  46091. (WebCore::GlyphBuffer::advanceAt):
  46092. (WebCore::GlyphBuffer::add):
  46093. * platform/mac/FontData.mm:
  46094. (WebCore::isSpace):
  46095. (WebCore::isRoundingHackCharacter):
  46096. (WebCore::FontData::widthForGlyph):
  46097. (WebCore::m_ATSUMirrors):
  46098. (WebCore::FontData::xHeight):
  46099. (WebCore::FontData::smallCapsFontData):
  46100. (WebCore::findSubstituteFont):
  46101. (WebCore::rendererForAlternateFont):
  46102. (WebCore::findSubstituteRenderer):
  46103. (WebCore::FontData::findSubstituteFontData):
  46104. (WebCore::computeWidthForSpace):
  46105. (WebCore::FontData::updateGlyphMapEntry):
  46106. (WebCore::extendGlyphMap):
  46107. (WebCore::extendWidthMap):
  46108. (WebCore::createATSULayoutParameters):
  46109. (WebCore::FontData::glyphForCharacter):
  46110. (WebCore::advanceWidthIterator):
  46111. (WebCore::shouldUseATSU):
  46112. * platform/mac/FontMac.mm:
  46113. (WebCore::ATSULayoutParameters::m_padPerSpace):
  46114. (WebCore::addDirectionalOverride):
  46115. (WebCore::initializeATSUStyle):
  46116. (WebCore::overrideLayoutOperation):
  46117. (WebCore::ATSULayoutParameters::initialize):
  46118. (WebCore::disposeATSULayoutParameters):
  46119. (WebCore::Font::drawComplexText):
  46120. (WebCore::Font::floatWidthForComplexText):
  46121. (WebCore::Font::drawGlyphs):
  46122. * platform/mac/WebCoreTextRenderer.mm:
  46123. (WebCoreSetAlwaysUseATSU):
  46124. 2006-05-10 Darin Adler <darin@apple.com>
  46125. - another try at fixing the Windows build
  46126. * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
  46127. instead of unicode().
  46128. == Rolled over to ChangeLog-2006-05-10 ==