12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038 |
- 2006-12-31 Eric Seidel <eric@webkit.org>
- Reviewed by weinig.
- Make SVGPathSeg construction take fewer lines of code.
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
- (WebCore::SVGPathElement::createSVGPathSegArcAbs):
- (WebCore::SVGPathElement::createSVGPathSegArcRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
- * ksvg2/svg/SVGPathSegArc.cpp:
- (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
- (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
- * ksvg2/svg/SVGPathSegArc.h:
- * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
- (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
- (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
- * ksvg2/svg/SVGPathSegCurvetoCubic.h:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
- (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
- (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
- (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
- * ksvg2/svg/SVGPathSegLineto.cpp:
- (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
- (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
- * ksvg2/svg/SVGPathSegLineto.h:
- * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
- (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
- (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
- * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
- * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
- (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
- (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
- * ksvg2/svg/SVGPathSegLinetoVertical.h:
- * ksvg2/svg/SVGPathSegMoveto.cpp:
- (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
- (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
- * ksvg2/svg/SVGPathSegMoveto.h:
- 2006-12-31 Eric Seidel <eric@webkit.org>
- Reviewed by weinig.
- Implement path length measuring for SVGPathElement::getTotalLength and friends.
- http://bugs.webkit.org/show_bug.cgi?id=12033
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::getTotalLength):
- (WebCore::SVGPathElement::getPointAtLength):
- * platform/graphics/Path.cpp:
- (WebCore::pathLengthApplierFunction):
- (WebCore::Path::length):
- (WebCore::Path::pointAtLength):
- * platform/graphics/Path.h:
- * platform/graphics/PathTraversalState.cpp: Added.
- (WebCore::midPoint):
- (WebCore::distanceLine):
- (WebCore::QuadraticBezier::QuadraticBezier):
- (WebCore::QuadraticBezier::approximateDistance):
- (WebCore::QuadraticBezier::split):
- (WebCore::CubicBezier::CubicBezier):
- (WebCore::CubicBezier::approximateDistance):
- (WebCore::CubicBezier::split):
- (WebCore::curveLength):
- (WebCore::PathTraversalState::PathTraversalState):
- (WebCore::PathTraversalState::closeSubpath):
- (WebCore::PathTraversalState::moveTo):
- (WebCore::PathTraversalState::lineTo):
- (WebCore::PathTraversalState::quadraticBezierTo):
- (WebCore::PathTraversalState::cubicBezierTo):
- * platform/graphics/PathTraversalState.h: Added.
- (WebCore::PathTraversalState::):
- 2006-12-31 Sam Weinig <sam@webkit.org>
- Reviewed by Mitz.
- Move the SVGZoomAndPanType enum out of SVGSVGElement and
- SVGViewElement and into SVGZoomAndPan where it belongs.
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGViewElement.h:
- * ksvg2/svg/SVGZoomAndPan.cpp:
- (WebCore::SVGZoomAndPan::SVGZoomAndPan):
- (WebCore::SVGZoomAndPan::parseMappedAttribute):
- * ksvg2/svg/SVGZoomAndPan.h:
- (WebCore::SVGZoomAndPan::):
- 2006-12-31 Mitz Pettel <mitz@webkit.org>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9659
- Quirksmode: Fixed / Overflow > Positioned objects get hidden when scrolling
- Added a 'fixed' flag to ClipRects, indicating that the cached rects are in
- viewport coordinates. The flag is set (and scrolling is compensated for) for
- fixed objects and their descendants.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::calculateClipRects):
- (WebCore::RenderLayer::calculateRects):
- * rendering/RenderLayer.h:
- (WebCore::ClipRects::ClipRects):
- (WebCore::ClipRects::fixed):
- 2006-12-31 Mitz Pettel <mitz@webkit.org>
- Reviewed by Sam.
- - fix http://bugs.webkit.org/show_bug.cgi?id=12037
- For relatively positioned boxes in an RTL block, 'right' should win over 'left' if both are not 'auto'
- Test: fast/block/positioning/relative-overconstrained.html
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::relativePositionOffsetX):
- 2006-12-30 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=12004
- Webkit doesnt handle omitting M at the start of path syntax well
- Improve path parsing error handling.
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::SVGLength::setValueAsString):
- * ksvg2/svg/SVGParserUtilities.cpp:
- (WebCore::SVGPathParser::parseSVG):
- * ksvg2/svg/SVGParserUtilities.h:
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::SVGPathElement):
- (WebCore::SVGPathElement::parseMappedAttribute):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPolyElement.cpp:
- (WebCore::SVGPolyElement::parseMappedAttribute):
- * ksvg2/svg/SVGPolyElement.h:
- * ksvg2/svg/svgpathparser.cpp: Removed.
- * ksvg2/svg/svgpathparser.h: Removed.
- 2006-12-30 Rémi Zara <remi_zara@mac.com>
- Reviewed by Darin.
- The marker is used for start, mid and end.
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- 2006-12-30 Rob Buis <buis@kde.org>
- Reviewed by weinig.
- http://bugs.webkit.org/show_bug.cgi?id=12035
- Use SVGParserUtilities in lists of values
- Use SVGParserUtilities in some more places.
- * ksvg2/svg/SVGAnimationElement.cpp:
- (WebCore::SVGAnimationElement::parseMappedAttribute):
- (WebCore::SVGAnimationElement::parseClockValue):
- (WebCore::SVGAnimationElement::detectAnimationMode):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (WebCore::SVGFESpecularLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGNumberList.cpp:
- (WebCore::SVGNumberList::parse):
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGStringList.cpp:
- (WebCore::SVGStringList::reset):
- (WebCore::SVGStringList::parse):
- * ksvg2/svg/SVGStringList.h:
- 2006-12-30 Rob Buis <buis@kde.org>
- Reviewed by weinig.
- http://bugs.webkit.org/show_bug.cgi?id=12034
- Adapt preserveAspectRatio parsing to SVGParserUtilities
- Use the new SVGParserUtilities methods to parse prserveAspectRatio attribute.
- * ksvg2/svg/SVGParserUtilities.h:
- (WebCore::checkString):
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- (WebCore::):
- (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
- * ksvg2/svg/SVGTransformable.cpp:
- 2006-12-30 Mitz Pettel <mitz@webkit.org>
- Reviewed by Alexey.
- - remove unused member variables m_loadingSheet and m_bAllDataReceived
- No test possible (no change to functionality).
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::setCSSStyleSheet):
- * dom/Document.h:
- 2006-12-30 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11998
- Incorrect serialization of quotation marks in XML attributes.
- Test: fast/dom/serialize-attribute.xhtml
- * editing/markup.cpp:
- (WebCore::escapeTextForMarkup): Added an isAttributeValue parameter, as the quotation mark
- only needs to be encoded in attribute values.
- (WebCore::startMarkup): Pass appropriate isAttributeValue to escapeTextForMarkup().
- 2006-12-29 David Kilzer <ddkilzer@webkit.org>
- Build fix for no-svg build.
- Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT.
- * bindings/js/kjs_css.cpp:
- (KJS::toJS):
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage):
- 2006-12-29 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brian Dash... err... Mark Rowe.
- More cleanup in preparation for fixing <rdar://problem/4608404>
- WebScriptObject's _executionContext lack of ownership policy causes
- crashes (e.g., in Dashcode)
-
- The key change here is to RootObject::RootObject().
-
- Layout tests pass.
-
- Renamed "_bindingRoot" => "_bindingRootObject" because "RootObject" is the
- type name.
-
- * bindings/objc/WebScriptObject.mm:
- (_didExecute): Use Interpreter::globalObject(), since RootObject::rootObjectImp()
- no longer exists.
- * page/mac/FrameMac.mm:
- (WebCore::FrameMac::bindingRootObject): Use the new RootObject constructor.
- Stop lying about who deletes _bindingRoot.
- (WebCore::FrameMac::cleanupPluginObjects): => "destroy". Fixed a bug where
- the RootObject would only free its own memory if there were a ReferencesSet*
- associated with it.
- * page/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge rootObjectForView:]): Use new constructor. Changed
- misleading comment.
- 2006-12-29 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=12007
- SVGColor::setRGBColor color creates/deletes many strings, slowing down parsing
- Refactor code so svg reuses cssparser methods. Also make
- SVGColor and SVGPaint more efficient by avoiding using
- setRGBColor internally.
- * bindings/js/kjs_css.cpp:
- (KJS::toJS):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseColor):
- (WebCore::CSSParser::parseColorFromValue):
- (WebCore::CSSParser::parseShadow):
- * css/cssparser.h:
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGPaint):
- (WebCore::CSSParser::parseSVGColor):
- * ksvg2/svg/SVGColor.cpp:
- (WebCore::SVGColor::SVGColor):
- (WebCore::SVGColor::setRGBColor):
- (WebCore::SVGColor::cssText):
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGPaint.cpp:
- (WebCore::SVGPaint::SVGPaint):
- * ksvg2/svg/SVGPaint.h:
- * platform/graphics/Color.cpp:
- (WebCore::Color::parseHexColor):
- * platform/graphics/Color.h:
- 2006-12-29 Rob Buis <buis@kde.org>
- Reviewed by weinig.
- http://bugs.webkit.org/show_bug.cgi?id=12022
- typo in SVGTransformable.cpp introduce in r18440
-
- Use the helper method proposed by Eric.
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::checkString):
- (WebCore::):
- (WebCore::SVGTransformable::parseTransformAttribute):
- 2006-12-29 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=12028
- Adapt viewBox parsing to SVGParserUtilities
- Use the new parseNumber and add tests for viewBox parsing.
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseViewBox):
- 2006-12-29 Geoffrey Garen <ggaren@apple.com>
- Build fix: SVGImage only works on Mac.
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage):
- 2006-12-29 Sam Weinig <sam@webkit.org>
- Reviewed by Geoff.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=12018
- Cleanup of CSSRule and its subclasses
- - Make CSSRule::type() virtual instead of using a member variable.
- - General style cleanup.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSCharsetRule.cpp:
- (WebCore::CSSCharsetRule::CSSCharsetRule):
- * css/CSSCharsetRule.h:
- (WebCore::CSSCharsetRule::isCharsetRule):
- (WebCore::CSSCharsetRule::type):
- * css/CSSFontFaceRule.cpp:
- (WebCore::CSSFontFaceRule::CSSFontFaceRule):
- (WebCore::CSSFontFaceRule::cssText):
- * css/CSSFontFaceRule.h:
- (WebCore::CSSFontFaceRule::isFontFaceRule):
- (WebCore::CSSFontFaceRule::type):
- * css/CSSImportRule.cpp:
- (WebCore::CSSImportRule::CSSImportRule):
- (WebCore::CSSImportRule::setCSSStyleSheet):
- (WebCore::CSSImportRule::insertedIntoParent):
- * css/CSSImportRule.h:
- (WebCore::CSSImportRule::isImportRule):
- (WebCore::CSSImportRule::type):
- * css/CSSMediaRule.cpp:
- (WebCore::CSSMediaRule::CSSMediaRule):
- (WebCore::CSSMediaRule::insertRule):
- (WebCore::CSSMediaRule::deleteRule):
- (WebCore::CSSMediaRule::cssText):
- * css/CSSMediaRule.h:
- (WebCore::CSSMediaRule::isMediaRule):
- (WebCore::CSSMediaRule::type):
- * css/CSSPageRule.cpp:
- (WebCore::CSSPageRule::CSSPageRule):
- (WebCore::CSSPageRule::selectorText):
- (WebCore::CSSPageRule::setSelectorText):
- (WebCore::CSSPageRule::cssText):
- * css/CSSPageRule.h:
- (WebCore::CSSPageRule::style):
- (WebCore::CSSPageRule::type):
- * css/CSSRule.cpp:
- (WebCore::CSSRule::cssText):
- (WebCore::CSSRule::setCssText):
- * css/CSSRule.h:
- (WebCore::CSSRule::):
- (WebCore::CSSRule::CSSRule):
- * css/CSSStyleRule.cpp:
- (WebCore::CSSStyleRule::CSSStyleRule):
- (WebCore::CSSStyleRule::setSelectorText):
- (WebCore::CSSStyleRule::cssText):
- (WebCore::CSSStyleRule::parseString):
- * css/CSSStyleRule.h:
- (WebCore::CSSStyleRule::isStyleRule):
- (WebCore::CSSStyleRule::style):
- (WebCore::CSSStyleRule::type):
- * css/CSSUnknownRule.h:
- (WebCore::CSSUnknownRule::CSSUnknownRule):
- (WebCore::CSSUnknownRule::type):
- 2006-12-29 Eric Seidel <eric@webkit.org>
- Reviewed by ap.
- * platform/graphics/svg/SVGImage.cpp:
- (WebCore::SVGImage::size): explicitly cast to integers to prevent compile error
- 2006-12-29 George Staikos <staikos@kde.org>
- Reviewed by Sam.
- Don't crash on sites such as www.apple.com. Painter was ended incorrectly among other issues.
- * platform/graphics/qt/GraphicsContextQt.cpp:
- (WebCore::TransparencyLayer::TransparencyLayer):
- (WebCore::TransparencyLayer::cleanup):
- (WebCore::GraphicsContext::endTransparencyLayer):
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::paintEvent):
- 2006-12-29 Nikolas Zimmermann <zimmermann@kde.org>
- Build fixed, not reviewed. Noticed by Daniel Molkentin.
- * platform/graphics/svg/SVGImage.h: s/WTF/wtf/ in include.
- 2006-12-29 Eric Seidel <eric@webkit.org>
- Reviewed by olliej.
- * platform/graphics/svg/SVGImageEmptyClients.h:
- (WebCore::SVGEmptyCromeClient::scaleFactor): build fix, use 1.f instead of 1f
- 2006-12-29 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
- New tests:
- * fast/images/svg-as-image.html
- * fast/images/svg-as-background.html
- * fast/images/svg-as-tiled-background.html
-
- Implement basic SVGImage support.
- http://bugs.webkit.org/show_bug.cgi?id=5971
-
- This implementation depends on (rather ugly) stub Page and Frame clients in SVGImageEmptyClients.h
- * WebCore.xcodeproj/project.pbxproj: add SVGImage.*
- * ksvg2/svg/SVGFEImageElement.cpp:
- (WebCore::SVGFEImageElement::parseMappedAttribute): ignore fragment urls
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage):
- * platform/graphics/Image.h: made setData virtual
- * platform/graphics/cg/PDFDocumentImage.cpp:
- (WebCore::PDFDocumentImage::drawTiled): stub method
- * platform/graphics/cg/PDFDocumentImage.h:
- * platform/graphics/svg/SVGImage.cpp: Added.
- (WebCore::SVGImage::SVGImage):
- (WebCore::SVGImage::~SVGImage):
- (WebCore::SVGImage::size):
- (WebCore::SVGImage::draw):
- (WebCore::SVGImage::drawTiled): stub method
- (WebCore::SVGImage::setData):
- * platform/graphics/svg/SVGImage.h: Added.
- (WebCore::SVGImage::frameAtIndex):
- * platform/graphics/svg/SVGImageEmptyClients.h: Added.
- (WebCore::SVGEmptyCromeClient::~SVGEmptyCromeClient):
- (WebCore::SVGEmptyCromeClient::chromeDestroyed):
- (WebCore::SVGEmptyCromeClient::setWindowRect):
- (WebCore::SVGEmptyCromeClient::windowRect):
- (WebCore::SVGEmptyCromeClient::pageRect):
- (WebCore::SVGEmptyCromeClient::scaleFactor):
- (WebCore::SVGEmptyCromeClient::focus):
- (WebCore::SVGEmptyCromeClient::unfocus):
- (WebCore::SVGEmptyCromeClient::createWindow):
- (WebCore::SVGEmptyCromeClient::createModalDialog):
- (WebCore::SVGEmptyCromeClient::show):
- (WebCore::SVGEmptyCromeClient::canRunModal):
- (WebCore::SVGEmptyCromeClient::runModal):
- (WebCore::SVGEmptyCromeClient::setToolbarsVisible):
- (WebCore::SVGEmptyCromeClient::toolbarsVisible):
- (WebCore::SVGEmptyCromeClient::setStatusbarVisible):
- (WebCore::SVGEmptyCromeClient::statusbarVisible):
- (WebCore::SVGEmptyCromeClient::setScrollbarsVisible):
- (WebCore::SVGEmptyCromeClient::scrollbarsVisible):
- (WebCore::SVGEmptyCromeClient::setMenubarVisible):
- (WebCore::SVGEmptyCromeClient::menubarVisible):
- (WebCore::SVGEmptyCromeClient::setResizable):
- (WebCore::SVGEmptyCromeClient::addMessageToConsole):
- (WebCore::SVGEmptyCromeClient::canRunBeforeUnloadConfirmPanel):
- (WebCore::SVGEmptyCromeClient::runBeforeUnloadConfirmPanel):
- (WebCore::SVGEmptyCromeClient::closeWindowSoon):
- (WebCore::SVGEmptyFrameLoaderClient::~SVGEmptyFrameLoaderClient):
- (WebCore::SVGEmptyFrameLoaderClient::frameLoaderDestroyed):
- (WebCore::SVGEmptyFrameLoaderClient::hasWebView):
- (WebCore::SVGEmptyFrameLoaderClient::hasFrameView):
- (WebCore::SVGEmptyFrameLoaderClient::hasBackForwardList):
- (WebCore::SVGEmptyFrameLoaderClient::resetBackForwardList):
- (WebCore::SVGEmptyFrameLoaderClient::provisionalItemIsTarget):
- (WebCore::SVGEmptyFrameLoaderClient::loadProvisionalItemFromPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::invalidateCurrentItemPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::privateBrowsingEnabled):
- (WebCore::SVGEmptyFrameLoaderClient::makeDocumentView):
- (WebCore::SVGEmptyFrameLoaderClient::makeRepresentation):
- (WebCore::SVGEmptyFrameLoaderClient::setDocumentViewFromPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::forceLayout):
- (WebCore::SVGEmptyFrameLoaderClient::forceLayoutForNonHTML):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForCommit):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForBackForwardNavigation):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForReload):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForStandardLoad):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryForInternalLoad):
- (WebCore::SVGEmptyFrameLoaderClient::updateHistoryAfterClientRedirect):
- (WebCore::SVGEmptyFrameLoaderClient::setCopiesOnScroll):
- (WebCore::SVGEmptyFrameLoaderClient::tokenForLoadErrorReset):
- (WebCore::SVGEmptyFrameLoaderClient::resetAfterLoadError):
- (WebCore::SVGEmptyFrameLoaderClient::doNotResetAfterLoadError):
- (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent1):
- (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent2):
- (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent3):
- (WebCore::SVGEmptyFrameLoaderClient::detachedFromParent4):
- (WebCore::SVGEmptyFrameLoaderClient::loadedFromPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::download):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchIdentifierForInitialRequest):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSendRequest):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelAuthenticationChallenge):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveResponse):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveContentLength):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoading):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoading):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadResourceFromMemoryCache):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidHandleOnloadEvents):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCancelClientRedirect):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchWillPerformClientRedirect):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidChangeLocationWithinPage):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchWillClose):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveIcon):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidStartProvisionalLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidReceiveTitle):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidCommitLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailProvisionalLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFailLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFinishLoad):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidFirstLayout):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchCreatePage):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchShow):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForMIMEType):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
- (WebCore::SVGEmptyFrameLoaderClient::cancelPolicyCheck):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchUnableToImplementPolicy):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchWillSubmitForm):
- (WebCore::SVGEmptyFrameLoaderClient::dispatchDidLoadMainResource):
- (WebCore::SVGEmptyFrameLoaderClient::clearLoadingFromPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::isLoadingFromPageCache):
- (WebCore::SVGEmptyFrameLoaderClient::revertToProvisionalState):
- (WebCore::SVGEmptyFrameLoaderClient::setMainDocumentError):
- (WebCore::SVGEmptyFrameLoaderClient::clearUnarchivingState):
- (WebCore::SVGEmptyFrameLoaderClient::progressStarted):
- (WebCore::SVGEmptyFrameLoaderClient::progressCompleted):
- (WebCore::SVGEmptyFrameLoaderClient::incrementProgress):
- (WebCore::SVGEmptyFrameLoaderClient::completeProgress):
- (WebCore::SVGEmptyFrameLoaderClient::setMainFrameDocumentReady):
- (WebCore::SVGEmptyFrameLoaderClient::startDownload):
- (WebCore::SVGEmptyFrameLoaderClient::willChangeTitle):
- (WebCore::SVGEmptyFrameLoaderClient::didChangeTitle):
- (WebCore::SVGEmptyFrameLoaderClient::committedLoad):
- (WebCore::SVGEmptyFrameLoaderClient::finishedLoading):
- (WebCore::SVGEmptyFrameLoaderClient::finalSetupForReplace):
- (WebCore::SVGEmptyFrameLoaderClient::cancelledError):
- (WebCore::SVGEmptyFrameLoaderClient::cannotShowURLError):
- (WebCore::SVGEmptyFrameLoaderClient::interruptForPolicyChangeError):
- (WebCore::SVGEmptyFrameLoaderClient::cannotShowMIMETypeError):
- (WebCore::SVGEmptyFrameLoaderClient::fileDoesNotExistError):
- (WebCore::SVGEmptyFrameLoaderClient::shouldFallBack):
- (WebCore::SVGEmptyFrameLoaderClient::setDefersLoading):
- (WebCore::SVGEmptyFrameLoaderClient::willUseArchive):
- (WebCore::SVGEmptyFrameLoaderClient::isArchiveLoadPending):
- (WebCore::SVGEmptyFrameLoaderClient::cancelPendingArchiveLoad):
- (WebCore::SVGEmptyFrameLoaderClient::clearArchivedResources):
- (WebCore::SVGEmptyFrameLoaderClient::canHandleRequest):
- (WebCore::SVGEmptyFrameLoaderClient::canShowMIMEType):
- (WebCore::SVGEmptyFrameLoaderClient::representationExistsForURLScheme):
- (WebCore::SVGEmptyFrameLoaderClient::generatedMIMETypeForURLScheme):
- (WebCore::SVGEmptyFrameLoaderClient::frameLoadCompleted):
- (WebCore::SVGEmptyFrameLoaderClient::restoreScrollPositionAndViewState):
- (WebCore::SVGEmptyFrameLoaderClient::provisionalLoadStarted):
- (WebCore::SVGEmptyFrameLoaderClient::shouldTreatURLAsSameAsCurrent):
- (WebCore::SVGEmptyFrameLoaderClient::addHistoryItemForFragmentScroll):
- (WebCore::SVGEmptyFrameLoaderClient::didFinishLoad):
- (WebCore::SVGEmptyFrameLoaderClient::prepareForDataSourceReplacement):
- (WebCore::SVGEmptyFrameLoaderClient::createDocumentLoader):
- (WebCore::SVGEmptyFrameLoaderClient::setTitle):
- (WebCore::SVGEmptyFrameLoaderClient::userAgent):
- (WebCore::SVGEmptyEditorClient::~SVGEmptyEditorClient):
- (WebCore::SVGEmptyEditorClient::pageDestroyed):
- (WebCore::SVGEmptyEditorClient::shouldDeleteRange):
- (WebCore::SVGEmptyEditorClient::shouldShowDeleteInterface):
- (WebCore::SVGEmptyEditorClient::smartInsertDeleteEnabled):
- (WebCore::SVGEmptyEditorClient::isContinuousSpellCheckingEnabled):
- (WebCore::SVGEmptyEditorClient::toggleContinuousSpellChecking):
- (WebCore::SVGEmptyEditorClient::isGrammarCheckingEnabled):
- (WebCore::SVGEmptyEditorClient::toggleGrammarChecking):
- (WebCore::SVGEmptyEditorClient::spellCheckerDocumentTag):
- (WebCore::SVGEmptyEditorClient::selectWordBeforeMenuEvent):
- (WebCore::SVGEmptyEditorClient::isEditable):
- (WebCore::SVGEmptyEditorClient::shouldBeginEditing):
- (WebCore::SVGEmptyEditorClient::shouldEndEditing):
- (WebCore::SVGEmptyEditorClient::shouldInsertNode):
- (WebCore::SVGEmptyEditorClient::shouldInsertText):
- (WebCore::SVGEmptyEditorClient::shouldApplyStyle):
- (WebCore::SVGEmptyEditorClient::didBeginEditing):
- (WebCore::SVGEmptyEditorClient::respondToChangedContents):
- (WebCore::SVGEmptyEditorClient::didEndEditing):
- (WebCore::SVGEmptyEditorClient::registerCommandForUndo):
- (WebCore::SVGEmptyEditorClient::registerCommandForRedo):
- (WebCore::SVGEmptyEditorClient::clearUndoRedoOperations):
- (WebCore::SVGEmptyEditorClient::canUndo):
- (WebCore::SVGEmptyEditorClient::canRedo):
- (WebCore::SVGEmptyEditorClient::undo):
- (WebCore::SVGEmptyEditorClient::redo):
- (WebCore::SVGEmptyEditorClient::dataForArchivedSelection):
- (WebCore::SVGEmptyEditorClient::userVisibleString):
- (WebCore::SVGEmptyContextMenuClient::~SVGEmptyContextMenuClient):
- (WebCore::SVGEmptyContextMenuClient::contextMenuDestroyed):
- (WebCore::SVGEmptyContextMenuClient::addCustomContextMenuItems):
- (WebCore::SVGEmptyContextMenuClient::contextMenuItemSelected):
- (WebCore::SVGEmptyContextMenuClient::downloadURL):
- (WebCore::SVGEmptyContextMenuClient::copyImageToClipboard):
- (WebCore::SVGEmptyContextMenuClient::lookUpInDictionary):
- (WebCore::SVGEmptyContextMenuClient::speak):
- (WebCore::SVGEmptyContextMenuClient::stopSpeaking):
- (WebCore::SVGEmptyContextMenuClient::searchWithSpotlight):
- 2006-12-29 George Staikos <staikos@kde.org>
- Reviewed by Olliej.
- Make redirects work properly. Sites will thank us for this. :-)
- * platform/network/qt/ResourceHandleManagerQt.cpp:
- (WebCore::ResourceHandleManager::receivedResponse):
- 2006-12-28 George Staikos <staikos@kde.org>
- Reviewed by Olliej.
- * loader/CachedImage.cpp: build for Qt
- 2006-12-28 Daniel Molkentin <molkentin@kde.org>
- Reviewed by Eric Seidel <eric@webkit.org>
- - Fix font sizes
- - Make Qt platform build again:
- - Adjust Qt platform to the Image class split.
- - Introduce BitmapImage class
- - add stub PDFDocumentImage class
- * WebCore.pro:
- * editing/qt/EditorQt.cpp:
- (WebCore::Editor::markMisspellingsAfterTypingToPosition):
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::partClearedInBegin):
- * platform/graphics/qt/ImageQt.cpp:
- (WebCore::BitmapImage::initPlatformData):
- (WebCore::BitmapImage::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- (WebCore::BitmapImage::draw):
- (WebCore::BitmapImage::drawTiled):
- (WebCore::BitmapImage::checkForSolidColor):
- * platform/graphics/svg/SVGPaintServerLinearGradient.h:
- * platform/graphics/svg/SVGPaintServerRadialGradient.h:
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
- (WebCore::SVGPaintServer::teardown):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
- (WebCore::SVGPaintServerRadialGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::bindingRootObject):
- 2006-12-28 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brady Eidson.
-
- Some cleanup in preparation for fixing <rdar://problem/4608404>
- WebScriptObject's _executionContext lack of ownership policy causes
- crashes (e.g., in Dashcode)
-
- Layout tests pass.
- Renamed "root" | "execContext" | "executionContext" => rootObject, because
- that's the object's (admittedly vague) type name.
-
- * bindings/js/kjs_binding.cpp:
- * bindings/js/kjs_binding.h: Removed createLanguageInstanceForValue
- and createObjcInstanceForValue because their only purpose was to confuse you.
-
- * bindings/objc/DOMInternal.h: Moved declaration of createDOMWrapper here.
- createDOMWrapper is the new name for createObjcInstanceForValue.
-
- * bindings/objc/DOMInternal.mm: Renamed Interpreter::createObjcInstanceForValue
- to createDOMWrapper because creating DOM wrappers has nothing to do with the interpreter,
- and everything to do with the DOM. Renamed value to object because it is one.
- Removed newObj nil check that is unnecessary in ObjC.
- * bindings/objc/WebScriptObject.mm: Replaced call to createLanguageInstanceForValue
- with explicit code to do the same thing it would have done: (1) try to create
- a DOM wrapper; (2) if the object is not a wrappable DOM object, create a
- vanilla WebScriptObject for it instead.
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11729
- REGRESSION: Crash closing page with frames after selection
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::detachFromParent): Added call to pageDestroyed().
- * page/FrameTree.cpp:
- (WebCore::FrameTree::appendChild): Added an assertion that the parent and
- the child are in the same page.
- (WebCore::FrameTree::removeChild): Added calls to decrementFrameCount() and pageDestroyed().
- 2006-12-28 David Kilzer <ddkilzer@webkit.org>
- Reviewed by Mitz.
- - fix http://bugs.webkit.org/show_bug.cgi?id=12016
- REGRESSION: fast/text/stroking-decorations.html test fails with bus error in no-svg build
- No test cases (no change in functionality).
- * platform/TextStream.cpp: Properly initialize presicionFormats.
- * rendering/RenderTreeAsText.cpp:
- (WebCore::externalRepresentation): HTML tests now print out the stroke width, which is a float,
- so the precision needs to be set.
- 2006-12-28 Eric Seidel <eric@webkit.org>
- Reviewed by rwlbuis.
- Fix for memory smasher when drawing markers.
- http://bugs.webkit.org/show_bug.cgi?id=12015
-
- No test case possible (crashes for some folks but not others, not even under --guard)
- * platform/graphics/cg/PathCG.cpp:
- (WebCore::CGPathApplierToPathApplier): array was too small
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11124
- REGRESSION (r14297): No drag image for partially-selected complex text
- Test: fast/text/atsui-partial-selection.html
- * platform/Font.h: Changed comment.
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText): Corrected the run length calculation.
- Changed the ATSUI layout parameters to know about the entire text run, rather
- than just the range we are drawing. ATSUI measures the characters before
- the range and positions the range accordingly.
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9202
- CSS3: border-radius not completely implemented, testcase hangs webkit
- Test: fast/borders/borderRadiusAllStylesAllCorners.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::paintBorder): Changed to not draw "arcs" at straight
- corners and to paint half-corners only where the styles mismatch.
- Corrected the condition for matching styles: ridge, groove, inset and outset
- all mismatch in the upper right and lower left corners and match in the other
- two. The incorrect condition for a match was (almost) unnoticeable because of
- the painting of both half-corners on each side that had at least one mismatch.
- 2006-12-28 Alexey Proskuryakov <ap@webkit.org>
- Reverting the previous checkin, as it caused an assertion in layout tests.
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::borderLeft):
- (WebCore::RenderTableCell::borderRight):
- (WebCore::RenderTableCell::borderTop):
- (WebCore::RenderTableCell::borderBottom):
- * rendering/RenderTableCell.h:
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11359
- Incomplete repaint of table cell's collapsed border when changing only the cell
- Test: fast/repaint/table-cell-collapsed-border.html
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::getAbsoluteRepaintRect): Overloaded to add the
- outer half of any collapsed borders. This function checks the cell's borders'
- widths but also the widths of the adjoining cells' borders, since they can
- contribute to the length of this cell's borders perpendicular to them, making
- such a border overflow the cell in both dimensions.
- (WebCore::RenderTableCell::borderLeft): Split the collapsing borders case off to
- borderHalfLeft().
- (WebCore::RenderTableCell::borderRight): Ditto.
- (WebCore::RenderTableCell::borderTop): Ditto.
- (WebCore::RenderTableCell::borderBottom): Ditto.
- (WebCore::RenderTableCell::borderHalfLeft): Added. Takes an 'outer' boolean
- parameter. When true, this function returns the width of the part of the border
- that is outside the cell (different from the inner width when the total width is odd).
- (WebCore::RenderTableCell::borderHalfRight): Ditto.
- (WebCore::RenderTableCell::borderHalfTop): Ditto.
- (WebCore::RenderTableCell::borderHalfBottom): Ditto.
- * rendering/RenderTableCell.h:
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Alexey.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11671
- REGRESSION (r13702): text-transform: capitalize changes non-breaking spaces to spaces
- Test: fast/text/capitalize-preserve-nbsp.html
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::capitalize): Copy back non-breaking spaces from the
- original string to the capitalized string. Change a 'previous' non-breaking
- space into a space (this improves the fix for <rdar://problem/4502311> from r13702).
- 2006-12-28 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10699
- div with border-radius does not redraw properly if element inside div is resized
- Test: fast/repaint/border-radius-repaint.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
- 2006-12-28 Darin Adler <darin@apple.com>
- * loader/CachedImage.cpp: (WebCore::CachedImage::createImage):
- Fixed an #ifdef PLATFORM(CG) that should be #if PLATFORM(CG).
- Might have broken the build on some platforms.
- 2006-12-27 Geoffrey Garen <ggaren@apple.com>
- Build fix, plus a few "double &" => "double&" changes.
-
- * ksvg2/svg/SVGParserUtilities.cpp:
- (WebCore::parseNumber):
- (WebCore::SVGPathParser::calculateArc):
- 2006-12-27 Oliver Hunt <oliver@apple.com>
- Build fix
- * platform/graphics/BitmapImage.h:
- * platform/graphics/Image.cpp:
- * platform/graphics/Image.h:
- (WebCore::Image::getHBITMAP):
- * platform/graphics/cg/PDFDocumentImage.cpp:
- (WebCore::PDFDocumentImage::PDFDocumentImage):
- 2006-12-27 Eric Seidel <eric@webkit.org>
- Reviewed by olliej.
- Add new PDFDocumentImage and BitmapImage classes (subclasses of Image)
- (In preparation for adding SVGImage as part of bug 5971)
- http://bugs.webkit.org/show_bug.cgi?id=11990
-
- Test cases landed separately as part of filing bug 11992.
- * WebCore.xcodeproj/project.pbxproj: add BitmapImage.*
- * loader/CachedImage.cpp:
- (WebCore::nullImage): use BitmapImage directly
- (WebCore::CachedImage::createImage): now create either BitmapImage or PDFDocumentImage directly
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::setImageData): use BitmapImage directly
- * platform/graphics/BitmapImage.cpp: Added.
- (WebCore::BitmapImage::BitmapImage):
- (WebCore::BitmapImage::~BitmapImage):
- (WebCore::BitmapImage::invalidateData):
- (WebCore::BitmapImage::cacheFrame):
- (WebCore::BitmapImage::size):
- (WebCore::BitmapImage::setNativeData):
- (WebCore::BitmapImage::frameCount):
- (WebCore::BitmapImage::isSizeAvailable):
- (WebCore::BitmapImage::frameAtIndex):
- (WebCore::BitmapImage::frameDurationAtIndex):
- (WebCore::BitmapImage::frameHasAlphaAtIndex):
- (WebCore::BitmapImage::shouldAnimate):
- (WebCore::BitmapImage::startAnimation):
- (WebCore::BitmapImage::stopAnimation):
- (WebCore::BitmapImage::resetAnimation):
- (WebCore::BitmapImage::advanceAnimation):
- * platform/graphics/BitmapImage.h: Added.
- (WebCore::FrameData::FrameData):
- (WebCore::BitmapImage::nativeImageForCurrentFrame): added.
- (WebCore::BitmapImage::currentFrame):
- (WebCore::BitmapImage::mayFillWithSolidColor): added.
- (WebCore::BitmapImage::solidColor): added.
- * platform/graphics/Image.cpp:
- (WebCore::Image::Image):
- (WebCore::Image::~Image):
- * platform/graphics/Image.h:
- (WebCore::Image::setNativeData): now virtual
- (WebCore::Image::stopAnimation): now virtual
- (WebCore::Image::resetAnimation): now virtual
- (WebCore::Image::getNSImage): now virtual
- (WebCore::Image::getTIFFRepresentation): now virtual
- (WebCore::Image::getCGImageRef): now virtual
- * platform/graphics/cg/ImageCG.cpp:
- (WebCore::BitmapImage::checkForSolidColor):
- (WebCore::BitmapImage::getCGImageRef): use nativeImageForCurrentFrame
- (WebCore::fillWithSolidColor): added
- (WebCore::BitmapImage::draw):
- (WebCore::drawPattern): use fillWithSolidColor, mayFillWithSolidColor() and solidcolor()
- (WebCore::BitmapImage::drawTiled): use fillWithSolidColor, mayFillWithSolidColor() and solidcolor()
- * platform/graphics/cg/PDFDocumentImage.cpp:
- (WebCore::PDFDocumentImage::PDFDocumentImage):
- (WebCore::PDFDocumentImage::size): change to subclass from Image
- (WebCore::PDFDocumentImage::setNativeData):
- (WebCore::PDFDocumentImage::draw):
- * platform/graphics/cg/PDFDocumentImage.h:
- (WebCore::PDFDocumentImage::drawTiled):
- * platform/graphics/mac/ImageMac.mm:
- (WebCore::BitmapImage::initPlatformData):
- (WebCore::BitmapImage::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- (WebCore::BitmapImage::getTIFFRepresentation):
- (WebCore::BitmapImage::getNSImage):
- * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
- (WebCore::SVGFEImage::getCIFilter): remove soon-to-be unnecessary comment
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::nullImage): use BitmapImage
- 2006-12-27 Mitz Pettel <mitz@webkit.org>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11452
- REGRESSION (r16736-r16801): Incorrect repaint of fixed boxes
- Test: fast/repaint/fixed.html
- * rendering/RenderView.cpp:
- (WebCore::RenderView::computeAbsoluteRepaintRect): Re-added.
- * rendering/RenderView.h:
- 2006-12-27 Mitz Pettel <mitz@webkit.org>
- Reviewed by Geoff.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11930
- Specifying border-radius makes the outline shrink
- Test: fast/css/border-radius-outline-offset.html
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty): Added missing return statement.
- 2006-12-27 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=11108
- Replace usage of split by proper parsers
- http://bugs.webkit.org/show_bug.cgi?id=11908
- WebKit spends 40% of its time displaying "bamboo.svg" executing Regexes
- Get rid of split() when parsing transform attribute.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/svg/SVGParserUtilities.cpp: Added.
- (WebCore::parseNumber):
- (WebCore::parseNumberOptionalNumber):
- (WebCore::SVGPolyParser::parsePoints):
- (WebCore::SVGPathParser::parseSVG):
- (WebCore::SVGPathParser::calculateArc):
- (WebCore::SVGPathParser::svgLineToHorizontal):
- (WebCore::SVGPathParser::svgLineToVertical):
- (WebCore::SVGPathParser::svgCurveToCubicSmooth):
- (WebCore::SVGPathParser::svgCurveToQuadratic):
- (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
- (WebCore::SVGPathParser::svgArcTo):
- * ksvg2/svg/SVGParserUtilities.h: Added.
- (WebCore::isWhitespace):
- (WebCore::skipOptionalSpaces):
- (WebCore::skipOptionalSpacesOrDelimiter):
- (WebCore::SVGPolyParser::~SVGPolyParser):
- (WebCore::SVGPathParser::~SVGPathParser):
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::SVGPathElement):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::parseTransformParamList):
- (WebCore::SVGTransformable::parseTransformAttribute):
- * ksvg2/svg/svgpathparser.cpp:
- (WebCore::DeprecatedSVGPathParser::parseSVG):
- (WebCore::DeprecatedSVGPathParser::calculateArc):
- (WebCore::DeprecatedSVGPathParser::svgLineToHorizontal):
- (WebCore::DeprecatedSVGPathParser::svgLineToVertical):
- (WebCore::DeprecatedSVGPathParser::svgCurveToCubicSmooth):
- (WebCore::DeprecatedSVGPathParser::svgCurveToQuadratic):
- (WebCore::DeprecatedSVGPathParser::svgCurveToQuadraticSmooth):
- (WebCore::DeprecatedSVGPathParser::svgArcTo):
- * ksvg2/svg/svgpathparser.h:
- (WebCore::DeprecatedSVGPathParser::~DeprecatedSVGPathParser):
- 2006-12-27 Mitz Pettel <mitz@webkit.org>
- Reviewed by Geoff.
- - http://bugs.webkit.org/show_bug.cgi?id=11968
- BidiContext's m_basicDir is redundant
- No test possible (no functionality change)
- * rendering/bidi.cpp:
- (WebCore::BidiContext::BidiContext):
- (WebCore::operator==):
- (WebCore::RenderBlock::computeHorizontalPositionsForLine): Use the block's
- direction to resolve 'automatic' text-align.
- * rendering/bidi.h:
- (WebCore::BidiContext::dir):
- 2006-12-27 Nikolas Zimmermann <zimmermann@kde.org>
- Build fix, not reviewed.
- Accidently commited an older revision of this file.
- * platform/graphics/svg/SVGPaintServerPattern.h:
- 2006-12-27 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz & Eric.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11904
- We need to cache the CGPatternRef (m_pattern) for efficiency
- in SVGPaintServerPatternCg, and keep track wheter the underlying
- ImageBuffer has changed, and only update the pattern in that case.
- * platform/graphics/svg/SVGPaintServerPattern.cpp:
- (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
- (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
- (WebCore::SVGPaintServerPattern::setTile):
- * platform/graphics/svg/SVGPaintServerPattern.h:
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- (WebCore::SVGPaintServerPattern::teardown):
- 2006-12-26 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Eric Seidel.
- Fixed <rdar://problem/4740328> Safari crash on quit in _NPN_ReleaseObject
- from KJS::Bindings::CInstance::~CInstance
-
- No testcase because we can't open and close windows in DumpRenderTree.
-
- * loader/FrameLoader.cpp: Removed closeDocument helper function because
- its only purpose was to call didCloseDocument, which is gone now.
- (WebCore::FrameLoader::detachFromParent): closeDocument => closeURL,
- since didCloseDocument is gone now.
- * loader/FrameLoaderClient.h: Removed didCloseDocument because it proved
- unnecessary and harmful.
-
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::transitionToCommitted): closeDocument => closeURL,
- since didCloseDocument is gone now.
- 2006-12-26 Eric Seidel <eric@webkit.org>
- Reviewed by olliej.
- ASSERT while loading SVG map
- http://bugs.webkit.org/show_bug.cgi?id=11987
- * ksvg2/css/SVGCSSParser.cpp: remove a few .impl() calls previously missed.
- (WebCore::CSSParser::parseSVGValue):
- (WebCore::CSSParser::parseSVGPaint):
- (WebCore::CSSParser::parseSVGColor):
- * ksvg2/misc/KCanvasRenderingStyle.cpp: handle invalid colors
- (WebCore::KSVGPainterFactory::fillPaintServer):
- (WebCore::KSVGPainterFactory::strokePaintServer):
- 2006-12-26 Eric Seidel <eric@webkit.org>
- Reviewed by ggaren.
- No test cases changed.
-
- Remove unnecessary (and inefficient) .impl() and .deprecatedString() calls.
- http://bugs.webkit.org/show_bug.cgi?id=11989
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNodeList::getOwnPropertySlot):
- * dom/Document.cpp:
- (WebCore::Document::createAttributeNS):
- * dom/Element.cpp:
- (WebCore::Element::getAttributeNS):
- (WebCore::Element::setAttribute):
- (WebCore::Element::setAttributeNS):
- (WebCore::Element::removeAttributeNS):
- (WebCore::Element::getAttributeNode):
- (WebCore::Element::getAttributeNodeNS):
- (WebCore::Element::hasAttribute):
- (WebCore::Element::hasAttributeNS):
- * dom/NamedAttrMap.cpp:
- (WebCore::NamedAttrMap::getNamedItemNS):
- (WebCore::NamedAttrMap::removeNamedItemNS):
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet):
- * html/HTMLBaseElement.cpp:
- (WebCore::HTMLBaseElement::process):
- * html/HTMLEmbedElement.cpp:
- (WebCore::HTMLEmbedElement::parseMappedAttribute):
- * html/HTMLEmbedElement.h:
- * html/HTMLHRElement.cpp:
- (WebCore::HTMLHRElement::parseMappedAttribute):
- * html/HTMLScriptElement.cpp:
- (WebCore::HTMLScriptElement::insertedIntoDocument):
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::parseMappedAttribute):
- * ksvg2/svg/SVGAnimateElement.cpp:
- (WebCore::SVGAnimateElement::handleTimerEvent):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEImageElement.cpp:
- (WebCore::SVGFEImageElement::parseMappedAttribute):
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseMappedAttribute):
- * ksvg2/svg/SVGImageElement.cpp:
- (WebCore::SVGImageElement::parseMappedAttribute):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- * ksvg2/svg/SVGPolyElement.cpp:
- (WebCore::SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGStopElement.cpp:
- (WebCore::SVGStopElement::parseMappedAttribute):
- * ksvg2/svg/SVGTRefElement.cpp:
- (WebCore::SVGTRefElement::updateReferencedText):
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::parseMappedAttribute):
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- (WebCore::SVGTextPositioningElement::parseMappedAttribute):
- * ksvg2/svg/SVGUseElement.cpp:
- (WebCore::SVGUseElement::closeRenderer):
- * ksvg2/svg/SVGViewElement.cpp:
- (WebCore::SVGViewElement::parseMappedAttribute):
- * page/Frame.cpp:
- (WebCore::Frame::selectionComputedStyle):
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::updateWidget):
- * rendering/SVGRenderTreeAsText.cpp:
- (WebCore::writeRenderResources):
- 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Add patternContentUnits support, and cleanup SVGPaintServerGradientCg.cpp
- Fixes coords-units-01-b.svg
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- * platform/graphics/svg/SVGPaintServerPattern.cpp:
- (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
- (WebCore::SVGPaintServerPattern::contentBoundingBoxMode):
- (WebCore::SVGPaintServerPattern::setContentBoundingBoxMode):
- * platform/graphics/svg/SVGPaintServerPattern.h:
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::renderPath):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- 2006-12-26 Eric Seidel <eric@webkit.org>
- Reviewed by ggaren
- No test cases changed.
-
- Remove unneeded isPaintingText() and activeClient() from SVGPaintServer system
- * platform/graphics/svg/SVGPaintServer.cpp:
- (WebCore::SVGPaintServer::SVGPaintServer):
- * platform/graphics/svg/SVGPaintServer.h:
- * platform/graphics/svg/SVGPaintServerGradient.h:
- * platform/graphics/svg/SVGPaintServerPattern.h:
- * platform/graphics/svg/SVGPaintServerSolid.h:
- * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
- (WebCore::SVGPaintServer::teardown):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- (WebCore::SVGPaintServerPattern::teardown):
- * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-12-25 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adam Roben.
-
- Fixed <rdar://problem/4778898> REGRESSION: crash in getInstanceForView()
- when quitting from kcbs.com
-
- No testcase because we can't open and close windows in DRT.
-
- The crash was caused by deallocating plug-ins that were later referenced
- in the unload event handler.
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::closeDocument): Call didCloseDocument after closing
- instead of before, so plugins don't get deallocated until the document
- has been destroyed and all event handlers have fired.
-
- * loader/FrameLoaderClient.h: Renamed "willCloseDocument" to "didCloseDocument",
- since we call it after closing now.
- 2006-12-26 Eric Seidel <eric@webkit.org>
- Reviewed by rwlbuis.
- Replace bogus SVGLength::isFraction() method with valueAsPercentage() to fix:
- http://bugs.webkit.org/show_bug.cgi?id=11973
-
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::SVGLength::valueInSpecifiedUnits): remove extra spaces
- (WebCore::SVGLength::valueAsPercentage): new method
- * ksvg2/svg/SVGLength.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient): use valueAsPercentage()
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::drawPatternContentIntoTile): return if malloc fails
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient): use valueAsPercentage()
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::createImageBuffer): return 0 if malloc fails
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::setup): return if malloc fails
- * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
- (WebCore::SVGResourceMasker::applyMask): add comment about possible crash
- 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- In the DOMParser class, we have to create content-type specific
- documents, instead of a pure "Document" object. Real-life SVG
- files us this way to convert strings "<svg><rect x=...></svg>
- to a new Document structure.
- Add new testcase dynamic-svg-document-creation.svg.
- * xml/DOMParser.cpp:
- (WebCore::DOMParser::parseFromString):
- 2006-12-25 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Oliver Hunt.
- Removed WebCoreSettings, cleaned up WebCore::Settings.
- * WebCore.exp: Exported Settings for use by WebKit, removed WebCoreSettings class.
-
- * WebCore.xcodeproj/project.pbxproj: Removed WebCoreSetttings.h/.mm.
- Added Settings.cpp.
- * page/Frame.cpp: Removed cruft that duplicated Settings data. Callers now call
- through to Settings to get Settings data.
- * page/Page.cpp: Added Settings data member, to replace the one that WebView
- used to hold.
- * page/Settings.cpp: Added.
- * page/Settings.h:
- - Renamed all functions to match WebKit API. Renamed all variables to
- match functions. Favorite old name: "isPluginsEnabled."
- - Moved EditableLinkBehavior outside of the class. Having it inside
- just made it harder to type.
- - Merged in old WebCoreSettings functionality, like guarding against re-setting
- to the same value, and making sure to update page layout.
- - Paired setters and getters, putting setters first.
- 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fix some minor style issues.
- * ksvg2/svg/SVGPolygonElement.cpp:
- (WebCore::SVGPolygonElement::toPathData):
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.cpp:
- (WebCore::SVGPolylineElement::toPathData):
- * ksvg2/svg/SVGPolylineElement.h:
- 2006-12-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11963
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11123
- Fix SVGList JS wrappers, which operate on POD types (ie. Point).
- There exists a special JSSVGPODTypeWrapperCreatorForList class now,
- which operators on specialized SVGPODList's. It makes it possible
- to support stuff like "myList.getItem(0).value = 200", for POD lists.
- Adding two new testcases demonstrating the usage of SVG DOM & SVGAnimatedPoints.
- * WebCore.pro:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSSVGPODTypeWrapper.h:
- (WebCore::JSSVGPODTypeWrapperCreatorForList::JSSVGPODTypeWrapperCreatorForList):
- (WebCore::JSSVGPODTypeWrapperCreatorForList::~JSSVGPODTypeWrapperCreatorForList):
- (WebCore::JSSVGPODTypeWrapperCreatorForList::commitChange):
- * bindings/js/JSSVGPathSegListCustom.cpp:
- (WebCore::updatePathSegContextMap):
- (WebCore::removeFromPathSegContextMap):
- (WebCore::JSSVGPathSegList::clear):
- (WebCore::JSSVGPathSegList::initialize):
- * bindings/js/JSSVGPointListCustom.cpp: Added.
- (WebCore::JSSVGPointList::clear):
- (WebCore::JSSVGPointList::initialize):
- (WebCore::JSSVGPointList::getItem):
- (WebCore::JSSVGPointList::insertItemBefore):
- (WebCore::JSSVGPointList::replaceItem):
- (WebCore::JSSVGPointList::removeItem):
- (WebCore::JSSVGPointList::appendItem):
- * bindings/scripts/CodeGeneratorJS.pm:
- * ksvg2/misc/SVGDocumentExtensions.h:
- (WebCore::SVGDocumentExtensions::baseValueMap):
- (WebCore::SVGDocumentExtensions::genericContextMap):
- (WebCore::SVGDocumentExtensions::genericContext):
- (WebCore::SVGDocumentExtensions::setGenericContext):
- (WebCore::SVGDocumentExtensions::removeGenericContext):
- (WebCore::SVGDocumentExtensions::hasGenericContext):
- * ksvg2/svg/SVGAnimatedPathData.cpp:
- * ksvg2/svg/SVGAnimatedPathData.h:
- * ksvg2/svg/SVGAnimatedPoints.cpp:
- * ksvg2/svg/SVGAnimatedPoints.h:
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::SVGLengthList):
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGPODListItem::SVGPODListItem):
- (WebCore::SVGPODListItem::operator Item&):
- (WebCore::SVGPODListItem::operator const Item&):
- (WebCore::SVGPODListItem::value):
- (WebCore::SVGPODListItem::setValue):
- (WebCore::SVGPODList::SVGPODList):
- (WebCore::SVGPODList::initialize):
- (WebCore::SVGPODList::getFirst):
- (WebCore::SVGPODList::getLast):
- (WebCore::SVGPODList::getItem):
- (WebCore::SVGPODList::insertItemBefore):
- (WebCore::SVGPODList::replaceItem):
- (WebCore::SVGPODList::removeItem):
- (WebCore::SVGPODList::appendItem):
- * ksvg2/svg/SVGPathSegList.idl:
- * ksvg2/svg/SVGPointList.cpp:
- (SVGPointList::SVGPointList):
- (SVGPointList::context):
- * ksvg2/svg/SVGPointList.h:
- * ksvg2/svg/SVGPointList.idl:
- * ksvg2/svg/SVGPolyElement.cpp:
- (WebCore::SVGPolyElement::SVGPolyElement):
- (WebCore::SVGPolyElement::points):
- (WebCore::SVGPolyElement::animatedPoints):
- (WebCore::SVGPolyElement::parseMappedAttribute):
- (WebCore::SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGPolyElement.h:
- * rendering/RenderSVGText.cpp:
- 2006-12-25 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10313
- Reproducible crash when doing importStylesheet in javascript with
- xsl files that use xsl:import
- This doesn't fully address the bug, but makes a couple of steps
- in that direction.
- * xml/XSLTProcessor.cpp:
- (WebCore::transformToString): Set m_stylesheet even if it's created implicitly,
- rather than passed from outside. Always reset it in the end (this doesn't affect
- Document::applyXSLTransform(), which was the only user of setXSLStylesheet()).
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::getResponseXML): Set the loaded document's URL.
- 2006-12-24 Mitz Pettel <mitz@webkit.org>
- Reviewed by Maciej and Geoff.
- - remove unused member variable m_styleSelectorDirty
- No test possible (no functionality change)
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::recalcStyleSelector):
- * dom/Document.h:
- 2006-12-24 Sam Weinig <sam@webkit.org>
- Reviewed by Geoff.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11952
- style changes made through CSSMediaRule functions insertRule()
- and deleteRule do not show up on the screen
- Tests added:
- * fast/dom/css-mediarule-deleteRule-update.html
- * fast/dom/css-mediarule-insertRule-update.html
- * css/CSSMediaRule.cpp:
- (WebCore::CSSMediaRule::insertRule):
- (WebCore::CSSMediaRule::deleteRule):
- 2006-12-24 Rob Buis <buis@kde.org>
- Reviewed by Alexey.
- Get rid of unused variable.
- * ksvg2/svg/SVGURIReference.cpp:
- (WebCore::SVGURIReference::getTarget):
- 2006-12-23 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=11933
- REGRESSION: trying to change a property in a computed style declaration results in a crash
- Test: fast/dom/computed-style-set-property.html
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleDeclaration::put): Added a check for null m_impl->stylesheet(). Also, fixed
- incorrect logic in Dashboard branch - it didn't return in time if removeProperty() raised
- an exception (credit for noticing this bug goes to Geoff).
- 2006-12-23 Lars Naesbye Christensen <lars@naesbye.dk>
- Reviewed by Geoff.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11940
- Bad transparency in some cursor pointer images
- * Resources/northEastResizeCursor.png:
- * Resources/northEastSouthWestResizeCursor.png:
- * Resources/northWestResizeCursor.png:
- * Resources/northWestSouthEastResizeCursor.png:
- * Resources/southEastResizeCursor.png:
- * Resources/southWestResizeCursor.png:
- 2006-12-23 Sam Weinig <sam@webkit.org>
- Reviewed by Geoff.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11876
- CSSMediaRule functions insertRule and deleteRule don't raise exceptions
- Test added:
- * fast/dom/css-mediarule-functions.html
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSRuleFunc::callAsFunction):
- * css/CSSMediaRule.cpp: add exception handling
- (WebCore::CSSMediaRule::insertRule):
- (WebCore::CSSMediaRule::deleteRule):
- * css/CSSMediaRule.h: add ExceptionCode arguments
- * css/CSSMediaRule.idl: un-comment exceptions
- 2006-12-23 David Hyatt <hyatt@apple.com>
- Fix 11942. The inheritable properties array is duplicated (lame). Make
- sure to keep both in sync.
- Reviewed by mitz
- * css/CSSComputedStyleDeclaration.cpp:
- * css/CSSMutableStyleDeclaration.cpp:
- (WebCore::):
- 2006-12-22 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brady Eidson.
-
- Fixed <rdar://problem/4871518> Leopard9A321: Crash visiting www.audible.com
- (WebCore::FrameLoader::loadSubframe)
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::createFrame): Updated to reflect the fact that
- createChildFrameNamed: now returns a WebCore::Frame* instead of a
- WebCoreFrameBridge *.
- * page/mac/WebCoreFrameBridge.h:
- 2006-12-22 David Hyatt <hyatt@apple.com>
- Make sure to actually set the stroke thickness for text decorations.
- Covered by bugzilla bug 11921.
- Reviewed by mitz
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paintDecorations):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintDecoration):
- 2006-12-22 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11934
- Adding/removing SVGPathSeg* items to a SVGPathElement (through SVGPathSegList
- interface) has live update problems, as the notifyAttributeChange() function
- isn't called anywhere. The context param is currently stored per SVGPathSeg,
- which is not needed - as it can be done using SVGPathSegList completely. It
- wastes memory, that is fixed. In order to get rid of the context param in
- SVGPathSeg, we need a way to map SVGPathSeg* objects to SVGStyledElement*
- objects ("context element"). That is done using a new HashMap in the
- SVGDocumentExtensions class.
- * WebCore.pro:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSSVGPathSegListCustom.cpp: Added.
- (WebCore::updatePathSegContextMap):
- (WebCore::removeFromPathSegContextMap):
- (WebCore::JSSVGPathSegList::getItem):
- (WebCore::JSSVGPathSegList::insertItemBefore):
- (WebCore::JSSVGPathSegList::replaceItem):
- (WebCore::JSSVGPathSegList::removeItem):
- (WebCore::JSSVGPathSegList::appendItem):
- * bindings/scripts/CodeGeneratorJS.pm:
- * ksvg2/misc/SVGDocumentExtensions.h:
- (WebCore::SVGDocumentExtensions::pathSegContextMap):
- (WebCore::SVGDocumentExtensions::pathSegContext):
- (WebCore::SVGDocumentExtensions::setPathSegContext):
- (WebCore::SVGDocumentExtensions::removePathSegContext):
- (WebCore::SVGDocumentExtensions::hasPathSegContext):
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGList::getFirst):
- (WebCore::SVGList::getLast):
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
- (WebCore::SVGPathElement::createSVGPathSegArcAbs):
- (WebCore::SVGPathElement::createSVGPathSegArcRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
- (WebCore::SVGPathElement::svgMoveTo):
- (WebCore::SVGPathElement::svgLineTo):
- (WebCore::SVGPathElement::svgLineToHorizontal):
- (WebCore::SVGPathElement::svgLineToVertical):
- (WebCore::SVGPathElement::svgCurveToCubic):
- (WebCore::SVGPathElement::svgCurveToCubicSmooth):
- (WebCore::SVGPathElement::svgCurveToQuadratic):
- (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
- (WebCore::SVGPathElement::svgArcTo):
- (WebCore::SVGPathElement::pathSegList):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPathSeg.cpp: Removed.
- * ksvg2/svg/SVGPathSeg.h:
- (WebCore::SVGPathSeg::SVGPathSeg):
- (WebCore::SVGPathSeg::~SVGPathSeg):
- (WebCore::SVGPathSeg::toString):
- * ksvg2/svg/SVGPathSegArc.cpp:
- (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
- (WebCore::SVGPathSegArcAbs::setX):
- (WebCore::SVGPathSegArcAbs::setY):
- (WebCore::SVGPathSegArcAbs::setR1):
- (WebCore::SVGPathSegArcAbs::setR2):
- (WebCore::SVGPathSegArcAbs::setAngle):
- (WebCore::SVGPathSegArcAbs::setLargeArcFlag):
- (WebCore::SVGPathSegArcAbs::setSweepFlag):
- (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
- (WebCore::SVGPathSegArcRel::setX):
- (WebCore::SVGPathSegArcRel::setY):
- (WebCore::SVGPathSegArcRel::setR1):
- (WebCore::SVGPathSegArcRel::setR2):
- (WebCore::SVGPathSegArcRel::setAngle):
- (WebCore::SVGPathSegArcRel::setLargeArcFlag):
- (WebCore::SVGPathSegArcRel::setSweepFlag):
- * ksvg2/svg/SVGPathSegArc.h:
- * ksvg2/svg/SVGPathSegClosePath.cpp:
- * ksvg2/svg/SVGPathSegClosePath.h:
- * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
- (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
- (WebCore::SVGPathSegCurvetoCubicAbs::setX):
- (WebCore::SVGPathSegCurvetoCubicAbs::setY):
- (WebCore::SVGPathSegCurvetoCubicAbs::setX1):
- (WebCore::SVGPathSegCurvetoCubicAbs::setY1):
- (WebCore::SVGPathSegCurvetoCubicAbs::setX2):
- (WebCore::SVGPathSegCurvetoCubicAbs::setY2):
- (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
- (WebCore::SVGPathSegCurvetoCubicRel::setX):
- (WebCore::SVGPathSegCurvetoCubicRel::setY):
- (WebCore::SVGPathSegCurvetoCubicRel::setX1):
- (WebCore::SVGPathSegCurvetoCubicRel::setY1):
- (WebCore::SVGPathSegCurvetoCubicRel::setX2):
- (WebCore::SVGPathSegCurvetoCubicRel::setY2):
- * ksvg2/svg/SVGPathSegCurvetoCubic.h:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX):
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY):
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX2):
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY2):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX2):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY2):
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
- (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
- (WebCore::SVGPathSegCurvetoQuadraticAbs::setX):
- (WebCore::SVGPathSegCurvetoQuadraticAbs::setY):
- (WebCore::SVGPathSegCurvetoQuadraticAbs::setX1):
- (WebCore::SVGPathSegCurvetoQuadraticAbs::setY1):
- (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
- (WebCore::SVGPathSegCurvetoQuadraticRel::setX):
- (WebCore::SVGPathSegCurvetoQuadraticRel::setY):
- (WebCore::SVGPathSegCurvetoQuadraticRel::setX1):
- (WebCore::SVGPathSegCurvetoQuadraticRel::setY1):
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
- (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setX):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setY):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setX):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setY):
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
- * ksvg2/svg/SVGPathSegLineto.cpp:
- (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
- (WebCore::SVGPathSegLinetoAbs::setX):
- (WebCore::SVGPathSegLinetoAbs::setY):
- (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
- (WebCore::SVGPathSegLinetoRel::setX):
- (WebCore::SVGPathSegLinetoRel::setY):
- * ksvg2/svg/SVGPathSegLineto.h:
- * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
- (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
- (WebCore::SVGPathSegLinetoHorizontalAbs::setX):
- (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
- (WebCore::SVGPathSegLinetoHorizontalRel::setX):
- * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
- * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
- (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
- (WebCore::SVGPathSegLinetoVerticalAbs::setY):
- (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
- (WebCore::SVGPathSegLinetoVerticalRel::setY):
- * ksvg2/svg/SVGPathSegLinetoVertical.h:
- * ksvg2/svg/SVGPathSegList.cpp:
- (WebCore::SVGPathSegList::SVGPathSegList):
- (WebCore::SVGPathSegList::context):
- * ksvg2/svg/SVGPathSegList.h:
- * ksvg2/svg/SVGPathSegList.idl:
- * ksvg2/svg/SVGPathSegMoveto.cpp:
- (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
- (WebCore::SVGPathSegMovetoAbs::setX):
- (WebCore::SVGPathSegMovetoAbs::setY):
- (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
- (WebCore::SVGPathSegMovetoRel::setX):
- (WebCore::SVGPathSegMovetoRel::setY):
- * ksvg2/svg/SVGPathSegMoveto.h:
- 2006-12-22 Mitz Pettel <mitz@webkit.org>
- Reviewed by Beth.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11903
- REGRESSION: outline not drawn if line style is dashed.
- This fixes a bunch of existing pixel tests.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorder):
- 2006-12-22 John Sullivan <sullivan@apple.com>
- Reviewed by Kevin Decker
- - renamed markMisspellingsInAdjacentWords to markMisspellingsAfterTypingToPosition
- in anticipation of fixing it to work more correctly with grammar checking, where
- only checking adjacent words isn't good enough.
- * editing/Editor.h:
- renamed markMisspellingsInAdjacentWords to markMisspellingsAfterTypingToPosition
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::markMisspellingsAfterTyping):
- updated for name change
- * editing/mac/EditorMac.mm:
- (WebCore::Editor::markMisspellingsAfterTypingToPosition):
- renamed from markMisspellingsInAdjacentWords and added FIXME comment
- 2006-12-22 Eric Seidel <eric@webkit.org>
- Reviewed by aroben.
- http://bugs.webkit.org/show_bug.cgi?id=11912
- Overriding visibility does not behave as expected.
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint): allow children to draw when container is visibility='hidden'
- 2006-12-22 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Fix SVGPathSeg JS object creation. SVGPathSegList has to return
- the actual SVGPathSegLineToAbs/MoveToRel... object instead of a pure
- SVGPathSeg JS object.
- * WebCore.xcodeproj/project.pbxproj:
- * WebCore/bindings/js/JSSVGPathSegCustom.cpp: Added.
- * bindings/scripts/CodeGeneratorJS.pm:
- 2006-12-21 Beth Dakin <bdakin@apple.com>
- Reviewed by Geoff.
- Fix for <rdar://problem/4897162> REGRESSION: Attempting to create a
- new message in .Mac web mail causes Safari to crash
- ( KJS::DOMCSSStyleDeclaration::put() + 368 )
- This was a regression from my clone-node change. This fix is very
- simple.
- * dom/StyledElement.cpp:
- (WebCore::StyledElement::copyNonAttributeProperties): Must set the
- data that getInlineStyleDecl() points to instead of setting
- m_inlineStyleDecl directly. I also changed some variable names.
- * dom/StyledElement.h: Don't need parameter name here.
- 2006-12-21 Adele Peterson <adele@apple.com>
- Reviewed by Geoff.
- - Fix for <rdar://problem/4895716> REGRESSION: Pressing return key in search field doesn't begin search
- Test: fast/events/onsearch-enter.html
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler): Calls onSearch when handling "Enter". Also removed
- special case for AppKit search fields, so now the enter event is considered handled here.
- (WebCore::HTMLInputElement::onSearch): Added. Dispatches search event.
- * html/HTMLInputElement.h: Added onSearch.
- * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::onSearch): Calls onSearch on the node.
- 2006-12-21 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brady Eidson.
-
- Fixed <rdar://problem/4897205> ASSERTION FAILURE in ContainerNode::queuePostAttachCallback
- when creating an iframe from an iframe onload handler
- I added that assertion to try to "keep things simple," but I've found a
- testcase that demonstrates why things need to be complicated.
- * dom/ContainerNode.cpp:
- (WebCore::ContainerNode::queuePostAttachCallback):
- 2006-12-21 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11919
- Allow setting CSS values to null.
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleDeclaration::put):
- (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction):
- Convert null values to null strings.
- 2006-12-21 Rob Buis <buis@kde.org>
- Reviewed by Anders.
- http://bugs.webkit.org/show_bug.cgi?id=11898
- CSSMediaRule functions insertRule and deleteRule assert when called from js in debug builds
- Test explicitly for the two media rule functions so it ends up calling callAsFunction.
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSRule::getOwnPropertySlot):
- 2006-12-21 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- * loader/FrameLoaderClient.h:
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::partClearedInBegin):
- (WebCore::FrameLoader::restoreDocumentState):
- comment out a few notImplemented() warnings
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::bindingRootObject):
- (WebCore::FrameQt::addPluginRootObject):
- * platform/qt/FrameQt.h:
- implement these
- 2006-12-20 David Hyatt <hyatt@apple.com>
- Make sure the execrable match-nearest-mail-blockquote-color CSS property is actually initialized (amazingly
- it started off with the value "match", since it wasn't even initialized). Now that it is actually being
- initialized and properly copied and assigned to, tests have failed. It seems that we were getting the
- behavior of "match" by default, when the initial value was supposed to be "normal."
- Because this property really should not exist at all, it's unclear to me what the right solution is here.
-
- * rendering/RenderStyle.cpp:
- (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
- (WebCore::StyleCSS3NonInheritedData::operator==):
- * rendering/RenderStyle.h:
- 2006-12-20 Brady Eidson <beidson@apple.com>
- Reviewed by Adam's rubberstamp
- Accidentally left a logging channel on in my checkin
- * platform/Logging.cpp:
- (WebCore::):
- 2006-12-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fix removeItem recursively calling itself (!). It was meant to call m_vector.remove(index)
- not removeItem(index, ec). This bug is in SVN for quite some time now :-)
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGList::removeItem):
- 2006-12-20 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4893376> REGRESSION: Crash occurs at WebCoreFrameBridge fontForSelection: when drag selecting from a line break
-
- No layout test added because crash only happens in path where editing window is key,
- which is never the case for the automated tests.
- * page/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge fontForSelection:]):
- Add nil check of fontForSelection() result.
- 2006-12-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Fix dynamic gradient changes, via JS. It actually worked before, but it
- wasn't repainted. Behave just like the pattern notifyAttributeChange() code now.
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::notifyAttributeChange):
- 2006-12-20 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin Adler.
- Fixed <rdar://problem/4809825>. We need to check isSafeScript when converting
- a Location to string.
-
- It's really a bug, and poor design, for objects to override toString.
- Subclasses that want custom toString implementations should add a toString
- function to their prototypes instead of overriding the JavaScript ToString
- operation. Following this design pattern would have avoided this bug in the
- first place.
-
- * bindings/js/kjs_window.cpp:
- (KJS::Location::toString):
- 2006-12-20 David Hyatt <hyatt@apple.com>
- Fix SVG stroking. Make strokeThickness() get pushed into CG immediately
- when set in the GraphicsContext. Remove setLineWidth since it is
- redundant with setStrokeThickness now.
- Reviewed by mitz
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::setLineWidth):
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- (WebCore::GraphicsContext::setPlatformStrokeStyle):
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::drawLine):
- (WebCore::GraphicsContext::drawEllipse):
- (WebCore::GraphicsContext::strokeArc):
- (WebCore::GraphicsContext::drawConvexPolygon):
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- * platform/graphics/qt/GraphicsContextQt.cpp:
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- 2006-12-20 David Hyatt <hyatt@apple.com>
- Fix for bug 11893, white text on form controls. Just make sure that
- all form control drawing in RenderTheme is bracketed by save/restore
- calls.
- Reviewed by adele
- * platform/mac/LocalCurrentGraphicsContext.h:
- * platform/mac/LocalCurrentGraphicsContext.mm:
- (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
- (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintTextField):
- (WebCore::RenderThemeMac::paintTextArea):
- 2006-12-20 Mark Rowe <bdash@webkit.org>
- Reviewed by Anders.
- Fix leak of CGContextRef from GraphicsContext::createImageBuffer.
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::createImageBuffer): Release newly-created CGContextRef after passing it to GraphicsContext.
- 2006-12-20 Timothy Hatcher <timothy@apple.com>
- Reviewed by Mark Rowe.
- <rdar://problem/4871993> WebCore-421.31 build fails with "Public API change" error when gcc 3.3 is the default compiler
- * bindings/scripts/CodeGeneratorObjC.pm: ignore blank lines in the public API check
- 2006-12-20 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4570218> REGRESSION (?-10.4.7): cntl-K only works the first time
- Test:
- * editing/deleting/delete-to-end-of-paragraph.html
-
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::forwardDeleteKeyPressed):
- 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),
- 2006-12-20 Nikolas Zimmermann <zimmermann@kde.org>
- Build fix, reviewed by Mitz.
- Fix mac build, by using proper float -> int conversion.
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::placeBoxesHorizontally):
- 2006-12-20 David Hyatt <hyatt@apple.com>
- Make sure text decoration colors prefer stroke over fill (and honor both of the new CSS properties added
- for these values over color).
- Reviewed by mitz
- Added fast/text/stroking-decorations.html
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paintDecorations):
- * rendering/RenderObject.cpp:
- (WebCore::decorationColor):
- (WebCore::RenderObject::getTextDecorationColors):
- 2006-12-20 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11746
- REGRESSION(r14931): Outlook Web Access incorrectly positions the insertion point when replying to e-mail
- Set caret at beginning of text on initial focus.
- Test: fast/forms/textarea-initial-caret-position.html
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::updateFocusAppearance):
- 2006-12-20 David Hyatt <hyatt@apple.com>
- Fix for bug 11889, support stroking and filling of HTML text from CSS. This patch adds four new CSS properties:
- text-fill-color, text-stroke-color, text-stroke-width and text-stroke (a shorthand for the other two). Text
- is filled and not stroked by default and does so using the text-fill-color. If this property is not set, then
- color is used.
- Stroking is accomplished by setting a stroke width. Stroke color, if omitted, will be picked up from the color
- property. You can set either color to be transparent or partially transparent. A fully transparent fill color is
- the way to achieve an "outline" effect where only stroking happens.
- Stroking and filling are both customizable inside the ::selection pseudo-element, and so when selecting you can
- vary colors and widths.
- text-shadow applies to both the stroke and the fill.
- text-decorations do not yet respect the stroke/fill colors. This will follow in a later patch.
- Reviewed by mitz
- Added fast/text/stroking.html as a layout test. Enhanced RenderTreeAsText.cpp to dump fill and stroke information.
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSPropertyNames.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::placeBoxesHorizontally):
- * rendering/InlineFlowBox.h:
- (WebCore::InlineFlowBox::InlineFlowBox):
- (WebCore::InlineFlowBox::maxHorizontalVisualOverflow):
- * rendering/InlineTextBox.cpp:
- (WebCore::updateGraphicsContext):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintMarkedTextBackground):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::selectionForegroundColor):
- * rendering/RenderStyle.cpp:
- (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
- (WebCore::StyleCSS3InheritedData::operator==):
- (WebCore::RenderStyle::diff):
- * rendering/RenderStyle.h:
- (WebCore::RenderStyle::textStrokeColor):
- (WebCore::RenderStyle::textStrokeWidth):
- (WebCore::RenderStyle::textFillColor):
- (WebCore::RenderStyle::setTextStrokeColor):
- (WebCore::RenderStyle::setTextStrokeWidth):
- (WebCore::RenderStyle::setTextFillColor):
- (WebCore::RenderStyle::initialTextStrokeWidth):
- * rendering/RenderTreeAsText.cpp:
- (WebCore::operator<<):
- 2006-12-19 Adele Peterson <adele@apple.com>
- Reviewed by Anders.
- - Fix for <rdar://problem/3824247> Select All works even if -khtml-user-select:none; style is set
- Also made user-select:none work on new list boxes, and cleaned up the list box defaultEventHandler.
- Test: editing/selection/select-all-user-select-none.html
- * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Make sure canSelect is true on the root renderer.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::canSelectAll): Check canSelect here.
- (WebCore::HTMLSelectElement::selectAll): Added nil check for renderer.
- (WebCore::HTMLSelectElement::defaultEventHandler): Return early if the event has been handled.
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Check canSelect here.
- * html/HTMLSelectElement.h:
- 2006-12-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- <rdar://problem/4701860>
- http://bugs.webkit.org/show_bug.cgi?id=11010
- [9A255] Crash in WebCore::EventTargetNode::dispatchEvent
-
- * html/HTMLScriptElement.cpp:
- (WebCore::HTMLScriptElement::notifyFinished):
- Ref the script element while running the script since it can be freed
- when executing the script.
- 2006-12-19 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - <rdar://problem/4885227>
- frame resizing is now live and no longer does direct drawing
- * html/HTMLFrameSetElement.h: Made frameBorder() and noResize() const.
- Added rowLengths() and colLengths() getters so that we don't have to
- have RenderFrameSet as a friend. Stopped using bit fields.
- * html/HTMLFrameSetElement.cpp:
- (WebCore::HTMLFrameSetElement::defaultEventHandler): Removed now-uneeded
- check for contextmenu events. Look at return value from userResize to
- decide whether to mark the event as "default handled". In the case where
- the event is handled, don't call through to the base class.
- * rendering/RenderFrameSet.h: No longer mark HTMLFrameSetElement as a
- friend. Made positionFrames and canResize private, and changed canResize
- to take an IntPoint. Added isResizingRow, isResizingColumn, canResizeRow,
- and canResizeColumn functions to be used soon for cursor feedback.
- Removed override of non-virtual element() function and replaced it with
- a private frameSet() inline function. Grouped all the data members for
- each axis into a GridAxis class, and made one called m_cols and one called
- m_rows. Used vectors for the resizable bits of this instead of new/delete
- arrays. Added a constant named "noSplit" so we don't have to use -1
- everywhere explicitly for this purpose. Renamed setResizing to
- setIsResizing and made it private. Eliminated resizing() function.
- Added new private helper functions, layOutAxis, findNonResizableSplits,
- splitPosition, hitTestSplit, startResizing, and continueResizing.
- Renamed m_resizing to m_isResizing, and m_clientResizing to
- m_isChildResizing.
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::RenderFrameSet): Removed now-unneeded initialization
- that is handled by the GridAxis and Vector constructors.
- (WebCore::RenderFrameSet::~RenderFrameSet): Ditto (for destructors).
- (WebCore::RenderFrameSet::GridAxis::GridAxis): Added.
- (WebCore::RenderFrameSet::frameSet): Added. Inline function so we don't have
- to cast the result of node() or element() everywhere.
- (WebCore::RenderFrameSet::nodeAtPoint): Updated for name changes.
- (WebCore::RenderFrameSet::GridAxis::resize): Added. Helper function to be used
- in the layout function.
- (WebCore::RenderFrameSet::layOutAxis): Added. Factored out the part of the
- layout function that used to be inside a for loop for the two axes.
- The algorithm is otherwise unchanged.
- (WebCore::RenderFrameSet::findNonResizableSplits): Added. Factored out the
- code that set up the "split variable" arrays from the layout function.
- (WebCore::RenderFrameSet::layout): Moved the bulk of this function into the
- new helpers. This allowed me to remove the use of goto.
- (WebCore::RenderFrameSet::positionFrames): Updated for change to data structures.
- Also added some more local variables for clarity.
- (WebCore::RenderFrameSet::startResizing): Added. Code factored out of the
- userResize function that handles mousedown events that might begin a resize.
- (WebCore::RenderFrameSet::continueResizing): Added. Code factored out of the
- userResize function that handles mouse events that continue a resize already
- in progress, including mouseup events that end the resizing. Uses the new
- splitPosition function so it can be used over and over again while resizing.
- (WebCore::RenderFrameSet::userResize): Restructured to use the new helper
- functions. Removed the direct drawing of a gray bar during mouse movement;
- instead we do the resizing live.
- (WebCore::RenderFrameSet::setIsResizing): Updated for name changes.
- (WebCore::RenderFrameSet::isResizingRow): Added.
- (WebCore::RenderFrameSet::isResizingColumn): Added.
- (WebCore::RenderFrameSet::canResize): Changed to use hitTestSplit for clarity.
- (WebCore::RenderFrameSet::canResizeRow): Added.
- (WebCore::RenderFrameSet::canResizeColumn): Added.
- (WebCore::RenderFrameSet::splitPosition): Added.
- (WebCore::RenderFrameSet::hitTestSplit): Added. Contains the guts of the code
- that was used both in canResize and userResize before -- now it's shared.
- (WebCore::RenderFrameSet::dump): Updated for name changes.
- 2006-12-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- Added Selection::removeAllRanges() and ::addRange()
- * bindings/js/kjs_window.cpp:
- (KJS::SelectionFunc::callAsFunction): Added the bindings for
- the two new functions.
- * bindings/js/kjs_window.h:
- (KJS::Selection::):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::removeAllRanges): Equivalent
- to clear().
- (WebCore::SelectionController::addRange): Until we support
- discontiguous selections, the new selected range is the
- union of the old selected range and the passed range if
- the two intersect, and the old range if they don't.
- * editing/SelectionController.h:
- 2006-12-19 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4860924> outerHTML gives an out-of-date
- result when applied to a clone
- We were only copying the m_inlineStyleDecl over to clones, but we
- need to copy m_isStyleAttributeValid and
- m_synchronizingStyleAttribute as well to know when we have to
- update style, etc.
- * dom/StyledElement.cpp:
- (WebCore::StyledElement::copyNonAttributeProperties): Copy over all
- three member variables.
- * dom/StyledElement.h:
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::cloneNode): No longer need to copy the
- inline style decl explicitly because copyNonAttributeProperties()
- will take care of it.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::copyNonAttributeProperties): Call into
- parent class implementation. This is important now that there is
- more than one implementation of this function.
- 2006-12-19 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin Adler.
- Fixed http://bugs.webkit.org/show_bug.cgi?id=11880
- REGRESSION (r18304): Assertion failure in -[WebHTMLView _canProcessDragWithDraggingInfo:]
- when dragging over the window's a scroll bar (innerFrame)
-
- RenderLayer needs to check 'active,' when deciding what to do if hit testing
- hasn't hit anything, because we want the default hit testing mechanism to return the
- document when we hit a scrollbar.
-
- This problem shows that the idea of 'capturing' was a little too ambitious
- in hit testing, at least given the current state of things. So, I've replaced
- 'capturing' with 'mouseUp,' the condition that provided the immediate need
- for the capturing flag in the first place.
- * page/EventHandler.cpp:
- (WebCore::EventHandler::handleMouseMoveEvent):
- * rendering/HitTestRequest.h: Removed 'capturing'
- (WebCore::HitTestRequest::HitTestRequest):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::hitTestLayer):
- 2006-12-19 Brady Eidson <beidson@apple.com>
- Reviewed by Ada
- Added a logging channel for network activity for loader work
- * platform/Logging.cpp:
- (WebCore::):
- * platform/Logging.h:
- * platform/mac/LoggingMac.mm:
- (WebCore::InitializeLoggingChannelsIfNecessary):
- 2006-12-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by hyatt
-
- <rdar://problem/4888891>
- Docs & Spreadsheets: Comment fails to insert if text is selected in the document
-
- * dom/Range.cpp:
- (WebCore::Range::surroundContents): If startContainer is a text node,
- it will be split when the range is extracted, and it will be its parent
- that will have to accept newParent. Also cleaned up some code with
- isDescendantOf.
- 2006-12-19 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4891774> Local WebCore/WebBrowser builds fail in 9A328 due to warning about ObjC-2.0 language features
- * WebCore.xcodeproj/project.pbxproj:
- 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fix SVGList index validation (off-by-one error).
- Adding new testcase js-font-test.svg, which uses SVGLengthList interface.
- (This is a very old ksvg1 testcase, adopted for SVG1.1)
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGList::getItem):
- (WebCore::SVGList::replaceItem):
- (WebCore::SVGList::removeItem):
- 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11879
- Fix pattern on stroke/fill of text.
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::notifyAttributeChange):
- * platform/graphics/svg/SVGPaintServerGradient.cpp:
- (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- 2006-12-19 Alice Liu <alice.liu@apple.com>
- Build fix
- * platform/graphics/ImageBuffer.cpp:
- 2006-12-19 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=7296
- JavaScript error not thrown when trying to set a CSS property to an invalid value
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleDeclaration::put): When not in Dashboard compatibility mode,
- raise exception for invalid values. Also removed an unnecessary call to
- removeProperty(), which prevented the property value from being preserved in
- error case.
- * css/CSSMutableStyleDeclaration.cpp:
- (WebCore::CSSMutableStyleDeclaration::setProperty): Moved the handling of
- empty property values here. Also removed an unnecessary call to removeProperty().
- 2006-12-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- * dom/Document.h:
- * page/EventHandler.h:
- Use correct forward declarations for HitTestRequest.
-
- 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
- Build fix, not reviewed.
- Fix Qt/Linux build. Missing GraphicsContext.h include.
- Fix Mac build, by adding lroundf() (I swear this compiled w/o that, locally :-)
- * platform/graphics/qt/ImageBufferQt.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- 2006-12-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Sam. Previous attempts reviewed by Oliver & Eric.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11867
- Bring back masking, by adding off-screen rendering functionality in GraphicsContext.
- Add new "static GraphicsContext* createImageContext(const IntSize& size, bool grayScale)"
- function, and implement it with CGBitmapContext in the GraphicsContextCG (stubs for Qt.)
- Mask image sizes are dynamically calculated using the passed bounding box in applyMask,
- as it was orignally planned. Gradient stroke mask image sizes aren't hardcoded to 2048x2048
- anymore, but are as well dynamically calculated using getAbsoluteRepaintRect().
- Add new ImageBuffer class encapsulating the size of the image, a platform-specific
- handle (ie. CGImageRef for CG platform) plus the GraphicsContext pointer, obtained
- via GraphicsContext::createImageBuffer. Offer a generic logic for rendering subtrees
- of the rendering tree into a ImageBuffer (see renderSubtreeToImage function)
- ImageBufferCG is completly implemented, ImageBufferQt is stubbed.
- Also add correct default values for x/y/width/height of <mask>.
- Fixes masking related LayoutTests, and speeds up gradient-on-stroke a lot.
- * CMakeLists.txt:
- * WebCore.pro:
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::attributeChanged):
- (WebCore::SVGMaskElement::parseMappedAttribute):
- (WebCore::SVGMaskElement::drawMaskerContent):
- (WebCore::SVGMaskElement::canvasResource):
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- * ksvg2/svg/SVGPatternElement.h:
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/ImageBuffer.cpp: Added.
- (WebCore::ImageBuffer::renderSubtreeToImage):
- * platform/graphics/ImageBuffer.h: Added.
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::createImageBuffer):
- * platform/graphics/cg/ImageBufferCG.cpp: Added.
- (WebCore::ImageBuffer::ImageBuffer):
- (WebCore::ImageBuffer::~ImageBuffer):
- (WebCore::ImageBuffer::size):
- (WebCore::ImageBuffer::context):
- (WebCore::ImageBuffer::cgImage):
- * platform/graphics/mac/GraphicsContextMac.mm:
- * platform/graphics/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::createImageBuffer):
- * platform/graphics/qt/ImageBufferQt.cpp: Added.
- (WebCore::ImageBuffer::ImageBuffer):
- (WebCore::ImageBuffer::~ImageBuffer):
- (WebCore::ImageBuffer::size):
- (WebCore::ImageBuffer::context):
- * platform/graphics/svg/SVGPaintServerGradient.h:
- * platform/graphics/svg/SVGPaintServerPattern.cpp:
- (WebCore::SVGPaintServerPattern::tile):
- (WebCore::SVGPaintServerPattern::setTile):
- * platform/graphics/svg/SVGPaintServerPattern.h:
- * platform/graphics/svg/SVGResourceImage.h: Removed.
- * platform/graphics/svg/SVGResourceMasker.cpp:
- (WebCore::SVGResourceMasker::setMask):
- (WebCore::SVGResourceMasker::mask):
- * platform/graphics/svg/SVGResourceMasker.h:
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::renderPath):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::patternCallback):
- (WebCore::SVGPaintServerPattern::setup):
- * platform/graphics/svg/cg/SVGResourceImageCg.cpp: Removed.
- * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
- (WebCore::SVGResourceMasker::applyMask):
- * platform/graphics/svg/qt/SVGResourceImageQt.cpp: Removed.
- 2006-12-19 David Hyatt <hyatt@apple.com>
- Make sure to initialize the CG fill and stroke colors to our initial fill/stroke colors when first
- constructing a GraphicsContextCG. Because Safari actually draws text in the bookmarks bar using GraphicsContext
- and sets a fill color, this could only really be seen in another WebKit app.
- Patched GraphicsContextQt as well, since it has the same pattern.
- Reviewed by bdash
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::setCGFillColor):
- (WebCore::setCGStrokeColor):
- (WebCore::GraphicsContext::GraphicsContext):
- 2006-12-19 Lars Knoll <lars@trolltech.com>
- Reviewed by Rob.
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::URL):\
- Fix a crash, because of the incompletely ported loader
- * platform/qt/FontQt.cpp:
- (WebCore::Font::drawGlyphs):
- Adapt to the changes in GraphicsContext
- 2006-12-19 David Hyatt <hyatt@apple.com>
- Convert stroke thickness to a float. This allows the thickness argument to strokeArc to be eliminated.
-
- Reviewed by olliej
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContext::setStrokeThickness):
- (WebCore::GraphicsContext::strokeThickness):
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::drawEllipse):
- (WebCore::GraphicsContext::strokeArc):
- * platform/graphics/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::strokeArc):
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorderArc):
- 2006-12-19 David Hyatt <hyatt@apple.com>
- Rename drawArc to strokeArc and remove its strange behavior of trying to "fill" by stroking using the passed in
- thickness. Now the method is purely about stroking an arc and always uses the passed in thickness. Fix the
- border-radius code that calls the method so that it makes more sense now. If stroke thickness is converted
- to a float, then even the extra argument can go away, and this method can be a clean stroke of an arc.
- Make sure to get square list markers right by setting both stroke and fill color properly.
- Reviewed by mitz, olliej
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::strokeArc):
- * platform/graphics/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::strokeArc):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorderArc):
- 2006-12-18 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth Dakin.
- Fixed <rdar://problem/4549745> REGRESSION: scrolling on Google maps
- continues after the mouse is released outside the window (8137)
-
- The RenderLayer hit testing code assumed that, when the mouse was outside
- the WebView, we only needed to capture mouse events while the mouse was
- down (in other words, mouse move events). We actually need to capture mouse
- up events, as well.
- * dom/Document.cpp:
- (WebCore::Document::prepareMouseEvent): To match EventHandler::prepareMouseEvent,
- I changed this function to take a HitTestRequest instead of the broken-out values of one.
- For clarity, I moved an assert to top of function.
- (WebCore::Document::addMarker): Removed stray character.
- * dom/Document.h:
- * page/EventHandler.cpp: Changed prepareMouseEvent to take a HitTestRequest,
- instead of the broken-out values of one. This simplified the code, and made
- the task of adding an extra, optional parameter to hit testing much easier.
- (WebCore::EventHandler::handleMousePressEvent):
- (WebCore::EventHandler::handleMouseDoubleClickEvent):
- (WebCore::EventHandler::handleMouseMoveEvent): Set the 'capturing' flag
- if the move occurs while the mouse is down. This replaces RenderLayer's
- heavy-handed assumption that we should always capture if the mouse is down.
- (WebCore::EventHandler::handleMouseReleaseEvent): Set the 'capturing'
- flag, since we assume every mouse up follows a mouse down inside the WebView.
- (We'd like to ASSERT as much, but DRT's event sending mechanism is crazy, and
- violates this axiom.)
- (WebCore::EventHandler::updateDragAndDrop):
- (WebCore::EventHandler::prepareMouseEvent):
- (WebCore::EventHandler::handleWheelEvent):
- (WebCore::EventHandler::sendContextMenuEvent):
- (WebCore::EventHandler::hoverTimerFired):
- * page/EventHandler.h:
- * rendering/HitTestRequest.h:
- (WebCore::HitTestRequest::HitTestRequest): Added 'capturing' data member,
- which specifies whether the hit test should capture mouse events that occur
- outside the WebView.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::hitTestLayer): Moved misleading comment to where
- it actually applies. Changed 'active' test to new 'capturing' test, so
- the hit test requester can decide whether we need to capture mouse events
- that don't intersect any layer.
- 2006-12-18 David Hyatt <hyatt@apple.com>
- Make sure a stroke style is set for list bullets.
- Reviewed by mitz
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- 2006-12-18 Ada Chan <adachan@apple.com>
- Reviewed by Adam.
- Moved implementation of Frame::scheduleClose to Frame.cpp.
- Added canRunBeforeUnloadConfirmPanel, runBeforeUnloadConfirmPanel, and closeWindowSoon
- in Chrome and ChromeClient.
- * WebCore.exp:
- * bridge/win/FrameWin.h:
- * page/Chrome.cpp:
- (WebCore::Chrome::canRunBeforeUnloadConfirmPanel):
- (WebCore::Chrome::runBeforeUnloadConfirmPanel):
- (WebCore::Chrome::closeWindowSoon):
- * page/Chrome.h:
- * page/ChromeClient.h:
- * page/Frame.cpp:
- (WebCore::Frame::shouldClose):
- (WebCore::Frame::scheduleClose):
- * page/Frame.h:
- * page/mac/FrameMac.h:
- * page/mac/FrameMac.mm:
- * page/mac/WebCoreFrameBridge.h:
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::issuePasteCommand):
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQt.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::FrameWin::issuePasteCommand):
- 2006-12-18 Alice Liu <alice.liu@apple.com>
- Reviewed by Adam.
- Fixed <rdar://problem/4766174> REGRESSION(r16081): Aspect eWFM: Unable to log in
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::didExplicitOpen):
- 2006-12-18 David Hyatt <hyatt@apple.com>
- Add save/restore calls around the painting of text areas on Mac, since the methods in question
- alter the current fill color in CG destructively.
- Reviewed by olliej
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintButton):
- (WebCore::RenderThemeMac::paintTextField):
- (WebCore::RenderThemeMac::paintTextArea):
- (WebCore::RenderThemeMac::paintSliderTrack):
- (WebCore::RenderThemeMac::paintSliderThumb):
- 2006-12-18 David Hyatt <hyatt@apple.com>
- Fix list markers to properly stroke and fill. I screwed this up when changing how text draws.
- Reviewed by olliej
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- 2006-12-18 David Hyatt <hyatt@apple.com>
- Eliminate the Pen object in favor of separate stroke variables, since most code just wants to set the
- stroke color. This also makes it easier for us to push only stroke color through into CG synchronously
- while leaving the others alone.
- Reviewed by olliej
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContextState::GraphicsContextState):
- (WebCore::GraphicsContext::setStrokeThickness):
- (WebCore::GraphicsContext::setStrokeStyle):
- (WebCore::GraphicsContext::setStrokeColor):
- (WebCore::GraphicsContext::strokeThickness):
- (WebCore::GraphicsContext::strokeStyle):
- (WebCore::GraphicsContext::strokeColor):
- (WebCore::GraphicsContext::setPlatformStrokeStyle):
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- * platform/graphics/GraphicsContext.h:
- (WebCore::):
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::drawRect):
- (WebCore::GraphicsContext::drawLine):
- (WebCore::GraphicsContext::drawEllipse):
- (WebCore::GraphicsContext::drawArc):
- (WebCore::GraphicsContext::drawConvexPolygon):
- (WebCore::GraphicsContext::drawLineForText):
- (WebCore::GraphicsContext::setPlatformStrokeColor):
- * platform/graphics/qt/GraphicsContextQt.cpp:
- (WebCore::toQPenStyle):
- (WebCore::GraphicsContext::setPlatformStrokeColor):
- (WebCore::GraphicsContext::setPlatformStrokeStyle):
- (WebCore::GraphicsContext::setPlatformStrokeThickness):
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paintDecorations):
- * rendering/InlineTextBox.cpp:
- (WebCore::updateTextColor):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintDecoration):
- (WebCore::InlineTextBox::paintMarkedTextUnderline):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintObject):
- * rendering/RenderBox.cpp:
- * rendering/RenderBox.h:
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::userResize):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorderArc):
- (WebCore::RenderObject::drawBorder):
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::paint):
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::paint):
- * rendering/RenderText.cpp:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintMenuListButton):
- 2006-12-18 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix <rdar://problem/4889565> REGRESSION (r17597): Command-clicking a submit
- button does not submit in a new tab/window
- http://bugs.webkit.org/show_bug.cgi?id=11858
- - change DOMActivate events to be created as a part of default handling of
- click events instead of having the sender of the click event also send
- a DOMActivate event
- - fixed some edge cases in the slider thumb element handler; since this is
- inside a shadow DOM, it's likely none of these can arise in practice
- No easy way to test the command-click part since the behavior is in Safari.
- To make a test we'd have to provide JavaScript access to the modifiers passed
- to the policy delegate or have some way to query the underlying event from
- JavaScript.
- * dom/EventTargetNode.cpp: Change all assert to ASSERT.
- (WebCore::EventTargetNode::dispatchMouseEvent): Renamed some local variables
- for clarity. Added a RefPtr for relatedTarget since it might be deallocated
- by the handlers for the click event and is used in the code that creates the
- dblclick event. Removed the code to create a DOMActivate event, since that's
- now done in the default event handler for the click event.
- (WebCore::EventTargetNode::defaultEventHandler): Added code to check for a
- click event and dispatch a DOMActivate event using the click event as the
- underlying event. The part of this that fixes the bug is that we use the
- click event as the underlying event; the old code used the same underlying
- event as for the click event, not the click event itself. The underlying event
- for the click event is usually 0, since we propagate the key state to the click
- event instead of using an underlying event in the common case.
- * dom/Document.cpp: (WebCore::Document::defaultEventHandler): Added call
- to the base class's defaultEventHandler function, except in the case where
- the event is already handled.
- * html/HTMLInputElement.h: Removed clickX() and clickY().
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::appendFormData): Use xPos and yPos directly,
- so we can remove clickX() and clickY().
- (WebCore::HTMLInputElement::defaultEventHandler): Removed code that calls
- setDefaultHandled for click events since we are just recording the x and y
- coordinates of the events; that's not "handling" an event, and setting
- the flag prevents us from calling the base class's default event handler,
- which is now needed to submmit the form.
- * rendering/RenderSlider.cpp:
- (WebCore::HTMLSliderThumbElement::defaultEventHandler):
- Added some missing isMouseEvent checks in code that casts to a MouseEvent.
- Added check document()->frame() in code that manipulates the frame so that
- fake events, which might happen when there's no frame, can't cause a crash.
- Added an m_inDragMode check so we don't try to handle mouseup events when
- we are not handling a drag. Remove the setDefaultHandled call from the
- mousemove case, because mousemove events are observed, and not "handled"
- in the "nobody else should look at this event" sense. Added a call to the
- base class's default event handler, and some return statements so that we
- won't call it when the event has been handled.
- * html/HTMLLabelElement.cpp: (WebCore::HTMLLabelElement::defaultEventHandler):
- Removed an unneeded "return" for a function that has no return value.
- 2006-12-18 Beth Dakin <bdakin@apple.com>
- Reviewed by Adele.
- Fix for <rdar://problem/4749770> WebCore crashes on a blog website
- in WebCore::InlineBox::root() + 6
- We null-check inlineBoxWrapper everywhere else in the code except
- for these 3 spots. This patch adds them in. Only one of the checks
- is required to fix the crash. What we render for the test case now
- matches shipping Safari, but still seems wrong because we do not
- match Firefox. I will file a follow-up about the rendering problem.
- * rendering/RenderListItem.cpp:
- (WebCore::RenderListItem::positionListMarker): This is the required
- null-check.
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::setSelectionState): Null-check for
- safety.
- (WebCore::RenderListMarker::selectionRect): Same.
- 2006-12-18 David Hyatt <hyatt@apple.com>
- Fix performance regression caused by adding setting of stroke colors as well as fill colors to every font drawing
- call on Mac. Fix is rather involved:
- (1) Fill color is now updated in CG synchronously. There is no more delay in the push. I used the model that
- Qt added for this, setPlatformFillColor, so we're the same now.
- (2) Text was being drawn using the pen color, which is tantamount to using the stroke color. Since text in HTML
- is really a fill and not a stroke, all cross-platform code that draws text has been patched to use fill instead
- of the pen.
- (3) Added a new API to GraphicsContext to set the text drawing mode to any combination of fill/stroke/clip.
- Ports should implement setPlatformTextDrawingMode or just query the mode in their drawGlyphs/drawComplexText
- method on their Font class to get the new functionality.
- (4) InlineTextBox will set the fill and stroke colors appropriately now rather than always assuming fill.
- (5) Fixed a bug in GraphicsContextCG where fillRectWithColor was updating the CG fill color in the state object
- as a side effect, creating a mismatch between CG's fill color and the stored cross-platform fill color.
- Reviewed by olliej
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContextState::GraphicsContextState):
- (WebCore::GraphicsContext::textDrawingMode):
- (WebCore::GraphicsContext::setTextDrawingMode):
- (WebCore::GraphicsContext::setPlatformTextDrawingMode):
- (WebCore::GraphicsContext::setPlatformPen):
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::fillRect):
- (WebCore::GraphicsContext::setPlatformTextDrawingMode):
- (WebCore::GraphicsContext::setPlatformFillColor):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- (WebCore::SVGPaintServerPattern::teardown):
- * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreDrawTextAtPoint):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::paint):
- * rendering/InlineTextBox.cpp:
- (WebCore::correctedTextColor):
- (WebCore::updateTextColor):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintMarkedTextBackground):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::paintObject):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::paintItemForeground):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- 2006-12-18 Matt Perry <mpcomplete@chromium.org>
- Reviewed by Maciej.
- Bug 11760: Animated GIFs with offsets crash WebKit
- http://bugs.webkit.org/show_bug.cgi?id=11760
- * platform/image-decoders/gif/GIFImageDecoder.cpp:
- ensure we don't write past the end of the image buffer when the offset
- is nonzero. also fix the way we composite frames when animating.
- (WebCore::GIFImageDecoder::initFrameBuffer):
- (WebCore::GIFImageDecoder::haveDecodedRow):
- 2006-12-18 Pam Greene <pam@chromium.org>
- Reviewed by Darin.
- Changed hidden input controls to reset to their initial values
- when the form is reset. Also added layout tests for resetting
- other input controls.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=11866
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::setValue):
- (WebCore::HTMLInputElement::storesValueSeparateFromAttribute):
- 2006-12-18 Alice Liu <alice.liu@apple.com>
- Oops forgot a file.
- * editing/EditorDeleteAction.h: Added.
- (WebCore::):
- 2006-12-18 Alice Liu <alice.liu@apple.com>
- Reviewed by Adam.
- Have the Editor handle deletion instead of WebHTMLView
- * WebCore.exp:
- Exposed Editor::deleteWithDirection and ::deleteRange()
- * WebCore.xcodeproj/project.pbxproj:
- Added EditorDeleteAction.h
- * editing/Editor.cpp:
- (WebCore::Editor::deleteRange):
- (WebCore::Editor::deleteWithDirection):
- Implemented
- (WebCore::Editor::deleteSelectionWithSmartDelete):
- Overloaded to take no params, in which case canSmartCopyOrDelete is called
- (WebCore::execCopy):
- (WebCore::execCut):
- (WebCore::execDelete):
- (WebCore::execPaste):
- Call the editor instead of asking frame to cut/copy/paste/delete
- (WebCore::execBackwardDelete):
- (WebCore::execForwardDelete):
- Call deleteWithDirection instead of just executing a TypingCommand
- (WebCore::CommandEntry::):
- distinguished delete (which deletes selection) from backwards delete (single character, no selection)
- (WebCore::Editor::cut):
- (WebCore::Editor::performDelete):
- Trivial changes
- * editing/Editor.h:
- Added some functons.
- (WebCore::Editor::setStartNewKillRingSequence):
- (WebCore::Editor::propogateDOMException):
- (WebCore::Editor::addToKillRing):
- * editing/mac/EditorMac.mm:
- Factored out support for Kill Rings to this file
- * platform/mac/PasteboardMac.mm:
- Trivial change
- 2006-12-18 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Oliver.
- - Removed CG header include
- * platform/graphics/ImageSource.h:
- 2006-12-18 John Sullivan <sullivan@apple.com>
- Reviewed by Tim Hatcher
- - fixed <rdar://problem/4887764> GMAIL: Crash occurs at WebCore::Range::cloneRange()
- when I ctrl-click in a empty list item
- * editing/mac/EditorMac.mm:
- (WebCore::isRangeUngrammatical):
- bail out immediately for nil range (which selectionController()->toRange().get()
- can return). Also save some work by bailing out immediately for collapsed ranges.
- 2006-12-18 Alice Liu <alice.liu@apple.com>
- Leopard build fix.
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::checkOrEnableIfNeeded):
- 2006-12-17 Zack Rusin <zack@kde.org>
- Fix compilation after the const changes.
- * platform/qt/ContextMenuItemQt.cpp:
- (WebCore::ContextMenuItem::type):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::setChecked):
- (WebCore::ContextMenuItem::setEnabled):
- 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10956
- Long standing regression. The old code in FontMac.mm, used set the fill/stroke
- color "[nsColor(graphicsContext->pen().color()) set];", and current code only
- sets the fill color. Reverting to old behaviour fixes gradient-on-stroke-of-text.
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::setup):
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- 2006-12-17 Lars Naesbye Christensen <lars@naesbye.dk>
- Reviewed, tweaked and landed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11798
- [CSS 3] missing cursor support for 'none'
- * Resources/noneCursor.png: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * css/cssparser.cpp: Also fixed previously broken -webkit-background-composite: copy.
- * manual-tests/cursor.html:
- * page/EventHandler.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/gdk/CursorGdk.cpp:
- (WebCore::noneCursor):
- * platform/mac/CursorMac.mm:
- (WebCore::noneCursor):
- * platform/qt/CursorQt.cpp:
- (WebCore::noneCursor):
- * platform/win/CursorWin.cpp:
- (WebCore::noneCursor):
- * rendering/RenderStyle.h:
- (WebCore::):
- 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
- Build fix, not reviewed.
- This should hopefully fix Qt build.
- * ksvg2/svg/SVGLength.cpp: Include math.h for Qt/Linux build.
- 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Remove SVGHelper class. Move the last static function "parseSeparatedList"
- to the only place using it: SVGAnimationElement. Update all build files.
- Remove any lazy_create macro usage, by what it does - cleaner.
- * CMakeLists.txt:
- * WebCore.pro:
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGAnimationElement.cpp:
- (WebCore::parseSeparatedList):
- (WebCore::SVGAnimationElement::parseMappedAttribute):
- * ksvg2/svg/SVGCircleElement.cpp:
- * ksvg2/svg/SVGClipPathElement.cpp:
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- * ksvg2/svg/SVGCursorElement.cpp:
- * ksvg2/svg/SVGEllipseElement.cpp:
- * ksvg2/svg/SVGExternalResourcesRequired.cpp:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- * ksvg2/svg/SVGFEFloodElement.cpp:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- * ksvg2/svg/SVGFEMergeNodeElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- * ksvg2/svg/SVGFETileElement.cpp:
- * ksvg2/svg/SVGFilterElement.cpp:
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- * ksvg2/svg/SVGGradientElement.cpp:
- * ksvg2/svg/SVGHelper.cpp: Removed.
- * ksvg2/svg/SVGHelper.h: Removed.
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLength.cpp:
- * ksvg2/svg/SVGLineElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGPathElement.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/SVGPolyElement.cpp:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- * ksvg2/svg/SVGRectElement.cpp:
- * ksvg2/svg/SVGStopElement.cpp:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- * ksvg2/svg/SVGSymbolElement.cpp:
- * ksvg2/svg/SVGTests.cpp:
- * ksvg2/svg/SVGTextContentElement.cpp:
- * ksvg2/svg/SVGTextElement.cpp:
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- * ksvg2/svg/SVGTransformable.cpp:
- * ksvg2/svg/SVGURIReference.cpp:
- * ksvg2/svg/SVGUseElement.cpp:
- * ksvg2/svg/SVGViewElement.cpp:
- * ksvg2/svg/SVGZoomAndPan.cpp:
- 2006-12-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11813
- Pass SVGLength around by value, remove any SVGLength* usage.
- Bindings work fine, as the SVG POD JS Wrapper stuff is already in svn.
- No new regressions, none fixed. But the code itself is much cleaner.
- And some problems with width-full-percentage.svg have been fixed, viewport
- clipping works in any case now, also for percentual width/height values set on <svg>.
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
- * ksvg2/svg/SVGAnimatedTemplate.h:
- * ksvg2/svg/SVGCircleElement.cpp:
- (WebCore::SVGCircleElement::SVGCircleElement):
- (WebCore::SVGCircleElement::parseMappedAttribute):
- (WebCore::SVGCircleElement::toPathData):
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGCursorElement.cpp:
- (WebCore::SVGCursorElement::SVGCursorElement):
- (WebCore::SVGCursorElement::parseMappedAttribute):
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGElement.cpp:
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::SVGEllipseElement):
- (WebCore::SVGEllipseElement::parseMappedAttribute):
- (WebCore::SVGEllipseElement::toPathData):
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::SVGFilterElement):
- (WebCore::SVGFilterElement::parseMappedAttribute):
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (WebCore::SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
- (WebCore::SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
- (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseViewBox):
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
- (WebCore::SVGForeignObjectElement::parseMappedAttribute):
- (WebCore::SVGForeignObjectElement::createRenderer):
- (WebCore::SVGForeignObjectElement::childShouldCreateRenderer):
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::parseSeparatedList):
- * ksvg2/svg/SVGHelper.h:
- * ksvg2/svg/SVGImageElement.cpp:
- (WebCore::SVGImageElement::SVGImageElement):
- (WebCore::SVGImageElement::parseMappedAttribute):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::storeUnit):
- (WebCore::extractMode):
- (WebCore::extractType):
- (WebCore::lengthTypeToString):
- (WebCore::stringToLengthType):
- (WebCore::SVGLength::SVGLength):
- (WebCore::SVGLength::unitType):
- (WebCore::SVGLength::value):
- (WebCore::SVGLength::setValue):
- (WebCore::SVGLength::setValueInSpecifiedUnits):
- (WebCore::SVGLength::setValueAsString):
- (WebCore::SVGLength::valueAsString):
- (WebCore::SVGLength::newValueSpecifiedUnits):
- (WebCore::SVGLength::convertToSpecifiedUnits):
- (WebCore::SVGLength::isFraction):
- (WebCore::SVGLength::dpi):
- (WebCore::SVGLength::PercentageOfViewport):
- * ksvg2/svg/SVGLength.h:
- (WebCore::):
- (WebCore::SVGLength::):
- * ksvg2/svg/SVGLength.idl:
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::SVGLengthList):
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGLineElement.cpp:
- (WebCore::SVGLineElement::SVGLineElement):
- (WebCore::SVGLineElement::parseMappedAttribute):
- (WebCore::SVGLineElement::toPathData):
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
- (WebCore::SVGLinearGradientElement::parseMappedAttribute):
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::parseMappedAttribute):
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::attributeChanged):
- (WebCore::SVGMaskElement::parseMappedAttribute):
- (WebCore::SVGMaskElement::drawMaskerContent):
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::parseMappedAttribute):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
- (WebCore::SVGRadialGradientElement::parseMappedAttribute):
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::SVGRectElement):
- (WebCore::SVGRectElement::parseMappedAttribute):
- (WebCore::SVGRectElement::toPathData):
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::SVGSVGElement):
- (WebCore::SVGSVGElement::viewport):
- (WebCore::SVGSVGElement::parseMappedAttribute):
- (WebCore::SVGSVGElement::createSVGLength):
- (WebCore::SVGSVGElement::getCTM):
- (WebCore::SVGSVGElement::getScreenCTM):
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGTextContentElement.cpp:
- (WebCore::SVGTextContentElement::SVGTextContentElement):
- (WebCore::SVGTextContentElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- (WebCore::SVGTextPositioningElement::parseMappedAttribute):
- * ksvg2/svg/SVGUseElement.cpp:
- (WebCore::SVGUseElement::SVGUseElement):
- (WebCore::SVGUseElement::parseMappedAttribute):
- (WebCore::SVGUseElement::closeRenderer):
- * ksvg2/svg/SVGUseElement.h:
- * page/EventHandler.cpp:
- (WebCore::selectCursor):
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::translationForAttributes):
- * rendering/RenderPath.cpp:
- * rendering/RenderPath.h:
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::layout):
- (WebCore::RenderSVGContainer::calcViewport):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::relativeBBox):
- (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
- (WebCore::RenderSVGImage::translationForAttributes):
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::layout):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::translateBox):
- (WebCore::placePositionedBoxesHorizontally):
- (WebCore::placeBoxesVerticallyWithAbsBaseline):
- 2006-12-16 Sam Weinig <sam@webkit.org>
- Reviewed by Maciej.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11856
- Update renderName() methods to return current class names.
- * rendering/RenderPath.h:
- (WebCore::RenderPath::renderName): Returns "RenderPath" instead of "KCanvasItem".
- * rendering/RenderSVGContainer.h:
- (WebCore::RenderSVGContainer::renderName): Returns "RenderSVGContainer" instead of "KCanvasContainer".
- * rendering/RenderTextControl.h:
- (WebCore::RenderTextControl::renderName): Returns "RenderTextControl" instead of "RenderTextField".
- 2006-12-16 Sam Weinig <sam@webkit.org>
- Reviewed by Mitz.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11844
- Code Cleanup for more of the rendering code
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/RenderCounter.cpp:
- (WebCore::RenderCounter::calcMinMaxWidth):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::RenderText):
- (WebCore::RenderText::setStyle):
- (WebCore::RenderText::destroy):
- (WebCore::RenderText::attachTextBox):
- (WebCore::RenderText::findNextInlineTextBox):
- (WebCore::RenderText::positionForCoordinates):
- (WebCore::firstRendererOnNextLine):
- (WebCore::lastRendererOnPrevLine):
- (WebCore::RenderText::caretRect):
- (WebCore::RenderText::posOfChar):
- (WebCore::RenderText::allAscii):
- (WebCore::RenderText::shouldUseMonospaceCache):
- (WebCore::RenderText::cacheWidths):
- (WebCore::RenderText::widthFromCache):
- (WebCore::RenderText::trimmedMinMaxWidth):
- (WebCore::RenderText::calcMinMaxWidth):
- (WebCore::isSpaceAccordingToStyle):
- (WebCore::RenderText::containsOnlyWhitespace):
- (WebCore::RenderText::minXPos):
- (WebCore::RenderText::setSelectionState):
- (WebCore::RenderText::setTextWithOffset):
- (WebCore::RenderText::setText):
- (WebCore::RenderText::position):
- (WebCore::RenderText::width):
- (WebCore::RenderText::getAbsoluteRepaintRect):
- (WebCore::RenderText::selectionRect):
- (WebCore::RenderText::verticalPositionHint):
- (WebCore::RenderText::font):
- (WebCore::RenderText::caretMinOffset):
- (WebCore::RenderText::caretMaxOffset):
- (WebCore::RenderText::previousOffset):
- (WebCore::RenderText::nextOffset):
- (WebCore::RenderText::inlineBox):
- * rendering/RenderText.h:
- (WebCore::RenderText::isTextFragment):
- (WebCore::RenderText::data):
- (WebCore::RenderText::string):
- (WebCore::RenderText::paint):
- (WebCore::RenderText::layout):
- (WebCore::RenderText::nodeAtPoint):
- (WebCore::RenderText::length):
- (WebCore::RenderText::text):
- (WebCore::RenderText::stringLength):
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::setStyle):
- (WebCore::disabledTextColor):
- (WebCore::RenderTextControl::createInnerBlockStyle):
- (WebCore::RenderTextControl::createInnerTextStyle):
- (WebCore::RenderTextControl::createResultsButtonStyle):
- (WebCore::RenderTextControl::createCancelButtonStyle):
- (WebCore::RenderTextControl::showPlaceholderIfNeeded):
- (WebCore::RenderTextControl::hidePlaceholderIfNeeded):
- (WebCore::RenderTextControl::createSubtreeIfNeeded):
- (WebCore::RenderTextControl::updateFromElement):
- (WebCore::RenderTextControl::selectionStart):
- (WebCore::RenderTextControl::setSelectionRange):
- (WebCore::RenderTextControl::visiblePositionForIndex):
- (WebCore::RenderTextControl::subtreeHasChanged):
- (WebCore::RenderTextControl::textWithHardLineBreaks):
- (WebCore::RenderTextControl::calcHeight):
- (WebCore::RenderTextControl::nodeAtPoint):
- (WebCore::RenderTextControl::layout):
- (WebCore::RenderTextControl::calcMinMaxWidth):
- (WebCore::RenderTextControl::addSearchResult):
- (WebCore::RenderTextControl::showPopup):
- (WebCore::RenderTextControl::itemText):
- (WebCore::RenderTextControl::itemIsEnabled):
- (WebCore::RenderTextControl::listSize):
- (WebCore::RenderTextControl::scroll):
- * rendering/RenderTextControl.h:
- (WebCore::RenderTextControl::renderName):
- (WebCore::RenderTextControl::removeLeftoverAnonymousBoxes):
- * rendering/RenderTextFragment.cpp:
- (WebCore::RenderTextFragment::RenderTextFragment):
- (WebCore::RenderTextFragment::originalString):
- * rendering/RenderTextFragment.h:
- (WebCore::RenderTextFragment::isTextFragment):
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::adjustStyle):
- (WebCore::RenderTheme::isControlStyled):
- (WebCore::RenderTheme::stateChanged):
- (WebCore::RenderTheme::adjustCheckboxStyle):
- (WebCore::RenderTheme::adjustRadioStyle):
- * rendering/RenderTheme.h:
- (WebCore::):
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::RenderThemeMac):
- (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
- (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
- (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
- (WebCore::RenderThemeMac::systemFont):
- (WebCore::RenderThemeMac::isControlStyled):
- (WebCore::RenderThemeMac::adjustRepaintRect):
- (WebCore::RenderThemeMac::updateCheckedState):
- (WebCore::RenderThemeMac::controlSupportsTints):
- (WebCore::RenderThemeMac::setFontFromControlSize):
- (WebCore::RenderThemeMac::paintCheckbox):
- (WebCore::RenderThemeMac::checkboxMargins):
- (WebCore::RenderThemeMac::setCheckboxCellState):
- (WebCore::RenderThemeMac::setCheckboxSize):
- (WebCore::RenderThemeMac::paintRadio):
- (WebCore::RenderThemeMac::radioMargins):
- (WebCore::RenderThemeMac::setRadioCellState):
- (WebCore::RenderThemeMac::setRadioSize):
- (WebCore::RenderThemeMac::adjustButtonStyle):
- (WebCore::RenderThemeMac::buttonMargins):
- (WebCore::RenderThemeMac::setButtonSize):
- (WebCore::RenderThemeMac::setButtonCellState):
- (WebCore::RenderThemeMac::adjustTextFieldStyle):
- (WebCore::RenderThemeMac::adjustTextAreaStyle):
- (WebCore::RenderThemeMac::popupButtonMargins):
- (WebCore::RenderThemeMac::popupButtonPadding):
- (WebCore::TopGradientInterpolate):
- (WebCore::BottomGradientInterpolate):
- (WebCore::MainGradientInterpolate):
- (WebCore::TrackGradientInterpolate):
- (WebCore::RenderThemeMac::paintMenuListButtonGradients):
- (WebCore::RenderThemeMac::paintMenuListButton):
- (WebCore::RenderThemeMac::adjustMenuListStyle):
- (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
- (WebCore::RenderThemeMac::paintSliderTrack):
- (WebCore::RenderThemeMac::paintSliderThumb):
- (WebCore::RenderThemeMac::paintSearchField):
- (WebCore::RenderThemeMac::setSearchCellState):
- (WebCore::RenderThemeMac::adjustSearchFieldStyle):
- (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
- (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
- * rendering/RenderTreeAsText.cpp:
- (WebCore::operator<<):
- (WebCore::writeIndent):
- (WebCore::printBorderStyle):
- (WebCore::getTagName):
- (WebCore::isEmptyOrUnstyledAppleStyleSpan):
- (WebCore::writeTextRun):
- (WebCore::write):
- (WebCore::writeLayers):
- (WebCore::nodePosition):
- (WebCore::writeSelection):
- * rendering/RenderTreeAsText.h:
- * rendering/RenderView.cpp:
- (WebCore::RenderView::RenderView):
- (WebCore::RenderView::calcMinMaxWidth):
- (WebCore::RenderView::layout):
- (WebCore::RenderView::absolutePosition):
- (WebCore::RenderView::paint):
- (WebCore::RenderView::repaintViewRectangle):
- (WebCore::rendererAfterPosition):
- (WebCore::RenderView::selectionRect):
- (WebCore::RenderView::setSelection):
- (WebCore::RenderView::selectionStartEnd):
- (WebCore::RenderView::updateWidgetPositions):
- (WebCore::RenderView::addWidget):
- (WebCore::RenderView::removeWidget):
- (WebCore::RenderView::viewRect):
- (WebCore::RenderView::docHeight):
- (WebCore::RenderView::docWidth):
- (WebCore::RenderView::setBestTruncatedAt):
- * rendering/RenderView.h:
- (WebCore::RenderView::renderName):
- (WebCore::RenderView::selectionStart):
- (WebCore::RenderView::selectionEnd):
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::destroy):
- (WebCore::RenderWidget::resizeWidget):
- (WebCore::RenderWidget::setStyle):
- (WebCore::RenderWidget::paint):
- (WebCore::RenderWidget::updateWidgetPosition):
- (WebCore::RenderWidget::setSelectionState):
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::placeEllipsis):
- (WebCore::RootInlineBox::fillLineSelectionGap):
- (WebCore::RootInlineBox::selectionState):
- (WebCore::RootInlineBox::firstSelectedBox):
- (WebCore::RootInlineBox::lastSelectedBox):
- (WebCore::RootInlineBox::selectionTop):
- (WebCore::RootInlineBox::closestLeafChildForXPos):
- * rendering/RootInlineBox.h:
- (WebCore::RootInlineBox::isRootInlineBox):
- (WebCore::RootInlineBox::setVerticalOverflowPositions):
- (WebCore::RootInlineBox::setHorizontalOverflowPositions):
- (WebCore::RootInlineBox::setVerticalSelectionPositions):
- (WebCore::RootInlineBox::lineBreakObj):
- (WebCore::RootInlineBox::lineBreakPos):
- (WebCore::RootInlineBox::setLineBreakPos):
- (WebCore::RootInlineBox::blockHeight):
- (WebCore::RootInlineBox::setBlockHeight):
- (WebCore::RootInlineBox::endsWithBreak):
- (WebCore::RootInlineBox::setEndsWithBreak):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::SVGInlineFlowBox::paint):
- (WebCore::paintSVGInlineFlow):
- (WebCore::translateBox):
- (WebCore::placePositionedBoxesHorizontally):
- (WebCore::placeBoxesVerticallyWithAbsBaseline):
- (WebCore::placeSVGFlowVertically):
- * rendering/SVGInlineFlowBox.h:
- * rendering/SVGRenderTreeAsText.cpp:
- (WebCore::TextStreamSeparator::TextStreamSeparator):
- (WebCore::operator<<):
- (WebCore::hasFractions):
- (WebCore::writeIndent):
- (WebCore::writeStyle):
- (WebCore::getTagName):
- (WebCore::write):
- (WebCore::writeRenderResources):
- * rendering/SVGRenderTreeAsText.h:
- (WebCore::operator<<):
- * rendering/SVGRootInlineBox.cpp:
- (WebCore::SVGRootInlineBox::paint):
- (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
- * rendering/SVGRootInlineBox.h:
- * rendering/TableLayout.h:
- 2006-12-16 Adam Roben <aroben@apple.com>
- Build fixes.
- * platform/ContextMenuItem.h: Fixed const declarations.
- * platform/mac/ContextMenuItemMac.mm: Dito.
- (WebCore::ContextMenuItem::type):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::setChecked):
- (WebCore::ContextMenuItem::setEnabled):
- 2006-12-16 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11189
- <rdar://problem/4770249> REGRESSION (NativeListBox): When a list box has focus, pressing command- A (select all) doesn't selected all items in list
- Test: fast/forms/listbox-select-all.html
- * dom/Node.h: We should try to find a more appropriate place to put these methods.
- (WebCore::Node::canSelectAll): Added.
- (WebCore::Node::selectAll): Added.
- * editing/SelectionController.cpp: (WebCore::SelectionController::selectAll): Before selecting editable content, give the focused node
- a chance to select its content.
- * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::selectAll): Selects all items in a multi-select list box. Single-select
- 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.
- * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::canSelectAll): Returns true for list boxes.
- 2006-12-16 Zack Rusin <zack@kde.org>
- Add a stub for SearchPopupMenu for Qt code.
- * platform/qt/SearchPopupMenuQt.cpp: Added.
- (WebCore::SearchPopupMenu::SearchPopupMenu):
- (WebCore::SearchPopupMenu::saveRecentSearches):
- (WebCore::SearchPopupMenu::loadRecentSearches):
- 2006-12-16 Zack Rusin <zack@kde.org>
- Make it compile after last nights changes.
- * WebCore.pro:
- * loader/qt/DocumentLoaderQt.cpp:
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::prepareForLoadStart):
- * platform/qt/ContextMenuItemQt.cpp:
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenuItem::releasePlatformDescription):
- (WebCore::ContextMenuItem::type):
- (WebCore::ContextMenuItem::setType):
- (WebCore::ContextMenuItem::action):
- (WebCore::ContextMenuItem::setAction):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::platformSubMenu):
- (WebCore::ContextMenuItem::setSubMenu):
- (WebCore::ContextMenuItem::setChecked):
- (WebCore::ContextMenuItem::setEnabled):
- * platform/qt/ContextMenuQt.cpp:
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::insertItem):
- * platform/qt/TemporaryLinkStubs.cpp:
- 2006-12-16 Adele Peterson <adele@apple.com>
- One more...
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::ReplacementFragment):
- 2006-12-16 Adele Peterson <adele@apple.com>
- Missed one instance of isNonWidgetTextField.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::doApply):
- 2006-12-16 Hunter L. Williams <hlwebkit@gmail.com>
- Reviewed by Adele.
- Fix mouse wheel scrolling in <textarea> controls.
- * rendering/RenderTextControl.cpp:
- * rendering/RenderTextControl.h:
- Override |scroll| on RenderTextControl to forward the call to the RenderObject of the
- inner m_innerText, which has a layer that can be scrolled.
- 2006-12-16 Adele Peterson <adele@apple.com>
- RS by Adam.
- Removed RenderLineEdit, TextField, WebCoreTextField classes, and use of isNonWidgetTextField,
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::isKeyboardFocusable):
- (WebCore::HTMLInputElement::isMouseFocusable):
- (WebCore::HTMLInputElement::focus):
- (WebCore::HTMLInputElement::updateFocusAppearance):
- (WebCore::HTMLInputElement::aboutToUnload):
- (WebCore::HTMLInputElement::dispatchFocusEvent):
- (WebCore::HTMLInputElement::dispatchBlurEvent):
- (WebCore::HTMLInputElement::setValue):
- (WebCore::HTMLInputElement::defaultEventHandler):
- * html/HTMLInputElement.h:
- (WebCore::HTMLInputElement::isTextField):
- * html/HTMLTextFieldInnerElement.cpp:
- (WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler):
- * platform/TextField.h: Removed.
- * platform/mac/TextFieldMac.mm: Removed.
- * platform/mac/WebCoreTextField.h: Removed.
- * platform/mac/WebCoreTextField.mm: Removed.
- * rendering/RenderLineEdit.cpp: Removed.
- * rendering/RenderLineEdit.h: Removed.
- 2006-12-16 Adele Peterson <adele@apple.com>
- Two more files I forgot to svn add for search fields.
- * platform/SearchPopupMenu.h: Added.
- (WebCore::SearchPopupMenu::create):
- * platform/mac/SearchPopupMenuMac.mm: Added.
- (WebCore::SearchPopupMenu::SearchPopupMenu):
- (WebCore::autosaveKey):
- (WebCore::SearchPopupMenu::saveRecentSearches):
- (WebCore::SearchPopupMenu::loadRecentSearches):
- 2006-12-16 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- * platform/PopupMenuClient.h: Added. Broken out of PopupMenu class.
- (WebCore::PopupMenuClient::~PopupMenuClient):
- 2006-12-16 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- WebCore part of fix for:
- <rdar://problem/4463829> Switch to use new search field implementation for <input type="search">
- * WebCore.xcodeproj/project.pbxproj: Added SearchPopupMenu.h, SearchPopupMenuMac.mm, and PopupMenuClient.h.
- Added pseudo classes and corresponding values for -webkit appearance for the cancel button and for the three types of "decoration" that
- correspond to the different functions of the magnifier glass in the search field. One for the button that will show and hide the
- recent searches menu. One for decoration when the results attribute is set, but no results are saved. And one for decoration
- when no results attribute is set. We added these different pseudo elements so that RenderTextControl can decide which pseudo class
- is appropriate, and each theme can decide for itself which kind of image is appropriate for each function.
-
- * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType):
- * css/CSSSelector.h: (WebCore::CSSSelector::): Added to PseudoType enum.
- * css/CSSValueKeywords.in: Added searchfield-decoration, searchfield-results-decoration, searchfield-results-button, searchfield-cancel-button values.
- * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector): Added cases for -webkit-search-cancel-button,
- -webkit-search-decoration, -webkit-search-results-decoration, -webkit-search-results-button
- * rendering/RenderStyle.cpp: Addes new pseudoBits for matching pseudoIds.
- (WebCore::):
- (WebCore::pseudoBit):
- * rendering/RenderStyle.h: Added new appearance values and pseudoIds.
- (WebCore::):
- (WebCore::RenderStyle::):
- * css/html4.css: Added style for input[type=search], and the new pseudo elements.
- 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.
- Since the tree has become deeper, some editing and event code that used to check for a shadowParent, really needs to check the shadowAncestorNode.
- * editing/Editor.cpp: (WebCore::Editor::dispatchCPPEvent): Check shadowAncestorNode instead of shadowParentNode.
- * editing/Selection.cpp: (WebCore::Selection::adjustForEditableContent): ditto.
- * editing/htmlediting.cpp:
- (WebCore::firstEditablePositionAfterPositionInRoot): ditto.
- (WebCore::lastEditablePositionBeforePositionInRoot): ditto.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::ReplacementFragment): ditto.
- (WebCore::ReplaceSelectionCommand::shouldMerge): Nil check enclosingBlock call. I ran into this while testing search fields in mixed editability.
- (WebCore::ReplaceSelectionCommand::doApply): ditto.
- * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::submit): Remove use of RenderLineEdit.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::selectionStart): ditto.
- (WebCore::HTMLInputElement::selectionEnd): ditto.
- (WebCore::HTMLInputElement::setSelectionStart): ditto.
- (WebCore::HTMLInputElement::setSelectionEnd): ditto.
- (WebCore::HTMLInputElement::select): ditto.
- (WebCore::HTMLInputElement::setSelectionRange): ditto.
- (WebCore::HTMLInputElement::parseMappedAttribute): ditto.
- (WebCore::HTMLInputElement::createRenderer): ditto.
- (WebCore::HTMLInputElement::defaultEventHandler): ditto.
- (WebCore::HTMLInputElement::addSearchResult): Added. Calls addSearchResult on the renderer.
- * html/HTMLInputElement.h:
- (WebCore::HTMLInputElement::isNonWidgetTextField): Added case for search field.
- (WebCore::HTMLInputElement::isSearchField): Added.
- * platform/PopupMenu.h: Broke PopupMenuClient out into a separate file.
- * platform/PopupMenuClient.h: Added.
- (WebCore::PopupMenuClient::~PopupMenuClient):
- * platform/graphics/Icon.h:
- * platform/SearchPopupMenu.h: Added. Saves and loads recent search vector.
- (WebCore::SearchPopupMenu::create):
- * platform/mac/SearchPopupMenuMac.mm: Added.
- (WebCore::SearchPopupMenu::SearchPopupMenu):
- (WebCore::autosaveKey):
- (WebCore::SearchPopupMenu::saveRecentSearches):
- (WebCore::SearchPopupMenu::loadRecentSearches):
- * html/HTMLTextFieldInnerElement.h: Reorganized this class.
- Added subclasses HTMLTextFieldInnerTextElement, HTMLSearchFieldResultsButtonElement, HTMLSearchFieldCancelButtonElement
- (WebCore::HTMLTextFieldInnerElement::isMouseFocusable): Added. Returns false so setFocusNodeIfNeeded
- will try to focus the input element instead of nodes in the shadow tree.
- (WebCore::HTMLTextFieldInnerElement::isShadowNode): Now returns whether or not a shadowParent has been specified.
- * html/HTMLTextFieldInnerElement.cpp:
- (WebCore::HTMLTextFieldInnerTextElement::HTMLTextFieldInnerTextElement):
- (WebCore::HTMLTextFieldInnerTextElement::defaultEventHandler): Moved this from the old HTMLTextFieldInnerElement class.
- (WebCore::HTMLSearchFieldResultsButtonElement::HTMLSearchFieldResultsButtonElement):
- (WebCore::HTMLSearchFieldResultsButtonElement::defaultEventHandler): Shows and hides recent searches menu.
- (WebCore::HTMLSearchFieldCancelButtonElement::HTMLSearchFieldCancelButtonElement):
- (WebCore::HTMLSearchFieldCancelButtonElement::defaultEventHandler): On mouse up, clears the value from the text field.
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::listSize): Changed return type to unsigned.
- * rendering/RenderMenuList.h: (WebCore::RenderMenuList::valueShouldChangeOnHotTrack): Added.
-
- * WebCore.exp: Export _wkDrawTextFieldCellFocusRing.
- * platform/mac/WebCoreSystemInterface.h: Added wkDrawTextFieldCellFocusRing
- * platform/mac/WebCoreSystemInterface.mm: ditto.
- * rendering/RenderTextControl.h:
- (WebCore::RenderTextControl::popupIsVisible): Added so HTMLSearchFieldResultsButtonElement knows whether or not the menu is already up.
- (WebCore::RenderTextControl::shouldPopOver): Added as a PopupClient method so the results menu shows up under the control instead of over.
- (WebCore::RenderTextControl::valueShouldChangeOnHotTrack):
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::RenderTextControl): Initialize m_placeholderIsVisible, m_searchPopup, and m_searchPopupIsVisible.
- (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).
- (WebCore::RenderTextControl::setStyle): Sets style on new elements.
- (WebCore::disabledTextColor): Added so this can be used in setPlaceholder.
- (WebCore::RenderTextControl::createInnerBlockStyle): Added.
- (WebCore::RenderTextControl::createInnerTextStyle): Added.
- (WebCore::RenderTextControl::createResultsButtonStyle): Added.
- (WebCore::RenderTextControl::createCancelButtonStyle): Added.
- (WebCore::RenderTextControl::showPlaceholderIfNeeded): Added. Shows the placeholder if there's no value and the field doesn't have focus.
- (WebCore::RenderTextControl::hidePlaceholderIfNeeded): Added. Clears the placeholder if there's a value or the field has focus.
- (WebCore::RenderTextControl::createSubtreeIfNeeded): Added. Creates all of the shadow tree elements.
- (WebCore::RenderTextControl::updateFromElement): Calls showPlaceholderIfNeeded.
- (WebCore::RenderTextControl::visiblePositionForIndex): Renaming (m_div to m_innerText).
- (WebCore::RenderTextControl::indexForVisiblePosition): ditto.
- (WebCore::RenderTextControl::updateCancelButtonVisibility): Shows and hides cancel button based on the value of the control.
- (WebCore::RenderTextControl::subtreeHasChanged): Fires onSearch if the incremental attribute is set.
- (WebCore::RenderTextControl::text): Renaming.
- (WebCore::RenderTextControl::textWithHardLineBreaks): ditto.
- (WebCore::RenderTextControl::calcHeight): Take the size of the results button and cancel button into account when calculating height.
- (WebCore::RenderTextControl::nodeAtPoint): Act as if we've hit the shadow tree elements based on the x coordinate of the mouse event.
- (WebCore::RenderTextControl::layout): Set the height and width of the text block taking the other shadow tree elements into account.
- (WebCore::RenderTextControl::calcMinMaxWidth): Take new shadow tree elements into account when calculating width.
- (WebCore::RenderTextControl::forwardEvent): Forward events to appropriate shadow nodes.
- (WebCore::RenderTextControl::scrollWidth): Renaming.
- (WebCore::RenderTextControl::scrollHeight): ditto.
- (WebCore::RenderTextControl::scrollLeft): ditto.
- (WebCore::RenderTextControl::scrollTop): ditto.
- (WebCore::RenderTextControl::setScrollLeft): ditto.
- (WebCore::RenderTextControl::setScrollTop): ditto.
- (WebCore::RenderTextControl::autosaveName): ditto.
- (WebCore::RenderTextControl::addSearchResult): Added. Saves value to search result list.
- (WebCore::RenderTextControl::onSearch): Added. Dispatches search event.
- (WebCore::RenderTextControl::showPopup): Added. Loads searches, and displays menu.
- (WebCore::RenderTextControl::hidePopup): Added PopupClient method.
- (WebCore::RenderTextControl::valueChanged): Added PopupClient method. Interprets the selected menu item index, and either sets the value and
- fires onSearch, or clears all recent searches for this autosave name.
- (WebCore::RenderTextControl::itemText): Added PopupClient method.
- (WebCore::RenderTextControl::itemIsEnabled): Added PopupClient method.
- (WebCore::RenderTextControl::itemStyle): ditto.
- (WebCore::RenderTextControl::clientStyle): ditto.
- (WebCore::RenderTextControl::clientDocument): ditto.
- (WebCore::RenderTextControl::clientPaddingLeft): ditto.
- (WebCore::RenderTextControl::clientPaddingRight): ditto.
- (WebCore::RenderTextControl::listSize): ditto.
- (WebCore::RenderTextControl::selectedIndex): ditto.
- (WebCore::RenderTextControl::itemIsSeparator): ditto.
- (WebCore::RenderTextControl::itemIsLabel): ditto.
- (WebCore::RenderTextControl::itemIsSelected): ditto.
- (WebCore::RenderTextControl::setTextFromItem): ditto.
- * rendering/RenderTheme.cpp: Added search field theme.
- (WebCore::RenderTheme::adjustStyle):
- (WebCore::RenderTheme::paint):
- (WebCore::RenderTheme::paintBorderOnly):
- (WebCore::RenderTheme::paintDecorations):
- (WebCore::RenderTheme::isControlStyled): Returns false for search fields, until we've worked out the kinks.
- (WebCore::RenderTheme::adjustSearchFieldStyle):
- (WebCore::RenderTheme::adjustSearchFieldCancelButtonStyle):
- (WebCore::RenderTheme::adjustSearchFieldDecorationStyle):
- (WebCore::RenderTheme::adjustSearchFieldResultsDecorationStyle):
- (WebCore::RenderTheme::adjustSearchFieldResultsButtonStyle):
- * rendering/RenderTheme.h:
- (WebCore::RenderTheme::paintSearchField):
- (WebCore::RenderTheme::paintSearchFieldCancelButton):
- (WebCore::RenderTheme::paintSearchFieldDecoration):
- (WebCore::RenderTheme::paintSearchFieldResultsDecoration):
- (WebCore::RenderTheme::paintSearchFieldResultsButton):
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::RenderThemeMac):
- (WebCore::RenderThemeMac::sizeForSystemFont): Added. Compares style's font to systemFontSizeForControlSize to determine
- what controlSize to use after a style's font has already been initially adjusted.
- (WebCore::RenderThemeMac::controlSizeForSystemFont): Added. ditto.
- (WebCore::RenderThemeMac::paintCheckbox):
- (WebCore::RenderThemeMac::paintRadio):
- (WebCore::RenderThemeMac::menuListSizes):
- (WebCore::RenderThemeMac::minimumMenuListSize): Uses sizeForSystemFont instead of hardcoded adjusted font sizes.
- (WebCore::RenderThemeMac::paintSearchField):
- (WebCore::RenderThemeMac::setSearchCellState):
- (WebCore::RenderThemeMac::adjustSearchFieldStyle):
- (WebCore::RenderThemeMac::paintSearchFieldCancelButton):
- (WebCore::RenderThemeMac::cancelButtonSizes):
- (WebCore::RenderThemeMac::adjustSearchFieldCancelButtonStyle):
- (WebCore::RenderThemeMac::resultsButtonSizes):
- (WebCore::RenderThemeMac::adjustSearchFieldDecorationStyle):
- (WebCore::RenderThemeMac::paintSearchFieldDecoration):
- (WebCore::RenderThemeMac::adjustSearchFieldResultsDecorationStyle):
- (WebCore::RenderThemeMac::paintSearchFieldResultsDecoration):
- (WebCore::RenderThemeMac::adjustSearchFieldResultsButtonStyle):
- (WebCore::RenderThemeMac::paintSearchFieldResultsButton):
- 2006-12-16 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam (and partially Geoff).
- Primarily, this patch gives WebCore context menus the ability to
- enable/disable and set state. It does a few other things along the
- way, though. Some of the more noticeable things:
- -Re-architects the ContextMenuItem class a bit so that the
- ownership model is a bit less confusing. ContextMenuItem is
- now *purely* a wrapper for the platformDescription. There
- are no other member variables. If you ever need the
- platformDescription outside of the MenuItem class, you have
- to call releasePlatformDescription(), which transfers
- ownership of the platformDescription to the caller.
- -Moves fontForSelection() from FrameMac into Editor.cpp.
- Turns out I don't need to use this function for my patch
- after all, but it doesn't seem like a terrible idea to move
- it anyway since we seem to be moving things from FrameMac
- into Editor these days anyway.
- * WebCore.exp:
- * editing/Editor.cpp:
- (WebCore::Editor::fontForSelection): Moved in from FrameMac.
- * editing/Editor.h: Same, and name change.
- * editing/mac/EditorMac.mm: Name change.
- * page/ContextMenuClient.h: contextMenuItemSelected() has to take a
- pointer to the parent context menu since ContextMenuItem no longer
- holds on to it.
- * page/ContextMenuController.cpp: Same.
- (WebCore::ContextMenuController::contextMenuItemSelected): Same.
- * page/mac/FrameMac.h: Move fontForSelection to Editor
- * page/mac/FrameMac.mm: Same.
- * page/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge fontForSelection:]): Account for above.
- * platform/ContextMenu.cpp:
- (WebCore::separatorItem): Can't be const because appendItem now
- expects a non-const menu item.
- (WebCore::createAndAppendFontSubMenu): Change name for clarity.
- (WebCore::createAndAppendSpellingAndGrammarSubMenu): Same.
- (WebCore::createAndAppendSpellingSubMenu): Same.
- (WebCore::createAndAppendSpeechSubMenu): Same.
- (WebCore::createAndAppendWritingDirectionSubMenu): Same.
- (WebCore::ContextMenu::populate): Account for above.
- (WebCore::triStateToBool): New helper.
- (WebCore::ContextMenu::checkOrEnableIfNeeded): Transfers
- logic from WebHTMLView into WebCore to determine if menu items are
- enabled or disabled and to determine if they require a check.
- * platform/ContextMenu.h:
- * platform/ContextMenuItem.h: Re-factored stuff so that our only
- member variable is the platform description.
- (WebCore::): Get rid of if-def.
- * platform/cf/RetainPtr.h: Add releaseRef like in PassRefPtr.
- (WebCore::RetainPtr::releaseRef):
- * platform/mac/ContextMenuItemMac.mm: Same as .h
- (WebCore::ContextMenuItem::ContextMenuItem): Same.
- (WebCore::ContextMenuItem::releasePlatformDescription): Same.
- (WebCore::ContextMenuItem::type): Same.
- (WebCore::ContextMenuItem::platformSubMenu): Same.
- (WebCore::ContextMenuItem::setType): Same.
- (WebCore::ContextMenuItem::setTitle): Same.
- (WebCore::ContextMenuItem::setSubMenu): Same.
- (WebCore::ContextMenuItem::setChecked): Same.
- (WebCore::ContextMenuItem::setEnabled): Same.
- * platform/mac/ContextMenuMac.mm:
- (-[WebCoreMenuTarget forwardContextMenuAction:]): Don't set the
- parent menu.
- (WebCore::setMenuItemTarget):
- (WebCore::ContextMenu::appendItem): Call releasePlatformDescription
- (WebCore::ContextMenu::insertItem): Same.
- 2006-12-15 Darin Fisher <darin@chromium.org>
- Reviewed by Oliver.
- Allow images to load into frames again. Tidy up code a bit and
- add some much needed documentation.
- * platform/MimeTypeRegistry.cpp:
- (WebCore::initialiseSupportedImageMIMETypes):
- (WebCore::initialiseSupportedNonImageMimeTypes):
- * platform/MimeTypeRegistry.h:
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Fix build.
- * loader/DocumentLoader.cpp:
- (WebCore::DocumentLoader::response):
- (WebCore::DocumentLoader::setResponse):
- (WebCore::DocumentLoader::isStopping):
- (WebCore::DocumentLoader::mainDocumentError):
- * loader/DocumentLoader.h:
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- More loader cleanup.
- * loader/DocumentLoader.h:
- (WebCore::DocumentLoader::isStopping):
- (WebCore::DocumentLoader::response):
- (WebCore::DocumentLoader::mainDocumentError):
- (WebCore::DocumentLoader::setResponse):
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::DocumentLoader):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::receivedData):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::prepareForLoadStart):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::setResponse):
- * loader/mac/ImageDocumentMac.mm:
- (WebCore::finishImageLoad):
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- * loader/DocumentLoader.h:
- Whoops, didn't mean to commit this.
-
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin and Brady (in no particular order).
-
- More loader cleanup.
-
- * loader/FrameLoader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::cancelledError):
- (WebCore::FrameLoader::fileDoesNotExistError):
- (WebCore::FrameLoader::cannotShowMIMEType):
- (WebCore::FrameLoader::interruptionForPolicyChangeError):
- * loader/mac/MainResourceLoaderMac.mm:
- * loader/mac/NetscapePlugInStreamLoaderMac.mm:
- 2006-12-16 Alexey Proskuryakov <ap@webkit.org>
- Try to fix Windows buid.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Added EventTarget.{h,cpp}
- 2006-12-15 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11610
- XMLHttpRequest.onreadystatechange doesn't provide access to the request object
- Created a separate EventTarget class, now that EventTargetNode isn't the only kind.
- Test: http/tests/xmlhttprequest/event-target.html
- * WebCore.xcodeproj/project.pbxproj: Added EventTarget.{h,cpp}
- * bindings/js/kjs_dom.cpp:
- (KJS::toJS): Added an EventTarget variant.
- * bindings/js/kjs_dom.h: Added toJS() for EventTarget; some minor style fixes.
- * bindings/objc/DOM.mm:
- (+[DOMNode _eventTargetWith:WebCore::]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- Added an EventTarget->DOMEventTarget converter in DOMNode (WebCoreInternal).
- It only works for nodes, since we don't have an ObjC binding for XMLHttpRequest.
- Corrected spelling of internalHeaderContent.
- * dom/Event.cpp:
- (WebCore::Event::setTarget):
- * dom/Event.h:
- (WebCore::Event::target):
- (WebCore::Event::currentTarget):
- (WebCore::Event::setCurrentTarget):
- These methods now work with EventTargets instead of Nodes.
- * dom/EventTarget.cpp: Added.
- (WebCore::EventTarget::~EventTarget):
- (WebCore::EventTarget::toNode):
- (WebCore::EventTarget::toXMLHttpRequest):
- * dom/EventTarget.h: Added.
- (WebCore::EventTarget::ref):
- (WebCore::EventTarget::deref):
- Originally, my intention was to share much of the implementation between
- EventTargetNode and XHR, but now I don't see anything substantial worth sharing.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent): Cast Node to EventTargetNode.
- * dom/EventTargetNode.h: Made EventTarget methods virtual.
- (WebCore::EventTargetNode::toNode): Added poor man's RTTI to upcast from EventTarget.
- (WebCore::EventTargetNode::refEventTarget):
- (WebCore::EventTargetNode::derefEventTarget):
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::toElement):
- (WebCore::MouseEvent::fromElement):
- * dom/MouseRelatedEvent.cpp:
- (WebCore::MouseRelatedEvent::receivedTarget):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- * html/HTMLLabelElement.cpp:
- (WebCore::HTMLLabelElement::defaultEventHandler):
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::handleContextMenuEvent):
- * rendering/RenderSlider.cpp:
- (WebCore::RenderSlider::mouseEventIsInThumb):
- Cast from EventTarget to Node as appropriate.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::dispatchEvent):
- (WebCore::XMLHttpRequest::callReadyStateChangeListener):
- Set target and currentTarget before dispatching.
- * xml/xmlhttprequest.h: Made EventTarget methods virtual, added a bool tempEvent parameter
- to match EventTargetNode.
- (WebCore::XMLHttpRequest::toXMLHttpRequest): Added poor man's RTTI to upcast from EventTarget.
- (WebCore::XMLHttpRequest::refEventTarget):
- (WebCore::XMLHttpRequest::derefEventTarget):
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- More loader cleanup, use KURL instead of NSURL in a couple of places.
- * loader/DocumentLoader.h:
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/ResourceLoader.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::DocumentLoader):
- (WebCore::DocumentLoader::prepareForLoadStart):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::willUseArchive):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::load):
- 2006-12-15 Brett Wilson <brettw@chromium.org>
- Reviewed by Darin and Alexey.
- Fix the Windows build, move various Client implementations out of
- WebCore and into WebKit.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ChromeClientWin.h: Removed.
- * bridge/win/ContextMenuClientWin.h: Removed.
- * bridge/win/EditorClientWin.h: Removed.
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- * bridge/win/FrameWin.h:
- * loader/win/FrameLoaderClientWin.cpp: Removed.
- * loader/win/FrameLoaderClientWin.h: Removed.
- * platform/network/win/ResourceHandleWin.cpp:
- (WebCore::ResourceHandle::start):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::DocumentLoader::URL):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::loadResourceSynchronously):
- (WebCore::Pasteboard::writeSelection):
- (WebCore::Pasteboard::writeURL):
- (WebCore::Pasteboard::clear):
- (WebCore::Pasteboard::~Pasteboard):
- (WebCore::PolicyCheck::call):
- (WebCore::PopupMenu::PopupMenu):
- (WebCore::ResourceHandle::loadsBlocked):
- (WebCore::ResourceLoader::cancel):
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11842
- REGRESSION: Using Safari's snippet editor leaves applewebdata: URLs in history
-
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::URLForHistory):
- Don't return appleweburls without an unreachable url.
- 2006-12-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Replace more instances of NSError with ResourceError.
-
- Also remove a check for a selector that was added pre-Tiger.
-
- * WebCore.exp:
- * loader/DocumentLoader.h:
- * loader/FrameLoader.h:
- * loader/ResourceLoader.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::setMainDocumentError):
- (WebCore::DocumentLoader::mainDocumentError):
- (WebCore::DocumentLoader::clearErrors):
- (WebCore::DocumentLoader::mainReceivedError):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::cancelMainResourceLoad):
- (WebCore::FrameLoader::opened):
- (WebCore::FrameLoader::mainReceivedError):
- (WebCore::FrameLoader::cancelledError):
- (WebCore::FrameLoader::fileDoesNotExistError):
- (WebCore::FrameLoader::handleUnimplementablePolicy):
- (WebCore::FrameLoader::setMainDocumentError):
- (WebCore::FrameLoader::mainReceivedCompleteError):
- (WebCore::FrameLoader::sendRemainingDelegateMessages):
- (WebCore::FrameLoader::requestFromDelegate):
- (WebCore::FrameLoader::loadedResourceFromMemoryCache):
- (WebCore::FrameLoader::loadResourceSynchronously):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::willSendRequest):
- (WebCore::ResourceLoader::didCancel):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::cancelledError):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::didCancel):
- 2006-12-15 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11824
- CSSStyleSheet.title property is always null
- Set title on the stylesheet just after creating it, for the HTML
- elements <link> and <style>.
- * css/StyleSheet.h:
- (WebCore::StyleSheet::setTitle):
- * dom/Element.cpp:
- (WebCore::Element::title):
- * dom/Element.h:
- * dom/StyleElement.cpp:
- (WebCore::StyleElement::childrenChanged):
- * dom/StyleElement.h:
- * html/HTMLElement.cpp:
- * html/HTMLElement.h:
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::parseMappedAttribute):
- (WebCore::HTMLLinkElement::setCSSStyleSheet):
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::parseMappedAttribute):
- * ksvg2/svg/SVGStyleElement.cpp:
- (WebCore::SVGStyleElement::setTitle):
- (WebCore::SVGStyleElement::parseMappedAttribute):
- * ksvg2/svg/SVGStyleElement.h:
- 2006-12-15 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- Fix compilation.
- * loader/SubresourceLoader.h:
- * platform/qt/PopupMenuQt.cpp:
- (WebCore::PopupMenu::PopupMenu):
- 2006-12-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- Use char* pointer + length instead of NSData in a bunch of places.
- * loader/DocumentLoader.h:
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/MainResourceLoader.h:
- * loader/NetscapePlugInStreamLoader.h:
- * loader/ResourceLoader.h:
- (WebCore::ResourceLoader::willStopBufferingData):
- * loader/SubresourceLoader.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::commitLoad):
- (WebCore::DocumentLoader::receivedData):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::didReceiveData):
- (WebCore::FrameLoader::receivedData):
- (WebCore::FrameLoader::committedLoad):
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::addData):
- (WebCore::MainResourceLoader::didReceiveData):
- * loader/mac/NetscapePlugInStreamLoaderMac.mm:
- (WebCore::NetscapePlugInStreamLoader::didReceiveData):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::addData):
- (WebCore::ResourceLoader::didReceiveData):
- (WebCore::ResourceLoader::willStopBufferingData):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::didReceiveData):
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::willStopBufferingData):
- * platform/network/mac/ResourceHandleMac.mm:
- (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
- 2006-12-14 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Added PopupMenuClient class so the PopupMenu class no longer needs to know
- about the RenderMenuList or the DOM.
- * platform/PopupMenu.h:
- (WebCore::PopupMenuClient::~PopupMenuClient):
- (WebCore::PopupMenu::create): Made this protected so PopupMenu can be subclassed.
- (WebCore::PopupMenu::disconnectClient): Renamed from disconnectMenuList.
- (WebCore::PopupMenu::client): Added.
- * platform/mac/PopupMenuMac.mm:
- (WebCore::PopupMenu::PopupMenu): Created using PopupMenuClient instead of RenderMenuList.
- (WebCore::PopupMenu::populate): Asks the client for info about the list items instead of looking at the DOM or the renderer.
- (WebCore::PopupMenu::show): ditto.
- (WebCore::PopupMenu::hide): ditto.
- * rendering/RenderMenuList.h: Now also inherits from PopupMenuClient.
- (WebCore::RenderMenuList::shouldPopOver): Added. Tells the popup whether the menu should pop over the client, or under.
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::~RenderMenuList): Calls disconnectClient().
- (WebCore::RenderMenuList::calcMinMaxWidth): Removed unnecessary (and harmful) call to updateFromElement. updateFromElmeent
- can add children, and you don't want to do that in the middle of calculating width.
- (WebCore::RenderMenuList::itemText): Added PopupClient method to provide information about the items in the menu list.
- (WebCore::RenderMenuList::itemIsEnabled): ditto.
- (WebCore::RenderMenuList::itemStyle): ditto.
- (WebCore::RenderMenuList::clientStyle): ditto.
- (WebCore::RenderMenuList::clientDocument): ditto.
- (WebCore::RenderMenuList::clientPaddingLeft): ditto.
- (WebCore::RenderMenuList::clientPaddingRight): ditto.
- (WebCore::RenderMenuList::listSize): ditto.
- (WebCore::RenderMenuList::selectedIndex): ditto.
- (WebCore::RenderMenuList::itemIsSeparator): ditto.
- (WebCore::RenderMenuList::itemIsLabel): ditto.
- (WebCore::RenderMenuList::itemIsSelected): ditto.
- (WebCore::RenderMenuList::setTextFromItem): ditto.
- 2006-12-14 Geoffrey Garen <ggaren@apple.com>
- Fixed <rdar://problem/4882713> GMAIL (REGRESSION): Can't apply font style,
- foreground or background to selected text
-
- Also <rdar://problem/4883751> REGRESSION: Caret fails to insert itself
- automatically in a new note window
-
- I'm rolling out my change to move focus to the page level because it caused
- too many unexpected and bizarre regressions. Our code relies on focus
- being per-document so that it can make focus changes that are effectively
- no-ops, and so that it can conflate focus and selection in some cases (a bad
- idea, since they're not the same).
-
- Hopefully we can revisit this, along with hover and active, in the future.
- * dom/Document.cpp:
- (WebCore::widgetForNode):
- (WebCore::relinquishesEditingFocus):
- (WebCore::acceptsEditingFocus):
- (WebCore::clearSelectionIfNeeded):
- (WebCore::Document::removedLastRef):
- (WebCore::Document::detach):
- (WebCore::Document::focusedNodeDetached):
- (WebCore::Document::setFocusedNode):
- * dom/Document.h:
- (WebCore::Document::focusedNode):
- * page/FocusController.cpp:
- * page/FocusController.h:
- 2006-12-14 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Geoff.
- - fix failing drag & drop layout tests
- * platform/mac/KURLMac.mm:
- (WebCore::KURL::getNSURL): Turn empty KURL into empty NSURL, but null KURL into
- nil.
- 2006-12-14 Steve Falkenburg <sfalken@apple.com>
- Build fix.
- * loader/MainResourceLoader.h:
- 2006-12-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John.
- Convert a bunch of NSErrors to ResourceError.
-
- Make the ResourceError accessor functions const.
-
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/MainResourceLoader.h:
- * loader/NetscapePlugInStreamLoader.h:
- * loader/ResourceLoader.h:
- * loader/SubresourceLoader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::didFailToLoad):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::interruptionForPolicyChangeError):
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::receivedError):
- (WebCore::MainResourceLoader::didCancel):
- (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
- (WebCore::MainResourceLoader::didFail):
- * loader/mac/NetscapePlugInStreamLoaderMac.mm:
- (WebCore::NetscapePlugInStreamLoader::didFail):
- (WebCore::NetscapePlugInStreamLoader::didCancel):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::didFail):
- (WebCore::ResourceLoader::didCancel):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * platform/network/ResourceError.h:
- (WebCore::ResourceError::domain):
- (WebCore::ResourceError::errorCode):
- (WebCore::ResourceError::failingURL):
- (WebCore::ResourceError::localizedDescription):
- (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
- 2006-12-14 George Staikos <staikos@kde.org>
- Link, after the last loader changes. Please update this directory with stubs when modifying the loader.
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::loadResourceSynchronously):
- 2006-12-14 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
- <rdar://problem/4866671>
- CrashTracer: 1 crashes in Mail after deleting a list item at WebCore::DeleteSelectionCommand::doApply()
-
- Don't allow VisiblePositions inside -webkit-user-select:none regions.
- Renamed inRenderedContent to isCandidate.
- * dom/Document.cpp:
- (WebCore::Document::updateSelection):
- * dom/Position.cpp:
- (WebCore::Position::previousCharacterPosition):
- (WebCore::Position::nextCharacterPosition):
- (WebCore::nodeIsUserSelectNone):
- (WebCore::Position::isCandidate):
- (WebCore::Position::rendersInDifferentPosition):
- * dom/Position.h:
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply):
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input):
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::canonicalPosition):
- * editing/htmlediting.cpp:
- (WebCore::nextCandidate):
- (WebCore::nextVisuallyDistinctCandidate):
- (WebCore::previousCandidate):
- (WebCore::previousVisuallyDistinctCandidate):
- * editing/visible_units.cpp:
- (WebCore::previousLinePosition):
- (WebCore::nextLinePosition):
- (WebCore::startOfParagraph):
- * page/Frame.cpp:
- (WebCore::Frame::styleForSelectionStart):
- 2006-12-14 David Hyatt <hyatt@apple.com>
- Get rid of the containsStart check and just rely on the selectionState
- bits. This allows selection gap filling to behave properly in the presence
- of inline blocks and inline tables on lines when the selection originates
- inside the inline block.
- Reviewed by ggaren
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::fillInlineSelectionGaps):
- 2006-12-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John.
-
- General loader cleanup, convert NSURLResponse to ResourceResponse in some places.
-
- * loader/DocumentLoader.h:
- * loader/SubresourceLoader.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::addResponse):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::opened):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::create):
- 2006-12-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Add loadResourceSynchronously to ResourceHandle and have FrameLoader use it instead of
- calling NSURLConnection directly.
- Add an isNull flag to ResourceError so we can convert correctly between nil NSErrors and ResourceErrors.
- Get rid of ServeSynchronousRequest and use the loader instead.
-
- * WebCore.exp:
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * loader/FrameLoader.h:
- * loader/LoaderFunctions.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::canLoad):
- (WebCore::FrameLoader::loadResourceSynchronously):
- * loader/mac/LoaderFunctionsMac.mm:
- * platform/network/ResourceError.h:
- (WebCore::ResourceError::ResourceError):
- (WebCore::ResourceError::isNull):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceRequest.cpp:
- (WebCore::ResourceRequest::isConditional):
- * platform/network/ResourceRequest.h:
- * platform/network/mac/ResourceErrorMac.mm:
- (-[NSError WebCore]):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::loadResourceSynchronously):
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- 2006-12-14 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Darin.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11830
- Fix fundamental problems with JS SVG POD types.
- (currently: FloatPoint/FloatRect/AffineTransform)
- This doesn't affect any testcase, but when I wrote my SVGLength* -> SVGLength
- the problem got visible (aka. baseVal-animVal-equality.svg broke and more)
- With that patch applied first, none breaks - so SVG POD JS wrappers do work now.
- In detail:
- - Fix setBaseValue() confusion. ONLY use the hash map in SVGDocumentExtension
- when we're animating a property. Add "start##Property" / "stop##Property" methods
- which take care, of moving "animVal" -> "baseVal" hash, and back after animation stopped.
- These new methods are not yet used anywhere, but finally the "animated property" system is complete.
- - Offer a new JSSVGPODTypeWrapper class, wrapping around non-pointer POD types like FloatPoint etc.
- to be used in the generated JS bindings. Currently if you modified ie the "x" property of a SVGPoint
- from JS, you only actually modified the "m_x" object stored in the JSSVGPoint wrapper.
- If you take SVGLength as example (more frequently used in the JS SVG bindings, that's why I'm using it)
- "document.rootElement.width.baseVal.value = 100;" only modified the "SVGLength m_impl" object stored in
- JSSVGLength, but the "SVGSVGElement" didn't notice it width got changed. The new commitChanges() logic
- fixes these problems.
- It's quite hard too describe the actual changes, if one is not familiar with the code. This is the result
- of endless discussions with Eric Seidel, and we hope this is a decent solution addressing all issues.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSSVGMatrixCustom.cpp:
- (WebCore::JSSVGMatrix::inverse):
- (WebCore::JSSVGMatrix::rotateFromVector):
- * bindings/js/JSSVGPODTypeWrapper.h: Added.
- (WebCore::JSSVGPODTypeWrapper::JSSVGPODTypeWrapper):
- (WebCore::JSSVGPODTypeWrapper::~JSSVGPODTypeWrapper):
- (WebCore::JSSVGPODTypeWrapper::operator PODType&):
- (WebCore::JSSVGPODTypeWrapper::commitChange):
- (WebCore::JSSVGPODTypeWrapperCreator::JSSVGPODTypeWrapperCreator):
- (WebCore::JSSVGPODTypeWrapperCreator::~JSSVGPODTypeWrapperCreator):
- (WebCore::JSSVGPODTypeWrapperCreator::commitChange):
- * bindings/scripts/CodeGeneratorJS.pm:
- * ksvg2/misc/SVGDocumentExtensions.h:
- (WebCore::SVGDocumentExtensions::removeBaseValue):
- * ksvg2/svg/SVGElement.h:
- 2006-12-14 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11828
- Fix a leak of NSURLRequest on each update - RetainPtr retains the object itself.
- * platform/network/mac/ResourceRequestMac.mm:
- (WebCore::ResourceRequest::doUpdatePlatformRequest):
- 2006-12-14 Simon Hausmann <hausmann@kde.org>
- Reviewed by Zack Rusin.
- * WebCore.pro: Clean up the xpath grammar generation rule.
- 2006-12-14 Zack Rusin <zack@kde.org>
- Make it link with temporary stubs.
- * loader/qt/DocumentLoaderQt.cpp:
- (WebCore::DocumentLoader::originalRequest):
- (WebCore::DocumentLoader::originalRequestCopy):
- (WebCore::DocumentLoader::request):
- (WebCore::DocumentLoader::initialRequest):
- (WebCore::DocumentLoader::actualRequest):
- (WebCore::DocumentLoader::URL):
- 2006-12-14 Zack Rusin <zack@kde.org>
- Compilation fixes for the Qt port after last nights
- changes.
- * loader/qt/DocumentLoaderQt.cpp:
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::unreachableURL):
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::PolicyCheck::call):
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::setHTTPReferrer):
- 2006-12-14 Rob Buis <buis@kde.org>
- Reviewed by Oliver.
- http://bugs.webkit.org/show_bug.cgi?id=11726
- SVG Image do not take into account clip/overflow when hit testing
- Take into account the overflowRect when hit-testing <svg> container.
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::viewportTransform):
- (WebCore::RenderSVGContainer::nodeAtPoint):
- * rendering/RenderSVGContainer.h:
- 2006-12-13 David Hyatt <hyatt@apple.com>
- Fix for bug 11825, dragging elements via -khtml-user-drag is broken (affects Dashboard). Make sure
- to clear the paintingRoot properly when recurring into children. It would be nice to find a design
- that prevented this mistake from being made and didn't require explicit clearing of the root.
- Reviewed by olliej
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paint):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintChildren):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paint):
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::paint):
- 2006-12-13 Anders Carlsson <acarlsson@apple.com>
- * loader/FrameLoader.h:
- id is mac-only.
-
- 2006-12-13 Brady Eidson <beidson@apple.com>
- Implicitly reviewed by Darin, Hyatt, Maciej, and others!
- Fixes a document tear down crash.
- Changes a few long standing assertions to our new style
- * dom/Document.cpp:
- (WebCore::Document::~Document):
- (WebCore::Document::topDocument):
- 2006-12-13 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - converted many places to use ResourceRequest instead of NSURLRequest
- * WebCore.exp:
- * loader/DocumentLoader.h:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::stopPolicyCheck):
- * loader/FrameLoader.h:
- (WebCore::PolicyCheck::request):
- * loader/FrameLoaderClient.h:
- * loader/MainResourceLoader.h:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::DocumentLoader):
- (WebCore::DocumentLoader::originalRequest):
- (WebCore::DocumentLoader::originalRequestCopy):
- (WebCore::DocumentLoader::request):
- (WebCore::DocumentLoader::initialRequest):
- (WebCore::DocumentLoader::actualRequest):
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::unreachableURL):
- (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
- (WebCore::DocumentLoader::setRequest):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::setLastCheckedRequest):
- (WebCore::DocumentLoader::lastCheckedRequest):
- (WebCore::DocumentLoader::URLForHistory):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::startLoadingMainResource):
- (WebCore::FrameLoader::applyUserAgent):
- (WebCore::FrameLoader::originalRequest):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::initialRequest):
- (WebCore::FrameLoader::setRequest):
- (WebCore::FrameLoader::checkNavigationPolicy):
- (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameLoader::checkNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::FrameLoader::isReloading):
- (WebCore::FrameLoader::referrer):
- (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
- (WebCore::FrameLoader::loadResourceSynchronously):
- (WebCore::FrameLoader::originalRequestURL):
- (WebCore::PolicyCheck::set):
- (WebCore::PolicyCheck::call):
- (WebCore::PolicyCheck::clearRequest):
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
- (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
- (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::create):
- * loader/mac/WebDataProtocol.h:
- * loader/mac/WebDataProtocol.mm:
- * platform/KURL.cpp:
- (WebCore::operator!=):
- * platform/KURL.h:
- * platform/mac/KURLMac.mm:
- (WebCore::KURL::getNSURL):
- * platform/network/FormData.h:
- (WebCore::operator==):
- (WebCore::operator!=):
- * platform/network/ResourceRequest.cpp:
- (WebCore::operator==):
- * platform/network/ResourceRequest.h:
- * platform/network/mac/ResourceRequestMac.mm:
- (WebCore::ResourceRequest::doUpdatePlatformRequest):
- 2006-12-13 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin Adler, Dave Hyatt.
-
- Beefed up FocusController to handle frame focus. Changed implementors to
- use FocusController, rather than the widget hierarchy, to focus frames.
- (WebCore::FocusController::focusedNode): Made a minor change to focus a frame
- before focusing the element inside of it. This matches FF.
- (WebCore::FocusController::focusedFrame):
- * platform/Widget.h:
- 2006-12-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by adele
- <rdar://problem/4818145>
- Cannot setSelectedDOMRange to non-editable island unless it has editable content on both sides
-
- There are editable positions before/after a "non-editable island" if its
- a table, but the code in canonicalPosition was not using
- editableRootForPosition to find root editable elements.
-
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::canonicalPosition): Use editableRootForPosition
- to fix the table case.
- 2006-12-13 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam.
- Added missing forwarding headers.
- * ForwardingHeaders/kjs/value.h: Added.
- * ForwardingHeaders/wtf/HashTable.h: Added.
- 2006-12-13 Lars Knoll <lars@trolltech.com>
- Reviewed by Maciej, Zack.
- Make the Qt cbuild compile again.
- * WebCore.pro:
- * loader/qt/ResourceLoaderQt.cpp:
- * platform/network/qt/ResourceHandleQt.cpp:
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::loadsBlocked):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClient::openURL):
- (WebCore::FrameQtClient::submitForm):
- 2006-12-12 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- Changed #import to #include to match the rest of our ForwardingHeaders.
- * ForwardingHeaders/wtf/StringExtras.h:
- 2006-12-12 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4757667>
- GoogleDocs: Style menu does not open
- * bindings/js/kjs_window.cpp:
- (KJS::Selection::getValueProperty): Added rangeCount.
- * bindings/js/kjs_window.h:
- (KJS::Selection::):
- * editing/SelectionController.h:
- (WebCore::SelectionController::rangeCount): Added.
- 2006-12-12 Alice Liu <alice.liu@apple.com>
- Reviewed by Oliver.
- * bindings/js/JSSVGMatrixCustom.cpp:
- added #ifdef SVG_SUPPORT
- 2006-12-12 Anders Carlsson <acarlsson@apple.com>
- Suggested by Darin.
- * loader/ResourceLoader.cpp:
- Move down include of ResourceHandle.h.
- 2006-12-12 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adam Roben, Dave Hyatt, Darin Adler.
-
- Factored focus control into a FocusController class. I inted to use this
- class for handling window active state and the focused frame, as well.
- Layout tests pass.
- * WebCore.xcodeproj/project.pbxproj:
- * dom/Document.cpp:
- (WebCore::Document::view):
- (WebCore::Document::page): New helper function.
- * dom/Document.h: Moved setters before getters.
- (WebCore::Document::hoverNode):
- (WebCore::Document::activeNode):
- * dom/Node.cpp:
- (WebCore::Node::detach): Use the FocusController.
- * page/FocusController.cpp: Added.
- (WebCore::shouldFocus): renamed and refactored this helper function.
- (WebCore::shouldUnfocus): ditto.
- * page/FocusController.h: Added.
- 2006-12-12 Anders Carlsson <acarlsson@apple.com>
- Rubber Stamped by Geoff.
- * platform/Base64.cpp:
- * platform/Base64.h:
- Put functions inside of the WebCore namespace.
- 2006-12-12 Anders Carlsson <acarlsson@apple.com>
- Try fixing the non-Mac builds.
-
- * loader/ResourceLoader.cpp:
- (WebCore::ResourceLoader::willSendRequest):
- (WebCore::ResourceLoader::didReceiveResponse):
- (WebCore::ResourceLoader::didReceiveData):
- (WebCore::ResourceLoader::didFinishLoading):
- (WebCore::ResourceLoader::didFail):
- * loader/SubresourceLoader.cpp:
- (WebCore::SubresourceLoader::create):
- * loader/SubresourceLoader.h:
- 2006-12-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Turn ResourceLoader into a ResourceHandleClient and stop using NSURLConnection in the loader.
- * WebCore.exp:
- Add new methods needed by WebKit.
-
- * WebCore.xcodeproj/project.pbxproj:
- Make ResourceHandle.h a private header.
-
- * loader/FrameLoaderClient.h:
- Change the download method to take a ResourceHandle instead of an NSURLConnection.
-
- * loader/MainResourceLoader.h:
- Get rid of the proxy instance variable, that's handled by ResourceHandlw now.
-
- * loader/ResourceLoader.h:
- (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
- (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
- (WebCore::ResourceLoader::willStopBufferingData):
- (WebCore::ResourceLoader::willCacheResponse):
- (WebCore::ResourceLoader::receivedCredential):
- (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
- (WebCore::ResourceLoader::receivedCancellation):
- (WebCore::ResourceLoader::handle):
- * loader/SubresourceLoader.h:
- Make ResourceLoader a ResourceHandleClient, moving the methods from SubresourceLoader.
-
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::MainResourceLoader):
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- (WebCore::MainResourceLoader::loadNow):
- (WebCore::MainResourceLoader::load):
- Use a ResourceHandle instead of an NSURLConnection.
-
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::releaseResources):
- (WebCore::ResourceLoader::load):
- (WebCore::ResourceLoader::setDefersLoading):
- (WebCore::ResourceLoader::resourceData):
- (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
- (WebCore::ResourceLoader::didCancel):
- (WebCore::ResourceLoader::willSendRequest):
- (WebCore::ResourceLoader::didReceiveResponse):
- (WebCore::ResourceLoader::didReceiveData):
- (WebCore::ResourceLoader::didFinishLoading):
- (WebCore::ResourceLoader::didFail):
- Remove the WebCoreResourceLoaderAsDelegate class, use a ResourceHandle instead of an NSURLConnection.
-
- * loader/mac/SubresourceLoaderMac.mm:
- Remove ResourceHandleClient methods.
-
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::ResourceHandle):
- (WebCore::ResourceHandle::create):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleInternal.h:
- (WebCore::ResourceHandleInternal::ResourceHandleInternal):
- Add an extra argument denoting whether this ResourceHandle can possibly be "converted" into one used for downloads.
-
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::releaseProxy):
- (WebCore::ResourceHandle::connection):
- New methods for creating a NSURLConnectionDelegateProxy which is used when creating a NSURLDownload from an existing
- connection.
- 2006-12-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::load):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::start):
- Move the didTellBridgeAboutLoad call to SubresourceLoader in preparation for getting rid of
- the DocLoader parameter to ResourceHandle::create.
- 2006-12-12 George Staikos <staikos@kde.org>
- Make the last checkin compile.
- * WebCore.pro:
- * ksvg2/svg/SVGTransform.cpp:
- 2006-12-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Sam Weinig & Rob Buis.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11797
- Remove SVGMatrix, replace it by AffineTransform usage everywhere.
- Changed AffineTransform API to be able to be used within generation
- (m11() -> a(), m12() -> b(), ...). Add some methods needed for SVG.
- The actual SVGMatrix -> AffineTransformation patch has been created
- by Rob - I just adapted it to the autogenerated POD style.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSSVGMatrixCustom.cpp: Added.
- (WebCore::JSSVGMatrix::inverse):
- (WebCore::JSSVGMatrix::rotateFromVector):
- * bindings/objc/DOMInternal.h:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- * ksvg2/misc/SVGImageLoader.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
- (WebCore::SVGAnimateTransformElement::initialMatrix):
- (WebCore::SVGAnimateTransformElement::transformMatrix):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGClipPathElement.cpp:
- (WebCore::SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGLengthList.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLocatable.cpp:
- (WebCore::SVGLocatable::getCTM):
- (WebCore::SVGLocatable::getScreenCTM):
- (WebCore::SVGLocatable::getTransformToElement):
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMatrix.cpp: Removed.
- * ksvg2/svg/SVGMatrix.h: Removed.
- * ksvg2/svg/SVGMatrix.idl:
- * ksvg2/svg/SVGNumberList.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGPoint.idl:
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- (WebCore::SVGPreserveAspectRatio::getCTM):
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::viewport):
- (WebCore::SVGSVGElement::createSVGMatrix):
- (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
- (WebCore::SVGSVGElement::getCTM):
- (WebCore::SVGSVGElement::getScreenCTM):
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- (WebCore::SVGStyledLocatableElement::getCTM):
- (WebCore::SVGStyledLocatableElement::getScreenCTM):
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (WebCore::SVGStyledTransformableElement::localMatrix):
- (WebCore::SVGStyledTransformableElement::getCTM):
- (WebCore::SVGStyledTransformableElement::getScreenCTM):
- (WebCore::SVGStyledTransformableElement::updateLocalTransform):
- (WebCore::SVGStyledTransformableElement::attach):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::localMatrix):
- (WebCore::SVGTextElement::updateLocalTransform):
- (WebCore::SVGTextElement::attach):
- (WebCore::SVGTextElement::getScreenCTM):
- (WebCore::SVGTextElement::getCTM):
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTransform.cpp:
- (SVGTransform::SVGTransform):
- (SVGTransform::matrix):
- (SVGTransform::setMatrix):
- (SVGTransform::setTranslate):
- (SVGTransform::setScale):
- (SVGTransform::setRotate):
- (SVGTransform::setSkewX):
- (SVGTransform::setSkewY):
- * ksvg2/svg/SVGTransform.h:
- * ksvg2/svg/SVGTransformList.cpp:
- (SVGTransformList::createSVGTransformFromMatrix):
- (SVGTransformList::concatenate):
- * ksvg2/svg/SVGTransformList.h:
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::SVGTransformable::getCTM):
- (WebCore::SVGTransformable::getScreenCTM):
- (WebCore::SVGTransformable::parseTransformAttribute):
- * ksvg2/svg/SVGTransformable.h:
- * platform/graphics/AffineTransform.cpp:
- (WebCore::AffineTransform::multiply):
- (WebCore::AffineTransform::scale):
- (WebCore::AffineTransform::scaleNonUniform):
- (WebCore::AffineTransform::rotateFromVector):
- (WebCore::AffineTransform::flipX):
- (WebCore::AffineTransform::flipY):
- (WebCore::AffineTransform::skewX):
- (WebCore::AffineTransform::skewY):
- * platform/graphics/AffineTransform.h:
- * platform/graphics/cairo/AffineTransformCairo.cpp:
- (WebCore::AffineTransform::a):
- (WebCore::AffineTransform::setA):
- (WebCore::AffineTransform::b):
- (WebCore::AffineTransform::setB):
- (WebCore::AffineTransform::c):
- (WebCore::AffineTransform::setC):
- (WebCore::AffineTransform::d):
- (WebCore::AffineTransform::setD):
- (WebCore::AffineTransform::e):
- (WebCore::AffineTransform::setE):
- (WebCore::AffineTransform::f):
- (WebCore::AffineTransform::setF):
- (WebCore::AffineTransform::inverse):
- * platform/graphics/cg/AffineTransformCG.cpp:
- (WebCore::AffineTransform::a):
- (WebCore::AffineTransform::setA):
- (WebCore::AffineTransform::b):
- (WebCore::AffineTransform::setB):
- (WebCore::AffineTransform::c):
- (WebCore::AffineTransform::setC):
- (WebCore::AffineTransform::d):
- (WebCore::AffineTransform::setD):
- (WebCore::AffineTransform::e):
- (WebCore::AffineTransform::setE):
- (WebCore::AffineTransform::f):
- (WebCore::AffineTransform::setF):
- (WebCore::AffineTransform::inverse):
- * platform/graphics/qt/AffineTransformQt.cpp:
- (WebCore::AffineTransform::a):
- (WebCore::AffineTransform::setA):
- (WebCore::AffineTransform::b):
- (WebCore::AffineTransform::setB):
- (WebCore::AffineTransform::c):
- (WebCore::AffineTransform::setC):
- (WebCore::AffineTransform::d):
- (WebCore::AffineTransform::setD):
- (WebCore::AffineTransform::e):
- (WebCore::AffineTransform::setE):
- (WebCore::AffineTransform::f):
- (WebCore::AffineTransform::setF):
- (WebCore::AffineTransform::inverse):
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- (WebCore::RenderForeignObject::nodeAtPoint):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::mapAbsolutePointToLocal):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- (WebCore::RenderSVGImage::nodeAtPoint):
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
- (WebCore::RenderSVGText::nodeAtPoint):
- (WebCore::RenderSVGText::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- * rendering/SVGRenderTreeAsText.cpp:
- (WebCore::operator<<):
- 2006-12-12 George Staikos <staikos@kde.org>
- Reviewed by Alexey.
- Fix the Qt build again.
- * WebCore.pro:
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::load):
- * platform/qt/PasteboardQt.cpp:
- (WebCore::Pasteboard::writeSelection):
- (WebCore::Pasteboard::writeURL):
- (WebCore::Pasteboard::clear):
- 2006-12-12 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth Dakin.
-
- Moved focus control to the page level. Fixed a minor bug where a node
- would retain keyboard focus even when removed from the document.
-
- We should probably move this, along with hover and active, into a separate
- FocusController. But I'm too tired right now.
- * dom/Document.cpp: Migrated code to Page
- (WebCore::Document::removedLastRef):
- (WebCore::Document::detach):
- (WebCore::Document::setFocusedNode):
- (WebCore::Document::focusedNode):
- * dom/Document.h:
- * dom/Node.cpp:
- (WebCore::Node::detach): Clear ourselves from keyboard focus. This fixes
- the minor bug and was also necessary to prevent regressions caused by hanging
- on to a focused node after the document was replaced.
- * dom/Node.h:
- (WebCore::Node::inDetach):
- * page/Page.cpp: Migrated code from Document
- (WebCore::shouldAcquireEditingFocus):
- (WebCore::shouldRelinquishEditingFocus):
- (WebCore::clearSelectionIfNeeded):
- (WebCore::widgetForNode):
- (WebCore::Page::setFocusedNode):
- * page/Page.h:
- (WebCore::Page::focusedNode):
- 2006-12-11 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11053
- XMLHttpRequest should be an EventTarget
- Test: http/tests/xmlhttprequest/event-target.html
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequest::mark):
- (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
- (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
- * bindings/js/JSXMLHttpRequest.h:
- (KJS::JSXMLHttpRequest::):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::addEventListener):
- (WebCore::XMLHttpRequest::removeEventListener):
- (WebCore::XMLHttpRequest::dispatchEvent):
- (WebCore::XMLHttpRequest::callReadyStateChangeListener):
- * xml/xmlhttprequest.h:
- (WebCore::XMLHttpRequest::eventListeners):
- Implement EventTarget methods (except for NS variations, which Firefox doesn't have either).
- 2006-12-11 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11809
- fast/dom/gc-8.html crash in alternate-thread marking code in ScriptInterpreter
- DocumentType objects were getting filed under the wrong document in the
- DOM objects structure.
- * bindings/js/kjs_binding.h: Added a destructor for debugging purposes only.
- * bindings/js/kjs_binding.cpp:
- (KJS::wrapperSet): Added. Set of outstanding wrappers for debugging.
- (KJS::addWrapper): Added.
- (KJS::removeWrapper): Added.
- (KJS::removeWrappers): Added.
- (KJS::DOMObject::~DOMObject): Added. Asserts that there is no outstanding reference
- to this wrapper since it's being destroyed.
- (KJS::ScriptInterpreter::putDOMObject): Added a call to ADD_WRAPPER.
- (KJS::ScriptInterpreter::forgetDOMObject): Added a call to REMOVE_WRAPPER.
- (KJS::ScriptInterpreter::forgetDOMNodeForDocument): Added a call to REMOVE_WRAPPER.
- (KJS::ScriptInterpreter::putDOMNodeForDocument): Added a call to ADD_WRAPPER.
- (KJS::ScriptInterpreter::forgetAllDOMNodesForDocument): Added a call to REMOVE_WRAPPERS.
- (KJS::ScriptInterpreter::updateDOMNodeDocument): Added calls to REMOVE_WRAPPER and
- ADD_WRAPPER so the out-of-order transaction doesn't upset the assertions in the functions
- we're calling. Another solution would be to reorder the two, but I think that would
- create a race where another thread could garbage collect after the forget but before the put.
- (KJS::ScriptInterpreter::wasRunByUserGesture): Tweaked formatting.
- * dom/Document.cpp: (WebCore::Document::adoptNode): Removed call to updateDOMNodeDocument
- since setDocument now takes care of that.
- * dom/Node.cpp:
- (WebCore::Node::setDocument): Added call to updateDOMNodeDocument here.
- (WebCore::Node::checkAddChild): Removed call to updateDOMNodeDocument since setDocument
- now takes care of that.
- 2006-12-11 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9673
- Add support for window.atob() and window.btoa()
- * WebCore.xcodeproj/project.pbxproj: Added Base64.{h,cpp}
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction):
- * bindings/js/kjs_window.h:
- (KJS::Window::):
- * platform/Base64.cpp: Added.
- (base64Encode):
- (base64Decode):
- * platform/Base64.h: Added.
- * ForwardingHeaders/wtf/StringExtras.h: Added.
- * platform/DeprecatedString.cpp: Use strncasecmp from StringExtras.
- 2006-12-11 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - did some of the Mac-specific file moves mentioned in my recent mail to the WebKit list
- * WebCore.xcodeproj/project.pbxproj: Updated project for file moves.
- * bridge/mac/FrameMac.h: Moved to page/mac.
- * bridge/mac/FrameMac.mm: Ditto.
- * bridge/mac/WebCoreFrameBridge.h: Ditto.
- * bridge/mac/WebCoreFrameBridge.mm: Ditto.
- * bridge/mac/WebCoreFrameView.h: Ditto.
- * bridge/mac/WebCoreViewFactory.h: Ditto.
- * bridge/mac/WebCoreViewFactory.m: Ditto.
- * bridge/mac/WebDashboardRegion.h: Ditto.
- * bridge/mac/WebDashboardRegion.m: Ditto.
- * bridge/mac/WebCoreKeyboardAccess.h: Moved to page/mac,
- renamed WebCoreKeyboardUIMode.h, and made a C++ header.
- * page/EventHandler.h: Updated for change to WebCoreKeyboardAccess.
- * page/mac/EventHandlerMac.mm:
- (WebCore::EventHandler::tabsToLinks): Ditto.
- (WebCore::EventHandler::tabsToAllControls): Ditto.
- (WebCore::EventHandler::keyboardUIMode): Ditto.
- 2006-12-11 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Primarily, this patch implements/hooks-up actions for the sub-menu
- items in WebCore context menus. I fixed a few other things along
- the way too:
- -Made BUILDING_ON_TIGER ifdef work within C++ as well as
- Obj-C
- -Fixed bug where we would throw and Obj-C exception and
- fail to pop up menus with more than one separator item.
- -Re-named some of the spelling/grammar tags since Tiger and
- Leopard share more of the actions than initially
- anticipated.
- * WebCorePrefix.h: Make BUILDING_ON_TIGER available to C++
- * bridge/EditorClient.h: New functions to toggle
- spelling/grammar checking.
- * editing/Editor.cpp:
- (WebCore::Editor::toggleContinuousSpellChecking): Call into client.
- (WebCore::Editor::toggleGrammarChecking): Same.
- (WebCore::Editor::toggleBold): call execToggleBold()
- (WebCore::Editor::toggleUnderline): Create appropriate underline
- style and apply to selection.
- (WebCore::Editor::setBaseWritingDirection): Create appropriate
- writing direction and apply to selection.
- * editing/Editor.h:
- * editing/mac/EditorMac.mm: New functions to show spelling guesses,
- fonts, styles, and color panels.
- * page/ContextMenuClient.h: New functions for the speech sub-menu.
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::contextMenuItemSelected): Fill in
- editing sub-menu actions.
- * platform/ContextMenu.cpp:
- (WebCore::separatorItem): Helper function to create a separator
- item.
- (WebCore::createFontSubMenu): Put very mac-specific things within a
- platform ifdef.
- (WebCore::createSpellingAndGrammarSubMenu): Re-named some of the
- spelling sub-menu tags.
- (WebCore::createSpellingSubMenu): Same.
- (WebCore::ContextMenu::populate): We can't share the separator
- item. When we do, menus with more than one separator throw and obj-
- c exception and fail to pop-up.
- * platform/ContextMenuItem.h:
- (WebCore::): Re-named some of the spelling sub-menu tags.
- 2006-12-11 Alice Liu <alice.liu@apple.com>
- Reviewed by Geoff, Adam.
- Switch to use the Editor for copying URLs. Also some Pasteboard and PlatformMouseEvent cleanup.
- All layout tests pass as they would without this patch.
- * WebCore.exp:
- added Editor::copyURL to be called from WebKit
-
- * editing/Editor.cpp:
- (WebCore::Editor::tryDHTMLCopy):
- (WebCore::Editor::tryDHTMLCut):
- Pasteboard::clearTypes() changed to clear()
- (WebCore::Editor::writeSelectionToPasteboard):
- (WebCore::Editor::cut):
- (WebCore::Editor::copy):
- Changed signature of writeSelection to take raw pointer instead of PassRefPtr
- (WebCore::Editor::copyURL):
- * editing/Editor.h:
- Added copyURL.
-
- * page/ContextMenuClient.h:
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::contextMenuItemSelected):
- Removed copyLinkToClipboard
-
- * platform/KURL.cpp:
- (WebCore::KURL::lastPathComponent):
- * platform/KURL.h:
- Added lastPathComponent.
-
- * platform/Pasteboard.h:
- Changed some function names.
- Moved some functions out of class to static.
-
- * platform/PlatformMouseEvent.h:
- (WebCore::):
- Removed MouseEventType enum, added NoButton to MouseButton without disturbing other button values.
-
- * platform/mac/PasteboardMac.mm:
- Added writeURL, and moved some things around
-
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- Add some calls necessary for Pasteboard::writeURL to work
- 2006-12-11 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - http://bugs.webkit.org/show_bug.cgi?id=11794
- fix lifetime problems affecting Frame's ownerElement pointer
- * CMakeLists.txt:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- Updated for new source files.
- * WebCore.exp: Updated for changes to entry point names.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
- * bridge/win/FrameWin.h:
- * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQt.cpp: (WebCore::FrameQt::FrameQt):
- Updated owner element type to HTMLFrameOwnerElement.
- * bridge/mac/WebCoreFrameBridge.h: Removed non-C++ case since we don't
- use that any more. Updated owner element type to HTMLFrameOwnerElement.
- * dom/Document.cpp: Added include so that the ownerElement function can
- compile (since it downcasts an HTMLFrameOwnerElement to an Element).
- * html/HTMLFrameElement.cpp:
- (WebCore::containingFrameSetElement): Moved this function in here; it
- doesn't need to be a member function.
- (WebCore::HTMLFrameElement::attach): Updated to call this.
- * html/HTMLFrameElementBase.h:
- * html/HTMLFrameElementBase.cpp:
- (WebCore::HTMLFrameElementBase::HTMLFrameElementBase): Inherit from
- HTMLFrameOwnerElement. Removed contentFrame, contentDocument, and
- containingFrameSetElement. Removed friend classes.
- * html/HTMLFrameOwnerElement.h: Added.
- * html/HTMLFrameOwnerElement.cpp: Added.
- * html/HTMLEmbedElement.h:
- * html/HTMLEmbedElement.cpp:
- * html/HTMLObjectElement.h:
- * html/HTMLObjectElement.cpp:
- Remove now-unneeded contentDocument functions.
- * html/HTMLPlugInElement.h:
- * html/HTMLPlugInElement.cpp:
- (WebCore::HTMLPlugInElement::HTMLPlugInElement): Inherit from
- HTMLFrameOwnerElement.
- * loader/FormState.h:
- * loader/FormState.cpp: Use HTMLFormElement instead of just Element.
- * loader/FrameLoader.h:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::requestFrame): Use HTMLFormElement.
- (WebCore::FrameLoader::loadSubframe): Ditto.
- (WebCore::FrameLoader::requestObject): Don't pass an element parameter
- to shouldUsePlugin, and remove now-unneeded type casts.
- (WebCore::FrameLoader::shouldUsePlugin): Removed unneeded element parameter.
- (WebCore::FrameLoader::handleFallbackContent): Use HTMLFrameOwnerElement.
- (WebCore::FrameLoader::updateBaseURLForEmptyDocument): Ditto.
- (WebCore::FrameLoader::isHostedByObjectElement): Ditto.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load): Use HTMLFormElement.
- (WebCore::FrameLoader::post): Ditto.
- (WebCore::FrameLoader::createFrame): Use HTMLFrameOwnerElement.
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/Frame.cpp:
- (WebCore::parentFromOwnerElement): Use HTMLFrameOwnerElement.
- (WebCore::Frame::Frame): Ditto. Also set m_contentFrame on the owner element.
- (WebCore::Frame::ownerElement): Ditto.
- (WebCore::Frame::ownerRenderer): Ditto.
- (WebCore::Frame::disconnectOwnerElement): Clear m_contentFrame on the owner
- element before disconnecting it.
- (WebCore::FramePrivate::FramePrivate): Use HTMLFrameOwnerElement.
- * page/mac/EventHandlerMac.mm: Include HTMLFrameOwnerElement.h so that
- the code here will compile (no code changes needed).
- * rendering/RenderFrame.cpp: (WebCore::RenderFrame::viewCleared):
- Updated so that RenderFrame doesn't need to be a friend of HTMLFrameElementBase.
- * rendering/RenderPart.h:
- * rendering/RenderPart.cpp: (WebCore::RenderPart::RenderPart):
- Use HTMLFrameOwnerElement.
- * rendering/RenderPartObject.h:
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::RenderPartObject): Use HTMLFrameOwnerElement.
- (WebCore::RenderPartObject::viewCleared): Updated so that RenderFrame doesn't
- need to be a friend of HTMLFrameElementBase.
- - other changes
- * platform/network/ResourceHandleInternal.h: Added Noncopyable and
- fixed indentation.
- 2006-12-11 David Hyatt <hyatt@apple.com>
- Fix failing layout test. Remove WTF::Unicode::isSpace and just revert
- the caller to the old behavior.
- Reviewed by darin
- * platform/StringImpl.cpp:
- (WebCore::isSpace):
- 2006-12-11 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=11807
- Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
- * page/EventHandler.cpp:
- (WebCore::EventHandler::EventHandler):
- (WebCore::EventHandler::handleMousePressEvent):
- (WebCore::EventHandler::handleMouseMoveEvent):
- (WebCore::EventHandler::handleMouseReleaseEvent):
- (WebCore::EventHandler::autoscrollTimerFired):
- * page/EventHandler.h:
- * page/mac/EventHandlerMac.mm:
- (WebCore::EventHandler::handleDrag):
- (WebCore::EventHandler::mouseMoved):
- Merge EventHandler::m_bMousePressed and EventHandler::m_mousePressed
- (WebCore::EventHandler::lastEventIsMouseUp):
- Check that the "new" event is newer than the "old" one - that's not always the case
- when running in DRT, as [NSApp currentEvent] isn't updated by eventSender.
- 2006-12-11 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Sam Weinig.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11801
- Autogenerate POD types for ObjC/JS.
- This removes the need for the hand-written JSSVG*, DOMSVG* wrappers
- in bindings/js, bindings/objc. Makes it much easier to convert more
- SVG types to POD types (ie. SVGMatrix* -> AffineTransform etc.)
- Affected test: svg/custom/SVGPoint-matrixTransform.svg
- It's failing with this patch, as the SVGPoint matrixTransform() function
- got disabled, until the SVGMatrix -> AffineTransform transition patch
- is landed. Otherwhise we'd need to add special cases to both CodeGeneratorJS/ObjC.pm
- which would be a waste of time, as SVGMatrix is about to die.
- Temporarily updating layout test result, as suggested by John Sullivan, so
- no-one notices that SVGPoint-matrixTransform.svg actually fails right now.
- Expect that to be fixed again in the next hour(s).
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSSVGNumber.cpp: Removed.
- * bindings/js/JSSVGNumber.h: Removed.
- * bindings/js/JSSVGPoint.cpp: Removed.
- * bindings/js/JSSVGPoint.h: Removed.
- * bindings/js/JSSVGRect.cpp: Removed.
- * bindings/js/JSSVGRect.h: Removed.
- * bindings/objc/DOMSVGNumber.mm: Removed.
- * bindings/objc/DOMSVGPoint.mm: Removed.
- * bindings/objc/DOMSVGRect.mm: Removed.
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * ksvg2/svg/SVGNumber.idl:
- * ksvg2/svg/SVGPoint.idl:
- * ksvg2/svg/SVGRect.idl:
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- Fix another issue with frame loading
- * platform/network/qt/ResourceHandleManagerQt.cpp:
- (WebCore::ResourceHandleManager::cancel):
- (WebCore::ResourceHandleManager::receivedData):
- (WebCore::ResourceHandleManager::receivedFinished):
- (WebCore::FileLoader::request):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClient::openURL):
- 2006-12-10 George Staikos <staikos@kde.org>
- Reviewed by Zack.
- Make the xpath grammar hack more specific (and work on OS X) until
- it's cleaned up.
- * WebCore.pro:
- 2006-12-10 Zack Rusin <zack@kde.org>
- Set the widgetclient correctly. This code
- should be platform independent!
- * platform/qt/WidgetQt.cpp:
- (WebCore::WidgetPrivate::WidgetPrivate):
- (WebCore::Widget::setClient):
- (WebCore::Widget::client):
- (WebCore::Widget::focusPolicy):
- 2006-12-11 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- Fix loading of local files.
- * platform/network/qt/ResourceHandleManagerQt.cpp:
- (WebCore::FileLoader::request):
- 2006-12-10 Zack Rusin <zack@kde.org>
- Don't use my QTransform magic, affine QMatrix is fine for
- SVG so use setMatrix.
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
- (WebCore::setup):
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- Make sure we call checkCompleted() on the FrameLoader
- to get the regression tests running.
- * WebCore.pro:
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::saveDocumentState):
- * page/qt/EventHandlerQt.cpp:
- (WebCore::EventHandler::handleDrag):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClient::openURL):
- (WebCore::FrameQtClient::didReceiveResponse):
- (WebCore::FrameQtClient::didFinishLoading):
- (WebCore::FrameQtClient::didFail):
- * platform/qt/FrameQtClient.h:
- 2006-12-10 Zack Rusin <zack@kde.org>
- Enable the SVG build by default and make it build.
- * WebCore.pro:
- * loader/qt/FrameLoaderQt.cpp: Output the method name
- 2006-12-10 Zack Rusin <zack@kde.org>
- Move the client classes to WebKitQt/WebCoreSupport.
- * WebCore.pro:
- * loader/qt/FrameLoaderClientQt.cpp: Removed.
- * loader/qt/FrameLoaderClientQt.h: Removed.
- * platform/qt/ChromeClientQt.cpp: Removed.
- * platform/qt/ChromeClientQt.h: Removed.
- * platform/qt/ContextMenuClientQt.cpp: Removed.
- * platform/qt/ContextMenuClientQt.h: Removed.
- * platform/qt/EditorClientQt.cpp: Removed.
- * platform/qt/EditorClientQt.h: Removed.
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack.
- Add some stubs required to link.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::runJavaScriptAlert):
- (WebCore::FrameQt::runJavaScriptConfirm):
- (WebCore::FrameQt::runJavaScriptPrompt):
- (WebCore::FrameQt::bindingRootObject):
- 2006-12-10 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10996
- WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree)
- Create an internal method to create innerText functionality for non-HTML
- nodes. When called from DRT this omits CDATA nodes.
- * dom/Element.cpp:
- (WebCore::Element::innerText):
- (WebCore::Element::outerText):
- * dom/Element.h:
- * dom/Element.idl:
- * html/HTMLElement.cpp:
- * html/HTMLElement.h:
- 2006-12-10 Darin Fisher <darin@chromium.org>
- Reviewed by Maciej.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=11790
- No way to initialize ResourceResponse::m_httpHeaderFields
- * platform/network/ResourceResponse.cpp: impl setHTTPHeaderField
- (WebCore::ResourceResponse::setHTTPHeaderField):
- * platform/network/ResourceResponse.h: decl setHTTPHeaderField
- 2006-12-10 Zack Rusin <zack@kde.org>
- Cleaning up the code after removals.
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQt.h: Remove virtual methods
- which have been moved to different objects
- 2006-12-10 Zack Rusin <zack@kde.org>
- Cleanup the FrameQtClient a little bit more. Remove
- unused methods.
- * platform/qt/FrameQtClient.cpp:
- * platform/qt/FrameQtClient.h:
- 2006-12-09 Adam Roben <aroben@apple.com>
- Build fix.
- * xml/XPathParser.cpp:
- (WebCore::XPath::charCat): Use C++ unsigned instead of uint.
- 2006-12-09 George Staikos <staikos@kde.org>
- Reviewed by Zack.
- Make it not crash, and make it set the title on Qt platform.
- * loader/qt/FrameLoaderClientQt.cpp:
- (WebCore::FrameLoaderClientQt::hasWebView):
- (WebCore::FrameLoaderClientQt::hasFrameView):
- (WebCore::FrameLoaderClientQt::didChangeTitle):
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::setTitle):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- 2006-12-10 Zack Rusin <zack@kde.org>
- Renaming FrameQtClientDefault to FrameQtClient.
- Removing FrameQtClient. Adding FrameLoaderClient
- as an argument. Clenaing up the code a bit.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClient::FrameQtClient):
- (WebCore::FrameQtClient::~FrameQtClient):
- (WebCore::FrameQtClient::setFrame):
- (WebCore::FrameQtClient::openURL):
- (WebCore::FrameQtClient::submitForm):
- (WebCore::FrameQtClient::checkLoaded):
- (WebCore::FrameQtClient::runJavaScriptAlert):
- (WebCore::FrameQtClient::runJavaScriptConfirm):
- (WebCore::FrameQtClient::runJavaScriptPrompt):
- (WebCore::FrameQtClient::menubarVisible):
- (WebCore::FrameQtClient::toolbarVisible):
- (WebCore::FrameQtClient::statusbarVisible):
- (WebCore::FrameQtClient::personalbarVisible):
- (WebCore::FrameQtClient::locationbarVisible):
- (WebCore::FrameQtClient::loadFinished):
- (WebCore::FrameQtClient::didReceiveResponse):
- (WebCore::FrameQtClient::didFinishLoading):
- (WebCore::FrameQtClient::didFail):
- (WebCore::FrameQtClient::didReceiveData):
- (WebCore::FrameQtClient::traverseNextFrameStayWithin):
- (WebCore::FrameQtClient::numPendingOrLoadingRequests):
- (WebCore::FrameQtClient::receivedAllData):
- (WebCore::FrameQtClient::setTitle):
- * platform/qt/FrameQtClient.h:
- 2006-12-10 Zack Rusin <zack@kde.org>
- Fixes compilation after the last removals.
- * WebCore.pro:
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack.
- Implement a decent network loader using QHttp.
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::load):
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::request):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleInternal.h:
- * platform/network/qt/ResourceHandleManager.cpp: Removed.
- * platform/network/qt/ResourceHandleManager.h: Removed.
- * platform/network/qt/ResourceHandleManagerKDE.cpp: Added.
- (WebCore::ResourceHandleManager::self):
- (WebCore::ResourceHandleManager::ResourceHandleManager):
- (WebCore::ResourceHandleManager::~ResourceHandleManager):
- (WebCore::ResourceHandleManager::slotData):
- (WebCore::ResourceHandleManager::slotMimetype):
- (WebCore::ResourceHandleManager::slotResult):
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- * platform/network/qt/ResourceHandleManagerKDE.h: Added.
- * platform/network/qt/ResourceHandleManagerQt.cpp: Added.
- (WebCore::ResourceHandleManager::ResourceHandleManager):
- (WebCore::ResourceHandleManager::~ResourceHandleManager):
- (WebCore::ResourceHandleManager::self):
- (WebCore::RequestQt::RequestQt):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- (WebCore::ResourceHandleManager::receivedResponse):
- (WebCore::ResourceHandleManager::receivedData):
- (WebCore::ResourceHandleManager::receivedFinished):
- (WebCore::LoaderThread::LoaderThread):
- (WebCore::LoaderThread::run):
- (WebCore::FileLoader::FileLoader):
- (WebCore::FileLoader::request):
- (WebCore::FileLoader::cancel):
- (WebCore::WebCoreHttp::WebCoreHttp):
- (WebCore::WebCoreHttp::~WebCoreHttp):
- (WebCore::WebCoreHttp::request):
- (WebCore::WebCoreHttp::scheduleNextRequest):
- (WebCore::WebCoreHttp::getConnection):
- (WebCore::WebCoreHttp::onResponseHeaderReceived):
- (WebCore::WebCoreHttp::onReadyRead):
- (WebCore::WebCoreHttp::onRequestFinished):
- (WebCore::WebCoreHttp::onStateChanged):
- (WebCore::WebCoreHttp::cancel):
- (WebCore::qHash):
- (WebCore::operator==):
- (WebCore::HostInfo::HostInfo):
- (WebCore::NetworkLoader::NetworkLoader):
- (WebCore::NetworkLoader::~NetworkLoader):
- (WebCore::NetworkLoader::request):
- (WebCore::NetworkLoader::connectionClosed):
- (WebCore::NetworkLoader::cancel):
- * platform/network/qt/ResourceHandleManagerQt.h: Added.
- (WebCore::LoaderThread::):
- (WebCore::LoaderThread::waitForSetup):
- * platform/network/qt/ResourceHandleQt.cpp:
- (WebCore::ResourceHandle::start):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::keyEvent):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::FrameQtClientDefault):
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- (WebCore::FrameQtClientDefault::didReceiveResponse):
- (WebCore::FrameQtClientDefault::didFinishLoading):
- (WebCore::FrameQtClientDefault::didFail):
- (WebCore::FrameQtClientDefault::didReceiveData):
- (WebCore::FrameQtClientDefault::receivedAllData):
- (WebCore::FrameQtClientDefault::setTitle):
- * platform/qt/FrameQtClient.h:
- 2006-12-09 George Staikos <staikos@kde.org>
- Reviewed by Zack.
- Fix bison again on qmake build.
- * WebCore.pro:
- 2006-12-09 Zack Rusin <zack@kde.org>
- Reviewed by Zack.
- Use the correct filename.
- * WebCore.pro: it's PasteboardQt.cpp
- 2006-12-09 Zack Rusin <zack@kde.org>
- Reviewed by Lars.
- Correctly set the font on widgets.
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::setFont):
- 2006-12-09 Adam Treat <treat@kde.org>
- Reviewed by Zack
- No more nil renderer warnings
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::paintEvent):
- 2006-12-09 Friedemann Kleint <fkleint@trolltech.com>
- Reviewed by Zack
- Removed compiler warnings about rounding issues
- * platform/qt/FontPlatformDataQt.cpp:
- (WebCore::FontPlatformData::FontPlatformData):
- * platform/qt/FontQt.cpp:
- (WebCore::Font::drawComplexText):
- 2006-12-09 George Staikos <staikos@kde.org>
- Reviewed by Zack.
- Qt 4.1 (especially Qtopia) build fixes
- * platform/qt/FrameQtClient.cpp:
- * platform/qt/GraphicsContextQt.cpp:
- * platform/qt/PlatformKeyboardEventQt.cpp:
- * platform/qt/CursorQt.cpp:
- * platform/qt/WidgetQt.cpp:
- * platform/Cursor.h:
- * platform/Arena.h:
- 2006-12-09 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack
- Make it possible to build WebKit with qmake.
- * WebCore.pro: Added.
- * platform/graphics/qt/GraphicsContextQt.cpp:
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack.
- Compile after latest WebKit changes and don't depend
- on deprecated methods in Qt.
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::deliverJobData):
- * platform/network/qt/ResourceHandleQt.cpp:
- (WebCore::ResourceHandle::extractCharsetFromHeaders):
- * platform/qt/PlatformKeyboardEventQt.cpp:
- (WebCore::windowsKeyCodeForKeyEvent):
- 2006-12-10 Lars Knoll <lars@trolltech.com>
- Reviewed by Zack.
- Use the Qt image loading framework.
- * CMakeLists.txt:
- * platform/graphics/ImageSource.h:
- * platform/graphics/qt/GraphicsContextQt.cpp:
- * platform/graphics/qt/ImageDecoderQt.cpp: Added.
- (WebCore::ImageDecoderQt::ImageData::ImageData):
- (WebCore::ImageDecoderQt::ReadContext::):
- (WebCore::ImageDecoderQt::ReadContext::ReadContext):
- (WebCore::ImageDecoderQt::ReadContext::read):
- (WebCore::ImageDecoderQt::ReadContext::readImageLines):
- (WebCore::ImageDecoderQt::ImageDecoderQt):
- (WebCore::ImageDecoderQt::~ImageDecoderQt):
- (WebCore::ImageDecoderQt::hasFirstImageHeader):
- (WebCore::ImageDecoderQt::reset):
- (WebCore::ImageDecoderQt::setData):
- (WebCore::ImageDecoderQt::isSizeAvailable):
- (WebCore::ImageDecoderQt::frameCount):
- (WebCore::ImageDecoderQt::repetitionCount):
- (WebCore::ImageDecoderQt::ImageDecoderQt::supportsAlpha):
- (WebCore::ImageDecoderQt::duration):
- (WebCore::ImageDecoderQt::frameBufferAtIndex):
- (WebCore::ImageDecoderQt::imageAtIndex):
- * platform/graphics/qt/ImageDecoderQt.h: Added.
- (WebCore::ImageDecoderQt::):
- * platform/graphics/qt/ImageSourceQt.cpp:
- (WebCore::):
- (WebCore::detectImageFormat):
- (WebCore::createDecoder):
- (WebCore::ImageSource::setData):
- (WebCore::ImageSource::createFrameAtIndex):
- (WebCore::ImageSource::frameDurationAtIndex):
- (WebCore::ImageSource::frameHasAlphaAtIndex):
- 2006-12-09 Lars Knoll <lars@trolltech.com>
- Reviewed by Maciej.
- Remove an explicit ICU dependency.
- * xml/XPathParser.cpp:
- (WebCore::XPath::charCat):
- 2006-12-09 Zack Rusin <zack@kde.org>
- Adjusting the build after the icu changes.
- * CMakeLists.txt:
- 2006-12-09 Adam Roben <aroben@apple.com>
- Reviewed by Darin.
- Changed all ForwardingHeaders to use #include instead of #import.
- * ForwardingHeaders/kjs/JSLock.h:
- * ForwardingHeaders/kjs/SavedBuiltins.h:
- * ForwardingHeaders/kjs/collector.h:
- * ForwardingHeaders/kjs/dtoa.h:
- * ForwardingHeaders/kjs/internal.h:
- * ForwardingHeaders/kjs/interpreter.h:
- * ForwardingHeaders/kjs/lookup.h:
- * ForwardingHeaders/kjs/object.h:
- * ForwardingHeaders/kjs/property_map.h:
- * ForwardingHeaders/kjs/protect.h:
- * ForwardingHeaders/wtf/AlwaysInline.h:
- * ForwardingHeaders/wtf/Assertions.h:
- * ForwardingHeaders/wtf/FastMalloc.h:
- * ForwardingHeaders/wtf/GetPtr.h:
- * ForwardingHeaders/wtf/HashCountedSet.h:
- * ForwardingHeaders/wtf/HashMap.h:
- * ForwardingHeaders/wtf/HashSet.h:
- * ForwardingHeaders/wtf/HashTraits.h:
- * ForwardingHeaders/wtf/MathExtras.h:
- * ForwardingHeaders/wtf/Noncopyable.h:
- * ForwardingHeaders/wtf/OwnArrayPtr.h:
- * ForwardingHeaders/wtf/OwnPtr.h:
- * ForwardingHeaders/wtf/PassRefPtr.h:
- * ForwardingHeaders/wtf/Platform.h:
- * ForwardingHeaders/wtf/RefPtr.h:
- * ForwardingHeaders/wtf/Vector.h:
- 2006-12-09 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11625
- Investigate possibility to share code between HTMLStyleElement and SVGStyleElement
- Add a class shared by both HTMLStyleElement and SVGStyleElement that
- encapsulates the common logic.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * dom/Document.cpp:
- (WebCore::Document::recalcStyleSelector):
- Generalize stylesheet processing of svg and html.
- * dom/StyleElement.cpp: Added.
- (WebCore::StyleElement::StyleElement):
- (WebCore::StyleElement::sheet):
- (WebCore::StyleElement::insertedIntoDocument):
- (WebCore::StyleElement::removedFromDocument):
- (WebCore::StyleElement::childrenChanged):
- * dom/StyleElement.h: Added.
- (WebCore::StyleElement::~StyleElement):
- (WebCore::StyleElement::isLoading):
- Common base class for SVGStyleElement and HTMLStyleElement.
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::HTMLStyleElement):
- (WebCore::HTMLStyleElement::parseMappedAttribute):
- (WebCore::HTMLStyleElement::insertedIntoDocument):
- (WebCore::HTMLStyleElement::removedFromDocument):
- (WebCore::HTMLStyleElement::childrenChanged):
- (WebCore::HTMLStyleElement::media):
- (WebCore::HTMLStyleElement::setMedia):
- (WebCore::HTMLStyleElement::type):
- (WebCore::HTMLStyleElement::setType):
- * html/HTMLStyleElement.h:
- Use new common class.
- * ksvg2/svg/SVGElement.cpp:
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::contentScriptType):
- (WebCore::SVGSVGElement::contentStyleType):
- * ksvg2/svg/SVGSVGElement.h:
- Do not use tryGetAttribute(NS) anymore.
- * ksvg2/svg/SVGStyleElement.cpp:
- (WebCore::SVGStyleElement::SVGStyleElement):
- (WebCore::SVGStyleElement::xmlspace):
- (WebCore::SVGStyleElement::type):
- (WebCore::SVGStyleElement::media):
- (WebCore::SVGStyleElement::title):
- (WebCore::SVGStyleElement::insertedIntoDocument):
- (WebCore::SVGStyleElement::removedFromDocument):
- (WebCore::SVGStyleElement::childrenChanged):
- * ksvg2/svg/SVGStyleElement.h:
- Use new common class.
- 2006-12-08 David Hyatt <hyatt@apple.com>
- Land the new ICU abstraction layer (WTF::Unicode). Patch
- by Lars with a couple of fixes thrown in by me.
- Reviewed by hyatt
- * ForwardingHeaders/wtf/icu/UnicodeIcu.h: Added.
- * ForwardingHeaders/wtf/unicode/Unicode.h: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * css/cssparser.cpp:
- (WebCore::ParseString::lower):
- * dom/Document.cpp:
- (WebCore::isValidNameStart):
- (WebCore::isValidNamePart):
- * editing/TextIterator.cpp:
- (WebCore::CircularSearchBuffer::append):
- * html/HTMLFontElement.cpp:
- (WebCore::parseFontSizeNumber):
- * html/HTMLInputElement.cpp:
- (WebCore::numGraphemeClusters):
- (WebCore::numCharactersInGraphemeClusters):
- * html/HTMLSelectElement.cpp:
- (WebCore::stripLeadingWhiteSpace):
- * page/Frame.h:
- * platform/DeprecatedString.h:
- (WebCore::DeprecatedChar::isSpace):
- (WebCore::DeprecatedChar::lower):
- (WebCore::DeprecatedChar::upper):
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance):
- (WebCore::WidthIterator::normalizeVoicingMarks):
- * platform/FontCache.h:
- * platform/FontData.h:
- * platform/GlyphMap.cpp:
- * platform/GlyphMap.h:
- * platform/GlyphWidthMap.h:
- * platform/KURL.cpp:
- (WebCore::encodeHostname):
- * platform/StringHash.h:
- (WTF::):
- * platform/StringImpl.cpp:
- (WebCore::isSpace):
- (WebCore::parseLength):
- (WebCore::StringImpl::isLower):
- (WebCore::StringImpl::lower):
- (WebCore::StringImpl::upper):
- (WebCore::StringImpl::secure):
- (WebCore::StringImpl::foldCase):
- (WebCore::StringImpl::capitalize):
- (WebCore::StringImpl::toInt):
- (WebCore::equalIgnoringCase):
- (WebCore::StringImpl::find):
- * platform/StringImpl.h:
- * platform/TextBoundaries.h:
- * platform/TextBreakIterator.h: Added.
- (WebCore::):
- * platform/TextBreakIteratorICU.cpp: Added.
- (WebCore::wordBreakIterator):
- (WebCore::characterBreakIterator):
- (WebCore::textBreakFirst):
- (WebCore::textBreakNext):
- (WebCore::textBreakPreceding):
- (WebCore::textBreakFollowing):
- (WebCore::textBreakCurrent):
- * platform/TextCodec.h:
- * platform/TextCodecLatin1.cpp:
- * platform/TextEncoding.cpp:
- (WebCore::TextEncoding::encode):
- * platform/TextEncoding.h:
- * platform/TextEncodingRegistry.cpp:
- (WebCore::buildTextEncodingNameMap):
- (WebCore::buildTextCodecMap):
- * platform/TextEncodingRegistry.h:
- * platform/UChar.h: Removed.
- * platform/graphics/GraphicsContext.h:
- * platform/qt/GlyphMapQt.cpp:
- * platform/qt/TextBreakIteratorQt.cpp: Added.
- (WebCore::TextBreakIterator::following):
- (WebCore::TextBreakIterator::preceding):
- (WebCore::WordBreakIteratorQt::first):
- (WebCore::WordBreakIteratorQt::next):
- (WebCore::WordBreakIteratorQt::previous):
- (WebCore::CharBreakIteratorQt::first):
- (WebCore::CharBreakIteratorQt::next):
- (WebCore::CharBreakIteratorQt::previous):
- (WebCore::wordBreakIterator):
- (WebCore::characterBreakIterator):
- (WebCore::textBreakFirst):
- (WebCore::textBreakNext):
- (WebCore::textBreakPreceding):
- (WebCore::textBreakFollowing):
- (WebCore::textBreakCurrent):
- * platform/qt/TextCodecQt.cpp: Added.
- (WebCore::getAtomicName):
- (WebCore::TextCodecQt::registerEncodingNames):
- (WebCore::newTextCodecQt):
- (WebCore::TextCodecQt::registerCodecs):
- (WebCore::TextCodecQt::TextCodecQt):
- (WebCore::TextCodecQt::~TextCodecQt):
- (WebCore::TextCodecQt::decode):
- (WebCore::TextCodecQt::encode):
- * platform/qt/TextCodecQt.h: Added.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::updateFirstLetter):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::previousOffset):
- (WebCore::RenderText::nextOffset):
- (WebCore::RenderText::widthFromCache):
- * rendering/RenderText.h:
- * rendering/bidi.cpp:
- (WebCore::BidiState::BidiState):
- (WebCore::BidiContext::BidiContext):
- (WebCore::bidiNext):
- (WebCore::bidiFirst):
- (WebCore::BidiIterator::direction):
- (WebCore::appendRun):
- (WebCore::embed):
- (WebCore::RenderBlock::computeHorizontalPositionsForLine):
- (WebCore::RenderBlock::bidiReorderLine):
- (WebCore::RenderBlock::layoutInlineChildren):
- * rendering/bidi.h:
- (WebCore::BidiStatus::BidiStatus):
- (WebCore::BidiContext::dir):
- (WebCore::BidiContext::basicDir):
- (WebCore::BidiRun::BidiRun):
- * rendering/break_lines.h:
- 2006-12-08 Adam Roben <aroben@apple.com>
- Rolling out r17865 because it caused a performance regression.
- * loader/TextResourceDecoder.cpp:
- (WebCore::findXMLEncoding):
- * platform/CString.cpp:
- (WebCore::CString::data):
- * platform/CString.h:
- * platform/TextStream.cpp:
- (WebCore::TextStream::operator<<):
- * platform/TextStream.h:
- 2006-12-08 Zack Rusin <zack@kde.org>
- Reviewed by Maciej.
- Fix the Qt/KDE build after all the API changes.
- * CMakeLists.txt:
- * editing/qt/EditorQt.cpp: Added.
- (WebCore::Editor::newGeneralClipboard):
- (WebCore::Editor::ignoreSpelling):
- (WebCore::Editor::learnSpelling):
- (WebCore::Editor::advanceToNextMisspelling):
- (WebCore::Editor::isSelectionMisspelled):
- (WebCore::Editor::isSelectionUngrammatical):
- (WebCore::Editor::guessesForUngrammaticalSelection):
- (WebCore::Editor::guessesForMisspelledSelection):
- (WebCore::Editor::markMisspellingsInAdjacentWords):
- (WebCore::Editor::markMisspellings):
- * loader/NavigationAction.h:
- * loader/qt/FrameLoaderClientQt.cpp:
- (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
- (WebCore::FrameLoaderClientQt::canHandleRequest):
- * loader/qt/FrameLoaderClientQt.h:
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::load):
- * loader/qt/ResourceLoaderQt.cpp:
- * platform/ContextMenu.h:
- * platform/graphics/qt/GraphicsContextQt.cpp:
- * platform/graphics/qt/PathQt.cpp:
- (WebCore::Path::addArc):
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
- (WebCore::setup):
- * platform/network/ResourceHandle.h:
- (WebCore::ResourceHandle::getInternal):
- * platform/network/ResourceHandleInternal.h:
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::slotData):
- (WebCore::ResourceHandleManager::remove):
- * platform/network/qt/ResourceHandleQt.cpp:
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- * platform/qt/ChromeClientQt.cpp:
- (WebCore::ChromeClientQt::addMessageToConsole):
- (WebCore::ChromeClientQt::chromeDestroyed):
- * platform/qt/ChromeClientQt.h:
- * platform/qt/ContextMenuClientQt.cpp:
- (WebCore::ContextMenuClientQt::copyLinkToClipboard):
- (WebCore::ContextMenuClientQt::downloadURL):
- (WebCore::ContextMenuClientQt::copyImageToClipboard):
- (WebCore::ContextMenuClientQt::contextMenuDestroyed):
- (WebCore::ContextMenuClientQt::contextMenuItemSelected):
- * platform/qt/ContextMenuClientQt.h:
- * platform/qt/ContextMenuItemQt.cpp: Added.
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenuItem::~ContextMenuItem):
- (WebCore::ContextMenuItem::platformDescription):
- (WebCore::ContextMenuItem::action):
- (WebCore::ContextMenuItem::title):
- (WebCore::ContextMenuItem::setAction):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::setSubMenu):
- * platform/qt/ContextMenuQt.cpp:
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::~ContextMenu):
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::itemCount):
- (WebCore::ContextMenu::insertItem):
- (WebCore::ContextMenu::setPlatformDescription):
- * platform/qt/CursorQt.cpp:
- (WebCore::copyCursor):
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::shouldInsertNode):
- (WebCore::WebCore::EditorClientQt::pageDestroyed):
- (WebCore::EditorClientQt::smartInsertDeleteEnabled):
- * platform/qt/EditorClientQt.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::keyEvent):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- * platform/qt/LoaderFunctionsQt.cpp:
- * platform/qt/PasteboardQt.cpp: Added.
- (WebCore::Pasteboard::Pasteboard):
- (WebCore::Pasteboard::generalPasteboard):
- (WebCore::Pasteboard::clearTypes):
- (WebCore::Pasteboard::writeSelection):
- (WebCore::Pasteboard::canSmartReplace):
- (WebCore::Pasteboard::plainText):
- (WebCore::Pasteboard::documentFragment):
- === Safari-521.32 ===
- 2006-12-08 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10188
- Form elements added via appendChild() are not accessible via form.element
- Make sure looking up form elements works when the form is not appended
- to the document.
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::registerFormElement):
- 2006-12-08 Rob Buis <buis@kde.org>
- Reviewed by Adele.
- http://bugs.webkit.org/show_bug.cgi?id=11765
- REGRESSION: Clicking on a select with size other than 1 and no children results in a crash
- Make sure returned value is -1 for selects without children.
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::listIndexAtOffset):
- 2006-12-08 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- This is a mo' better fix for ensuring we don't use macro definitions
- of min/max.
- * config.h:
- 2006-12-08 Peter Kasting <pkasting@google.com>
- Reviewed and landed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11759:
- Windows build bustage
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ContextMenuClientWin.h:
- * bridge/win/FrameWin.h:
- * loader/win/FrameLoaderWin.cpp:
- (WebCore::FrameLoader::submitForm):
- * platform/network/win/ResourceHandleWin.cpp:
- (WebCore::ResourceHandle::onRequestComplete):
- (WebCore::ResourceHandle::fileLoadTimer):
- (WebCore::ResourceHandle::cancel):
- * platform/win/MouseEventWin.cpp:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::inputElementAltText):
- (WebCore::copyCursor):
- (WebCore::resetButtonDefaultLabel):
- (WebCore::ContextMenuClientWin::contextMenuItemSelected):
- (WebCore::ContextMenuClientWin::copyLinkToClipboard):
- (WebCore::ContextMenuClientWin::downloadURL):
- (WebCore::ContextMenuClientWin::copyImageToClipboard):
- (WebCore::Editor::ignoreSpelling):
- (WebCore::Editor::learnSpelling):
- (WebCore::Editor::isSelectionUngrammatical):
- (WebCore::Editor::isSelectionMisspelled):
- (WebCore::Editor::guessesForMisspelledSelection):
- (WebCore::Editor::guessesForUngrammaticalSelection):
- (WebCore::Editor::markMisspellingsInAdjacentWords):
- (WebCore::FrameLoader::load):
- (WebCore::FrameWin::scheduleClose):
- (WebCore::FrameWin::respondToChangedSelection):
- 2006-12-08 Sam Weinig <sam@webkit.org>
- Reviewed by Geoff.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11777
- Crash when using XMLSerializer.serializeToString() on
- documentless, DocumentType nodes.
- Test: fast/dom/XMLSerializer-doctype.html
- Test: fast/dom/XMLSerializer-doctype2.html
- * dom/DOMImplementation.cpp:
- (WebCore::DOMImplementation::createDocument): set the document of the
- DocumentType node to the new document.
- * xml/XMLSerializer.cpp: Cleanup.
- (WebCore::XMLSerializer::serializeToString): now throws an exception
- for documentless nodes.
- * xml/XMLSerializer.h: cleanup
- * xml/XMLSerializer.idl: add exception
- 2006-12-07 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
- <rdar://problem/4836287>
- Cannot expand selection out of editable element when containing element is non-editable.
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent): Restrict the selection endpoints
- to the same *highest* editable root. This bug only happened when creating selections
- based in an editable region and extending into a higher editable root, so this change
- doesn't expose any new kinds of deletions, but we should start thinking about how
- those deletions should behave.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::selectAll): Ditto.
- 2006-12-08 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Add a new member variable to ContextMenuItem to hold on to the sub-
- menu. The new member variable is an OwnPtr<ContextMenu>
- * platform/ContextMenu.cpp: Because of the OwnPtr in
- ContextMenuItem, we have to separate the declaration of
- ContextMenuItems away from the calls to appendItem(). Not doing so
- causes a build failure because OwnPtr inherits from Noncopyable.
- (WebCore::createFontSubMenu): Same.
- (WebCore::createSpellingAndGrammarSubMenu): Same.
- (WebCore::createSpellingSubMenu): Same.
- (WebCore::createSpeechSubMenu): Same.
- (WebCore::createWritingDirectionSubMenu): Same.
- (WebCore::ContextMenu::populate): Same.
- * platform/ContextMenuItem.h: New member variable m_subMenu.
- * platform/mac/ContextMenuItemMac.mm: Take care of setting
- m_subMenu in addition to setting the submenu of the NSMenuItem when
- we have a sub-menu.
- (WebCore::menuToArray):
- (WebCore::ContextMenuItem::ContextMenuItem): Same.
- (WebCore::ContextMenuItem::platformSubMenu): Same.
- (WebCore::ContextMenuItem::setSubMenu): Same.
- 2006-12-08 Darin Fisher <darin@chromium.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11778
- CString::data() should be documented as returning a null terminated char array
- * platform/CString.h:
- Add some basic documentation to CString.h
- 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=11718
- REGRESSION: When I mouse up after dragging a selection outside of a iframe, the iframe
- continues to scroll automatically.
- Test: manual-tests/autoscroll.html
- * manual-tests/autoscroll.html: Added.
- * page/EventHandler.cpp:
- (WebCore::EventHandler::handleMousePressEvent):
- Assign to m_mousePressNode earlier, so that it is available in the superframe as well.
- Reset m_mouseDownWasInSubframe to false when starting to handle a mousedown - previously, its value
- was only defined if the event was passed down to a widget or a subframe.
- (WebCore::EventHandler::stopAutoscrollTimer):
- If the mouse down event was in a subframe, stop the subframe's timer.
- 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=6275
- XMLHttpRequest.getResponseHeader should return a null string for non-existent headers
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
- Convert null getResponseHeader strings to JS null, rather than undefined.
- 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9854
- HTTP Refresh header with quotes is parsed incorrectly
- Test: http/tests/misc/redirect-with-quotes.php
- * WebCore.xcodeproj/project.pbxproj:
- Added HTTPParsers.{h,cpp}. I intend to move Content-Type parsing here, as well.
- * dom/Document.cpp:
- (WebCore::Document::processHttpEquiv):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::receivedFirstData):
- Use the new implementation in HTTPHeaders.
- * platform/network/HTTPParsers.cpp: Added.
- (WebCore::skipWhiteSpace):
- (WebCore::parseHTTPRefresh):
- * platform/network/HTTPParsers.h: Added.
- Merged and rewrote existing implementations for better Firefox compatibility.
- 2006-12-08 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=11772
- REGRESSION: XMLSerializer.serializeToString incorrect value for CDATA nodes
- Test: fast/dom/serialize-cdata.html
- * editing/markup.cpp:
- (WebCore::startMarkup): Dump CDATA sections, too.
- 2006-12-08 Mitz Pettel <mitz@webkit.org>
- Reviewed by hyatt.
- Deleted misplaced comment.
- * rendering/RenderWidget.cpp:
- 2006-12-08 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=6074
- WebKit+SVG and FireFox disagree on invalid "transform" handling
- Test for parsing failure on transform attribute and clear the transform
- list upon failure to match FF behaviour.
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::parseMappedAttribute):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::parseMappedAttribute):
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::parseMappedAttribute):
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::SVGTransformable::parseTransformAttribute):
- * ksvg2/svg/SVGTransformable.h:
- 2006-12-07 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth Dakin.
- Fixed <rdar://problem/4870551> 9A320: <input type="text"> no longer
- dispatches onchange event in response to enter key
-
- To match our old behavior and FF, we need to dispatch onchange in response to the
- ENTER key. The strategy here is just to dispatch a blur event, since that's how
- the search field always worked, and the DOM spec says onchange only fires
- as a precursor to blur.
- * ChangeLog:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- 2006-12-07 Adam Roben <aroben@apple.com>
- Reviewed by Oliver.
- Some small context menu-related fixes.
- * html/HTMLFrameSetElement.cpp:
- (WebCore::HTMLFrameSetElement::defaultEventHandler): Don't try to
- resize on a contextmenuEvent.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler): Only pass the event
- off to HTMLGenericFormElement if we haven't handled it.
- 2006-12-07 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- <rdar://problem/4838778>
- Title: DashboardClient crashing in WebCore::SubresourceLoader::didFail
-
- * loader/SubresourceLoader.cpp:
- (WebCore::SubresourceLoader::stopLoading):
- * loader/SubresourceLoader.h:
- Add stopLoading method which currently just clears the client. This isn't the ideal fix,
- since it doesn't actually stop the load.
-
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- Add null-checks.
-
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::abort):
- Call stopLoading.
- 2006-12-07 Kevin McCullough <kmccullough@apple.com>
- Reviewed by Geof.
- - added the ability to set the auto repeating variable to force a keyPressed
- event from a keyDown event.
- * platform/PlatformKeyboardEvent.h:
- (WebCore::PlatformKeyboardEvent::setIsAutoRepeat):
- 2006-12-07 Peter Kasting <pkasting@google.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11749
- Don't call updateThumbProportion() unnecessarily.
- * platform/ScrollBar.cpp:
- (WebCore::Scrollbar::setProportion):
- 2006-12-07 Beth Dakin <bdakin@apple.com>
- Reviewed by Brady.
- Fixes "Open in new Window" item in WebCore ContextMenus. It wasn't
- doing anything before, and now it works! Also some formatting
- changes, etc.
- * page/ContextMenuClient.h: Several of the parameters to several of
- the functions here should be const or const references. And now
- they are!
- * page/ContextMenuController.cpp:
- (WebCore::openNewWindow): Moved the open new window functionality
- into a helper function since it is used by several menu item tags.
- Now after calling chrome()->createWindow() we call chrome()->show()
- on the new window, and so it appears!
- (WebCore::ContextMenuController::contextMenuItemSelected): Call new
- openNewWindow function to do the right thing. Shift some
- formatting, use local variable for HitTestResult. Implement action
- for ContextMenuItemTagOpenLink.
- 2006-12-06 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by.
- - Removed a conflict marker
- * ChangeLog:
- 2006-12-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
-
- <rdar://problem/4818134>
- Crash in WebCore::selectRange when invoking WebView:insertNewLine in any empty content editable DIV.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RebalanceWhitespaceCommand.*.
- * editing/visible_units.cpp:
- (WebCore::startOfLine): There are VisiblePositions at offset 0 in blocks without
- RootInlineBoxes, like empty editable blocks and bordered blocks.
- (WebCore::endOfLine): Ditto.
-
- 2006-12-06 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by.
- - Removed a conflict marker
- * ChangeLog:
- 2006-12-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <rdar://problem/4854869>
- Inserting a new line in a contenteditable=true SPAN whose parent is a DIV asserts
- * editing/htmlediting.cpp:
- (WebCore::enclosingBlock): Use enclosingNodeWithType to prevent escape
- from editable content.
- * editing/markup.cpp:
- (WebCore::createMarkup): A null commonAncestorBlock will happen
- if commonAncestor is inside an inline editable root that doesn't
- contain any blocks. Removed an early return for this case: the
- code below the early return can and must handle it.
- 2006-12-06 Timothy Hatcher <timothy@apple.com>
- Reviewed by Mark Rowe.
- <rdar://problem/4843505> Fix cross-library ivar use for 64-bit Objective-C
- Adds a new WebCore.LP64.exp file that gets appended to the normal export file.
- This new file will have 64-bit only symbols we need to export.
- * WebCore.LP64.exp: Added.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-12-06 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
-
- Change SubresourceLoader to use a ResourceHandle, and change ResourceHandle to use a NSURLConnection.
-
- * loader/ResourceLoader.h:
- * loader/SubresourceLoader.cpp:
- (WebCore::SubresourceLoader::create):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- * loader/SubresourceLoader.h:
- (WebCore::SubresourceLoader::didReceiveAuthenticationChallenge):
- (WebCore::SubresourceLoader::didCancelAuthenticationChallenge):
- (WebCore::SubresourceLoader::willStopBufferingData):
- (WebCore::SubresourceLoader::willCacheResponse):
- (WebCore::SubresourceLoader::receivedCredential):
- (WebCore::SubresourceLoader::receivedRequestToContinueWithoutCredential):
- (WebCore::SubresourceLoader::receivedCancellation):
- * loader/SubresourceLoaderClient.h:
- (WebCore::SubresourceLoaderClient::didFail):
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::didFail):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::didFail):
- * loader/loader.h:
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::addData):
- (WebCore::ResourceLoader::resourceData):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::setDefersLoading):
- (WebCore::SubresourceLoader::resourceData):
- (WebCore::SubresourceLoader::load):
- (WebCore::SubresourceLoader::create):
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::ResourceHandle):
- (WebCore::ResourceHandle::create):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::didReceiveData):
- (WebCore::ResourceHandleClient::didFail):
- (WebCore::ResourceHandleClient::didReceiveAuthenticationChallenge):
- (WebCore::ResourceHandleClient::didCancelAuthenticationChallenge):
- (WebCore::ResourceHandleClient::willStopBufferingData):
- (WebCore::ResourceHandleClient::willCacheResponse):
- (WebCore::ResourceHandleClient::receivedCredential):
- (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential):
- (WebCore::ResourceHandleClient::receivedCancellation):
- * platform/network/ResourceHandleInternal.h:
- (WebCore::ResourceHandleInternal::ResourceHandleInternal):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::cancel):
- (WebCore::ResourceHandle::setDefersLoading):
- (WebCore::ResourceHandle::delegate):
- (WebCore::ResourceHandle::releaseDelegate):
- (WebCore::ResourceHandle::supportsBufferedData):
- (WebCore::ResourceHandle::bufferedData):
- (-[WebCoreResourceHandleAsDelegate initWithHandle:]):
- (-[WebCoreResourceHandleAsDelegate detachHandle]):
- (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]):
- (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]):
- (-[WebCoreResourceHandleAsDelegate connection:didCancelAuthenticationChallenge:]):
- (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]):
- (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
- (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
- (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]):
- (-[WebCoreResourceHandleAsDelegate connection:didFailWithError:]):
- (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
- (-[WebCoreResourceHandleAsDelegate useCredential:forAuthenticationChallenge:]):
- (-[WebCoreResourceHandleAsDelegate continueWithoutCredentialForAuthenticationChallenge:]):
- (-[WebCoreResourceHandleAsDelegate cancelAuthenticationChallenge:]):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::didFail):
- * xml/xmlhttprequest.h:
- 2006-12-06 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- There are two bugs with WebCore ContextMenus due to the static
- ContextMenuItems. One bug is that we often crashed in
- NSAutoreleasePool upon quitting the browser. The other bug is that
- we were adding static NSMenuItems to multiple NSMenus, which is
- disallowed. To fix these bugs, the MenuItems are no longer static.
- This is in line with the current design in WebKit anyway. I made
- some re-arrangements in the code because I also removed the macro
- that was used to create the menu items since it was a bit
- confusing.
- * platform/ContextMenu.cpp:
- (WebCore::createFontSubMenu):
- (WebCore::createSpellingAndGrammarSubMenu):
- (WebCore::createSpellingSubMenu):
- (WebCore::createSpeechSubMenu):
- (WebCore::createWritingDirectionSubMenu):
- (WebCore::ContextMenu::populate):
- * platform/ContextMenuItem.h:
- * platform/mac/ContextMenuItemMac.mm:
- (WebCore::ContextMenuItem::ContextMenuItem): Use the NSMenuItem
- global separator item if we have SeparatorType.
- * platform/mac/ContextMenuMac.mm:
- (WebCore::setMenuItemTarget): Change name of getNSMenuItem since
- that is no longer accurate.
- (WebCore::ContextMenu::appendItem): Above name change.
- (WebCore::ContextMenu::insertItem): Same.
- 2006-12-06 Kevin McCullough <kmccullough@apple.com>
- Reviewed by Geof.
- - Returned the semantic meaning of the mask to be the actual repeat count,
- and changed auto_repeat to correctly differnetiate between keypressed and keydown.
- * platform/win/KeyEventWin.cpp:
- (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
- 2006-12-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4753545>
- REGRESSION: Edited whitespace sequences are all nbsps (10636)
- * WebCore.xcodeproj/project.pbxproj: Removed RebalanceWhitespaceCommand.* from the project.
- * editing/CompositeEditCommand.cpp:
- (WebCore::isWhitespace): Moved from htmlediting.
- (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Moved the work that was
- once done in its own command here.
- (WebCore::CompositeEditCommand::prepareWhitespaceAtPositionForSplit): Prevents
- whitespace around a position from collapsing when it's pushed apart during Paste.
- This function can eventually be deployed to eliminate the need for leading/trailing
- whitespace handling in InsertParagraphSeparator, InsertLineBreak, Delete, and BreakBlockquote.
- (WebCore::CompositeEditCommand::rebalanceWhitespace): Cleaned up.
- * editing/CompositeEditCommand.h:
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::doApply): Do rebalanceWhitespaceAt *before*
- saving the typing style, because whitespace rebalancing is no longer it's own
- command that claims to preserve the typing style.
- * editing/RebalanceWhitespaceCommand.cpp: Removed.
- * editing/RebalanceWhitespaceCommand.h: Removed.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): Moved the code to prepare whitespace
- arond a position for being pushed aparat to its own method.
- * editing/htmlediting.cpp:
- (WebCore::stringWithRebalancedWhitespace): Added. Returns a rebalanced string.
- Takes in whether or not the beginning of that string will be at the start of
- a paragraph, because a space at such a position must have be nbsp, even if
- that doesn't follow the nbsp/space pattern used. Similar stuff for the end
- of a paragraph.
- * editing/htmlediting.h:
- * editing/markup.cpp:
- (WebCore::fillContainerFromString): Call stringWithRelabacedWhitespace. Pass
- it the startOfParagraph/endOfParagraph bools.
- 2006-12-05 John Sullivan <sullivan@apple.com>
- Reviewed by Beth
- Moved spelling and grammar code from Frame to Editor
- * WebCore.exp:
- updated for these changes
- * page/Frame.h:
- removed declarations of spelling and grammar functions
- * bridge/mac/FrameMac.h:
- removed declarations of spelling and grammar functions
- * bridge/mac/FrameMac.mm:
- moved implementation of spelling and grammar functions from here
- (WebCore::FrameMac::respondToChangedSelection):
- updated for moved functions
- * editing/Editor.h:
- moved declarations of spelling and grammar functions to here
- * editing/mac/EditorMac.mm:
- moved implementation of spelling and grammar functions to here; changed
- only to make it compile (e.g. removing "editor()->" and adding "frame()->"
- where appropraite.
- (WebCore::findFirstMisspellingInRange):
- (WebCore::paragraphAlignedRangeForRange):
- (WebCore::findFirstGrammarDetailInRange):
- (WebCore::findFirstBadGrammarInRange):
- (WebCore::Editor::advanceToNextMisspelling):
- (WebCore::Editor::isSelectionMisspelled):
- (WebCore::isRangeUngrammatical):
- (WebCore::Editor::isSelectionUngrammatical):
- (WebCore::Editor::guessesForUngrammaticalSelection):
- (WebCore::core):
- (WebCore::Editor::guessesForMisspelledSelection):
- (WebCore::Editor::markMisspellingsInAdjacentWords):
- (WebCore::markAllMisspellingsInRange):
- (WebCore::markAllBadGrammarInRange):
- (WebCore::Editor::markMisspellings):
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate):
- updated for moved functions
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::markMisspellingsAfterTyping):
- updated for moved functions
- 2006-12-05 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- General cleanup, get rid of PlatformResponse (we have ResourceResponse now)
- and remove a couple of functions that were unused.
- * loader/CachedResource.h:
- * loader/LoaderFunctions.h:
- * loader/mac/LoaderFunctionsMac.mm:
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::~ResourceHandle):
- 2006-12-05 Kevin McCullough <kmccullough@apple.com>
- Reviewed by John.
- - keydown is now a keydown event instead of a keypress event.
- Fixes some form submission oddities.
- * platform/win/KeyEventWin.cpp:
- 2006-12-05 John Sullivan <sullivan@apple.com>
- Tiger build fix
- * editing/mac/EditorMac.mm:
- declare -[NSSpellChecker learnWord:], on Tiger only (it's API on Leopard)
- 2006-12-05 John Sullivan <sullivan@apple.com>
- Reviewed by Geoff Garen
- * page/Frame.h:
- remove declarations of ignoreSpelling() and learnSpelling()
- * bridge/mac/FrameMac.h:
- remove declarations of ignoreSpelling() and learnSpelling()
- * bridge/mac/FrameMac.mm:
- moved implementations of ignoreSpelling() and learnSpelling() from here
- * editing/Editor.h:
- added declarations of ignoreSpelling() and learnSpelling()
- * editing/mac/EditorMac.mm:
- (WebCore::Editor::ignoreSpelling):
- moved here from FrameMac.mm
- (WebCore::Editor::learnSpelling):
- ditto
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::contextMenuItemSelected):
- updated callers to use frame()->editor() rather than frame()
- 2006-12-05 John Sullivan <sullivan@apple.com>
- Reviewed by Adam
- New context-menu mechanism fix for:
- <rdar://problem/4864351> Should leave out "No Guesses Found" from context menu for bad grammar
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate):
- Leave out "No Guesses Found" and separator for grammar-checking case.
- 2006-12-05 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11686
- WebKit draws Carto.net tabgroup example completely incorrectly (ff does fine)
- Make sure the SVG render objects are laid out before measuring their
- dimensions using relativeBBox.
- * ksvg2/svg/SVGLocatable.cpp:
- (WebCore::SVGLocatable::getBBox):
- 2006-12-05 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
- Grammar/Spelling code re-homing, baby step one: put isGrammarCheckingEnabled in Editor
- since that's where isContinousSpellCheckingEnabled lives.
- * editing/Editor.h:
- * editing/Editor.cpp:
- (WebCore::Editor::isGrammarCheckingEnabled):
- new method, calls through to client a la isContinuousSpellCheckingEnabled
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- call editor() rather than editor()->client()
- (WebCore::FrameMac::markMisspellings):
- ditto
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate):
- ditto
- 2006-12-05 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - a little cleanup
- * html/HTMLInputElement.h: Removed unneeded includes of RenderObject.h
- and RenderStyle.h.
- * html/HTMLSelectElement.h: Removed unneeded include of RenderStyle.h.
- * ksvg2/svg/SVGStyledElement.h: Removed unneeded include of RenderStyle.h.
- * ksvg2/svg/SVGSVGElement.h: Remove unneeded parameter to createSVGPoint.
- * ksvg2/svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::createSVGPoint):
- Ditto.
- * ksvg2/scripts/generateJSBindings.pl: Removed unused script.
- 2006-12-05 Darin Adler <darin@apple.com>
- * doc: Removed empty directory. It's not clear this is a good place for
- documentation, so lets add it back later if we actually start using it.
- 2006-12-05 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Brady, Darin.
- * loader/loader.cpp:
- (WebCore::Loader::receivedAllData):
- Remove ref() call that was left around by mistake.
- 2006-12-05 Sam Weinig <sam@webkit.org>
- Reviewed by Tim H.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11758
- Don't compile custom SVG and XSLT bindings in non-svg build
- * bindings/js/JSSVGNumber.cpp:
- * bindings/js/JSSVGNumber.h:
- * bindings/js/JSSVGPoint.cpp:
- * bindings/js/JSSVGPoint.h:
- * bindings/js/JSSVGRect.cpp:
- * bindings/js/JSSVGRect.h:
- * bindings/js/JSXSLTProcessor.cpp:
- * bindings/js/JSXSLTProcessor.h:
- 2006-12-04 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
- WebCore part of fix for:
- <rdar://problem/4817188> Context menu for bad grammar should include suggestions and "Ignore Grammar"
- The context menu mechanism is currently in flux; the old mechanism is still in place, but an
- up-and-coming new mechanism is waiting in the wings. I updated both of them, but couldn't
- test the new mechanism because it doesn't work well enough yet. Also, some of this code
- should move from Frame to Editor, but that will wait for another checkin.
- * page/Frame.h:
- added pure virtual function declarations for isSelectionUngrammatical() and guessesForUngrammaticalSelection()
- * bridge/mac/FrameMac.h:
- added virtual functions declarations for isSelectionUngrammatical() and guessesForUngrammaticalSelection()
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::isSelectionMisspelled):
- now updates spelling panel (whether or not it's showing), since this is now needed to make -[NSSSpellChecker
- ignoreWord:inSpellDocumentWithTag:] work correctly
- (WebCore::isRangeUngrammatical):
- new function, helper used by both isSelectionUngrammatical() and guessesForUngrammaticalSelection()
- (WebCore::FrameMac::isSelectionUngrammatical):
- new function, calls isRangeUngrammatical
- (WebCore::FrameMac::guessesForUngrammaticalSelection):
- ditto
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate):
- now considers bad grammar as well as misspellings
-
- * platform/ContextMenuItem.h:
- added ContextMenuItemTagIgnoreGrammar
-
- 2006-12-05 Pam Greene <pam@chromium.org>
- Reviewed, tweaked and landed by Alexey.
- <http://bugs.webkit.org/show_bug.cgi?id=11639> Form buttons don't look different when clicked
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::determineState): Moved test for active
- state before test for hover state, since active should override hover
- when both are true.
- * platform/gdk/RenderThemeGdk.cpp:
- (WebCore::RenderThemeGdk::determineState): Same fix.
- 2006-12-05 Pam Greene <pam@chromium.org>
- Reviewed and landed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11681
- Don't select the first option when resetting a listbox-style form
- control (i.e., a multi-select control or one with size > 1) that
- has no default selection.
- Test: fast/dom/HTMLSelectElement/listbox-select-reset.html
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::reset):
- 2006-12-05 Lars Naesbye Christensen <lars@naesbye.dk>
- Reviewed and landed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11752
- [CSS 3] missing support for cursor selector 'copy'
- * Resources/copyCursor.png: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * manual-tests/cursor.html:
- * page/EventHandler.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::copyCursor):
- * rendering/RenderStyle.h:
- (WebCore::):
- 2006-12-04 Beth Dakin <bdakin@apple.com>
- Reviewed by Geoff.
- Fix from last check-in. This line was badbad.
- * platform/mac/ContextMenuMac.mm:
- (WebCore::ContextMenu::~ContextMenu):
- 2006-12-04 Beth Dakin <bdakin@apple.com>
- Reviewed by Geoff.
- With the new changes to ContextMenuItems, WebCore context menus
- stopped appearing at all. And then when I got them to appear, they
- crashed. This fixes both of these problems.
- * platform/mac/ContextMenuItemMac.mm:
- (WebCore::ContextMenuItem::ContextMenuItem): keyEquivalent cannot
- be nil. This was causing Obj-C to throw an exception preventing the
- menus from popping up at all.
- * platform/mac/ContextMenuMac.mm:
- (+[WebCoreMenuTarget sharedMenuTarget]): Re-name our static
- MenuTarget so that it is more clear that it is a static and shared
- WebCoreMenuTarget.
- (WebCore::ContextMenu::ContextMenu): Initialize the
- WebCoreMenuTarget's controller in the ContextMenu constructor
- instead of in getNSMenuItem since the controller will only possibly
- change when a new ContextMenu has been created.
- (WebCore::ContextMenu::~ContextMenu): Set the target's controller
- to 0.
- (WebCore::getNSMenuItem): A lot of this work is being done other
- places now. Call new class method on WebCoreMenuTarget to get the
- shared target.
- (WebCore::ContextMenu::appendItem): We should not be releasing the
- menuItem here! This caused the crashes I saw.
- (WebCore::ContextMenu::insertItem): Same.
- 2006-12-04 Anders Carlsson <acarlsson@apple.com>
- Fix the build.
-
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::~SubresourceLoader):
- Add back the destructor.
- 2006-12-04 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
-
- Change all ResourceHandleClients to be SubresourceLoaderClients instead. Also,
- make SubresourceLoader a ResourceHandleClient. This is a first step towards turning ResourceHandle into a
- standalone class which doesn't need to know about SubresourceLoader.
- * WebCore.xcodeproj/project.pbxproj:
- * loader/ResourceLoader.cpp:
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::setDefersLoading):
- * loader/SubresourceLoader.cpp:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::~SubresourceLoader):
- (WebCore::SubresourceLoader::create):
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFailWithError):
- (WebCore::SubresourceLoader::receivedAllData):
- * loader/SubresourceLoader.h:
- (WebCore::SubresourceLoader::loaderAsResourceHandleClient):
- (WebCore::SubresourceLoader::handle):
- * loader/SubresourceLoaderClient.h: Added.
- (WebCore::SubresourceLoaderClient::~SubresourceLoaderClient):
- (WebCore::SubresourceLoaderClient::willSendRequest):
- (WebCore::SubresourceLoaderClient::didReceiveResponse):
- (WebCore::SubresourceLoaderClient::didReceiveData):
- (WebCore::SubresourceLoaderClient::didFinishLoading):
- (WebCore::SubresourceLoaderClient::didFailWithError):
- (WebCore::SubresourceLoaderClient::receivedAllData):
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::startLoading):
- (WebCore::IconLoader::stopLoading):
- (WebCore::IconLoader::didReceiveResponse):
- (WebCore::IconLoader::didReceiveData):
- (WebCore::IconLoader::didFailWithError):
- (WebCore::IconLoader::didFinishLoading):
- (WebCore::IconLoader::clearLoadingState):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::didFailWithError):
- (WebCore::Loader::didReceiveResponse):
- (WebCore::Loader::didReceiveData):
- (WebCore::Loader::cancelRequests):
- * loader/loader.h:
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::create):
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::ResourceHandle):
- (WebCore::ResourceHandle::create):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- * platform/network/ResourceHandleInternal.h:
- (WebCore::ResourceHandleInternal::ResourceHandleInternal):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::finishJobAndHandle):
- (WebCore::ResourceHandle::loader):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::didFailWithError):
- (WebCore::XMLHttpRequest::didFinishLoading):
- (WebCore::XMLHttpRequest::willSendRequest):
- (WebCore::XMLHttpRequest::didReceiveResponse):
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- 2006-12-04 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix another part of http://bugs.webkit.org/show_bug.cgi?id=11628
- REGRESSION (r17597): Command-return in text fields doesn't open a new tab or window
- This fixes command-return when the focus is on a link.
- Despite the title of the bug, Mitz wanted me to fix both, and I will not
- say no to him!
- Test: fast/events/simulated-key-state.html
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Instead of always passing
- false for all the key state in simulated mouse events, pass the state from the
- first underlying event in the chain that has key state; in the case in the bug,
- the keyboard event will be the underlying event itself and we'll propagate the
- alt key modifier to the mouse event, resulting in the effect we want. It's nice
- that JavaScript also gets to see the proper modifiers in the mouse event.
- * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
- Added code to pass in an underlying event to dispatchSimulatedClick. After looking
- at all the other callers, this seems to be the only one that needs to pass an
- event that is currently passing 0. Also removed the code that only simulated a
- click when the event has a PlatformKeyboardEvent -- no reason for that and it
- prevented me from writing a layout test for the fix.
- * dom/UIEventWithKeyState.h: Added findEventWithKeyState function that walks the
- underlyingEvent chain to find the first event that has key state. This already
- existed in WebKit, but I wanted to use it in dispatchSimulatedMouseEvent.
- * dom/UIEventWithKeyState.cpp: Added.
- * CMakeLists.txt: Added UIEventWithKeyState.cpp.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Added UIEventWithKeyState.cpp.
- * WebCore.xcodeproj/project.pbxproj: Added UIEventWithKeyState.cpp.
- * WebCoreSources.bkl: Added UIEventWithKeyState.cpp.
- * WebCore.exp: Added findEventWithKeyState, used by WebKit.
- 2006-12-04 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Darin.
- - rdar://problem/4833935
- - removed the guards for the "multiple forms submission" issue, which may not be
- an issue anymore and the guards prevent perfectly legitimate websites from
- working correctly.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setView):
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityPerformAction:]):
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::keyPress):
- * config.h:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::submitForm):
- * loader/FrameLoader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::receivedMainResourceError):
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::submitForm):
- * page/Frame.cpp:
- (WebCore::Frame::setView):
- * page/mac/EventHandlerMac.mm:
- (WebCore::EventHandler::keyEvent):
- (WebCore::EventHandler::mouseDown):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::keyEvent):
- 2006-12-02 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin Adler.
-
- Added support for Dashboard backward compatibility mode.
-
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::stroke): Added support for old behavior
- of automatically clearing the stroke path buffer after a call to stroke().
- * html/HTMLCanvasElement.cpp: Added supoprt for old behavior of the canvas
- tag being self-closing.
- (WebCore::HTMLCanvasElement::endTagRequirement):
- (WebCore::HTMLCanvasElement::tagPriority):
- * html/HTMLCanvasElement.h:
- * html/HTMLParser.cpp: Ditto.
- (WebCore::HTMLParser::canvasCreateErrorCheck):
- * xml/xmlhttprequest.cpp: Added support for old behavior of silently ignoring
- a call to setRequestHeader() if it preceded a call to open() or followed a call
- to send().
- (WebCore::XMLHttpRequest::setRequestHeader):
- 2006-12-04 Darin Adler <darin@apple.com>
- Reviewed by Alice.
- * bridge/EditorClient.h: Removed "_web_" prefix from
- C++ userVisibleString member function. Alice will probably change
- this so it's not on the editor client any more later.
- * editing/Editor.h: Removed "_web_" prefix from
- C++ userVisibleString member function.
- * editing/Editor.cpp: Tweaked formatting a bit. Removed Mac-specific
- code from this file.
- * editing/mac/EditorMac.mm:
- (WebCore::Editor::newGeneralClipboard): Removed unnneded local variable.
- (WebCore::Editor::userVisibleString): Moved this function here.
- * platform/Pasteboard.h: Added some FIXMEs. Removed unneeded includes.
- Made Pasteboard noncopyable. Removed use of "protected" where we should
- be using "private". Removed s_generalPasteboard.
- * platform/mac/PasteboardMac.mm: Added some FIXMEs. Removed the
- s_generalPasteboard global. Removed the unused destructor. Updated call
- to userVisibleString for name change. Tweaked formatting.
- 2006-12-04 Alice Liu <alice.liu@apple.com>
- Reviewed by Oliver.
- Moved some constants from EventHandlerMac.mm to EventHandler.cpp
- Added some platform-specific data members and functions.
- * page/EventHandler.cpp:
- * page/EventHandler.h:
- * page/mac/EventHandlerMac.mm:
- * platform/PlatformMouseEvent.h:
- (WebCore::):
- (WebCore::PlatformMouseEvent::timestamp):
- (WebCore::PlatformMouseEvent::activatedWebView):
- (WebCore::PlatformMouseEvent::type):
- 2006-12-04 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin, Geoff.
- Get rid of ResourceHandle::kill(), all it did was to balance out a ref() in ResourceHandle::start().
- We use RefPtrs to ResourceHandle instead.
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::~IconLoader):
- (WebCore::IconLoader::stopLoading):
- (WebCore::IconLoader::didReceiveResponse):
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::cancelRequests):
- (WebCore::Loader::jobForRequest):
- * loader/loader.h:
- * platform/network/ResourceHandle.cpp:
- * platform/network/ResourceHandle.h:
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::finishJobAndHandle):
- (WebCore::ResourceHandle::reportError):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::abort):
- (WebCore::XMLHttpRequest::didFinishLoading):
- 2006-12-04 Oliver Hunt <oliver@apple.com>
- Build fix for non-SVG builds
- * bindings/js/JSSVGPoint.cpp:
- (WebCore::JSSVGPointProtoFunc::callAsFunction):
- 2006-12-04 Darin Adler <darin@apple.com>
- Reviewed by Beth.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11632
- AKA <rdar://problem/4858866> REGRESSION (r17770): Overflow areas' scrollbars don't work
- No test case added at the moment, but Beth said she'd investigate
- adding one after the fact.
- * page/mac/EventHandlerMac.mm:
- (WebCore::EventHandler::passMousePressEventToScrollbar):
- Fix obvious-in-retrospect copy and paste error -- call
- passMouseDownEventToWidget instead of passWheelEventToWidget.
- 2006-12-04 Peter Kasting <pkasting@google.com>
- Reviewed and landed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11738:
- Make link clicking work again on Windows.
- This re-implements a few functions that used to be part of FrameWin in
- their new loader-based locations, and copies a few things from the Mac
- and Qt event handling code that aren't strictly necessary but are
- pretty simple.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ChromeClientWin.h:
- * bridge/win/ContextMenuClientWin.h:
- * bridge/win/EditorClientWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::client):
- * bridge/win/FrameWin.h:
- * loader/win/DocumentLoaderWin.cpp: Added.
- (WebCore::DocumentLoader::setTitle):
- * loader/win/FrameLoaderClientWin.cpp: Added.
- (WebCore::FrameLoaderClientWin::userAgent):
- * loader/win/FrameLoaderClientWin.h:
- * loader/win/FrameLoaderWin.cpp: Added.
- (WebCore::FrameLoader::urlSelected):
- (WebCore::FrameLoader::submitForm):
- (WebCore::FrameLoader::setTitle):
- * page/win/EventHandlerWin.cpp: Added.
- (WebCore::EventHandler::passMousePressEventToSubframe):
- (WebCore::EventHandler::passMouseMoveEventToSubframe):
- (WebCore::EventHandler::passMouseReleaseEventToSubframe):
- (WebCore::EventHandler::passWheelEventToSubframe):
- (WebCore::EventHandler::passMousePressEventToScrollbar):
- (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::EventHandler::tabsToLinks):
- (WebCore::EventHandler::tabsToAllControls):
- (WebCore::EventHandler::lastEventIsMouseUp):
- (WebCore::EventHandler::passSubframeEventToSubframe):
- (WebCore::EventHandler::passMouseDownEventToWidget):
- (WebCore::EventHandler::passWheelEventToWidget):
- (WebCore::FrameLoader::getHistoryLength):
- (WebCore::FrameLoader::historyURL):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoaderClientWin::setTitle):
- 2006-12-04 Peter Kasting <pkasting@google.com>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11748:
- Windows build bustage.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/ContextMenuItem.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenuItem::platformDescription):
- (WebCore::ContextMenuItem::action):
- (WebCore::ContextMenuItem::setAction):
- (WebCore::ContextMenuItem::title):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::platformSubMenu):
- (WebCore::ContextMenuItem::setSubMenu):
- 2006-12-04 John Sullivan <sullivan@apple.com>
- Reviewed by Anders
- Moved EditorMac.mm to its appropriate location
- * platform/mac/EditorMac.mm: Removed.
- * editing/mac/EditorMac.mm: Added
- * WebCore.xcodeproj/project.pbxproj:
- updated for this change
- 2006-12-04 Rob Buis <buis@kde.org>
- Reviewed by dhyatt.
- Patch by pmax.
- http://bugs.webkit.org/show_bug.cgi?id=3280
- With LEGEND element, align=right value is not supported
- http://bugs.webkit.org/show_bug.cgi?id=11544
- <legend> rendering doesn't take align into account
- Allow aligning for legends in both RTL and LTR mode.
- * rendering/RenderFieldset.cpp:
- (WebCore::RenderFieldset::layoutLegend):
- 2006-12-03 Mark Rowe <bdash@webkit.org>
- Reviewed by Alexey.
- http://bugs.webkit.org/show_bug.cgi?id=11730
- Bug 11730: Meta HTTP Refresh that contains a fraction / decimal get ignored.
- * dom/Document.cpp:
- (WebCore::Document::processHttpEquiv): Parse the refresh interval as a double rather than an integer.
- 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fix following bugs:
- http://bugs.webkit.org/show_bug.cgi?id=11734
- http://bugs.webkit.org/show_bug.cgi?id=11685
- SVGPoint/SVGRect/SVGNumber were missing put() support.
- SVGPoint.matrixTransform() was missing.
- In SVG DOM there are no cases where a readwrite property
- exists of type SVGRect/SVGNumber/SVGPoint. Only function
- calls returns instances of these objects. It would make
- no sense to be able to write "someObj.getBbox().x = 100", and
- modify the actual stored internal value of "someObj".
- The only cases where these modification makes sense, is
- when these SVGPoint/SVGRect/SVGNumber objects are created
- via document.rootElement.createSVGPoint/Rect/Number (SVGSVGElement interface).
- Result: The current implementation, where we just modify the stored FloatPoint/FloatRect/double
- values in the JSSVGPoint/Rect/Number wrappers directly, is sufficient.
- Patch created by Rob & me - co production.
- Long live the great carto.next examples! :-)
- * CMakeLists.txt:
- * DerivedSources.make:
- * bindings/js/JSSVGNumber.cpp:
- (WebCore::):
- (WebCore::JSSVGNumber::getOwnPropertySlot):
- (WebCore::JSSVGNumber::getValueProperty):
- (WebCore::JSSVGNumber::put):
- (WebCore::JSSVGNumber::putValueProperty):
- * bindings/js/JSSVGNumber.h:
- (WebCore::JSSVGNumber::):
- (WebCore::JSSVGNumber::impl):
- * bindings/js/JSSVGPoint.cpp:
- (WebCore::JSSVGPoint::JSSVGPoint):
- (WebCore::JSSVGPoint::put):
- (WebCore::JSSVGPoint::putValueProperty):
- (WebCore::JSSVGPointProtoFunc::callAsFunction):
- * bindings/js/JSSVGPoint.h:
- (WebCore::JSSVGPoint::):
- * bindings/js/JSSVGRect.cpp:
- (WebCore::JSSVGRect::put):
- (WebCore::JSSVGRect::putValueProperty):
- * bindings/js/JSSVGRect.h:
- * bindings/objc/DOMSVGPoint.mm:
- (-[DOMSVGPoint matrixTransform:]):
- * platform/graphics/FloatPoint.cpp:
- (WebCore::FloatPoint::matrixTransform):
- * platform/graphics/FloatPoint.h:
- 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Dave.
- Another missing piece in the platform/graphics move.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/ImageAnimationObserver.h: Moved to platform/graphics.
- 2006-12-03 Rob Buis <buis@kde.org>
- Reviewed by Oliver.
- http://bugs.webkit.org/show_bug.cgi?id=11667
- SVG: method .getTransformToElement(elt) in SVGLocatable not implemented
- Implement getTransformToElement functionality. Introduce virtual
- baseclass SVGLocatable to allow one implementation of the functionality.
- Finally cleanup some code.
- * ksvg2/svg/SVGLocatable.cpp:
- (WebCore::SVGLocatable::getTransformToElement):
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- (WebCore::SVGStyledLocatableElement::SVGStyledLocatableElement):
- (WebCore::SVGStyledLocatableElement::nearestViewportElement):
- (WebCore::SVGStyledLocatableElement::farthestViewportElement):
- (WebCore::SVGStyledLocatableElement::getCTM):
- (WebCore::SVGStyledLocatableElement::getScreenCTM):
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (WebCore::SVGStyledTransformableElement::SVGStyledTransformableElement):
- (WebCore::SVGStyledTransformableElement::localMatrix):
- (WebCore::SVGStyledTransformableElement::getCTM):
- (WebCore::SVGStyledTransformableElement::getScreenCTM):
- (WebCore::SVGStyledTransformableElement::updateLocalTransform):
- (WebCore::SVGStyledTransformableElement::parseMappedAttribute):
- (WebCore::SVGStyledTransformableElement::nearestViewportElement):
- (WebCore::SVGStyledTransformableElement::farthestViewportElement):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTransformable.h:
- 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Move some files around, which have been forgotton in the platform/graphics move.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/GraphicsContextMac.mm: Moved to platform/graphics/mac.
- * platform/qt/GraphicsContextQt.cpp: Moved to platform/grahpics/qt.
- 2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz.
- Fix non-svg build.
- * platform/graphics/GraphicsContext.h:
- * platform/mac/GraphicsContextMac.mm:
- 2006-12-02 John Sullivan <sullivan@apple.com>
- Reviewed by Tim Omernick
- Removed a couple of big chunks of duplicated code from the spelling and grammar stuff by merging
- the find-next-instance functions with the mark-all-instances functions.
- * bridge/mac/FrameMac.mm:
- (WebCore::findFirstMisspellingInRange):
- added markAll parameter, and reworked loop so that if markAll parameter is true, this function loops
- through the entire range and marks each misspelling
- (WebCore::findFirstGrammarDetailInRange):
- extracted from findFirstBadGrammarInRange; loops through the potentially-multiple details in a given
- ungrammatical phrase (e.g., multiple grammar errors in one sentence). Has a markAll parameter akin
- to the one in findFirstMisspellingInRange.
- (WebCore::findFirstBadGrammarInRange):
- added markAll parameter like the one in findFirstMisspellingInRange, and extracted findFirstGrammarDetailInRange
- (WebCore::FrameMac::advanceToNextMisspelling):
- pass "false" for new markAll parameters
- (WebCore::markAllMisspellingsInRange):
- now just calls findFirstMisspellingInRange with markAll = true, thus removing a big hunk of duplicated code
- (WebCore::markAllBadGrammarInRange):
- now just calls findFirstBadGrammarInRange with markAll = true, thus removing a big hunk of duplicated code
- 2006-12-02 Mitz Pettel <mitz@webkit.org>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11672
- REGRESSION (r17068): Repro crash due to painting without layout
- Test: fast/dynamic/containing-block-change.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle): Changed the logic used
- to find absolutely positioned descendant's current containing block to
- match the changes made to containingBlock() in the fix for bug 9347.
- 2006-12-02 Darin Fisher <darin@chromium.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11709
- DeprecatedString::format is broken on Windows
- Use _vscprintf on Windows to compute the length of the buffer that
- vsnprintf would need.
- * platform/DeprecatedString.cpp:
- (WebCore::DeprecatedString::format):
- * platform/String.cpp:
- (WebCore::String::format):
- 2006-12-01 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Support for sub-menus in WebCore context menus. This also re-
- architects the ContextMenuItem class so that it is more like
- ContextMenu in that the class is now really just a wrapper for the
- platformDescription
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::contextMenuItemSelected): Add
- place-holders for new tags for the sub-menu items. I will flesh
- these out in a separate check-in.
- * platform/ContextMenu.cpp:
- (WebCore::createFontSubMenu):
- (WebCore::createSpellingAndGrammarSubMenu):
- (WebCore::createSpellingSubMenu):
- (WebCore::createSpeechSubMenu):
- (WebCore::createWritingDirectionSubMenu):
- (WebCore::ContextMenu::populate): Call the above functions to add
- the appropriate sub-menus to editing context menus.
- * platform/ContextMenu.h:
- * platform/ContextMenuItem.h:
- (WebCore::): New tags in the ContextMenuAction enumeration.
- (WebCore::ContextMenuItem::parentMenu):
- (WebCore::ContextMenuItem::setType):
- * platform/PlatformMenuDescription.h: Added. This defines
- PlatformMenuDesciption. It needs to be its own header because we
- have to include it from ContextMenu.h and ContextMenuItem.h
- * platform/mac/ContextMenuItemMac.mm: Lots of adjustments here to
- make this class basically just be a wrapper for NSMenuItem.
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenuItem::~ContextMenuItem):
- (WebCore::ContextMenuItem::platformDescription):
- (WebCore::ContextMenuItem::action):
- (WebCore::ContextMenuItem::title):
- (WebCore::ContextMenuItem::platformSubMenu):
- (WebCore::ContextMenuItem::setAction):
- (WebCore::ContextMenuItem::setTitle):
- (WebCore::ContextMenuItem::setSubMenu):
- * platform/mac/ContextMenuMac.mm:
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::getNSMenuItem): Now we only have to get the
- platformDescription of the ContextMenuItem and then set its target
- and action.
- (WebCore::ContextMenu::itemCount):
- 2006-12-01 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by .
- - accidentally checked in with previous checkin
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::keyEvent):
- 2006-12-01 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Adam.
- - better solution to the ambiguous reference
- * platform/Widget.h:
- (WebCore::Widget::handleMouseMoveEvent):
- (WebCore::Widget::handleMouseReleaseEvent):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::keyEvent):
- * platform/win/PlatformScrollBar.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::PlatformScrollbar::handleMouseMoveEvent):
- (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
- 2006-12-01 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <rdar://problem/4826940>
- Selection change performed even when delete delegate replies NO (11415)
- No layout test for the bug fix, because there's no way to register a custom
- editing delegate from a layout test. Layout tests are effected by the change
- to avoid sending unnecessary shouldChangeSelections, however.
- * editing/Editor.cpp:
- (WebCore::Editor::appliedEditing): Don't bother sending shouldChangeSelection
- if the editing operation didn't change the selection. Still call
- setSelection though, because it does work in this case that's necessary,
- like clearing the typing style.
- (WebCore::Editor::unappliedEditing): Ditto.
- (WebCore::Editor::reappliedEditing): Ditto.
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed): Don't set the starting
- selection if the editing delegate returns NO from shouldDeleteRange.
- Notice we now call setStartingSelection in the case where
- the current selection was a range selection. This is fine because
- it's a no-op (the starting selection is already the current selection).
- (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
- 2006-12-01 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
-
- Move subrange helper function from spellchecking code to TextIterator
- * editing/TextIterator.h:
- added TextIterator::subrange
- * editing/TextIterator.cpp:
- (WebCore::CharacterIterator::advance):
- early return if count is <= 0; assert that it's not < 0
- (WebCore::TextIterator::subrange):
- new function, moved from FrameMac.mmm
- * bridge/mac/FrameMac.mm:
- moved subrange() function to TextIterator
- (WebCore::FrameMac::advanceToNextMisspelling):
- use TextIterator::subrange
- (WebCore::markAllMisspellingsInRange):
- ditto
- (WebCore::markAllBadGrammarInRange):
- ditto
- 2006-12-01 Darin Adler <darin@apple.com>
- Reviewed by Mitz.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11628
- REGRESSION (r17597): Command-return in native text fields doesn't open a new tab or window
- I couldn't think of an easy way to make a regression test for this, but maybe
- I'll get an idea later about how to do it.
- The main thing I did was add a concept of a DOM event having an "underlying event".
- That allows the DOM activate event to contain inside it the original keyboard event
- that triggered the form submission, and thus allows WebKit to see the modifier keys
- from that original event. The code that uses the underlying event is in WebKit, but
- the code to set it up is here in WebCore.
- - also do some clean-up to related event handling code
- * bindings/js/kjs_events.cpp: (KJS::DOMEvent::getValueProperty): Updated for the
- name change of cancelBubble.
- * dom/Event.h: Removed a useless comment. Fixed some whitespace and formatting.
- Renamed getCancelBubble to cancelBubble to match the DOM -- I suspect the old
- name predated the use of the m_ prefix on data members. Added the underlying event,
- and a getter and setter.
- * dom/Event.cpp:
- (WebCore::Event::setTarget): Updated to take a PassRefPtr.
- (WebCore::Event::setUnderlyingEvent): Added.
- * dom/EventTargetNode.h: Added an optional underlyingEvent parameter to
- dispatchUIEvent, one of the overloads of dispatchMouseEvent, and
- dispatchSimulatedMouseEvent. Added a new dispatchSimulatedClick function here that
- mostly replaces the click function in HTMLElement.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent): Updated for the name change
- of cancelBubble.
- (WebCore::EventTargetNode::dispatchUIEvent): Added an underlying event parameter,
- which gets attached to the UIEvent object after it's created.
- (WebCore::EventTargetNode::dispatchMouseEvent): Tweaked formatting and parameter
- name for the version that creates a mouse event for a real platform mouse event.
- Added an underlying event parameter to the main version, and attached it to all
- three of the events that can be dispatched.
- (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Added an underlying
- event parameter, passed it along to dispatchMouseEvent.
- (WebCore::EventTargetNode::dispatchSimulatedClick): Moved this here from HTMLElement
- and renamed it from click. Added an underlyingEvent parameter, and passed that along
- in all three of the calls to dispatchSimulatedMouseEvent.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::shouldClose): Updated call to
- setTarget that no longer needs a get().
- * ksvg2/svg/SVGElement.cpp: (WebCore::SVGElement::sendSVGLoadEventIfPossible): Ditto.
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler): Converted a call to click
- to a call to dispatchSimulatedClick.
- (WebCore::HTMLAnchorElement::accessKeyAction): Ditto.
- * html/HTMLButtonElement.cpp:
- (WebCore::HTMLButtonElement::accessKeyAction): Ditto.
- * html/HTMLElement.h: Removed the parameters to click and made it non-virtual.
- We could move it down to the input and button elements, now that it's just
- a single function call, but it's also OK to just leave it here.
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::click): Removed the parameters and changed this to just
- call dispatchSimulatedClick. The real work is now in dispatchSimulatedClick.
- (WebCore::HTMLElement::accessKeyAction): Converted a call to click to a call to
- dispatchSimulatedClick.
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::submitClick): Ditto. But unlike accessKeyAction callers,
- pass the event along as the underlying event.
- * html/HTMLInputElement.h:
- * html/HTMLInputElement.cpp: Removed override of virtual click function. The
- special cases for the file control and hidden input elements aren't needed.
- (WebCore::HTMLInputElement::accessKeyAction): Converted a call to click to a call to
- dispatchSimulatedClick.
- (WebCore::HTMLInputElement::defaultEventHandler): Converted calls to click to calls to
- dispatchSimulatedClick, passing along the event as the underlying event.
- * html/HTMLLabelElement.cpp:
- (WebCore::HTMLLabelElement::defaultEventHandler): Converted a call to click to a call
- to dispatchSimulatedClick, passing the event along as the underlying event. Also
- changed the local variable for the element to a RefPtr since the code assumes it's
- still around after calling arbitrary JavaScript code.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::accessKeyAction): Converted a call to click to a call to
- dispatchSimulatedClick.
- * rendering/RenderFileUploadControl.h:
- * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::click):
- Removed unneeded ignored parameter to the click function, and also made it non-virtual.
- * loader/NavigationAction.h: Removed unneeded includes.
- * loader/NavigationAction.cpp: Moved all the code here from NavigationActionMac.mm,
- since none of it is Mac-specific any more.
- * loader/mac/NavigationActionMac.mm: Removed.
- * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
- * ksvg2/svg/SVGAElement.cpp: Removed an unnecessary include.
- * loader/FrameLoader.cpp: Added a newly-needed incluude.
- * loader/mac/DocumentLoaderMac.mm: Ditto.
- * loader/mac/FrameLoaderMac.mm: Ditto.
- * rendering/RenderWidget.cpp: Ditto.
- 2006-12-01 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
- - fixed <rdar://problem/4811175> Many false reports of bad grammar appear, caused by
- insufficient context passed to grammar checker
- * bridge/mac/FrameMac.mm:
- (WebCore::markAllMisspellingsInRange):
- new function, extracted from markMisspellings -- ignores grammar
- (WebCore::markAllBadGrammarInRange):
- new function, extracted from markMisspellings -- ignores spelling, and operates on
- appropriately-sized chunks of text
- (WebCore::FrameMac::markMisspellings):
- now calls markAllMisspellingsInRange and (optionally) markAllBadGrammarInRange rather
- than trying to interweave the spelling and grammar logic
- 2006-12-01 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
- With these changes, grammar checking works correctly for the one-by-one case.
- It still doesn't work correctly for the check-as-you-type case; I need to make these
- same kinds of changes in markMisspellings, and refactor to share more code between
- the two cases, but I wanted to get this working code in before modifying it further.
- The major change here is that advanceToNextMisspelling used to look at small chunks of
- text at a time, checking each one for both misspellings and questionable grammar. But
- grammar checking needs at least paragraph-sized chunks of text to have enough context
- to work correctly, so the old mechanism was causing many spurious complaints of bad
- grammar (e.g., almost every word seemed to be at the start of a sentence so the checker
- would complain about missing capitalization). So now the spell checker runs in the
- specified range first. Then the grammar checker runs on the same range (stopping at the
- next misspelling, if any), but expanded to paragraph-aligned boundaries.
- * bridge/mac/FrameMac.mm:
- (WebCore::findFirstMisspellingInRange):
- new function, extracted from advanceToNextMisspelling, and ignores grammar
- (WebCore::paragraphAlignedRangeForRange):
- new function, used by findNextBadGrammarInRange
- (WebCore::findFirstBadGrammarInRange):
- new function, extracted from advanceToNextMisspelling, and rewritten to use paragraph-aligned
- chunks, and ignores spelling
- (WebCore::subrange):
- new helper function, used by advanceToNextMisspelling
- (WebCore::FrameMac::advanceToNextMisspelling):
- now calls out to both findFirstMisspellingInRange and findFirstBadGrammarInRange separately
- instead of trying to interweave the spelling and grammar logic
- 2006-12-01 Peter Kasting <pkasting@google.com>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11732:
- Windows build bustage.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ChromeClientWin.h:
- * bridge/win/ContextMenuClientWin.h:
- * bridge/win/EditorClientWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- (WebCore::FrameWin::keyPress):
- * bridge/win/FrameWin.h:
- * loader/win/FrameLoaderClientWin.h:
- * platform/ContextMenu.h:
- * platform/Widget.h:
- * platform/win/PlatformScrollBar.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ChromeClientWin::chromeDestroyed):
- (WebCore::ChromeClientWin::addMessageToConsole):
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::~ContextMenu):
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenuClientWin::contextMenuDestroyed):
- (WebCore::ContextMenuClientWin::contextMenuItemSelected):
- (WebCore::ContextMenuItem::~ContextMenuItem):
- (WebCore::Editor::newGeneralClipboard):
- (WebCore::EditorClientWin::pageDestroyed):
- (WebCore::EditorClientWin::smartInsertDeleteEnabled):
- (WebCore::EditorClientWin::shouldInsertNode):
- (WebCore::FrameLoader::createPlugin):
- (WebCore::FrameLoaderClientWin::frameLoaderDestroyed):
- (WebCore::FrameLoaderClientWin::hasWebView):
- (WebCore::FrameLoaderClientWin::canHandleRequest):
- (WebCore::FrameWin::unfocusWindow):
- (WebCore::FrameWin::bindingRootObject):
- (WebCore::FrameWin::issueCopyCommand):
- (WebCore::FrameWin::markMisspellings):
- (WebCore::FrameWin::issueTransposeCommand):
- (WebCore::FrameWin::markedTextRange):
- (WebCore::FrameWin::respondToChangedSelection):
- (WebCore::FrameWin::markMisspellingsInAdjacentWords):
- (WebCore::FrameWin::isSelectionMisspelled):
- (WebCore::FrameWin::guessesForMisspelledSelection):
- (WebCore::Pasteboard::generalPasteboard):
- (WebCore::Pasteboard::writeSelection):
- (WebCore::Pasteboard::clearTypes):
- (WebCore::Pasteboard::canSmartReplace):
- (WebCore::Pasteboard::documentFragment):
- (WebCore::Pasteboard::plainText):
- (WebCore::Pasteboard::Pasteboard):
- (WebCore::Pasteboard::~Pasteboard):
- (WebCore::Pasteboard::registerSelectionPasteboardTypes):
- (WebCore::Pasteboard::replaceNBSP):
- (WebCore::Pasteboard::createHandle):
- (WebCore::Pasteboard::createCF_HTMLFromRange):
- 2006-11-30 Geoffrey Garen <ggaren@apple.com>
- Rubber Stamped by Anders Carlsson.
- Global rename of Document::focusNode to Document::focusedNode. 'focusNode'
- suggested a command, and conflicted with a different meaning for 'focusNode'
- in the Mozilla selection API.
- 2006-11-30 John Sullivan <sullivan@apple.com>
- Reviewed by Justin
- With Darin, fixed a problem in the Range constructors found while implementing grammar checking.
- That revealed another problem in the layout tests involving bad parameters passed to the Range
- constructors.
-
- With these fixes in place, one layout test (editing/execCommand/create-list-from-range-selection.html)
- no longer works as intended. This is apparently due to yet another bug being flushed out somewhere.
- I'm going to update the results for that test and file a separate radar about it, which Justin will
- investigate.
- * dom/Position.h:
- removed equivalentRangeCompliantPosition(), which was declared but not implemented or called.
-
- * dom/Range.cpp:
- (WebCore::Range::Range):
- Call setStart and setEnd in the two Range constructors that take parameters, rather than just
- directly setting the instance variables. This makes Range perform the boundary checks and
- compensations that the DOM spec requires.
-
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs):
- Use rangeCompliantEquivalent() on "editing-style" Positions before creating Ranges from them.
-
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::TextIterator):
- Assert that the boundary points of the range are valid.
- 2006-11-30 Lou Amadio <lamadio@apple.com>
- Reviewed by Dave Hyatt
- Cleaned up generated files.
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::isRecognizedTagName):
- Uses the new method for retrieving the list of supported tags
- * ksvg2/scripts/make_names.pl:
- Generates tag lists without using macros.
- 2006-11-30 Adam Roben <aroben@apple.com>
- Reviewed by Beth.
- Store ContextMenu's NSMutableArray inside a RetainPtr so that we
- will retain/release it correctly.
- * WebCore.exp:
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate): Added a FIXME.
- * platform/ContextMenu.h:
- * platform/mac/ContextMenuMac.mm:
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::~ContextMenu):
- (WebCore::getNSMenuItem):
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::itemCount):
- (WebCore::ContextMenu::insertItem):
- (WebCore::ContextMenu::setPlatformDescription):
- (WebCore::ContextMenu::platformDescription):
- 2006-11-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Rubber stamped by Oliver.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10383
-
- This is the final patch after the long "die kcanvas" journey.
- All old kcanvas code is gone now, and properly integrated within
- WebCore (stuff like GraphicsContext changes etc.). It shares
- the platform/ design concept: no subclassing, but instead
- implementing parts of the classes/methods per-platform.
- This commit removes the last pieces: KRenderingDevice & KRenderingDeviceContext.
- This layer was just obsolete, given the powerful GraphicsContext API we have
- since quite a while now. All the ugly pushContext/popContext stuff is gone now.
- LayoutTests affected: svg/W3C-SVG-1.1/pservers-grad-11-b.svg
- Radial gradients as fill color for texts, work again!
- Though "Gradient on text stroke" remains broken. Funny thing:
- With this patch, if you "select" the text using the mouse, as
- soon as the selection rectangle is drawn, you see the correct
- gradient on stroke rendering - at least a hint where it breaks!
- All svg layout tests have subtle text rendering changes - with and without this
- patch, it seems it was forgotton to update svg pixel test baseline, a while ago.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/device/KRenderingDevice.cpp: Removed.
- * kcanvas/device/KRenderingDevice.h: Removed.
- * kcanvas/device/qt/KRenderingDeviceQt.cpp: Removed.
- * kcanvas/device/qt/KRenderingDeviceQt.h: Removed.
- * kcanvas/device/qt/RenderPathQt.cpp: Moved to platform/graphics/qt
- * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Moved to platform/graphics/svg/cg/RenderPathCg.cpp
- * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Removed.
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h: Removed.
- * kcanvas/device/quartz/QuartzSupport.cpp: Moved to platform/graphics/svg/cg/CgSupport.cpp
- * kcanvas/device/quartz/QuartzSupport.h: Moved to platform/graphics/svg/cg/CgSupport.h
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::sharedSolidPaintServer):
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGClipPathElement.cpp:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (WebCore::SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (WebCore::SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
- (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
- (WebCore::SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (WebCore::SVGFECompositeElement::SVGFECompositeElement):
- (WebCore::SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- (WebCore::SVGFEDiffuseLightingElement::updateLights):
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (WebCore::SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEDistantLightElement.cpp:
- (WebCore::SVGFEDistantLightElement::SVGFEDistantLightElement):
- (WebCore::SVGFEDistantLightElement::lightSource):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (WebCore::SVGFEFloodElement::SVGFEFloodElement):
- (WebCore::SVGFEFloodElement::parseMappedAttribute):
- (WebCore::SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEFuncAElement.cpp:
- * ksvg2/svg/SVGFEFuncBElement.cpp:
- * ksvg2/svg/SVGFEFuncGElement.cpp:
- (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
- * ksvg2/svg/SVGFEFuncRElement.cpp:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (WebCore::SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEImageElement.cpp:
- (WebCore::SVGFEImageElement::SVGFEImageElement):
- (WebCore::SVGFEImageElement::parseMappedAttribute):
- (WebCore::SVGFEImageElement::notifyFinished):
- (WebCore::SVGFEImageElement::filterEffect):
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (WebCore::SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEMergeNodeElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (WebCore::SVGFEOffsetElement::SVGFEOffsetElement):
- (WebCore::SVGFEOffsetElement::parseMappedAttribute):
- (WebCore::SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFEPointLightElement.cpp:
- (WebCore::SVGFEPointLightElement::lightSource):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (WebCore::SVGFESpecularLightingElement::SVGFESpecularLightingElement):
- (WebCore::SVGFESpecularLightingElement::filterEffect):
- (WebCore::SVGFESpecularLightingElement::updateLights):
- * ksvg2/svg/SVGFESpotLightElement.cpp:
- (WebCore::SVGFESpotLightElement::SVGFESpotLightElement):
- (WebCore::SVGFESpotLightElement::lightSource):
- * ksvg2/svg/SVGFETileElement.cpp:
- (WebCore::SVGFETileElement::SVGFETileElement):
- (WebCore::SVGFETileElement::parseMappedAttribute):
- (WebCore::SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (WebCore::SVGFETurbulenceElement::filterEffect):
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::canvasResource):
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::parseMappedAttribute):
- (WebCore::SVGMaskElement::drawMaskerContent):
- (WebCore::SVGMaskElement::canvasResource):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::canvasResource):
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledElement.h:
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/svg/SVGPaintServer.h:
- * platform/graphics/svg/SVGPaintServerGradient.cpp:
- (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
- * platform/graphics/svg/SVGPaintServerGradient.h:
- * platform/graphics/svg/SVGPaintServerLinearGradient.h:
- * platform/graphics/svg/SVGPaintServerPattern.h:
- * platform/graphics/svg/SVGPaintServerRadialGradient.h:
- * platform/graphics/svg/SVGPaintServerSolid.h:
- * platform/graphics/svg/SVGResource.cpp:
- * platform/graphics/svg/SVGResource.h:
- * platform/graphics/svg/SVGResourceClipper.h:
- * platform/graphics/svg/SVGResourceFilter.h:
- * platform/graphics/svg/SVGResourceMasker.h:
- * platform/graphics/svg/cg/RenderPathCg.cpp: Added.
- * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
- (WebCore::SVGPaintServer::draw):
- (WebCore::SVGPaintServer::teardown):
- (WebCore::SVGPaintServer::renderPath):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::renderPath):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- (WebCore::SVGPaintServerPattern::teardown):
- * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
- (WebCore::SVGResourceClipper::applyClip):
- * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
- (WebCore::SVGResourceFilter::SVGResourceFilter):
- (WebCore::SVGResourceFilter::createFilterEffect):
- (WebCore::SVGResourceFilter::prepareFilter):
- (WebCore::SVGResourceFilter::applyFilter):
- * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
- (WebCore::SVGResourceMasker::applyMask):
- * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
- (WebCore::SVGPaintServer::draw):
- (WebCore::SVGPaintServer::teardown):
- (WebCore::SVGPaintServer::renderPath):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
- (WebCore::setup):
- * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
- (WebCore::SVGResourceClipper::applyClip):
- * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
- (WebCore::SVGResourceFilter::createFilterEffect):
- (WebCore::SVGResourceFilter::prepareFilter):
- (WebCore::SVGResourceFilter::applyFilter):
- * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
- (WebCore::SVGResourceMasker::applyMask):
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::beginPath):
- (WebCore::GraphicsContext::addPath):
- (WebCore::GraphicsContext::setFillRule):
- (WebCore::GraphicsContext::currentPath):
- (WebCore::GraphicsContext::strokeRect):
- (WebCore::contextForImage):
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * rendering/RenderSVGImage.h:
- * rendering/RenderSVGInline.cpp:
- (WebCore::RenderSVGInline::RenderSVGInline):
- (WebCore::RenderSVGInline::createInlineBox):
- * rendering/RenderSVGInlineText.cpp:
- (WebCore::RenderSVGInlineText::RenderSVGInlineText):
- * rendering/RenderSVGTSpan.cpp:
- (WebCore::RenderSVGTSpan::RenderSVGTSpan):
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- * rendering/SVGRenderTreeAsText.cpp:
- (WebCore::writeStyle):
- 2006-11-30 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth Dakin.
-
- Fixed up garbage collection at window close time.
- * bindings/js/kjs_proxy.cpp: Don't garbage collect in the KJSProxy
- destructor, since the global object hasn't been freed yet.
- * bindings/js/kjs_proxy.h:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::detachFromParent): Made this function cross-
- platform.
- * loader/FrameLoader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::setTitle): Moved this function to FrameLoaderMac,
- since it's Mac-only.
- (WebCore::FrameLoader::closeBridge):
- * page/Page.cpp:
- (WebCore::Page::~Page): Don't garbage collect in the Page destructor,
- since the Interpreter destructor will do it for us.
- 2006-11-30 Brady Eidson <beidson@apple.com>
- Reviewed by Tim's rubberstamp
- Amazingly, DocumentLoader.h survived all this time without a header guard...
- * loader/DocumentLoader.h: Added header guard
- 2006-11-30 Timothy Hatcher <timothy@apple.com>
- Reviewed by Brady and Eric.
- XMLHttpRequest fails in a page loaded with WebFrame's loadHTMLString: or loadData:
- http://bugs.webkit.org/show_bug.cgi?id=11723
- Allow cross-domain XMLHTTPRequest for applewebdata URLs. No automated way to test,
- tested in Safari's debug Snippet Editor.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
- 2006-11-29 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Brady.
- Get rid of PlatformResponse, the platform specific response object is stored inside of
- the ResourceResponse object now. This also gets rid of receivedResponse in ResourceHandleClient.
-
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge getData:andResponse:forURL:]):
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::CachedResource):
- (WebCore::CachedResource::~CachedResource):
- * loader/CachedResource.h:
- (WebCore::CachedResource::response):
- * loader/loader.cpp:
- * loader/loader.h:
- * loader/mac/ImageDocumentMac.mm:
- (WebCore::finishImageLoad):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::didReceiveResponse):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceResponse.h:
- (WebCore::ResourceResponse::nsURLResponse):
- (WebCore::ResourceResponse::cfURLResponse):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::didReceiveResponse):
- 2006-11-29 Justin Garcia <justin.garcia@apple.com>
- Reviewed by sullivan
-
- <rdar://problem/4845371>
- In Mail, a crash occurs at WebCore::Node::traverseNextNode() when cutting selected text from a HTML message
-
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializeStartEnd): The start/end were
- being inflated even when they were the start/end of a partially selected
- special element.
- 2006-11-29 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Oliver.
- Fix fast/dom/xmlhttprequest-get layout test failure.
-
- * platform/network/mac/ResourceResponseMac.mm:
- Initialize the status code to 0 for non-http responses.
-
- 2006-11-29 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Anders Carlsson.
-
- Fixed http://bugs.webkit.org/show_bug.cgi?id=11712
- REGRESSION: Crash when clicking JS link on crateandbarrel.com (window.open("http[...]"))
-
- This was an accidental commit by Anders.
- Chrome can't use the FrameView at window.open time, because it doesn't
- exist yet.
-
- * page/Chrome.cpp:
- (WebCore::Chrome::pageRect):
- 2006-11-29 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Mitz Pettel.
-
- Fixed http://bugs.webkit.org/show_bug.cgi?id=11710
- REGRESSION (r17906): Crash in WebCore::FrameMac
- Added null checks for EditorClient, since it can be NULL when the page
- has been destroyed. Removed external access to EditorClient, since it's
- an implementation detail of the Editor.
- No test case because this crash depends on window tear-down. Layout tests
- pass.
-
- 2006-11-29 Anders Carlsson <acarlsson@apple.com>
- Fix build.
-
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::receivedResponse):
- Fix tyop.
- 2006-11-29 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Have ResourceResponse hold on to the platform object and do lazy
- initialization of the data members.
-
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::loadResourceSynchronously):
- * platform/network/ResourceRequest.cpp:
- (WebCore::ResourceRequest::updatePlatformRequest):
- (WebCore::ResourceRequest::updateResourceRequest):
- * platform/network/ResourceResponse.cpp: Added.
- (WebCore::ResourceResponse::url):
- (WebCore::ResourceResponse::mimeType):
- (WebCore::ResourceResponse::expectedContentLength):
- (WebCore::ResourceResponse::textEncodingName):
- (WebCore::ResourceResponse::suggestedFilename):
- (WebCore::ResourceResponse::httpStatusCode):
- (WebCore::ResourceResponse::setHTTPStatusCode):
- (WebCore::ResourceResponse::httpStatusText):
- (WebCore::ResourceResponse::setHTTPStatusText):
- (WebCore::ResourceResponse::httpHeaderField):
- (WebCore::ResourceResponse::httpHeaderFields):
- (WebCore::ResourceResponse::setExpirationDate):
- (WebCore::ResourceResponse::expirationDate):
- (WebCore::ResourceResponse::setLastModifiedDate):
- (WebCore::ResourceResponse::lastModifiedDate):
- (WebCore::ResourceResponse::updateResourceResponse):
- * platform/network/ResourceResponse.h:
- (WebCore::ResourceResponse::ResourceResponse):
- (WebCore::ResourceResponse::isMultipart):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::receivedResponse):
- (WebCore::ResourceHandle::willSendRequest):
- * platform/network/mac/ResourceResponseMac.h: Removed.
- * platform/network/mac/ResourceResponseMac.mm:
- (-[NSURLResponse WebCore]):
- 2006-11-28 Alice Liu <alice.liu@apple.com>
- Reviewed by Maciej.
- A fix for a couple failing layout tests involving copy/cut in iframes.
- * bridge/EditorClient.h:
- Add frame parameter to dataForArchivedSelectionInFrame instead of
- just getting the webview's selectedFrame.
- * platform/mac/PasteboardMac.mm:
- (Pasteboard::writeSelection):
- Pass in the frame
- 2006-11-28 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth Dakin.
- Fixed <rdar://problem/4844855> Should clarify when to create clients in
- the WebCore client API
-
- All clients must now be supplied as constructor arguments. This clarifies
- when you need to create clients, and also guarantees that objects can't
- (for the most part) be in a clientless state.
- Layout tests pass. No leaks reported.
-
- * bridge/mac/WebCoreFrameBridge.mm: I had to move some initialization up into
- WebKit to resolve circular dependencies at init time.
- 2006-11-28 Adam Roben <aroben@apple.com>
- Reviewed by Ada.
- Add platform-specific constructor/destructor to ContextMenu so we can
- properly retain/release the platform menu description.
- * platform/ContextMenu.h:
- (WebCore::ContextMenu::platformDescription):
- * platform/mac/ContextMenuMac.mm:
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::~ContextMenu):
- (WebCore::getNSMenuItem):
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::itemCount):
- (WebCore::ContextMenu::insertItem):
- (WebCore::ContextMenu::setPlatformDescription):
- 2006-11-28 Adam Roben <aroben@apple.com>
- Build fix.
- * platform/network/mac/ResourceRequestMac.mm:
- 2006-11-28 David Harrison <harrison@apple.com>
- Reviewed by Adele.
- <rdar://problem/4852804> selection color does not get drawn over the missing image rectangle
- Test:
- * editing/selection/select-missing-image.html: Added.
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- Draw the selection tint even if the image itself is not available.
- 2006-11-28 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- Have ResourceRequest hold on to the platform object so we don't
- have to convert back and forth when nothing in the object changes.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- * page/Chrome.cpp:
- (WebCore::Chrome::pageRect):
- * platform/network/ResourceRequest.cpp: Added.
- (WebCore::ResourceRequest::isEmpty):
- (WebCore::ResourceRequest::url):
- (WebCore::ResourceRequest::setURL):
- (WebCore::ResourceRequest::cachePolicy):
- (WebCore::ResourceRequest::setCachePolicy):
- (WebCore::ResourceRequest::timeoutInterval):
- (WebCore::ResourceRequest::setTimeoutInterval):
- (WebCore::ResourceRequest::mainDocumentURL):
- (WebCore::ResourceRequest::setMainDocumentURL):
- (WebCore::ResourceRequest::httpMethod):
- (WebCore::ResourceRequest::setHTTPMethod):
- (WebCore::ResourceRequest::httpHeaderFields):
- (WebCore::ResourceRequest::httpHeaderField):
- (WebCore::ResourceRequest::setHTTPHeaderField):
- (WebCore::ResourceRequest::httpBody):
- (WebCore::ResourceRequest::setHTTPBody):
- (WebCore::ResourceRequest::allowHTTPCookies):
- (WebCore::ResourceRequest::setAllowHTTPCookies):
- (WebCore::ResourceRequest::updatePlatformRequest):
- (WebCore::ResourceRequest::updateResourceRequest):
- (WebCore::ResourceRequest::addHTTPHeaderField):
- (WebCore::ResourceRequest::addHTTPHeaderFields):
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::ResourceRequest):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::willSendRequest):
- * platform/network/mac/ResourceRequestMac.h: Removed.
- * platform/network/mac/ResourceRequestMac.mm:
- (WebCore::ResourceRequest::nsURLRequest):
- (WebCore::ResourceRequest::doUpdateResourceRequest):
- (WebCore::ResourceRequest::doUpdatePlatformRequest):
- 2006-11-28 Adam Roben <aroben@apple.com>
- Reviewed by Beth.
- More WebCore context menu work (still not turned on, however).
- Split ContextMenuItem into its own files and make it a class.
- * WebCore.exp: Updated symbols.
- * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate): Code cleanup.
- * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
- removed redundant "Menu" part of platformMenuDescription(),
- setPlatformMenuDescription().
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::hitTestResult):
- (WebCore::ContextMenu::platformDescription):
- * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
- full-fledged class.
- (WebCore::):
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenuItem::menu):
- (WebCore::ContextMenuItem::platformDescription):
- (WebCore::ContextMenuItem::type):
- (WebCore::ContextMenuItem::action):
- (WebCore::ContextMenuItem::title):
- * platform/mac/ContextMenuItemMac.mm: Added.
- (WebCore::ContextMenuItem::ContextMenuItem):
- * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
- (-[MenuTarget forwardContextMenuAction:]):
- (getNSMenuItem): Handle separator items.
- (ContextMenu::appendItem):
- (ContextMenu::itemCount):
- (ContextMenu::insertItem):
- (ContextMenu::setPlatformDescription):
- * page/ContextMenuController.h: Updated declaration, added getter.
- (WebCore::ContextMenuController::contextMenu):
- Added some more context menu plumbing.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
- ContextMenuController when a context menu event is received.
- * page/ContextMenuClient.h: New client method declaration.
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
- defaultHandled after handling it.
- (WebCore::ContextMenuController::contextMenuItemSelected): Take a
- ContextMenuItem instead of a separate action and title.
- Changed event-handling methods to return bools to signify whether the
- event was handled or not. This is needed so we can know whether to hand
- the event off to the OS. Also restructured some code to use early
- returns instead of nesting ifs.
- * page/EventHandler.cpp:
- (WebCore::EventHandler::handleMousePressEventDoubleClick):
- (WebCore::EventHandler::handleMousePressEventTripleClick):
- (WebCore::EventHandler::handleMousePressEventSingleClick):
- (WebCore::EventHandler::handleMousePressEvent):
- (WebCore::EventHandler::handleMouseMoveEvent):
- (WebCore::EventHandler::handleMouseReleaseEvent):
- (WebCore::EventHandler::handleMouseDoubleClickEvent):
- (WebCore::EventHandler::handleWheelEvent):
- (WebCore::EventHandler::canMouseDownStartSelect):
- * page/EventHandler.h:
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- * page/FrameView.h:
- * platform/ScrollBar.h: More bool return values.
- (WebCore::Scrollbar::handleMouseMoveEvent):
- (WebCore::Scrollbar::handleMouseOutEvent):
- * platform/Widget.h: Ditto.
- (WebCore::Widget::handleMouseMoveEvent):
- (WebCore::Widget::handleMouseReleaseEvent):
- Reverted the changes made in r17805 so that we can have fewer header
- #includes.
- * page/Page.cpp:
- (WebCore::Page::Page):
- * page/Page.h: Ditto.
- (WebCore::Page::dragCaretController):
- (WebCore::Page::chrome):
- (WebCore::Page::contextMenuController):
- 2006-11-28 Alice Liu <alice.liu@apple.com>
- Reviewed by Justin and Adam.
- All layout tests pass as they do without this patch
- * WebCore.exp:
- Exposed functions in Editor and removed functions in FrameMac due to changes in WebHTMLView.m
- * WebCore.xcodeproj/project.pbxproj:
- Added Pasteboard.h, PasteboardMac.mm, WebNSAttributedStringExtras.h&mm, EditorMac.mm
- * bridge/EditorClient.h:
- Added smartInsertDeleteEnabled and shouldInsertNode and some mac-specific functions
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- Removed dispatchCPPEvent and [can|try]DHTML[cut|copy|paste] since the Editor's are called now
- * dom/CharacterData.h:
- (WebCore::CharacterData::isCharacterDataNode):
- * dom/Node.h:
- (WebCore::Node::isCharacterDataNode):
- Added a type-identifying function to Node and the proper subclass
- * dom/Clipboard.h:
- Exposed setAccessPolicy as public
-
- * editing/Editor.h:
- * editing/Editor.cpp:
- Implemented the following
- (WebCore::Editor::canDHTMLCut):
- (WebCore::Editor::canDHTMLCopy):
- (WebCore::Editor::canDHTMLPaste):
- (WebCore::Editor::canSmartCopyOrDelete):
- (WebCore::Editor::deleteSelection):
- (WebCore::Editor::pasteAsPlainTextWithPasteboard):
- (WebCore::Editor::pasteWithPasteboard):
- (WebCore::Editor::canSmartReplaceWithPasteboard):
- (WebCore::Editor::shouldInsertFragment):
- (WebCore::Editor::replaceSelectionWithFragment):
- (WebCore::Editor::replaceSelectionWithText):
- (WebCore::Editor::selectedRange):
- (WebCore::Editor::shouldDeleteRange):
- (WebCore::Editor::tryDHTMLCopy):
- (WebCore::Editor::tryDHTMLCut):
- (WebCore::Editor::tryDHTMLPaste):
- (WebCore::Editor::writeSelectionToPasteboard):
- (WebCore::Editor::dispatchCPPEvent):
- (WebCore::Editor::cut):
- (WebCore::Editor::copy):
- (WebCore::Editor::paste):
-
- * platform/mac/ClipboardAccessPolicy.h: Removed.
- Not removed, but moved to dom/ClipboardAccessPolicy.h
-
- * platform/mac/EditorMac.mm: Added.
- (WebCore::Editor::newGeneralClipboard):
- * platform/Pasteboard.h: Added.
- * platform/mac/PasteboardMac.mm: Added.
- The pasteboard class follows a singleton pattern
- (Pasteboard::generalPasteboard):
- (Pasteboard::~Pasteboard):
- (Pasteboard::Pasteboard):
- (Pasteboard::clearTypes):
- (Pasteboard::writeSelection):
- (Pasteboard::selectionPasteboardTypes):
- (Pasteboard::canSmartReplace):
- (Pasteboard::plainText):
- (Pasteboard::documentFragment):
-
- * platform/mac/WebNSAttributedStringExtras.h: Added.
- * platform/mac/WebNSAttributedStringExtras.mm: Added.
- Added select portions of this file from WebKit because the pasteboard needed the following function:
- (-[NSAttributedString _web_attributedStringByStrippingAttachmentCharacters]):
- 2006-11-28 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
- <rdar://problem/4397952>
- Cannot select buttons at the end of a document, preventing copy/paste
-
- There were no VisiblePositions before/after buttons because editingIgnoresContent
- returned false for buttons.
- * dom/Position.cpp:
- (WebCore::Position::upstream): Fixed a comment.
- (WebCore::Position::downstream): Ditto.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializeStartEnd): Ditto.
- * editing/htmlediting.cpp:
- (WebCore::editingIgnoresContent): It's unnecessary to prefer renderer
- checks over tag name checks because it seems that a node of a tag name
- that we do not ignore content for can't have a renderer of a type that we do.
- (WebCore::canHaveChildrenForEditing): Added selects, buttons, applets, and embeds.
- * editing/visible_units.cpp:
- (WebCore::previousLinePosition): Migrate to enclosingBlock. Fixes a bug where the
- caret would get stuck moving up/down a line from a caret just before an
- input element.
- (WebCore::nextLinePosition): Ditto.
- 2006-11-28 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adam.
- Fixed <rdar://problem/4844848> REGRESSION: extra cross-library ref/deref
- calls cause .5% PLT regression.
-
- Changed ref/deref calls to a single 'xxxDestroyed' call. Moved EditorClient
- from the Frame to the Page, since it's only responsible for
- Webview-level delegate calls.
-
- I don't really love this design, but it fixes the regression and allows
- a single WebKit object to implement multiple client interfaces.
-
- Layout tests pass.
- 2006-11-27 Anders Carlsson <acarlsson@apple.com>
- Try fixing the build.
-
- * platform/graphics/IntRect.cpp:
- (WebCore::IntRect::IntRect):
- 2006-11-27 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Getting rid of some of the critical FIXMEs in ContextMenu.cpp.
- * bridge/mac/FrameMac.h: Two new spell checker functions from
- WebKit. (We will be able to delete the WebKit versions once we
- switch over to WebCore context menus.)
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::isSelectionMisspelled):
- (WebCore::core): Convert from NSArray of Strings to a Vector of
- Strings.
- (WebCore::FrameMac::guessesForMisspelledSelection):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::canHandleRequest):
- * loader/FrameLoader.h: Make canHandleRequest available through the
- FrameLoader.
- * loader/FrameLoaderClient.h: canHandleRequest takes a
- ResourceRequest instead of an NSURLRequest.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::continueAfterNavigationPolicy): Same
- * page/Frame.h: New spell checker functions moved to Frame. These
- should be moved some place better some day, but FrameMac currently
- seems to be the place to be for spell checker stuff.
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate): Use new FrameLoader and spell
- checking functionality to get rid of two if (true) statements. Also
- add spelling guesses to the editing context menus.
- 2006-11-27 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=11694
- XSLT output method does not default to HTML when the target document is HTML
- Test: fast/xsl/default-html.html
- * xml/XSLTProcessor.cpp:
- (WebCore::XSLTProcessor::transformToString): Make mimeType an input/output parameter,
- serving as a hint when the stylesheet doesn't specify the output method.
- (WebCore::XSLTProcessor::transformToFragment): Set mimeType to text/html if the target
- document is HTML.
- 2006-11-27 Oliver Hunt <oliver@apple.com>
- Reviewed by Adam.
- Fixes a crash in SVG caused by an attempt to
- perform css overflow clipping by preventing
- the css overflow clip from being set in SVG.
-
- <rdar:/problems/4839568>
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::RenderForeignObject):
- * rendering/RenderForeignObject.h:
- * rendering/RenderSVGBlock.cpp: Added.
- (WebCore::RenderSVGBlock::RenderSVGBlock):
- (WebCore::RenderSVGBlock::setStyle):
- * rendering/RenderSVGBlock.h: Added.
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::RenderSVGText):
- * rendering/RenderSVGText.h:
- 2006-11-27 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- Add an explicit IntRect constructor that takes a FloatRect.
-
- * platform/graphics/IntRect.cpp:
- (WebCore::IntRect::IntRect):
- * platform/graphics/IntRect.h:
- 2006-11-27 Ada Chan <adachan@apple.com>
- Reviewed by Adam.
- Moved WebCoreCache up to WebKit.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreCache.h: Removed.
- * bridge/mac/WebCoreCache.mm: Removed.
- 2006-11-27 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- Move addMessageToConsole to Chrome.
-
- * bindings/js/kjs_events.cpp:
- (KJS::JSAbstractEventListener::handleEvent):
- * bindings/js/kjs_proxy.cpp:
- (WebCore::KJSProxy::evaluate):
- * bindings/js/kjs_window.cpp:
- (KJS::Window::isSafeScript):
- (KJS::ScheduledAction::execute):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.h:
- * page/Chrome.cpp:
- (WebCore::Chrome::addMessageToConsole):
- * page/Chrome.h:
- * page/ChromeClient.h:
- * page/Frame.h:
- 2006-11-27 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=8062
- Caret color in new text field should take background color and foreground color into consideration
- * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
- 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)
- as well as in editable WebViews, like in Mail, which will just pick up the color from the body element.
- 2006-11-26 Simon Hausmann <hausmann@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11693
- Fix the Qt build, adapt to various enum/class renamings.
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceQt::createResource):
- (WebCore::KRenderingDeviceQt::createPaintServer):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp:
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerQt.cpp:
- (WebCore::SVGPaintServer::renderPath):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp:
- (WebCore::setup):
- * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- 2006-11-24 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11666
- .getScreenCTM() returns wrong values
- Take into account the local transform matrix too and
- so fix getScreenCTM/getCTM for <text>.
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (SVGStyledTransformableElement::getCTM):
- (SVGStyledTransformableElement::getScreenCTM):
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::getScreenCTM):
- (WebCore::SVGTextElement::getCTM):
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::SVGTransformable::getCTM):
- (WebCore::SVGTransformable::getScreenCTM):
- * ksvg2/svg/SVGTransformable.h:
- 2006-11-22 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=11661
- SVG: stroke not sensitive to mouse events (hit testing fails)
- Use mapAbsolutePointToLocal when hit-testing strokes.
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::fillContains):
- (WebCore::RenderPath::nodeAtPoint):
- 2006-11-21 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Mitz.
- General SVG cleanup. Change some enums to match the style guidelines, use PLATFORM(CG) instead of PLATFORM(MAC).
- Remove config.h inluce from AffineTransform.h
-
- * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
- (WebCore::KRenderingDeviceQuartz::createPaintServer):
- (WebCore::KRenderingDeviceQuartz::createResource):
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::sharedSolidPaintServer):
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- (WebCore::SVGLinearGradientElement::gradientType):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::canvasResource):
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- (WebCore::SVGRadialGradientElement::gradientType):
- * platform/graphics/AffineTransform.h:
- * platform/graphics/svg/SVGPaintServer.h:
- (WebCore::):
- * platform/graphics/svg/SVGPaintServerGradient.cpp:
- (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
- (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
- * platform/graphics/svg/SVGPaintServerGradient.h:
- * platform/graphics/svg/SVGPaintServerLinearGradient.h:
- (WebCore::SVGPaintServerLinearGradient::type):
- * platform/graphics/svg/SVGPaintServerPattern.h:
- (WebCore::SVGPaintServerPattern::type):
- * platform/graphics/svg/SVGPaintServerRadialGradient.h:
- (WebCore::SVGPaintServerRadialGradient::type):
- * platform/graphics/svg/SVGPaintServerSolid.h:
- (WebCore::SVGPaintServerSolid::type):
- * platform/graphics/svg/SVGResource.h:
- (WebCore::):
- * platform/graphics/svg/cg/SVGPaintServerCg.cpp:
- (WebCore::SVGPaintServer::renderPath):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
- (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::renderPath):
- (WebCore::SVGPaintServerGradient::setup):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp:
- (WebCore::SVGPaintServerPattern::setup):
- * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp:
- (WebCore::SVGPaintServerSolid::setup):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-11-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11658
- Move KRenderingPaintServer* classes to the location
- of all other resources (platform/graphics/svg).
- Soon the whole platform/graphics/svg stuff will bemoved
- into ksvg2/ itself, as discussed with Darin.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingPaintServer.h: Removed.
- * kcanvas/device/KRenderingPaintServerGradient.cpp: Removed.
- * kcanvas/device/KRenderingPaintServerGradient.h: Removed.
- * kcanvas/device/KRenderingPaintServerPattern.cpp: Removed.
- * kcanvas/device/KRenderingPaintServerPattern.h: Removed.
- * kcanvas/device/KRenderingPaintServerSolid.cpp: Removed.
- * kcanvas/device/KRenderingPaintServerSolid.h: Removed.
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp: Removed.
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.h: Removed.
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp: Removed.
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.h: Removed.
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp: Removed.
- * kcanvas/device/qt/KRenderingPaintServerQt.h: Removed.
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp: Removed.
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.h: Removed.
- * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
- * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
- (WebCore::KRenderingDeviceQuartz::createPaintServer):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Removed.
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Removed.
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.h: Removed.
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::sharedSolidPaintServer):
- (WebCore::KSVGPainterFactory::fillPaintServer):
- (WebCore::KSVGPainterFactory::strokePaintServer):
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::canvasResource):
- (WebCore::SVGGradientElement::resourceNotification):
- (WebCore::SVGGradientElement::rebuildStops):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- (WebCore::SVGLinearGradientElement::gradientType):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::canvasResource):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- (WebCore::SVGRadialGradientElement::gradientType):
- * platform/graphics/svg/SVGPaintServer.cpp: Added.
- (WebCore::SVGPaintServer::SVGPaintServer):
- (WebCore::SVGPaintServer::~SVGPaintServer):
- (WebCore::SVGPaintServer::activeClient):
- (WebCore::SVGPaintServer::setActiveClient):
- (WebCore::SVGPaintServer::isPaintingText):
- (WebCore::SVGPaintServer::setPaintingText):
- (WebCore::operator<<):
- (WebCore::getPaintServerById):
- * platform/graphics/svg/SVGPaintServer.h: Added.
- (WebCore::):
- (WebCore::SVGPaintServer::isPaintServer):
- * platform/graphics/svg/SVGPaintServerGradient.cpp: Added.
- (WebCore::compareStopOffset):
- (WebCore::operator<<):
- (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
- (WebCore::SVGPaintServerGradient::~SVGPaintServerGradient):
- (WebCore::SVGPaintServerGradient::gradientStops):
- (WebCore::SVGPaintServerGradient::setGradientStops):
- (WebCore::SVGPaintServerGradient::spreadMethod):
- (WebCore::SVGPaintServerGradient::setGradientSpreadMethod):
- (WebCore::SVGPaintServerGradient::boundingBoxMode):
- (WebCore::SVGPaintServerGradient::setBoundingBoxMode):
- (WebCore::SVGPaintServerGradient::gradientTransform):
- (WebCore::SVGPaintServerGradient::setGradientTransform):
- (WebCore::SVGPaintServerGradient::listener):
- (WebCore::SVGPaintServerGradient::setListener):
- (WebCore::SVGPaintServerGradient::externalRepresentation):
- * platform/graphics/svg/SVGPaintServerGradient.h: Added.
- (WebCore::):
- (WebCore::SVGPaintServerGradient::):
- (WebCore::makeGradientStop):
- * platform/graphics/svg/SVGPaintServerLinearGradient.cpp: Added.
- (WebCore::SVGPaintServerLinearGradient::SVGPaintServerLinearGradient):
- (WebCore::SVGPaintServerLinearGradient::~SVGPaintServerLinearGradient):
- (WebCore::SVGPaintServerLinearGradient::gradientStart):
- (WebCore::SVGPaintServerLinearGradient::setGradientStart):
- (WebCore::SVGPaintServerLinearGradient::gradientEnd):
- (WebCore::SVGPaintServerLinearGradient::setGradientEnd):
- (WebCore::SVGPaintServerLinearGradient::externalRepresentation):
- * platform/graphics/svg/SVGPaintServerLinearGradient.h: Added.
- (WebCore::SVGPaintServerLinearGradient::type):
- * platform/graphics/svg/SVGPaintServerPattern.cpp: Added.
- (WebCore::SVGPaintServerPattern::SVGPaintServerPattern):
- (WebCore::SVGPaintServerPattern::~SVGPaintServerPattern):
- (WebCore::SVGPaintServerPattern::bbox):
- (WebCore::SVGPaintServerPattern::setBbox):
- (WebCore::SVGPaintServerPattern::boundingBoxMode):
- (WebCore::SVGPaintServerPattern::setBoundingBoxMode):
- (WebCore::SVGPaintServerPattern::tile):
- (WebCore::SVGPaintServerPattern::setTile):
- (WebCore::SVGPaintServerPattern::patternTransform):
- (WebCore::SVGPaintServerPattern::setPatternTransform):
- (WebCore::SVGPaintServerPattern::listener):
- (WebCore::SVGPaintServerPattern::setListener):
- (WebCore::SVGPaintServerPattern::externalRepresentation):
- * platform/graphics/svg/SVGPaintServerPattern.h: Added.
- (WebCore::SVGPaintServerPattern::type):
- * platform/graphics/svg/SVGPaintServerRadialGradient.cpp: Added.
- (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
- (WebCore::SVGPaintServerRadialGradient::~SVGPaintServerRadialGradient):
- (WebCore::SVGPaintServerRadialGradient::gradientCenter):
- (WebCore::SVGPaintServerRadialGradient::setGradientCenter):
- (WebCore::SVGPaintServerRadialGradient::gradientFocal):
- (WebCore::SVGPaintServerRadialGradient::setGradientFocal):
- (WebCore::SVGPaintServerRadialGradient::gradientRadius):
- (WebCore::SVGPaintServerRadialGradient::setGradientRadius):
- (WebCore::SVGPaintServerRadialGradient::externalRepresentation):
- * platform/graphics/svg/SVGPaintServerRadialGradient.h: Added.
- (WebCore::SVGPaintServerRadialGradient::type):
- * platform/graphics/svg/SVGPaintServerSolid.cpp: Added.
- (WebCore::SVGPaintServerSolid::SVGPaintServerSolid):
- (WebCore::SVGPaintServerSolid::~SVGPaintServerSolid):
- (WebCore::SVGPaintServerSolid::color):
- (WebCore::SVGPaintServerSolid::setColor):
- (WebCore::SVGPaintServerSolid::externalRepresentation):
- * platform/graphics/svg/SVGPaintServerSolid.h: Added.
- (WebCore::SVGPaintServerSolid::type):
- * platform/graphics/svg/SVGResource.cpp:
- * platform/graphics/svg/SVGResource.h:
- * platform/graphics/svg/SVGResourceClipper.cpp:
- * platform/graphics/svg/SVGResourceMarker.cpp:
- * platform/graphics/svg/SVGResourceMasker.cpp:
- * platform/graphics/svg/cg/SVGPaintServerCg.cpp: Added.
- (WebCore::SVGPaintServer::draw):
- (WebCore::SVGPaintServer::teardown):
- (WebCore::SVGPaintServer::renderPath):
- (WebCore::SVGPaintServer::strokePath):
- (WebCore::SVGPaintServer::clipToStrokePath):
- (WebCore::SVGPaintServer::fillPath):
- (WebCore::SVGPaintServer::clipToFillPath):
- * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp: Added.
- (WebCore::cgGradientCallback):
- (WebCore::CGShadingRefForLinearGradient):
- (WebCore::CGShadingRefForRadialGradient):
- (WebCore::SVGPaintServerGradient::invalidateCaches):
- (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
- (WebCore::SVGPaintServerGradient::updateQuartzGradientCache):
- (WebCore::SVGPaintServerGradient::teardown):
- (WebCore::SVGPaintServerGradient::renderPath):
- (WebCore::SVGPaintServerGradient::setup):
- (WebCore::SVGPaintServerGradient::invalidate):
- * platform/graphics/svg/cg/SVGPaintServerPatternCg.cpp: Added.
- (WebCore::patternCallback):
- (WebCore::SVGPaintServerPattern::setup):
- (WebCore::SVGPaintServerPattern::teardown):
- * platform/graphics/svg/cg/SVGPaintServerSolidCg.cpp: Added.
- (WebCore::SVGPaintServerSolid::setup):
- * platform/graphics/svg/qt/SVGPaintServerGradientQt.cpp: Added.
- (WebCore::SVGPaintServerGradient::fillColorArray):
- * platform/graphics/svg/qt/SVGPaintServerLinearGradientQt.cpp: Added.
- (WebCore::SVGPaintServerLinearGradient::setup):
- * platform/graphics/svg/qt/SVGPaintServerPatternQt.cpp: Added.
- (WebCore::SVGPaintServerPattern::setup):
- * platform/graphics/svg/qt/SVGPaintServerQt.cpp: Added.
- (WebCore::SVGPaintServer::setPenProperties):
- (WebCore::SVGPaintServer::draw):
- (WebCore::SVGPaintServer::teardown):
- (WebCore::SVGPaintServer::renderPath):
- * platform/graphics/svg/qt/SVGPaintServerRadialGradientQt.cpp: Added.
- (WebCore::setup):
- * platform/graphics/svg/qt/SVGPaintServerSolidQt.cpp: Added.
- (WebCore::SVGPaintServerSolid::setup):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- * rendering/SVGRenderTreeAsText.cpp:
- (WebCore::writeStyle):
- (WebCore::writeRenderResources):
- 2006-11-21 Alex Taylor <darwin@techvisual.co.nz>
- Reviewed by Mitz.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
- Adds calculations for bottom right radius's position
- which was being drawn incorrectly.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::paintBorder):
- 2006-11-20 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11519
- REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
- Transport disabled state from DOM element to the shadow
- DOM/render object.
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::updateFromElement):
- * rendering/RenderTheme.h:
- 2006-11-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- * loader/TextResourceDecoder.cpp:
- (WebCore::findXMLEncoding):
- Use CString instead of DeprecatedCString.
-
- * platform/CString.cpp:
- (WebCore::CString::find):
- * platform/CString.h:
- (WebCore::CString::data):
- Add find method, make data method inline.
-
- * platform/TextStream.cpp:
- * platform/TextStream.h:
- Remove DeprecatedCString functions.
- 2006-11-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- Use CString instead of DeprecatedCString.
-
- * html/FormDataList.cpp:
- (WebCore::FormDataList::appendString):
- (WebCore::fixLineBreaks):
- (WebCore::FormDataList::appendFile):
- 2006-11-20 Samuel Weinig <sam@webkit.org>
- Reviewed by Alexey.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
- Fix Windows build
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ContextMenuClientWin.h:
- * bridge/win/EditorClientWin.h:
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ContextMenu::show):
- (WebCore::ContextMenuClientWin::copyLinkToClipboard):
- (WebCore::ContextMenuClientWin::downloadURL):
- (WebCore::ContextMenuClientWin::copyImageToClipboard):
- (WebCore::ContextMenuClientWin::lookUpInDictionary):
- (WebCore::EditorClientWin::shouldInsertText):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameWin::ignoreSpelling):
- (WebCore::FrameWin::learnSpelling):
- 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10736
- XMLHttpRequest.responseXML should be null on error
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::wellFormed):
- * dom/XMLTokenizer.h:
- (WebCore::Tokenizer::wellFormed):
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::implicitClose):
- * dom/Document.h:
- (WebCore::Document::wellFormed):
- Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
- 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Sam Weinig.
- http://bugs.webkit.org/show_bug.cgi?id=11633
- Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::setXMLVersion):
- (WebCore::Document::setXMLStandalone):
- * dom/Document.h:
- (WebCore::Document::xmlEncoding):
- (WebCore::Document::xmlVersion):
- (WebCore::Document::xmlStandalone):
- (WebCore::Document::setXMLEncoding):
- * dom/Document.idl:
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::startDocument):
- (WebCore::startDocumentHandler):
- (WebCore::XMLTokenizer::initializeParserContext):
- Added support for these properties, getting them from an libxml2 context.
- * html/HTMLDocument.cpp:
- (WebCore::HTMLDocument::HTMLDocument):
- HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
- 2006-11-20 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Rob.
- Fix Qt/Linux build.
- * platform/qt/ContextMenuClientQt.cpp:
- (WebCore::ContextMenuClientQt::ref):
- (WebCore::ContextMenuClientQt::deref):
- (WebCore::ContextMenuClientQt::copyLinkToClipboard):
- (WebCore::ContextMenuClientQt::downloadURL):
- (WebCore::ContextMenuClientQt::copyImageToClipboard):
- (WebCore::ContextMenuClientQt::lookUpInDictionary):
- * platform/qt/ContextMenuClientQt.h:
- * platform/qt/ContextMenuQt.cpp:
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::show):
- (WebCore::ContextMenu::itemCount):
- (WebCore::ContextMenu::insertItem):
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::shouldInsertText):
- * platform/qt/EditorClientQt.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::ignoreSpelling):
- (WebCore::FrameQt::learnSpelling):
- * platform/qt/FrameQt.h:
- * platform/qt/TemporaryLinkStubs.cpp:
- (FrameLoader::reload):
- 2006-11-20 Samuel Weinig <sam@webkit.org>
- Reviewed by Maciej.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
- Fix Win32 build
- * config.h: add #define NOMINMAX for windows build
- * platform/win/FontCacheWin.cpp:
- (WebCore::FontCache::createFontPlatformData):
- * platform/win/TemporaryLinkStubs.cpp: add definitions for
- new cursors.
- (WebCore::aliasCursor):
- (WebCore::noDropCursor):
- (WebCore::progressCursor):
- 2006-11-19 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Implementation of actions for the new context menus.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/EditorClient.h: Declaration of shouldInsertText.
- * bridge/mac/FrameMac.h: Two new spelling functions.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::ignoreSpelling):
- (WebCore::FrameMac::learnSpelling):
- * editing/Editor.cpp:
- (WebCore::Editor::shouldInsertText): Call into the client.
- * editing/Editor.h:
- * editing/EditorInsertAction.h: Added.
- (WebCore::): The WebCore equivalent of WebViewInsertAction. This is
- defined in its own header so that we can use it from Editor.h and
- EditorClient.h without having one of the above include the other.
- * page/ContextMenuClient.h: A few currently WebKit-implemented
- function needed for menu actions.
- * page/ContextMenuController.cpp:
- (WebCore::makeGoogleSearchURL):
- (WebCore::ContextMenuController::contextMenuActionSelected): The
- actions!
- * page/ContextMenuController.h:
- * page/Frame.h: New pure-virtual spelling functions.
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::controller): Get the controller from the
- menu.
- * platform/ContextMenu.h:
- * platform/mac/ContextMenuMac.mm:
- (-[MenuTarget
- forwardContextMenuAction:initWithContextMenuController:WebCore::]):
- Use the controller instead of the menu
- (-[MenuTarget WebCore::]):
- (-[MenuTarget setMenuController:WebCore::]):
- (-[MenuTarget forwardContextMenuAction:]):
- (getNSMenuItem):
- (ContextMenu::show):
- (ContextMenu::hide):
- 2006-11-19 Simon Hausmann <hausmann@kde.org>
- Reviewed by Zack.
- http://bugs.webkit.org/show_bug.cgi?id=11649
- Fix CMake files for Qt-only build without KDE cmake files.
- Fix Qt/KDE build for the SVG support.
- Fix Qt-only build in the resource handler.
- * CMakeLists.txt:
- * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
- (WebCore::SVGResourceFilter::SVGResourceFilter):
- (WebCore::SVGResourceFilter::~SVGResourceFilter):
- (WebCore::SVGResourceFilter::prepareFilter):
- (WebCore::SVGResourceFilter::applyFilter):
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::cancel):
- (WebCore::ResourceHandleManager::slotData):
- (WebCore::ResourceHandleManager::slotMimetype):
- (WebCore::ResourceHandleManager::slotResult):
- (WebCore::ResourceHandleManager::deliverJobData):
- * platform/network/qt/ResourceHandleManager.h:
- * platform/network/qt/ResourceHandleQt.cpp:
- * platform/qt/CursorQt.cpp:
- (WebCore::noDropCursor):
- (WebCore::progressCursor):
- (WebCore::aliasCursor):
- 2006-11-19 Mitz Pettel <mitz@webkit.org>
- Reviewed by Maciej.
- - http://bugs.webkit.org/show_bug.cgi?id=11626
- Automate test for rdar://problem/4056100
- * manual-tests/delete-into-nested-block.html: Removed.
- 2006-11-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
- Split up KCanvasFilters & KCanvasFilterQuartz into several
- new classes (SVGFEBlend, SVGFEComposite...) and move them
- into platform/graphics/svg. This is still a temporary location,
- as discussed with Darin; the whole platform/graphics/svg directory
- will probably be moved into ksvg2/ in near future.
- This finally removes the duplicated enumerations in the svg filter
- classes and within kcanvas. ksvg2/ and platform/graphics/svg share
- their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
- is empty.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGeneratorJS.pm:
- * kcanvas/KCanvasFilters.cpp: Removed.
- * kcanvas/KCanvasFilters.h: Removed.
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceQt::createFilterEffect):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
- * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
- (WebCore::KRenderingDeviceQuartz::createResource):
- (WebCore::KRenderingDeviceQuartz::createFilterEffect):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
- * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
- * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
- * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (WebCore::SVGComponentTransferFunctionElement::transferFunction):
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (WebCore::SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (WebCore::SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (WebCore::SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (WebCore::SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- (WebCore::SVGFEDiffuseLightingElement::updateLights):
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (WebCore::SVGFEDisplacementMapElement::stringToChannel):
- (WebCore::SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- * ksvg2/svg/SVGFEDistantLightElement.cpp:
- (WebCore::SVGFEDistantLightElement::lightSource):
- * ksvg2/svg/SVGFEDistantLightElement.h:
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (WebCore::SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (WebCore::SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- (WebCore::SVGFEImageElement::filterEffect):
- * ksvg2/svg/SVGFEImageElement.h:
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (WebCore::SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEMergeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (WebCore::SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFEPointLightElement.cpp:
- (WebCore::SVGFEPointLightElement::lightSource):
- * ksvg2/svg/SVGFEPointLightElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (WebCore::SVGFESpecularLightingElement::filterEffect):
- (WebCore::SVGFESpecularLightingElement::updateLights):
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFESpotLightElement.cpp:
- (WebCore::SVGFESpotLightElement::lightSource):
- * ksvg2/svg/SVGFESpotLightElement.h:
- * ksvg2/svg/SVGFETileElement.cpp:
- (WebCore::SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (WebCore::SVGFETurbulenceElement::filterEffect):
- * ksvg2/svg/SVGFETurbulenceElement.h:
- (WebCore::):
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * platform/graphics/FloatPoint3D.cpp: Added.
- (WebCore::FloatPoint3D::FloatPoint3D):
- (WebCore::FloatPoint3D::x):
- (WebCore::FloatPoint3D::setX):
- (WebCore::FloatPoint3D::y):
- (WebCore::FloatPoint3D::setY):
- (WebCore::FloatPoint3D::z):
- (WebCore::FloatPoint3D::setZ):
- (WebCore::FloatPoint3D::normalize):
- * platform/graphics/FloatPoint3D.h: Added.
- * platform/graphics/svg/SVGResourceFilter.cpp: Added.
- (WebCore::SVGResourceFilter::clearEffects):
- (WebCore::SVGResourceFilter::addFilterEffect):
- (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
- (WebCore::SVGResourceFilter::externalRepresentation):
- (WebCore::getFilterById):
- * platform/graphics/svg/SVGResourceFilter.h: Added.
- (WebCore::SVGResourceFilter::isFilter):
- (WebCore::SVGResourceFilter::filterBoundingBoxMode):
- (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
- (WebCore::SVGResourceFilter::effectBoundingBoxMode):
- (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
- (WebCore::SVGResourceFilter::filterRect):
- (WebCore::SVGResourceFilter::setFilterRect):
- * platform/graphics/svg/SVGResourceImage.h:
- * platform/graphics/svg/SVGResourceListener.h:
- (SVGResourceListener::SVGResourceListener):
- (SVGResourceListener::~SVGResourceListener):
- * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
- * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
- (WebCore::SVGResourceFilter::SVGResourceFilter):
- (WebCore::SVGResourceFilter::~SVGResourceFilter):
- (WebCore::SVGResourceFilter::prepareFilter):
- (WebCore::SVGResourceFilter::applyFilter):
- (WebCore::SVGResourceFilter::getCIFilterStack):
- (WebCore::SVGResourceFilter::imageForName):
- (WebCore::SVGResourceFilter::setImageForName):
- (WebCore::SVGResourceFilter::setOutputImage):
- (WebCore::alphaImageForImage):
- (WebCore::SVGResourceFilter::inputImage):
- * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
- * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
- * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
- (WebCore::SVGDistantLightSource::SVGDistantLightSource):
- (WebCore::SVGDistantLightSource::azimuth):
- (WebCore::SVGDistantLightSource::elevation):
- * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
- (WebCore::SVGFEBlend::in2):
- (WebCore::SVGFEBlend::setIn2):
- (WebCore::SVGFEBlend::blendMode):
- (WebCore::SVGFEBlend::setBlendMode):
- (WebCore::operator<<):
- (WebCore::SVGFEBlend::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEBlend.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
- (WebCore::SVGFEColorMatrix::type):
- (WebCore::SVGFEColorMatrix::setType):
- (WebCore::SVGFEColorMatrix::values):
- (WebCore::SVGFEColorMatrix::setValues):
- (WebCore::operator<<):
- (WebCore::SVGFEColorMatrix::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
- (WebCore::SVGFEComponentTransfer::redFunction):
- (WebCore::SVGFEComponentTransfer::setRedFunction):
- (WebCore::SVGFEComponentTransfer::greenFunction):
- (WebCore::SVGFEComponentTransfer::setGreenFunction):
- (WebCore::SVGFEComponentTransfer::blueFunction):
- (WebCore::SVGFEComponentTransfer::setBlueFunction):
- (WebCore::SVGFEComponentTransfer::alphaFunction):
- (WebCore::SVGFEComponentTransfer::setAlphaFunction):
- (WebCore::operator<<):
- (WebCore::SVGFEComponentTransfer::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
- (WebCore::):
- (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
- * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
- (WebCore::SVGFEComposite::in2):
- (WebCore::SVGFEComposite::setIn2):
- (WebCore::SVGFEComposite::operation):
- (WebCore::SVGFEComposite::setOperation):
- (WebCore::SVGFEComposite::k1):
- (WebCore::SVGFEComposite::setK1):
- (WebCore::SVGFEComposite::k2):
- (WebCore::SVGFEComposite::setK2):
- (WebCore::SVGFEComposite::k3):
- (WebCore::SVGFEComposite::setK3):
- (WebCore::SVGFEComposite::k4):
- (WebCore::SVGFEComposite::setK4):
- (WebCore::SVGFEComposite::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEComposite.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
- (WebCore::SVGFEConvolveMatrix::kernelSize):
- (WebCore::SVGFEConvolveMatrix::setKernelSize):
- (WebCore::SVGFEConvolveMatrix::kernel):
- (WebCore::SVGFEConvolveMatrix::setKernel):
- (WebCore::SVGFEConvolveMatrix::divisor):
- (WebCore::SVGFEConvolveMatrix::setDivisor):
- (WebCore::SVGFEConvolveMatrix::bias):
- (WebCore::SVGFEConvolveMatrix::setBias):
- (WebCore::SVGFEConvolveMatrix::targetOffset):
- (WebCore::SVGFEConvolveMatrix::setTargetOffset):
- (WebCore::SVGFEConvolveMatrix::edgeMode):
- (WebCore::SVGFEConvolveMatrix::setEdgeMode):
- (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
- (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
- (WebCore::SVGFEConvolveMatrix::preserveAlpha):
- (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
- (WebCore::operator<<):
- (WebCore::SVGFEConvolveMatrix::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
- (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
- (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
- (WebCore::SVGFEDiffuseLighting::lightingColor):
- (WebCore::SVGFEDiffuseLighting::setLightingColor):
- (WebCore::SVGFEDiffuseLighting::surfaceScale):
- (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
- (WebCore::SVGFEDiffuseLighting::diffuseConstant):
- (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
- (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
- (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
- (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
- (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
- (WebCore::SVGFEDiffuseLighting::lightSource):
- (WebCore::SVGFEDiffuseLighting::setLightSource):
- (WebCore::SVGFEDiffuseLighting::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
- * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
- (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
- (WebCore::SVGFEDisplacementMap::in2):
- (WebCore::SVGFEDisplacementMap::setIn2):
- (WebCore::SVGFEDisplacementMap::xChannelSelector):
- (WebCore::SVGFEDisplacementMap::setXChannelSelector):
- (WebCore::SVGFEDisplacementMap::yChannelSelector):
- (WebCore::SVGFEDisplacementMap::setYChannelSelector):
- (WebCore::SVGFEDisplacementMap::scale):
- (WebCore::SVGFEDisplacementMap::setScale):
- (WebCore::operator<<):
- (WebCore::SVGFEDisplacementMap::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
- (WebCore::SVGFEFlood::floodColor):
- (WebCore::SVGFEFlood::setFloodColor):
- (WebCore::SVGFEFlood::floodOpacity):
- (WebCore::SVGFEFlood::setFloodOpacity):
- (WebCore::SVGFEFlood::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEFlood.h: Added.
- * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
- (WebCore::SVGFEGaussianBlur::stdDeviationX):
- (WebCore::SVGFEGaussianBlur::setStdDeviationX):
- (WebCore::SVGFEGaussianBlur::stdDeviationY):
- (WebCore::SVGFEGaussianBlur::setStdDeviationY):
- (WebCore::SVGFEGaussianBlur::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
- * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
- (WebCore::SVGFEImage::SVGFEImage):
- (WebCore::SVGFEImage::~SVGFEImage):
- (WebCore::SVGFEImage::cachedImage):
- (WebCore::SVGFEImage::setCachedImage):
- (WebCore::SVGFEImage::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEImage.h: Added.
- * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
- (WebCore::SVGFEMerge::mergeInputs):
- (WebCore::SVGFEMerge::setMergeInputs):
- (WebCore::SVGFEMerge::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEMerge.h: Added.
- * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
- (WebCore::SVGFEMorphology::morphologyOperator):
- (WebCore::SVGFEMorphology::setMorphologyOperator):
- (WebCore::SVGFEMorphology::radiusX):
- (WebCore::SVGFEMorphology::setRadiusX):
- (WebCore::SVGFEMorphology::radiusY):
- (WebCore::SVGFEMorphology::setRadiusY):
- (WebCore::operator<<):
- (WebCore::SVGFEMorphology::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
- (WebCore::SVGFEOffset::dx):
- (WebCore::SVGFEOffset::setDx):
- (WebCore::SVGFEOffset::dy):
- (WebCore::SVGFEOffset::setDy):
- (WebCore::SVGFEOffset::externalRepresentation):
- * platform/graphics/svg/filters/SVGFEOffset.h: Added.
- * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
- (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
- (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
- (WebCore::SVGFESpecularLighting::lightingColor):
- (WebCore::SVGFESpecularLighting::setLightingColor):
- (WebCore::SVGFESpecularLighting::surfaceScale):
- (WebCore::SVGFESpecularLighting::setSurfaceScale):
- (WebCore::SVGFESpecularLighting::specularConstant):
- (WebCore::SVGFESpecularLighting::setSpecularConstant):
- (WebCore::SVGFESpecularLighting::specularExponent):
- (WebCore::SVGFESpecularLighting::setSpecularExponent):
- (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
- (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
- (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
- (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
- (WebCore::SVGFESpecularLighting::lightSource):
- (WebCore::SVGFESpecularLighting::setLightSource):
- (WebCore::SVGFESpecularLighting::externalRepresentation):
- * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
- * platform/graphics/svg/filters/SVGFETile.h: Added.
- * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
- (WebCore::SVGFETurbulence::type):
- (WebCore::SVGFETurbulence::setType):
- (WebCore::SVGFETurbulence::baseFrequencyY):
- (WebCore::SVGFETurbulence::setBaseFrequencyY):
- (WebCore::SVGFETurbulence::baseFrequencyX):
- (WebCore::SVGFETurbulence::setBaseFrequencyX):
- (WebCore::SVGFETurbulence::seed):
- (WebCore::SVGFETurbulence::setSeed):
- (WebCore::SVGFETurbulence::numOctaves):
- (WebCore::SVGFETurbulence::setNumOctaves):
- (WebCore::SVGFETurbulence::stitchTiles):
- (WebCore::SVGFETurbulence::setStitchTiles):
- (WebCore::operator<<):
- (WebCore::SVGFETurbulence::externalRepresentation):
- * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
- (WebCore::):
- * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
- (WebCore::SVGFilterEffect::subRegion):
- (WebCore::SVGFilterEffect::setSubRegion):
- (WebCore::SVGFilterEffect::in):
- (WebCore::SVGFilterEffect::setIn):
- (WebCore::SVGFilterEffect::result):
- (WebCore::SVGFilterEffect::setResult):
- (WebCore::SVGFilterEffect::externalRepresentation):
- (WebCore::operator<<):
- * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
- (WebCore::):
- (WebCore::SVGFilterEffect::SVGFilterEffect):
- (WebCore::SVGFilterEffect::~SVGFilterEffect):
- (WebCore::SVGFilterEffect::effectType):
- * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
- (WebCore::operator<<):
- (WebCore::SVGPointLightSource::externalRepresentation):
- (WebCore::SVGSpotLightSource::externalRepresentation):
- (WebCore::SVGDistantLightSource::externalRepresentation):
- * platform/graphics/svg/filters/SVGLightSource.h: Added.
- (WebCore::):
- (WebCore::SVGLightSource::SVGLightSource):
- (WebCore::SVGLightSource::~SVGLightSource):
- (WebCore::SVGLightSource::type):
- * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
- (WebCore::SVGPointLightSource::SVGPointLightSource):
- (WebCore::SVGPointLightSource::position):
- * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
- (WebCore::SVGSpotLightSource::SVGSpotLightSource):
- (WebCore::SVGSpotLightSource::position):
- (WebCore::SVGSpotLightSource::direction):
- (WebCore::SVGSpotLightSource::specularExponent):
- (WebCore::SVGSpotLightSource::limitingConeAngle):
- * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
- (WebCore::SVGFEBlend::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
- (WebCore::SVGFEColorMatrix::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
- (WebCore::genImageFromTable):
- (WebCore::setParametersForComponentFunc):
- (WebCore::filterForComponentFunc):
- (WebCore::getFilterForFunc):
- (WebCore::SVGFEComponentTransfer::getFunctionFilter):
- (WebCore::SVGFEComponentTransfer::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
- (WebCore::SVGFEComposite::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
- (WebCore::SVGFEDiffuseLighting::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
- (WebCore::SVGFEDisplacementMap::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
- (WebCore::SVGFEFlood::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
- (WebCore::SVGFEGaussianBlur::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
- * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
- (WebCore::getVectorForChannel):
- (WebCore::ciColor):
- (WebCore::getPointLightVectors):
- (WebCore::getLightVectors):
- (WebCore::getNormalMap):
- * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
- (WebCore::SVGFEImage::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
- (WebCore::SVGFEMerge::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
- (WebCore::SVGFEOffset::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
- (WebCore::SVGFESpecularLighting::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
- (WebCore::SVGFETile::getCIFilter):
- * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
- (WebCore::SVGFilterEffect::getCIFilter):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::getAbsoluteRepaintRect):
- (WebCore::RenderPath::paint):
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-11-18 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11321
- Element with :target pseudo-class still matched after fragment identifier change
- Make sure the page does a style recalculation and possible rendering
- when navigating back from a page with an anchor to a page without
- an anchor.
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::gotoAnchor):
- 2006-11-18 Peter Kasting <pkasting@google.com>
- Reviewed by Sam Weinig.
- http://bugs.webkit.org/show_bug.cgi?id=11634:
- Fix segfault on startup for Windows build. Also fix segfault when
- typing in a URL.
- Clean up some of the style of the patch that landed in r17816.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ChromeClientWin.h:
- (WebCore::ChromeClientWin::~ChromeClientWin):
- (WebCore::ChromeClientWin::ref):
- (WebCore::ChromeClientWin::deref):
- * bridge/win/ContextMenuClientWin.h:
- (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
- (WebCore::ContextMenuClientWin::ref):
- (WebCore::ContextMenuClientWin::deref):
- * bridge/win/EditorClientWin.h:
- (WebCore::EditorClientWin::~EditorClientWin):
- (WebCore::EditorClientWin::ref):
- (WebCore::EditorClientWin::deref):
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- * bridge/win/FrameWin.h:
- (WebCore::Win):
- * loader/win/FrameLoaderClientWin.h: Added.
- (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
- (WebCore::FrameLoaderClientWin::ref):
- (WebCore::FrameLoaderClientWin::deref):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ChromeClientWin::createWindow):
- (WebCore::ChromeClientWin::createModalDialog):
- (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
- (WebCore::EditorClientWin::isEditable):
- (WebCore::EditorClientWin::shouldBeginEditing):
- (WebCore::EditorClientWin::shouldEndEditing):
- (WebCore::EditorClientWin::shouldApplyStyle):
- (WebCore::EditorClientWin::didBeginEditing):
- (WebCore::EditorClientWin::respondToChangedContents):
- (WebCore::EditorClientWin::didEndEditing):
- (WebCore::EditorClientWin::registerCommandForUndo):
- (WebCore::EditorClientWin::registerCommandForRedo):
- (WebCore::EditorClientWin::clearUndoRedoOperations):
- (WebCore::EditorClientWin::canUndo):
- (WebCore::EditorClientWin::canRedo):
- (WebCore::EditorClientWin::undo):
- (WebCore::EditorClientWin::redo):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::createPlugin):
- (WebCore::FrameLoaderClientWin::hasWebView):
- (WebCore::FrameLoaderClientWin::hasFrameView):
- (WebCore::FrameLoaderClientWin::hasBackForwardList):
- (WebCore::FrameLoaderClientWin::resetBackForwardList):
- (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
- (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
- (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
- (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
- (WebCore::FrameLoaderClientWin::makeDocumentView):
- (WebCore::FrameLoaderClientWin::makeRepresentation):
- (WebCore::FrameLoaderClientWin::forceLayout):
- (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
- (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
- (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
- (WebCore::FrameLoaderClientWin::updateHistoryForReload):
- (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
- (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
- (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
- (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
- (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
- (WebCore::FrameLoaderClientWin::resetAfterLoadError):
- (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
- (WebCore::FrameLoaderClientWin::willCloseDocument):
- (WebCore::FrameLoaderClientWin::detachedFromParent1):
- (WebCore::FrameLoaderClientWin::detachedFromParent2):
- (WebCore::FrameLoaderClientWin::detachedFromParent3):
- (WebCore::FrameLoaderClientWin::detachedFromParent4):
- (WebCore::FrameLoaderClientWin::loadedFromPageCache):
- (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
- (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
- (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
- (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
- (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
- (WebCore::FrameLoaderClientWin::dispatchWillClose):
- (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
- (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
- (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
- (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
- (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
- (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
- (WebCore::FrameLoaderClientWin::dispatchShow):
- (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
- (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
- (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
- (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
- (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
- (WebCore::FrameLoaderClientWin::revertToProvisionalState):
- (WebCore::FrameLoaderClientWin::clearUnarchivingState):
- (WebCore::FrameLoaderClientWin::progressStarted):
- (WebCore::FrameLoaderClientWin::progressCompleted):
- (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
- (WebCore::FrameLoaderClientWin::willChangeTitle):
- (WebCore::FrameLoaderClientWin::didChangeTitle):
- (WebCore::FrameLoaderClientWin::finishedLoading):
- (WebCore::FrameLoaderClientWin::finalSetupForReplace):
- (WebCore::FrameLoaderClientWin::setDefersLoading):
- (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
- (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
- (WebCore::FrameLoaderClientWin::clearArchivedResources):
- (WebCore::FrameLoaderClientWin::canShowMIMEType):
- (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
- (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoaderClientWin::frameLoadCompleted):
- (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
- (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
- (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
- (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
- (WebCore::FrameLoaderClientWin::didFinishLoad):
- (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
- (WebCore::FrameLoaderClientWin::setTitle):
- (WebCore::FrameLoaderClientWin::userAgent):
- 2006-11-18 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Rob (yay!).
- http://bugs.webkit.org/show_bug.cgi?id=11640
- XMLHttpRequest produces undefined:undefined HTTP authentication
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
- Treat undefined credentials as missing ones.
- 2006-11-17 Lars Naesbye Christensen <lars@naesbye.dk>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=11638
- [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
- * Resources/aliasCursor.png: Added.
- * Resources/noDropCursor.png: Added.
- * Resources/progressCursor.png: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * manual-tests/cursor.html:
- * page/EventHandler.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::handCursor):
- (WebCore::aliasCursor):
- (WebCore::progressCursor):
- (WebCore::noDropCursor):
- * rendering/RenderStyle.h:
- (WebCore::):
- 2006-11-18 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam.
- Properly adjust CFAbsoluteTime to time_t to fix date calculations.
-
- Compare lastModified w/ MAX_TIME_T when setting last modified date
- instead of comparing expiration against MAX_TIME_T.
- * platform/network/cf/ResourceResponseCFNet.cpp:
- (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
- 2006-11-17 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- More conversions from DeprecatedValueList to Vector and HashSet.
-
- * css/CSSValueList.cpp:
- (WebCore::CSSValueList::~CSSValueList):
- (WebCore::CSSValueList::append):
- (WebCore::CSSValueList::cssText):
- * css/CSSValueList.h:
- (WebCore::CSSValueList::length):
- (WebCore::CSSValueList::item):
- * dom/Document.cpp:
- (WebCore::Document::attachNodeIterator):
- (WebCore::Document::notifyBeforeNodeRemoval):
- * dom/Document.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::notifyAttributeChange):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::notifyClientsToRepaint):
- * platform/graphics/svg/SVGResource.cpp:
- (WebCore::SVGResource::invalidate):
- (WebCore::SVGResource::addClient):
- * platform/graphics/svg/SVGResource.h:
- * rendering/RenderBlock.h:
- === Safari-521.31 ===
- 2006-11-17 Timothy Hatcher <timothy@apple.com>
- Reviewed by Harrison.
- <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
- Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
- * dom/ContainerNode.cpp:
- (WebCore::ContainerNode::cloneChildNodes):
- * editing/markup.cpp:
- (WebCore::createFragmentFromNodes):
- 2006-11-17 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
- <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::isMailPasteAsQuotationNode): Added. Checks for the node
- that Mail wraps around an incoming fragment when it wants it to be pasted
- with quoting (no merging should be done).
- (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
- this virtual method in order to adjust the nodes that ReplaceSelectionCommand
- tracks.
- (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
- inside a Mail Paste as Quotation node. Allow merging from Mail blockquotes.
- (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
- a Mail blockquote, we ignore the parts of the source document's default style
- that are overriden by styles from the Mail blockquote. This is necessary in order
- for text that's black (because black is the source document's default font color)
- to appear blue/green/whatever when it's pasted into a Mail blockquote.
- (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
- Mail Paste as Quotation node into a normal Mail blockquote. This will prevent
- a copied blockquote that was inserted into the document using Paste as Quotation
- from triggering Paste as Quotation behavior when it's pasted.
- (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
- * editing/ReplaceSelectionCommand.h:
- * editing/markup.cpp:
- (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
- (WebCore::removeEnclosingMailBlockquoteStyle): Added.
- (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
- styles that Mail blockquotes contribute, so that Mail blockquote styles can
- be differentiated from styles that the user has applied. When creating markup
- for elements, do the same thing.
- (WebCore::createMarkup): Call the new subroutine.
- 2006-11-17 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11635
- Bug 11635: Fix potential issue with non-xslt build
- Fix the issue and do style guideline corrections.
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet):
- (WebCore::ProcessingInstruction::sheetLoaded):
- (WebCore::ProcessingInstruction::setCSSStyleSheet):
- (WebCore::ProcessingInstruction::setXSLStyleSheet):
- (WebCore::ProcessingInstruction::parseStyleSheet):
- 2006-11-17 Timothy Hatcher <timothy@apple.com>
- Reviewed by Harrison.
- <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
- Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
- This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::apply):
- (WebCore::EditCommand::unapply):
- (WebCore::EditCommand::reapply):
- (WebCore::applyCommand):
- * editing/EditCommand.h:
- 2006-11-17 Zack Rusin <zack@kde.org>
- Reviewed by Mitz. Landed by Niko.
- Making platform Qt/KDE compile and work after
- the latest api changes. Reported as
- http://bugs.webkit.org/show_bug.cgi?id=11617
- * CMakeLists.txt:
- * page/qt/EventHandlerQt.cpp: Added.
- (WebCore::isKeyboardOptionTab):
- (WebCore::EventHandler::tabsToLinks):
- (WebCore::EventHandler::tabsToAllControls):
- (WebCore::EventHandler::freeClipboard):
- (WebCore::EventHandler::focusDocumentView):
- (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
- (WebCore::EventHandler::passMouseDownEventToWidget):
- (WebCore::EventHandler::lastEventIsMouseUp):
- (WebCore::EventHandler::dragHysteresisExceeded):
- (WebCore::EventHandler::handleDrag):
- (WebCore::EventHandler::handleMouseUp):
- (WebCore::EventHandler::passSubframeEventToSubframe):
- (WebCore::EventHandler::passWheelEventToWidget):
- (WebCore::EventHandler::shouldDragAutoNode):
- (WebCore::EventHandler::dispatchDragSrcEvent):
- (WebCore::EventHandler::passMousePressEventToSubframe):
- (WebCore::EventHandler::passMouseMoveEventToSubframe):
- (WebCore::EventHandler::passMouseReleaseEventToSubframe):
- (WebCore::EventHandler::passWheelEventToSubframe):
- (WebCore::EventHandler::passMousePressEventToScrollbar):
- * platform/ContextMenu.h:
- * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
- (WebCore::SVGResourceClipper::applyClip):
- * platform/qt/ContextMenuClientQt.cpp: Added.
- (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
- (WebCore::ContextMenuClientQt::ref):
- (WebCore::ContextMenuClientQt::deref):
- * platform/qt/ContextMenuClientQt.h: Added.
- * platform/qt/ContextMenuQt.cpp: Added.
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenu::itemCount):
- (WebCore::ContextMenu::insertItem):
- (WebCore::ContextMenu::setPlatformMenuDescription):
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
- (WebCore::EditorClientQt::isEditable):
- (WebCore::EditorClientQt::registerCommandForUndo):
- (WebCore::EditorClientQt::registerCommandForRedo):
- (WebCore::EditorClientQt::clearUndoRedoOperations):
- (WebCore::EditorClientQt::canUndo):
- (WebCore::EditorClientQt::canRedo):
- (WebCore::EditorClientQt::undo):
- (WebCore::EditorClientQt::redo):
- * platform/qt/EditorClientQt.h:
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::mousePressEvent):
- * platform/qt/TemporaryLinkStubs.cpp:
- (FrameView::updateBorder):
- 2006-11-17 David Harrison <harrison@apple.com>
- Reviewed by Adele.
- <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
- Replace an assert with a fixme that refers to this bug.
-
- * page/Frame.cpp:
- (WebCore::Frame::revealSelection):
- 2006-11-16 Rob Buis <buis@kde.org>
- Reviewed and landed by Brady
- Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
- REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
- Fix the regression by setting m_loadCompleted correctly.
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::checkLoaded):
- * dom/Node.h:
- (WebCore::Node::sheetLoaded):
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::sheetLoaded):
- * dom/ProcessingInstruction.h:
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::sheetLoaded):
- * html/HTMLLinkElement.h:
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::sheetLoaded):
- * html/HTMLStyleElement.h:
- 2006-11-16 David Harrison <harrison@apple.com>
- Reviewed by Beth.
- <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
- The problem was triggered by the fact that the parent div was changing both
- in position and in height. The renderer normally bifurcates its logic for
- x-position changes vs height changes.
- Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
- Test added:
- * manual-tests/delete-into-nested-block.html
-
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlockChildren):
- (WebCore::RenderBlock::positionNewFloats):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::repaintDuringLayoutIfMoved):
- * rendering/RenderBox.h:
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::placeChild):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::repaintDuringLayoutIfMoved):
- * rendering/RenderObject.h:
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::layoutRows):
- 2006-11-16 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Slider cleanup. Let the theme set the size of the slider thumb.
- * rendering/RenderSlider.cpp:
- (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
- (WebCore::RenderSlider::createThumbStyle):
- (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
- * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize): Added.
- * rendering/RenderTheme.h: ditto.
- * rendering/RenderThemeMac.h: ditto.
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
- 2006-11-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Use Vector instead of DeprecatedValueList in a few places.
-
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
- (KJS::DOMNamedNodesCollection::lengthGetter):
- (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
- * bindings/js/kjs_dom.h:
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::namedItemGetter):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- (KJS::JSHTMLCollection::getNamedItems):
- * bindings/objc/DOM.mm:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::dashboardRegionsDictionary):
- * css/CSSStyleDeclaration.cpp:
- (WebCore::CSSStyleDeclaration::diff):
- * html/HTMLCollection.cpp:
- (WebCore::HTMLCollection::namedItems):
- * html/HTMLCollection.h:
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::KCanvasFilter::externalRepresentation):
- * kcanvas/KCanvasFilters.h:
- (WebCore::KCanvasFEColorMatrix::values):
- (WebCore::KCanvasFEColorMatrix::setValues):
- (WebCore::KCanvasFEConvolveMatrix::kernel):
- (WebCore::KCanvasFEConvolveMatrix::setKernel):
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::getCIFilterStack):
- (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (WebCore::SVGFEColorMatrixElement::filterEffect):
- * platform/graphics/svg/SVGResourceClipper.h:
- * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
- (WebCore::SVGResourceClipper::applyClip):
- * platform/network/FormData.h:
- * rendering/RenderPath.h:
- * rendering/SVGRenderTreeAsText.h:
- (WebCore::operator<<):
- 2006-11-16 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim.
- * editing/markup.cpp:
- (WebCore::createMarkup):
- Add null-checks for the frame, it might not exist for all documents.
-
- 2006-11-16 Peter Kasting <pkasting@google.com>
- Reviewed and landed by ap.
- http://bugs.webkit.org/show_bug.cgi?id=11509:
- Windows build bustage.
- Also reorganizes WebCore.vcproj to add files whose absence wasn't
- causing compile errors, but which should have been there, and to
- make the include directory ordering (and contents) sane.
- Also reorganizes TemporaryLinkStubs.cpp to put headers and
- function groups in alphabetical order, and ensure that all functions
- in the file call notImplemented().
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/ChromeClientWin.h:
- (WebCore::ChromeClientWin::ref):
- (WebCore::ChromeClientWin::deref):
- * bridge/win/ContextMenuClientWin.h: Added.
- (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
- (WebCore::ContextMenuClientWin::ref):
- (WebCore::ContextMenuClientWin::deref):
- * bridge/win/EditorClientWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::~FrameWin):
- (WebCore::FrameWin::keyPress):
- * bridge/win/FrameWin.h:
- * bridge/win/PageWin.cpp: Removed.
- * editing/EditCommand.h:
- * loader/FormState.h:
- * loader/FrameLoader.h:
- * page/EventHandler.cpp:
- * platform/MimeTypeRegistry.cpp:
- (WebCore::initialiseSupportedImageMIMETypes):
- * platform/graphics/win/ImageWin.cpp:
- * platform/network/ResourceError.cpp:
- * platform/network/ResourceHandleInternal.h:
- * platform/network/win/ResourceHandleWin.cpp:
- (WebCore::ResourceHandle::onHandleCreated):
- (WebCore::ResourceHandle::onRequestRedirected):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::cancel):
- * platform/win/ScreenWin.cpp:
- (WebCore::monitorInfo):
- (WebCore::screenRect):
- (WebCore::screenAvailableRect):
- (WebCore::screenDepth):
- * platform/win/SoundWin.cpp: Added.
- (WebCore::systemBeep):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::CacheObjectExpiresTime):
- (WebCore::CheckCacheObjectStatus):
- (WebCore::CheckIfReloading):
- (WebCore::defaultLanguage):
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::fileButtonNoFileSelectedLabel):
- (WebCore::findNextSentenceFromIndex):
- (WebCore::findNextWordFromIndex):
- (WebCore::findSentenceBoundary):
- (WebCore::findWordBoundary):
- (WebCore::focusRingColor):
- (WebCore::historyContains):
- (WebCore::inputElementAltText):
- (WebCore::IsResponseURLEqualToURL):
- (WebCore::cellCursor):
- (WebCore::contextMenuCursor):
- (WebCore::moveCursor):
- (WebCore::verticalTextCursor):
- (WebCore::refreshPlugins):
- (WebCore::resetButtonDefaultLabel):
- (WebCore::ResponseIsMultipart):
- (WebCore::ResponseMIMEType):
- (WebCore::ResponseURL):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (WebCore::searchableIndexIntroduction):
- (WebCore::ServeSynchronousRequest):
- (WebCore::setFocusRingColorChangeFunction):
- (WebCore::submitButtonDefaultLabel):
- (WebCore::CachedResource::setPlatformResponse):
- (WebCore::CachedResource::setAllData):
- (WebCore::ChromeClientWin::setWindowRect):
- (WebCore::ChromeClientWin::windowRect):
- (WebCore::ChromeClientWin::pageRect):
- (WebCore::ChromeClientWin::scaleFactor):
- (WebCore::ChromeClientWin::focus):
- (WebCore::ChromeClientWin::unfocus):
- (WebCore::ChromeClientWin::createWindow):
- (WebCore::ChromeClientWin::createModalDialog):
- (WebCore::ChromeClientWin::show):
- (WebCore::ChromeClientWin::canRunModal):
- (WebCore::ChromeClientWin::runModal):
- (WebCore::ChromeClientWin::setToolbarsVisible):
- (WebCore::ChromeClientWin::toolbarsVisible):
- (WebCore::ChromeClientWin::setStatusbarVisible):
- (WebCore::ChromeClientWin::statusbarVisible):
- (WebCore::ChromeClientWin::setScrollbarsVisible):
- (WebCore::ChromeClientWin::scrollbarsVisible):
- (WebCore::ChromeClientWin::setMenubarVisible):
- (WebCore::ChromeClientWin::menubarVisible):
- (WebCore::ChromeClientWin::setResizable):
- (WebCore::ContextMenu::appendItem):
- (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
- (WebCore::DocumentLoader::setFrame):
- (WebCore::DocumentLoader::frameLoader):
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::isStopping):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::setLoading):
- (WebCore::DocumentLoader::updateLoading):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::isLoadingInAPISense):
- (WebCore::DocumentLoader::stopRecordingResponses):
- (WebCore::EditorClientWin::shouldDeleteRange):
- (WebCore::EditorClientWin::shouldShowDeleteInterface):
- (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
- (WebCore::EditorClientWin::isGrammarCheckingEnabled):
- (WebCore::EditorClientWin::spellCheckerDocumentTag):
- (WebCore::EventHandler::focusDocumentView):
- (WebCore::EventHandler::handleDrag):
- (WebCore::EventHandler::handleMouseUp):
- (WebCore::EventHandler::lastEventIsMouseUp):
- (WebCore::EventHandler::passMousePressEventToSubframe):
- (WebCore::EventHandler::passMouseMoveEventToSubframe):
- (WebCore::EventHandler::passMouseReleaseEventToSubframe):
- (WebCore::EventHandler::passWheelEventToSubframe):
- (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
- (WebCore::EventHandler::passMousePressEventToScrollbar):
- (WebCore::EventHandler::shouldDragAutoNode):
- (WebCore::EventHandler::tabsToAllControls):
- (WebCore::EventHandler::tabsToLinks):
- (WebCore::Frame::setNeedsReapplyStyles):
- (WebCore::FrameLoader::didFirstLayout):
- (WebCore::FrameLoader::overrideMediaType):
- (WebCore::FrameLoader::createJavaAppletWidget):
- (WebCore::FrameLoader::redirectDataToPlugin):
- (WebCore::FrameLoader::getHistoryLength):
- (WebCore::FrameLoader::setTitle):
- (WebCore::FrameLoader::referrer):
- (WebCore::FrameLoader::saveDocumentState):
- (WebCore::FrameLoader::restoreDocumentState):
- (WebCore::FrameLoader::goBackOrForward):
- (WebCore::FrameLoader::historyURL):
- (WebCore::FrameLoader::urlSelected):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::submitForm):
- (WebCore::FrameLoader::partClearedInBegin):
- (WebCore::FrameLoader::originalRequestURL):
- (WebCore::FrameLoader::canGoBackOrForward):
- (WebCore::FrameLoader::objectContentType):
- (WebCore::FrameLoader::createPlugin):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameView::updateBorder):
- (WebCore::FrameWin::bindingRootObject):
- (WebCore::FrameWin::canPaste):
- (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
- (WebCore::FrameWin::markedTextRange):
- (WebCore::FrameWin::passSubframeEventToSubframe):
- (WebCore::FrameWin::lastEventIsMouseUp):
- (WebCore::FrameWin::addMessageToConsole):
- (WebCore::FrameWin::shouldChangeSelection):
- (WebCore::FrameWin::respondToChangedSelection):
- (WebCore::FrameWin::clearUndoRedoOperations):
- (WebCore::FrameWin::markMisspellingsInAdjacentWords):
- (WebCore::FrameWin::respondToChangedContents):
- (WebCore::GraphicsContext::addRoundedRectClip):
- (WebCore::GraphicsContext::setShadow):
- (WebCore::GraphicsContext::clearShadow):
- (WebCore::GraphicsContext::beginTransparencyLayer):
- (WebCore::GraphicsContext::endTransparencyLayer):
- (WebCore::GraphicsContext::clearRect):
- (WebCore::GraphicsContext::strokeRect):
- (WebCore::GraphicsContext::setLineWidth):
- (WebCore::GraphicsContext::setLineCap):
- (WebCore::GraphicsContext::setLineJoin):
- (WebCore::GraphicsContext::setMiterLimit):
- (WebCore::GraphicsContext::setAlpha):
- (WebCore::GraphicsContext::setCompositeOperation):
- (WebCore::GraphicsContext::clip):
- (WebCore::GraphicsContext::rotate):
- (WebCore::GraphicsContext::scale):
- (WebCore::Icon::Icon):
- (WebCore::Icon::~Icon):
- (WebCore::Icon::newIconForFile):
- (WebCore::Icon::paint):
- (WebCore::IconDatabase::isIconExpiredForIconURL):
- (WebCore::IconDatabase::hasEntryForIconURL):
- (WebCore::IconDatabase::sharedIconDatabase):
- (WebCore::IconDatabase::setIconURLForPageURL):
- (WebCore::IconDatabase::setIconDataForIconURL):
- (WebCore::Image::drawTiled):
- (WebCore::Image::getHBITMAP):
- (WebCore::Path::Path):
- (WebCore::Path::~Path):
- (WebCore::Path::contains):
- (WebCore::Path::translate):
- (WebCore::Path::boundingRect):
- (WebCore::Path::operator=):
- (WebCore::Path::clear):
- (WebCore::Path::moveTo):
- (WebCore::Path::addLineTo):
- (WebCore::Path::addQuadCurveTo):
- (WebCore::Path::addBezierCurveTo):
- (WebCore::Path::addArcTo):
- (WebCore::Path::closeSubpath):
- (WebCore::Path::addArc):
- (WebCore::Path::addRect):
- (WebCore::Path::addEllipse):
- (WebCore::Path::transform):
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- (WebCore::PlatformScrollbar::PlatformScrollbar):
- (WebCore::PlatformScrollbar::~PlatformScrollbar):
- (WebCore::PlatformScrollbar::width):
- (WebCore::PlatformScrollbar::height):
- (WebCore::PlatformScrollbar::setEnabled):
- (WebCore::PlatformScrollbar::paint):
- (WebCore::PlatformScrollbar::updateThumbPosition):
- (WebCore::PlatformScrollbar::updateThumbProportion):
- (WebCore::PlatformScrollbar::setRect):
- (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
- (WebCore::PlugInInfoStore::pluginCount):
- (WebCore::PlugInInfoStore::supportsMIMEType):
- (WebCore::PolicyCheck::PolicyCheck):
- (WebCore::PolicyCheck::clear):
- (WebCore::PolicyCheck::clearRequest):
- (WebCore::PolicyCheck::call):
- (WebCore::RenderThemeWin::systemFont):
- (WebCore::RenderThemeWin::paintMenuList):
- (WebCore::RenderThemeWin::adjustMenuListStyle):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ScrollView::addChild):
- (WebCore::ScrollView::removeChild):
- (WebCore::ScrollView::scrollPointRecursively):
- (WebCore::ScrollView::inWindow):
- (WebCore::ScrollView::paint):
- (WebCore::ScrollView::wheelEvent):
- (WebCore::ScrollView::themeChanged):
- (WebCore::ScrollView::convertChildToSelf):
- (WebCore::ScrollView::convertSelfToChild):
- (WebCore::ScrollView::geometryChanged):
- (WebCore::ScrollView::scrollbarUnderMouse):
- (WebCore::ScrollView::setFrameGeometry):
- (WebCore::ScrollView::windowResizerRect):
- (WebCore::ScrollView::resizerOverlapsContent):
- (WebCore::TextField::selectAll):
- (WebCore::TextField::addSearchResult):
- (WebCore::TextField::selectionStart):
- (WebCore::TextField::hasSelectedText):
- (WebCore::TextField::selectedText):
- (WebCore::TextField::setAutoSaveName):
- (WebCore::TextField::checksDescendantsForFocus):
- (WebCore::TextField::setSelection):
- (WebCore::TextField::setMaxResults):
- (WebCore::TextField::edited):
- (WebCore::TextField::focusPolicy):
- (WebCore::TextField::TextField):
- (WebCore::TextField::~TextField):
- (WebCore::TextField::setFont):
- (WebCore::TextField::setAlignment):
- (WebCore::TextField::setWritingDirection):
- (WebCore::TextField::maxLength):
- (WebCore::TextField::setMaxLength):
- (WebCore::TextField::text):
- (WebCore::TextField::setText):
- (WebCore::TextField::cursorPosition):
- (WebCore::TextField::setCursorPosition):
- (WebCore::TextField::setEdited):
- (WebCore::TextField::setReadOnly):
- (WebCore::TextField::setPlaceholderString):
- (WebCore::TextField::setColors):
- (WebCore::TextField::sizeForCharacterWidth):
- (WebCore::TextField::baselinePosition):
- (WebCore::TextField::setLiveSearch):
- (WebCore::Widget::enableFlushDrawing):
- (WebCore::Widget::isEnabled):
- (WebCore::Widget::focusPolicy):
- (WebCore::Widget::disableFlushDrawing):
- (WebCore::Widget::removeFromParent):
- (WebCore::Widget::lockDrawingFocus):
- (WebCore::Widget::unlockDrawingFocus):
- (WebCore::Widget::capturingMouse):
- (WebCore::Widget::setCapturingMouse):
- (WebCore::Widget::capturingTarget):
- (WebCore::Widget::capturingChild):
- (WebCore::Widget::setCapturingChild):
- (WebCore::Widget::convertChildToSelf):
- (WebCore::Widget::convertSelfToChild):
- (WebCore::Widget::setParent):
- (WebCore::Widget::parent):
- (WebCore::Widget::setEnabled):
- (WebCore::Widget::paint):
- (WebCore::Widget::setIsSelected):
- (WebCore::Widget::invalidate):
- (WebCore::Widget::invalidateRect):
- * platform/win/WidgetWin.cpp:
- (WebCore::Widget::clearFocus):
- 2006-11-16 Timothy Hatcher <timothy@apple.com>
- Reviewed by Adam.
- <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
- * editing/markup.cpp:
- (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
- 2006-11-16 George Staikos <staikos@kde.org>
- Rubberstamped by Maciej.
- Making the code valgrind clean.
- * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
- (WebCore::RenderTableCell::RenderTableCell):
- * rendering/RenderTableCell.h: remove unused variable nWrap
- 2006-11-16 David Harrison <harrison@apple.com>
- Reviewed by Darin and Tim.
- <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
-
- * page/mac/EventHandlerMac.mm:
- (WebCore::EventHandler::eventMayStartDrag):
- Add nil check of hitTest's result.innerNode().
- 2006-11-16 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
- Consider the container of the selection range for deletion before asking enclosingNodeOfType().
- * editing/DeleteButtonController.cpp:
- (WebCore::enclosingDeletableElement):
- 2006-11-16 Rob Buis <buis@kde.org>
- Reviewed by hyatt.
- Removal of unused m_styleElement.
- * dom/Node.cpp:
- (WebCore::Node::Node):
- (WebCore::Node::dump):
- * dom/Node.h:
- (WebCore::Node::isLink): should be styleElement, a bug?
- 2006-11-15 Adam Roben <aroben@apple.com>
- Build fix.
- Rename the items in the ContextMenuAction enum so that they don't
- conflict with WebKit names.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate):
- * platform/ContextMenu.h:
- (WebCore::):
- (WebCore::ContextMenuItem::ContextMenuItem):
- 2006-11-15 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- Change m_contextMenu to an OwnPtr.
- * WebCore.xcodeproj/project.pbxproj:
- * page/ContextMenuController.cpp:
- (WebCore::ContextMenuController::handleContextMenuEvent):
- * page/ContextMenuController.h:
- 2006-11-15 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- Add new ContextMenuController and ContextMenuClient classes, and move
- context menu responsibilities from Chrome and ChromeClient to them.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
- alphabetize some others.
- * page/Chrome.cpp: Remove context menu-related code.
- * page/Chrome.h: Ditto.
- * page/ChromeClient.h:
- * page/ContextMenuClient.h: Added.
- * page/ContextMenuController.cpp: Added.
- (WebCore::ContextMenuController::ContextMenuController):
- (WebCore::ContextMenuController::~ContextMenuController):
- (WebCore::ContextMenuController::handleContextMenuEvent):
- (WebCore::ContextMenuController::contextMenuActionSelected):
- * page/ContextMenuController.h: Added.
- (WebCore::ContextMenuController::client):
- * page/Page.cpp: Every Page now has a ContextMenuController.
- (WebCore::Page::Page):
- * page/Page.h: Made m_dragCaretController and m_chrome objects instead
- of pointers to objects.
- (WebCore::Page::contextMenuController):
- * platform/ContextMenu.cpp:
- (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
- delegate to add its menu items, and moved the code from the static
- addDefaultItems function into this method.
- * platform/ContextMenu.h:
- (WebCore::ContextMenu::show): Added an empty method body since this
- method is now called from ContextMenuController (although no one calls
- into ContextMenuController yet, so it's OK for this to be empty).
- (WebCore::ContextMenu::hide): Ditto.
- 2006-11-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Add null checks on the node filter, they can be null if no filter was passed to the respective
- create functions.
-
- * bindings/js/JSNodeIteratorCustom.cpp:
- (WebCore::JSNodeIterator::mark):
- * bindings/js/JSTreeWalkerCustom.cpp:
- (WebCore::JSTreeWalker::mark):
- 2006-11-15 Oliver Hunt <oliver@apple.com>
- Reviewed by Anders.
- Allow <embed> and <object> tags to include non-plugin
- content when plugins are disabled
- Fixes <rdar://problems/4839488>
- * html/HTMLEmbedElement.cpp:
- (WebCore::HTMLEmbedElement::rendererIsNeeded):
- * html/HTMLObjectElement.cpp:
- (WebCore::HTMLObjectElement::rendererIsNeeded):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::requestObject):
- 2006-11-15 Adele Peterson <adele@apple.com>
- Build fix. Another type problem that I don't see locally.
- * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
- 2006-11-15 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Adding MathExtras header.
- * rendering/RenderSlider.cpp:
- 2006-11-15 Timothy Hatcher <timothy@apple.com>
- Reviewed by Harrison.
- <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
- * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
- by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
- * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
- the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
- * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
- * editing/DeleteButtonController.cpp:
- (WebCore::DeleteButtonController::DeleteButtonController):
- (WebCore::isDeletableElement):
- (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
- (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
- (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
- (WebCore::DeleteButtonController::deleteTarget): check the enabled state
- * editing/DeleteButtonController.h:
- (WebCore::DeleteButtonController::disable):
- (WebCore::DeleteButtonController::enable):
- (WebCore::DeleteButtonController::enabled):
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
- (WebCore::EditCommand::unapply): ditto
- (WebCore::EditCommand::reapply): ditto
- 2006-11-15 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- New implementation of slider control.
- * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
- * rendering/DeprecatedSlider.cpp: Removed.
- * rendering/DeprecatedSlider.h: Removed.
- * platform/Slider.h: Removed.
- * platform/mac/SliderMac.mm: Removed.
- * platform/win/TemporaryLinkStubs.cpp:
- * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
- * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
- * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector):
- * rendering/RenderStyle.cpp:
- (WebCore::):
- (WebCore::pseudoBit):
- * rendering/RenderStyle.h: (WebCore::RenderStyle::):
- * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
- (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
- * 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
- continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
- (WebCore::EventHandler::EventHandler):
- (WebCore::EventHandler::setCapturingMouseEventsNode):
- (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
- * page/EventHandler.h:
- * rendering/RenderSlider.cpp: Added.
- (WebCore::HTMLSliderThumbElement::isShadowNode):
- (WebCore::HTMLSliderThumbElement::shadowParentNode):
- (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
- (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
- (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
- (WebCore::RenderSlider::RenderSlider):
- (WebCore::RenderSlider::~RenderSlider):
- (WebCore::RenderSlider::baselinePosition):
- (WebCore::RenderSlider::calcMinMaxWidth):
- (WebCore::RenderSlider::setStyle):
- (WebCore::RenderSlider::createThumbStyle):
- (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
- (WebCore::RenderSlider::updateFromElement):
- (WebCore::RenderSlider::mouseEventIsInThumb):
- (WebCore::RenderSlider::setValueForPosition):
- (WebCore::RenderSlider::setPositionFromValue):
- (WebCore::RenderSlider::positionForOffset):
- (WebCore::RenderSlider::valueChanged):
- (WebCore::RenderSlider::currentPosition):
- (WebCore::RenderSlider::setCurrentPosition):
- (WebCore::RenderSlider::trackSize):
- (WebCore::RenderSlider::forwardEvent):
- (WebCore::RenderSlider::inDragMode):
- * rendering/RenderSlider.h: Added.
- (WebCore::RenderSlider::renderName):
- * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
- (WebCore::RenderTheme::adjustStyle):
- (WebCore::RenderTheme::paint):
- (WebCore::RenderTheme::paintBorderOnly):
- (WebCore::RenderTheme::paintDecorations):
- (WebCore::RenderTheme::adjustSliderTrackStyle):
- (WebCore::RenderTheme::adjustSliderThumbStyle):
- * rendering/RenderTheme.h:
- (WebCore::RenderTheme::paintSliderTrack):
- (WebCore::RenderTheme::paintSliderThumb):
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::RenderThemeMac):
- (WebCore::TrackGradientInterpolate):
- (WebCore::RenderThemeMac::paintSliderTrack):
- (WebCore::RenderThemeMac::paintSliderThumb):
- (WebCore::RenderThemeMac::adjustSliderTrackStyle):
- (WebCore::RenderThemeMac::adjustSliderThumbStyle):
- 2006-11-15 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Oops! Forgot to add this!
- * platform/mac/ContextMenuMac.mm: Added.
- (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
- (-[MenuTarget WebCore::]):
- (-[MenuTarget setMenu:WebCore::]):
- (-[MenuTarget forwardContextMenuAction:]):
- (getNSMenuItem):
- (ContextMenu::appendItem):
- (ContextMenu::itemCount):
- (ContextMenu::insertItem):
- (ContextMenu::setPlatformMenuDescription):
- 2006-11-15 Beth Dakin <bdakin@apple.com>
- & Adam Roben <aroben@apple.com>
- Reviewed by Adam and Beth.
- Initial cut at pushing Context Menus into WebCore. Nobody actually
- calls this code just yet.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * page/Chrome.cpp:
- (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
- call into addContextMenuItems on the UIDelegate.
- * page/Chrome.h:
- * page/ChromeClient.h:
- * platform/ContextMenu.cpp: Added.
- (WebCore::addDefaultItems):
- (WebCore::ContextMenu::populate):
- * platform/ContextMenu.h: Added.
- (WebCore::):
- (WebCore::ContextMenuItem::ContextMenuItem):
- (WebCore::ContextMenu::ContextMenu):
- (WebCore::ContextMenu::hitTestResult):
- (WebCore::ContextMenu::platformMenuDescription):
- 2006-11-15 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
- * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
- 2006-11-15 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
- Test:
- * manual-tests/keep_spelling_markers.html:
- Updated to include checking for this bug.
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- it.advance() even when current string is a single space.
- 2006-11-15 Brady Eidson <beidson@apple.com>
- Reviewed by lamadio
- Backing out macro expansion
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::isRecognizedTagName):
- * ksvg2/scripts/make_names.pl:
- 2006-11-15 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4770453> VO not honoring secure edit fields in web pages
- The remaining problem was the password fields would return their contents
- even though they did not advertise that they could. Apparently, VoiceOver
- does not read the ads.
- * bridge/mac/WebCoreAXObject.mm:
- (isPasswordFieldElement):
- (-[WebCoreAXObject isPasswordField]):
- (-[WebCoreAXObject textMarkerForVisiblePosition:]):
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- (-[WebCoreAXObject doAXStringForRange:]):
- 2006-11-13 Lou Amadio <lamadio@apple.com>
- Reviewed by Darin Adler, Maciej Stachowiak
- Cleanup: Expanded macros in generated files
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::isRecognizedTagName):
- * ksvg2/scripts/make_names.pl:
- 2006-11-16 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- Use Vector instead of DeprecatedPtrList.
-
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyBlockStyle):
- * editing/BreakBlockquoteCommand.cpp:
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::paintOutline):
- 2006-11-15 Adam Roben <aroben@apple.com>
- Build fix.
- * page/EventHandler.h:
- 2006-11-14 Beth Dakin <bdakin@apple.com>
- Reviewed by Geoff.
- Move things off the bridge, and move sendContextMenuEvent() from
- EventHandlerMac to EventHandler.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/EditorClient.h:
- * bridge/mac/WebCoreFrameBridge.h:
- * editing/Editor.cpp:
- (WebCore::Editor::selectWordBeforeMenuEvent):
- (WebCore::Editor::clientIsEditable):
- * editing/Editor.h:
- * page/EventHandler.cpp:
- (WebCore::EventHandler::sendContextMenuEvent):
- * page/EventHandler.h:
- * page/mac/EventHandlerMac.mm:
- 2006-11-14 Timothy Hatcher <timothy@apple.com>
- Reviewed by Harrison.
- <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
- Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
- * bridge/mac/WebCoreSettings.mm:
- (-[WebCoreSettings setEditableLinkBehavior:]):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- (WebCore::HTMLAnchorElement::setActive):
- (WebCore::HTMLAnchorElement::isLiveLink):
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * page/Settings.h:
- (WebCore::Settings::):
- 2006-11-14 Mark Rowe <bdash@webkit.org>
- Reviewed by Oliver.
- Build fix
- * bindings/scripts/CodeGenerator.pm:
- 2006-11-14 Anders Carlsson <acarlsson@apple.com>
- Turns out I wasn't forcing DWARF on the world at all,
- it's now the default!
- * WebCore.xcodeproj/project.pbxproj:
- 2006-11-14 Anders Carlsson <acarlsson@apple.com>
- I must stop trying to force DWARF on the world.
-
- * WebCore.xcodeproj/project.pbxproj:
- 2006-11-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4806874>
- Missing background image after paste
-
- * editing/markup.cpp:
- (WebCore::createMarkup): If the body is fully selected, add a
- div with its CSS properties to the markup. Migrated a use of
- enclosingBlockFlowElement to enclosingBlock to fix an infinite
- loop when pasting <div><input></div>.
- 2006-11-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- Add Undo/Redo to execCommand.
-
- * editing/Editor.cpp:
- (WebCore::execRedo):
- (WebCore::execUndo):
- (WebCore::canRedo):
- (WebCore::canUndo):
- (WebCore::CommandEntry::):
- 2006-11-14 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - created EventHandler class, moved event handling code from both
- Frame and FrameView in there
- - added ScrollTypes.h header so you can include the scroller-related
- enums without all of Scrollbar.h
- * page/EventHandler.cpp: Added.
- * page/EventHandler.h: Added.
- * page/mac/EventHandlerMac.mm: Added.
- * platform/ScrollBarMode.h: Removed.
- * platform/ScrollTypes.h: Added.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac):
- (WebCore::FrameMac::~FrameMac):
- (WebCore::FrameMac::bridgeForWidget):
- (WebCore::FrameMac::imageFromRect):
- * bridge/mac/FrameViewMac.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
- (-[WebCoreFrameBridge nextKeyView]):
- (-[WebCoreFrameBridge previousKeyView]):
- (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
- (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
- (-[WebCoreFrameBridge _visiblePositionForPoint:]):
- (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
- (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
- (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
- (-[WebCoreFrameBridge dragSourceMovedTo:]):
- (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
- * dom/Document.cpp:
- (WebCore::Document::hoveredNodeDetached):
- * dom/Element.h:
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::defaultEventHandler):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::SelectionController):
- * editing/SelectionController.h:
- (WebCore::SelectionController::setCaretBlinkingSuspended):
- (WebCore::SelectionController::isCaretBlinkingSuspended):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::isKeyboardFocusable):
- * html/HTMLFrameElementBase.cpp:
- (WebCore::HTMLFrameElementBase::setFocus):
- * html/HTMLFrameElementBase.h:
- * html/HTMLGenericFormElement.cpp:
- (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::clear):
- (WebCore::FrameLoader::open):
- * page/Frame.cpp:
- (WebCore::Frame::caretBlinkTimerFired):
- (WebCore::Frame::frameForWidget):
- (WebCore::Frame::eventHandler):
- (WebCore::Frame::setProhibitsScrolling):
- (WebCore::FramePrivate::FramePrivate):
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::FrameViewPrivate):
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::FrameView):
- (WebCore::FrameView::~FrameView):
- (WebCore::FrameView::clear):
- (WebCore::FrameView::adjustViewSize):
- (WebCore::FrameView::addRepaintInfo):
- (WebCore::FrameView::layout):
- (WebCore::FrameView::scrollPointRecursively):
- (WebCore::FrameView::setContentsPos):
- (WebCore::FrameView::scheduleRelayoutOfSubtree):
- (WebCore::FrameView::scheduleEvent):
- (WebCore::FrameView::updateOverflowStatus):
- (WebCore::FrameView::dispatchScheduledEvents):
- (WebCore::FrameView::windowClipRectForLayer):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- * page/FrameView.h:
- * page/PageState.cpp:
- (WebCore::PageState::PageState):
- (WebCore::PageState::restore):
- * page/PageState.h:
- * platform/ScrollBar.h:
- * platform/ScrollView.h:
- * platform/mac/ClipboardMac.mm:
- * platform/mac/PopupMenuMac.mm:
- (WebCore::PopupMenu::show):
- * platform/mac/SliderMac.mm:
- (-[WebCoreSlider becomeFirstResponder]):
- (-[WebCoreSlider nextKeyView]):
- (-[WebCoreSlider previousKeyView]):
- (-[WebCoreSlider canBecomeKeyView]):
- (Slider::focusPolicy):
- * platform/mac/WebCoreTextField.mm:
- (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
- (-[WebCoreTextFieldController setHasFocus:]):
- (-[WebCoreSearchField nextKeyView]):
- (-[WebCoreSearchField previousKeyView]):
- (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::hasFocus):
- (WebCore::Widget::clearFocus):
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::setResizing):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll):
- (WebCore::RenderLayer::resize):
- (WebCore::RenderLayer::updateOverflowStatus):
- * rendering/RenderLayer.h:
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::autoscroll):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::draggableNode):
- (WebCore::RenderObject::destroy):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::RepaintInfo::RepaintInfo):
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::viewCleared):
- 2006-11-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Let the editor client handle undo/redo.
-
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/EditorClient.h:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::canUndo):
- (WebCore::FrameMac::canRedo):
- * bridge/mac/WebCoreEditCommand.h: Removed.
- * bridge/mac/WebCoreEditCommand.mm: Removed.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * editing/Editor.cpp:
- (WebCore::Editor::appliedEditing):
- (WebCore::Editor::unappliedEditing):
- (WebCore::Editor::reappliedEditing):
- * editing/JSEditor.cpp:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::closeURL):
- * page/Frame.cpp:
- * page/Frame.h:
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::updateFromElement):
- 2006-11-14 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Brady
- Fix Qt/Linux build.
- * ChangeLog:
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::submitForm):
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::add):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::submitForm):
- * platform/qt/FrameQtClient.h:
- 2006-11-14 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- Cleanup of my patch last night and merging with aroben-style changes from this morning
- (More ref-counted FormData stuff)
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::submit):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::submitForm):
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::postData):
- * platform/network/ResourceHandle.h:
- * platform/network/cf/FormDataStreamCFNet.cpp:
- (WebCore::setHTTPBody):
- * platform/network/mac/FormDataStreamMac.h:
- * platform/network/mac/FormDataStreamMac.mm:
- (WebCore::getStreamFormDatas):
- (WebCore::formCreate):
- (WebCore::formFinalize):
- (WebCore::setHTTPBody):
- (WebCore::httpBodyFromStream):
- * platform/network/mac/ResourceRequestMac.mm:
- (WebCore::getResourceRequest):
- 2006-11-14 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11575
- Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
- Test: fast/css/css-imports.html
- * css/CSSImportRule.cpp:
- (WebCore::CSSImportRule::insertedIntoParent):
- Fix the crash by testing for null pointer.
- 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Tim H.
- Test for http://bugs.webkit.org/show_bug.cgi?id=3387
- Redundant keydown, keypress, keyup events sent for arrow keys
- * manual-tests/arrow-key-events.html: Added.
- 2006-11-14 Darin Adler <darin@apple.com>
- Reviewed by Adam.
- Fix up usages of FormData within CFNet loader code.
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::httpBody):
- * platform/network/cf/FormDataStreamCFNet.cpp:
- (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
- streamFormDatas HashMap.
- (WebCore::formCreate):
- (WebCore::formFinalize): Removed delete because the remove() will deref
- and delete if necessary.
- (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
- (WebCore::httpBodyFromStream):
- * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
- * platform/network/cf/ResourceRequestCFNet.cpp:
- (WebCore::getResourceRequest):
- 2006-11-14 Greg Jackson <gjspanner@gmail.com>
- Reviewed by Darin.
- Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
- rather than overriding it based on platform detection.
- * bindings/js/kjs_navigator.cpp:
- 2006-11-13 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Made FormData Shared, and pass it around as such.
- * WebCore.xcodeproj/project.pbxproj: Reordered some items
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::formData):
- (WebCore::HTMLFormElement::submit):
- * html/HTMLFormElement.h:
- * loader/FrameLoader.cpp:
- (WebCore::FormSubmission::FormSubmission):
- (WebCore::FrameLoader::submitForm):
- * loader/FrameLoader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::loadResourceSynchronously):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::create):
- * platform/network/FormData.h: Made FormData shared
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandle.cpp:
- (WebCore::ResourceHandle::postData):
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::httpBody):
- (WebCore::ResourceRequest::setHTTPBody):
- * platform/network/mac/ResourceRequestMac.mm:
- (WebCore::getResourceRequest):
- (WebCore::nsURLRequest):
- * platform/network/mac/FormDataStreamMac.h:
- * platform/network/mac/FormDataStreamMac.mm:
- (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
- (WebCore::formCreate):
- (WebCore::formFinalize):
- (WebCore::setHTTPBody):
- (WebCore::httpBodyFromStream):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- 2006-11-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4828264>
- In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
-
- The start of the selection is in an editable area, and the end is in an
- input field inside that editable area. The code that should pull the end
- of such a selection outside the input field didn't escape shadow nodes,
- it would leave a dangling end, causing the crash in toRange.
-
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent): Added an ASSERT and a fixup
- to prevent crashes like this in future Release builds.
- * editing/htmlediting.cpp:
- (WebCore::firstEditablePositionAfterPositionInRoot): Let this function
- escape shadow nodes. We might eventually push this code down into
- next/previous{VisuallyDistinct}Canditate.
- (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
- 2006-11-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
-
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
- * editing/Editor.cpp:
- (WebCore::Editor::appliedEditing):
- * editing/Editor.h:
- (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
- 2006-11-10 Justin Garcia <justin.garcia@apple.com>
- Reviewed by Oliver
-
- <rdar://problem/4820026>
- copy/paste of news.google.com yields text from hidden select element options
- We were adding descendants of unrendered select elements.
- * editing/markup.cpp:
- (WebCore::createMarkup): Don't traverse into nodes without renderers, unless
- they are grandfathered in by a rendered select element.
-
- 2006-11-12 Simon Hausmann <hausmann@kde.org>
- Reviewed by Sam Weinig.
- Fix Qt build. Missing AbstractShared implementation.
- http://bugs.webkit.org/show_bug.cgi?id=11581
- * loader/qt/FrameLoaderClientQt.cpp:
- (WebCore::FrameLoaderClientQt::ref):
- (WebCore::FrameLoaderClientQt::deref):
- * loader/qt/FrameLoaderClientQt.h:
- * platform/qt/ChromeClientQt.cpp:
- (WebCore::ChromeClientQt::ref):
- (WebCore::ChromeClientQt::deref):
- * platform/qt/ChromeClientQt.h:
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::ref):
- (WebCore::EditorClientQt::deref):
- * platform/qt/EditorClientQt.h:
- 2006-11-13 Mark Rowe <bdash@webkit.org>
- Reviewed by Mitz.
- Fix some Linux/Gdk build issues noted by Alp Toker.
- * Projects/gdk/webcore-gdk.bkl:
- * WebCoreSources.bkl:
- * platform/graphics/gdk/ImageGdk.cpp:
- (WebCore::Image::loadPlatformResource):
- 2006-11-12 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- Logging channel plumbing for future work
- * platform/Logging.cpp:
- (WebCore::):
- * platform/Logging.h:
- * platform/mac/LoggingMac.mm:
- (WebCore::InitializeLoggingChannelsIfNecessary):
- 2006-11-12 Mark Rowe <bdash@webkit.org>
- Reviewed by Mitz.
- Linux/Gdk compilation fixes, and bakefile cleanups. Based on patches by
- Alp Toker.
- * Projects/gdk/webcore-gdk.bkl:
- * WebCoreSources.bkl:
- * page/PageState.cpp:
- * platform/gdk/ChromeClientGdk.h:
- (WebCore::ChromeClientGdk::ref):
- (WebCore::ChromeClientGdk::deref):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdkClientDefault::openURL):
- (WebCore::FrameGdkClientDefault::didReceiveData):
- (WebCore::FrameGdkClientDefault::receivedAllData):
- (WebCore::FrameGdk::FrameGdk):
- (WebCore::FrameGdk::~FrameGdk):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/KeyEventGdk.cpp:
- (WebCore::keyIdentifierForGdkKeyCode):
- * platform/gdk/ScreenClientGdk.h: Removed.
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::canPaste):
- (FrameGdk::originalRequestURL):
- (TextField::TextField):
- * platform/network/gdk/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::downloadTimerCallback):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- * webcore-base.bkl:
- 2006-11-11 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej Stachowiak.
-
- - Fixed loader crash by clarifying ownership of WebKit client objects.
- WebCore objects own their WebKit clients, and ref and deref through
- virtual methods, leaving WebKit free to use whatever client / reference-counting
- implementation it likes.
-
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/EditorClient.h: Fixed up function prototypes for style.
- * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
- was to implement an alternative ownership model.
- (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
- (WebCore::FrameLoader::setClient): This function now takes ownership
- (WebCore::FrameLoader::client):
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * page/ChromeClient.h:
- * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
- complement to Shared.
- (WebCore::AbstractShared::~AbstractShared):
- 2006-11-11 George Staikos <staikos@kde.org>
- Reviewed by Maciej.
- Fix uninitialized variable.
- * rendering/RenderStyle.h:
- 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Complete cleanup of the CMakeLists.txt.
- Now all files to be built are sorted in alphabetic order.
- General style cleanup, remove all tabs etc.
- * CMakeLists.txt:
- 2006-11-11 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej Stachowiak.
-
- Added missing initializer to ResourceRequest -- fixes some loader crashes
- due to assuming a request always has a non-null httpMethod.
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::ResourceRequest):
- 2006-11-11 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Fixed header guard
- * loader/FrameLoaderClient.h:
- 2006-11-11 Darin Adler <darin@apple.com>
- - attempt to fix Qt build
- * platform/qt/CursorQt.cpp:
- (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
- (WebCore::cellCursor): Ditto.
- (WebCore::contextMenuCursor): Ditto.
- 2006-11-11 Rob Buis <buis@kde.org>
- Reviewed by hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=10893
- InsertRule can not handle @import statements
- Allow @import as part of a css rule.
- * css/CSSGrammar.y:
- * css/CSSImportRule.cpp:
- (WebCore::CSSImportRule::insertedIntoParent):
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::CSSStyleSheet):
- (WebCore::CSSStyleSheet::checkLoaded):
- * css/CSSStyleSheet.h:
- (WebCore::CSSStyleSheet::loadCompleted):
- 2006-11-11 Alexey Proskuryakov <ap@webkit.org>
- Attempt to fix Qt build.
- * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
- 2006-11-11 Lars Naesbye Christensen <lars@naesbye.dk>
- Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
- [CSS 3] support for vertical-text, cell and context-menu cursors
- http://bugs.webkit.org/show_bug.cgi?id=11494
- * Resources/cellCursor.png: Added.
- * Resources/contextMenuCursor.png: Added.
- * Resources/verticalTextCursor.png: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * manual-tests/cursor.html:
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::verticalTextCursor):
- (WebCore::cellCursor):
- (WebCore::contextMenuCursor):
- * rendering/RenderStyle.h:
- (WebCore::):
- 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by aroben and ap, landed by ap.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
- Group graphics related files in platform/graphics.
- Move certain files from certain subdirectories
- into platform/graphics/{win,mac,cg,gdk,qt}
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * platform/AffineTransform.cpp: Removed.
- * platform/AffineTransform.h: Removed.
- * platform/Color.cpp: Removed.
- * platform/Color.h: Removed.
- * platform/FloatPoint.cpp: Removed.
- * platform/FloatPoint.h: Removed.
- * platform/FloatRect.cpp: Removed.
- * platform/FloatRect.h: Removed.
- * platform/FloatSize.cpp: Removed.
- * platform/FloatSize.h: Removed.
- * platform/Icon.h: Removed.
- * platform/Image.cpp: Removed.
- * platform/Image.h: Removed.
- * platform/ImageSource.h: Removed.
- * platform/IntPoint.h: Removed.
- * platform/IntRect.cpp: Removed.
- * platform/IntRect.h: Removed.
- * platform/IntSize.h: Removed.
- * platform/IntSizeHash.h: Removed.
- * platform/Path.cpp: Removed.
- * platform/Path.h: Removed.
- * platform/Pen.cpp: Removed.
- * platform/Pen.h: Removed.
- * platform/cairo/AffineTransformCairo.cpp: Removed.
- * platform/cairo/GraphicsContextCairo.cpp: Removed.
- * platform/cairo/ImageCairo.cpp: Removed.
- * platform/cairo/ImageSourceCairo.cpp: Removed.
- * platform/cairo/cairo/AUTHORS: Removed.
- * platform/cairo/cairo/COPYING: Removed.
- * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
- * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
- * platform/cairo/cairo/INSTALL: Removed.
- * platform/cairo/cairo/NEWS: Removed.
- * platform/cairo/cairo/README: Removed.
- * platform/cairo/cairo/TODO: Removed.
- * platform/cairo/cairo/src/Makefile.in: Removed.
- * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
- * platform/cairo/cairo/src/cairo-arc.c: Removed.
- * platform/cairo/cairo/src/cairo-array.c: Removed.
- * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
- * platform/cairo/cairo/src/cairo-atsui.h: Removed.
- * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
- * platform/cairo/cairo/src/cairo-beos.h: Removed.
- * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
- * platform/cairo/cairo/src/cairo-cache.c: Removed.
- * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
- * platform/cairo/cairo/src/cairo-clip.c: Removed.
- * platform/cairo/cairo/src/cairo-color.c: Removed.
- * platform/cairo/cairo/src/cairo-debug.c: Removed.
- * platform/cairo/cairo/src/cairo-debug.h: Removed.
- * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-directfb.h: Removed.
- * platform/cairo/cairo/src/cairo-features.h: Removed.
- * platform/cairo/cairo/src/cairo-features.h.in: Removed.
- * platform/cairo/cairo/src/cairo-fixed.c: Removed.
- * platform/cairo/cairo/src/cairo-font-options.c: Removed.
- * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
- * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
- * platform/cairo/cairo/src/cairo-font.c: Removed.
- * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
- * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
- * platform/cairo/cairo/src/cairo-ft.h: Removed.
- * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-glitz.h: Removed.
- * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
- * platform/cairo/cairo/src/cairo-gstate.c: Removed.
- * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
- * platform/cairo/cairo/src/cairo-hash.c: Removed.
- * platform/cairo/cairo/src/cairo-hull.c: Removed.
- * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-matrix.c: Removed.
- * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
- * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
- * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
- * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
- * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
- * platform/cairo/cairo/src/cairo-path-data.c: Removed.
- * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
- * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
- * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
- * platform/cairo/cairo/src/cairo-path.c: Removed.
- * platform/cairo/cairo/src/cairo-pattern.c: Removed.
- * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-pdf.h: Removed.
- * platform/cairo/cairo/src/cairo-pen.c: Removed.
- * platform/cairo/cairo/src/cairo-platform.h: Removed.
- * platform/cairo/cairo/src/cairo-png.c: Removed.
- * platform/cairo/cairo/src/cairo-polygon.c: Removed.
- * platform/cairo/cairo/src/cairo-private.h: Removed.
- * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-ps.h: Removed.
- * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
- * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-quartz.h: Removed.
- * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
- * platform/cairo/cairo/src/cairo-region.c: Removed.
- * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
- * platform/cairo/cairo/src/cairo-slope.c: Removed.
- * platform/cairo/cairo/src/cairo-spline.c: Removed.
- * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
- * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
- * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
- * platform/cairo/cairo/src/cairo-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-svg.h: Removed.
- * platform/cairo/cairo/src/cairo-traps.c: Removed.
- * platform/cairo/cairo/src/cairo-unicode.c: Removed.
- * platform/cairo/cairo/src/cairo-wideint.c: Removed.
- * platform/cairo/cairo/src/cairo-wideint.h: Removed.
- * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
- * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
- * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-win32.h: Removed.
- * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
- * platform/cairo/cairo/src/cairo-xcb.h: Removed.
- * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
- * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
- * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
- * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
- * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
- * platform/cairo/cairo/src/cairo-xlib.h: Removed.
- * platform/cairo/cairo/src/cairo.c: Removed.
- * platform/cairo/cairo/src/cairo.h: Removed.
- * platform/cairo/cairo/src/cairoint.h: Removed.
- * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
- * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
- * platform/cairo/cairo/src/test-meta-surface.c: Removed.
- * platform/cairo/cairo/src/test-meta-surface.h: Removed.
- * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
- * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
- * platform/cairo/pixman/AUTHORS: Removed.
- * platform/cairo/pixman/COPYING: Removed.
- * platform/cairo/pixman/README: Removed.
- * platform/cairo/pixman/src/Makefile.in: Removed.
- * platform/cairo/pixman/src/fbcompose.c: Removed.
- * platform/cairo/pixman/src/fbedge.c: Removed.
- * platform/cairo/pixman/src/fbedgeimp.h: Removed.
- * platform/cairo/pixman/src/fbmmx.c: Removed.
- * platform/cairo/pixman/src/fbmmx.h: Removed.
- * platform/cairo/pixman/src/fbpict.c: Removed.
- * platform/cairo/pixman/src/fbpict.h: Removed.
- * platform/cairo/pixman/src/fbtrap.c: Removed.
- * platform/cairo/pixman/src/icblt.c: Removed.
- * platform/cairo/pixman/src/icbltone.c: Removed.
- * platform/cairo/pixman/src/iccolor.c: Removed.
- * platform/cairo/pixman/src/icformat.c: Removed.
- * platform/cairo/pixman/src/icimage.c: Removed.
- * platform/cairo/pixman/src/icimage.h: Removed.
- * platform/cairo/pixman/src/icint.h: Removed.
- * platform/cairo/pixman/src/icpixels.c: Removed.
- * platform/cairo/pixman/src/icrect.c: Removed.
- * platform/cairo/pixman/src/icrop.h: Removed.
- * platform/cairo/pixman/src/icstipple.c: Removed.
- * platform/cairo/pixman/src/ictransform.c: Removed.
- * platform/cairo/pixman/src/ictrap.c: Removed.
- * platform/cairo/pixman/src/ictri.c: Removed.
- * platform/cairo/pixman/src/icutil.c: Removed.
- * platform/cairo/pixman/src/pixman-remap.h: Removed.
- * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
- * platform/cairo/pixman/src/pixman.h: Removed.
- * platform/cairo/pixman/src/pixregion.c: Removed.
- * platform/cairo/pixman/src/pixregionint.h: Removed.
- * platform/cairo/pixman/src/renderedge.c: Removed.
- * platform/cairo/pixman/src/renderedge.h: Removed.
- * platform/cairo/pixman/src/slim_internal.h: Removed.
- * platform/cairo/rgb24-hacks.txt: Removed.
- * platform/cairo/scale-removal.txt: Removed.
- * platform/cg/AffineTransformCG.cpp: Removed.
- * platform/cg/FloatPointCG.cpp: Removed.
- * platform/cg/FloatRectCG.cpp: Removed.
- * platform/cg/FloatSizeCG.cpp: Removed.
- * platform/cg/GraphicsContextCG.cpp: Removed.
- * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
- * platform/cg/ImageCG.cpp: Removed.
- * platform/cg/ImageSourceCG.cpp: Removed.
- * platform/cg/IntPointCG.cpp: Removed.
- * platform/cg/IntRectCG.cpp: Removed.
- * platform/cg/IntSizeCG.cpp: Removed.
- * platform/cg/PDFDocumentImage.cpp: Removed.
- * platform/cg/PDFDocumentImage.h: Removed.
- * platform/cg/PathCG.cpp: Removed.
- * platform/gdk/ImageGdk.cpp: Removed.
- * platform/mac/ColorMac.mm: Removed.
- * platform/mac/FloatPointMac.mm: Removed.
- * platform/mac/FloatRectMac.mm: Removed.
- * platform/mac/FloatSizeMac.mm: Removed.
- * platform/mac/GraphicsContextMac.mm:
- * platform/mac/IconMac.mm: Removed.
- * platform/mac/ImageMac.mm: Removed.
- * platform/mac/IntPointMac.mm: Removed.
- * platform/mac/IntRectMac.mm: Removed.
- * platform/mac/IntSizeMac.mm: Removed.
- * platform/qt/AffineTransformQt.cpp: Removed.
- * platform/qt/ColorQt.cpp: Removed.
- * platform/qt/FloatPointQt.cpp: Removed.
- * platform/qt/FloatRectQt.cpp: Removed.
- * platform/qt/IconQt.cpp: Removed.
- * platform/qt/ImageQt.cpp: Removed.
- * platform/qt/ImageSourceQt.cpp: Removed.
- * platform/qt/IntPointQt.cpp: Removed.
- * platform/qt/IntRectQt.cpp: Removed.
- * platform/qt/IntSizeQt.cpp: Removed.
- * platform/qt/PathQt.cpp: Removed.
- * platform/win/ImageWin.cpp: Removed.
- * platform/win/IntPointWin.cpp: Removed.
- * platform/win/IntRectWin.cpp: Removed.
- * platform/win/IntSizeWin.cpp: Removed.
- 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by hyatt.
- A layout test was added when this bug was fixed, so none needed now.
-
- Cleanup after:
- REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
- http://bugs.webkit.org/show_bug.cgi?id=11570
-
- * rendering/RenderStyle.h:
- (WebCore::RenderStyle::isSpace): Removed.
- * rendering/RenderText.cpp:
- (WebCore::isSpace): Added.
- (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
- 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by mitz.
-
- REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
- http://bugs.webkit.org/show_bug.cgi?id=11570
- * rendering/RenderStyle.h:
- (WebCore::RenderStyle::isSpace): Added.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
- treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
- 2006-11-10 Zalan Bujtas <zalan.bujtas@nokia.com>
- Reviewed by Maciej.
- Added basic types for symbian platform.
- http://bugs.webkit.org/show_bug.cgi?id=11540
- * config.h:
- * platform/AtomicString.h:
- (WebCore::AtomicString::AtomicString):
- (WebCore::AtomicString::operator TPtrC):
- * platform/DeprecatedString.cpp:
- (WebCore::initializeHandleNodeBlock):
- * platform/DeprecatedString.h: char _internalBuffer has to be in front of
- the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
- bitfields and breaks byte aligment
- * platform/FloatPoint.h:
- * platform/FloatRect.h:
- * platform/IntPoint.h:
- * platform/IntRect.h:
- * platform/IntSize.h:
- * platform/PlatformString.h:
- (WebCore::String::operator TPtrC):
- (WebCore::String::des):
- * platform/StringImpl.h:
- * platform/symbian/DeprecatedStringSymbian.cpp: Added.
- (WebCore::DeprecatedString::setBufferFromDes):
- (WebCore::DeprecatedString::fromDes):
- (WebCore::DeprecatedString::des):
- (WebCore::DeprecatedString::des8):
- * platform/symbian/FloatPointSymbian.cpp: Added.
- (WebCore::FloatPoint::FloatPoint):
- (WebCore::FloatPoint::operator TPoint):
- * platform/symbian/FloatRectSymbian.cpp: Added.
- (WebCore::FloatRect::FloatRect):
- (WebCore::FloatRect::operator TRect):
- (WebCore::FloatRect::rect):
- * platform/symbian/IntPointSymbian.cpp: Added.
- (WebCore::IntPoint::IntPoint):
- (WebCore::IntPoint::operator TPoint):
- * platform/symbian/IntRectSymbian.cpp: Added.
- (WebCore::IntRect::IntRect):
- (WebCore::IntRect::operator TRect):
- (WebCore::IntRect::Rect):
- * platform/symbian/IntSizeSymbian.cpp: Added.
- (WebCore::IntSize::IntSize):
- (WebCore::IntSize::operator TSize):
- * platform/symbian/StringImplSymbian.cpp: Added.
- (WebCore::StringImpl::StringImpl):
- (WebCore::StringImpl::des):
- * platform/symbian/StringSymbian.cpp: Added.
- (WebCore::String::String):
- 2006-11-10 Zack Rusin <zack@kde.org>
- Reviewed by Anders.
- Adjust to the changes Brady made in the Qt code.
- * loader/qt/FrameLoaderClientQt.cpp:
- (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
- * loader/qt/FrameLoaderClientQt.h:
- 2006-11-10 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4069359>
- Deleting hyperlink text, then typing uses link typing style but loses the link itself
-
- The removed anchor element needs to stick around temporarily, in the same way
- that the typing style hangs off the caret until the user moves it. Also text
- insertion around anchors didn't match TextEdit.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
- (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
- * editing/DeleteSelectionCommand.h:
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::apply): Clear the removed anchor after any top level
- editing command that doesn't preserve the typing style (matches TextEdit).
- * editing/Editor.cpp:
- (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call
- setSelection with a message telling it to clear the typing style
- (and the saved anchor) here. Save/restore the saved anchor because of this.
- * editing/Editor.h:
- (WebCore::Editor::removedAnchor): Getter.
- (WebCore::Editor::setRemovedAnchor): Setter.
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
- if one exists.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
- we make a selection change that clears the typing style.
- (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
- * editing/htmlediting.cpp:
- (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
- made some changes to match TextEdit's behavior. First, insert content
- inside the anchor when the caret is after it, unless the caret is at the
- end of the document, or if the caret is before it and at the start of a
- paragraph.
- === Safari-521.30 ===
- 2006-11-10 Timothy Hatcher <timothy@apple.com>
- Reviewed by Hyatt.
- Check for BHIDDEN in isVisible() also.
- * rendering/RenderStyle.h:
- (WebCore::BorderValue::isVisible):
- 2006-11-10 Timothy Hatcher <timothy@apple.com>
- Reviewed by Adam.
- <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
- Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
- * editing/DeleteButtonController.cpp:
- (WebCore::isDeletableElement):
- * rendering/RenderStyle.h:
- (WebCore::BorderValue::isVisible):
- 2006-11-10 Adam Roben <aroben@apple.com>
- Rubberstamped by Anders.
- Back out some accidentally-committed changes from r17711.
- * page/Frame.cpp:
- (WebCore::Frame::command):
- (WebCore::FramePrivate::FramePrivate):
- * page/Frame.h:
- * page/FramePrivate.h:
- 2006-11-10 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- Add more commands, make toggleBold and toggleItalic executable commands.
- * WebCore.exp:
- * editing/Editor.cpp:
- (WebCore::execCopy):
- (WebCore::execCut):
- (WebCore::execDelete):
- (WebCore::execForwardDelete):
- (WebCore::execPaste):
- (WebCore::execSelectAll):
- (WebCore::execToggleBold):
- (WebCore::execToggleItalic):
- (WebCore::enabled):
- (WebCore::canPaste):
- (WebCore::hasEditableSelection):
- (WebCore::hasEditableRangeSelection):
- (WebCore::hasRangeSelection):
- (WebCore::hasRichlyEditableSelection):
- (WebCore::CommandEntry::):
- * editing/Editor.h:
- 2006-11-10 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej, Geoff.
- Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
- the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
- * WebCore.exp:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * editing/Editor.cpp:
- (WebCore::execMoveBackward):
- (WebCore::execMoveBackwardAndModifySelection):
- (WebCore::execMoveDown):
- (WebCore::execMoveDownAndModifySelection):
- (WebCore::execMoveForward):
- (WebCore::execMoveForwardAndModifySelection):
- (WebCore::execMoveLeft):
- (WebCore::execMoveLeftAndModifySelection):
- (WebCore::execMoveRight):
- (WebCore::execMoveRightAndModifySelection):
- (WebCore::execMoveToBeginningOfDocument):
- (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
- (WebCore::execMoveToBeginningOfSentence):
- (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
- (WebCore::execMoveToBeginningOfLine):
- (WebCore::execMoveToBeginningOfLineAndModifySelection):
- (WebCore::execMoveToBeginningOfParagraph):
- (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
- (WebCore::execMoveToEndOfDocument):
- (WebCore::execMoveToEndOfDocumentAndModifySelection):
- (WebCore::execMoveToEndOfSentence):
- (WebCore::execMoveToEndOfSentenceAndModifySelection):
- (WebCore::execMoveToEndOfLine):
- (WebCore::execMoveToEndOfLineAndModifySelection):
- (WebCore::execMoveToEndOfParagraph):
- (WebCore::execMoveToEndOfParagraphAndModifySelection):
- (WebCore::execMoveParagraphBackwardAndModifySelection):
- (WebCore::execMoveParagraphForwardAndModifySelection):
- (WebCore::execMoveUp):
- (WebCore::execMoveUpAndModifySelection):
- (WebCore::execMoveWordBackward):
- (WebCore::execMoveWordBackwardAndModifySelection):
- (WebCore::execMoveWordForward):
- (WebCore::execMoveWordForwardAndModifySelection):
- (WebCore::execMoveWordLeft):
- (WebCore::execMoveWordLeftAndModifySelection):
- (WebCore::execMoveWordRight):
- (WebCore::execMoveWordRightAndModifySelection):
- (WebCore::enabledAnySelection):
- (WebCore::createCommandMap):
- (WebCore::CommandEntry::):
- (WebCore::Editor::execCommand):
- * editing/Editor.h:
- 2006-11-10 Brady Eidson <beidson@apple.com>
- Reviewed by Darin
- Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
- * loader/FrameLoaderClient.h:
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::sharedIconDatabase):
- (WebCore::IconDatabase::~IconDatabase):
- * loader/icon/IconDatabase.h:
- (WebCore::IconDatabase::isPrivateBrowsingEnabled):
- (WebCore::IconDatabase::enabled):
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::finishLoading):
- * loader/mac/FrameLoaderMac.mm:
- 2006-11-10 Zack Rusin <zack@kde.org>
- Reviewed and landed by Anders.
- Adjust platform Qt/KDE code to the recent loader
- changes.
- * CMakeLists.txt:
- * loader/DocumentLoader.h:
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::createEmptyDocument):
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/qt/DocumentLoaderQt.cpp: Added.
- (WebCore::canonicalizedTitle):
- (WebCore::DocumentLoader::DocumentLoader):
- (WebCore::DocumentLoader::frameLoader):
- (WebCore::DocumentLoader::~DocumentLoader):
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::unreachableURL):
- (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
- (WebCore::DocumentLoader::isStopping):
- (WebCore::DocumentLoader::clearErrors):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::setupForReplace):
- (WebCore::DocumentLoader::commitIfReady):
- (WebCore::DocumentLoader::finishedLoading):
- (WebCore::DocumentLoader::setCommitted):
- (WebCore::DocumentLoader::isCommitted):
- (WebCore::DocumentLoader::setLoading):
- (WebCore::DocumentLoader::isLoading):
- (WebCore::DocumentLoader::doesProgressiveLoad):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::updateLoading):
- (WebCore::DocumentLoader::setFrame):
- (WebCore::DocumentLoader::attachToFrame):
- (WebCore::DocumentLoader::detachFromFrame):
- (WebCore::DocumentLoader::prepareForLoadStart):
- (WebCore::DocumentLoader::loadingStartedTime):
- (WebCore::DocumentLoader::setIsClientRedirect):
- (WebCore::DocumentLoader::isClientRedirect):
- (WebCore::DocumentLoader::setPrimaryLoadComplete):
- (WebCore::DocumentLoader::isLoadingInAPISense):
- (WebCore::DocumentLoader::stopRecordingResponses):
- (WebCore::DocumentLoader::title):
- (WebCore::DocumentLoader::triggeringAction):
- (WebCore::DocumentLoader::setTriggeringAction):
- (WebCore::DocumentLoader::setOverrideEncoding):
- (WebCore::DocumentLoader::overrideEncoding):
- (WebCore::DocumentLoader::setTitle):
- (WebCore::DocumentLoader::URLForHistory):
- * loader/qt/FrameLoaderClientQt.cpp: Added.
- (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
- (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
- (WebCore::FrameLoaderClientQt::detachFrameLoader):
- (WebCore::FrameLoaderClientQt::hasWebView):
- (WebCore::FrameLoaderClientQt::hasFrameView):
- (WebCore::FrameLoaderClientQt::hasBackForwardList):
- (WebCore::FrameLoaderClientQt::resetBackForwardList):
- (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
- (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
- (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
- (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
- (WebCore::FrameLoaderClientQt::makeDocumentView):
- (WebCore::FrameLoaderClientQt::makeRepresentation):
- (WebCore::FrameLoaderClientQt::forceLayout):
- (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
- (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
- (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
- (WebCore::FrameLoaderClientQt::updateHistoryForReload):
- (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
- (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
- (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
- (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
- (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
- (WebCore::FrameLoaderClientQt::resetAfterLoadError):
- (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
- (WebCore::FrameLoaderClientQt::willCloseDocument):
- (WebCore::FrameLoaderClientQt::detachedFromParent1):
- (WebCore::FrameLoaderClientQt::detachedFromParent2):
- (WebCore::FrameLoaderClientQt::detachedFromParent3):
- (WebCore::FrameLoaderClientQt::detachedFromParent4):
- (WebCore::FrameLoaderClientQt::loadedFromPageCache):
- (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
- (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
- (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
- (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
- (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
- (WebCore::FrameLoaderClientQt::dispatchWillClose):
- (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
- (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
- (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
- (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
- (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
- (WebCore::FrameLoaderClientQt::dispatchShow):
- (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
- (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
- (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
- (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
- (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
- (WebCore::FrameLoaderClientQt::revertToProvisionalState):
- (WebCore::FrameLoaderClientQt::clearUnarchivingState):
- (WebCore::FrameLoaderClientQt::progressStarted):
- (WebCore::FrameLoaderClientQt::progressCompleted):
- (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
- (WebCore::FrameLoaderClientQt::willChangeTitle):
- (WebCore::FrameLoaderClientQt::didChangeTitle):
- (WebCore::FrameLoaderClientQt::finishedLoading):
- (WebCore::FrameLoaderClientQt::finalSetupForReplace):
- (WebCore::FrameLoaderClientQt::setDefersLoading):
- (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
- (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
- (WebCore::FrameLoaderClientQt::clearArchivedResources):
- (WebCore::FrameLoaderClientQt::canShowMIMEType):
- (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
- (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoaderClientQt::frameLoadCompleted):
- (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
- (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
- (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
- (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
- (WebCore::FrameLoaderClientQt::didFinishLoad):
- (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
- (WebCore::FrameLoaderClientQt::setTitle):
- (WebCore::FrameLoaderClientQt::userAgent):
- * loader/qt/FrameLoaderClientQt.h: Added.
- * loader/qt/FrameLoaderQt.cpp:
- (WebCore::FrameLoader::submitForm):
- (WebCore::FrameLoader::overrideMediaType):
- (WebCore::FrameLoader::getHistoryLength):
- (WebCore::FrameLoader::referrer):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::goBackOrForward):
- (WebCore::FrameLoader::historyURL):
- (WebCore::FrameLoader::didFirstLayout):
- (WebCore::FrameLoader::canGoBackOrForward):
- (WebCore::FrameLoader::partClearedInBegin):
- (WebCore::FrameLoader::saveDocumentState):
- (WebCore::FrameLoader::restoreDocumentState):
- (WebCore::FrameLoader::didChangeTitle):
- (WebCore::FrameLoader::redirectDataToPlugin):
- (WebCore::PolicyCheck::PolicyCheck):
- (WebCore::PolicyCheck::clear):
- (WebCore::PolicyCheck::set):
- (WebCore::PolicyCheck::call):
- (WebCore::PolicyCheck::clearRequest):
- * loader/qt/NavigationActionQt.cpp: Added.
- (WebCore::navigationType):
- (WebCore::NavigationAction::NavigationAction):
- * loader/qt/ResourceLoaderQt.cpp: Added.
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::setDefersLoading):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::loadsBlocked):
- * platform/MimeTypeRegistry.cpp:
- (WebCore::initialiseSupportedImageMIMETypes):
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::slotResult):
- (WebCore::ResourceHandleManager::cancel):
- * platform/qt/ChromeClientQt.cpp: Added.
- (WebCore::rootWindowForFrame):
- (WebCore::ChromeClientQt::ChromeClientQt):
- (WebCore::ChromeClientQt::~ChromeClientQt):
- (WebCore::ChromeClientQt::setWindowRect):
- (WebCore::ChromeClientQt::windowRect):
- (WebCore::ChromeClientQt::pageRect):
- (WebCore::ChromeClientQt::scaleFactor):
- (WebCore::ChromeClientQt::focus):
- (WebCore::ChromeClientQt::unfocus):
- (WebCore::ChromeClientQt::createWindow):
- (WebCore::ChromeClientQt::createModalDialog):
- (WebCore::ChromeClientQt::show):
- (WebCore::ChromeClientQt::canRunModal):
- (WebCore::ChromeClientQt::runModal):
- (WebCore::ChromeClientQt::setToolbarsVisible):
- (WebCore::ChromeClientQt::toolbarsVisible):
- (WebCore::ChromeClientQt::setStatusbarVisible):
- (WebCore::ChromeClientQt::statusbarVisible):
- (WebCore::ChromeClientQt::setScrollbarsVisible):
- (WebCore::ChromeClientQt::scrollbarsVisible):
- (WebCore::ChromeClientQt::setMenubarVisible):
- (WebCore::ChromeClientQt::menubarVisible):
- (WebCore::ChromeClientQt::setResizable):
- * platform/qt/ChromeClientQt.h: Added.
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::shouldBeginEditing):
- (WebCore::EditorClientQt::shouldEndEditing):
- (WebCore::EditorClientQt::shouldApplyStyle):
- (WebCore::EditorClientQt::didBeginEditing):
- (WebCore::EditorClientQt::respondToChangedContents):
- (WebCore::EditorClientQt::didEndEditing):
- * platform/qt/EditorClientQt.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::~FrameQt):
- (WebCore::FrameQt::keyEvent):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::didReceiveData):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/ImageQt.cpp:
- * platform/qt/MimeTypeRegistryQt.cpp: Added.
- (WebCore::getMIMETypeForUTI):
- (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
- * platform/qt/PageQt.cpp:
- * platform/qt/PlatformKeyboardEventQt.cpp:
- (WebCore::keyIdentifierForQtKeyCode):
- * platform/qt/ScreenQt.cpp:
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::TextField::TextField):
- (WebCore::screenDepth):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (WebCore::screenRect):
- (WebCore::screenAvailableRect):
- 2006-11-10 Brady Eidson <beidson@apple.com>
- Reviewed by Mitz
- http://bugs.webkit.org/show_bug.cgi?id=11554
- Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
- in case the icon load fails after some data has been received.
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
- on error. Also, as a loader re-factoring sanity check, added an assertion
- (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon
- is already committed to the DB. Skip doing that step twice.
- 2006-11-09 Oliver Hunt <oliver@apple.com>
- Reviewed by Brady.
- Pulled MIME type handling out of WebFrameBridge and added
- a general C++ class to store/query MIME info
- Added an Obj-C bridge to provide WebKit with access to the
- MimeTypeRegistry for non-Obj-C++ classes.
-
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
- * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
- (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
- (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
- (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
- (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
- (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
- * platform/Image.cpp:
- (WebCore::Image::supportsType):
- * platform/Image.h:
- * platform/MimeTypeRegistry.cpp: Added.
- (WebCore::initialiseSupportedImageMIMETypes):
- (WebCore::initialiseSupportedNonImageMimeTypes):
- (WebCore::initialiseMimeTypeRegistry):
- (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
- (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
- (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
- (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
- (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
- (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
- * platform/MimeTypeRegistry.h: Added.
- * platform/mac/ImageMac.mm:
- * platform/mac/MimeTypeRegistryMac.mm: Added.
- (WebCore::getMIMETypeForUTI):
- (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
- 2006-11-09 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
- for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
- for you and use vsnprintf.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::isSafeScript):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseColorFromValue):
- * dom/StyledElement.cpp:
- (WebCore::StyledElement::addCSSColor):
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::handleError):
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGPaint):
- (WebCore::CSSParser::parseSVGColor):
- * ksvg2/svg/SVGPathSegArc.h:
- (WebCore::SVGPathSegArcAbs::toString):
- (WebCore::SVGPathSegArcRel::toString):
- * ksvg2/svg/SVGPathSegCurvetoCubic.h:
- (WebCore::SVGPathSegCurvetoCubicAbs::toString):
- (WebCore::SVGPathSegCurvetoCubicRel::toString):
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
- (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
- (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
- (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
- (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
- (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
- (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
- * ksvg2/svg/SVGPathSegLineto.h:
- (WebCore::SVGPathSegLinetoAbs::toString):
- (WebCore::SVGPathSegLinetoRel::toString):
- * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
- (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
- (WebCore::SVGPathSegLinetoHorizontalRel::toString):
- * ksvg2/svg/SVGPathSegLinetoVertical.h:
- (WebCore::SVGPathSegLinetoVerticalAbs::toString):
- (WebCore::SVGPathSegLinetoVerticalRel::toString):
- * ksvg2/svg/SVGPathSegMoveto.h:
- (WebCore::SVGPathSegMovetoAbs::toString):
- (WebCore::SVGPathSegMovetoRel::toString):
- * ksvg2/svg/SVGPolyElement.cpp:
- (WebCore::SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGUseElement.cpp:
- (WebCore::SVGUseElement::closeRenderer):
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
- * loader/icon/SQLDatabase.cpp:
- (WebCore::SQLDatabase::setSynchronous):
- * platform/Color.cpp:
- (WebCore::Color::name):
- * platform/DeprecatedString.cpp:
- (WebCore::DeprecatedString::setNum):
- (WebCore::DeprecatedString::format):
- * platform/DeprecatedString.h:
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::format):
- (WebCore::String::number):
- * platform/mac/KeyEventMac.mm:
- (WebCore::keyIdentifierForKeyEvent):
- * platform/win/KeyEventWin.cpp:
- (WebCore::keyIdentifierForWindowsKeyCode):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::calcMinMaxWidth):
- 2006-11-09 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - fixed "Regression: Can't log into gmail.com"
- - fixed "iBench doesn't report results - tests run but no number is recorded"
-
- * platform/network/cf/FormDataStreamCFNet.cpp:
- (WebCore::setHTTPBody): Removed extra ! character.
- 2006-11-09 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in
- WebCore::RenderBlock::skipWhitespace
- Note that this will still crash on Debug builds because it will hit
- an assertion failure in editing. (One of the reasons there is no
- layout test along with this fix.) There is definitely some editing
- wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
- id=10144 for updates on the assertion failure bug.
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::childRemoved): It is possible for a
- prevRootBox and its prevRootBox to share a lineBreakObj. So instead
- of just clearing the lineBreakObj of the prevRootBox, cycle through
- all prevRootBoxs with the same lineBreakObj.
- 2006-11-09 Adam Roben <aroben@apple.com>
- Reviewed by Geoff.
- Fix the change in behavior I caused in r17680 with my build fix.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::maxTopMargin):
- (WebCore::RenderObject::maxBottomMargin):
- 2006-11-09 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam, Oliver.
- Move more functions to Editor.
- * bridge/EditorClient.h:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.h:
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::apply):
- (WebCore::EditCommand::unapply):
- (WebCore::EditCommand::reapply):
- * editing/Editor.cpp:
- (WebCore::Editor::respondToChangedContents):
- (WebCore::dispatchEditableContentChangedEvents):
- (WebCore::Editor::appliedEditing):
- (WebCore::Editor::unappliedEditing):
- (WebCore::Editor::reappliedEditing):
- * editing/Editor.h:
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::typingAddedToOpenCommand):
- * page/Frame.cpp:
- * page/Frame.h:
- 2006-11-09 Darin Adler <darin@apple.com>
- * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
- 2006-11-09 Alice Liu <alice.liu@apple.com>
- Reviewed by Beth Dakin.
- Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
- All existing layout tests pass
- * html/HTMLTableElement.cpp:
- (WebCore::HTMLTableElement::deleteRow):
- check lastSection before deleting row
- 2006-11-09 Darin Adler <darin@apple.com>
- - improved version of last night's build fix (should not do using namespace in a header)
- * rendering/RenderObject.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::maxTopMargin):
- (WebCore::RenderObject::maxBottomMargin):
- 2006-11-08 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Geoff.
-
- - added ResourceError class and didFailWithError client method
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::didFailWithError):
- (WebCore::IconLoader::didFinishLoading):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::didFailWithError):
- * loader/loader.h:
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * platform/cf/RetainPtr.h:
- (WebCore::):
- (WebCore::adoptCFReference):
- (WebCore::RetainPtr::RetainPtr):
- (WebCore::::adopt):
- * platform/network/ResourceError.cpp: Added.
- * platform/network/ResourceError.h: Added.
- (WebCore::ResourceError::ResourceError):
- (WebCore::ResourceError::domain):
- (WebCore::ResourceError::errorCode):
- (WebCore::ResourceError::failingURL):
- (WebCore::ResourceError::localizedDescription):
- (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
- * platform/network/ResourceHandle.cpp:
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::didFailWithError):
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::didFail):
- (WebCore::ResourceHandle::cancel):
- * platform/network/mac/ResourceErrorMac.mm: Added.
- (-[NSError WebCore]):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::reportError):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::didFailWithError):
- (WebCore::XMLHttpRequest::didFinishLoading):
- * xml/xmlhttprequest.h:
- 2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Maciej.
- Linux\Gdk fixes.
- * platform/gdk/ChromeClientGdk.h:
- (WebCore::ChromeClientGdk::~ChromeClientGdk):
- * platform/gdk/CursorGdk.cpp:
- (WebCore::Cursor::Cursor):
- (WebCore::moveCursor):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::FrameGdk):
- (WebCore::FrameGdk::submitForm):
- (WebCore::FrameGdk::urlSelected):
- * platform/gdk/PageGdk.cpp:
- * platform/gdk/ScreenClientGdk.h: Added.
- (WebCore::ScreenClientGdk::~ScreenClientGdk):
- * platform/gdk/ScreenGdk.cpp:
- (WebCore::ScreenClientGdk::depth):
- (WebCore::ScreenClientGdk::depthPerComponent):
- (WebCore::ScreenClientGdk::isMonochrome):
- (WebCore::ScreenClientGdk::rect):
- (WebCore::ScreenClientGdk::usableRect):
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::historyURL):
- (ChromeClientGdk::windowRect):
- (ChromeClientGdk::setWindowRect):
- (ChromeClientGdk::pageRect):
- (ChromeClientGdk::scaleFactor):
- (ChromeClientGdk::focus):
- (ChromeClientGdk::unfocus):
- (ChromeClientGdk::createWindow):
- (ChromeClientGdk::createModalDialog):
- (ChromeClientGdk::show):
- (ChromeClientGdk::canRunModal):
- (ChromeClientGdk::runModal):
- (ChromeClientGdk::setToolbarsVisible):
- (ChromeClientGdk::toolbarsVisible):
- (ChromeClientGdk::setStatusbarVisible):
- (ChromeClientGdk::statusbarVisible):
- (ChromeClientGdk::setScrollbarsVisible):
- (ChromeClientGdk::scrollbarsVisible):
- (ChromeClientGdk::setMenubarVisible):
- (ChromeClientGdk::menubarVisible):
- (ChromeClientGdk::setResizable):
- * platform/network/ResourceHandleInternal.h:
- (WebCore::ResourceHandleInternal::client):
- * platform/network/gdk/ResourceHandleManager.cpp:
- (WebCore::writeCallback):
- (WebCore::ResourceHandleManager::downloadTimerCallback):
- (WebCore::ResourceHandleManager::remove):
- 2006-11-08 Adam Roben <aroben@apple.com>
- Build fix.
- * rendering/RenderObject.h:
- (WebCore::RenderObject::maxTopMargin):
- (WebCore::RenderObject::maxBottomMargin):
- 2006-11-08 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Anders Carlsson.
- Made Screen a good platform citizen by removing its reference to Page. This
- made a class unnecessary, so all screen fuctions are stand-alone now.
- * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
- when computing the screen's available dimensions.
- 2006-11-08 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
- Cleanup RenderObject
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::operator delete):
- (WebCore::RenderObject::createObject):
- (WebCore::RenderObjectCounter::~RenderObjectCounter):
- (WebCore::RenderObject::RenderObject):
- (WebCore::RenderObject::isDescendantOf):
- (WebCore::RenderObject::isRoot):
- (WebCore::RenderObject::addChild):
- (WebCore::RenderObject::removeChildNode):
- (WebCore::RenderObject::removeChild):
- (WebCore::RenderObject::appendChildNode):
- (WebCore::RenderObject::insertChildNode):
- (WebCore::RenderObject::nextInPreOrder):
- (WebCore::RenderObject::nextInPreOrderAfterChildren):
- (WebCore::RenderObject::previousInPreOrder):
- (WebCore::RenderObject::isEditable):
- (WebCore::RenderObject::nextEditable):
- (WebCore::RenderObject::previousEditable):
- (WebCore::RenderObject::firstLeafChild):
- (WebCore::RenderObject::lastLeafChild):
- (WebCore::RenderObject::addLayers):
- (WebCore::RenderObject::removeLayers):
- (WebCore::RenderObject::moveLayers):
- (WebCore::RenderObject::findNextLayer):
- (WebCore::RenderObject::enclosingLayer):
- (WebCore::RenderObject::updateFirstLetter):
- (WebCore::RenderObject::offsetParent):
- (WebCore::RenderObject::scroll):
- (WebCore::RenderObject::hasStaticX):
- (WebCore::RenderObject::setNeedsLayout):
- (WebCore::RenderObject::setChildNeedsLayout):
- (WebCore::RenderObject::markContainingBlocksForLayout):
- (WebCore::RenderObject::containingBlock):
- (WebCore::RenderObject::containingBlockWidth):
- (WebCore::RenderObject::containingBlockHeight):
- (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
- (WebCore::RenderObject::drawBorderArc):
- (WebCore::RenderObject::drawBorder):
- (WebCore::RenderObject::paintBorderImage):
- (WebCore::RenderObject::paintBorder):
- (WebCore::RenderObject::absoluteRects):
- (WebCore::RenderObject::addPDFURLRect):
- (WebCore::RenderObject::addFocusRingRects):
- (WebCore::RenderObject::paintOutline):
- (WebCore::RenderObject::repaint):
- (WebCore::RenderObject::repaintRectangle):
- (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
- (WebCore::RenderObject::repaintObjectsBeforeLayout):
- (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
- (WebCore::RenderObject::information):
- (WebCore::RenderObject::dump):
- (WebCore::selectStartNode):
- (WebCore::RenderObject::shouldSelect):
- (WebCore::RenderObject::draggableNode):
- (WebCore::RenderObject::createAnonymousBlock):
- (WebCore::RenderObject::handleDynamicFloatPositionChange):
- (WebCore::RenderObject::setStyle):
- (WebCore::RenderObject::setStyleInternal):
- (WebCore::RenderObject::updateBackgroundImages):
- (WebCore::RenderObject::absolutePosition):
- (WebCore::RenderObject::caretRect):
- (WebCore::RenderObject::paddingTop):
- (WebCore::RenderObject::paddingBottom):
- (WebCore::RenderObject::paddingLeft):
- (WebCore::RenderObject::paddingRight):
- (WebCore::RenderObject::tabWidth):
- (WebCore::RenderObject::container):
- (WebCore::RenderObject::removeFromObjectLists):
- (WebCore::RenderObject::destroy):
- (WebCore::RenderObject::arenaDelete):
- (WebCore::RenderObject::hitTest):
- (WebCore::RenderObject::setInnerNode):
- (WebCore::RenderObject::nodeAtPoint):
- (WebCore::RenderObject::verticalPositionHint):
- (WebCore::RenderObject::getVerticalPosition):
- (WebCore::RenderObject::lineHeight):
- (WebCore::RenderObject::invalidateVerticalPositions):
- (WebCore::RenderObject::recalcMinMaxWidths):
- (WebCore::RenderObject::scheduleRelayout):
- (WebCore::RenderObject::setInlineBoxWrapper):
- (WebCore::RenderObject::firstLineStyle):
- (WebCore::RenderObject::getPseudoStyle):
- (WebCore::RenderObject::getTextDecorationColors):
- (WebCore::RenderObject::addDashboardRegions):
- (WebCore::RenderObject::collectDashboardRegions):
- (WebCore::RenderObject::avoidsFloats):
- (WebCore::RenderObject::findCounter):
- (WebCore::RenderObject::backslashAsCurrencySymbol):
- (WebCore::RenderObject::imageChanged):
- (WebCore::RenderObject::previousOffset):
- (WebCore::RenderObject::nextOffset):
- (WebCore::RenderObject::inlineBox):
- * rendering/RenderObject.h:
- (WebCore::):
- (WebCore::RenderObject::renderName):
- (WebCore::RenderObject::parent):
- (WebCore::RenderObject::previousSibling):
- (WebCore::RenderObject::nextSibling):
- (WebCore::RenderObject::firstChild):
- (WebCore::RenderObject::lastChild):
- (WebCore::RenderObject::getOverflowClipRect):
- (WebCore::RenderObject::getClipRect):
- (WebCore::RenderObject::getBaselineOfFirstLineBox):
- (WebCore::RenderObject::setEdited):
- (WebCore::RenderObject::setStaticX):
- (WebCore::RenderObject::setStaticY):
- (WebCore::RenderObject::setPreviousSibling):
- (WebCore::RenderObject::setNextSibling):
- (WebCore::RenderObject::setParent):
- (WebCore::RenderObject::isInlineBlockOrInlineTable):
- (WebCore::RenderObject::isRenderView):
- (WebCore::RenderObject::childrenInline):
- (WebCore::RenderObject::setChildrenInline):
- (WebCore::RenderObject::isAnonymousBlock):
- (WebCore::RenderObject::isDragging):
- (WebCore::RenderObject::needsLayout):
- (WebCore::RenderObject::setMinMaxKnown):
- (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
- (WebCore::RenderObject::setPositioned):
- (WebCore::RenderObject::setRelPositioned):
- (WebCore::RenderObject::setFloating):
- (WebCore::RenderObject::setInline):
- (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
- (WebCore::RenderObject::setReplaced):
- (WebCore::RenderObject::PaintInfo::PaintInfo):
- (WebCore::RenderObject::paintBackgroundExtended):
- (WebCore::RenderObject::calcWidth):
- (WebCore::RenderObject::updateFromElement):
- (WebCore::RenderObject::RepaintInfo::RepaintInfo):
- (WebCore::RenderObject::setOverrideSize):
- (WebCore::RenderObject::setPos):
- (WebCore::RenderObject::setWidth):
- (WebCore::RenderObject::setHeight):
- (WebCore::RenderObject::absolutePositionForContent):
- (WebCore::RenderObject::overflowHeight):
- (WebCore::RenderObject::overflowWidth):
- (WebCore::RenderObject::setOverflowHeight):
- (WebCore::RenderObject::setOverflowWidth):
- (WebCore::RenderObject::overflowLeft):
- (WebCore::RenderObject::overflowTop):
- (WebCore::RenderObject::overflowRect):
- (WebCore::RenderObject::stopAutoscroll):
- (WebCore::RenderObject::collapsedMarginTop):
- (WebCore::RenderObject::collapsedMarginBottom):
- (WebCore::RenderObject::maxTopMargin):
- (WebCore::RenderObject::maxBottomMargin):
- (WebCore::RenderObject::):
- (WebCore::RenderObject::setTable):
- (WebCore::RenderObject::isFloatingOrPositioned):
- (WebCore::RenderObject::containsFloat):
- (WebCore::RenderObject::setSelectionState):
- (WebCore::RenderObject::SelectionInfo::SelectionInfo):
- (WebCore::RenderObject::lowestPosition):
- (WebCore::RenderObject::rightmostPosition):
- (WebCore::RenderObject::leftmostPosition):
- (WebCore::RenderObject::calcVerticalMargins):
- (WebCore::RenderObject::font):
- 2006-11-08 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - added event parameters to focus-related functions so we can
- implement the "option-tab to all links" behavior without relying
- on a global "current event" -- also makes it work with DOM events
- * page/Frame.h: Removed unneeded includes. Moved some functions
- that were misplaced into the appropriate sections.
- * page/Frame.cpp:
- (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
- PlatformKeyboardEvent to the DOM keyboard event class.
- (WebCore::Frame::tabsToLinks): Added event parameter.
- (WebCore::Frame::tabsToAllControls): Ditto.
- (WebCore::scanForForm): Fixed code that incorrectly assumes
- that an iframe is an HTMLFrameElement (no longer true since Geoff
- changed the class hierarchy a bit).
- (WebCore::Frame::hitTestResultAtPoint): Ditto.
- * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
- that were misplaced into the appropriate sections.
- * bridge/mac/FrameMac.mm:
- (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
- a PlatformKeyboardEvent.
- (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
- and pass event into next/previousFocusNode.
- (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
- the AppKit current event, if it's a keyboard event. Really just a hack that's
- needed to preserve some code we can remove once we deal with the last NSView-
- based form control.
- (WebCore::isKeyboardOptionTab): Added.
- (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
- option (alt) key is down.
- (WebCore::FrameMac::tabsToAllControls): Ditto.
- (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
- call resetMultipleFormSubmissionProtection() explicitly instead.
- (WebCore::FrameMac::mouseDown): Ditto.
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
- assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
- changed the class hierarchy a bit).
- (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
- prepareForUserAction() to call resetMultipleFormSubmissionProtection()
- explicitly instead.
- * page/FrameView.h:
- * page/FrameView.cpp:
- (WebCore::FrameView::advanceFocus): Changed function to take an
- event parameter, and decide the direction based on the shift key
- modifier instead of a passed-in boolean.
- * dom/Document.h:
- * dom/Document.cpp:
- (WebCore::Document::nextFocusNode): Added event parameter.
- (WebCore::Document::previousFocusNode): Ditto.
- * dom/Node.h:
- * dom/Node.cpp:
- (WebCore::Node::isKeyboardFocusable): Ditto.
- * html/HTMLAnchorElement.h:
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
- * html/HTMLGenericFormElement.h:
- * html/HTMLGenericFormElement.cpp:
- (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
- * html/HTMLInputElement.h:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
- (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
- * html/HTMLSelectElement.h:
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
- * html/HTMLTextAreaElement.h:
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
- advanceFocus function.
- * platform/TextField.h:
- * platform/mac/TextFieldMac.mm: Removed the non-search field code.
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
- (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
- call to FrameMac::handleKeyboardOptionTabInView, which is no longer
- needed since the default handler in HTMLInputElement takes care of
- option-tab.
- * platform/mac/SliderMac.mm:
- (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
- and pass event into tabsToAllControls.
- (Slider::focusPolicy): Ditto.
- * rendering/RenderLineEdit.cpp:
- (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
- (WebCore::RenderLineEdit::updateFromElement): Ditto.
- 2006-11-08 Brady Eidson <beidson@apple.com>
- Reviewed by Dave Harrison, Oliver, and Darin
- (oh my! where was superkevin on this one?)
- <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
- More "free nil checking" we lost in the transition from ObjC to C++
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
- 2006-11-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- Move more code into editor.
-
- * WebCore.exp:
- * bridge/EditorClient.h:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.h:
- * dom/Document.cpp:
- (WebCore::Document::relinquishesEditingFocus):
- (WebCore::Document::acceptsEditingFocus):
- (WebCore::Document::didBeginEditing):
- (WebCore::Document::didEndEditing):
- * editing/Editor.cpp:
- (WebCore::Editor::indent):
- (WebCore::Editor::outdent):
- * editing/Editor.h:
- * page/Frame.cpp:
- * page/Frame.h:
- 2006-11-08 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Add ability to HitTestResult to ask if the inner non-shared node is
- content editable.
- * WebCore.exp: Export HitTestResult::isContentEditable()
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::isContentEditable):
- * rendering/HitTestResult.h:
- 2006-11-08 Anders Carlsson <acarlsson@apple.com>
- Build fix.
-
- * WebCore.xcodeproj/project.pbxproj:
- Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
- 2006-11-08 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
- <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
- Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
- * bindings/objc/DOM.mm:
- (WebCore::kit):
- (-[DOMNode lineBoxRects]):
- (-[DOMRange boundingBox]):
- (-[DOMRange lineBoxRects]):
- * bindings/objc/DOMPrivate.h:
- * dom/Range.cpp:
- (WebCore::Range::boundingBox):
- (WebCore::Range::addLineBoxRects):
- * dom/Range.h:
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::addLineBoxRects):
- * rendering/RenderContainer.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::addLineBoxRects):
- * rendering/RenderObject.h:
- * rendering/RenderText.cpp:
- (WebCore::RenderText::addLineBoxRects):
- * rendering/RenderText.h:
- 2006-11-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Oliver.
-
- Move methods from the bridge and frame into editor.
-
- * WebCore.exp:
- * bridge/EditorClient.h:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * editing/Editor.cpp:
- (WebCore::Editor::removeFormattingAndStyle):
- (WebCore::Editor::applyStyle):
- (WebCore::Editor::applyParagraphStyle):
- (WebCore::Editor::applyStyleToSelection):
- (WebCore::Editor::applyParagraphStyleToSelection):
- (WebCore::Editor::toggleBold):
- (WebCore::Editor::toggleItalic):
- (WebCore::Editor::selectionStartHasStyle):
- * editing/Editor.h:
- * editing/JSEditor.cpp:
- * page/Frame.cpp:
- * page/Frame.h:
- 2006-11-08 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth.
-
- Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
- be able to dispatch user events even when off-screen, so we have to support
- off-screen windows when handling mouse events.
- * platform/Screen.h:
- * platform/mac/PlatformMouseEventMac.mm:
- (WebCore::globalPoint): Grab the best screen instead of the screen you're
- on, since you might be off-screen.
- * platform/mac/ScreenMac.mm:
- (WebCore::screenForWindow):
- 2006-11-08 Darin Adler <darin@apple.com>
- - fix bug caused by last-minute change to my check-in last night
- that is causing layout tests to hang
- * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
- * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
- a null string into an empty string before calling completeURL.
- 2006-11-08 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- If the request has already been aborted, bail out of didFinishLoading()
- immediately. This prevents state change notifications that aren't
- needed.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::didFinishLoading):
- 2006-11-08 Darin Adler <darin@apple.com>
- - another attempt to fix Qt build
- * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
- 2006-11-08 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - stray bits of my FrameLoader patch that I left out by accident
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
- inside the FrameLoader class.
- (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
- (WebCore::FrameLoader::clear): Stop the redirection timer.
- (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
- entire function in an if statement. Use less DeprecatedString.
- (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
- (WebCore::FrameLoader::scheduleRefresh): Ditto.
- (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
- inside the FrameLoader class.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load): Ditto.
- (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
- 2006-11-07 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Another go at fix for <rdar://problem/4820814> A crash occurs at
- WebCore::HitTestResult::spellingToolTip() when mousing down on
- iframe at www.macsurfer.com
- The fix from yesterday caused a layout test regression which
- exposed an existing bug. The existing bug was that we allowed text
- nodes to stay in the head tag, but other browsers move them to the
- body. The previous fix also caused a performance regression, which
- was seemingly easy to fix by moving the new clause in
- HTMLParser::handleError() to be below the HTMLElement case.
- * html/HTMLDocument.cpp:
- (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to
- be the child of the document.
- * html/HTMLHeadElement.cpp:
- (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
- whitespace text nodes to be children of the head.
- * html/HTMLHeadElement.h:
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::handleError): Error case for comment nodes.
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent): Safety-net null check
- for the original crash.
- 2006-11-07 Darin Adler <darin@apple.com>
- - another attempt to fix Qt build
- * loader/icon/IconLoader.h: Added missing include.
- 2006-11-06 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Tim Hatcher.
-
- Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
-
- None of Screen's responsibilities require up-calls to WebKit or delegates,
- so WebCore can handle it all.
-
- Moved Screen back from page/ to platform/ because it's a platform
- abstraction again.
- Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
- since the two were always used together.
-
- Changed pixel depth queries to query the deepest screen. Darin mentioned
- that it might have been a feature, not a bug, to use the main/menubar screen
- regardless of the screen you were on. For scaling and flipping that's not
- the case, but for querying pixel depth I think it is. You want to know
- about the highest pixel depth your content may display on.
-
- Tests still pass.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * page/Page.cpp:
- (WebCore::Page::Page):
- * page/Page.h:
- * page/Screen.cpp: Removed.
- * page/Screen.h: Removed.
- * page/ScreenClient.h: Removed.
- * platform/mac/PlatformMouseEventMac.mm:
- (WebCore::globalPoint):
- * platform/mac/ScreenMac.mm:
- (WebCore::window):
- (WebCore::bestScreen):
- (WebCore::Screen::depth):
- (WebCore::Screen::depthPerComponent):
- (WebCore::Screen::isMonochrome):
- (WebCore::Screen::rect):
- (WebCore::Screen::usableRect):
- (WebCore::toUserSpace):
- (WebCore::toDeviceSpace):
- 2006-11-07 Darin Adler <darin@apple.com>
- - try to fix Qt build
- * CMakeLists.txt: Updated for some file changes.
- * WebCoreSources.bkl: Ditto.
- 2006-11-07 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - moved loader code from Frame/FrameMac to FrameLoader
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSXSLTProcessor.h:
- * bindings/js/kjs_events.cpp:
- (KJS::JSLazyEventListener::parseCode):
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::putValueProperty):
- * bindings/js/kjs_navigator.cpp:
- (KJS::Navigator::getValueProperty):
- * bindings/js/kjs_proxy.cpp:
- (WebCore::KJSProxy::initScriptIfNeeded):
- * bindings/js/kjs_window.cpp:
- (KJS::Screen::Screen):
- (KJS::createNewWindow):
- (KJS::Window::getValueProperty):
- (KJS::Window::put):
- (KJS::Window::isSafeScript):
- (KJS::WindowFunc::callAsFunction):
- (KJS::ScheduledAction::execute):
- (KJS::Location::getValueProperty):
- (KJS::Location::put):
- (KJS::Location::toString):
- (KJS::LocationFunc::callAsFunction):
- (KJS::History::getValueProperty):
- (KJS::HistoryFunc::callAsFunction):
- * bindings/objc/DOM.mm:
- (+[DOMNode _nodeWith:WebCore::]):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::~FrameMac):
- (WebCore::FrameMac::setView):
- (WebCore::FrameMac::setStatusBarText):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge close]):
- (-[WebCoreFrameBridge addData:]):
- (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
- (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
- (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
- (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
- (-[WebCoreFrameBridge baseURL]):
- (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
- (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
- (-[WebCoreFrameBridge canProvideDocumentSource]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseContent):
- * dom/DOMImplementation.cpp:
- (WebCore::DOMImplementation::createDocument):
- (WebCore::DOMImplementation::createHTMLDocument):
- * dom/DOMImplementation.h:
- * dom/Document.cpp:
- (WebCore::Document::readyState):
- (WebCore::Document::updateTitle):
- (WebCore::Document::open):
- (WebCore::Document::close):
- (WebCore::Document::implicitClose):
- (WebCore::Document::processHttpEquiv):
- (WebCore::Document::referrer):
- (WebCore::Document::finishedParsing):
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet):
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::endElementNs):
- (WebCore::ignorableWhitespaceHandler):
- (WebCore::XMLTokenizer::notifyFinished):
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::rangeFromLocationAndLength):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- * html/HTMLBaseElement.cpp:
- (WebCore::HTMLBaseElement::process):
- * html/HTMLDocument.cpp:
- (WebCore::HTMLDocument::lastModified):
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::formData):
- (WebCore::HTMLFormElement::submit):
- * html/HTMLFrameElementBase.cpp:
- (WebCore::HTMLFrameElementBase::isURLAllowed):
- (WebCore::HTMLFrameElementBase::openURL):
- (WebCore::HTMLFrameElementBase::willRemove):
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::setValueFromRenderer):
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::process):
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::handleError):
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
- * html/HTMLPreElement.idl:
- * html/HTMLScriptElement.cpp:
- (WebCore::HTMLScriptElement::parseMappedAttribute):
- (WebCore::HTMLScriptElement::insertedIntoDocument):
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptExecution):
- (WebCore::HTMLTokenizer::parseTag):
- (WebCore::HTMLTokenizer::write):
- (WebCore::HTMLTokenizer::stopParsing):
- (WebCore::HTMLTokenizer::timerFired):
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::prepareFilter):
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::defaultEventHandler):
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::sendSVGLoadEventIfPossible):
- * loader/DocLoader.cpp:
- (WebCore::DocLoader::setLoadInProgress):
- * loader/FrameLoader.cpp:
- (WebCore::FormSubmission::FormSubmission):
- (WebCore::ScheduledRedirection::):
- (WebCore::ScheduledRedirection::ScheduledRedirection):
- (WebCore::cancelAll):
- (WebCore::getString):
- (WebCore::isBackForwardLoadType):
- (WebCore::numRequests):
- (WebCore::FrameLoader::FrameLoader):
- (WebCore::FrameLoader::~FrameLoader):
- (WebCore::FrameLoader::createWindow):
- (WebCore::FrameLoader::changeLocation):
- (WebCore::FrameLoader::urlSelected):
- (WebCore::FrameLoader::requestFrame):
- (WebCore::FrameLoader::loadSubframe):
- (WebCore::FrameLoader::submitFormAgain):
- (WebCore::FrameLoader::submitForm):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::FrameLoader::stop):
- (WebCore::FrameLoader::closeURL):
- (WebCore::FrameLoader::cancelRedirection):
- (WebCore::FrameLoader::iconURL):
- (WebCore::FrameLoader::didOpenURL):
- (WebCore::FrameLoader::didExplicitOpen):
- (WebCore::FrameLoader::replaceContentsWithScriptResult):
- (WebCore::FrameLoader::executeScript):
- (WebCore::FrameLoader::cancelAndClear):
- (WebCore::FrameLoader::clear):
- (WebCore::FrameLoader::receivedFirstData):
- (WebCore::FrameLoader::responseMIMEType):
- (WebCore::FrameLoader::setResponseMIMEType):
- (WebCore::FrameLoader::begin):
- (WebCore::FrameLoader::write):
- (WebCore::FrameLoader::end):
- (WebCore::FrameLoader::endIfNotLoading):
- (WebCore::FrameLoader::startIconLoader):
- (WebCore::FrameLoader::commitIconURLToIconDatabase):
- (WebCore::FrameLoader::gotoAnchor):
- (WebCore::FrameLoader::finishedParsing):
- (WebCore::FrameLoader::loadDone):
- (WebCore::FrameLoader::checkCompleted):
- (WebCore::FrameLoader::checkEmitLoadEvent):
- (WebCore::FrameLoader::baseURL):
- (WebCore::FrameLoader::baseTarget):
- (WebCore::FrameLoader::completeURL):
- (WebCore::FrameLoader::scheduleRedirection):
- (WebCore::FrameLoader::scheduleLocationChange):
- (WebCore::FrameLoader::scheduleRefresh):
- (WebCore::FrameLoader::isScheduledLocationChangePending):
- (WebCore::FrameLoader::scheduleHistoryNavigation):
- (WebCore::FrameLoader::redirectionTimerFired):
- (WebCore::FrameLoader::encoding):
- (WebCore::FrameLoader::requestObject):
- (WebCore::FrameLoader::shouldUsePlugin):
- (WebCore::FrameLoader::loadPlugin):
- (WebCore::FrameLoader::clearRecordedFormValues):
- (WebCore::FrameLoader::recordFormValue):
- (WebCore::FrameLoader::parentCompleted):
- (WebCore::FrameLoader::outgoingReferrer):
- (WebCore::FrameLoader::lastModified):
- (WebCore::FrameLoader::opener):
- (WebCore::FrameLoader::setOpener):
- (WebCore::FrameLoader::openedByJavaScript):
- (WebCore::FrameLoader::setOpenedByJavaScript):
- (WebCore::FrameLoader::handleFallbackContent):
- (WebCore::FrameLoader::provisionalLoadStarted):
- (WebCore::FrameLoader::userGestureHint):
- (WebCore::FrameLoader::didNotOpenURL):
- (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
- (WebCore::FrameLoader::setEncoding):
- (WebCore::FrameLoader::addData):
- (WebCore::FrameLoader::canCachePage):
- (WebCore::FrameLoader::updatePolicyBaseURL):
- (WebCore::FrameLoader::setPolicyBaseURL):
- (WebCore::FrameLoader::scrollToAnchor):
- (WebCore::FrameLoader::isComplete):
- (WebCore::FrameLoader::isLoadingMainResource):
- (WebCore::FrameLoader::url):
- (WebCore::FrameLoader::startRedirectionTimer):
- (WebCore::FrameLoader::stopRedirectionTimer):
- (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
- (WebCore::FrameLoader::completed):
- (WebCore::FrameLoader::started):
- (WebCore::FrameLoader::containsPlugins):
- (WebCore::FrameLoader::prepareForLoadStart):
- (WebCore::FrameLoader::setupForReplace):
- (WebCore::FrameLoader::setupForReplaceByMIMEType):
- (WebCore::FrameLoader::finalSetupForReplace):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::canTarget):
- (WebCore::FrameLoader::stopLoadingPlugIns):
- (WebCore::FrameLoader::stopLoadingSubresources):
- (WebCore::FrameLoader::stopLoadingSubframes):
- (WebCore::FrameLoader::stopAllLoaders):
- (WebCore::FrameLoader::cancelMainResourceLoad):
- (WebCore::FrameLoader::cancelPendingArchiveLoad):
- (WebCore::FrameLoader::activeDocumentLoader):
- (WebCore::FrameLoader::addPlugInStreamLoader):
- (WebCore::FrameLoader::removePlugInStreamLoader):
- (WebCore::FrameLoader::hasMainResourceLoader):
- (WebCore::FrameLoader::isLoadingSubresources):
- (WebCore::FrameLoader::isLoadingPlugIns):
- (WebCore::FrameLoader::isLoading):
- (WebCore::FrameLoader::addSubresourceLoader):
- (WebCore::FrameLoader::removeSubresourceLoader):
- (WebCore::FrameLoader::releaseMainResourceLoader):
- (WebCore::FrameLoader::setDocumentLoader):
- (WebCore::FrameLoader::documentLoader):
- (WebCore::FrameLoader::setPolicyDocumentLoader):
- (WebCore::FrameLoader::provisionalDocumentLoader):
- (WebCore::FrameLoader::setProvisionalDocumentLoader):
- (WebCore::FrameLoader::state):
- (WebCore::FrameLoader::timeOfLastCompletedLoad):
- (WebCore::FrameLoader::setState):
- (WebCore::FrameLoader::clearProvisionalLoad):
- (WebCore::FrameLoader::markLoadComplete):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::privateBrowsingEnabled):
- (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
- (WebCore::FrameLoader::clientRedirected):
- (WebCore::FrameLoader::shouldReload):
- (WebCore::FrameLoader::closeOldDataSources):
- (WebCore::FrameLoader::open):
- (WebCore::FrameLoader::isStopping):
- (WebCore::FrameLoader::finishedLoading):
- (WebCore::FrameLoader::URL):
- (WebCore::FrameLoader::isArchiveLoadPending):
- (WebCore::FrameLoader::isHostedByObjectElement):
- (WebCore::FrameLoader::isLoadingMainFrame):
- (WebCore::FrameLoader::canShowMIMEType):
- (WebCore::FrameLoader::representationExistsForURLScheme):
- (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoader::cancelContentPolicyCheck):
- (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
- (WebCore::FrameLoader::finishedLoadingDocument):
- (WebCore::FrameLoader::isReplacing):
- (WebCore::FrameLoader::setReplacing):
- (WebCore::FrameLoader::revertToProvisional):
- (WebCore::FrameLoader::subframeIsLoading):
- (WebCore::FrameLoader::willChangeTitle):
- (WebCore::FrameLoader::loadType):
- (WebCore::FrameLoader::stopPolicyCheck):
- (WebCore::FrameLoader::continueAfterContentPolicy):
- (WebCore::FrameLoader::continueAfterWillSubmitForm):
- (WebCore::FrameLoader::didFirstLayout):
- (WebCore::FrameLoader::frameLoadCompleted):
- (WebCore::FrameLoader::firstLayoutDone):
- (WebCore::FrameLoader::isQuickRedirectComing):
- (WebCore::FrameLoader::closeDocument):
- (WebCore::FrameLoader::detachChildren):
- (WebCore::FrameLoader::checkLoadComplete):
- (WebCore::FrameLoader::numPendingOrLoadingRequests):
- (WebCore::FrameLoader::setClient):
- (WebCore::FrameLoader::client):
- (WebCore::FrameLoader::userAgent):
- (WebCore::FrameLoader::createEmptyDocument):
- (WebCore::FrameLoader::tokenizerProcessedData):
- (WebCore::FrameLoader::didTellBridgeAboutLoad):
- (WebCore::FrameLoader::haveToldBridgeAboutLoad):
- (WebCore::FrameLoader::handledOnloadEvents):
- (WebCore::FrameLoader::frameDetached):
- (WebCore::FrameLoader::setTitle):
- (WebCore::FrameLoaderClient::~FrameLoaderClient):
- * loader/FrameLoader.h:
- (WebCore::):
- * loader/FrameLoaderClient.h:
- * loader/PluginDocument.cpp:
- (WebCore::PluginTokenizer::createDocumentStructure):
- (WebCore::PluginTokenizer::writeRawData):
- * loader/ResourceLoader.h:
- * loader/TextResourceDecoder.cpp:
- (WebCore::TextResourceDecoder::checkForHeadCharset):
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::startLoading):
- (WebCore::IconLoader::finishLoading):
- * loader/loader.cpp:
- (WebCore::Loader::didReceiveResponse):
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::~DocumentLoader):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::finishedLoading):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::setPrimaryLoadComplete):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::startLoading):
- (WebCore::FrameLoader::cancelMainResourceLoad):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::FrameLoader::loadResourceSynchronously):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::objectContentType):
- (WebCore::nsArray):
- (WebCore::FrameLoader::createPlugin):
- (WebCore::FrameLoader::redirectDataToPlugin):
- (WebCore::FrameLoader::createJavaAppletWidget):
- (WebCore::FrameLoader::partClearedInBegin):
- (WebCore::FrameLoader::saveDocumentState):
- (WebCore::FrameLoader::restoreDocumentState):
- (WebCore::FrameLoader::overrideMediaType):
- (WebCore::FrameLoader::mainResourceData):
- (WebCore::FrameLoader::canGoBackOrForward):
- (WebCore::FrameLoader::originalRequestURL):
- (WebCore::FrameLoader::getHistoryLength):
- (WebCore::FrameLoader::goBackOrForward):
- (WebCore::FrameLoader::historyURL):
- (WebCore::FrameLoader::didFinishLoad):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- (WebCore::CheckCacheObjectStatus):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::cancel):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::create):
- * loader/qt/FrameLoaderQt.cpp: Added.
- (WebCore::FrameLoader::submitForm):
- (WebCore::FrameLoader::urlSelected):
- (WebCore::FrameLoader::setTitle):
- (WebCore::FrameLoader::createFrame):
- (WebCore::FrameLoader::objectContentType):
- (WebCore::FrameLoader::createPlugin):
- (WebCore::FrameLoader::createJavaAppletWidget):
- (WebCore::FrameLoader::originalRequestURL):
- * page/DOMWindow.cpp:
- (WebCore::DOMWindow::document):
- * page/Frame.cpp:
- (WebCore::Frame::~Frame):
- (WebCore::Frame::reparseConfiguration):
- (WebCore::Frame::shouldDragAutoNode):
- (WebCore::Frame::prepareForUserAction):
- (WebCore::FramePrivate::FramePrivate):
- (WebCore::FramePrivate::~FramePrivate):
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- (WebCore::FrameView::mediaType):
- * page/FrameView.h:
- * page/PageState.cpp:
- (WebCore::PageState::PageState):
- (WebCore::PageState::restoreJavaScriptState):
- * platform/mac/CookieJar.mm:
- (WebCore::setCookies):
- * platform/mac/TextCodecMac.cpp:
- * platform/mac/WebFontCache.mm:
- (+[WebFontCache fontWithFamily:traits:size:]):
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::ResourceHandle::start):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::start):
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQt.h:
- * rendering/RenderApplet.cpp:
- (WebCore::RenderApplet::createWidgetIfNecessary):
- * rendering/RenderBlock.h:
- * rendering/RenderPartObject.cpp:
- (WebCore::isURLAllowed):
- (WebCore::RenderPartObject::updateWidget):
- * xml/DOMParser.cpp:
- (WebCore::DOMParser::parseFromString):
- * xml/XSLTProcessor.cpp:
- (WebCore::XSLTProcessor::createDocumentFromSource):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::getResponseXML):
- 2006-11-07 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- Get rid of some duplicate editing enums. Also rename EAlter to EAlteration.
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::registerCommandForUndoOrRedo):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
- (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
- (-[WebCoreFrameBridge alterCurrentSelection:SelectionController::verticalDistance:]):
- (-[WebCoreFrameBridge selectionGranularity]):
- (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
- (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
- (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
- (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
- (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setModifyBias):
- (WebCore::SelectionController::modify):
- * editing/SelectionController.h:
- (WebCore::SelectionController::):
- * editing/TextGranularity.h:
- 2006-11-07 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Changed the check for "top level frame" to something much more valid
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading):
- 2006-11-07 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt (yesterday).
- Here is part of my patch from yesterday that is safe to roll back
- in. It will make the BuildBot happy.
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::spellingToolTip): Null-check
- m_innerNonSharedNode.
- 2006-11-07 Darin Adler <darin@apple.com>
- * loader/icon/IconLoader.cpp: (WebCore::IconLoader::didReceiveResponse):
- Comment grammar fix.
- 2006-11-07 Darin Adler <darin@apple.com>
- Rolled out change for <rdar://problem/4820814>.
- Beth's planning on landing a new change for it soon, but in the mean time
- we need layout tests succeeding again.
- 2006-11-07 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - fix <rdar://problem/4752069> 9A274: World of Warcraft Launcher
- crashes on launch in WebCore::ResourceLoader::start
- No layout test, because this depends on cached icons, although there's
- perhaps a way to write a test for it with some further ingenuity.
- * loader/icon/IconLoader.h: Make IconLoader inherit from Noncopyable
- to make explicit the fact that it can't be successfully copied.
- Remove notifyIconChanged function and put the contents in the caller.
- This eliminates the need for IconLoaderMac.mm. Added finishedLoading
- and clearLoadingState functions to share code. Removed m_url, since the
- resource handle already stores the URL. Renamed m_resourceLoader to
- m_handle to reflect the class's name change. Removed the 4096-byte
- inline buffer from m_data, since the malloc savings is not sufficient
- to offset the additional memory use. Removed m_httpStatusCode because
- we can instead cancel the load when we get a status code that reflects
- failure. Added m_loadIsInProgress boolean because we need to detect
- loads that complete during the ResourceHandle::create function call.
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::IconLoader): Initialize m_loadIsInProgress.
- Don't initialize m_httpStatusCode.
- (WebCore::IconLoader::~IconLoader): Updated for name change.
- (WebCore::IconLoader::startLoading): Added code to use the
- m_loadIsInProgress flag to detect if the load completed while inside
- the ResourceHandle::create function. Removed code to set m_url.
- (WebCore::IconLoader::stopLoading): Call clearLoadingState to share
- more code.
- (WebCore::IconLoader::didReceiveResponse): Kill the ResourceHandle
- and finish loading if the HTTP status code indicates failure.
- (WebCore::IconLoader::didReceiveData): Removed assertion that checks
- the ResourceHandle, since we can't do that any more.
- (WebCore::IconLoader::didFinishLoading): Changed to call finishLoading
- so we can share code with the new didReceiveResponse code path.
- (WebCore::IconLoader::finishLoading): Moved code here from the
- didFinishLoading callback. Pass a URL when calling
- commitIconURLToIconDatabase. Call notifyIconChanged directly here
- instead of using a separate function. Call clearLoadingState to
- share more code with stopLoading.
- (WebCore::IconLoader::clearLoadingState): Added.
- * loader/mac/IconLoaderMac.mm: Removed.
- * WebCore.xcodeproj/project.pbxproj: Removed IconLoaderMac.mm.
- 2006-11-06 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4714993> REGRESSION: After replacing a misspelled word in a sentence, the selected word wraps down to next line (10428)
- * editing/pasteboard/3976872-expected.txt:
- * editing/pasteboard/4076267-2-expected.txt:
- * editing/pasteboard/4076267-3-expected.txt:
- * editing/pasteboard/4076267-expected.txt:
- * editing/pasteboard/8145-1-expected.txt:
- * editing/pasteboard/paste-empty-startcontainer-expected.txt: Removed.
- * editing/pasteboard/paste-match-style-001-expected.txt:
- * editing/pasteboard/paste-match-style-002-expected.txt:
- * editing/pasteboard/paste-text-019-expected.txt:
- * editing/pasteboard/pasting-tabs-expected.txt:
- Updated because pasting text with no newlines does not use intermediate div.
-
- * editing/markup.cpp:
- (WebCore::fillContainerFromString):
- First parameter is now a Container so a fragment can be passed.
-
- (WebCore::createFragmentFromText):
- A string with no newlines gets added inline, rather than being put into a paragraph.
- 2006-11-06 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4820814> A crash occurs at
- WebCore::HitTestResult::spellingToolTip() when mousing down on
- iframe at www.macsurfer.com
- The bug here is that the source of the iframe is only a comment,
- and we were not properly constructing the frame because it was
- sort-of empty but not.
- * html/HTMLDocument.cpp:
- (WebCore::HTMLDocument::childAllowed): newChild is NOT allowed if
- it is a comment node.
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::handleError): if n is a comment node and
- there is no head, we create a head, insert in the document, and add
- the comment node as a child. This is what Firefox does too.
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent): Safe-guard for the
- fix. It is possible to get a mouse event without a target node, so
- we null check it. (Of course, in the case of this bug, it should
- not have been null, but it is a good thing to check for anyway.
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::spellingToolTip): Null-check
- m_innerNonSharedNode.
- 2006-11-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4641880>
- Setting bullets to existing text grabs subsequent paragraph
-
- When a selection ends at the start of a paragraph, we rarely paint
- the selection gap before that paragraph, because there often is no gap.
- In a case like this, it's not obvious to the user that the selection
- ends "inside" that paragraph, so it would be confusing if
- InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.
-
- * editing/FormatBlockCommand.cpp:
- (WebCore::FormatBlockCommand::doApply): Moved the check for editability of
- the selection to a more appropriate place. Change the endingSelection
- if it ends at the start of a paragraph.
- * editing/IndentOutdentCommand.cpp:
- (WebCore::IndentOutdentCommand::doApply): Ditto.
- * editing/InsertListCommand.cpp:
- (WebCore::InsertListCommand::doApply): Ditto.
- 2006-11-06 Brady Eidson <beidson@apple.com>
- Reviewed by Sarge
- <rdar://problem/4822911> - ASSERTION was a little overzealous.
- Toned it down a bit.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::didFinishLoading): Toned down assertion
- 2006-11-06 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Maciej.
- Linux\Gdk build fixes.
- * loader/icon/IconDatabase.cpp:
- * loader/icon/SQLStatement.h:
- * platform/gdk/ChromeClientGdk.h: Added.
- (WebCore::ChromeClientGdk::~ChromeClientGdk):
- * platform/gdk/CursorGdk.cpp:
- (WebCore::pointerCursor):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::doScroll):
- (WebCore::FrameGdk::FrameGdk):
- (WebCore::FrameGdk::submitForm):
- (WebCore::FrameGdk::urlSelected):
- (WebCore::FrameGdk::openURL):
- (WebCore::FrameGdk::handleGdkEvent):
- * platform/gdk/FrameGdk.h:
- (WebCore::FrameGdk::client):
- * platform/gdk/RenderPopupMenuGdk.cpp:
- (WebCore::PopupMenu::updateFromElement):
- * platform/gdk/ScreenGdk.cpp:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (Slider::focusPolicy):
- (WebCore::ServeSynchronousRequest):
- (FrameGdk::goBackOrForward):
- (FrameGdk::getHistoryLength):
- (FrameGdk::historyURL):
- (ChromeClientGdk::canRunModal):
- (ChromeClientGdk::runModal):
- (WebCore::systemBeep):
- (WebCore::CachedResource::setPlatformResponse):
- (Path::transform):
- (ResourceLoader::loadsBlocked):
- (IconLoader::notifyIconChanged):
- * platform/network/gdk/ResourceHandleManager.cpp:
- (WebCore::writeCallback):
- (WebCore::ResourceHandleManager::downloadTimerCallback):
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::add):
- 2006-11-06 Geoffrey Garen <ggaren@apple.com>
- build fix.
-
- * WebCore.xcodeproj/project.pbxproj:
- 2006-11-06 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej, Anders, Darin.
- Removed the Page bridge. Beefed up Chrome. Added Screen and ScreenClient.
- Fixed a minor where WebCore would always assume it was displayed on the
- monitor containing the menubar. window.open and window.showModalDialog
- are now cross-platform.
-
- Layout tests, manual-tests/show-modal-dialog, and manual-tests/
- window-open-features-parsing all pass. I verified the new screen functionality
- by running in DRT, and checking whether WebCore knew it was off-screen.
-
- Some refactoring remains, as all were not pleased by this design. I see
- in my future another patch.
- * bindings/js/kjs_window.cpp: Screen is now a stand-alone object with a
- client, to encapsulate asking the platform questions about the screen occupied by
- the page. (Previously, we always assumed we were on screen 0, which was a bug.)
- * bridge/mac/WebCoreFrameBridge.mm:
- (createMouseEventFromDraggingInfo): Reversed argument order, to match other
- functions.
- (-[WebCoreFrameBridge dragSourceMovedTo:]): ditto
- (-[WebCoreFrameBridge dragSourceEndedAt:operation:]): ditto
- * bridge/mac/WebCoreFrameNamespaces.h: Removed. Dead Code.
- * bridge/mac/WebCoreFrameNamespaces.mm: Removed. Dead Code.
- * bridge/mac/WebCorePageBridge.h: Removed. Dead Code.
- * bridge/mac/WebCorePageBridge.mm: Removed. Dead Code.
- * manual-tests/window-open-features-parsing.html: Updated for accuracy.
- (In this case, neither size nor position is specified, so you should
- get the default window size and position.)
- * page/Screen.cpp: Added. Includes screen-related helper functions used
- in WebCore and WebKit.
- * platform/PlatformMouseEvent.h: Exported common code so it doesn't have
- to be duplicated. Renamed "position" to "point" since both were used,
- and "point" seemed clearer.
- * platform/Screen.h: Removed. Dead Code.
- * platform/mac/LoggingMac.mm: Added. Moved code here from WebCorePageBridge
- initialization.
- 2006-11-06 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Tim Hatcher.
- Part of patch for http://bugs.webkit.org/show_bug.cgi?id=11323
- Link dragging behaviour does not obey WebKitEditableLinkBehavior WebPref
-
- No layout tests added as this must be tested manually by the test
- WebCore/manual-tests/contenteditable-link.html
- * WebCore.exp: Exported HitTestResult::isLiveLink().
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::HTMLAnchorElement):
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- (WebCore::HTMLAnchorElement::isLiveLink):
- * html/HTMLAnchorElement.h: added m_wasShiftKeyDownOnMouseDown variable
- to track shift key status.
- * manual-tests/contenteditable-link.html: Added description about link
- dragging behaviour.
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::isLiveLink): Added.
- * rendering/HitTestResult.h:
- 2006-11-06 Brady Eidson <beidson@apple.com>
- Reviewed by Oliver
- Fixes <rdar://problem/4812674> and http://bugs.webkit.org/show_bug.cgi?id=11530
- For now, we have to not load favicons when we have no Document - linking directly
- to PDFs being the common case
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::startLoading): Check for the document and return if none
- 2006-11-06 Brady Eidson <beidson@apple.com>
- Reviewed by Dave Harrison
- <rdar://problem/4801066>
- Added a critical null frameLoader() check
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::loadNow):
- 2006-11-06 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4813973> Pressing delete key to remove empty quoted line leaves cursor mis-positioned
- Test:
- * editing/deleting/delete-br-012.html
-
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
- Update m_endingPosition when preventing merge.
- Also removed setting of m_mergeBlocksAfterDelete when this function returns true, because is is not checked in this case.
- 2006-11-06 Mark Rowe <bdash@webkit.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11526
- Bug 11526: REGRESSION(r17610): Layout test failure in svg/custom/create-metadata-element.svg
- Update DOMNode::toString to always use className rather than preferring nodeName.
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNode::toString): Match the format returned by valueOf.
- 2006-11-06 Oliver Hunt <oliver@apple.com>
- Reviewed by Maciej.
- Fix RTL text in SVG to have correct positioning
- * rendering/SVGRootInlineBox.cpp:
- (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
- 2006-11-06 Alexey Proskuryakov <ap@webkit.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11517
- REGRESSION: Flash clicks/interactivity not working properly
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::handleMouseMoveEvent):
- (WebCore::FrameMac::handleMouseReleaseEvent):
- Restore parts of event dispatching that were removed when fixing
- bug 7323 - just bypass those for subframes.
- 2006-11-05 Darin Adler <darin@apple.com>
- - quick attempt to fix the no-SVG build
- * platform/graphics/svg/SVGResource.cpp:
- * platform/graphics/svg/SVGResource.h:
- * platform/graphics/svg/SVGResourceClipper.cpp:
- * platform/graphics/svg/SVGResourceClipper.h:
- * platform/graphics/svg/SVGResourceImage.h:
- * platform/graphics/svg/SVGResourceMarker.cpp:
- * platform/graphics/svg/SVGResourceMarker.h:
- * platform/graphics/svg/SVGResourceMasker.cpp:
- * platform/graphics/svg/SVGResourceMasker.h:
- * platform/graphics/svg/cg/SVGResourceMaskerCg.h:
- * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
- * platform/graphics/svg/qt/SVGResourceImageQt.cpp:
- * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp:
- Added #ifdef SVG_SUPPORT to these files.
- 2006-11-05 Darin Fisher <darin@chromium.org>
- Reviewed & landed by Maciej.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=11265
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::transferJobStatusCallback):
- (WebCore::ResourceLoader::start):
- 2006-11-04 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - moved FormData and FormDataStream to platform/network directory
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.mm:
- * loader/FormData.cpp: Removed.
- * loader/FormData.h: Removed.
- * loader/mac/FormDataStream.h: Removed.
- * loader/mac/FormDataStream.m: Removed.
- * loader/mac/FrameLoaderMac.mm:
- * loader/mac/SubresourceLoaderMac.mm:
- * platform/network/mac/FormDataStreamMac.h: Added.
- * platform/network/mac/FormDataStreamMac.mm: Added.
- * platform/network/mac/ResourceRequestMac.mm:
- 2006-11-05 Steve Falkenburg <sfalken@apple.com>
- Fix build breaks
- * loader/DocumentLoader.h:
- * platform/win/ScreenWin.cpp:
- 2006-11-05 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - more preparation for splitting up Frame into sub-pieces
- - removed unnecessary includes from Frame.h
- * page/Frame.h: Removed unneeded includes and forward declarations.
- Added additional forward declarations. Removed the constant
- NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
- Created sections of functions to be moved into Chrome, Editor,
- EventHandler, FrameLoader, SelectionController, and the Platform
- directory, as well as marking one function for deletion.
- * page/FramePrivate.h: Removed the definition of the constructor and
- destructor and removed unnecessary includes.
- * page/FrameView.h: Removed unneeded forward declarations and friend
- declarations. Created a section of functions and data to be moved into
- EventHandler.
- * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
- Created sections of functions and data to be moved into Chrome,
- Editor, EventHandler, FrameLoader, and the Platform directory.
- * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
- Removed unused methods areScrollbarsVisible,
- nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
- * page/Frame.cpp:
- (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
- to include KURL.h just for the KURL default constructor.
- (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
- (WebCore::FramePrivate::~FramePrivate): Ditto.
- * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
- booleans, scrollbarMoved and cleared funcitons.
- (WebCore::FrameView::clear): Moved the code from the cleared
- function in here.
- (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
- for changes to header.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelection):
- (WebCore::SelectionController::xPosForVerticalArrowNavigation):
- Moved NoXPosForVerticalArrowNavigation into this file.
- * bindings/js/kjs_events.cpp:
- * bindings/js/kjs_html.cpp:
- * bindings/js/kjs_window.cpp:
- * bridge/mac/WebCoreAXObject.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- * css/cssstyleselector.cpp:
- * dom/Document.cpp:
- * dom/Element.cpp:
- * dom/EventTargetNode.cpp:
- * dom/MouseRelatedEvent.cpp:
- * dom/XMLTokenizer.cpp:
- * html/HTMLBaseElement.cpp:
- * html/HTMLDocument.cpp:
- * html/HTMLEmbedElement.cpp:
- * html/HTMLFrameElementBase.cpp:
- * html/HTMLGenericFormElement.cpp:
- * html/HTMLObjectElement.cpp:
- * html/HTMLTokenizer.cpp:
- * loader/mac/FrameLoaderMac.mm:
- * page/PageState.cpp:
- * rendering/RenderApplet.cpp:
- * rendering/RenderBlock.cpp:
- * rendering/RenderLayer.cpp:
- * rendering/RenderObject.cpp:
- * rendering/RenderPartObject.cpp:
- * rendering/RenderTreeAsText.cpp:
- * xml/XSLTProcessor.cpp:
- Added includes as needed to keep compiling, since there are fewer
- includes in Frame.h.
- 2006-11-05 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Dave Harrison.
- http://bugs.webkit.org/show_bug.cgi?id=11402
- REGRESSION: onChange does not work anymore for 1st item in popup
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::HTMLSelectElement):
- (WebCore::HTMLSelectElement::reset):
- Set m_lastOnChangeIndex to -1.
- 2006-11-04 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11453
- REGRESSION: Status bar always shows cancelled opening the page
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::~ResourceHandle): Removed call to cancel.
- Since the subresource owns the resource handle, there's no need to cancel.
- This arrangement is only temporary, anyway, since Maciej will soon change
- things so that the subresource loader uses the resource handle and the
- resource handle doesn't know anything about the subresource loader.
- 2006-11-04 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - converted more of the loader machinery to work with cross-platform
- data structures instead of Macintosh-specific ones
- converted most uses of NSURL to KURL and NSEvent to DOM Event in
- loader classes
- moved download function out of FrameLoader.h to avoid reference to
- NSURLConnection
- added DOM Event parameters to various functions so that the handlers
- can use the DOM Event instead of the global "current NSEvent";
- includes Frame::submitForm, HTMLFormElement::prepareSubmit,
- HTMLFormElement::submit, FrameLoader::load
- moved the setMainFrame call that hands ownership to the Page
- into one of the Frame constructors, and removed it from all
- the clients
- removed const from Event parameter to the urlSelected function
- (we rarely use const with DOM elements)
- removed some redundant includes and declarations from various
- header files
- removed NSURL parameter from userAgent function -- if we need it we
- can add it back, but converting from NSURL to KURL and back is
- inefficient enough that it's best to have it out for now (since it's
- been unused for years) -- if we add it back, we can choose an
- appropriate parameter type that's always inexpensive to pass
- did some basic cleanup in the IconLoader class, including removing
- an unnecessary loop that added icon data a byte at a time
- renamed safeLoad to load, since it's no different from the other
- FrameLoader load functions, safety-wise
- fixed some code that was trying to distinguish null frame name from
- empty string frame name -- both should be handled the same, but callers
- were doing it by checking for empty and turning it into null (in a way
- that was causing extra round trips between NSString and WebCore::String)
- corrected all uses of "get" and "post" to be uppercase "GET" and "POST"
- and got rid of case-insensitive compares of methods
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_navigator.cpp:
- (KJS::Navigator::getValueProperty):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::urlSelected):
- (WebCore::FrameMac::userAgent):
- * bridge/mac/FrameViewMac.mm:
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject rendererForView:]):
- * bridge/mac/WebCorePageBridge.h:
- * bridge/mac/WebCorePageBridge.mm:
- * bridge/mac/WebCoreSettings.mm:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::urlSelected):
- (WebCore::FrameWin::submitForm):
- * bridge/win/FrameWin.h:
- * dom/MouseRelatedEvent.cpp:
- * dom/MouseRelatedEvent.h:
- * dom/UIEvent.cpp:
- (WebCore::UIEvent::~UIEvent):
- * dom/UIEvent.h:
- * dom/UIEventWithKeyState.h:
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- * html/HTMLButtonElement.cpp:
- (WebCore::HTMLButtonElement::defaultEventHandler):
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::submitClick):
- (WebCore::HTMLFormElement::prepareSubmit):
- (WebCore::HTMLFormElement::submit):
- * html/HTMLFormElement.h:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
- * loader/DocumentLoader.h:
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/NavigationAction.h:
- (WebCore::NavigationAction::event):
- * loader/icon/IconLoader.cpp:
- (WebCore::IconLoader::create):
- (WebCore::IconLoader::startLoading):
- (WebCore::IconLoader::didReceiveData):
- (WebCore::IconLoader::didFinishLoading):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::unreachableURL):
- (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
- (WebCore::DocumentLoader::URLForHistory):
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::willSendRequest):
- (WebCore::FrameLoader::clientRedirected):
- (WebCore::FrameLoader::shouldReload):
- (WebCore::FrameLoader::notifyIconChanged):
- (WebCore::FrameLoader::URL):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameLoader::didChangeTitle):
- (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::FrameLoader::loadResourceSynchronously):
- * loader/mac/IconLoaderMac.mm:
- (WebCore::IconLoader::notifyIconChanged):
- * loader/mac/LoaderFunctionsMac.mm:
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::shouldLoadAsEmptyDocument):
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- * loader/mac/NavigationActionMac.mm:
- (WebCore::navigationType):
- (WebCore::NavigationAction::NavigationAction):
- * loader/mac/ResourceLoaderMac.mm:
- * loader/mac/SubresourceLoaderMac.mm:
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- (WebCore::Frame::urlSelected):
- (WebCore::Frame::submitFormAgain):
- (WebCore::Frame::submitForm):
- (WebCore::Frame::endIfNotLoading):
- (WebCore::Frame::hitTestResultAtPoint):
- * page/Frame.h:
- * page/FramePrivate.h:
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::FrameGdk):
- (WebCore::FrameGdk::submitForm):
- (WebCore::FrameGdk::urlSelected):
- * platform/gdk/FrameGdk.h:
- * platform/mac/TextFieldMac.mm:
- * platform/network/HTTPHeaderMap.h:
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- * platform/network/ResourceHandleInternal.h:
- * platform/network/mac/ResourceHandleMac.mm:
- * platform/network/mac/ResourceResponseMac.h:
- * platform/network/mac/ResourceResponseMac.mm:
- (-[NSURLResponse WebCore]):
- * platform/network/win/ResourceHandleWin.cpp:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- * platform/qt/FrameQt.h:
- * rendering/RenderLineEdit.cpp:
- (WebCore::RenderLineEdit::returnPressed):
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- 2006-11-03 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele.
- - replaced receivedRedirect with new willSendRequest delegate
- - removed most mac-specific loader functions
- - use ResourceResponse more in loader code
- * WebCore.xcodeproj/project.pbxproj: Add new files.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge getData:andResponse:forURL:]): Adapted
- for CachedResource method renames.
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
- Ditto.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::checkNotify): simplified
- based on ResourceResponse
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage): adapt for ResourceResponse
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::CachedResource): store a ResourceResponse;
- platform response is now called platformResponse and expiration date
- is removed.
- (WebCore::CachedResource::~CachedResource): ditto
- (WebCore::CachedResource::isExpired): ditto
- * loader/CachedResource.h:
- (WebCore::CachedResource::platformResponse): ditto
- (WebCore::CachedResource::setResponse): ditto
- (WebCore::CachedResource::canDelete): ditto
- * loader/LoaderFunctions.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse): Adjusted for renames.
- (WebCore::Loader::didReceiveResponse): Store whole ResourceResponse
- in the CachedResource.
- * loader/loader.h:
- * loader/mac/FormDataStream.h:
- * loader/mac/FormDataStream.m:
- (WebCore::getStreamFormDatas): Rearranged things so it's
- possible to get a FormData back out of a form data stream.
- (WebCore::formCreate): ditto
- (WebCore::formFinalize): ditto
- (WebCore::httpBodyFromStream): ditto
- * loader/mac/ImageDocumentMac.mm:
- (WebCore::finishImageLoad): s/response/platformResponse/
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus): ditto
- (WebCore::CachedResource::setPlatformResponse): ditto
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::willSendRequest): send redirect
- to client appropriately
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::willSendRequest): new entry
- point for SubresourceLoader, dispatch to client.
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::allowHTTPCookies): implemented
- (WebCore::ResourceRequest::setAllowHTTPCookies): ditto
- * platform/network/ResourceResponse.h:
- (WebCore::ResourceResponse::ResourceResponse): initialize expiration
- date(!)
- * platform/network/cf/FormDataStreamCFNet.cpp: Added.
- (WebCore::getStreamFormDatas): Added this, ported from NSURL version.
- (WebCore::openNextStream): ditto
- (WebCore::formCreate): ditto
- (WebCore::formFinalize): ditto
- (WebCore::formCanRead): ditto
- (WebCore::formEventCallback): ditto
- (WebCore::setHTTPBody): ditto
- (WebCore::httpBodyFromStream): ditto
- * platform/network/cf/FormDataStreamCFNet.h: Added.
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::willSendRequest): implemented
- (WebCore::ResourceHandle::start): use new ResourceRequest stuff
- * platform/network/cf/ResourceResponseCFNet.cpp:
- (WebCore::getResourceResponse): do nothing for a null response
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::willSendRequest): Implemented; dispatch to client.
- * platform/network/mac/ResourceRequestMac.h: Added.
- * platform/network/mac/ResourceRequestMac.mm: Added.
- (WebCore::getResourceRequest): Added way to convert an NSURLRequest
- to a ResourceRequest.
- (WebCore::nsURLRequest): Opposite of the above.
- * platform/network/cf/ResourceRequestCFNet.h: Added.
- * platform/network/cf/ResourceRequestCFNet.cpp: Added.
- (WebCore::getResourceRequest): Added way to convert an CFURLRequest
- to a ResourceRequest.
- (WebCore::cfURLRequest): Opposite of the above.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::willSendRequest): Renamed from receivedRedirect,
- adjusted.
- * xml/xmlhttprequest.h:
- 2006-11-04 Darin Adler <darin@apple.com>
- Change suggested by Mitz.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11514
- REGRESSION (r17438): Repro crash when opening a web archive
- * bridge/mac/WebCorePageState.mm:
- (-[WebCorePageState dealloc]): Add null check.
- (-[WebCorePageState finalize]): Ditto.
- 2006-11-04 Bertrand Guiheneuf <guiheneuf@gmail.com>
- Reviewed by Maciej, tweaked and landed by Alexey (using a patch by Peter Kasting).
- http://bugs.webkit.org/show_bug.cgi?id=11433
- Fixes to get WebKit to run on Windows; implemented AffineTransformCairo.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- Added platform/graphics platform/network and platform/network/win to headers search paths
- Created platform/graphics and platform/network filters in hierarchy
- Moved GraphicsContext and GraphicsTypes to their respective filters
- Added EditorClient.h
- Added FrameLoader* files in loader/
- Added HitTest* files in rendering/
- Added Editor.* files in editing/
- Added DeleteButton.* and DeleteButtonController.* in editing/
- * bridge/win/ChromeClientWin.h: Added.
- (WebCore::ChromeClientWin::~ChromeClientWin):
- * bridge/win/EditorClientWin.h: Added.
- (WebCore::EditorClientWin::~EditorClientWin):
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- (WebCore::FrameWin::urlSelected):
- (WebCore::FrameWin::submitForm):
- (WebCore::FrameWin::createNewWindow):
- * bridge/win/FrameWin.h:
- Added EditorClient parameter to constructor
- Replace usage of FrameLoadRequest::m_request with FrameLoadRequest::resourceRequest()
- Removed openURL() and openURLRequest from class definition
- * bridge/win/PageWin.cpp:
- * platform/AffineTransform.h:
- * platform/cairo/AffineTransformCairo.cpp: Added.
- (WebCore::AffineTransform::AffineTransform):
- (WebCore::AffineTransform::setMatrix):
- (WebCore::AffineTransform::map):
- (WebCore::AffineTransform::mapRect):
- (WebCore::AffineTransform::isIdentity):
- (WebCore::AffineTransform::m11):
- (WebCore::AffineTransform::m12):
- (WebCore::AffineTransform::m21):
- (WebCore::AffineTransform::m22):
- (WebCore::AffineTransform::dx):
- (WebCore::AffineTransform::dy):
- (WebCore::AffineTransform::reset):
- (WebCore::AffineTransform::scale):
- (WebCore::AffineTransform::rotate):
- (WebCore::AffineTransform::translate):
- (WebCore::AffineTransform::shear):
- (WebCore::AffineTransform::det):
- (WebCore::AffineTransform::invert):
- (WebCore::AffineTransform::operator cairo_matrix_t):
- (WebCore::AffineTransform::operator== ):
- (WebCore::AffineTransform::operator*= ):
- (WebCore::AffineTransform::operator* ):
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
- * platform/network/win/ResourceHandleWin.cpp:
- (WebCore::ResourceHandle::onHandleCreated):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::fileLoadTimer):
- (WebCore::ResourceHandle::cancel):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::FrameWin::goBackOrForward):
- (WebCore::FrameWin::getHistoryLength):
- (WebCore::FrameWin::historyURL):
- (WebCore::ServeSynchronousRequest):
- (WebCore::ChromeClientWin::canRunModal):
- (WebCore::ChromeClientWin::runModal):
- (WebCore::EditorClientWin::shouldDeleteRange):
- (WebCore::EditorClientWin::shouldShowDeleteInterface):
- (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
- (WebCore::EditorClientWin::isGrammarCheckingEnabled):
- (WebCore::EditorClientWin::spellCheckerDocumentTag):
- (WebCore::Path::transform):
- (WebCore::PopupMenu::updateFromElement):
- (WebCore::ResourceLoader::loadsBlocked):
- (WebCore::systemBeep):
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::paintButton):
- (WebCore::RenderThemeWin::paintTextField):
- 2006-11-04 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=11448
- ⟨ and ⟩ entities are mapped to the incorrect Unicode codepoint
- * html/HTMLEntityNames.gperf: Use canonical Unicode equivalents for these characters.
- 2006-11-03 Mark Rowe <bdash@webkit.org>
- Reviewed by Oliver.
- Update Windows and Qt project files for file removals in r17585.
- * CMakeLists.txt:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-11-03 Zack Rusin <zack@kde.org>
- Reviewed by Maciej.
- The patch fixes text field drawing on the Qt platform.
- * platform/qt/RenderThemeQt.cpp:
- (WebCore::RenderThemeQt::paintTextField): Use the style to correctly
- render the text field
- 2006-11-03 Oliver Hunt <oliver@apple.com>
- Reviewed by Tim.
- Correct incorrect call to SetCursor
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::userResize):
- 2006-11-03 Adele Peterson <adele@apple.com>
- Reviewed by Oliver.
- Removed DeprecatedRenderSelect and ListBox classes.
- * WebCore.xcodeproj/project.pbxproj:
- * css/html4.css:
- * html/HTMLOptionElement.h:
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::recalcStyle):
- (WebCore::HTMLSelectElement::isKeyboardFocusable):
- (WebCore::HTMLSelectElement::isMouseFocusable):
- (WebCore::HTMLSelectElement::createRenderer):
- (WebCore::HTMLSelectElement::setRecalcListItems):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- (WebCore::HTMLSelectElement::defaultEventHandler):
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
- (WebCore::HTMLSelectElement::updateListBoxSelection):
- * html/HTMLSelectElement.h:
- * platform/ListBox.h: Removed.
- * platform/mac/FontCacheMac.mm:
- * platform/mac/ListBoxMac.mm: Removed.
- * platform/win/TemporaryLinkStubs.cpp:
- * rendering/DeprecatedRenderSelect.cpp: Removed.
- * rendering/DeprecatedRenderSelect.h: Removed.
- 2006-11-03 Maciej Stachowiak <mjs@apple.com>
- Not reviewed, fix for accidental commit.
- - rolled back more of the accidentall commit that I forgot.
- * platform/network/mac/ResourceRequestMac.h: Removed.
- * platform/network/mac/ResourceRequestMac.mm: Removed.
- 2006-11-03 Maciej Stachowiak <mjs@apple.com>
- Not reviewed, fix for accidental commit.
- - roll back some network changes accidentally committed with a previous patch.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge getData:andResponse:forURL:]):
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::checkNotify):
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage):
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::CachedResource):
- (WebCore::CachedResource::~CachedResource):
- (WebCore::CachedResource::setExpireDate):
- (WebCore::CachedResource::isExpired):
- * loader/CachedResource.h:
- (WebCore::CachedResource::response):
- * loader/LoaderFunctions.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse):
- (WebCore::Loader::didReceivedResponse):
- * loader/loader.h:
- * loader/mac/FormDataStream.h:
- * loader/mac/FormDataStream.m:
- (WebCore::formCreate):
- (WebCore::formFinalize):
- * loader/mac/ImageDocumentMac.mm:
- (WebCore::finishImageLoad):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus):
- (WebCore::CachedResource::setResponse):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::willSendRequest):
- * platform/network/ResourceHandle.h:
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::receivedRedirect):
- * platform/network/ResourceRequest.h:
- * platform/network/ResourceResponse.h:
- (WebCore::ResourceResponse::ResourceResponse):
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandle::redirectedToURL):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::receivedRedirect):
- * xml/xmlhttprequest.h:
- 2006-11-03 Anders Carlsson <acarlsson@apple.com>
- Rubber-stamped by Oliver.
- Remove these, they have been merged with SVGRenderTreeAsText.
-
- * rendering/SVGRenderAsText.cpp: Removed.
- * rendering/SVGRenderAsText.h: Removed.
- 2006-11-03 Anders Carlsson <acarlsson@apple.com>
- Build fix.
-
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::willSendRequest):
- 2006-11-02 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin, Beth.
-
- First cut at factoring Page's UIDelegate-related functions into Chrome
- and ChromeClient.
- Layout tests pass.
-
- * bridge/mac/PageMac.mm: Removed platform-specific constructor, added
- setBridge method to replace it.
- (WebCore::Page::setBridge):
- * bridge/mac/WebCorePageBridge.h: Simplified some things based on the fact
- that WebCorePageBridge.h doesn't need to be included by ObjC-only files,
- and, now that it uses PassRefPtr, can't be.
-
- * page/Chrome.cpp: Added. Code copied and converted to c++ from WebCorePageBridge.mm.
- * page/Page.h:
- (WebCore::Page::dragCaretController): Made this function non-const so that
- m_dragCaretController doesn't have to be mutable.
- 2006-11-03 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Adele.
- http://bugs.webkit.org/show_bug.cgi?id=7323
- REGRESSION (10.4.4): ondrag* events don't fire on page in a frame
- * bridge/mac/FrameMac.h: Moved drag source information to a static variable
- in FrameMac.mm. There can be only one drag active at any moment, and having
- this information here was making sharing this information between
- subframes hard.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac): Initialize sharedDragInfo.
- (WebCore::FrameMac::freeClipboard):
- (WebCore::FrameMac::dragHysteresisExceeded):
- (WebCore::FrameMac::handleMouseMoveEvent):
- (WebCore::FrameMac::handleMouseReleaseEvent):
- (WebCore::FrameMac::mouseDown):
- (WebCore::FrameMac::dragSourceMovedTo):
- (WebCore::FrameMac::dragSourceEndedAt):
- (WebCore::FrameMac::dispatchDragSrcEvent):
- Access drag source info via sharedDragInfo - this fixes drag source even dispatching.
- Also removed some old code that was forwarding mouse events to subviews to make
- HTML editing work in subframes.
- * page/FrameView.cpp:
- (WebCore::FrameView::updateDragAndDrop):
- (WebCore::FrameView::cancelDragAndDrop):
- (WebCore::FrameView::performDragAndDrop):
- Forward events to subframes for dispatching - this fixes drag target events.
- 2006-11-03 Zack Rusin <zack@kde.org>
- Reviewed by Tim.
- Fixing compile.
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::CachedResource::setPlatformResponse): Renamed from setResponse
- 2006-11-01 Zack Rusin <zack@kde.org>
- Reviewed by Maciej.
- Moving the word/sentence seperators into a file of their own
- and implementing findWordBoundary.
- * CMakeLists.txt:
- * platform/qt/TemporaryLinkStubs.cpp:
- * platform/qt/TextBoundaries.cpp: Added.
- (WebCore::findNextSentenceFromIndex):
- (WebCore::findSentenceBoundary):
- (WebCore::findNextWordFromIndex):
- (WebCore::findWordBoundary):
- 2006-11-03 Zack Rusin <zack@kde.org>
- Reviewed by Maciej.
- Compile on both KDE and Qt platforms
- * CMakeLists.txt: add zlib explicitly
- * platform/network/qt/ResourceHandleManager.cpp:
- (WebCore::ResourceHandleManager::self):
- (WebCore::QtJob::QtJob):
- (WebCore::QtJob::timerEvent): Integrate both implementations
- so that moc can parse it
- (WebCore::ResourceHandleManager::deliverJobData):
- (WebCore::ResourceHandleManager::remove):
- * platform/network/qt/ResourceHandleManager.h:
- 2006-11-03 Maciej Stachowiak <mjs@apple.com>
- No review, suggested by Mitz.
- - fix a #if to be #ifdef
- * platform/graphics/svg/cg/SVGResourceImageCg.cpp:
- 2006-11-03 Zack Rusin <zack@kde.org>
- Reviewed and landed by Maciej.
-
- Compile on the Qt platform.
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * platform/qt/RenderThemeQt.cpp:
- (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
- 2006-11-03 Zack Rusin <zack@kde.org>
- Reviewed by Hyatt. Landed by Maciej.
- Adding setPlatformPen/setPlatformFont/setPlatformFillColor
- to graphics context to be able to set consistant state
- on the platform specific painter without having to change
- fill/stroke/font on every operation. This fixes color/stroke/fill
- and font handling in the Qt port.
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContext::setFont):
- (WebCore::GraphicsContext::setPen):
- (WebCore::GraphicsContext::setFillColor):
- (WebCore::GraphicsContext::setPlatformPen):
- (WebCore::GraphicsContext::setPlatformFillColor):
- (WebCore::GraphicsContext::setPlatformFont):
- * platform/graphics/GraphicsContext.h:
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::toQtCompositionMode):
- (WebCore::toQtLineCap):
- (WebCore::toQtLineJoin):
- (WebCore::toQPenStyle):
- (WebCore::penToQPen):
- (WebCore::TransparencyLayer::TransparencyLayer):
- (WebCore::GraphicsContext::addRoundedRectClip):
- (WebCore::GraphicsContext::setPlatformFont):
- (WebCore::GraphicsContext::setPlatformPen):
- (WebCore::GraphicsContext::setPlatformFillColor):
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
- (WebCore::ScrollViewCanvasQt::paintEvent):
- (WebCore::ScrollViewCanvasQt::handleKeyEvent):
- * platform/qt/ScrollViewCanvasQt.h:
- 2006-11-02 Adele Peterson <adele@apple.com>
- Reviewed by Anders.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=9581
- REGRESSION: The new NativeTextArea scrolls to the top when the control is unfocused.
- Test: fast/forms/textarea-no-scroll-on-blur.html
- * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::forwardEvent):
- On blur, only scroll back to the start for text fields.
- 2006-11-02 Anders Carlsson <acarlsson@apple.com>
- Another build fix.
-
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::paintObject):
- 2006-11-02 Anders Carlsson <acarlsson@apple.com>
- Build fix.
-
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- 2006-11-02 Kevin Ollivier <kevino@theolliviers.com>
- Reviewed by Geoff, landed by Anders.
-
- Fix dependency problems caused when running move-js-headers.sh
-
- * move-js-headers.sh:
- Use cp -p instead of just cp so that the modification time
- of the original files are used.
- 2006-11-02 Adam Roben <aroben@apple.com>
- Reviewed by Tim H, landed by Anders.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10840
- REGRESSION: Shadow of file upload button is clipped
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
- height to keep from clipping in the shadow
- 2006-11-02 Eike Preuss <mail@eikepreuss.de>
- Reviewed by Maciej, landed by Anders.
- * platform/qt/ScrollViewQt.cpp: Fix translation of coordinates between
- content and window. ScrollViewQt already receives correct content
- coordinates from QScrollArea.
- (WebCore::ScrollView::contentsToWindow):
- (WebCore::ScrollView::windowToContents):
- 2006-11-02 Simon Hausmann <hausmann@kde.org>
- Reviewed by Maciej, landed by Anders
- * CMakeLists.txt: Make linkage against KDE libraries conditional
- * platform/network/qt/ResourceHandleManager.cpp: Added a simple
- Qt base resource handler that supports only requests to the
- local filesystem. Used when compiling without KDE support.
- ResourceHandleManager.cpp/h are to be split up into ResourceHandleManagerKDE
- and ResourceHandleManagerQt in the future, as well as QtJob.cpp/h.
- (WebCore::QtJob::QtJob):
- (WebCore::QtJob::timerEvent):
- (WebCore::ResourceHandleManager::ResourceHandleManager):
- (WebCore::ResourceHandleManager::~ResourceHandleManager):
- (WebCore::ResourceHandleManager::self):
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- (WebCore::ResourceHandleManager::deliverJobData):
- * platform/network/qt/ResourceHandleManager.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::runJavaScriptAlert):
- (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
- (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
- * platform/qt/LoaderFunctionsQt.cpp: Use the Qt messagebox and
- input dialog functions when compiling without KDE support
- (WebCore::ServeSynchronousRequest):
- 2006-11-02 David Carson <dacarson@gmail.com>
- Reviewed by Geoff, landed by Anders.
- Fix for: http://bugs.webkit.org/show_bug.cgi?id=11471
- Initializing variable in constructor.
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- 2006-11-02 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- Use CFMutableURLRequestRef instead of CFHTTPMessageRef since not all URL requests are http requests.
-
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::addHeadersFromHashMap):
- Don't set all headers at once since that clears any previous headers set.
-
- (WebCore::ResourceHandle::start):
- 2006-11-02 Adele Peterson <adele@apple.com>
- Reviewed by Mitz and Geoff.
- - Fix for:
- <rdar://problem/4650271> REGRESSION(NativeTextArea): Textareas don't get scrollbars when text gets too big for content area (10105)
- <rdar://problem/4650813> REGRESSION(tiger-leopard): typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
- <rdar://problem/4658779> REGRESSION: Text selection is weird in textareas in Trac wiki editing pages
- Test: fast/forms/textarea-scrollbar.html
- To avoid some of our flexbox bugs for textareas, we're moving the text controls back to RenderBlock. This should make them
- 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.
- * rendering/RenderTextControl.h: Convert text controls back to RenderBlock instead of RenderFlexibleBox.
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::RenderTextControl):
- (WebCore::RenderTextControl::setStyle):
- (WebCore::RenderTextControl::createDivStyle):
- (WebCore::RenderTextControl::updateFromElement):
- (WebCore::RenderTextControl::calcHeight):
- (WebCore::RenderTextControl::baselinePosition):
- (WebCore::RenderTextControl::nodeAtPoint):
- (WebCore::RenderTextControl::layout): Set the inner div's height explicitly before doing a normal layout.
- (WebCore::RenderTextControl::scrollWidth):
- (WebCore::RenderTextControl::scrollHeight):
- (WebCore::RenderTextControl::scrollLeft):
- (WebCore::RenderTextControl::scrollTop):
- * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout): Make subtree layout optimization work for textareas.
- 2006-11-02 John Sullivan <sullivan@apple.com>
- Reviewed by Geoff Garen
- * editing/Selection.cpp:
- (WebCore::Selection::showTreeForThis):
- this debugging method now displays start offset and end offset, at Darin's suggestion
- 2006-11-01 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
- <rdar://problem/4062865>
- Copy/paste of a select element fails to include the options
-
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::modify): Added paragraphBoundary.
- * editing/htmlediting.cpp:
- (WebCore::canHaveChildrenForEditing): Added checks for input elements
- and textareas. Insertion operations would fail when performed just
- before/after one of these elements b/c the content would be put inside
- the element.
- (WebCore::enclosingNodeWithTag): Fixed a problem when calling these in non
- editable content, and made the code to stop at an root faster (don't check
- isDescendantOf on every iteration).
- (WebCore::enclosingNodeOfType): Ditto.
- (WebCore::enclosingList): Ditto.
- (WebCore::enclosingListChild): Ditto. Added a FIXME, this function seems
- inappropriately named.
- * editing/markup.cpp:
- (WebCore::startMarkup): Use the text node's value instead of its rendered
- content for text nodes inside select elements. One might also turn off
- annotation when createMarkup enters a select element, but createMarkup
- is iterative, not recursive, so doing so would be complicated.
- (WebCore::createMarkup): Add markup for unrendered nodes if they are
- descendants of a select element.
- * editing/visible_units.cpp:
- (WebCore::startOfParagraph): Migrate to isBlock/enclosingBlock. Fixes bug
- where various replaced elements can't be copied when they are the only
- thing selected.
- (WebCore::endOfParagraph): Ditto.
- 2006-11-01 Oliver Hunt <oliver@apple.com>
- Reviewed by Adam.
- Converting more or kcanvas/quartz from Obj-C to C++
- Minor SVG updates
- compatibility fixes
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/device/KRenderingPaintServer.h:
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.cpp: Added.
- (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: Removed.
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.cpp: Added.
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: Removed.
- * kcanvas/device/quartz/QuartzSupport.h:
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/scripts/cssmakeprops:
- * ksvg2/scripts/cssmakevalues:
- * ksvg2/scripts/make_names.pl:
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- * ksvg2/svg/SVGAnimationElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/svgpathparser.cpp:
- * platform/Path.cpp:
- * platform/graphics/svg/SVGResourceImage.h:
- * rendering/RenderPath.cpp:
- * rendering/SVGRenderAsText.cpp:
- 2006-11-02 Mitz Pettel <mitz@webkit.org>
- Reviewed by Adele.
- - Fix a regression from r17521: painting of and crash caused by tables
- with collapsed borders
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::paint): Changed 'paintInfo' to 'info'. Prior to
- r17521, 'paintInfo' was the local variable. Now 'info' is the local variable
- and 'paintInfo' is the parameter, which we were accidently modifying.
- 2006-11-01 Adele Peterson <adele@apple.com>
- Reviewed by Mitz.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=11277
- REGRESSION: Incomplete repaint of overflow areas when deleting
- Restrict the repaint rect for overflow blocks after the height has been fully computed.
- Also, adjust the repaint rect coordinates for the scroll offset.
- * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock):
- * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren):
- 2006-11-01 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11474
- Rename the "p" member variable of the PaintInfo struct to "context"
- - Renames the 'p' and 'r' member variables of the PaintInfo struct to
- 'context' and 'rect' respectively.
- - Assorted surrounding cleanups.
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::paint):
- * rendering/EllipsisBox.h:
- * rendering/InlineBox.cpp:
- (WebCore::InlineBox::paint):
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paint):
- (WebCore::InlineFlowBox::paintBackground):
- (WebCore::InlineFlowBox::paintBackgroundAndBorder):
- (WebCore::InlineFlowBox::paintDecorations):
- * rendering/InlineFlowBox.h:
- * rendering/InlineRunBox.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- * rendering/InlineTextBox.h:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paint):
- (WebCore::RenderBlock::paintChildren):
- (WebCore::RenderBlock::paintCaret):
- (WebCore::RenderBlock::paintObject):
- (WebCore::RenderBlock::paintFloats):
- (WebCore::RenderBlock::paintEllipsisBoxes):
- (WebCore::RenderBlock::paintSelection):
- (WebCore::RenderBlock::fillSelectionGaps):
- (WebCore::RenderBlock::fillInlineSelectionGaps):
- (WebCore::RenderBlock::fillBlockSelectionGaps):
- (WebCore::RenderBlock::fillHorizontalSelectionGap):
- (WebCore::RenderBlock::fillVerticalSelectionGap):
- (WebCore::RenderBlock::fillLeftSelectionGap):
- (WebCore::RenderBlock::fillRightSelectionGap):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paint):
- (WebCore::RenderBox::paintRootBoxDecorations):
- (WebCore::RenderBox::paintBoxDecorations):
- * rendering/RenderBox.h:
- * rendering/RenderButton.cpp:
- (WebCore::RenderButton::paintObject):
- * rendering/RenderFieldset.cpp:
- (WebCore::RenderFieldset::paintBoxDecorations):
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::paintObject):
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::continuationBefore):
- (WebCore::RenderFlow::addChildWithContinuation):
- (WebCore::RenderFlow::addChild):
- (WebCore::RenderFlow::attachLineBox):
- (WebCore::RenderFlow::destroy):
- (WebCore::RenderFlow::dirtyLinesFromChangedChild):
- (WebCore::RenderFlow::dirtyLineBoxes):
- (WebCore::RenderFlow::createInlineBox):
- (WebCore::RenderFlow::paintLines):
- (WebCore::RenderFlow::getAbsoluteRepaintRect):
- (WebCore::RenderFlow::lowestPosition):
- (WebCore::RenderFlow::rightmostPosition):
- (WebCore::RenderFlow::leftmostPosition):
- (WebCore::RenderFlow::caretRect):
- (WebCore::RenderFlow::addFocusRingRects):
- (WebCore::RenderFlow::paintOutline):
- (WebCore::RenderFlow::paintOutlineForLine):
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- * rendering/RenderHTMLCanvas.cpp:
- (WebCore::RenderHTMLCanvas::paint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::paintLayer):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::paintObject):
- (WebCore::RenderListBox::paintScrollbar):
- (WebCore::RenderListBox::paintItemForeground):
- (WebCore::RenderListBox::paintItemBackground):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::paintObject):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::paint):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::PaintInfo::PaintInfo):
- (WebCore::RenderObject::paintBoxDecorations):
- (WebCore::RenderObject::paintingRootForChildren):
- (WebCore::RenderObject::shouldPaintWithinRoot):
- (WebCore::RenderObject::printBoxDecorations):
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * rendering/RenderReplaced.cpp:
- (WebCore::RenderReplaced::shouldPaint):
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * rendering/RenderSVGContainer.h:
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint):
- * rendering/RenderSVGText.h:
- (WebCore::RenderSVGText::renderName):
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::paint):
- (WebCore::RenderTable::paintBoxDecorations):
- * rendering/RenderTable.h:
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::paint):
- (WebCore::RenderTableCell::paintBackgroundsBehindCell):
- (WebCore::RenderTableCell::paintBoxDecorations):
- * rendering/RenderTableCell.h:
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::paint):
- * rendering/RenderTableRow.h:
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::paint):
- * rendering/RenderTableSection.h:
- (WebCore::RenderTableSection::getBaseline):
- (WebCore::RenderTableSection::setNeedCellRecalc):
- * rendering/RenderText.h:
- (WebCore::RenderText::renderName):
- (WebCore::RenderText::paint):
- (WebCore::RenderText::element):
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::paint):
- (WebCore::RenderTheme::paintBorderOnly):
- (WebCore::RenderTheme::paintDecorations):
- * rendering/RenderTheme.h:
- (WebCore::RenderTheme::RenderTheme):
- (WebCore::RenderTheme::~RenderTheme):
- (WebCore::RenderTheme::controlSupportsTints):
- (WebCore::RenderTheme::adjustRepaintRect):
- (WebCore::RenderTheme::themeChanged):
- (WebCore::RenderTheme::supportsHover):
- (WebCore::RenderTheme::paintCheckbox):
- (WebCore::RenderTheme::setCheckboxSize):
- (WebCore::RenderTheme::paintRadio):
- (WebCore::RenderTheme::setRadioSize):
- (WebCore::RenderTheme::paintButton):
- (WebCore::RenderTheme::setButtonSize):
- (WebCore::RenderTheme::paintTextField):
- (WebCore::RenderTheme::paintTextArea):
- (WebCore::RenderTheme::paintMenuList):
- (WebCore::RenderTheme::paintMenuListButton):
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintCheckbox):
- (WebCore::RenderThemeMac::paintRadio):
- (WebCore::RenderThemeMac::paintButton):
- (WebCore::RenderThemeMac::paintTextField):
- (WebCore::RenderThemeMac::paintTextArea):
- (WebCore::RenderThemeMac::paintMenuList):
- (WebCore::RenderThemeMac::paintMenuListButtonGradients):
- (WebCore::RenderThemeMac::paintMenuListButton):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::paint):
- (WebCore::RenderView::paintBoxDecorations):
- * rendering/RenderView.h:
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::paint):
- * rendering/RenderWidget.h:
- (WebCore::RenderWidget::isWidget):
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::paintEllipsisBox):
- (WebCore::RootInlineBox::paintCustomHighlight):
- (WebCore::RootInlineBox::paint):
- (WebCore::RootInlineBox::fillLineSelectionGap):
- * rendering/RootInlineBox.h:
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-11-01 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Oliver, Brady.
- * platform/network/ResourceResponse.h:
- (WebCore::ResourceResponse::setLastModifiedDate):
- (WebCore::ResourceResponse::lastModifiedDate):
- Add getters and setters for last modified dadte.
-
- * platform/network/cf/ResourceResponseCFNet.cpp:
- (WebCore::getResourceResponse):
- Fetch the last modified date. Add correct offset to expired date.
- 2006-11-01 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Mitz.
- Added missing "break;" statement in switch statement from r17493.
- Bug 11442: [CSS 3] support for cursor: all-scroll
- http://bugs.webkit.org/show_bug.cgi?id=11442
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- 2006-10-31 Mitz Pettel <mitz@webkit.org>
- Reviewed by Maciej.
- - fix image dragging
- This is covered by editing/selection/drag-to-contenteditable-iframe.html
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::altDisplayString): Changed imageTag to imgTag, for
- HTML IMG elements.
- (WebCore::HitTestResult::absoluteImageURL): Ditto.
- 2006-10-31 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- This adds the back-end of the remaining WebElementDictionary
- functions into HitTestResult.
- * WebCore.exp:
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::title):
- (WebCore::displayString): This is nearly identical to the
- displayString() defined in DOMInternal.mm except that it returns a
- String instead of an NSString. The old code path used the
- DOMInternal method, so I made a new one here for the new code path.
- (WebCore::HitTestResult::altDisplayString):
- (WebCore::HitTestResult::image):
- (WebCore::HitTestResult::absoluteImageURL):
- (WebCore::HitTestResult::absoluteLinkURL):
- (WebCore::HitTestResult::titleDisplayString):
- (WebCore::HitTestResult::textContent):
- * rendering/HitTestResult.h:
- 2006-10-31 John Sullivan <sullivan@apple.com>
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::markMisspellings):
- Tiger build fix: added an #ifndef BUILDING_ON_TIGER where one was needed.
- 2006-10-31 John Sullivan <sullivan@apple.com>
- Reviewed by Maciej
-
- - fixed <rdar://problem/4804627> ToolTips do not appear for grammar suggestions
-
- The foundation of this was in my last checkin. This checkin is all about displaying
- the correct string in the toolTip.
- * dom/DocumentMarker.h:
- New description field in this struct.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- When adding a grammar marker, supply the appropriate description. Also, added a comment
- about the remaining work to make grammar checking return sensible answers.
- (WebCore::FrameMac::markMisspellings):
- ditto (yes, still needs some refactoring to minimize duplicated code)
-
- * dom/Document.h:
- * dom/Document.cpp:
- (WebCore::Document::addMarker):
- Now takes an optional description string
- (WebCore::Document::markerContainingPoint):
- New function, returns a pointer to the (first) marker of the specified type whose rect
- contains the specified point, or 0 if none.
-
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::spellingToolTip):
- Replaced hardwired string placeholder implementation with code that uses markerContainingPoint
- and gets the description from the marker.
- 2006-10-31 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
-
- Fixed crash resulting from Darin's last patch to remove BrowserExtension.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::createWindow):
- * manual-tests/window-open-features-parsing.html: Updated for clarity.
- 2006-10-31 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Alice.
- Moved some Editing code from WebKit, the bridge, and WebCore::Frame down
- to WebCore::Editor.
-
- Layout tests pass.
-
- Renamed "may*" to "can*" because "can" is more accurate (these functions
- aren't just about permission) and it matches WebKit.
- (WebCore::FrameMac::handleMouseMoveEvent): Directly test for dragging in a
- password field. Now that WebCore fully implements canCopy(), it doesn't just
- mean "the selection is not in a password field" anymore.
- (-[WebCoreFrameBridge _shouldAllowAccessFrom:]): Removed this #ifed-out code.
- The fact that it's not called anymore may represent a security issue, but I
- don't see how commented-out code will help reveal the issue, and the
- bridge is going away, anyway.
- * editing/SelectionController.h: Changed selection() calls to references
- to m_sel, to match the rest of the file.
- 2006-10-31 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4711063>
- Pasting 10K lines into Mail/Blot takes ~7sec, in TextEdit it takes ~1.5sec
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::ReplacementFragment): Don't do the test
- insertion and plain text string creation unless we need the string
- for a BeforeTextInserted event handler or for a plain text only region.
- (WebCore::ReplacementFragment::removeInterchangeNodes): Added, moved
- code here from ReplacementFragment's constructor.
- (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Added a
- FIXME.
- * editing/ReplaceSelectionCommand.h:
- 2006-10-31 Ada Chan <adachan@apple.com>
- Reviewed by Adam
- Correct forward declarations of the HitTestRequest struct.
- * rendering/EllipsisBox.h:
- * rendering/InlineBox.h:
- * rendering/InlineFlowBox.h:
- * rendering/RenderLayer.h:
- * rendering/RenderObject.h:
- 2006-10-31 John Sullivan <sullivan@apple.com>
- Reviewed by Beth and Adam
- Support for displaying tooltips for bad grammar. Currently this always displays the same tooltip;
- next I'll make it use a string that's relevant for a specific grammar error.
- * WebCore.exp:
- export symbol for spellingToolTip function
-
- * rendering/HitTestResult.h:
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::spellingToolTip):
- new function, returns the string to be used in a tool tip that describes the questionable grammar
-
- * rendering/InlineTextBox.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
- now takes a style and font, needed to compute the rect representing the range containing
- questionable grammar. Computes the rect and associates it with the marker.
- (WebCore::InlineTextBox::paintDocumentMarkers):
- Pass in the style and font now needed by paintSpellingOrGrammarMarker
- 2006-10-31 Adele Peterson <adele@apple.com>
- Removed commented out variable from last checkin.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
- 2006-10-31 Brady Eidson <beidson@apple.com>
- Build fix (unused variable in release builds)
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
- 2006-10-31 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=11127 NativeListBox: arrow and drag selection should pivot around one list item
- and http://bugs.webkit.org/show_bug.cgi?id=11173 REGRESSION (NativeListBox): Shift-clicking items in list box doesn't expand the current selection
- and http://bugs.webkit.org/show_bug.cgi?id=11417 REGRESSION: onchange does not fire for list-style select elements
- Tests:
- * LayoutTests/fast/forms/listbox-selection.html
- * LayoutTests/fast/forms/listbox-onchange.html
- * html/HTMLSelectElement.h: Added m_selectedListIndexBase and m_selectedListIndexExtent to track indices for the active selection in progress.
- 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.
- And one for onChange, that is updated after onChange is fired.
- Added m_activeSelectionState to keep track of whether the current drag selection is selecting or deselecting.
-
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::HTMLSelectElement): Initialized new variables.
- (WebCore::HTMLSelectElement::setSelectedIndex): If needed, initialize m_selectedListIndexBase and m_selectedListIndexExtent.
- (WebCore::HTMLSelectElement::dispatchBlurEvent): Only fire the onChange event here for menu lists.
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Updates base and extent variables for mouse and key events.
- (WebCore::HTMLSelectElement::setBase): Added. Also caches the selection state.
- (WebCore::HTMLSelectElement::setExtent): Added.
- (WebCore::HTMLSelectElement::updateListBoxSelection): Added.
- (WebCore::HTMLSelectElement::listBoxOnChange): Added.
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::updateFromElement): Only scroll to reveal the first index if both the first and last indices aren't visible.
- (WebCore::RenderListBox::listIndexAtOffset): Added. Replaces optionAtPoint, which is no longer used.
- (WebCore::RenderListBox::autoscroll): Now sets the selection using the select's base and extent.
- (WebCore::RenderListBox::stopAutoscroll): Added. Tells the select element to fire onChange. This is needed because the autoscroll can end from a mouseUp
- 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
- notify the select element from here.
- (WebCore::RenderListBox::scrollToRevealElementAtListIndex): Checks new listIndexIsVisible method.
- (WebCore::RenderListBox::listIndexIsVisible): Added.
- (WebCore::RenderListBox::valueChanged): Removed unnecessary printf.
- * page/Frame.cpp: (WebCore::Frame::stopAutoscrollTimer): Added rendererIsBeingDestroyed argument, so when the renderer calls this during destruction,
- 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.
- * rendering/RenderListBox.h: (WebCore::RenderListBox::shouldAutoscroll): Always returns true now, since we're also updating selection from the autoscroll timer.
- * rendering/RenderObject.h: (WebCore::RenderObject::stopAutoscroll): Added.
- * rendering/RenderObject.cpp: (WebCore::RenderObject::destroy): Calls stopAutoscrollTimer with rendererIsBeingDestroyed argument.
- 2006-10-31 Beth Dakin <bdakin@apple.com>
- Forgot to check this in a minute ago. Oops!! Thanks Mitz!
- * rendering/HitTestRequest.h: Added.
- (WebCore::HitTestRequest::HitTestRequest):
- 2006-10-31 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11461 HitTestResult
- should be split into HitTestRequest and HitTestResult
- This patch creates a new struct called HitTestRequest that holds
- the three boolean values (readonly, active, and mouseMove) that
- were formerly a part of HitTestResult. All hitTest() and
- nodeAtPoint() functions now take a HitTestRequest in addition to
- the HitTestResult.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::eventMayStartDrag):
- (WebCore::FrameMac::handleMouseMoveEvent):
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject doAXTextMarkerForPosition:]):
- (-[WebCoreAXObject accessibilityHitTest:]):
- * dom/Document.cpp:
- (WebCore::Document::elementFromPoint):
- (WebCore::Document::prepareMouseEvent):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::contains):
- * page/Frame.cpp:
- (WebCore::Frame::hitTestResultAtPoint):
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::nodeAtPoint):
- * rendering/EllipsisBox.h:
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::HitTestResult):
- (WebCore::HitTestResult::operator=):
- * rendering/HitTestResult.h:
- * rendering/InlineBox.cpp:
- (WebCore::InlineBox::nodeAtPoint):
- * rendering/InlineBox.h:
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::nodeAtPoint):
- * rendering/InlineFlowBox.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::nodeAtPoint):
- * rendering/InlineTextBox.h:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::nodeAtPoint):
- * rendering/RenderBlock.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::nodeAtPoint):
- * rendering/RenderBox.h:
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::hitTestLines):
- * rendering/RenderFlow.h:
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::nodeAtPoint):
- * rendering/RenderForeignObject.h:
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::nodeAtPoint):
- * rendering/RenderFrameSet.h:
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::nodeAtPoint):
- * rendering/RenderImage.h:
- * rendering/RenderInline.cpp:
- (WebCore::RenderInline::nodeAtPoint):
- * rendering/RenderInline.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll):
- (WebCore::RenderLayer::hitTest):
- (WebCore::RenderLayer::hitTestLayer):
- (WebCore::RenderLayer::updateHoverActiveState):
- * rendering/RenderLayer.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::hitTest):
- (WebCore::RenderObject::nodeAtPoint):
- * rendering/RenderObject.h:
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::nodeAtPoint):
- * rendering/RenderPath.h:
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::nodeAtPoint):
- * rendering/RenderSVGImage.h:
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::nodeAtPoint):
- * rendering/RenderSVGText.h:
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::nodeAtPoint):
- * rendering/RenderTableRow.h:
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::nodeAtPoint):
- * rendering/RenderTableSection.h:
- * rendering/RenderText.h:
- (WebCore::RenderText::nodeAtPoint):
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::nodeAtPoint):
- * rendering/RenderTextControl.h:
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::nodeAtPoint):
- * rendering/RootInlineBox.h:
- 2006-10-31 Lars Naesbye Christensen <lars@naesbye.dk>
- Reviewed by Maciej.
- Bug 11442: [CSS 3] support for cursor: all-scroll
- http://bugs.webkit.org/show_bug.cgi?id=11442
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * rendering/RenderStyle.h:
- 2006-10-31 Oliver Hunt <oliver@apple.com>
- Reviewed by Geoff.
- Converting Obj-C++ to C++ in kcanvas
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/device/quartz/KCanvasFilterQuartz.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- * kcanvas/device/quartz/KCanvasItemQuartz.cpp: Added.
- * kcanvas/device/quartz/KCanvasItemQuartz.mm: Removed.
- * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp: Added.
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: Removed.
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
- * kcanvas/device/quartz/QuartzSupport.cpp: Added.
- * kcanvas/device/quartz/QuartzSupport.h:
- * kcanvas/device/quartz/QuartzSupport.mm: Removed.
- * platform/graphics/svg/cg/SVGResourceClipperCg.cpp: Added.
- (WebCore::SVGResourceClipper::applyClip):
- * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Removed.
- * platform/graphics/svg/cg/SVGResourceImageCg.cpp: Added.
- * platform/graphics/svg/cg/SVGResourceImageCg.mm: Removed.
- 2006-10-31 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4808375>
- REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) [11460}
-
- Completely back out r17276 because of performance issues.
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::TextIterator):
- (WebCore::TextIterator::advance):
- (WebCore::TextIterator::handleTextNode):
- (WebCore::TextIterator::handleTextBox):
- (WebCore::TextIterator::handleReplacedElement):
- (WebCore::TextIterator::handleNonTextNode):
- (WebCore::TextIterator::exitNode):
- (WebCore::TextIterator::emitCharacter):
- (WebCore::TextIterator::range):
- (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
- (WebCore::SimplifiedBackwardsTextIterator::advance):
- (WebCore::SimplifiedBackwardsTextIterator::handleTextNode):
- (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement):
- (WebCore::SimplifiedBackwardsTextIterator::emitCharacter):
- (WebCore::SimplifiedBackwardsTextIterator::emitNewline):
- (WebCore::SimplifiedBackwardsTextIterator::range):
- (WebCore::CharacterIterator::range):
- (WebCore::TextIterator::rangeFromLocationAndLength):
- * editing/TextIterator.h:
- (WebCore::TextIterator::atEnd):
- (WebCore::SimplifiedBackwardsTextIterator::atEnd):
- 2006-10-31 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - got "action dictionary" code out of FrameLoader,
- replacing with a class called NavigationAction
- * loader/DocumentLoader.h: Changed m_triggeringAction to a NavigationAction.
- * loader/mac/DocumentLoaderMac.mm:
- (WebCore::DocumentLoader::triggeringAction): Ditto.
- (WebCore::DocumentLoader::setTriggeringAction): Ditto.
- * loader/FrameLoader.h: Changed action parameters to NavigationAction.
- * loader/FrameLoaderClient.h: Changed action parameters to NavigationAction.
- Removed elementForEvent.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::load): Ditto.
- (WebCore::FrameLoader::reload): Ditto.
- (WebCore::FrameLoader::checkNewWindowPolicy): Ditto.
- (WebCore::FrameLoader::checkNavigationPolicy): Ditto.
- (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy): Ditto.
- (WebCore::FrameLoader::post): Ditto.
- * loader/NavigationAction.h: Added.
- * loader/NavigationAction.cpp: Added.
- * loader/mac/NavigationActionMac.mm: Added.
- * loader/mac/MainResourceLoaderMac.mm: Fixed copyright.
- * WebCore.xcodeproj/project.pbxproj: Updated for new files.
- * WebCore.exp: Updated.
- 2006-10-31 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam.
- Build fix
- * platform/win/CookieJarWin.cpp:
- (WebCore::cookies):
- 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej. Landed by Adam.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11463
- Move KCanvasTreeDebug into rendering, named as SVGRenderTreeAsText.*,
- as dicussed with Dave. Also kill the outdated DESIGN document.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/DESIGN: Removed.
- * kcanvas/KCanvasFilters.cpp:
- * kcanvas/KCanvasTreeDebug.cpp: Moved to rendering/SVGRenderTreeAsText
- * kcanvas/KCanvasTreeDebug.h: Ditto.
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- * platform/graphics/svg/SVGResourceClipper.cpp:
- * rendering/RenderTreeAsText.cpp:
- * rendering/SVGRenderTreeAsText.cpp: Added.
- * rendering/SVGRenderTreeAsText.h: Added.
- (WebCore::operator<<):
- 2006-10-31 Darin Fisher <darin@chromium.org>
- Reviewed by Maciej.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=11286
- Includes some CRLF -> LF fixups.
- * platform/win/CookieJarWin.cpp:
- (WebCore::cookies):
- 2006-10-31 Adam Roben <aroben@apple.com>
- Reviewed by Steve.
- Fix some incorrect forward declarations.
- * loader/FrameLoader.h:
- * page/Frame.h:
- 2006-10-31 Darin Adler <darin@apple.com>
- * WebCore.xcodeproj/project.pbxproj: Change GraphicsTypes.h to a private header to
- try to fix the build on the buildbot.
- 2006-10-31 Darin Adler <darin@apple.com>
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling): Build fix for release Tiger builds.
- (WebCore::FrameMac::markMisspellings): Ditto.
- 2006-10-31 John Sullivan <sullivan@apple.com>
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- build fix: needed #ifndef BUILDING_ON_TIGER in one more place
- 2006-10-30 John Sullivan <sullivan@apple.com>
- Reviewed by Adam Roben
-
- - fixes <rdar://problem/4804614> Bad grammar ranges are not visibly marked
-
- This patch introduces much of the guts of grammar checking, though still not enough to actually
- check grammar sensibly, due to:
-
- <rdar://problem/4811175> Many false reports of bad grammar appear, caused by insufficient
- context passed to grammar checker
- * platform/Logging.h:
- * platform/Logging.cpp:
- new log channel SpellingAndGrammar
- * bridge/mac/WebCorePageBridge.mm:
- (initializeLoggingChannelsIfNecessary):
- initialize new log channel
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- Compute bad grammar range when computing misspelling range. Find first detailed grammar range from the
- set NSSpellChecker determines. Compare it with misspelling range to see which is earliest (or shortest
- in the event of a tie), and do further processing with that one (select range; create marker that
- causes range to be visibly marked with a funky underline; update spelling panel appropriately).
- (WebCore::FrameMac::markMisspellings):
- More or less the same types of changes as in advanceToNextMisspelling The loops are structured just
- differently enough to make sharing code between these two functions a little tricky, so I decided to
- save that for a later patch.
-
- (WebCore::FrameMac::respondToChangedSelection):
- remove grammar markers when we remove spelling markers
- 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz.
- Fix Qt/Linux build with older gcc3.3.4.
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction):
- 2006-10-31 Zack Rusin <zack@kde.org>
- Reviewed by Mitz.
- Fix the Qt build after last nights changes.
- * WebCore/platform/qt/FrameQt.cpp:
- * WebCore/platform/qt/EditorClientQt.h:
- * WebCore/platform/qt/EditorClientQt.cpp:
- * WebCore/platform/graphics/svg/qt/SVGResourceImageQt.cpp:
- * WebCore/platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
- * WebCore/CMakeLists.txt:
- * WebCore/kcanvas/device/qt/KRenderingDeviceQt.cpp:
- * WebKitQt/QtLauncher/CMakeLists.txt:
- * WebKitQt/WebKitPart/CMakeLists.txt:
- 2006-10-30 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - remove BrowserExtension
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_window.cpp:
- (KJS::createNewWindow):
- (KJS::WindowFunc::callAsFunction):
- * bridge/BrowserExtension.h: Removed.
- * bridge/mac/BrowserExtensionMac.h: Removed.
- * bridge/mac/BrowserExtensionMac.mm: Removed.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac):
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::urlSelected):
- * bridge/win/BrowserExtensionWin.cpp: Removed.
- * bridge/win/BrowserExtensionWin.h: Removed.
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- * loader/FrameLoader.cpp:
- (WebCore::FrameLoader::createWindow):
- * loader/FrameLoader.h:
- * loader/icon/IconLoader.cpp:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::createWindow):
- * page/Frame.cpp:
- (WebCore::Frame::urlSelected):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::submitForm):
- (WebCore::Frame::scheduleHistoryNavigation):
- (WebCore::Frame::redirectionTimerFired):
- * page/Frame.h:
- * page/FrameLoadRequest.h:
- (WebCore::FrameLoadRequest::FrameLoadRequest):
- (WebCore::FrameLoadRequest::isEmpty):
- (WebCore::FrameLoadRequest::resourceRequest):
- (WebCore::FrameLoadRequest::frameName):
- (WebCore::FrameLoadRequest::setFrameName):
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- (WebCore::FramePrivate::~FramePrivate):
- * platform/gdk/BrowserExtensionGdk.h: Removed.
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::FrameGdk):
- * platform/gdk/TemporaryLinkStubs.cpp:
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::isEmpty):
- 2006-10-31 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Modified from original due to earlier reversion
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11436
- Better SVG integration in WebKit, Part I.
- The patch is mostly about creating a new platform/graphics directory, and
- moving the kcanvas resources (clipper/masker/marker) there (in svg budir),
- with a new name (KCanvasClipper -> SVGResourceClipper). Also fix several ownership
- issues, by using ref counting (the SVG classes now store RefPtrs to the resources).
- KCanvasFilters is still left in kcanvas/ subdirectory, to be converted in a next patch.
- All details of the patch, and upcoming patches can be found in the bug report.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * graphics/svg/SVGResource.cpp: Removed.
- * graphics/svg/SVGResourceClipper.cpp: Removed.
- * graphics/svg/SVGResourceClipper.h: Removed.
- * graphics/svg/SVGResourceImage.h: Removed.
- * graphics/svg/SVGResourceListener.h: Removed.
- * graphics/svg/SVGResourceMarker.cpp: Removed.
- * graphics/svg/SVGResourceMarker.h: Removed.
- * graphics/svg/SVGResourceMasker.cpp: Removed.
- * graphics/svg/SVGResourceMasker.h: Removed.
- * kcanvas/KCanvasClipper.cpp: Removed.
- * kcanvas/KCanvasClipper.h: Removed.
- * kcanvas/KCanvasCreator.cpp: Removed.
- * kcanvas/KCanvasCreator.h: Removed.
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::getFilterById):
- * kcanvas/KCanvasFilters.h:
- * kcanvas/KCanvasImage.h: Removed.
- * kcanvas/KCanvasMarker.cpp: Removed.
- * kcanvas/KCanvasMarker.h: Removed.
- * kcanvas/KCanvasMasker.cpp: Removed.
- * kcanvas/KCanvasMasker.h: Removed.
- * kcanvas/KCanvasResource.cpp: Removed.
- * kcanvas/KCanvasResource.h: Removed.
- * kcanvas/KCanvasResourceListener.h: Removed.
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::writeRenderResources):
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingPaintServer.h:
- (WebCore::KRenderingPaintServer::KRenderingPaintServer):
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- (WebCore::KRenderingPaintServerGradient::listener):
- (WebCore::KRenderingPaintServerGradient::setListener):
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::tile):
- (WebCore::KRenderingPaintServerPattern::setTile):
- (WebCore::KRenderingPaintServerPattern::listener):
- (WebCore::KRenderingPaintServerPattern::setListener):
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/qt/KCanvasClipperQt.cpp: Removed.
- * kcanvas/device/qt/KCanvasClipperQt.h:
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceQt::contextForImage):
- (WebCore::KRenderingDeviceQt::createResource):
- (WebCore::KRenderingDeviceQt::createPaintServer):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
- * kcanvas/device/qt/RenderPathQt.h: Removed.
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::getCIFilterStack):
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- * kcanvas/device/quartz/KCanvasMaskerQuartz.h: Removed.
- * kcanvas/device/quartz/KCanvasMaskerQuartz.mm: Removed.
- * kcanvas/device/quartz/KCanvasResourcesQuartz.h: Removed.
- * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: Removed.
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceQuartz::contextForImage):
- (WebCore::KRenderingDeviceQuartz::createPaintServer):
- (WebCore::KRenderingDeviceQuartz::createResource):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
- (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
- (WebCore::KRenderingPaintServerGradientQuartz::setup):
- (WebCore::KRenderingPaintServerGradientQuartz::teardown):
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::patternCallback):
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- * kcanvas/device/quartz/QuartzSupport.mm:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::sharedSolidPaintServer):
- * ksvg2/svg/SVGClipPathElement.cpp:
- (WebCore::SVGClipPathElement::SVGClipPathElement):
- (WebCore::SVGClipPathElement::~SVGClipPathElement):
- (WebCore::SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::SVGFilterElement):
- (WebCore::SVGFilterElement::~SVGFilterElement):
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::SVGGradientElement):
- (WebCore::SVGGradientElement::~SVGGradientElement):
- (WebCore::SVGGradientElement::canvasResource):
- (WebCore::SVGGradientElement::resourceNotification):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::~SVGMarkerElement):
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::~SVGMaskElement):
- (WebCore::SVGMaskElement::drawMaskerContent):
- (WebCore::SVGMaskElement::canvasResource):
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::~SVGPatternElement):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::canvasResource):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- (WebCore::SVGStyledElement::canvasResource):
- * platform/GraphicsContext.cpp: Removed.
- * platform/GraphicsContext.h: Removed.
- * platform/GraphicsTypes.cpp: Removed.
- * platform/GraphicsTypes.h: Removed.
- * platform/graphics/GraphicsContext.cpp:
- (WebCore::GraphicsContextState::GraphicsContextState):
- (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
- (WebCore::GraphicsContext::createGraphicsContextPrivate):
- (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
- (WebCore::GraphicsContext::save):
- (WebCore::GraphicsContext::restore):
- (WebCore::GraphicsContext::font):
- (WebCore::GraphicsContext::setFont):
- (WebCore::GraphicsContext::pen):
- (WebCore::GraphicsContext::setPen):
- (WebCore::GraphicsContext::setFillColor):
- (WebCore::GraphicsContext::fillColor):
- (WebCore::GraphicsContext::updatingControlTints):
- (WebCore::GraphicsContext::setUpdatingControlTints):
- (WebCore::GraphicsContext::setPaintingDisabled):
- (WebCore::GraphicsContext::paintingDisabled):
- (WebCore::GraphicsContext::drawImage):
- (WebCore::GraphicsContext::drawText):
- (WebCore::GraphicsContext::drawHighlightForText):
- (WebCore::GraphicsContext::initFocusRing):
- (WebCore::GraphicsContext::clearFocusRing):
- (WebCore::GraphicsContext::focusRingBoundingRect):
- (WebCore::GraphicsContext::addFocusRingRect):
- (WebCore::GraphicsContext::focusRingWidth):
- (WebCore::GraphicsContext::focusRingOffset):
- (WebCore::GraphicsContext::focusRingRects):
- (WebCore::GraphicsContext::drawTiledImage):
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/GraphicsTypes.cpp:
- (WebCore::):
- (WebCore::parseCompositeOperator):
- (WebCore::compositeOperatorName):
- (WebCore::parseLineCap):
- (WebCore::lineCapName):
- (WebCore::parseLineJoin):
- (WebCore::lineJoinName):
- * platform/graphics/GraphicsTypes.h:
- (WebCore::):
- * platform/graphics/svg/SVGResource.cpp: Added.
- (WebCore::SVGResource::SVGResource):
- (WebCore::SVGResource::~SVGResource):
- (WebCore::SVGResource::invalidate):
- (WebCore::SVGResource::addClient):
- (WebCore::SVGResource::clients):
- (WebCore::SVGResource::idInRegistry):
- (WebCore::SVGResource::setIdInRegistry):
- (WebCore::SVGResource::externalRepresentation):
- (WebCore::getResourceById):
- (WebCore::getPaintServerById):
- (WebCore::operator<<):
- * platform/graphics/svg/SVGResource.h: Added.
- (WebCore::):
- (WebCore::SVGResource::isPaintServer):
- (WebCore::SVGResource::isFilter):
- (WebCore::SVGResource::isClipper):
- (WebCore::SVGResource::isMarker):
- (WebCore::SVGResource::isMasker):
- (WebCore::SVGResourceListener::~SVGResourceListener):
- * platform/graphics/svg/SVGResourceClipper.cpp: Added.
- (WebCore::SVGResourceClipper::SVGResourceClipper):
- (WebCore::SVGResourceClipper::~SVGResourceClipper):
- (WebCore::SVGResourceClipper::resetClipData):
- (WebCore::SVGResourceClipper::addClipData):
- (WebCore::SVGResourceClipper::clipData):
- (WebCore::SVGResourceClipper::externalRepresentation):
- (WebCore::operator<<):
- (WebCore::getClipperById):
- * platform/graphics/svg/SVGResourceClipper.h: Added.
- (WebCore::ClipDataList::addPath):
- (WebCore::SVGResourceClipper::isClipper):
- * platform/graphics/svg/SVGResourceImage.h: Added.
- * platform/graphics/svg/SVGResourceMarker.cpp: Added.
- (WebCore::SVGResourceMarker::SVGResourceMarker):
- (WebCore::SVGResourceMarker::~SVGResourceMarker):
- (WebCore::SVGResourceMarker::setMarker):
- (WebCore::SVGResourceMarker::setRef):
- (WebCore::SVGResourceMarker::draw):
- (WebCore::SVGResourceMarker::externalRepresentation):
- (WebCore::getMarkerById):
- * platform/graphics/svg/SVGResourceMarker.h: Added.
- (WebCore::SVGResourceMarker::refX):
- (WebCore::SVGResourceMarker::refY):
- (WebCore::SVGResourceMarker::setAngle):
- (WebCore::SVGResourceMarker::setAutoAngle):
- (WebCore::SVGResourceMarker::angle):
- (WebCore::SVGResourceMarker::setUseStrokeWidth):
- (WebCore::SVGResourceMarker::useStrokeWidth):
- (WebCore::SVGResourceMarker::isMarker):
- * platform/graphics/svg/SVGResourceMasker.cpp: Added.
- (WebCore::SVGResourceMasker::SVGResourceMasker):
- (WebCore::SVGResourceMasker::~SVGResourceMasker):
- (WebCore::SVGResourceMasker::setMask):
- (WebCore::SVGResourceMasker::mask):
- (WebCore::SVGResourceMasker::externalRepresentation):
- (WebCore::getMaskerById):
- * platform/graphics/svg/SVGResourceMasker.h: Added.
- (WebCore::SVGResourceMasker::isMasker):
- * platform/graphics/svg/cg/SVGResourceClipperCg.mm: Added.
- (WebCore::SVGResourceClipper::applyClip):
- * platform/graphics/svg/cg/SVGResourceImageCg.mm: Added.
- (WebCore::SVGResourceImage::SVGResourceImage):
- (WebCore::SVGResourceImage::~SVGResourceImage):
- (WebCore::SVGResourceImage::init):
- (WebCore::SVGResourceImage::size):
- (WebCore::SVGResourceImage::cgLayer):
- (WebCore::SVGResourceImage::setCGLayer):
- * platform/graphics/svg/cg/SVGResourceMaskerCg.mm: Added.
- (WebCore::applyLuminanceToAlphaFilter):
- (WebCore::applyExpandAlphatoGrayscaleFilter):
- (WebCore::transformImageIntoGrayscaleMask):
- (WebCore::SVGResourceMasker::applyMask):
- * platform/graphics/svg/qt/SVGResourceClipperQt.cpp: Added.
- (WebCore::SVGResourceClipper::applyClip):
- * platform/graphics/svg/qt/SVGResourceImageQt.cpp: Added.
- (WebCore::SVGResourceImage::init):
- (WebCore::SVGResourceImage::size):
- * platform/graphics/svg/qt/SVGResourceMaskerQt.cpp: Added.
- (WebCore::SVGResourceMasker::applyMask):
- * platform/qt/GraphicsContextQt.cpp:
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- (WebCore::DrawMarkersData::DrawMarkersData):
- (WebCore::RenderPath::drawMarkersIfNeeded):
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-10-30 John Sullivan <sullivan@apple.com>
- Reviewed by Brady
-
- - minor cleanup to make future patches clearer
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- renamed misspelling to misspellingNSRange for clarity; changed > 0 test to == 0 test
- with "continue" to better match structure of similar code in markMisspellings; a few
- other style tweaks.
-
- (WebCore::FrameMac::markMisspellings):
- renamed misspelling to misspellingNSRange for clarity; removed unnecessary braces around
- a block just after a break and outdented accordingly.
- 2006-10-30 John Sullivan <sullivan@apple.com>
- Reviewed by Geoff Garen
-
- WebCore part of change to push the code that updates the spelling panel
- into WebCore, in preparation for some grammar-checking stuff.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- no more return value for this method, and update the spelling panel with
- the misspelled word here rather than in the WebKit callers.
- 2006-10-30 Oliver Hunt <oliver@apple.com>
- Reviewed by Anders.
- Roll out last patch
- * CMakeLists.txt:
- * ChangeLog:
- * WebCore.xcodeproj/project.pbxproj:
- * graphics/svg/SVGResource.cpp:
- * graphics/svg/SVGResourceClipper.cpp:
- * graphics/svg/SVGResourceClipper.h:
- * graphics/svg/SVGResourceImage.h:
- * graphics/svg/SVGResourceListener.h:
- * graphics/svg/SVGResourceMarker.cpp:
- * graphics/svg/SVGResourceMarker.h:
- * graphics/svg/SVGResourceMasker.cpp:
- * graphics/svg/SVGResourceMasker.h:
- * kcanvas/KCanvasClipper.cpp: Added.
- (WebCore::operator<<):
- (WebCore::KCanvasClipper::KCanvasClipper):
- (WebCore::KCanvasClipper::~KCanvasClipper):
- (WebCore::KCanvasClipper::resetClipData):
- (WebCore::KCanvasClipper::addClipData):
- (WebCore::KCanvasClipper::clipData):
- (WebCore::KCanvasClipper::externalRepresentation):
- (WebCore::getClipperById):
- * kcanvas/KCanvasClipper.h: Added.
- (WebCore::KCClipData::windRule):
- (WebCore::KCClipDataList::KCClipDataList):
- (WebCore::KCClipDataList::addPath):
- (WebCore::KCanvasClipper::isClipper):
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::getFilterById):
- * kcanvas/KCanvasFilters.h:
- * kcanvas/KCanvasImage.h: Added.
- (WebCore::KCanvasImage::KCanvasImage):
- (WebCore::KCanvasImage::~KCanvasImage):
- * kcanvas/KCanvasMarker.cpp: Added.
- (WebCore::KCanvasMarker::KCanvasMarker):
- (WebCore::KCanvasMarker::~KCanvasMarker):
- (WebCore::KCanvasMarker::setMarker):
- (WebCore::KCanvasMarker::setRef):
- (WebCore::KCanvasMarker::refX):
- (WebCore::KCanvasMarker::refY):
- (WebCore::KCanvasMarker::setAngle):
- (WebCore::KCanvasMarker::angle):
- (WebCore::KCanvasMarker::setAutoAngle):
- (WebCore::KCanvasMarker::setUseStrokeWidth):
- (WebCore::KCanvasMarker::useStrokeWidth):
- (WebCore::KCanvasMarker::draw):
- (WebCore::KCanvasMarker::externalRepresentation):
- (WebCore::getMarkerById):
- * kcanvas/KCanvasMarker.h: Added.
- (WebCore::KCanvasMarker::isMarker):
- * kcanvas/KCanvasMasker.cpp: Added.
- (WebCore::KCanvasMasker::KCanvasMasker):
- (WebCore::KCanvasMasker::~KCanvasMasker):
- (WebCore::KCanvasMasker::setMask):
- (WebCore::KCanvasMasker::externalRepresentation):
- (WebCore::getMaskerById):
- * kcanvas/KCanvasMasker.h: Added.
- (WebCore::KCanvasMasker::isMasker):
- (WebCore::KCanvasMasker::mask):
- * kcanvas/KCanvasResource.cpp: Added.
- (WebCore::operator<<):
- (WebCore::KCanvasResource::KCanvasResource):
- (WebCore::KCanvasResource::~KCanvasResource):
- (WebCore::KCanvasResource::addClient):
- (WebCore::KCanvasResource::clients):
- (WebCore::KCanvasResource::invalidate):
- (WebCore::KCanvasResource::idInRegistry):
- (WebCore::KCanvasResource::setIdInRegistry):
- (WebCore::KCanvasResource::externalRepresentation):
- (WebCore::getResourceById):
- (WebCore::getPaintServerById):
- * kcanvas/KCanvasResource.h:
- (WebCore::):
- (WebCore::KCanvasResource::isPaintServer):
- (WebCore::KCanvasResource::isFilter):
- (WebCore::KCanvasResource::isClipper):
- (WebCore::KCanvasResource::isMarker):
- (WebCore::KCanvasResource::isMasker):
- * kcanvas/KCanvasResourceListener.h: Added.
- (KCanvasResourceListener::KCanvasResourceListener):
- (KCanvasResourceListener::~KCanvasResourceListener):
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::writeRenderResources):
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingPaintServer.h:
- (WebCore::KRenderingPaintServer::KRenderingPaintServer):
- (WebCore::KRenderingPaintServer::idInRegistry):
- (WebCore::KRenderingPaintServer::setIdInRegistry):
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- (WebCore::KRenderingPaintServerGradient::listener):
- (WebCore::KRenderingPaintServerGradient::setListener):
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::tile):
- (WebCore::KRenderingPaintServerPattern::setTile):
- (WebCore::KRenderingPaintServerPattern::listener):
- (WebCore::KRenderingPaintServerPattern::setListener):
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/qt/KCanvasClipperQt.cpp:
- (WebCore::KCanvasClipperQt::applyClip):
- * kcanvas/device/qt/KCanvasClipperQt.h:
- (WebCore::KCanvasClipperQt::KCanvasClipperQt):
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceQt::contextForImage):
- (WebCore::KRenderingDeviceQt::createResource):
- (WebCore::KRenderingDeviceQt::createPaintServer):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::getCIFilterStack):
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
- (WebCore::KCanvasMaskerQuartz::KCanvasMaskerQuartz):
- * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
- (WebCore::applyLuminanceToAlphaFilter):
- (WebCore::applyExpandAlphatoGrayscaleFilter):
- (WebCore::transformImageIntoGrayscaleMask):
- (WebCore::KCanvasMaskerQuartz::applyMask):
- * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
- (WebCore::KCanvasClipperQuartz::KCanvasClipperQuartz):
- (WebCore::KCanvasImageQuartz::KCanvasImageQuartz):
- (WebCore::KCanvasImageQuartz::init):
- (WebCore::KCanvasImageQuartz::size):
- * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
- (WebCore::KCanvasClipperQuartz::applyClip):
- (WebCore::KCanvasImageQuartz::~KCanvasImageQuartz):
- (WebCore::KCanvasImageQuartz::cgLayer):
- (WebCore::KCanvasImageQuartz::setCGLayer):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceQuartz::contextForImage):
- (WebCore::KRenderingDeviceQuartz::createPaintServer):
- (WebCore::KRenderingDeviceQuartz::createResource):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
- (WebCore::KRenderingPaintServerGradientQuartz::~KRenderingPaintServerGradientQuartz):
- (WebCore::KRenderingPaintServerGradientQuartz::setup):
- (WebCore::KRenderingPaintServerGradientQuartz::teardown):
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::patternCallback):
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- * kcanvas/device/quartz/QuartzSupport.mm:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::sharedSolidPaintServer):
- * ksvg2/svg/SVGClipPathElement.cpp:
- (WebCore::SVGClipPathElement::SVGClipPathElement):
- (WebCore::SVGClipPathElement::~SVGClipPathElement):
- (WebCore::SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGFilterElement.cpp:
- (WebCore::SVGFilterElement::SVGFilterElement):
- (WebCore::SVGFilterElement::~SVGFilterElement):
- (WebCore::SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::SVGGradientElement):
- (WebCore::SVGGradientElement::~SVGGradientElement):
- (WebCore::SVGGradientElement::canvasResource):
- (WebCore::SVGGradientElement::resourceNotification):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::~SVGMarkerElement):
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::~SVGMaskElement):
- (WebCore::SVGMaskElement::drawMaskerContent):
- (WebCore::SVGMaskElement::canvasResource):
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::~SVGPatternElement):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::canvasResource):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- (WebCore::SVGStyledElement::canvasResource):
- * platform/GraphicsContext.cpp: Added.
- (WebCore::GraphicsContextState::GraphicsContextState):
- (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
- (WebCore::GraphicsContext::createGraphicsContextPrivate):
- (WebCore::GraphicsContext::destroyGraphicsContextPrivate):
- (WebCore::GraphicsContext::save):
- (WebCore::GraphicsContext::restore):
- (WebCore::GraphicsContext::font):
- (WebCore::GraphicsContext::setFont):
- (WebCore::GraphicsContext::pen):
- (WebCore::GraphicsContext::setPen):
- (WebCore::GraphicsContext::setFillColor):
- (WebCore::GraphicsContext::fillColor):
- (WebCore::GraphicsContext::updatingControlTints):
- (WebCore::GraphicsContext::setUpdatingControlTints):
- (WebCore::GraphicsContext::setPaintingDisabled):
- (WebCore::GraphicsContext::paintingDisabled):
- (WebCore::GraphicsContext::drawImage):
- (WebCore::GraphicsContext::drawText):
- (WebCore::GraphicsContext::drawHighlightForText):
- (WebCore::GraphicsContext::initFocusRing):
- (WebCore::GraphicsContext::clearFocusRing):
- (WebCore::GraphicsContext::focusRingBoundingRect):
- (WebCore::GraphicsContext::addFocusRingRect):
- (WebCore::GraphicsContext::focusRingWidth):
- (WebCore::GraphicsContext::focusRingOffset):
- (WebCore::GraphicsContext::focusRingRects):
- (WebCore::GraphicsContext::drawTiledImage):
- * platform/GraphicsContext.h: Added.
- * platform/GraphicsTypes.cpp: Added.
- (WebCore::):
- (WebCore::parseCompositeOperator):
- (WebCore::compositeOperatorName):
- (WebCore::parseLineCap):
- (WebCore::lineCapName):
- (WebCore::parseLineJoin):
- (WebCore::lineJoinName):
- * platform/GraphicsTypes.h: Added.
- (WebCore::):
- * platform/graphics/GraphicsContext.cpp:
- * platform/graphics/GraphicsContext.h:
- * platform/graphics/GraphicsTypes.cpp:
- * platform/graphics/GraphicsTypes.h:
- * platform/qt/GraphicsContextQt.cpp:
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- (WebCore::DrawMarkersData::DrawMarkersData):
- (WebCore::RenderPath::drawMarkersIfNeeded):
- * rendering/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * rendering/SVGInlineFlowBox.cpp:
- (WebCore::paintSVGInlineFlow):
- 2006-10-30 John Sullivan <sullivan@apple.com>
- Reviewed by Geoff Garen.
-
- Moved spelling-related methods from bridge to EditorClient. Added one not-yet-used
- grammar-related method.
- * bridge/EditorClient.h:
- declare isContinuousSpellCheckingEnabled(), spellCheckerDocumentTag(), and new
- isGrammarCheckingEnabled()
-
- * bridge/mac/WebCoreFrameBridge.h:
- removed bridge equivalents
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- convert bridge-using code to editor()->client()-using code
- (WebCore::FrameMac::markMisspellingsInAdjacentWords):
- ditto
- (WebCore::FrameMac::markMisspellings):
- ditto
- (WebCore::FrameMac::respondToChangedSelection):
- ditto
-
- * editing/Editor.h:
- * editing/Editor.cpp:
- (WebCore::Editor::client):
- new method, returns EditorClient pointer. In an ideal world all the code that needed to
- access the EditorClient would be in Editor.cpp, and we wouldn't need this accessor.
- But for now it's too tricky to extricate the spelling-related code from FrameMac.mm.
- 2006-10-30 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
- Removed a number of editing and selection methods from the bridge.
-
- I moved cross-platform editing and selection code into Editor and
- SelectionController, respecitvely.
- I moved ObjC and AppKit stuff up into WebKit, so I ended up exporting
- everything + the kitchen sink.
-
- Specific comments below for interesting things.
-
- * bindings/objc/DOMInternal.h: Moved exception handling helper methods into
- a new file so that WebKit can use them, too. Added a helper method for
- handling exceptions when selecting a Range.
- * bridge/mac/FrameMac.h: Moved attributedString creation and helper functions into
- WebKit, since they have to do with creating an NSAttributedString for API
- consumption, and not much to do with general Frame functionality.
- * editing/Editor.h: Moved lastEditCommand tracking (at least the data,
- for now) into the Editor. Eventually, the Frame will not have to notify
- the Editor of what the lastEditCommand was, since the Editor will perform
- all EditCommands.
- * editing/SelectionController.h: The code here is just stuff moved from the bridge.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelectedRange): We now explicitly check from DOM exceptions
- and return them. The bridge method to select a DOM range did this implicitly,
- since all ObjC DOM operations handle DOM exceptions by throwing them as
- ObjC exceptions.
- * editing/TextAffinity.h: Added helper functions for conversion to NSSelectionAffinity.
- The two enumerations are numerically identical, but that's an implementation
- detail of TextAffinity that clients shouldn't be required to know about.
- 2006-10-30 Timothy Hatcher <timothy@apple.com>
- Rolling out the following change because this crash:
- <rdar://problem/4806705> REGRESSION: Crash occurs at WebCore::Font::lineSpacing() when loading site (http://www.photoplusexpo.com/ppe/index.jsp)
- And this regression:
- <rdar://problem/4728514> REGRESSION: Safari applies the wrong font to BODY element at http://www.apple.com/downloads/dashboard/
- 2006-09-06 David Harrison <harrison@apple.com>
- Reviewed and tweaked by Tim H.
- <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation
- If we don't find the font in the available fonts list, call [NSFont fontWithName:size:]
- to trigger a search that will include auto activation. No PLT or iBench perf impact.
- No layout tests affected. Not testable in an automated way that will work on all systems.
- * platform/mac/WebFontCache.mm:
- (+[WebFontCache fontWithFamily:traits:size:]):
- 2006-10-30 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
- <rdar://problem/4808375>
- REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) (11460)
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::exitNode): Only create VisiblePositions
- when we're going to use them to create a range for an emitted character.
- We should further speed TextIterators up by avoiding creating VisiblePositions
- for TIs that are only used for the characters they emit (like the one that
- plainText uses).
- 2006-10-30 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11441
- More rendering code cleaning
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/RenderApplet.cpp:
- (WebCore::RenderApplet::RenderApplet):
- (WebCore::RenderApplet::createWidgetIfNecessary):
- * rendering/RenderApplet.h:
- * rendering/RenderArena.cpp:
- (WebCore::):
- (WebCore::RenderArena::RenderArena):
- (WebCore::RenderArena::allocate):
- (WebCore::RenderArena::free):
- * rendering/RenderArena.h:
- * rendering/RenderBR.cpp:
- (WebCore::RenderBR::RenderBR):
- (WebCore::RenderBR::baselinePosition):
- (WebCore::RenderBR::lineHeight):
- (WebCore::RenderBR::setStyle):
- (WebCore::RenderBR::caretMinOffset):
- (WebCore::RenderBR::positionForCoordinates):
- (WebCore::RenderBR::inlineBox):
- * rendering/RenderBR.h:
- * rendering/RenderBlock.cpp:
- * rendering/RenderBlock.h:
- (WebCore::RenderBlock::maxTopMargin):
- (WebCore::RenderBlock::maxBottomMargin):
- (WebCore::RenderBlock::initMaxMarginValues):
- (WebCore::RenderBlock::containsFloats):
- (WebCore::RenderBlock::setHasMarkupTruncation):
- (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
- (WebCore::RenderBlock::BlockSelectionInfo::block):
- (WebCore::RenderBlock::BlockSelectionInfo::state):
- (WebCore::RenderBlock::FloatingObject::FloatingObject):
- (WebCore::RenderBlock::CompactInfo::clear):
- * rendering/RenderButton.cpp:
- (WebCore::RenderButton::removeChild):
- (WebCore::RenderButton::paintObject):
- * rendering/RenderButton.h:
- (WebCore::RenderButton::renderName):
- (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::RenderContainer):
- * rendering/RenderContainer.h:
- (WebCore::RenderContainer::firstChild):
- (WebCore::RenderContainer::lastChild):
- (WebCore::RenderContainer::calcMinMaxWidth):
- * rendering/RenderCounter.cpp:
- (WebCore::RenderCounter::RenderCounter):
- (WebCore::toRoman):
- (WebCore::toHebrew):
- (WebCore::RenderCounter::calcMinMaxWidth):
- * rendering/RenderCounter.h:
- * rendering/RenderFieldset.cpp:
- (WebCore::RenderFieldset::paintBoxDecorations):
- (WebCore::RenderFieldset::paintBorderMinusLegend):
- (WebCore::RenderFieldset::setStyle):
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
- (WebCore::RenderFileUploadControl::setStyle):
- (WebCore::RenderFileUploadControl::paintObject):
- (WebCore::RenderFileUploadControl::calcMinMaxWidth):
- * rendering/RenderFileUploadControl.h:
- (WebCore::RenderFileUploadControl::renderName):
- * rendering/RenderFlexibleBox.h:
- * rendering/RenderFlow.cpp:
- * rendering/RenderFlow.h:
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::RenderForeignObject):
- (WebCore::RenderForeignObject::paint):
- (WebCore::RenderForeignObject::computeAbsoluteRepaintRect):
- (WebCore::RenderForeignObject::layout):
- (WebCore::RenderForeignObject::nodeAtPoint):
- * rendering/RenderForeignObject.h:
- (WebCore::RenderForeignObject::renderName):
- * rendering/RenderFormElement.cpp:
- (WebCore::RenderFormElement::setStyle):
- (WebCore::RenderFormElement::layout):
- (WebCore::RenderFormElement::textAlignment):
- * rendering/RenderFormElement.h:
- * rendering/RenderFrame.cpp:
- * rendering/RenderFrame.h:
- (WebCore::RenderFrame::element):
- * rendering/RenderFrameSet.cpp:
- * rendering/RenderFrameSet.h:
- (WebCore::RenderFrameSet::element):
- * rendering/RenderHTMLCanvas.cpp:
- (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
- (WebCore::RenderHTMLCanvas::paint):
- * rendering/RenderHTMLCanvas.h:
- (WebCore::RenderHTMLCanvas::renderName):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::RenderImage):
- (WebCore::RenderImage::setStyle):
- (WebCore::RenderImage::setContentObject):
- (WebCore::RenderImage::setCachedImage):
- (WebCore::RenderImage::imageChanged):
- (WebCore::RenderImage::paint):
- (WebCore::RenderImage::layout):
- (WebCore::RenderImage::updateAltText):
- * rendering/RenderImage.h:
- (WebCore::RenderImage::element):
- * rendering/RenderInline.cpp:
- (WebCore::RenderInline::RenderInline):
- (WebCore::RenderInline::~RenderInline):
- (WebCore::RenderInline::setStyle):
- (WebCore::RenderInline::addChildToFlow):
- (WebCore::RenderInline::cloneInline):
- (WebCore::RenderInline::splitInlines):
- (WebCore::RenderInline::splitFlow):
- (WebCore::RenderInline::paint):
- (WebCore::RenderInline::absoluteRects):
- (WebCore::RenderInline::calcMinMaxWidth):
- (WebCore::RenderInline::requiresLayer):
- (WebCore::RenderInline::width):
- (WebCore::RenderInline::height):
- (WebCore::RenderInline::renderName):
- (WebCore::RenderInline::nodeAtPoint):
- (WebCore::RenderInline::positionForCoordinates):
- * rendering/RenderInline.h:
- (WebCore::RenderInline::layout):
- * rendering/RenderLayer.cpp:
- * rendering/RenderLayer.h:
- (WebCore::ClipRects::ClipRects):
- (WebCore::RenderLayer::nextSibling):
- (WebCore::RenderLayer::root):
- (WebCore::RenderLayer::setPos):
- (WebCore::RenderLayer::height):
- (WebCore::RenderLayer::relativePositionOffset):
- * rendering/RenderLineEdit.cpp:
- (WebCore::RenderLineEdit::setStyle):
- (WebCore::RenderLineEdit::updateFromElement):
- (WebCore::RenderLineEdit::selectionStart):
- (WebCore::RenderLineEdit::selectionEnd):
- (WebCore::RenderLineEdit::setSelectionStart):
- (WebCore::RenderLineEdit::setSelectionEnd):
- (WebCore::RenderLineEdit::setSelectionRange):
- * rendering/RenderLineEdit.h:
- * rendering/RenderListBox.cpp:
- * rendering/RenderListBox.h:
- (WebCore::RenderListBox::renderName):
- * rendering/RenderListItem.cpp:
- (WebCore::RenderListItem::setStyle):
- (WebCore::getParentOfFirstLineBox):
- (WebCore::RenderListItem::updateMarkerLocation):
- (WebCore::RenderListItem::positionListMarker):
- (WebCore::RenderListItem::paint):
- * rendering/RenderListItem.h:
- * rendering/RenderListMarker.cpp:
- * rendering/RenderListMarker.h:
- (WebCore::RenderListMarker::renderName):
- (WebCore::RenderListMarker::isListMarker):
- 2006-10-30 Timothy Hatcher <timothy@apple.com>
- Reviewed by Hyatt.
- <rdar://problem/4478625> Basic table editing and culling
- Refined the criteria for deletable elements, rely on the renderer more.
- Corrected the interface positioning for elements that have borders.
- * editing/DeleteButtonController.cpp:
- (WebCore::isDeletableElement):
- (WebCore::DeleteButtonController::show):
- 2006-10-30 Darin Adler <darin@apple.com>
- - fix build
- * loader/ResourceLoader.h: Added header guard.
- 2006-10-31 Darin Adler <darin@apple.com>
- Reviewed by Adam.
- - fix FrameLoader files so they can be built on non-Mac platforms
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate): Added code to create the frame loader.
- (WebCore::FramePrivate::~FramePrivate): Added code to delete the frame loader.
- * page/Page.h:
- * page/Page.cpp: (WebCore::Page::setDefersLoading): Removed the
- #if PLATFORM(MAC) that Adam added as a stop-gap when I did this wrong
- the other day.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac): Removed code to create the frame loader.
- (WebCore::FrameMac::~FrameMac): Removed code to delete the frame loader.
- * loader/FrameLoader.h: Changed import to include, added #if PLATFORM(MAC)
- around the PolicyCheck definition.
- * loader/FormState.cpp: Changed import to include.
- * loader/FrameLoader.cpp: Ditto.
- * loader/MainResourceLoader.h: Ditto.
- * loader/FrameLoaderTypes.h: Added a header guard.
- * loader/NetscapePlugInStreamLoader.h: Changed import to include.
- Added #if PLATFORM(MAC) around Mac-specific details.
- * loader/SubresourceLoader.h: Ditto.
- * page/Frame.cpp: (WebCore::Frame::loader): Updated name of loader to
- m_loader from m_frameLoader.
- * CMakeLists.txt: Updated.
- * WebCoreSources.bkl: Updated.
- 2006-10-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Patch by Zack rusin to fix:
- http://bugs.webkit.org/show_bug.cgi?id=11429
- Fix startup crash.
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- 2006-10-30 Zach Rusin <zack@kde.org>
- Reviewed and landed by Anders.
- * platform/network/qt/ResourceHandleQt.cpp:
- (WebCore::ResourceHandle::receivedResponse):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::FrameQtClientDefault):
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::ServeSynchronousRequest):
- More build fixes.
- 2006-10-30 Simon Hausmann <hausmann@kde.org>
- Reviewed and landed by Anders.
-
- - fix Qt build
- * platform/qt/FrameQtClient.cpp: ResourceLoaderClient ->
- ResourceHandleClient
- 2006-10-30 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - work toward removing Objective-C data types from FrameLoader.h:
- removed NSDate, NSString, WebCorePageState, WebCoreResourceLoader,
- and WebCoreResourceHandle
- - moved bodyBackgroundColor function from Frame to WebFrame in WebKit
- * page/PageState.h:
- * page/PageState.cpp: Added, C++ class with much of what WebCorePageState had.
- * bridge/mac/FrameMac.h: Removed uneeeded declarations and bodyBackgroundColor().
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::startRedirectionTimer): Use a
- double for the date instead of an NSDate.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm: Removed invalidatePageCache and
- saveDocumentToPageCache methods.
- * bridge/mac/WebCorePageState.h:
- * bridge/mac/WebCorePageState.mm: Removed most of the class and turned it into
- an Objective-C wrapper for PageState.
- * loader/FrameLoader.h: Removed unused Objective-C types, eliminated use of
- NSDate and WebCorePageState.
- * loader/FrameLoaderClient.h: Changed NSDate to double.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::receivedMainResourceError): Moved call to setInPageCache
- here that used to be in invalidateCurrentItemPageCache on the WebKit side.
- (WebCore::FrameLoader::clientRedirected): Changed NSDate to double for date.
- (WebCore::FrameLoader::open): Moved one of the open functions that was part of
- commitProvisionalLoad inside the commitProvisionalLoad function, so that it can
- extract the parameters from the response. Changed the open function that takes
- a PageState to use the new C++ PageState.
- (WebCore::FrameLoader::commitProvisionalLoad): Added the code from the open
- function; tightened up logic, removing a few cases that could never happen, as
- well as the unused reload boolean.
- * ForwardingHeaders/kjs/property_map.h: Added.
- * WebCore.exp: Updated.
- * WebCore.xcodeproj/project.pbxproj: Updated.
- 2006-10-29 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - added ResourceResponse class and didReceiveResponse delegate call
-
- * WebCore.xcodeproj/project.pbxproj: Added new files.
- * bridge/mac/WebCoreFrameBridge.h: Removed no longer needed
- expiresTimeForResponse: method.
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc): Updated to use ResourceResponse.
- * loader/FrameLoader.h: Update loadResourceSynchronously to
- use ResourceResponse.
- * loader/LoaderFunctions.h:
- * loader/icon/IconLoader.cpp:
- (IconLoader::didReceiveResponse): Updated from receivedResponse
- and made cross-platform.
- * loader/icon/IconLoader.h: updated for above change
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse): reduced to just saving
- the PlatformResponse (ideally we'd phase out use of this).
- (WebCore::Loader::didReceivedResponse): most of the ReceivedResponse
- logic.
- * loader/loader.h:
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::loadResourceSynchronously): Return results
- as ResourceResponse.
- * loader/mac/IconLoaderMac.mm: remove receivedResponse.
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest): take ResourceResponse as
- argument.
- * platform/network/ResourceHandle.cpp:
- * platform/network/ResourceHandle.h: Remove calls for
- broken out response pieces.
- * platform/network/ResourceHandleClient.h:
- (WebCore::ResourceHandleClient::didReceiveResponse): New
- delegate method.
- * platform/network/ResourceHandleInternal.h:
- (WebCore::ResourceHandleInternal::ResourceHandleInternal): Remove
- storage of response bits, we're not gonna return them
- seprately any more.
- * platform/network/ResourceResponse.h: Added.
- (WebCore::ResourceResponse::ResourceResponse): Freshly
- implemented. Same for below.
- (WebCore::ResourceResponse::url):
- (WebCore::ResourceResponse::mimeType):
- (WebCore::ResourceResponse::expectedContentLength):
- (WebCore::ResourceResponse::textEncodingName):
- (WebCore::ResourceResponse::suggestedFilename):
- (WebCore::ResourceResponse::httpStatusCode):
- (WebCore::ResourceResponse::setHTTPStatusCode):
- (WebCore::ResourceResponse::httpHeaderField):
- (WebCore::ResourceResponse::httpHeaderFields):
- (WebCore::ResourceResponse::isMultipart):
- (WebCore::ResourceResponse::setExpirationDate):
- (WebCore::ResourceResponse::expirationDate):
- * platform/network/cf/ResourceHandleCFNet.cpp:
- (WebCore::didReceiveResponse): Send didReceiveResponse
- client method.
- * platform/network/cf/ResourceResponseCFNet.h: Added.
- * platform/network/cf/ResourceResponseCFNet.mm: Added.
- (getResourceResponse): Helper function to get a ResourceResponse
- from CFURLResponseRef.
- * platform/network/mac/ResourceHandleMac.mm:
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- Don't bother cleaning up fields we no longer have.
- (WebCore::ResourceHandle::receivedResponse): Send
- didReceiveResponse client method.
- * platform/network/mac/ResourceResponseMac.h: Added.
- * platform/network/mac/ResourceResponseMac.mm: Added.
- (getResourceResponse): Helper function to get a ResourceResponse
- from an NSURLResponse*.
- * rendering/HitTestResult.cpp:
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc): Prepare for use of ResourceResponse.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::getResponseText): Store http response
- info in the form of a ResourceResponse, change all methods to
- account for this.
- (WebCore::XMLHttpRequest::getResponseXML):
- (WebCore::XMLHttpRequest::XMLHttpRequest):
- (WebCore::XMLHttpRequest::open):
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::getAllResponseHeaders):
- (WebCore::XMLHttpRequest::getResponseHeader):
- (WebCore::XMLHttpRequest::getStatus):
- (WebCore::XMLHttpRequest::getStatusText):
- (WebCore::XMLHttpRequest::processSyncLoadResults):
- (WebCore::XMLHttpRequest::didFinishLoading):
- (WebCore::XMLHttpRequest::didReceiveResponse):
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- 2006-10-29 Darin Adler <darin@apple.com>
- - fix build
- * loader/DocumentLoader.h: Add declarations so this compiles without ObjC.
- * loader/NetscapePlugInStreamLoader.h: Ditto.
- * loader/ResourceLoader.h: Ditto.
- 2006-10-29 Darin Adler <darin@apple.com>
- - one last name change -- WebFormState.h to FormState.h
- - added more empty placeholder platform-independent files
- for currently-Mac-specific loader classes
- * loader/FormState.cpp: Updated include.
- * loader/FrameLoader.cpp: Updated include.
- * loader/mac/FrameLoaderMac.mm: Updated include.
- * loader/WebFormState.h: Removed.
- * loader/FormState.h: Added.
- * loader/DocumentLoader.cpp: Added.
- * loader/MainResourceLoader.cpp: Added.
- * loader/NetscapePlugInStreamLoader.cpp: Added.
- * loader/ResourceLoader.cpp: Added.
- * loader/SubresourceLoader.cpp: Added.
- * WebCore.xcodeproj/project.pbxproj: Updated for changes above.
- 2006-10-29 Darin Adler <darin@apple.com>
- - did the do-webcore-rename renames, including a number of changes
- to the names of loader files (and WebResourceLoader -> ResourceLoader),
- jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
- and improvements to the names of decoder classes and their source
- files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
- * CMakeLists.txt:
- * WebCore.exp:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- * bindings/js/kjs_binding.cpp:
- (KJS::ScriptInterpreter::updateDOMNodeDocument):
- * bindings/js/kjs_events.cpp:
- (KJS::JSAbstractEventListener::handleEvent):
- (KJS::JSLazyEventListener::parseCode):
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLElement::implementsCall):
- * bindings/js/kjs_traversal.cpp:
- (KJS::JSNodeFilterCondition::acceptNode):
- * bindings/js/kjs_window.cpp:
- (KJS::Window::interpreter):
- (KJS::Window::retrieveWindow):
- (KJS::Window::retrieve):
- (KJS::ScheduledAction::execute):
- * bindings/objc/DOMInternal.mm:
- (-[WebScriptObject _initializeScriptDOMNodeImp]):
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::executionContextForDOM):
- (WebCore::FrameMac::bindingRootObject):
- (WebCore::FrameMac::windowScriptObject):
- (WebCore::FrameMac::windowScriptNPObject):
- (WebCore::FrameMac::partClearedInBegin):
- * bridge/mac/WebCoreEncodings.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
- (-[WebCoreFrameBridge stringWithData:]):
- (-[WebCoreFrameBridge executionContextForView:]):
- * bridge/win/FrameWin.cpp:
- * dom/Document.cpp:
- (WebCore::Document::inputEncoding):
- (WebCore::Document::setCharset):
- (WebCore::Document::createHTMLEventListener):
- (WebCore::Document::setDecoder):
- * dom/Document.h:
- (WebCore::Document::decoder):
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent):
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::noscriptCreateErrorCheck):
- (WebCore::HTMLParser::canvasCreateErrorCheck):
- (WebCore::HTMLParser::isInline):
- * html/HTMLPlugInElement.cpp:
- (WebCore::HTMLPlugInElement::createNPObject):
- * html/HTMLScriptElement.cpp:
- (WebCore::HTMLScriptElement::evaluateScript):
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::parseTag):
- (WebCore::HTMLTokenizer::processToken):
- * ksvg2/misc/SVGDocumentExtensions.cpp:
- (WebCore::SVGDocumentExtensions::createSVGEventListener):
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
- (WebCore::CachedCSSStyleSheet::setEncoding):
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::CachedXBLDocument):
- (WebCore::CachedXBLDocument::setEncoding):
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
- (WebCore::CachedXSLStyleSheet::setEncoding):
- * loader/CachedXSLStyleSheet.h:
- * loader/Decoder.cpp: Removed.
- * loader/Decoder.h: Removed.
- * loader/FrameLoader.cpp:
- * loader/FrameLoader.h:
- * loader/FrameLoaderClient.h:
- * loader/MainResourceLoader.h: Added.
- * loader/NetscapePlugInStreamLoader.h: Added.
- * loader/Request.h:
- (WebCore::Request::cachedResource):
- * loader/ResourceLoader.h: Added.
- * loader/SubresourceLoader.h: Added.
- * loader/TextResourceDecoder.cpp: Added.
- (WebCore::TextResourceDecoder::determineContentType):
- (WebCore::TextResourceDecoder::defaultEncoding):
- (WebCore::TextResourceDecoder::TextResourceDecoder):
- (WebCore::TextResourceDecoder::~TextResourceDecoder):
- (WebCore::TextResourceDecoder::setEncoding):
- (WebCore::TextResourceDecoder::checkForBOM):
- (WebCore::TextResourceDecoder::checkForCSSCharset):
- (WebCore::TextResourceDecoder::checkForHeadCharset):
- (WebCore::TextResourceDecoder::detectJapaneseEncoding):
- (WebCore::TextResourceDecoder::decode):
- (WebCore::TextResourceDecoder::flush):
- * loader/TextResourceDecoder.h: Added.
- * loader/WebDocumentLoader.h: Removed.
- * loader/WebLoader.h: Removed.
- * loader/WebMainResourceLoader.h: Removed.
- * loader/WebNetscapePlugInStreamLoader.h: Removed.
- * loader/WebSubresourceLoader.h: Removed.
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::receivedResponse):
- (WebCore::Loader::didReceiveData):
- (WebCore::Loader::cancelRequests):
- (WebCore::Loader::jobForRequest):
- * loader/mac/DocumentLoaderMac.mm:
- * loader/mac/FormDataStream.m: Added.
- * loader/mac/FrameLoaderMac.mm:
- (WebCore::FrameLoader::cancelPendingArchiveLoad):
- (WebCore::FrameLoader::addPlugInStreamLoader):
- (WebCore::FrameLoader::removePlugInStreamLoader):
- (WebCore::FrameLoader::addSubresourceLoader):
- (WebCore::FrameLoader::removeSubresourceLoader):
- (WebCore::FrameLoader::willSendRequest):
- (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
- (WebCore::FrameLoader::didCancelAuthenticationChallenge):
- (WebCore::FrameLoader::didReceiveResponse):
- (WebCore::FrameLoader::didReceiveData):
- (WebCore::FrameLoader::didFinishLoad):
- (WebCore::FrameLoader::didFailToLoad):
- (WebCore::FrameLoader::open):
- (WebCore::FrameLoader::willUseArchive):
- (WebCore::FrameLoader::isArchiveLoadPending):
- * loader/mac/ImageDocumentMac.mm:
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus):
- * loader/mac/MainResourceLoaderMac.mm:
- (WebCore::MainResourceLoader::MainResourceLoader):
- (WebCore::MainResourceLoader::releaseDelegate):
- (WebCore::MainResourceLoader::didCancel):
- (WebCore::MainResourceLoader::addData):
- (WebCore::MainResourceLoader::willSendRequest):
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- (WebCore::MainResourceLoader::didReceiveData):
- (WebCore::MainResourceLoader::didFinishLoading):
- (WebCore::MainResourceLoader::setDefersLoading):
- * loader/mac/NetscapePlugInStreamLoaderMac.mm:
- (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
- (WebCore::NetscapePlugInStreamLoader::releaseResources):
- (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
- (WebCore::NetscapePlugInStreamLoader::didReceiveData):
- (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
- (WebCore::NetscapePlugInStreamLoader::didFail):
- (WebCore::NetscapePlugInStreamLoader::didCancel):
- * loader/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::releaseResources):
- (WebCore::ResourceLoader::load):
- (WebCore::ResourceLoader::setDefersLoading):
- (WebCore::ResourceLoader::frameLoader):
- (WebCore::ResourceLoader::addData):
- (WebCore::ResourceLoader::resourceData):
- (WebCore::ResourceLoader::clearResourceData):
- (WebCore::ResourceLoader::willSendRequest):
- (WebCore::ResourceLoader::didReceiveAuthenticationChallenge):
- (WebCore::ResourceLoader::didCancelAuthenticationChallenge):
- (WebCore::ResourceLoader::didReceiveResponse):
- (WebCore::ResourceLoader::didReceiveData):
- (WebCore::ResourceLoader::willStopBufferingData):
- (WebCore::ResourceLoader::didFinishLoading):
- (WebCore::ResourceLoader::didFinishLoadingOnePart):
- (WebCore::ResourceLoader::didFail):
- (WebCore::ResourceLoader::willCacheResponse):
- (WebCore::ResourceLoader::didCancel):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::setIdentifier):
- (WebCore::ResourceLoader::response):
- (WebCore::ResourceLoader::inConnectionCallback):
- (WebCore::ResourceLoader::cancelledError):
- (WebCore::ResourceLoader::receivedCredential):
- (WebCore::ResourceLoader::receivedRequestToContinueWithoutCredential):
- (WebCore::ResourceLoader::receivedCancellation):
- (WebCore::ResourceLoader::delegate):
- (WebCore::ResourceLoader::releaseDelegate):
- (-[WebCoreResourceLoaderAsDelegate initWithLoader:]):
- * loader/mac/SubresourceLoaderMac.mm:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * loader/mac/WebFormDataStream.h: Removed.
- * loader/mac/WebFormDataStream.m: Removed.
- * page/Frame.cpp:
- (WebCore::Frame::javaScriptEnabled):
- (WebCore::Frame::scriptProxy):
- (WebCore::Frame::executeScript):
- (WebCore::Frame::write):
- (WebCore::Frame::userGestureHint):
- (WebCore::Frame::saveInterpreterBuiltins):
- (WebCore::Frame::restoreInterpreterBuiltins):
- (WebCore::Frame::backslashAsCurrencySymbol):
- * page/Frame.h:
- * page/FramePrivate.h:
- * platform/StreamingTextDecoder.cpp: Removed.
- * platform/StreamingTextDecoder.h: Removed.
- * platform/StreamingTextDecoderICU.cpp: Removed.
- * platform/StreamingTextDecoderICU.h: Removed.
- * platform/TextCodec.cpp: Added.
- * platform/TextCodec.h: Added.
- * platform/TextCodecICU.cpp: Added.
- * platform/TextCodecICU.h: Added.
- * platform/TextCodecLatin1.h:
- * platform/TextCodecUTF16.h:
- * platform/TextDecoder.h:
- * platform/TextEncoding.cpp:
- * platform/TextEncodingRegistry.cpp:
- * platform/image-decoders/jpeg/jmorecfg.h:
- * platform/mac/StreamingTextDecoderMac.cpp: Removed.
- * platform/mac/StreamingTextDecoderMac.h: Removed.
- * platform/mac/TextCodecMac.cpp: Added.
- * platform/mac/TextCodecMac.h: Added.
- * platform/network/ResourceHandleInternal.h:
- * platform/network/mac/ResourceHandleMac.mm:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::bindingRootObject):
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::CheckCacheObjectStatus):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::backslashAsCurrencySymbol):
- * xml/XSLTProcessor.cpp:
- (WebCore::XSLTProcessor::createDocumentFromSource):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- 2006-10-29 Darin Adler <darin@apple.com>
- Rubber stamped by Adam (kinda).
- - add Mac suffixes and correct filenames inside loader/mac
- * WebCore.xcodeproj/project.pbxproj: Updated for changes below.
- * loader/mac/FrameLoader.mm: Removed.
- * loader/mac/WebDocumentLoader.mm: Removed.
- * loader/mac/WebLoader.mm: Removed.
- * loader/mac/WebMainResourceLoader.mm: Removed.
- * loader/mac/WebNetscapePlugInStreamLoader.mm: Removed.
- * loader/mac/WebSubresourceLoader.mm: Removed.
- * loader/mac/FrameLoaderMac.mm: Added.
- * loader/mac/DocumentLoaderMac.mm: Added.
- * loader/mac/ResourceLoaderMac.mm: Added.
- * loader/mac/MainResourceLoaderMac.mm: Added.
- * loader/mac/WebNetscapePlugInStreamLoaderMac.mm: Added.
- * loader/mac/SubresourceLoaderMac.mm: Removed.
- 2006-10-29 Darin Adler <darin@apple.com>
- Reviewed by Adam.
- - moving towards use of FrameLoader cross-platform; get FrameLoader.h
- and FrameLoader.cpp mostly ready
- * WebCore.xcodeproj/project.pbxproj: Added FrameLoader.cpp and
- FormState.cpp. Removed WebFormState.mm.
- * loader/FrameLoader.h: Put in lots of #if statements to see if we can
- get this header compiling on non-Mac.
- * loader/FrameLoader.cpp: Added. Has non-Mac-specific bits of FrameLoader.
- * loader/mac/FrameLoader.mm: Moved some non-Mac-specific bits out.
- * loader/FrameLoaderClient.h: Added some ifdefs.
- * loader/WebDocumentLoader.h: Ditto.
- * loader/WebLoader.h: Ditto.
- * loader/WebMainResourceLoader.h: Ditto.
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::isLoadingInAPISense):
- Rewrote to work without bridge, partly to remove the need for ObjC
- bridge type in the header, and also because we're tearing down the bridge.
- * loader/mac/WebMainResourceLoader.mm:
- (WebCore::MainResourceLoader::MainResourceLoader): Removed unused
- m_contentLength and m_bytesReceived.
- (WebCore::MainResourceLoader::didReceiveResponse): Ditto.
- (WebCore::MainResourceLoader::didReceiveData): Ditto.
- * bridge/mac/WebCoreFrameBridge.h: Removed doneProcessingData.
- * bridge/mac/WebCoreFrameBridge.mm: Ditto.
- * loader/mac/FormState.mm: Removed.
- * loader/FormState.cpp: Added.
- 2006-10-29 Darin Adler <darin@apple.com>
- Rubber stamped by Adam.
- - moving towards use of FrameLoader cross-platform; move the headers
- for the Mac loader from loader/mac into loader, in preparation for
- making them useful on non-Mac
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/FrameLoader.h: Removed.
- * loader/mac/WebDocumentLoader.h: Removed.
- * loader/mac/WebFormState.h: Removed.
- * loader/mac/WebLoader.h: Removed.
- * loader/mac/WebMainResourceLoader.h: Removed.
- * loader/mac/WebNetscapePlugInStreamLoader.h: Removed.
- * loader/mac/WebSubresourceLoader.h: Removed.
- * loader/FrameLoader.h: Added.
- * loader/WebDocumentLoader.h: Added.
- * loader/WebFormState.h: Added.
- * loader/WebLoader.h: Added.
- * loader/WebMainResourceLoader.h: Added.
- * loader/WebNetscapePlugInStreamLoader.h: Added.
- * loader/WebSubresourceLoader.h: Added.
- 2006-10-29 Adam Roben <aroben@apple.com>
- Reviewed by Geoff.
- Finish Darin's clean up of the use of __APPLE__ in WebCore, begun in
- r17405.
- * platform/DeprecatedString.h:
- 2006-10-29 Beth Dakin <bdakin@apple.com>
- Rubber stamped by Geoff.
- This is a followup to my HitTestResult checkin. Most of the
- HitTestResult local variables in the code were named i or info for
- when the class was named NodeInfo. This patch renames all of these
- local variables to result.
- * dom/Document.cpp:
- (WebCore::Document::prepareMouseEvent):
- * html/HTMLAreaElement.cpp:
- (WebCore::HTMLAreaElement::mapMouseEvent):
- * html/HTMLMapElement.cpp:
- (WebCore::HTMLMapElement::mapMouseEvent):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::nodeAtPoint):
- * rendering/EllipsisBox.h:
- * rendering/InlineBox.cpp:
- (WebCore::InlineBox::nodeAtPoint):
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::nodeAtPoint):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::nodeAtPoint):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::isPointInScrollbar):
- (WebCore::RenderBlock::nodeAtPoint):
- * rendering/RenderBlock.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::nodeAtPoint):
- * rendering/RenderBox.h:
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::hitTestLines):
- * rendering/RenderFlow.h:
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::nodeAtPoint):
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::nodeAtPoint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::nodeAtPoint):
- * rendering/RenderInline.cpp:
- (WebCore::RenderInline::nodeAtPoint):
- * rendering/RenderInline.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll):
- (WebCore::RenderLayer::hitTest):
- (WebCore::RenderLayer::hitTestLayer):
- (WebCore::RenderLayer::updateHoverActiveState):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::isPointInScrollbar):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::hitTest):
- (WebCore::RenderObject::setInnerNode):
- (WebCore::RenderObject::nodeAtPoint):
- * rendering/RenderObject.h:
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::nodeAtPoint):
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::nodeAtPoint):
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::nodeAtPoint):
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::nodeAtPoint):
- * rendering/RenderTableRow.h:
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::nodeAtPoint):
- * rendering/RenderTableSection.h:
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::nodeAtPoint):
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::nodeAtPoint):
- * rendering/RootInlineBox.h:
- 2006-10-29 Adam Roben <aroben@apple.com>
- More semi-fixes.
- * page/Page.cpp: Forgot to wrap the actual definition of
- setDefersLoading() in PLATFORM(MAC).
- * platform/PlatformWheelEvent.h: Fix up preprocessor directives.
- 2006-10-29 Adam Roben <aroben@apple.com>
- Build semi-fix.
- Move all FrameLoader-related code in Page.{cpp,h} within #if
- PLATFORM(MAC), since this class currently only exists on Mac.
- * page/Page.cpp:
- * page/Page.h:
- 2006-10-29 Geoffrey Garen <ggaren@apple.com>
- build fix.
-
- * platform/PlatformString.h:
- (WebCore::String::operator NSString*):
- 2006-10-29 Geoffrey Garen <ggaren@apple.com>
- Rolled out accidental commit.
-
- * platform/AtomicString.h:
- (WebCore::AtomicString::AtomicString):
- (WebCore::AtomicString::operator NSString*):
- 2006-10-29 Geoffrey Garen <ggaren@apple.com>
- RS by Darin.
- Rolled out change to map NULL Strings to nil NSStrings because it caused
- even more AppKit crashes. Maybe we should remove the NSString * operator
- entirely, since its use is not straight-forward, and require callers to
- specify explicitly whether they tolerate NULL.
-
- * platform/AtomicString.h:
- * platform/PlatformString.h:
- (WebCore::String::operator NSString*):
- * platform/mac/TextFieldMac.mm:
- (-[NSSearchFieldCell _addStringToRecentSearches:]):
- 2006-10-29 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fixed storage leak showing up on the buildbot
- * loader/mac/WebSubresourceLoader.mm: (WebCore::SubresourceLoader::create):
- Release the NSURLRequest after passing it to load. Also clean up logic a bit.
- 2006-10-29 Darin Adler <darin@apple.com>
- Rubber stamped by Adam.
- - renamed WebFrameLoaderClient to match the class name inside it
- * loader/mac/WebFrameLoaderClient.h: Removed.
- * loader/FrameLoaderClient.h: Moved it here.
- * WebCore.xcodeproj/project.pbxproj: Updated project.
- * bridge/mac/FrameMac.mm: Updated includes.
- * bridge/mac/WebCoreFrameBridge.mm: Ditto.
- * loader/mac/FrameLoader.mm: Ditto.
- * loader/mac/WebLoader.h: Ditto.
- 2006-10-29 Darin Adler <darin@apple.com>
- Reviewed by Mitz.
- - fix crash visible on buildbot and also when running the test
- anchor-image-scrolled-x-y.html under libgmalloc
- * loader/mac/WebSubresourceLoader.h: Renamed m_loader to m_handle
- now that the class is named ResourceHandle.
- * loader/mac/WebSubresourceLoader.mm: Renaming, plus:
- (WebCore::SubresourceLoader::didFinishLoading): Get the handle into
- a local RefPtr before calling finishJobAndHandle, since we might get
- cancelled inside that function, so we should not rely on m_handle to
- keep the ResourceHandle alive.
- (WebCore::SubresourceLoader::didFail): Ditto.
- (WebCore::SubresourceLoader::didCancel): Ditto.
- 2006-10-29 Maciej Stachowiak <mjs@apple.com>
- - build fix
- * platform/network/mac/ResourceHandleMac.mm:
- 2006-10-29 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Darin.
- - renamed ResourceLoader to ResourceHandle (and same for related classes)
- * CMakeLists.txt:
- * Projects/gdk/webcore-gdk.bkl:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- * bridge/mac/FrameMac.mm:
- * bridge/win/FrameWin.cpp:
- * dom/XMLTokenizer.cpp:
- * loader/Cache.cpp:
- * loader/CachedResource.h:
- * loader/LoaderFunctions.h:
- * loader/icon/IconLoader.cpp:
- (IconLoader::startLoading):
- (IconLoader::didReceiveData):
- (IconLoader::didFinishLoading):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::receivedResponse):
- (WebCore::Loader::didReceiveData):
- (WebCore::Loader::cancelRequests):
- (WebCore::Loader::jobForRequest):
- * loader/loader.h:
- * loader/mac/IconLoaderMac.mm:
- (IconLoader::receivedResponse):
- * loader/mac/LoaderFunctionsMac.mm:
- * loader/mac/WebLoader.h:
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::create):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
- (WebCore::FrameGdkClientDefault::openURL):
- (WebCore::FrameGdkClientDefault::submitForm):
- (WebCore::FrameGdkClientDefault::receivedResponse):
- (WebCore::FrameGdkClientDefault::didReceiveData):
- (WebCore::FrameGdkClientDefault::receivedAllData):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (WebCore::ServeSynchronousRequest):
- (WebCore::ResourceHandle::assembleResponseHeaders):
- (WebCore::ResourceHandle::retrieveCharset):
- * platform/network/ResourceHandle.cpp: Added.
- (WebCore::ResourceHandle::ResourceHandle):
- (WebCore::ResourceHandle::create):
- (WebCore::ResourceHandle::isErrorPage):
- (WebCore::ResourceHandle::error):
- (WebCore::ResourceHandle::setError):
- (WebCore::ResourceHandle::responseEncoding):
- (WebCore::ResourceHandle::responseHTTPHeadersAsString):
- (WebCore::ResourceHandle::kill):
- (WebCore::ResourceHandle::requestHeaders):
- (WebCore::ResourceHandle::url):
- (WebCore::ResourceHandle::postData):
- (WebCore::ResourceHandle::method):
- (WebCore::ResourceHandle::client):
- * platform/network/ResourceHandle.h: Added.
- (WebCore::ResourceHandle::getInternal):
- * platform/network/ResourceHandleClient.h: Added.
- (WebCore::ResourceHandleClient::~ResourceHandleClient):
- (WebCore::ResourceHandleClient::didReceiveData):
- (WebCore::ResourceHandleClient::didFinishLoading):
- (WebCore::ResourceHandleClient::receivedRedirect):
- (WebCore::ResourceHandleClient::receivedResponse):
- (WebCore::ResourceHandleClient::receivedAllData):
- * platform/network/ResourceHandleInternal.h: Added.
- (WebCore::ResourceHandleInternal::ResourceHandleInternal):
- * platform/network/ResourceLoader.cpp: Removed.
- * platform/network/ResourceLoader.h: Removed.
- * platform/network/ResourceLoaderClient.h: Removed.
- * platform/network/ResourceLoaderInternal.h: Removed.
- * platform/network/cf/ResourceHandleCFNet.cpp: Added.
- (WebCore::willSendRequest):
- (WebCore::didReceiveResponse):
- (WebCore::didReceiveData):
- (WebCore::didFinishLoading):
- (WebCore::didFail):
- (WebCore::willCacheResponse):
- (WebCore::didReceiveChallenge):
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::cancel):
- * platform/network/cf/ResourceLoaderCFNet.cpp: Removed.
- * platform/network/gdk/ResourceHandleCurl.cpp: Added.
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::cancel):
- * platform/network/gdk/ResourceHandleManager.cpp: Added.
- (WebCore::ResourceHandleManager::ResourceHandleManager):
- (WebCore::ResourceHandleManager::get):
- (WebCore::ResourceHandleManager::useSimpleTransfer):
- (WebCore::writeCallback):
- (WebCore::ResourceHandleManager::downloadTimerCallback):
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- * platform/network/gdk/ResourceHandleManager.h: Added.
- * platform/network/gdk/ResourceLoaderCurl.cpp: Removed.
- * platform/network/gdk/ResourceLoaderManager.cpp: Removed.
- * platform/network/gdk/ResourceLoaderManager.h: Removed.
- * platform/network/mac/ResourceHandleMac.mm: Added.
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::assembleResponseHeaders):
- (WebCore::ResourceHandle::retrieveResponseEncoding):
- (WebCore::ResourceHandle::receivedResponse):
- (WebCore::ResourceHandle::cancel):
- (WebCore::ResourceHandle::redirectedToURL):
- (WebCore::ResourceHandle::addData):
- (WebCore::ResourceHandle::finishJobAndHandle):
- (WebCore::ResourceHandle::reportError):
- * platform/network/mac/ResourceLoaderMac.mm: Removed.
- * platform/network/qt/ResourceHandleManager.cpp: Added.
- (WebCore::ResourceHandleManager::ResourceHandleManager):
- (WebCore::ResourceHandleManager::~ResourceHandleManager):
- (WebCore::ResourceHandleManager::self):
- (WebCore::ResourceHandleManager::slotData):
- (WebCore::ResourceHandleManager::slotMimetype):
- (WebCore::ResourceHandleManager::slotResult):
- (WebCore::ResourceHandleManager::remove):
- (WebCore::ResourceHandleManager::add):
- (WebCore::ResourceHandleManager::cancel):
- * platform/network/qt/ResourceHandleManager.h: Added.
- * platform/network/qt/ResourceHandleQt.cpp: Added.
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::cancel):
- (WebCore::ResourceHandle::assembleResponseHeaders):
- (WebCore::ResourceHandle::retrieveResponseEncoding):
- (WebCore::ResourceHandle::receivedResponse):
- (WebCore::ResourceHandle::extractCharsetFromHeaders):
- * platform/network/qt/ResourceLoaderManager.cpp: Removed.
- * platform/network/qt/ResourceLoaderManager.h: Removed.
- * platform/network/qt/ResourceLoaderQt.cpp: Removed.
- * platform/network/win/ResourceHandleWin.cpp: Added.
- (WebCore::):
- (WebCore::addToOutstandingJobs):
- (WebCore::lookupResourceHandle):
- (WebCore::ResourceHandleWndProc):
- (WebCore::initializeOffScreenResourceHandleWindow):
- (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
- (WebCore::ResourceHandle::~ResourceHandle):
- (WebCore::ResourceHandle::onHandleCreated):
- (WebCore::ResourceHandle::onRequestRedirected):
- (WebCore::ResourceHandle::onRequestComplete):
- (WebCore::ResourceHandle::start):
- (WebCore::ResourceHandle::fileLoadTimer):
- (WebCore::ResourceHandle::cancel):
- (WebCore::ResourceHandle::setHasReceivedResponse):
- (WebCore::ResourceHandle::hasReceivedResponse):
- * platform/network/win/ResourceHandleWin.h: Added.
- * platform/network/win/ResourceLoaderWin.cpp: Removed.
- * platform/network/win/ResourceLoaderWin.h: Removed.
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- (WebCore::FrameQtClientDefault::receivedResponse):
- (WebCore::FrameQtClientDefault::didReceiveData):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/FrameQtClient.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ResourceHandle::assembleResponseHeaders):
- (WebCore::ResourceHandle::retrieveResponseEncoding):
- (WebCore::ServeSynchronousRequest):
- * xml/XSLTProcessor.cpp:
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::didFinishLoading):
- (WebCore::XMLHttpRequest::receivedRedirect):
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- t2006-10-29 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - eliminate use of NSArray to carry form data around
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/FormDataMac.h: Removed.
- * bridge/mac/FormDataMac.mm: Removed.
- * bridge/mac/FrameMac.h:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::submit):
- * loader/FormData.h:
- (WebCore::FormData::isEmpty):
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
- (WebCore::FrameLoader::loadResourceSynchronously):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * loader/mac/WebFormDataStream.h:
- * loader/mac/WebFormDataStream.m:
- (WebCore::pairRetain):
- (WebCore::pairRelease):
- (WebCore::pairEqual):
- (WebCore::pairHash):
- (WebCore::closeCurrentStream):
- (WebCore::scheduleWithPair):
- (WebCore::advanceCurrentStream):
- (WebCore::openNextStream):
- (WebCore::formCreate):
- (WebCore::formFinalize):
- (WebCore::formOpen):
- (WebCore::formRead):
- (WebCore::formCanRead):
- (WebCore::formClose):
- (WebCore::formSchedule):
- (WebCore::formUnschedule):
- (WebCore::formEventCallback):
- (WebCore::setHTTPBody):
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (WebCore::SubresourceLoader::create):
- * platform/network/mac/ResourceLoaderMac.mm:
- 2006-10-29 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - create SubresourceLoader with a ResourceRequest, not broken out request bits
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (WebCore::SubresourceLoader::create):
- * platform/network/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- 2006-10-29 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - removed ObjC glue between ResourceLoader and SubresourceLoader, then now talk to each other directly
- Removed WebCoreResourceLoader, WebCoreResourceHandle and WebCoreResourceLoaderImp
-
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- * loader/mac/LoaderFunctionsMac.mm:
- * loader/mac/WebLoader.h:
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (WebCore::SubresourceLoader::SubresourceLoader):
- (WebCore::SubresourceLoader::create):
- (WebCore::SubresourceLoader::willSendRequest):
- (WebCore::SubresourceLoader::didReceiveResponse):
- (WebCore::SubresourceLoader::didReceiveData):
- (WebCore::SubresourceLoader::didFinishLoading):
- (WebCore::SubresourceLoader::didFail):
- (WebCore::SubresourceLoader::didCancel):
- * platform/network/ResourceLoader.h:
- * platform/network/ResourceLoaderInternal.h:
- * platform/network/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::receivedResponse):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::redirectedToURL):
- (WebCore::ResourceLoader::addData):
- (WebCore::ResourceLoader::finishJobAndHandle):
- (WebCore::ResourceLoader::reportError):
- * platform/network/mac/WebCoreResourceLoader.h: Removed.
- * platform/network/mac/WebCoreResourceLoaderImp.h: Removed.
- * platform/network/mac/WebCoreResourceLoaderImp.mm: Removed.
- 2006-10-28 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - eliminated the use of Objective-C for the policy decider
- machinery, obviating the need for WebPolicyDecider,
- WebCoreFrameLoaderAsDelegate, and
- WebCoreMainResourceLoaderAsPolicyDelegate
- - grouped the state related to policy decisions into a PolicyCheck
- class to simplify the FrameLoader logic
- - removed six methods from the bridge, reducing FrameLoader's use of
- the bridge to a single method
- - changed form state to always use HashMap instead of NSDictionary
- - moved the defersLoading flag from WebView to WebCore::Page
- and changed code to consistently call it defersLoading rather
- than defersCallbacks
- - updated for rename of PassRefPtr::release to releaseRef
- - replaced all uses of __APPLE__ with appropriate PLATFORM defines
- - cleaned up kjs_binding.h a bit
- - cleaned up FrameMac.h a bit
- * loader/mac/WebPolicyDecider.h: Removed.
- * loader/mac/WebPolicyDecider.mm: Removed.
- * WebCore.xcodeproj/project.pbxproj: Updated for removal.
- * WebCore.exp:
- * bindings/js/kjs_binding.cpp:
- (KJS::ScriptInterpreter::ScriptInterpreter):
- (KJS::ScriptInterpreter::wasRunByUserGesture):
- * bindings/js/kjs_binding.h:
- (KJS::ScriptInterpreter::setCurrentEvent):
- (KJS::ScriptInterpreter::setInlineCode):
- (KJS::ScriptInterpreter::setProcessingTimerCallback):
- (KJS::ScriptInterpreter::getCurrentEvent):
- (KJS::cacheDOMObject):
- (KJS::DOMExceptionTranslator::DOMExceptionTranslator):
- * bridge/AXObjectCache.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest):
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::urlSelected):
- (WebCore::FrameMac::userAgent):
- (WebCore::FrameMac::passMouseDownEventToWidget):
- (WebCore::FrameMac::handleMouseMoveEvent):
- * bridge/mac/PageMac.mm:
- (WebCore::Page::Page):
- * bridge/mac/WebCoreEditCommand.mm:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSPrimitiveValue.cpp:
- (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
- (WebCore::CSSPrimitiveValue::cleanup):
- (WebCore::CSSPrimitiveValue::cssText):
- * css/CSSPrimitiveValue.h:
- (WebCore::CSSPrimitiveValue::):
- * css/CSSValueList.cpp:
- (WebCore::CSSValueList::append):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssparser.h:
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::updateSelection):
- (WebCore::Document::implicitClose):
- (WebCore::Document::setFocusNode):
- * dom/Document.h:
- * editing/ReplaceSelectionCommand.h:
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
- * loader/mac/FrameLoader.h:
- (WebCore::PolicyCheck::request):
- * loader/mac/FrameLoader.mm:
- (WebCore::FrameLoader::~FrameLoader):
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::open):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::setAllDefersLoading):
- (WebCore::FrameLoader::setDefersLoading):
- (WebCore::FrameLoader::willSendRequest):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::checkNavigationPolicy):
- (WebCore::FrameLoader::checkContentPolicy):
- (WebCore::FrameLoader::cancelContentPolicyCheck):
- (WebCore::FrameLoader::stopPolicyCheck):
- (WebCore::FrameLoader::checkNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- (WebCore::FrameLoader::continueAfterContentPolicy):
- (WebCore::FrameLoader::continueAfterWillSubmitForm):
- (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
- (WebCore::FrameLoader::closeDocument):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::PolicyCheck::PolicyCheck):
- (WebCore::PolicyCheck::clear):
- (WebCore::PolicyCheck::set):
- (WebCore::PolicyCheck::call):
- (WebCore::PolicyCheck::dropRequest):
- (WebCore::FrameLoaderClient::~FrameLoaderClient):
- * loader/mac/WebFormState.h:
- * loader/mac/WebFormState.mm:
- * loader/mac/WebFrameLoaderClient.h:
- * loader/mac/WebLoader.h:
- (WebCore::WebResourceLoader::defersLoading):
- * loader/mac/WebLoader.mm:
- (WebCore::WebResourceLoader::WebResourceLoader):
- (WebCore::WebResourceLoader::load):
- (WebCore::WebResourceLoader::setDefersLoading):
- * loader/mac/WebMainResourceLoader.h:
- * loader/mac/WebMainResourceLoader.mm:
- (WebCore::MainResourceLoader::MainResourceLoader):
- (WebCore::MainResourceLoader::releaseDelegate):
- (WebCore::MainResourceLoader::didCancel):
- (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
- (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
- (WebCore::MainResourceLoader::willSendRequest):
- (WebCore::MainResourceLoader::callContinueAfterContentPolicy):
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- (WebCore::MainResourceLoader::didReceiveResponse):
- (WebCore::MainResourceLoader::didReceiveData):
- (WebCore::MainResourceLoader::didFinishLoading):
- (WebCore::MainResourceLoader::didFail):
- (WebCore::MainResourceLoader::loadNow):
- (WebCore::MainResourceLoader::load):
- (WebCore::MainResourceLoader::setDefersLoading):
- * page/Frame.cpp:
- (WebCore::Frame::paint):
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- * page/FrameView.h:
- * page/Page.cpp:
- (WebCore::Page::setDefersLoading):
- * page/Page.h:
- (WebCore::Page::defersLoading):
- * platform/DeprecatedString.h:
- * platform/DeprecatedStringList.h:
- * platform/FontFallbackList.h:
- * platform/PlatformKeyboardEvent.h:
- * platform/PlatformMouseEvent.h:
- * platform/PlatformWheelEvent.h:
- * platform/mac/ClipboardMac.h:
- * platform/mac/ClipboardMac.mm:
- (WebCore::ClipboardMac::setDragImage):
- (WebCore::ClipboardMac::dragNSImage):
- (WebCore::ClipboardMac::sourceOperation):
- (WebCore::ClipboardMac::destinationOperation):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle):
- * rendering/break_lines.cpp:
- (WebCore::nextBreakablePosition):
- 2006-10-28 Adam Roben <aroben@apple.com>
- Reviewed by Maciej.
- Fix layout tests that broke after r17399. Mitz discovered that the
- failures were caused by HitTestResult::m_point being uninitialized
- much of the time. HitTestResults are now always constructed with a
- point, and RenderLayer::hitTest and RenderLayer::hitTestLayer use that
- point instead of being passed one explicitly.
- * WebCore.exp: Change constructor symbol.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::eventMayStartDrag): Update to new constructor and
- hitTest().
- (WebCore::FrameMac::handleMouseMoveEvent): Ditto.
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject doAXTextMarkerForPosition:]): Ditto.
- (-[WebCoreAXObject accessibilityHitTest:]): Ditto.
- * dom/Document.cpp:
- (WebCore::Document::elementFromPoint): Ditto.
- (WebCore::Document::prepareMouseEvent): Ditto.
- * page/Frame.cpp:
- (WebCore::Frame::isPointInsideSelection): Ditto.
- (WebCore::Frame::hitTestResultAtPoint): Ditto.
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent): Ditto.
- * rendering/HitTestResult.cpp:
- (WebCore::HitTestResult::HitTestResult): Initalize m_point with the
- passed point.
- * rendering/HitTestResult.h: Update constructor declaration.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll): Update to new constructor and
- hitTest().
- (WebCore::RenderLayer::hitTest): Use the IntPoint stored in the
- HitTestResult instead of being passed one.
- (WebCore::RenderLayer::hitTestLayer): Ditto.
- * rendering/RenderLayer.h: Update declarations.
- 2006-10-28 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Anders.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::numRequests):
- (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
- * platform/qt/PopupMenuQt.cpp:
- (WebCore::PopupMenu::updateFromElement):
- 2006-10-28 David Carson <dacarson@gmail.com>
- Tweaked by Sam. Reviewed by Brady.
- Fix for: http://bugs.webkit.org/show_bug.cgi?id=11437
- Initialize m_modifyBiasSet to false, as it sometimes gets
- used before it has been initalized.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::SelectionController):
- 2006-10-28 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- This is the WebCore half of pushing elementAtPoint and the backend
- of WebElementDictionary into WebCore. Most of the changes below are
- to accommodate one of the following:
-
- -NodeInfo is now a stand-alone class called HitTestResult.
- Previously it was defined in RenderObject.h, but not for
- any particular reason. The WebElementDictionary
- functionality that was pushed into WebCore has been pushed
- specifically into the this class. In fact,
- WebElementDictionary now keeps a HitTestResult as a member
- varibale.
-
- -The enumeration AccessPolicy is now called
- ClipboardAccessPolicy and is defined in its own header. It
- was previously defined in ClipboardMac.h, but is now
- defined independently to avoid including ClipboardMac.h
- from within FrameMac.h since FrameMac.h is now included in
- WebElementDictionary.m in WebKit.
-
- -Element now has a virtual target() for the sake of
- NodeInfo::targetFrame()
- * WebCore.exp: Several WebCore functions are newly called from
- WebKit, so they have been added here.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm: Must include Image.h because of adjustments
- to ClipboardMac.
- * bridge/mac/FrameMac.h: Adjust to HitTestResult changes.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::freeClipboard): Adjust to ClipboardAccessPolicy
- and HitTestResult changes.
- (WebCore::FrameMac::eventMayStartDrag): Same.
- (WebCore::FrameMac::handleMouseMoveEvent): Same.
- (WebCore::FrameMac::dispatchCPPEvent): Same.
- (WebCore::FrameMac::mayDHTMLCut): Same.
- (WebCore::FrameMac::mayDHTMLCopy): Same.
- (WebCore::FrameMac::mayDHTMLPaste): Same.
- (WebCore::FrameMac::tryDHTMLCut): Same
- (WebCore::FrameMac::tryDHTMLCopy): Same.
- (WebCore::FrameMac::tryDHTMLPaste): Same.
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject doAXTextMarkerForPosition:]): Adjust to
- HitTestResult changes.
- (-[WebCoreAXObject accessibilityHitTest:]): Same.
- * bridge/mac/WebCoreFrameBridge.h: Same.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge dragOperationForDraggingInfo:]): Adjust for
- ClipboardAccessPolicy changes.
- (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]): Same.
- (-[WebCoreFrameBridge concludeDragForDraggingInfo:]): Same.
- * dom/Document.cpp:
- (WebCore::Document::elementFromPoint): Adjust for HitTestResult
- changes.
- (WebCore::Document::prepareMouseEvent): Same.
- * dom/Element.h:
- (WebCore::Element::target): Now has a virtual target()
- * html/HTMLAnchorElement.h: Same.
- * html/HTMLAreaElement.cpp:
- (WebCore::HTMLAreaElement::mapMouseEvent): Adjust for HitTestResult
- changes.
- * html/HTMLAreaElement.h: Virtual target()
- * html/HTMLBaseElement.h:
- (WebCore::HTMLBaseElement::target): Same.
- * html/HTMLFormElement.h: Same.
- * html/HTMLLinkElement.h: Same.
- * html/HTMLMapElement.cpp:
- (WebCore::HTMLMapElement::mapMouseEvent): Adjust for HitTestResult
- changes.
- * html/HTMLMapElement.h: Same.
- * page/Frame.cpp:
- (WebCore::Frame::isPointInsideSelection): Same.
- (WebCore::Frame::hitTestResultAtPoint): Same.
- * page/Frame.h: Same.
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent): Same.
- * platform/mac/ClipboardAccessPolicy.h: Added.
- (WebCore::):
- * platform/mac/ClipboardMac.h: Remove definition of AccessPolicy,
- include ClipboardAccessPolicy.h, and rename AccessPolicy to
- ClipboardAccessPolicy.
- * platform/mac/ClipboardMac.mm: Rename ClipboardAccessPolicy.
- (WebCore::ClipboardMac::ClipboardMac):
- (WebCore::ClipboardMac::setAccessPolicy):
- (WebCore::ClipboardMac::clearData):
- (WebCore::ClipboardMac::clearAllData):
- (WebCore::ClipboardMac::getData):
- (WebCore::ClipboardMac::setData):
- (WebCore::ClipboardMac::types):
- (WebCore::ClipboardMac::setDragImage):
- (WebCore::ClipboardMac::setDropEffect):
- (WebCore::ClipboardMac::setEffectAllowed):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::nodeAtPoint): Adjust for HitTestResult
- changes.
- * rendering/EllipsisBox.h:
- * rendering/HitTestResult.cpp: Added.
- (WebCore::HitTestResult::HitTestResult):
- (WebCore::HitTestResult::~HitTestResult):
- (WebCore::HitTestResult::operator=):
- (WebCore::HitTestResult::setInnerNode):
- (WebCore::HitTestResult::setInnerNonSharedNode):
- (WebCore::HitTestResult::setURLElement):
- (WebCore::HitTestResult::setScrollbar):
- (WebCore::HitTestResult::targetFrame):
- (WebCore::HitTestResult::boundingBox):
- (WebCore::HitTestResult::isSelected):
- (WebCore::HitTestResult::title):
- * rendering/HitTestResult.h: Added.
- (WebCore::HitTestResult::readonly):
- (WebCore::HitTestResult::active):
- (WebCore::HitTestResult::mouseMove):
- (WebCore::HitTestResult::innerNode):
- (WebCore::HitTestResult::innerNonSharedNode):
- (WebCore::HitTestResult::point):
- (WebCore::HitTestResult::URLElement):
- (WebCore::HitTestResult::scrollbar):
- (WebCore::HitTestResult::setPoint):
- (WebCore::HitTestResult::setReadonly):
- (WebCore::HitTestResult::setActive):
- (WebCore::HitTestResult::setMouseMove):
- * rendering/InlineBox.cpp:
- (WebCore::InlineBox::nodeAtPoint): Adjust to HitTestResult changes.
- * rendering/InlineBox.h: Same.
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::nodeAtPoint): Same.
- * rendering/InlineFlowBox.h: Same.
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::nodeAtPoint): Same.
- * rendering/InlineTextBox.h: Same.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::isPointInScrollbar): Same.
- (WebCore::RenderBlock::nodeAtPoint): Same.
- * rendering/RenderBlock.h: Same.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::nodeAtPoint): Same.
- * rendering/RenderBox.h: Same.
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::hitTestLines): Same.
- * rendering/RenderFlow.h: Same.
- * rendering/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::nodeAtPoint): Same.
- * rendering/RenderForeignObject.h: Same.
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::nodeAtPoint): Same.
- * rendering/RenderFrameSet.h: Same.
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::nodeAtPoint): Same.
- * rendering/RenderImage.h: Same.
- * rendering/RenderInline.cpp:
- (WebCore::RenderInline::nodeAtPoint): Same.
- * rendering/RenderInline.h: Same.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll): Same.
- (WebCore::RenderLayer::hitTest): Same.
- (WebCore::RenderLayer::hitTestLayer): Same.
- (WebCore::RenderLayer::updateHoverActiveState): Same.
- * rendering/RenderLayer.h: Same.
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::isPointInScrollbar): Same.
- * rendering/RenderListBox.h: Same.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::hitTest): Same.
- (WebCore::RenderObject::setInnerNode): Same.
- (WebCore::RenderObject::nodeAtPoint): Same.
- * rendering/RenderObject.h: Remove NodeInfo class and forward
- declare HitTestResult.
- * rendering/RenderPath.cpp:
- (WebCore::RenderPath::nodeAtPoint): Adjust to HitTestResult
- changes.
- * rendering/RenderPath.h: Same.
- * rendering/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::nodeAtPoint): Same.
- * rendering/RenderSVGImage.h: Same
- * rendering/RenderSVGText.cpp:
- (WebCore::RenderSVGText::nodeAtPoint): Same.
- * rendering/RenderSVGText.h: Same.
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::nodeAtPoint): Same.
- * rendering/RenderTableRow.h: Same.
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::nodeAtPoint): Same.
- * rendering/RenderTableSection.h: Same.
- * rendering/RenderText.h: Same.
- (WebCore::RenderText::nodeAtPoint): Same.
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::nodeAtPoint): Same.
- * rendering/RenderTextControl.h: Same.
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::nodeAtPoint): Same.
- * rendering/RootInlineBox.h: Same.
- 2006-10-27 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=11212, later we will address the performance
- impact of fixing it again.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::clear):
- 2006-10-27 Maciej Stachowiak <mjs@apple.com>
- Reviewed by John & Adam.
- - assorted speedups to fix perf regression from fixing correctness regression
- * WebCore.exp: exported new methods.
- * WebCore.xcodeproj/project.pbxproj: Added CachedResourceMac.mm
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * loader/CachedResource.cpp: Removed now obsolete getCFURL.
- * loader/CachedResource.h:
- * loader/mac/CachedResourceMac.mm: Added.
- (WebCore::CachedResource::getNSURLRequest): New method; the NSURLRequest is
- now cached in the CachedObject.
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- (WebCore::FrameLoader::loadedResourceFromMemoryCache): New method - lets
- the WebKit side do faster dispatch for clients that implement the fast path delegate.
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus): Instead of calling several FrameLoader methods,
- just call loadedResourceFromMemoryCache.
- * loader/mac/WebFrameLoaderClient.h:
- 2006-10-27 Oliver Hunt <oliver@apple.com>
- Reviewed by Maciej.
- build fix
- * dom/Document.cpp:
- (WebCore::Document::referrer):
- 2006-10-27 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
- Moved some WebCoreFrameBridge functions into FrameLoader.
-
- I had to make FrameLoader.h capable of compiling in C++-only source files
- by adding some forward declarations and __OBJC__ #ifdefs.
- * WebCore.exp:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::createEmptyDocument):
- (WebCore::FrameMac::tokenizerProcessedData):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- * dom/Document.cpp:
- (WebCore::Document::processHttpEquiv):
- (WebCore::Document::referrer):
- * loader/LoaderFunctions.h:
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- (WebCore::numRequests):
- (WebCore::FrameLoader::numPendingOrLoadingRequests):
- (WebCore::FrameLoader::isReloading):
- (WebCore::FrameLoader::referrer):
- (WebCore::FrameLoader::loadEmptyDocumentSynchronously):
- (WebCore::FrameLoader::startLoadingResource):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckIfReloading):
- * page/Frame.h:
- * page/FrameTree.cpp:
- (WebCore::FrameTree::isDescendantOf):
- (WebCore::FrameTree::traverseNext):
- * page/FrameTree.h:
- * platform/network/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- 2006-10-27 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4478625> HTML Editing: Basic table editing and culling
- Expanded the Deletion UI to lists, positioned block element and block elementss with borders.
- * editing/DeleteButtonController.cpp:
- (WebCore::isDeletableElement):
- (WebCore::enclosingDeletableElement):
- (WebCore::DeleteButtonController::respondToChangedSelection):
- 2006-10-27 John Sullivan <sullivan@apple.com>
- Reviewed by Kevin Decker
-
- Some more grammar-checking plumbing. No additional grammar jokes will have been made by the time
- you haven't not finished reading this.
- * rendering/InlineTextBox.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- Updated for changed signature of paintDocumentMarkers, which causes grammar markers to be
- considered also.
- (WebCore::InlineTextBox::paintDocumentMarkers):
- Renamed from paintAllMarkersOfType; now takes a bool for whether background or foreground
- markers should be painted, instead of a marker type. This avoids walking the collection of
- markers multiple times back to back. Now handles grammar markers.
- 2006-10-27 Timothy Hatcher <timothy@apple.com>
- Reviewed by Beth.
- Renamed Copy Files to Copy Generated Headers.
- Copy 4 DOM*Internal.h headers.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-10-27 John Sullivan <sullivan@apple.com>
- Reviewed by Anders
- * WebCore.exp:
- exported symbol for FrameMac->advanceToNextSpelling()
-
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- removed advanceToNextMisspelling callers. Clients in WebKit must now call FrameMac directly.
- 2006-10-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <http://bugs.webkit.org/show_bug.cgi?id=11423>
- REGRESSION: First newline missing from textarea's value
-
- The regression is that foo, return, bar in a textarea serializes as 'foobar'.
-
- Before my change in r17223, return (an InsertLineBreak) would insert a '\n'
- (the line break) then a br to prevent the '\n' from collapsing, since the
- insertion is being done at the end of a block (the textarea's shadow div). Then,
- inserting "bar" would displace the br, and "foo\nbar" would serialize as "foo\nbar".
- After my change in r17223, InsertLineBreak would insert a br then a '\n' (reversed
- the order). Then inserting "bar" would displace the '\n' and "foo"<br>"bar" would
- serialize as "foobar" because when serializing RenderTextControl intentionally asks
- textContent to not convert brs to newlines. It seems to think that the only brs in
- the shadow div will be placeholders or collapsed.
-
- We could remove this assumption, but, for consistancy's sake, I changed InsertLineBreak
- to insert two '\n's when at the end of a block in white-space:pre text. This alone
- would have fixed the bug, but introduced a new one, because foo, return, bar would
- produce "foo\nbar\n" which would serialize as "foo\nbar\n" (even though the second
- '\n' is collapsed, because of 9661). So, then I changed placeholder displacement to
- displace a '\n' if it's acting as a placeholder. A "placeholder" is now defined as
- a br or '\n' that will collapse (become superfluous) when content is inserted just
- before it.
-
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::removePlaceholderAt): Renamed. Remove
- a br or '\n' if content inserted just before it will cause it to collapse.
- * editing/CompositeEditCommand.h:
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply): Insert the same type of node
- to prevent a collapse as was used for the line break. Fixed comments.
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input): Call the renamed function.
-
- 2006-10-27 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brady.
- Fixed semantic inaccuracy in String::operator NSString *(), where a NULL
- String became an empty NSString *, instead of nil. This will become important
- as we start using this conversion more.
-
- Added work-around for AppKit crash that semantic accuracy revealed.
-
- No testcase because I don't think there's a way to reflect this change
- in a webpage yet.
- * platform/PlatformString.h:
- (WebCore::String::operator NSString*):
- * platform/mac/TextFieldMac.mm:
- (-[NSSearchFieldCell _addStringToRecentSearches:]):
- 2006-10-27 David Harrison <harrison@apple.com>
- Reviewed by Maciej,
- <rdar://problem/4003820> Expose blockquotes in AXAttributedStringForTextMarkerRange
- * bridge/mac/WebCoreAXObject.mm:
- (blockquoteLevel):
- Calculate and return the blockquote level of the element.
-
- (AXAttributeStringSetBlockquoteLevel):
- Add, if non-zero, or clear the block quote level attribute.
-
- (AXAttributedStringAppendText):
- Send AXAttributeStringSetBlockquoteLevel.
- 2006-10-27 Darin Adler <darin@apple.com>
- - fix one error in the Qt build
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
- Updated.
- 2006-10-27 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- * WebCore.exp: Export more symbols needed by WebKit.
- 2006-10-26 Geoffrey Garen <ggaren@apple.com>
- Reviewed by the Baroness Esmeralda Von Scratch N' Purr XIV.
- Fixed layout test crash. Oops.
-
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::canonicalizedTitle):
- 2006-10-26 John Sullivan <sullivan@apple.com>
- Reviewed by Brady
-
- - fixed <rdar://problem/4806064> Repro crash in FrameMac::loadRequest following iTunes music store link from salon.com
-
- This restores some of the nil-handling that was implicit before some of the code was converted from
- Objective-C to C++.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest):
- handle nil FrameMac
-
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge canTargetLoadInFrame:]):
- handle nil Frame
- 2006-10-26 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin, Maciej.
- Removed many uses of NSString *.
- Moved a few methods from WebCoreFrameBridge to FrameLoader, replacing
- stringByCollapsingNonPrintingCharacters with a c++ equivalent.
-
- PLT says no performance regression.
-
- * WebCore.exp:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- (WebCore::FrameLoader::setupForReplaceByMIMEType):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::canShowMIMEType):
- (WebCore::FrameLoader::representationExistsForURLScheme):
- (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoader::checkContentPolicy):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::invalidatePendingPolicyDecision):
- (WebCore::FrameLoader::checkNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
- (WebCore::FrameLoader::post):
- * loader/mac/WebDocumentLoader.h:
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::doesProgressiveLoad):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::title):
- (WebCore::DocumentLoader::setOverrideEncoding):
- (WebCore::DocumentLoader::overrideEncoding):
- (WebCore::DocumentLoader::setTitle):
- * loader/mac/WebFrameLoaderClient.h:
- * loader/mac/WebMainResourceLoader.mm:
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- 2006-10-26 Timothy Hatcher <timothy@apple.com>
- Reviewed by Adam.
- <rdar://problem/4796941> Table deletion outline is misplaced at nytimes.com
- The main table at nytimes.com has a fixed width of 874px, but the table ends
- up overflowing to 963px. We now use overflowWidth() and overflowHeight() to correct
- this. The other bug was a missing top and left of 0px on the container element,
- causing the deletion UI to sometimes be offset below the table.
- Now check for the element's renderer at the beginning of show() and
- return early if it is null.
- * editing/DeleteButtonController.cpp:
- (WebCore::DeleteButtonController::updateOutlineStyle):
- (WebCore::DeleteButtonController::show):
- 2006-10-26 Anders Carlsson <acarlsson@apple.com>
- Build fix.
- * html/CanvasRenderingContext2D.cpp:
- Include MathExtras.h
-
- 2006-10-26 John Sullivan <sullivan@apple.com>
- Reviewed by Anders.
- Some changes to support new grammar checking code in WebKit.
- * WebCore.exp:
- added mangled symbol for Document->removeMarkers() so I can call it from WebKit
-
- * WebCore.xcodeproj/project.pbxproj:
- Made Document.h and DocumentMarker.h private so I can include them from WebKit.
- Made HTMLCollection.h private because Document.h uses it.
-
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- removed unmarkAllMisspellings(); WebKit now calls through to the Document directly
- 2006-10-26 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Brady.
- Add reverseFind to String and use it instead of findRev.
- Use CString instead of DeprecatedCString in one place.
-
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::formData):
- * ksvg2/svg/SVGURIReference.cpp:
- (WebCore::SVGURIReference::getTarget):
- * loader/Decoder.cpp:
- (WebCore::Decoder::checkForCSSCharset):
- * platform/PlatformString.h:
- (WebCore::String::reverseFind):
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::reverseFind):
- * platform/StringImpl.h:
- 2006-10-26 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
-
- More plumbing for grammar checking. Still no grammars is checked.
- * dom/DocumentMarker.h:
- (WebCore::DocumentMarker::):
- added Grammar to enum of marker types; removed explicit enum values; removed unnecessary "enum"
-
- * platform/GraphicsContext.h:
- renamed method drawLineForMisspelling to drawLineForMisspellingOrBadGrammar;
- now takes a bool parameter for whether it represents bad grammar or a misspelling
-
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
- Renamed from drawLineForMisspelling; uses green dot instead of red dot for grammar case. Changed
- an existing "assert" to "ASSERT".
-
- * rendering/InlineTextBox.h:
- renamed function paintSpellingMarker to paintSpellingOrGrammarMarker;
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
- Renamed from paintSpellingMarker; now takes a bool parameter for whether it represents
- bad grammar or a misspelling
- (WebCore::InlineTextBox::paintAllMarkersOfType):
- now handles markers of type Grammar
- === Safari-521.29 ===
-
- 2006-10-26 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11424
- Cleanup rendering code
- - Assorted code cleanup.
- * rendering/AutoTableLayout.cpp:
- * rendering/AutoTableLayout.h:
- (WebCore::AutoTableLayout::totalPercent):
- * rendering/CounterListItem.h:
- * rendering/CounterNode.cpp:
- * rendering/CounterNode.h:
- (WebCore::CounterNode::~CounterNode):
- (WebCore::CounterNode::isReset):
- * rendering/CounterResetNode.cpp:
- * rendering/CounterResetNode.h:
- * rendering/DataRef.h:
- (WebCore::DataRef::DataRef):
- * rendering/DeprecatedRenderSelect.h:
- * rendering/DeprecatedSlider.cpp:
- * rendering/DeprecatedSlider.h:
- * rendering/EllipsisBox.cpp:
- * rendering/EllipsisBox.h:
- (WebCore::EllipsisBox::EllipsisBox):
- * rendering/FixedTableLayout.cpp:
- * rendering/FixedTableLayout.h:
- * rendering/GapRects.h:
- * rendering/InlineBox.cpp:
- * rendering/InlineBox.h:
- (WebCore::InlineBox::InlineBox):
- (WebCore::InlineBox::setConstructed):
- (WebCore::InlineBox::clearTruncation):
- (WebCore::InlineBox::markDirty):
- * rendering/InlineFlowBox.cpp:
- * rendering/InlineFlowBox.h:
- (WebCore::InlineFlowBox::InlineFlowBox):
- (WebCore::InlineFlowBox::setConstructed):
- (WebCore::InlineFlowBox::setEdges):
- (WebCore::InlineFlowBox::setVerticalOverflowPositions):
- (WebCore::InlineFlowBox::setVerticalSelectionPositions):
- * rendering/InlineRunBox.h:
- (WebCore::InlineRunBox::paintBackgroundAndBorder):
- (WebCore::InlineRunBox::paintDecorations):
- * rendering/InlineTextBox.cpp:
- * rendering/InlineTextBox.h:
- (WebCore::InlineTextBox::InlineTextBox):
- (WebCore::InlineTextBox::end):
- (WebCore::InlineTextBox::textObject):
- * rendering/Length.h:
- (WebCore::Length::Length):
- * rendering/ListMarkerBox.cpp:
- * rendering/ListMarkerBox.h:
- * rendering/RenderPartObject.h:
- * rendering/RootInlineBox.cpp:
- * rendering/RootInlineBox.h:
- * rendering/SVGInlineFlowBox.cpp:
- * rendering/SVGInlineFlowBox.h:
- (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
- * rendering/SVGRootInlineBox.cpp:
- * rendering/SVGRootInlineBox.h:
- (WebCore::SVGRootInlineBox::SVGRootInlineBox):
- * rendering/TableLayout.h:
- (WebCore::TableLayout::TableLayout):
- (WebCore::TableLayout::~TableLayout):
- * rendering/bidi.h:
- (WebCore::BidiStatus::BidiStatus):
- (WebCore::BidiRun::BidiRun):
- * rendering/break_lines.h:
- 2006-10-26 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
- <http://bugs.webkit.org/show_bug.cgi?id=11329>
- Gmail Editor: Can't remove styling applied to selection after clicking "Remove Formatting" toolbar icon.
-
- * editing/Editor.cpp:
- (WebCore::Editor::removeFormattingAndStyle): Moved from JSEditor.
- Wrapped the plain text fragment in a style span with the document
- default style so that it will appear unstyled regardless of where
- it is inserted. Could have also inserted the plain text fragment
- and then applied the document default style to it, but there is not
- yet any redundant style prevention in ApplyStyleCommand, so this
- is cleaner.
- * editing/Editor.h:
- * editing/JSEditor.cpp:
- 2006-10-26 Oliver Hunt <oliver@apple.com>
- Reviewed by Anders.
- Fixes <rdar://problem/4800518> -- needed to update existing
- canvas path elements when transforms are performed on the
- context.
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::scale):
- (WebCore::CanvasRenderingContext2D::rotate):
- (WebCore::CanvasRenderingContext2D::translate):
- 2006-10-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Darin.
- Fix Qt/Linux build.
- * platform/network/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::slotData):
- (WebCore::ResourceLoaderManager::slotMimetype):
- (WebCore::ResourceLoaderManager::remove):
- (WebCore::ResourceLoaderManager::add):
- * platform/network/qt/ResourceLoaderQt.cpp:
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::ServeSynchronousRequest):
- 2006-10-26 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Fix: <rdar://problem/3951815> add "type-to-select" feature for list
- boxes (<select> elements)
- Fix: http://bugs.webkit.org/show_bug.cgi?id=9764 New popup menus
- should have type-ahead selection without popping up menu
- * WebCore.xcodeproj/project.pbxproj: Version wars.
- * html/HTMLSelectElement.h: Add new instance variables for type-ahead
- find.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::HTMLSelectElement): Initialize new
- instance variables.
- (WebCore::HTMLSelectElement::defaultEventHandler): Perform type-ahead
- find on printable character presses.
- (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Remove
- redundant check that the listIndex has changed (setSelectedIndex does
- this for us), and fix indentation.
- (WebCore::HTMLSelectElement::listBoxDefaultEventHandler): Change an if
- to an else-if.
- (WebCore::stripLeadingWhiteSpace): Helper function for typeAheadFind()
- to strip leading whitespace (including non-breaking spaces) from a
- string.
- (WebCore::HTMLSelectElement::typeAheadFind): New method to perform
- type-ahead find.
- * platform/PopupMenu.h: Added new updateFromElement() method to be
- called from RenderMenuList::updateFromElement().
- * platform/mac/PopupMenuMac.mm:
- (WebCore::PopupMenu::updateFromElement): While we are using
- NSPopUpButtonCell for our popups, this method can stay empty.
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::updateFromElement): Scroll to reveal the first
- selected element.
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::updateFromElement): Tell the popup to update
- if it's visible.
- 2006-10-26 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11360
- editing/pasteboard/copy-paste-bidi intermittently fails due to disappearance of anonymous RenderBlock
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
- Use two vectors instead of a hash map: more efficient, deterministic. There was no
- reason to use a hash table.
- 2006-10-26 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - .5% speed improvement by avoiding excess CFURLRef allocation
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::getCFURL): New method. For Mac only (for now), cache the CFURL
- here for later reuse.
- * loader/CachedResource.h:
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::CheckCacheObjectStatus): Use the cached CFURL, don't make a whole new one.
- 2006-10-25 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - removed 55 methods from WebCoreFrameBridge
- - changed callers to use Frame directly instead
- - put FrameLoaderTypes.h types into the WebCore namespace
- - first steps to get FrameLoader.h ready for cross-platform duty
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest):
- (WebCore::FrameMac::startRedirectionTimer):
- (WebCore::FrameMac::stopRedirectionTimer):
- (WebCore::FrameMac::passSubframeEventToSubframe):
- (WebCore::FrameMac::handledOnloadEvents):
- (WebCore::FrameMac::isLoadTypeReload):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge executionContextForView:]):
- (updateRenderingForBindings):
- (-[WebCoreFrameBridge canTargetLoadInFrame:]):
- (-[WebCoreFrameBridge forceLayoutAdjustingViewSize:]):
- (-[WebCoreFrameBridge forceLayoutWithMinimumPageWidth:maximumPageWidth:adjustingViewSize:]):
- (-[WebCoreFrameBridge installInFrame:]):
- (-[WebCoreFrameBridge numPendingOrLoadingRequests]):
- (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
- (-[WebCoreFrameBridge baseWritingDirectionForSelectionStart]):
- (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
- (stringByCollapsingNonPrintingCharacters):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- * loader/FrameLoaderTypes.h:
- * loader/mac/FrameLoader.h:
- * loader/mac/FrameLoader.mm:
- (WebCore::FrameLoader::FrameLoader):
- (WebCore::FrameLoader::setupForReplace):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::activeDocumentLoader):
- (WebCore::FrameLoader::state):
- (WebCore::FrameLoader::setState):
- (WebCore::FrameLoader::clearProvisionalLoad):
- (WebCore::FrameLoader::markLoadComplete):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::handleFallbackContent):
- (WebCore::FrameLoader::isLoadingMainFrame):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- (WebCore::FrameLoader::continueAfterWillSubmitForm):
- (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
- (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
- (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
- (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
- * loader/mac/ImageDocumentMac.mm:
- (WebCore::finishImageLoad):
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::isLoadingInAPISense):
- * loader/mac/WebMainResourceLoader.h:
- * loader/mac/WebMainResourceLoader.mm:
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- (-[WebCoreMainResourceLoaderAsPolicyDelegate continueAfterContentPolicy:]):
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- * platform/mac/ListBoxMac.mm:
- (-[WebCoreTableView keyDown:]):
- (-[WebCoreTableView keyUp:]):
- * platform/mac/WebCoreTextField.mm:
- (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
- 2006-10-25 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Darin.
- Printing fixes
- * page/Frame.cpp:
- (WebCore::Frame::adjustPageHeight):
- * page/Frame.h:
- (WebCore::Frame::setupRootForPrinting):
- (WebCore::Frame::computePageRects):
- 2006-10-25 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4799088>
- REGRESSION: Translation widget fails to convert data and reports a "Data unavailable" error.
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- Set the HTTP method before the HTTP body.
- 2006-10-25 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adam.
- Renamed WebFrameLoader to FrameLoader, to match class name.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- * loader/mac/FrameLoader.mm: Added.
- * loader/mac/IconLoaderMac.mm:
- * loader/mac/WebDocumentLoader.mm:
- * loader/mac/WebFrameLoader.h: Removed.
- * loader/mac/WebFrameLoader.mm: Removed.
- * loader/mac/WebLoader.mm:
- * loader/mac/WebMainResourceLoader.mm:
- * loader/mac/WebNetscapePlugInStreamLoader.mm:
- * loader/mac/WebSubresourceLoader.mm:
- 2006-10-25 Darin Adler <darin@apple.com>
- - fix full builds
- * WebCore.xcodeproj/project.pbxproj: Mark bridge/mac/WebCoreResourceLoader.h as private.
- 2006-10-25 David Smith <catfish.man@gmail.com>
- Reviewed by Mitz.
- Fixed REGRESSION (r17280): Repro crash when clicking a link with target="_blank"
- http://bugs.webkit.org/show_bug.cgi?id=11411
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge canTargetLoadInFrame:]): Check that the target has a frame before using it.
- 2006-10-25 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Mitz.
- - moved some files that are essentially part of the ResourceLoader implementation to platform/network/mac
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreResourceLoader.h: Moved to platform/network/mac.
- * bridge/mac/WebCoreResourceLoaderImp.h: Moved to platform/network/mac.
- * bridge/mac/WebCoreResourceLoaderImp.mm: Moved to platform/network/mac.
- 2006-10-25 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Mark.
- - remove no longer existing symbol that was breaking linking
- * WebCore.exp:
- 2006-10-25 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Mitz.
-
- - fixed "REGRESSION: Activity window doesn't always list all files until refresh"
- http://bugs.webkit.org/show_bug.cgi?id=11212
- I couldn't figure out how to write a test case.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::clear): Avoid crashing if already detached.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::clear): Change prototype to make this a proper
- overload for Frame::clear once again(!).
- 2006-10-24 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - converted WebFrameLoaderClient to C++
- - renamed frame->frameLoader() function to frame->loader()
- - renamed [bridge impl] to [bridge _frame]
- - removed some bridge methods
- * WebCore.exp: Added more exports.
- * WebCore.xcodeproj/project.pbxproj: Made FrameTree.h private instead of project-internal
- so it can be used in WebKit.
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::createFrame):
- (WebCore::FrameMac::didFirstLayout):
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject rendererForView:]):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge _shouldAllowAccessFrom:]):
- (-[WebCoreFrameBridge canTargetLoadInFrame:]):
- (-[WebCoreFrameBridge setOpener:]):
- (-[WebCoreFrameBridge getData:andResponse:forURL:]):
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
- (-[WebCoreFrameBridge setTitle:]):
- (-[WebCoreFrameBridge originalRequestURL]):
- (-[WebCoreFrameBridge isLoadTypeReload]):
- (-[WebCoreFrameBridge frameDetached]):
- (-[WebCoreFrameBridge tokenizerProcessedData]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
- (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
- (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- (-[WebCoreFrameBridge incomingReferrer]):
- (-[WebCoreFrameBridge isReloading]):
- (-[WebCoreFrameBridge handledOnloadEvents]):
- (-[WebCoreFrameBridge mainResourceURLResponse]):
- (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
- (-[WebCoreFrameBridge _frame]):
- (-[WebCoreFrameBridge executionContextForView:]):
- * bridge/mac/WebCorePageBridge.mm:
- (-[WebCorePageBridge setMainFrame:]):
- * dom/Position.cpp:
- (WebCore::Position::upstream):
- * loader/mac/IconLoaderMac.mm:
- (IconLoader::notifyIconChanged):
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::frameLoader):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::finishedLoading):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- * loader/mac/WebFormState.mm:
- (WebCore::FormState::FormState):
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (WebCore::FrameLoader::~FrameLoader):
- (WebCore::FrameLoader::prepareForLoadStart):
- (WebCore::FrameLoader::finalSetupForReplace):
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::startLoading):
- (WebCore::FrameLoader::stopLoadingSubframes):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::FrameLoader::cancelPendingArchiveLoad):
- (WebCore::FrameLoader::defersCallbacksChanged):
- (WebCore::FrameLoader::setDefersCallbacks):
- (WebCore::FrameLoader::setDocumentLoader):
- (WebCore::FrameLoader::provisionalLoadStarted):
- (WebCore::FrameLoader::clearProvisionalLoad):
- (WebCore::FrameLoader::identifierForInitialRequest):
- (WebCore::FrameLoader::willSendRequest):
- (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
- (WebCore::FrameLoader::didCancelAuthenticationChallenge):
- (WebCore::FrameLoader::didReceiveResponse):
- (WebCore::FrameLoader::didReceiveData):
- (WebCore::FrameLoader::didFinishLoad):
- (WebCore::FrameLoader::didFailToLoad):
- (WebCore::FrameLoader::privateBrowsingEnabled):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
- (WebCore::FrameLoader::clientRedirected):
- (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::closeOldDataSources):
- (WebCore::FrameLoader::opened):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::download):
- (WebCore::FrameLoader::finishedLoading):
- (WebCore::FrameLoader::notifyIconChanged):
- (WebCore::FrameLoader::cancelledError):
- (WebCore::FrameLoader::fileDoesNotExistError):
- (WebCore::FrameLoader::willUseArchive):
- (WebCore::FrameLoader::isArchiveLoadPending):
- (WebCore::FrameLoader::handleUnimplementablePolicy):
- (WebCore::FrameLoader::cannotShowMIMEType):
- (WebCore::FrameLoader::interruptionForPolicyChangeError):
- (WebCore::FrameLoader::canShowMIMEType):
- (WebCore::FrameLoader::representationExistsForURLScheme):
- (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoader::checkContentPolicy):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
- (WebCore::FrameLoader::finishedLoadingDocument):
- (WebCore::FrameLoader::committedLoad):
- (WebCore::FrameLoader::revertToProvisional):
- (WebCore::FrameLoader::setMainDocumentError):
- (WebCore::FrameLoader::mainReceivedCompleteError):
- (WebCore::FrameLoader::subframeIsLoading):
- (WebCore::FrameLoader::willChangeTitle):
- (WebCore::FrameLoader::didChangeTitle):
- (WebCore::FrameLoader::checkNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::checkNavigationPolicy):
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
- (WebCore::FrameLoader::didFirstLayout):
- (WebCore::FrameLoader::frameLoadCompleted):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
- (WebCore::FrameLoader::sendRemainingDelegateMessages):
- (WebCore::FrameLoader::requestFromDelegate):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::detachChildren):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::FrameLoader::actionInformation):
- (WebCore::FrameLoader::checkLoadComplete):
- (WebCore::FrameLoader::setClient):
- (WebCore::FrameLoader::client):
- (WebCore::FrameLoaderClient::~FrameLoaderClient):
- * loader/mac/WebFrameLoaderClient.h:
- * loader/mac/WebLoader.mm:
- (WebCore::WebResourceLoader::frameLoader):
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- * page/Frame.cpp:
- (WebCore::Frame::loader):
- * page/Frame.h:
- * platform/mac/SliderMac.mm:
- (Slider::focusPolicy):
- 2006-10-24 Darin Adler <darin@apple.com>
- Rubber stamped by Anders.
- - get rid of the assertion firing while running the layout tests
- This does not fix the real problem, which is that we need to map offsets within
- possibly-text-transformed text in the render tree to DOM tree offsets and vice
- versa -- but it gets the tests running again.
- * dom/Position.cpp: (WebCore::Position::upstream): Commented out the assertion.
- 2006-10-24 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - more ResourceLoader cleanup
- - moved HTTPHeaderMap out of ResourceRequest class, so ResourceResponse will be able to use it too
- - took out attempts to suppress setting of "HEAD" and "GET" methods, since underlying bugs are now fixed
-
- * loader/LoaderFunctions.h:
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- * platform/network/HTTPHeaderMap.h: Added.
- * platform/network/ResourceLoader.cpp:
- (WebCore::ResourceLoader::requestHeaders):
- * platform/network/ResourceLoader.h:
- * platform/network/ResourceRequest.h:
- * platform/network/cf/ResourceLoaderCFNet.cpp:
- (WebCore::addHeadersFromHashMap):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- * xml/xmlhttprequest.h:
- 2006-10-24 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
- <http://bugs.webkit.org/show_bug.cgi?id=10993>
- GMail Editor: Caret doesn't always position itself after list marker
-
- List creation uses moveParagraphs to push content into list items.
- moveParagraphs uses a TextIterator to restore selections after moves.
- Some characters emitted by the TextIterator had bad ranges associated
- with them. rangeFromLocationAndLength would skip past the range it
- should have used when asked for ranges of length 0.
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::TextIterator): No longer need to initialize a
- removed member variable.
- (WebCore::TextIterator::advance): An extra newline is emitted when leaving
- some blocks. Use the same range for this newline as for the first newline.
- We should remove this code and just emit two '\n's.
- (WebCore::TextIterator::handleTextNode): Setup m_range.
- (WebCore::TextIterator::handleTextBox): Ditto.
- (WebCore::TextIterator::handleReplacedElement): Ditto.
- (WebCore::TextIterator::handleNonTextNode): Ditto.
- (WebCore::TextIterator::exitNode): Use an m_range from the last VisiblePosition
- in the block we're leaving to that VP after that one.
- (WebCore::TextIterator::emitCharacter): This function now takes in the start
- and the end of the range associated with the emited character, and sets up m_range.
- (WebCore::TextIterator::range): Return m_range. If it is null (we are atEnd),
- return the end of the range used to create the iterator, as a convenience to
- callers that use call range() on an iterator that is atEnd.
- (WebCore::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
- Same as the changes made to TextIterator's constructor.
- (WebCore::SimplifiedBackwardsTextIterator::advance): Use a null m_range instead of
- a null m_positionNode to signal that we're finished.
- (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Ditto.
- (WebCore::SimplifiedBackwardsTextIterator::handleReplacedElement): Similar to changes
- made to TextIterator.
- (WebCore::SimplifiedBackwardsTextIterator::emitCharacter): Ditto.
- (WebCore::SimplifiedBackwardsTextIterator::emitNewline): Simplified.
- (WebCore::SimplifiedBackwardsTextIterator::range): Similar to the changes made to
- TextIterator::range.
- (WebCore::CharacterIterator::range): This function assumed that an iterator's
- range() was safe to modify.
- (WebCore::TextIterator::rangeFromLocationAndLength):
- If the range we're looking for starts in the current chunk, this function assumed
- that if the chunk started in a text node, it would end in the same text node. This
- is no longer the case.
- If the range we're looking for starts in the middle of the current chunk, I assume
- that the chunk is inside a text node, because those are the only chunks with length
- greater than one at the moment.
- If the range we're looking for is a zero length range that starts/ends at the end of the
- current chunk, we used to return the start of the next chunk, but that's wrong and
- is what caused this bug.
- * editing/TextIterator.h:
- (WebCore::TextIterator::atEnd): The iterator is atEnd when m_range is null.
- (WebCore::SimplifiedBackwardsTextIterator::atEnd):
- * editing/visible_units.cpp:
- (WebCore::previousBoundary): Cleaned up by using a convenience function.
- (WebCore::nextBoundary): Ditto.
- 2006-10-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- * platform/network/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- Don't retain the header dictionary.
- 2006-10-24 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Anders.
- Fixed http://bugs.webkit.org/show_bug.cgi?id=11404
- REGRESSION: Reproducible assertion failure in Shared<WebCore::StringImpl>::ref()
- running svg/custom/svg/custom/gradient-attr-update.svg
-
- SVGRenderStyle wasn't ref-ing the shared objects it held onto. Oops.
- * ksvg2/css/SVGRenderStyle.h:
- * ksvg2/css/SVGRenderStyleDefs.h:
- 2006-10-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Mitz.
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::ResourceRequest):
- Set the http method to "GET" in the constructor that takes a String.
- 2006-10-24 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Move kcanvas/Render* and kcanvas/SVG* to rendering/Render*
- and rendering/SVG* respectively. Fix Xcode project and
- CMakeLists.txt to account for the moves.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/RenderForeignObject.cpp: Removed.
- * kcanvas/RenderForeignObject.h: Removed.
- * kcanvas/RenderPath.cpp: Removed.
- * kcanvas/RenderPath.h: Removed.
- * kcanvas/RenderSVGContainer.cpp: Removed.
- * kcanvas/RenderSVGContainer.h: Removed.
- * kcanvas/RenderSVGImage.cpp: Removed.
- * kcanvas/RenderSVGImage.h: Removed.
- * kcanvas/RenderSVGInline.cpp: Removed.
- * kcanvas/RenderSVGInline.h: Removed.
- * kcanvas/RenderSVGInlineText.cpp: Removed.
- * kcanvas/RenderSVGInlineText.h: Removed.
- * kcanvas/RenderSVGTSpan.cpp: Removed.
- * kcanvas/RenderSVGTSpan.h: Removed.
- * kcanvas/RenderSVGText.cpp: Removed.
- * kcanvas/RenderSVGText.h: Removed.
- * kcanvas/SVGInlineFlowBox.cpp: Removed.
- * kcanvas/SVGInlineFlowBox.h: Removed.
- * kcanvas/SVGRootInlineBox.cpp: Removed.
- * kcanvas/SVGRootInlineBox.h: Removed.
- 2006-10-24 Geoffrey Garen <ggaren@apple.com>
- Rolling back in, now fixed:
-
- Nixed a few more redundant loading functions in Frame. Did my best to update
- the non-Mac builds.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::urlSelected): Kept always 'true' argument for userGesture
- always 'true', because changing it broke the world, and testing seems to
- indicate that the one caller that might have passed 'false' didn't need to.
- * page/Frame.cpp:
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::frameLoader):
- (WebCore::Frame::redirectionTimerFired):
- * page/Frame.h:
- * platform/gdk/FrameGdk.cpp:
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::issueCopyCommand):
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQt.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::FrameWin::shouldInterruptJavaScript):
- (WebCore::FrameWin::issueCopyCommand):
- 2006-10-24 Anders Carlsson <acarlsson@apple.com>
- Fix the build (Update for changes to ResourceLoader)
-
- * platform/network/cf/ResourceLoaderCFNet.cpp:
- (WebCore::addHeadersFromHashMap):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- 2006-10-24 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Change #includes using <kcanvas/*.h> to use "*.h" instead
- to prepare for moving the kcanvas files.
- * kcanvas/RenderSVGContainer.h:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- * ksvg2/svg/SVGFETileElement.cpp:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- 2006-10-24 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - More movement towards the final network API.
-
- Changed ResourceLoader::create to take a ResurceRequest and start
- the load. Removed methods relating to setting request
- headers. Removed methods relating to metaData. Added some more
- convenience methods to ResourceRequest.
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * loader/LoaderFunctions.h:
- * loader/icon/IconLoader.cpp:
- (IconLoader::startLoading):
- (IconLoader::didFinishLoading):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdkClientDefault::openURL):
- (WebCore::FrameGdkClientDefault::submitForm):
- * platform/network/ResourceLoader.cpp:
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::create):
- (WebCore::ResourceLoader::responseHTTPHeadersAsString):
- (WebCore::ResourceLoader::url):
- (WebCore::ResourceLoader::postData):
- (WebCore::ResourceLoader::method):
- (WebCore::ResourceLoader::client):
- * platform/network/ResourceLoader.h:
- * platform/network/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/network/ResourceRequest.h:
- (WebCore::ResourceRequest::ResourceRequest):
- (WebCore::ResourceRequest::httpAccept):
- (WebCore::ResourceRequest::setHTTPAccept):
- (WebCore::ResourceRequest::addHTTPHeaderFields):
- * platform/network/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ResourceLoader::retrieveResponseEncoding):
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::didFinishLoading):
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- 2006-10-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * loader/FormData.cpp:
- (WebCore::FormData::FormData):
- * loader/FormData.h:
- (WebCore::FormData::FormData):
- Add new constructor that takes a void* and a size.
- 2006-10-24 Geoffrey Garen <ggaren@apple.com>
- Rolling out my last change because it broke the world.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::openURL):
- (WebCore::FrameMac::openURLRequest):
- (WebCore::FrameMac::urlSelected):
- * page/Frame.cpp:
- (WebCore::Frame::openURL):
- (WebCore::Frame::frameLoader):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::redirectionTimerFired):
- * page/Frame.h:
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::openURL):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::openURLRequest):
- * platform/qt/FrameQt.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::FrameWin::openURL):
- (WebCore::FrameWin::openURLRequest):
- 2006-10-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Adam.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11396
- Kill KRenderingFillPainter/KRenderingStrokePainter. Those are not needed
- anymore, since kcanvas/ksvg2 are tightly integrated. No LayoutTests fixed
- or broken.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::operator<<):
- (WebCore::writeStyle):
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::fillContains):
- * kcanvas/device/KRenderingFillPainter.cpp:
- * kcanvas/device/KRenderingFillPainter.h:
- * kcanvas/device/KRenderingStrokePainter.cpp:
- * kcanvas/device/KRenderingStrokePainter.h:
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- (WebCore::KRenderingPaintServerLinearGradientQt::setup):
- (WebCore::KRenderingPaintServerRadialGradientQt::setup):
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- (WebCore::KRenderingPaintServerQt::setPenProperties):
- * kcanvas/device/qt/KRenderingPaintServerQt.h:
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
- (WebCore::KRenderingPaintServerSolidQt::setup):
- * kcanvas/device/qt/RenderPathQt.cpp:
- (WebCore::getPathStroke):
- (WebCore::RenderPath::strokeBBox):
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::RenderPath::strokeBBox):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
- (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
- * kcanvas/device/quartz/QuartzSupport.h:
- (WebCore::CGLineCapFromKC):
- (WebCore::CGLineJoinFromKC):
- * kcanvas/device/quartz/QuartzSupport.mm:
- (WebCore::applyStrokeStyleToContext):
- (WebCore::strokeBoundingBox):
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- (WebCore::CSSStyleSelector::applySVGProperty):
- * ksvg2/css/SVGRenderStyle.h:
- (WebCore::SVGRenderStyle::InheritedFlags::):
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- 2006-10-24 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Anders.
- Nixed a few more redundant loading functions in Frame. Did my best to update
- the non-Mac builds.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::urlSelected): Changed always 'true' argument for userGesture
- to actually check for a user gesture. New callers rely on this behavior,
- and it seems like the previous behavior must have been a bug.
- * page/Frame.cpp:
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::frameLoader):
- (WebCore::Frame::redirectionTimerFired):
- * page/Frame.h:
- * platform/gdk/FrameGdk.cpp:
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::issueCopyCommand):
- * platform/qt/FrameQt.cpp:
- * platform/qt/FrameQt.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::FrameWin::shouldInterruptJavaScript):
- (WebCore::FrameWin::issueCopyCommand):
- 2006-10-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Fix Qt/Linux build.
- - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
- - Fix CMakeLists.txt to include platform/network.
- * CMakeLists.txt:
- * platform/qt/BrowserExtensionQt.cpp: Removed.
- * platform/qt/BrowserExtensionQt.h: Removed.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::createNewWindow):
- (WebCore::FrameQt::goBackOrForward):
- (WebCore::FrameQt::historyURL):
- (WebCore::FrameQt::getHistoryLength):
- * platform/qt/FrameQt.h:
- * platform/qt/PageQt.cpp:
- (WebCore::Page::canRunModal):
- (WebCore::Page::canRunModalNow):
- (WebCore::Page::runModal):
- 2006-10-24 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Tim H.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11314
- Fix build when XSLT_SUPPORT is not defined
- Fix unconditional use of XSLT support.
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::end):
- 2006-10-24 Simon Hausmann <hausmann@kde.org>
- Reviewed by Darin.
- * CMakeLists.txt: Added project name to kde4_automoc macro, as
- required by the latest KDE4 cmake module.
- 2006-10-24 Mitz Pettel <mitz@webkit.org>
- Reviewed by Tim H.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11394
- HTMLViewSourceDocuments are leaking
- * html/HTMLViewSourceDocument.h: Changed RefPtr to plain pointer to avoid
- ref cycle.
- 2006-10-23 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
- Removed one of Frame's redundant urlSelected methods.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::urlSelected):
- since it's unused.
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler): Changed DeprecatedString
- to String because the former is deprecated and its performance is irrelevant
- here. Added call to completeURL because Frame no longer does it for us.
- Having the call here also improves clarity about the element's behavior.
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::defaultEventHandler): ditto. Also removed bizarre
- irrelevent NULL checks on ownerDocument() because I couldn't help myself.
- * page/Frame.cpp:
- (WebCore::Frame::changeLocation):
- (WebCore::Frame::urlSelected):
- * page/Frame.h:
- * platform/network/ResourceRequest.h: Removed explicit keyword on constructor
- because we want to be able to use these constructors instead of helper functions
- mimicking their behavior sprinkled across different classes.
- (WebCore::ResourceRequest::ResourceRequest):
- 2006-10-24 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Moved FrameLoader from WebCoreFrameBridge to Frame. Frame.h/cpp have generic accessors to the FrameLoader itself
- and creation/deletion is currently managed in FrameMac.mm
- Besides explicitly commented-upon methods, most of the touched code simply changes to get the FrameLoader from the
- frame instead of the bridge.
- The method [WebCoreFrameBridge frameLoader] remains but only for WebKit's use - No new WebCore code should make
- use of it as its days are numbered!
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac): Create the FrameLoader
- (WebCore::FrameMac::~FrameMac): Nuke it
- (WebCore::FrameMac::loadRequest):
- * bridge/mac/WebCoreFrameBridge.h: No longer holds an m_frameLoader
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]): No longer creates the FrameLoader
- (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]): Ditto
- (-[WebCoreFrameBridge clearFrame]): No longer tears down the FrameLoader
- (-[WebCoreFrameBridge setFrameLoaderClient:]):
- (-[WebCoreFrameBridge frameLoader]):
- (-[WebCoreFrameBridge setTitle:]):
- (-[WebCoreFrameBridge didFirstLayout]):
- (-[WebCoreFrameBridge notifyIconChanged:]):
- (-[WebCoreFrameBridge originalRequestURL]):
- (-[WebCoreFrameBridge isLoadTypeReload]):
- (-[WebCoreFrameBridge frameDetached]):
- (-[WebCoreFrameBridge tokenizerProcessedData]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
- (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
- (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- (-[WebCoreFrameBridge incomingReferrer]):
- (-[WebCoreFrameBridge isReloading]):
- (-[WebCoreFrameBridge handledOnloadEvents]):
- (-[WebCoreFrameBridge mainResourceURLResponse]):
- (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::frameLoader):
- * loader/mac/WebFrameLoader.mm:
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::stopLoadingSubframes):
- (WebCore::FrameLoader::defersCallbacksChanged):
- (WebCore::FrameLoader::setState):
- (WebCore::FrameLoader::closeOldDataSources):
- (WebCore::FrameLoader::subframeIsLoading):
- (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::detachChildren):
- (WebCore::FrameLoader::checkLoadComplete):
- * loader/mac/WebLoader.mm:
- (WebCore::WebResourceLoader::frameLoader):
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- * page/Frame.cpp:
- (WebCore::Frame::frameLoader):
- * page/Frame.h:
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- 2006-10-24 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - fixed two crashes in layout tests I just introduced
- * loader/mac/WebFrameLoader.mm:
- (WebCore::FrameLoader::load): Add null check.
- (WebCore::FrameLoader::setState): Ditto.
- 2006-10-23 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - converted WebDocumentLoader to C++
- * WebCore.exp:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setTitle:]):
- (-[WebCoreFrameBridge originalRequestURL]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- (-[WebCoreFrameBridge incomingReferrer]):
- (-[WebCoreFrameBridge isReloading]):
- (-[WebCoreFrameBridge mainResourceURLResponse]):
- * loader/mac/WebDocumentLoader.h:
- * loader/mac/WebDocumentLoader.mm:
- (WebCore::DocumentLoader::DocumentLoader):
- (WebCore::DocumentLoader::frameLoader):
- (WebCore::DocumentLoader::~DocumentLoader):
- (WebCore::DocumentLoader::setMainResourceData):
- (WebCore::DocumentLoader::mainResourceData):
- (WebCore::DocumentLoader::originalRequest):
- (WebCore::DocumentLoader::originalRequestCopy):
- (WebCore::DocumentLoader::request):
- (WebCore::DocumentLoader::initialRequest):
- (WebCore::DocumentLoader::actualRequest):
- (WebCore::DocumentLoader::URL):
- (WebCore::DocumentLoader::unreachableURL):
- (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
- (WebCore::DocumentLoader::setRequest):
- (WebCore::DocumentLoader::setResponse):
- (WebCore::DocumentLoader::isStopping):
- (WebCore::DocumentLoader::bridge):
- (WebCore::DocumentLoader::setMainDocumentError):
- (WebCore::DocumentLoader::mainDocumentError):
- (WebCore::DocumentLoader::clearErrors):
- (WebCore::DocumentLoader::mainReceivedError):
- (WebCore::DocumentLoader::stopLoading):
- (WebCore::DocumentLoader::setupForReplace):
- (WebCore::DocumentLoader::commitIfReady):
- (WebCore::DocumentLoader::finishedLoading):
- (WebCore::DocumentLoader::setCommitted):
- (WebCore::DocumentLoader::isCommitted):
- (WebCore::DocumentLoader::setLoading):
- (WebCore::DocumentLoader::isLoading):
- (WebCore::DocumentLoader::commitLoad):
- (WebCore::DocumentLoader::doesProgressiveLoad):
- (WebCore::DocumentLoader::receivedData):
- (WebCore::DocumentLoader::setupForReplaceByMIMEType):
- (WebCore::DocumentLoader::updateLoading):
- (WebCore::DocumentLoader::response):
- (WebCore::DocumentLoader::setFrame):
- (WebCore::DocumentLoader::attachToFrame):
- (WebCore::DocumentLoader::detachFromFrame):
- (WebCore::DocumentLoader::prepareForLoadStart):
- (WebCore::DocumentLoader::loadingStartedTime):
- (WebCore::DocumentLoader::setIsClientRedirect):
- (WebCore::DocumentLoader::isClientRedirect):
- (WebCore::DocumentLoader::setPrimaryLoadComplete):
- (WebCore::DocumentLoader::isLoadingInAPISense):
- (WebCore::DocumentLoader::addResponse):
- (WebCore::DocumentLoader::stopRecordingResponses):
- (WebCore::DocumentLoader::title):
- (WebCore::DocumentLoader::setLastCheckedRequest):
- (WebCore::DocumentLoader::lastCheckedRequest):
- (WebCore::DocumentLoader::triggeringAction):
- (WebCore::DocumentLoader::setTriggeringAction):
- (WebCore::DocumentLoader::responses):
- (WebCore::DocumentLoader::setOverrideEncoding):
- (WebCore::DocumentLoader::overrideEncoding):
- (WebCore::DocumentLoader::setTitle):
- (WebCore::DocumentLoader::URLForHistory):
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (WebCore::FrameLoader::setupForReplaceByMIMEType):
- (WebCore::FrameLoader::finalSetupForReplace):
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::startLoading):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::FrameLoader::activeDocumentLoader):
- (WebCore::FrameLoader::addPlugInStreamLoader):
- (WebCore::FrameLoader::removePlugInStreamLoader):
- (WebCore::FrameLoader::addSubresourceLoader):
- (WebCore::FrameLoader::removeSubresourceLoader):
- (WebCore::FrameLoader::setDocumentLoader):
- (WebCore::FrameLoader::documentLoader):
- (WebCore::FrameLoader::setPolicyDocumentLoader):
- (WebCore::FrameLoader::provisionalDocumentLoader):
- (WebCore::FrameLoader::setProvisionalDocumentLoader):
- (WebCore::FrameLoader::setState):
- (WebCore::FrameLoader::clearProvisionalLoad):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::didReceiveResponse):
- (WebCore::FrameLoader::originalRequest):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::opened):
- (WebCore::FrameLoader::initialRequest):
- (WebCore::FrameLoader::receivedData):
- (WebCore::FrameLoader::setRequest):
- (WebCore::FrameLoader::isStopping):
- (WebCore::FrameLoader::setResponse):
- (WebCore::FrameLoader::mainReceivedError):
- (WebCore::FrameLoader::finishedLoading):
- (WebCore::FrameLoader::notifyIconChanged):
- (WebCore::FrameLoader::URL):
- (WebCore::FrameLoader::checkContentPolicy):
- (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameLoader::finishedLoadingDocument):
- (WebCore::FrameLoader::committedLoad):
- (WebCore::FrameLoader::revertToProvisional):
- (WebCore::FrameLoader::setMainDocumentError):
- (WebCore::FrameLoader::mainReceivedCompleteError):
- (WebCore::FrameLoader::subframeIsLoading):
- (WebCore::FrameLoader::willChangeTitle):
- (WebCore::FrameLoader::didChangeTitle):
- (WebCore::FrameLoader::checkNavigationPolicy):
- (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::detachFromParent):
- * loader/mac/WebFrameLoaderClient.h:
- 2006-10-23 Brady Eidson <beidson@apple.com>
- Lovingly reviewed by Maciej
- Moved loadURL and postURL logic out of WebCoreFrameBridge to FrameMac::loadRequest
- This is a big step towards moving FrameLoader out of the Bridge into Frame/Mac itself
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow): Use FrameMac::loadRequest
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest): loadURL and postURL logic moved from WebCoreFrameBridge to here
- * bridge/mac/WebCoreFrameBridge.h: Nuked loadURL and postURL
- * bridge/mac/WebCoreFrameBridge.mm: Ditto
- * loader/mac/WebFrameLoader.mm:
- (-[WebFrameLoader safeLoadURL:]): Use FrameMac::loadRequest
- 2006-10-23 Geoffrey Garen <ggaren@apple.com>
- RS by Maciej.
- Inside Frame, moved the plethora of load() and stopLoading() functions next
- to each other to facilitate merging and crying.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest):
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::openURL):
- (WebCore::FrameMac::openURLRequest):
- (WebCore::FrameMac::urlSelected):
- (WebCore::FrameMac::openURLFromPageCache):
- (WebCore::FrameMac::createFrame):
- * page/Frame.cpp:
- (WebCore::Frame::openURL):
- (WebCore::Frame::changeLocation):
- (WebCore::Frame::urlSelected):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::loadSubframe):
- (WebCore::Frame::submitFormAgain):
- (WebCore::Frame::submitForm):
- (WebCore::Frame::stop):
- (WebCore::Frame::closeURL):
- (WebCore::Frame::cancelRedirection):
- (WebCore::Frame::iconURL):
- (WebCore::Frame::didOpenURL):
- (WebCore::Frame::didExplicitOpen):
- * page/Frame.h:
- 2006-10-23 Geoffrey Garen <ggaren@apple.com>
- RS by Maciej.
- Moved our plethora of load() and stopLoading() functions next to each other
- to facilitate merging and laughter.
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (WebCore::cancelAll):
- (WebCore::FrameLoader::prepareForLoadStart):
- (WebCore::FrameLoader::setupForReplace):
- (WebCore::FrameLoader::setupForReplaceByMIMEType):
- (WebCore::FrameLoader::finalSetupForReplace):
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::startLoadingMainResource):
- (WebCore::FrameLoader::startLoading):
- (WebCore::FrameLoader::stopLoadingPlugIns):
- (WebCore::FrameLoader::stopLoadingSubresources):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::FrameLoader::stopLoadingSubframes):
- (WebCore::FrameLoader::cancelMainResourceLoad):
- (WebCore::FrameLoader::cancelPendingArchiveLoad):
- (WebCore::FrameLoader::removeSubresourceLoader):
- (WebCore::FrameLoader::mainResourceData):
- (WebCore::FrameLoader::releaseMainResourceLoader):
- 2006-10-23 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - converted WebFrameLoader to C++
- * WebCore.exp: Added many new entry points for WebKit.
- * WebCore.xcodeproj/project.pbxproj: Made more files private (SPI).
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
- (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
- (-[WebCoreFrameBridge dealloc]):
- (-[WebCoreFrameBridge close]):
- (-[WebCoreFrameBridge clearFrame]):
- (-[WebCoreFrameBridge setFrameLoaderClient:]):
- (-[WebCoreFrameBridge frameLoader]):
- (-[WebCoreFrameBridge setTitle:]):
- (-[WebCoreFrameBridge didFirstLayout]):
- (-[WebCoreFrameBridge notifyIconChanged:]):
- (-[WebCoreFrameBridge originalRequestURL]):
- (-[WebCoreFrameBridge isLoadTypeReload]):
- (-[WebCoreFrameBridge frameDetached]):
- (-[WebCoreFrameBridge tokenizerProcessedData]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
- (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
- (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
- (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
- (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
- (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- (-[WebCoreFrameBridge incomingReferrer]):
- (-[WebCoreFrameBridge isReloading]):
- (-[WebCoreFrameBridge handledOnloadEvents]):
- (-[WebCoreFrameBridge mainResourceURLResponse]):
- (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
- * loader/mac/WebDocumentLoader.h:
- * loader/mac/WebDocumentLoader.mm:
- (-[WebDocumentLoader frameLoader]):
- (-[WebDocumentLoader dealloc]):
- (-[WebDocumentLoader mainResourceData]):
- (-[WebDocumentLoader setRequest:]):
- (-[WebDocumentLoader bridge]):
- (-[WebDocumentLoader setMainDocumentError:]):
- (-[WebDocumentLoader mainReceivedError:complete:]):
- (-[WebDocumentLoader stopLoading]):
- (-[WebDocumentLoader setupForReplace]):
- (-[WebDocumentLoader commitIfReady]):
- (-[WebDocumentLoader finishedLoading]):
- (-[WebDocumentLoader commitLoadWithData:]):
- (-[WebDocumentLoader doesProgressiveLoadWithMIMEType:]):
- (-[WebDocumentLoader setupForReplaceByMIMEType:]):
- (-[WebDocumentLoader updateLoading]):
- (-[WebDocumentLoader setFrame:]):
- (-[WebDocumentLoader attachToFrame]):
- (-[WebDocumentLoader detachFromFrame]):
- (-[WebDocumentLoader prepareForLoadStart]):
- (-[WebDocumentLoader setPrimaryLoadComplete:]):
- (-[WebDocumentLoader isLoadingInAPISense]):
- (-[WebDocumentLoader setTitle:]):
- * loader/mac/WebFrameLoader.h:
- (WebCore::FrameLoader::frame):
- * loader/mac/WebFrameLoader.mm:
- (WebCore::FrameLoader::FrameLoader):
- (WebCore::FrameLoader::~FrameLoader):
- (WebCore::FrameLoader::activeDocumentLoader):
- (WebCore::FrameLoader::addPlugInStreamLoader):
- (WebCore::FrameLoader::removePlugInStreamLoader):
- (WebCore::FrameLoader::defersCallbacksChanged):
- (WebCore::FrameLoader::defersCallbacks):
- (WebCore::setAllDefersCallbacks):
- (WebCore::FrameLoader::setDefersCallbacks):
- (WebCore::cancelAll):
- (WebCore::FrameLoader::stopLoadingPlugIns):
- (WebCore::FrameLoader::isLoadingMainResource):
- (WebCore::FrameLoader::isLoadingSubresources):
- (WebCore::FrameLoader::isLoadingPlugIns):
- (WebCore::FrameLoader::isLoading):
- (WebCore::FrameLoader::stopLoadingSubresources):
- (WebCore::FrameLoader::addSubresourceLoader):
- (WebCore::FrameLoader::removeSubresourceLoader):
- (WebCore::FrameLoader::mainResourceData):
- (WebCore::FrameLoader::releaseMainResourceLoader):
- (WebCore::FrameLoader::cancelMainResourceLoad):
- (WebCore::FrameLoader::startLoadingMainResource):
- (WebCore::FrameLoader::stopLoading):
- (WebCore::FrameLoader::setDocumentLoader):
- (WebCore::FrameLoader::documentLoader):
- (WebCore::FrameLoader::setPolicyDocumentLoader):
- (WebCore::FrameLoader::provisionalDocumentLoader):
- (WebCore::FrameLoader::setProvisionalDocumentLoader):
- (WebCore::FrameLoader::state):
- (WebCore::FrameLoader::timeOfLastCompletedLoad):
- (WebCore::FrameLoader::provisionalLoadStarted):
- (WebCore::FrameLoader::setState):
- (WebCore::FrameLoader::clearProvisionalLoad):
- (WebCore::FrameLoader::markLoadComplete):
- (WebCore::FrameLoader::commitProvisionalLoad):
- (WebCore::FrameLoader::stopLoadingSubframes):
- (WebCore::FrameLoader::startLoading):
- (WebCore::FrameLoader::setupForReplace):
- (WebCore::FrameLoader::identifierForInitialRequest):
- (WebCore::FrameLoader::willSendRequest):
- (WebCore::FrameLoader::didReceiveAuthenticationChallenge):
- (WebCore::FrameLoader::didCancelAuthenticationChallenge):
- (WebCore::FrameLoader::didReceiveResponse):
- (WebCore::FrameLoader::didReceiveData):
- (WebCore::FrameLoader::didFinishLoad):
- (WebCore::FrameLoader::didFailToLoad):
- (WebCore::FrameLoader::privateBrowsingEnabled):
- (WebCore::FrameLoader::originalRequest):
- (WebCore::FrameLoader::receivedMainResourceError):
- (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
- (WebCore::FrameLoader::clientRedirected):
- (WebCore::FrameLoader::shouldReload):
- (WebCore::FrameLoader::load):
- (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
- (WebCore::FrameLoader::closeOldDataSources):
- (WebCore::FrameLoader::opened):
- (WebCore::FrameLoader::initialRequest):
- (WebCore::FrameLoader::receivedData):
- (WebCore::FrameLoader::setRequest):
- (WebCore::FrameLoader::download):
- (WebCore::FrameLoader::bridge):
- (WebCore::FrameLoader::handleFallbackContent):
- (WebCore::FrameLoader::isStopping):
- (WebCore::FrameLoader::setupForReplaceByMIMEType):
- (WebCore::FrameLoader::setResponse):
- (WebCore::FrameLoader::mainReceivedError):
- (WebCore::FrameLoader::finishedLoading):
- (WebCore::FrameLoader::notifyIconChanged):
- (WebCore::FrameLoader::URL):
- (WebCore::FrameLoader::cancelledError):
- (WebCore::FrameLoader::fileDoesNotExistError):
- (WebCore::FrameLoader::willUseArchive):
- (WebCore::FrameLoader::isArchiveLoadPending):
- (WebCore::FrameLoader::cancelPendingArchiveLoad):
- (WebCore::FrameLoader::handleUnimplementablePolicy):
- (WebCore::FrameLoader::cannotShowMIMEType):
- (WebCore::FrameLoader::interruptionForPolicyChangeError):
- (WebCore::FrameLoader::isHostedByObjectElement):
- (WebCore::FrameLoader::isLoadingMainFrame):
- (WebCore::FrameLoader::canShowMIMEType):
- (WebCore::FrameLoader::representationExistsForURLScheme):
- (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
- (WebCore::FrameLoader::checkNavigationPolicy):
- (WebCore::FrameLoader::checkContentPolicy):
- (WebCore::FrameLoader::cancelContentPolicyCheck):
- (WebCore::FrameLoader::shouldReloadToHandleUnreachableURL):
- (WebCore::FrameLoader::reloadAllowingStaleData):
- (WebCore::FrameLoader::reload):
- (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
- (WebCore::FrameLoader::finishedLoadingDocument):
- (WebCore::FrameLoader::committedLoad):
- (WebCore::FrameLoader::isReplacing):
- (WebCore::FrameLoader::setReplacing):
- (WebCore::FrameLoader::revertToProvisional):
- (WebCore::FrameLoader::setMainDocumentError):
- (WebCore::FrameLoader::mainReceivedCompleteError):
- (WebCore::FrameLoader::finalSetupForReplace):
- (WebCore::FrameLoader::prepareForLoadStart):
- (WebCore::FrameLoader::subframeIsLoading):
- (WebCore::FrameLoader::willChangeTitle):
- (WebCore::FrameLoader::didChangeTitle):
- (WebCore::FrameLoader::loadType):
- (WebCore::FrameLoader::invalidatePendingPolicyDecision):
- (WebCore::FrameLoader::checkNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNewWindowPolicy):
- (WebCore::FrameLoader::continueAfterNavigationPolicy):
- (WebCore::FrameLoader::continueAfterWillSubmitForm):
- (WebCore::FrameLoader::continueLoadRequestAfterNavigationPolicy):
- (WebCore::FrameLoader::didFirstLayout):
- (WebCore::FrameLoader::frameLoadCompleted):
- (WebCore::FrameLoader::firstLayoutDone):
- (WebCore::FrameLoader::isQuickRedirectComing):
- (WebCore::FrameLoader::transitionToCommitted):
- (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
- (WebCore::FrameLoader::continueLoadRequestAfterNewWindowPolicy):
- (WebCore::FrameLoader::sendRemainingDelegateMessages):
- (WebCore::FrameLoader::requestFromDelegate):
- (WebCore::FrameLoader::post):
- (WebCore::FrameLoader::detachChildren):
- (WebCore::FrameLoader::detachFromParent):
- (WebCore::FrameLoader::addExtraFieldsToRequest):
- (WebCore::FrameLoader::safeLoad):
- (WebCore::FrameLoader::actionInformation):
- (WebCore::FrameLoader::checkLoadComplete):
- (WebCore::FrameLoader::setFrameLoaderClient):
- (WebCore::FrameLoader::client):
- (WebCore::FrameLoader::asDelegate):
- (-[WebCoreFrameLoaderAsDelegate initWithLoader:]):
- (-[WebCoreFrameLoaderAsDelegate detachFromLoader]):
- (-[WebCoreFrameLoaderAsDelegate continueFragmentScrollAfterNavigationPolicy:formState:]):
- (-[WebCoreFrameLoaderAsDelegate continueAfterNewWindowPolicy:]):
- (-[WebCoreFrameLoaderAsDelegate continueAfterNavigationPolicy:]):
- (-[WebCoreFrameLoaderAsDelegate continueAfterWillSubmitForm:]):
- (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNavigationPolicy:formState:]):
- (-[WebCoreFrameLoaderAsDelegate continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
- * loader/mac/WebLoader.h:
- (WebCore::WebResourceLoader::identifier):
- (WebCore::WebResourceLoader::reachedTerminalState):
- (WebCore::WebResourceLoader::cancelled):
- * loader/mac/WebLoader.mm:
- (WebCore::WebResourceLoader::WebResourceLoader):
- (WebCore::WebResourceLoader::releaseResources):
- (WebCore::WebResourceLoader::load):
- (WebCore::WebResourceLoader::frameLoader):
- (WebCore::WebResourceLoader::willSendRequest):
- (WebCore::WebResourceLoader::didReceiveAuthenticationChallenge):
- (WebCore::WebResourceLoader::didCancelAuthenticationChallenge):
- (WebCore::WebResourceLoader::didReceiveResponse):
- (WebCore::WebResourceLoader::didReceiveData):
- (WebCore::WebResourceLoader::didFinishLoading):
- (WebCore::WebResourceLoader::didFinishLoadingOnePart):
- (WebCore::WebResourceLoader::didFail):
- (WebCore::WebResourceLoader::willCacheResponse):
- (WebCore::WebResourceLoader::didCancel):
- (WebCore::WebResourceLoader::cancel):
- (WebCore::WebResourceLoader::cancelledError):
- (WebCore::WebResourceLoader::delegate):
- * loader/mac/WebMainResourceLoader.h:
- * loader/mac/WebMainResourceLoader.mm:
- (WebCore::MainResourceLoader::MainResourceLoader):
- (WebCore::MainResourceLoader::create):
- (WebCore::MainResourceLoader::receivedError):
- (WebCore::MainResourceLoader::didCancel):
- (WebCore::MainResourceLoader::interruptionForPolicyChangeError):
- (WebCore::MainResourceLoader::isPostOrRedirectAfterPost):
- (WebCore::MainResourceLoader::addData):
- (WebCore::MainResourceLoader::willSendRequest):
- (WebCore::MainResourceLoader::continueAfterContentPolicy):
- (WebCore::MainResourceLoader::didReceiveResponse):
- (WebCore::MainResourceLoader::didReceiveData):
- (WebCore::MainResourceLoader::didFinishLoading):
- (WebCore::MainResourceLoader::didFail):
- (WebCore::MainResourceLoader::loadNow):
- (WebCore::MainResourceLoader::policyDelegate):
- * loader/mac/WebNetscapePlugInStreamLoader.h:
- * loader/mac/WebNetscapePlugInStreamLoader.mm:
- (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
- (WebCore::NetscapePlugInStreamLoader::create):
- (WebCore::NetscapePlugInStreamLoader::didReceiveResponse):
- (WebCore::NetscapePlugInStreamLoader::didFinishLoading):
- (WebCore::NetscapePlugInStreamLoader::didFail):
- (WebCore::NetscapePlugInStreamLoader::didCancel):
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- (-[WebCoreSubresourceHandle initWithLoader:]):
- 2006-10-23 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Bradee.
- Shrunk BrowserExtension in preparation for its imminent death, moving page-
- level operations to Page and frame-level operations to Frame.
-
- Removed bizarre Mac(this) syntax inside virtual FrameMac member functions,
- because 'this' is guaranteed by the compiler to be a FrameMac*.
-
- * bindings/js/kjs_window.cpp: Added NULL checks for m_frame in places
- where it can be NULL.
- * bindings/js/kjs_window.cpp:
- (KJS::canShowModalDialog):
- (KJS::canShowModalDialogNow):
- (KJS::showModalDialog):
- (KJS::History::getValueProperty):
- (KJS::HistoryFunc::callAsFunction):
- * bridge/BrowserExtension.h:
- (WebCore::BrowserExtension::~BrowserExtension):
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::frameDetached):
- (WebCore::FrameMac::unfocusWindow):
- (WebCore::FrameMac::bridgeForWidget):
- (WebCore::FrameMac::documentViewForNode):
- (WebCore::FrameMac::passSubframeEventToSubframe):
- (WebCore::Frame::setNeedsReapplyStyles):
- (WebCore::FrameMac::customHighlightLineRect):
- (WebCore::FrameMac::paintCustomHighlight):
- (WebCore::FrameMac::getHistoryLength):
- (WebCore::FrameMac::goBackOrForward):
- (WebCore::FrameMac::historyURL):
- * bridge/mac/PageMac.mm:
- (WebCore::Page::canRunModal):
- (WebCore::Page::canRunModalNow):
- (WebCore::Page::runModal):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCorePageBridge.h:
- * bridge/win/BrowserExtensionWin.h:
- * page/Frame.cpp:
- (WebCore::Frame::scheduleHistoryNavigation):
- (WebCore::Frame::redirectionTimerFired):
- * page/Frame.h:
- * page/Page.h:
- 2006-10-23 Justin Garcia <justin.garcia@apple.com>
- Reviewed by mjs
- <http://bugs.webkit.org/show_bug.cgi?id=11334>
- Writely Editor: Placing caret in a list "highlights" both Numbered List and Bulleted List toolbar icons
- * WebCore.xcodeproj/project.pbxproj:
- * editing/Editor.cpp:
- (WebCore::Editor::selectionUnorderedListState): Added.
- (WebCore::Editor::selectionOrderedListState): Added.
- * editing/Editor.h:
- * editing/JSEditor.cpp:
- * page/Frame.cpp:
- * page/Frame.h:
- 2006-10-23 John Sullivan <sullivan@apple.com>
- Reviewed by Tim H
- * WebCore.xcodeproj/project.pbxproj:
- Include WebCorePrefix.h in Xcode project for convenience and for consistency with WebKit
- 2006-10-23 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11291
- PNG as cursor image format instead of TIFF
- Original patch by Lars Naesbye Christensen (lars@naesbye.dk)
- - Convert cursor images from TIFF to PNG.
- * Resources/eastResizeCursor.png: Added.
- * Resources/eastResizeCursor.tiff: Removed.
- * Resources/eastWestResizeCursor.png: Added.
- * Resources/eastWestResizeCursor.tiff: Removed.
- * Resources/helpCursor.png: Added.
- * Resources/helpCursor.tiff: Removed.
- * Resources/linkCursor.png: Added.
- * Resources/linkCursor.tiff: Removed.
- * Resources/moveCursor.png: Added.
- * Resources/moveCursor.tiff: Removed.
- * Resources/northEastResizeCursor.png: Added.
- * Resources/northEastResizeCursor.tiff: Removed.
- * Resources/northEastSouthWestResizeCursor.png: Added.
- * Resources/northEastSouthWestResizeCursor.tiff: Removed.
- * Resources/northResizeCursor.png: Added.
- * Resources/northResizeCursor.tiff: Removed.
- * Resources/northSouthResizeCursor.png: Added.
- * Resources/northSouthResizeCursor.tiff: Removed.
- * Resources/northWestResizeCursor.png: Added.
- * Resources/northWestResizeCursor.tiff: Removed.
- * Resources/northWestSouthEastResizeCursor.png: Added.
- * Resources/northWestSouthEastResizeCursor.tiff: Removed.
- * Resources/southEastResizeCursor.png: Added.
- * Resources/southEastResizeCursor.tiff: Removed.
- * Resources/southResizeCursor.png: Added.
- * Resources/southResizeCursor.tiff: Removed.
- * Resources/southWestResizeCursor.png: Added.
- * Resources/southWestResizeCursor.tiff: Removed.
- * Resources/waitCursor.png: Added.
- * Resources/waitCursor.tiff: Removed.
- * Resources/westResizeCursor.png: Added.
- * Resources/westResizeCursor.tiff: Removed.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/CursorMac.mm:
- (WebCore::leakNamedCursor):
- 2006-10-23 Maciej Stachowiak <mjs@apple.com>
- - fixed build from last change.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::loadRequest):
- (WebCore::FrameMac::openURL):
- 2006-10-23 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Move border-radius rule for <select>s into RenderThemeMac, as this is
- really a platform-specific look.
- * css/html4.css:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
- 2006-10-23 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Brady.
- - moved things around so loadURL:... is only called from one place
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::frameDetached):
- (WebCore::FrameMac::loadRequest):
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::openURL):
- (WebCore::FrameMac::openURLRequest):
- (WebCore::FrameMac::urlSelected):
- 2006-10-23 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <http://bugs.webkit.org/show_bug.cgi?id=11333>
- Writely Editor: After inserting a HR element, pressing return key creates a copy of this HR element in the document
-
- Added special cases in InsertLineBreakCommand for inserting before
- and after tables and horizontal rules. Also, perform InsertLineBreak
- instead of InsertParagraphSeparator at these positions.
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply): Use the canonical form
- of the caret position when we check for the new special cases because
- we know that we canonicalize VisiblePositions to those positions.
- Added code to handle inserting before/after tables and horizontal rules.
- Fixed a bug when inserting at the end of a block (it checked for a collapse
- of the inserted br by looking for the absence of a br, but the line break
- might have been a '\n' in white-space:pre text). Removed unused LOGs.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Perform an
- InsertLineBreakCommand when before/after a table or a horizontal rule
- so that we don't have to maintain two pieces of special case code.
- Migrated to enclosingBlock.
- * editing/htmlediting.cpp: Added a FIXME.
- * editing/visible_units.cpp:
- (WebCore::startOfParagraph): Added a workaround for 8622.
-
- 2006-10-23 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Make popups a little more flexible.
- * platform/PopupMenu.h:
- 2006-10-23 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Cleanup CodeGeneratorJS.pm
- * bindings/scripts/CodeGeneratorJS.pm:
- 2006-10-23 Adam Roben <aroben@apple.com>
- Rubberstamped by Brady.
- * loader/icon/IconLoader.h: Changed angle-brackets to quotes for
- #include of ResourceLoader.h, since it's a WebCore header.
- 2006-10-23 Darin Adler <darin@apple.com>
- - fixed mistake that was preventing any loading from happening
- * platform/network/ResourceLoaderClient.h: (WebCore::ResourceLoaderClient::didReceiveData):
- Changed parameter back to int. Perhaps we want to move to "long long" consistently, but
- I'll leave that up to Maciej.
- 2006-10-23 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - start converting ResourceLoaderClient to new API
- Did the bits I could do without introducing new types:
-
- - renamed receivedData to didReceiveData
- - renamed version of receivedAllData that doesn't pass any data to didFinishLoading
- * bridge/mac/WebCoreResourceLoaderImp.mm:
- (-[WebCoreResourceLoaderImp addData:]):
- (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
- * loader/icon/IconLoader.cpp:
- (IconLoader::didReceiveData):
- (IconLoader::didFinishLoading):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::didReceiveData):
- * loader/loader.h:
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdkClientDefault::didReceiveData):
- * platform/gdk/FrameGdk.h:
- * platform/network/ResourceLoaderClient.h:
- (WebCore::ResourceLoaderClient::didReceiveData):
- (WebCore::ResourceLoaderClient::didFinishLoading):
- (WebCore::ResourceLoaderClient::receivedResponse):
- * platform/network/cf/ResourceLoaderCFNet.cpp:
- (WebCore::didReceiveData):
- (WebCore::didFinishLoading):
- (WebCore::didFail):
- (WebCore::ResourceLoader::cancel):
- * platform/network/gdk/ResourceLoaderManager.cpp:
- (WebCore::writeCallback):
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- (WebCore::ResourceLoaderManager::remove):
- * platform/network/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::slotData):
- (WebCore::ResourceLoaderManager::remove):
- * platform/network/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoader::onRequestComplete):
- (WebCore::ResourceLoader::fileLoadTimer):
- (WebCore::ResourceLoader::cancel):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::didReceiveData):
- * platform/qt/FrameQtClient.h:
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::processSyncLoadResults):
- (WebCore::XMLHttpRequest::didFinishLoading):
- (WebCore::XMLHttpRequest::didReceiveData):
- * xml/xmlhttprequest.h:
- 2006-10-23 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Anders.
- - marked files executable
-
- * ksvg2/scripts/csscssmakeprops:
- * ksvg2/scripts/csscssmakevalues:
- 2006-10-22 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - moved ResourceLoader and related files to platform/network
- in preparation for building out this API.
- I tried to update all the build systems but I'm not sure they are
- all fixed properly
- * page/ResourceRequest.h: Moved to platform/network.
- * platform/ResourceLoader.cpp: Moved to platform/network.
- * platform/ResourceLoader.h: Moved to platform/network.
- * platform/ResourceLoaderClient.h: Moved to platform/network.
- * platform/ResourceLoaderInternal.h: Moved to platform/network.
- * platform/cf/ResourceLoaderCFNet.cpp: Moved to platform/network/cf.
- * platform/gdk/ResourceLoaderCurl.cpp: Moved to platform/network/gdk.
- * platform/gdk/ResourceLoaderManager.cpp: Moved to platform/network/gdk.
- * platform/gdk/ResourceLoaderManager.h: Moved to platform/network/gdk.
- * platform/mac/ResourceLoaderMac.mm: Moved to platform/network/mac.
- * platform/qt/ResourceLoaderManager.cpp: Moved to platform/network/qt.
- * platform/qt/ResourceLoaderManager.h: Moved to platform/network/qt.
- * platform/qt/ResourceLoaderQt.cpp: Moved to platform/network/qt.
- * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win.
- * platform/win/ResourceLoaderWin.h: Moved to platform/network/win.
- * webcore-base.bkl: Updated for new paths.
- * CMakeLists.txt: ditto
- * Projects/gdk/webcore-gdk.bkl: ditto
- * WebCore.xcodeproj/project.pbxproj: ditto
- * WebCoreSources.bkl: ditto
- 2006-10-22 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - Add DOMHTMLFormElementPrivate.h to the project.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMPrivate.h:
- 2006-10-22 Darin Adler <darin@apple.com>
- - another try at fixing Qt
- * CMakeLists.txt: Added DeleteButton.cpp and DeleteButtonController.cpp.
- - and fix a couple warnings while I'm at it
- * platform/image-decoders/ImageDecoder.h: (WebCore::RGBA32Buffer::setRGBA):
- Don't do unsigned *= float.
- * rendering/break_lines.cpp: (WebCore::nextBreakablePosition): Move unused variable
- inside #if so it's consistent.
- 2006-10-21 Darin Adler <darin@apple.com>
- - fix the Qt build
- * platform/qt/EditorClientQt.cpp:
- (WebCore::EditorClientQt::shouldShowDeleteInterface):
- * platform/qt/EditorClientQt.h:
- * platform/qt/FrameQt.cpp:
- 2006-10-21 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - convert WebLoader and its 3 subclasses to C++ (this time with a leak fixed)
- Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
- there's currently another class with that name).
- Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
- Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
- Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
- Converted the classes to C++ and added Objective-C delegates to forward from
- API that still requires Objective-C.
- Did not yet rename the source files.
- * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
- classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
- classes.
- * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
- * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
- * loader/mac/WebLoader.h:
- * loader/mac/WebLoader.mm:
- * loader/mac/WebMainResourceLoader.h:
- * loader/mac/WebMainResourceLoader.mm:
- * loader/mac/WebNetscapePlugInStreamLoader.h:
- * loader/mac/WebNetscapePlugInStreamLoader.mm:
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- Translate to C++.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (isCaseInsensitiveEqual):
- (isBackForwardLoadType):
- (-[WebFrameLoader dealloc]):
- (-[WebFrameLoader addPlugInStreamLoader:]):
- (-[WebFrameLoader removePlugInStreamLoader:]):
- (-[WebFrameLoader setDefersCallbacks:]):
- (-[WebFrameLoader stopLoadingPlugIns]):
- (-[WebFrameLoader isLoadingMainResource]):
- (-[WebFrameLoader isLoadingSubresources]):
- (-[WebFrameLoader isLoadingPlugIns]):
- (-[WebFrameLoader stopLoadingSubresources]):
- (-[WebFrameLoader addSubresourceLoader:]):
- (-[WebFrameLoader removeSubresourceLoader:]):
- (-[WebFrameLoader mainResourceData]):
- (-[WebFrameLoader releaseMainResourceLoader]):
- (-[WebFrameLoader cancelMainResourceLoad]):
- (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
- (-[WebFrameLoader stopLoadingWithError:]):
- (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
- (-[WebFrameLoader archiveLoadPendingForLoader:]):
- (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
- * loader/mac/WebFrameLoaderClient.h:
- Call the new C++ API.
- 2006-10-21 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- Popup tweaks.
- * platform/PopupMenu.h:
- 2006-10-21 Darin Adler <darin@apple.com>
- * editing/DeleteButtonController.cpp: (WebCore::enclosingDeletableTable):
- Oops, edited this before landing it and introduced a null-deref! This fixes it.
- 2006-10-21 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11379
- assertion failure seen in editing tests (in new DeleteButtonController)
- I cleaned up the relationship between the Frame, Editor, EditorClient, and
- DeleteButtonController a bit while also making the simple change to fix the
- assertion failure.
- * bridge/mac/FrameMac.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
- * page/Frame.h: Change EditorClient parameter to a PassRefPtr since we take ownership.
- * page/Frame.cpp:
- (WebCore::Frame::Frame): Ditto.
- (WebCore::Frame::appliedEditing): Removed unneeded parameter to the respondToChangedContents
- function, and moved it to Editor rather than right on the DeleteButtonController.
- (WebCore::Frame::unappliedEditing): Ditto.
- (WebCore::Frame::reappliedEditing): Ditto.
- * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): More of the same.
- * editing/DeleteButtonController.h:
- * editing/DeleteButtonController.cpp:
- (WebCore::DeleteButtonController::DeleteButtonController): Replaced Editor* with a Frame*.
- The general pattern is that we always use the Frame* as the frame identifier. See FrameTree,
- for example.
- (WebCore::enclosingDeletableTable): Added. Helper function used by the respondToChangedSelection
- function. Includes an additional check for whether the container is contentEditable, which
- was missing from the old version. This prevents the assertion failure. Also added a check that
- the table itself is editable.
- (WebCore::DeleteButtonController::respondToChangedSelection): Rewrote to use the helper.
- (WebCore::DeleteButtonController::respondToChangedContents): Removed the unnecessary
- selection parameter. No need to pass in the state of the frame since we can get it if we need it.
- (WebCore::DeleteButtonController::show): Updated to use frame pointer rather than editor pointer.
- * editing/Editor.cpp: Fixed formatting. Even the temporary placeholder functions should be
- formatted on multiple lines as usual.
- (WebCore::Editor::respondToChangedSelection): Added. Forwards to the delete button controller.
- (WebCore::Editor::respondToChangedContents): Ditto.
- (WebCore::Editor::Editor): Changed EditorClient parameter to a PassRefPtr since we take ownership.
- * editing/Editor.h: Changed the DeleteButtonController to use an OwnPtr instead of being
- defined inline to decouple so that we don't have to include DeleteButtonController.h. That way
- changes to DeleteButtonController.h cause very little to recompile.
- * editing/SelectionController.cpp: (WebCore::SelectionController::setSelection):
- Updated to call the editor instead of the delete button controller for the selection change.
- 2006-10-21 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * platform/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- Don't leak the header dictionary.
- 2006-10-21 Darin Adler <darin@apple.com>
- Reviewed by Adam.
- - http://bugs.webkit.org/show_bug.cgi?id=11376
- build scripts should invoke make with "-j" option for multiple processors
- * WebCore.xcodeproj/project.pbxproj: Pass -j `sysctl -n hw.ncpu` to make.
- 2006-10-21 Timothy Hatcher <timothy@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4478625> HTML Editing: Basic table editing and culling
- Initial implementaltion of table deletion user interface:
- * Interface shows up on the nearest table containing the entire selection.
- * Shows a Dashboard style close button in the top left corner.
- * Shows a 60% opaque black outline around the table.
- * Adds a new EditorClient function shouldShowDeleteInterface.
- Also adds a new constructor CachedImage and setter functions on
- HTMLImageElement and HTMLImageLoader allowing an Image object to be set
- and image element in the page. This change also paves the way to allow an
- NSImage setter on DOMHTMLImageElement.
- * Resources/deleteButton.tiff: Added.
- * Resources/deleteButtonPressed.tiff: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/EditorClient.h:
- * editing/DeleteButton.cpp: Added.
- (WebCore::DeleteButton::DeleteButton):
- (WebCore::DeleteButton::defaultEventHandler): notify the controller to delete on click
- * editing/DeleteButton.h: Added.
- * editing/DeleteButtonController.cpp: Added.
- (WebCore::DeleteButtonController::DeleteButtonController):
- (WebCore::DeleteButtonController::respondToChangedSelection): move the interface to the new element, or hide
- (WebCore::DeleteButtonController::respondToChangedContents): call updateOutlineStyle
- (WebCore::DeleteButtonController::updateOutlineStyle): resize the outline if the table changed size
- (WebCore::DeleteButtonController::show): shows the interface on a new element
- (WebCore::DeleteButtonController::hide): hides the existing interface
- (WebCore::DeleteButtonController::deleteTarget): deletes the targeted element
- * editing/DeleteButtonController.h: Added.
- (WebCore::DeleteButtonController::target): getter for the current target
- * editing/Editor.cpp:
- (WebCore::Editor::shouldShowDeleteInterface): call the new shouldShowDeleteInterface client function
- (WebCore::Editor::Editor): remove the manual ref now that we use RefPtr for m_client
- (WebCore::Editor::~Editor): remove the manual deref now that we use RefPtr for m_client
- * editing/Editor.h:
- (WebCore::Editor::frame): new getter
- (WebCore::Editor::deleteButtonController): ditto
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelection): notify the DeleteButtonController about the new selection
- * html/HTMLImageElement.h:
- (WebCore::HTMLImageElement::setCachedImage): new setter that replaces the CachedImage
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::setImage): ditto
- * html/HTMLImageLoader.h:
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::CachedImage): new constructor that takes an Image
- * loader/CachedImage.h: ditto
- * page/Frame.cpp:
- (WebCore::Frame::selectionController): cleanup coding style
- (WebCore::Frame::editor): ditto
- (WebCore::Frame::command): ditto
- (WebCore::Frame::appliedEditing): tell the delete button outline to update
- (WebCore::Frame::unappliedEditing): ditto
- (WebCore::Frame::reappliedEditing): ditto
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::addChild): workaround until bug 11363 is fixed
- 2006-10-21 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Cleanup bindings generation a little through re-factoring
- and general style cleanup.
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz.
- Fix crashes on Qt/Linux. Offer a default EditorClient and pass it down to Frame ctor.
- * CMakeLists.txt:
- * platform/qt/EditorClientQt.cpp: Added.
- (WebCore::EditorClientQt::shouldDeleteRange):
- * platform/qt/EditorClientQt.h: Added.
- (WebCore::EditorClientQt::~EditorClientQt):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- * platform/qt/FrameQt.h:
- 2006-10-21 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11372
- Auto-generate a few more Objective-C DOM methods.
- - Auto-generate getMatchedCSSRules and getComputedStyle methods.
- * bindings/objc/DOMCSS.h:
- * bindings/objc/DOMCSS.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/Document.idl:
- * page/DOMWindow.idl:
- 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by aliu, landed by aliu.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- * platform/qt/SoundQt.cpp: Added.
- (WebCore::systemBeep):
- 2006-10-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz, landed by ap.
- Fix obscure crashes in RenderTableSection on Rob's musicdb file.
- The problem was a missing layout() call on the frame view.
- Thanks go to Mitz Pettel for the initial hint!
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::paintEvent):
- 2006-10-20 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Anders.
- Send User-Agent on requests.
- Send custom request headers properly.
- * platform/cf/ResourceLoaderCFNet.cpp:
- (WebCore::addHeadersFromHashMap): Switch over to HashMap iteration from string parsing
- (WebCore::ResourceLoader::start): Send proper User-Agent, change call to add headers
- 2006-10-20 Timothy Hatcher <timothy@apple.com>
- Reviewed by Hyatt.
- Fix some bad formatting.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::checkOneSelector):
- 2006-10-20 Darin Adler <darin@apple.com>
- Reviewed by John.
- - fixed <rdar://problem/4795716> REGRESSION: User names and passwords aren't being saved (.Mac, etc.) -- WebKit formState passing empty strings
- * loader/mac/WebFormState.mm: (WebCore::FormState::FormState): Fix typo -- need to pass "key"
- as the key, not the dictionary itself.
- 2006-10-20 Alice Liu <alice.liu@apple.com>
- Reviewed by Maciej.
- This is the initial foundation for the EditingController class and
- everything else it needs to work. The idea is that the Frame has an
- EditingController object that it calls to handle editing commands, the
- most simple examples being copy/paste. This controller will handle
- these editing commands in WebCore, and only hand off to WebKit to call
- editing delegates (to the let the app intercept editing actions if it
- wants to). Thus we need a platform-specific client to which the
- EditingController hands off the delegate calls,
- WebCoreEditingControllerClient. On the WebCore side this is an
- abstract base class, and on the WebKit(Mac) side this is an ObjC++
- subclass, WebEditingControllerClient. How does the EditingController
- get a handle to its platform-specific client? In WebKit, the creator
- of a platform-specific Frame creates the client (which is ref-counted)
- and passes it down the chain of constructors until it gets back to the
- EditingController, which then refs it in its constructor and derefs in
- its destructor.
-
- No Layout tests needed.
-
- * WebCore.xcodeproj/project.pbxproj:
- Added files and made DomRangeInternal.h and EditingClient.h private headers, necessary for WebKit to compile
- * bridge/EditorClient.h: Added.
- (WebCore::EditorClient::~EditorClient):
- * bridge/mac/FrameMac.h:
- Added an EditingClient to the constructor, to pass down to Frame constructor
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac):
- Passed client down to Frame constructor
-
- * bridge/mac/WebCoreFrameBridge.h:
- Added an EditingClient to the constructor, to pass down to FrameMac constructor
-
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initMainFrameWithPage:withEditorClient:]):
- (-[WebCoreFrameBridge initSubframeWithOwnerElement:withEditorClient:]):
- Passed client down to FrameMac constructor
-
- * editing/Editor.cpp: Added.
- Mostly stuf implementations of the following functions, except for a couple. These are all needed by cut, copy, paste, delete.
- (WebCore::generalPasteboard):
- (WebCore::Editor::canCopy):
- (WebCore::Editor::canCut):
- (WebCore::Editor::canDelete):
- (WebCore::Editor::canDeleteRange):
- (WebCore::Editor::canPaste):
- (WebCore::Editor::canSmartCopyOrDelete):
- (WebCore::Editor::deleteSelection):
- (WebCore::Editor::deleteSelectionWithSmartDelete):
- (WebCore::Editor::isSelectionRichlyEditable):
- (WebCore::Editor::pasteAsPlainTextWithPasteboard):
- (WebCore::Editor::pasteWithPasteboard):
- (WebCore::Editor::selectedRange):
- (WebCore::Editor::shouldDeleteRange):
- (WebCore::Editor::tryDHTMLCopy):
- (WebCore::Editor::tryDHTMLCut):
- (WebCore::Editor::tryDHTMLPaste):
- (WebCore::Editor::writeSelectionToPasteboard):
- (WebCore::Editor::Editor):
- (WebCore::Editor::~Editor):
- (WebCore::Editor::cut):
- (WebCore::Editor::copy):
- (WebCore::Editor::paste):
- (WebCore::Editor::performDelete):
-
- * editing/Editor.h: Added.
-
- * page/Frame.h:
- Added an EditingClient to the constructor, to pass down to Editor constructor
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- Passed down to Editor constructor
- (WebCore::Frame::editor):
- Accessor for Editor stored in FramePrivate
-
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- Added an Editor object to the FramePrivate data
-
- * platform/Sound.h: Added.
- Made a platform-independent accessor to a beep function
-
- * platform/mac/SoundMac.mm: Added.
- (WebCore::systemBeep):
- calls mac system beep
-
- 2006-10-20 David Hyatt <hyatt@apple.com>
- Make sure to support the "encoding" property on form elements for
- legacy compatibility.
- Reviewed by darin/john
- No test cases added. Not sure how to do a form submission of
- various encodings as a layout test.
- * html/HTMLFormElement.h:
- (WebCore::HTMLFormElement::encoding):
- (WebCore::HTMLFormElement::setEncoding):
- * html/HTMLFormElement.idl:
- 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and by Anders.
- Fix warnings in JS generation by killing the whole isRefPtr logic,
- and just using WTF::getPtr as Sam Weinig suggested. Also kill some
- places using get() where getPtr() is cleaner - not for m_impl.get().
- * CMakeLists.txt: Tiny cleanup + add deps for CodeGenerator(JS).pm on all IDLs.
- * bindings/scripts/CodeGeneratorJS.pm:
- 2006-10-20 Darin Adler <darin@apple.com>
- - rolled out my loader change; caused world leak and possibly a plug-in crash
- 2006-10-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim H
- * loader/mac/LoaderFunctionsMac.mm:
- Autorelease the header NSDictionary.
-
- 2006-10-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::timerFired):
- Check if the timeout id is still in the table before trying to access it. If it isn't in the table
- it has been deleted inside of the execute method.
- 2006-10-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin and Geoff.
- Remove debugging output.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- 2006-10-20 David Harrison <harrison@apple.com>
- Reviewed by John.
- <rdar://problem/4792755> REGRESSON: Drag selecting is erratic
- No test because it would require autoscrolling, which is not available to layout tests.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll):
- Use hitTest() to find the correct node.
-
- (WebCore::RenderLayer::hitTest):
- Trivial source formatting.
- 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Fix regression introduced during the ResourceLoader transition (Maciej's rewrite).
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::add):
- 2006-10-20 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - convert WebLoader and its 3 subclasses to C++
- Renamed WebLoader to WebCore::WebResourceLoader (should be ResourceLoader, but
- there's currently another class with that name).
- Renamed WebMainResourceLoader to WebCore::MainResourceLoader.
- Renamed WebSubresourceLoader to WebCore::SubresourceLoader.
- Renamed WebNetscapePlugInStreamLoader to WebCore::NetscapePlugInStreamLoader.
- Converted the classes to C++ and added Objective-C delegates to forward from
- API that still requires Objective-C.
- Did not yet rename the source files.
- * WebCore.exp: Removed WebLoader, WebNetscapePlugInStreamLoader, and WebSubresourceLoader
- classes. Added 5 functions from the WebResourceLoader and NetscapePlugInStreamLoader
- classes.
- * WebCore.xcodeproj/project.pbxproj: Made RetainPtr.h a private header instead of project.
- * platform/cf/RetainPtr.h: Put into the WebCore namespace rather than the WTF namespace.
- * loader/mac/WebLoader.h:
- * loader/mac/WebLoader.mm:
- * loader/mac/WebMainResourceLoader.h:
- * loader/mac/WebMainResourceLoader.mm:
- * loader/mac/WebNetscapePlugInStreamLoader.h:
- * loader/mac/WebNetscapePlugInStreamLoader.mm:
- * loader/mac/WebSubresourceLoader.h:
- * loader/mac/WebSubresourceLoader.mm:
- Translate to C++.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (isCaseInsensitiveEqual):
- (isBackForwardLoadType):
- (-[WebFrameLoader dealloc]):
- (-[WebFrameLoader addPlugInStreamLoader:]):
- (-[WebFrameLoader removePlugInStreamLoader:]):
- (-[WebFrameLoader setDefersCallbacks:]):
- (-[WebFrameLoader stopLoadingPlugIns]):
- (-[WebFrameLoader isLoadingMainResource]):
- (-[WebFrameLoader isLoadingSubresources]):
- (-[WebFrameLoader isLoadingPlugIns]):
- (-[WebFrameLoader stopLoadingSubresources]):
- (-[WebFrameLoader addSubresourceLoader:]):
- (-[WebFrameLoader removeSubresourceLoader:]):
- (-[WebFrameLoader mainResourceData]):
- (-[WebFrameLoader releaseMainResourceLoader]):
- (-[WebFrameLoader cancelMainResourceLoad]):
- (-[WebFrameLoader startLoadingMainResourceWithRequest:identifier:]):
- (-[WebFrameLoader stopLoadingWithError:]):
- (-[WebFrameLoader willUseArchiveForRequest:originalURL:loader:]):
- (-[WebFrameLoader archiveLoadPendingForLoader:]):
- (-[WebFrameLoader cancelPendingArchiveLoadForLoader:]):
- * loader/mac/WebFrameLoaderClient.h:
- Call the new C++ API.
- 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Offer a way for WebKitPart to be able to detect when
- the webpage has been completly loaded (including subresources).
- Also fix Qt/Linux build by removing PopupMenu.cpp from CMakeLists.txt
- and removing some functions from PopupMenuQt.cpp, and alter FrameQt.cpp.
- * CMakeLists.txt:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::client):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::setFrame):
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- (WebCore::FrameQtClientDefault::checkLoaded):
- (WebCore::FrameQtClientDefault::traverseNextFrameStayWithin):
- (WebCore::FrameQtClientDefault::numPendingOrLoadingRequests):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/FrameQtClient.h:
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::CheckCacheObjectStatus):
- * platform/qt/PopupMenuQt.cpp:
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::ResourceLoaderManager):
- (WebCore::ResourceLoaderManager::slotResult):
- (WebCore::ResourceLoaderManager::add):
- * platform/qt/ResourceLoaderManager.h:
- * platform/qt/ResourceLoaderQt.cpp:
- (WebCore::ResourceLoader::start):
- 2006-10-20 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Geoff.
- Fix compiler warnings
- * platform/ResourceLoaderClient.h:
- 2006-10-20 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Win32 build fix and cleanup.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- (WebCore::FrameWin::submitForm):
- * page/ResourceRequest.h:
- (WebCore::ResourceRequest::addHTTPHeaderField):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::Slider::~Slider):
- (WebCore::Slider::setMinValue):
- (WebCore::searchableIndexIntroduction):
- (WebCore::findNextSentenceFromIndex):
- (WebCore::findSentenceBoundary):
- (WebCore::findNextWordFromIndex):
- (WebCore::FrameWin::getObjectInstanceForWidget):
- (WebCore::FrameWin::getEmbedInstanceForWidget):
- (WebCore::FrameWin::runJavaScriptPrompt):
- (WebCore::FrameWin::restoreDocumentState):
- (WebCore::FrameWin::partClearedInBegin):
- (WebCore::FrameWin::createEmptyDocument):
- (WebCore::FrameWin::overrideMediaType):
- (WebCore::FrameWin::markedTextRange):
- (WebCore::FrameWin::passSubframeEventToSubframe):
- (WebCore::FrameWin::lastEventIsMouseUp):
- (WebCore::FrameWin::addMessageToConsole):
- (WebCore::FrameWin::shouldChangeSelection):
- (WebCore::FrameWin::respondToChangedSelection):
- (WebCore::FrameWin::createFrame):
- (WebCore::FrameWin::saveDocumentState):
- (WebCore::FrameWin::clearUndoRedoOperations):
- (WebCore::FrameWin::incomingReferrer):
- (WebCore::FrameWin::markMisspellingsInAdjacentWords):
- (WebCore::FrameWin::respondToChangedContents):
- (WebCore::FrameWin::handledOnloadEvents):
- (WebCore::FrameWin::createPlugin):
- (WebCore::FrameWin::objectContentType):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (WebCore::historyContains):
- (WebCore::submitButtonDefaultLabel):
- (WebCore::inputElementAltText):
- (WebCore::resetButtonDefaultLabel):
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::fileButtonNoFileSelectedLabel):
- (WebCore::defaultLanguage):
- (WebCore::findWordBoundary):
- (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
- (WebCore::PlugInInfoStore::supportsMIMEType):
- (WebCore::refreshPlugins):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveResponseEncoding):
- (WebCore::ResourceLoader::startHTTPRequest):
- (WebCore::TextField::TextField):
- (WebCore::focusRingColor):
- (WebCore::setFocusRingColorChangeFunction):
- (WebCore::PopupMenu::~PopupMenu):
- (WebCore::PopupMenu::hide):
- 2006-10-20 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11303
- Path::transform() should be implemented on Qt build
- Use QPainterPath API to implement Path::transform.
- This fixes svg/custom/clip-path-with-transform.svg on
- the qt build.
- * platform/qt/PathQt.cpp:
- (WebCore::Path::transform):
- 2006-10-20 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg clipping and painting classes.
- * ksvg2/svg/SVGClipPathElement.cpp:
- (WebCore::SVGClipPathElement::parseMappedAttribute):
- (WebCore::SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::parseMappedAttribute):
- (WebCore::SVGMarkerElement::setOrientToAngle):
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMarkerElement.h:
- (WebCore::SVGMarkerElement::rendererIsNeeded):
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::parseMappedAttribute):
- (WebCore::SVGMaskElement::drawMaskerContent):
- (WebCore::SVGMaskElement::canvasResource):
- * ksvg2/svg/SVGMaskElement.h:
- (WebCore::SVGMaskElement::rendererIsNeeded):
- * ksvg2/svg/SVGPaint.cpp:
- (WebCore::SVGPaint::setPaint):
- (WebCore::SVGPaint::cssText):
- * ksvg2/svg/SVGPaint.h:
- 2006-10-20 David Hyatt <hyatt@apple.com>
- Make sure to do the code that checks the repeatInterval before the timer has been
- deleted. (Duh.)
- Reviewed by andersca
- * bindings/js/kjs_window.cpp:
- (KJS::DOMWindowTimer::setNestingLevel):
- (KJS::Window::timerFired):
- (KJS::DOMWindowTimer::fired):
- * platform/Timer.h:
- 2006-10-20 David Hyatt <hyatt@apple.com>
- Honor tiny timer intervals for JS timeouts as they are nested until a cutoff point is reached.
- At that point clamp to 10ms to prevent excessive CPU usage.
- Reviewed by anders
- * bindings/js/kjs_window.cpp:
- (KJS::DOMWindowTimer::DOMWindowTimer):
- (KJS::DOMWindowTimer::nestingLevel):
- (KJS::Window::installTimeout):
- (KJS::Window::pauseTimeouts):
- (KJS::Window::resumeTimeouts):
- (KJS::DOMWindowTimer::fired):
- * platform/Timer.h:
- (WebCore::TimerBase::startRepeating):
- (WebCore::TimerBase::startOneShot):
- (WebCore::TimerBase::repeatInterval):
- (WebCore::TimerBase::augmentRepeatInterval):
- (WebCore::TimerBase::inHeap):
- (WebCore::Timer::Timer):
- (WebCore::Timer::fired):
- 2006-10-20 Steve Falkenburg <sfalken@apple.com>
- Build fix
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::defaultEventHandler):
- 2006-10-19 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam.
- Use GetKeyState rather than GetAsyncKeyState since we're
- calling in these cases in direct response to an event, and want the
- key state associated with that event.
-
- Pass triggering event to url selection method.
-
- * bridge/mac/FrameMac.h: Add triggeringEvent parameter
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::urlSelected): Add triggeringEvent parameter
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::urlSelected): Add triggeringEvent parameter
- * bridge/win/FrameWin.h: Add triggeringEvent parameter
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler): Pass triggering event to URL selection method
- * page/Frame.cpp:
- (WebCore::Frame::changeLocation): Add 0 as triggeringEvent
- (WebCore::Frame::urlSelected): Pass through triggeringEvent
- * page/Frame.h: Add triggeringEvent parameter to urlSelected methods
- * platform/win/KeyEventWin.cpp:
- (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Use GetKeyState instead of GetAsyncKeyState
- * platform/win/MouseEventWin.cpp: Use GetKeyState instead of GetAsyncKeyState
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- 2006-10-19 David Hyatt <hyatt@apple.com>
- Correct typos from changing "flush" to "prune" using automated search/replace.
- Change the cache heuristic for flushing to allow a higher watermark before initiating an
- aggressive prune. This ensures that small cache sizes are no worse in terms of performance
- than the old buggy cache.
- Make sizes unsigned instead of ints in the cache's APIs and member variables.
- * loader/Cache.cpp:
- (WebCore::Cache::prune):
- (WebCore::Cache::setMaximumSize):
- * loader/Cache.h:
- (WebCore::Cache::maximumSize):
- 2006-10-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Daddy Hyatt.
- Use a real hash map for the headers.
- * loader/LoaderFunctions.h:
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * platform/ResourceLoader.cpp:
- (WebCore::ResourceLoader::setRequestHeaders):
- (WebCore::ResourceLoader::requestHeaders):
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- * platform/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::open):
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::setRequestHeader):
- (WebCore::XMLHttpRequest::getRequestHeader):
- * xml/xmlhttprequest.h:
- 2006-10-19 Adam Roben <aroben@apple.com>
- Reviewed by Ada.
- Pippity-poppity popup tweaks.
- * WebCore.xcodeproj/project.pbxproj: Removed PopupMenu.cpp from project.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::setSelectedIndex): Only fire onChange if
- requested and the new index is actually different than the old one.
- * platform/IntPoint.h: Added another casting operator.
- * platform/PopupMenu.cpp: Removed. The code in here, while
- platform-independent, was only useful for the NSPopUpButtonCell
- implementation of popup menus, so I've moved it to PopupMenuMac.mm.
- * platform/PopupMenu.h: Moved the definition of PopupMenu::create into
- the header since it's fairly simple. Made some more methods private now
- that we don't have subclasses and virtual methods anymore.
- (WebCore::PopupMenu::create):
- (WebCore::PopupMenu::menuList):
- (WebCore::PopupMenu::itemHeight):
- (WebCore::PopupMenu::windowRect):
- (WebCore::PopupMenu::listIndexAtPoint):
- (WebCore::PopupMenu::focusedIndex):
- (WebCore::PopupMenu::setWasClicked):
- (WebCore::PopupMenu::wasClicked):
- (WebCore::PopupMenu::setScrollOffset):
- (WebCore::PopupMenu::scrollOffset):
- (WebCore::PopupMenu::wheelDelta):
- * platform/mac/PopupMenuMac.mm: Added the code from PopupMenu.cpp.
- (WebCore::PopupMenu::populate): Call our own clear() method to clear
- the menu.
- * platform/win/IntPointWin.cpp: New casting operator.
- (WebCore::IntPoint::IntPoint):
- (WebCore::IntPoint::operator POINTS):
- 2006-10-19 Adam Roben <aroben@apple.com>
- Reviewed by Darin.
- Cleaning up Document::nextFocusNode and Document::previousFocusNode.
- * dom/Document.cpp:
- (WebCore::Document::nextFocusNode):
- (WebCore::Document::previousFocusNode):
- 2006-10-19 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Geoff.
- - implement new ResourceRequest API and fix up code as appropriate
-
- * bindings/js/kjs_window.cpp:
- (KJS::createNewWindow):
- (KJS::WindowFunc::callAsFunction):
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::openURLRequest):
- (WebCore::FrameMac::urlSelected):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
- * dom/DOMImplementation.cpp:
- (WebCore::addString):
- (WebCore::isSVG10Feature):
- (WebCore::isSVG11Feature):
- * dom/Document.h:
- * editing/CommandByName.cpp:
- * editing/JSEditor.cpp:
- * page/Frame.cpp:
- (WebCore::Frame::changeLocation):
- (WebCore::Frame::urlSelected):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::submitForm):
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/ResourceRequest.h:
- (WebCore::):
- (WebCore::ResourceRequest::ResourceRequest):
- (WebCore::ResourceRequest::cachePolicy):
- (WebCore::ResourceRequest::setCachePolicy):
- (WebCore::ResourceRequest::timeoutInterval):
- (WebCore::ResourceRequest::setTimeoutInterval):
- (WebCore::ResourceRequest::mainDocumentURL):
- (WebCore::ResourceRequest::setMainDocumentURL):
- (WebCore::ResourceRequest::httpMethod):
- (WebCore::ResourceRequest::setHTTPMethod):
- (WebCore::ResourceRequest::httpHeaderField):
- (WebCore::ResourceRequest::setHTTPHeaderField):
- (WebCore::ResourceRequest::httpContentType):
- (WebCore::ResourceRequest::setHTTPContentType):
- (WebCore::ResourceRequest::httpReferrer):
- (WebCore::ResourceRequest::setHTTPReferrer):
- (WebCore::ResourceRequest::httpUserAgent):
- (WebCore::ResourceRequest::setHTTPUserAgent):
- (WebCore::ResourceRequest::httpBody):
- (WebCore::ResourceRequest::setHTTPBody):
- (WebCore::ResourceRequest::addHTTPHeaderField):
- * platform/FontCache.cpp:
- (WebCore::computeHash):
- * platform/StringHash.h:
- (WTF::):
- * platform/StringImpl.cpp:
- (WebCore::equalIgnoringCase):
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::updateWidget):
- 2006-10-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4447885>
- API: WebView should have a method something like incrementLeftMarginBy: or indentBy:
-
- Fixed indent/outdent to only increment the left margin, to match other browsers.
- Used blockquote class="webkit-indent-blockquote" to do this. Mail can now
- implement indent/outdent by customizing the appearance of these blockquotes,
- instead of using a new API.
-
- * css/html4.css: Added margin: 0 0 0 40px for webkit-indent-blockquotes.
- * editing/IndentOutdentCommand.cpp:
- (WebCore::indentBlockquoteString): Added.
- (WebCore::createIndentBlockquoteElement): Added.
- (WebCore::isIndentBlockquote): Added.
- (WebCore::isListOrBlockquote): Added.
- (WebCore::IndentOutdentCommand::IndentOutdentCommand):
- (WebCore::IndentOutdentCommand::prepareBlockquoteLevelForInsertion): Fixed
- a bug in the code that added an extra br if the placeholder collapsed upon insertion.
- Used the new indentBlockquote checks and enclosing element getters.
- (WebCore::IndentOutdentCommand::indentRegion): Ditto.
- (WebCore::IndentOutdentCommand::outdentParagraph): Ditto. Cleaned up the
- logic to pull the selection out of a list a bit.
- * editing/htmlediting.cpp:
- (WebCore::enclosingNodeOfType): Added this generic enclosing element getter.
- * editing/htmlediting.h:
- 2006-10-19 Timothy Hatcher <timothy@apple.com>
- Rolling out the this change since it caused a bad regression:
- <rdar://problem/4788524> REGRESSION: Incomplete repaint of text area when deleting (11277)
- 2006-10-12 Adele Peterson <adele@apple.com>
-
- Reviewed by Dave Harrison.
-
- - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
-
- * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
- Make subtree layouts work for textareas as well as text fields.
- 2006-10-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * loader/Cache.h:
- * platform/qt/BrowserExtensionQt.cpp:
- * platform/qt/BrowserExtensionQt.h:
- * platform/qt/CursorQt.cpp:
- (WebCore::pointerCursor):
- * platform/qt/LoaderFunctionsQt.cpp:
- (WebCore::NumberOfPendingOrLoadingRequests):
- (WebCore::CheckCacheObjectStatus):
- * platform/qt/ResourceLoaderQt.cpp:
- (WebCore::ResourceLoader::retrieveResponseEncoding):
- (WebCore::ResourceLoader::receivedResponse):
- 2006-10-19 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by ap.
- Win32 build fix.
- * bridge/win/FrameWin.cpp:
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ResourceLoader::retrieveResponseEncoding):
- 2006-10-19 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11141
- REGRESSION(r16681-r16691): CSS '@import' doesn't respect HTML Base element
- Undo one misguided change made in bug 11011 - stop setting inline stylesheet's href
- to document URL. This matches WinIE and partially matches Firefox - although the latter
- reports the href as if it were inherited, it still doesn't use it when resolving URIs in
- @import rules.
- Test: http/tests/uri/css-href.php
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::childrenChanged):
- * ksvg2/svg/SVGStyleElement.cpp:
- (WebCore::SVGStyleElement::childrenChanged):
- 2006-10-19 Anders Carlsson <acarlsson@apple.com>
- * loader/Cache.cpp:
- Get rid of #include "loader.h", Cache.h already includes this and it breaks on operating systems
- with case-sensitive file systems.
- 2006-10-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej, Brady.
- Remove "charset" from the ResourceLoader metadata map and use
- a getter function instead. Also, rename charset to encoding in a couple of places.
-
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::setEncoding):
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedResource.h:
- (WebCore::CachedResource::setEncoding):
- * loader/CachedScript.cpp:
- (WebCore::CachedScript::setEncoding):
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::setEncoding):
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::setEncoding):
- * loader/CachedXSLStyleSheet.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse):
- * platform/ResourceLoader.cpp:
- (WebCore::ResourceLoader::responseEncoding):
- (WebCore::ResourceLoader::queryMetaData):
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::retrieveResponseEncoding):
- (WebCore::ResourceLoader::receivedResponse):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::receivedData):
- 2006-10-19 David Hyatt <hyatt@apple.com>
- Rewrite of the WebCore memory cache. The following changes have been made (along with many more):
- (1) Referenced objects are now also cached.
- (2) Pruning of the cache will occur once the cache is both full and in addition
- more than half full with unreferenced objects.
- (3) The prune is much more aggressive now, since referenced objects are counted when
- pruning. The cache will therefore often prune out every unreferenced object if lots of
- windows/tabs are open.
- (4) Consolidated the request methods for various types of resources to go through a single
- requestResource bottleneck function.
- (5) deref on CachedResource is no longer virtual, since the implementation in every subclass was
- identical.
- (6) Changed "object" to "resource" everywhere.
- (7) The Cache is now an actual object, obtained via cache().
- (8) Fixed bugs with the autoload images preference so that it would really work properly when disabled
- and enabled.
- (9) Tweaked ImageDocuments to set up the status properly for the CachedResource that they use.
- (10) Fixed the LRU-SP algorithm so that the LRU aspect really kicks in (by leaving the live objects
- in the LRU lists). Also fixed a bug with the "-SP" part of the algorithm where the access count was
- being incorrectly weighted too much due to a math error.
- (11) Fixed a bug where the old cache could grow without bound because it didn't know anything about
- the size of referenced resources.
- Reviewed by Maciej, bradee-oh
- * bridge/mac/WebCoreCache.mm:
- (+[WebCoreCache statistics]):
- (+[WebCoreCache empty]):
- (+[WebCoreCache setDisabled:]):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initMainFrameWithPage:]):
- (-[WebCoreFrameBridge getData:andResponse:forURL:]):
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
- * css/CSSImageValue.cpp:
- (WebCore::CSSImageValue::image):
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::updateFromElement):
- * loader/Cache.cpp:
- (WebCore::cache):
- (WebCore::Cache::Cache):
- (WebCore::createResource):
- (WebCore::Cache::requestResource):
- (WebCore::Cache::resourceForURL):
- (WebCore::Cache::prune):
- (WebCore::Cache::setMaximumSize):
- (WebCore::Cache::remove):
- (WebCore::Cache::addDocLoader):
- (WebCore::Cache::removeDocLoader):
- (WebCore::fastLog2):
- (WebCore::Cache::lruListFor):
- (WebCore::Cache::removeFromLRUList):
- (WebCore::Cache::insertInLRUList):
- (WebCore::Cache::resourceAccessed):
- (WebCore::Cache::adjustSize):
- (WebCore::Cache::getStatistics):
- (WebCore::Cache::setDisabled):
- * loader/Cache.h:
- (WebCore::LRUList::LRUList):
- (WebCore::Cache::loader):
- (WebCore::Cache::maximumSize):
- (WebCore::Cache::disabled):
- (WebCore::Cache::addToLiveObjectSize):
- (WebCore::Cache::removeFromLiveObjectSize):
- (WebCore::Cache::TypeStatistic::TypeStatistic):
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::CachedImage):
- (WebCore::CachedImage::~CachedImage):
- (WebCore::brokenImage):
- (WebCore::nullImage):
- (WebCore::CachedImage::image):
- (WebCore::CachedImage::data):
- * loader/CachedImage.h:
- (WebCore::CachedImage::stillNeedsLoad):
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::CachedResource):
- (WebCore::CachedResource::~CachedResource):
- (WebCore::CachedResource::finish):
- (WebCore::CachedResource::setExpireDate):
- (WebCore::CachedResource::isExpired):
- (WebCore::CachedResource::setRequest):
- (WebCore::CachedResource::ref):
- (WebCore::CachedResource::deref):
- (WebCore::CachedResource::setSize):
- * loader/CachedResource.h:
- (WebCore::CachedResource::):
- (WebCore::CachedResource::setCharset):
- (WebCore::CachedResource::url):
- (WebCore::CachedResource::type):
- (WebCore::CachedResource::referenced):
- (WebCore::CachedResource::count):
- (WebCore::CachedResource::status):
- (WebCore::CachedResource::size):
- (WebCore::CachedResource::isLoaded):
- (WebCore::CachedResource::setLoading):
- (WebCore::CachedResource::isImage):
- (WebCore::CachedResource::accessCount):
- (WebCore::CachedResource::increaseAccessCount):
- (WebCore::CachedResource::setInCache):
- (WebCore::CachedResource::inCache):
- (WebCore::CachedResource::cachePolicy):
- (WebCore::CachedResource::response):
- (WebCore::CachedResource::allData):
- (WebCore::CachedResource::canDelete):
- (WebCore::CachedResource::schedule):
- (WebCore::CachedResource::accept):
- (WebCore::CachedResource::setAccept):
- * loader/CachedScript.cpp:
- (WebCore::CachedScript::CachedScript):
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet):
- * loader/CachedXSLStyleSheet.h:
- * loader/DocLoader.cpp:
- (WebCore::DocLoader::DocLoader):
- (WebCore::DocLoader::~DocLoader):
- (WebCore::DocLoader::checkForReload):
- (WebCore::DocLoader::requestImage):
- (WebCore::DocLoader::requestCSSStyleSheet):
- (WebCore::DocLoader::requestScript):
- (WebCore::DocLoader::requestXSLStyleSheet):
- (WebCore::DocLoader::requestXBLDocument):
- (WebCore::DocLoader::requestResource):
- (WebCore::DocLoader::setAutoLoadImages):
- (WebCore::DocLoader::removeCachedResource):
- * loader/DocLoader.h:
- (WebCore::DocLoader::cachedResource):
- (WebCore::DocLoader::allCachedResources):
- (WebCore::DocLoader::autoLoadImages):
- (WebCore::DocLoader::cachePolicy):
- (WebCore::DocLoader::expireDate):
- (WebCore::DocLoader::frame):
- (WebCore::DocLoader::doc):
- (WebCore::DocLoader::loadInProgress):
- * loader/ImageDocument.cpp:
- (WebCore::ImageTokenizer::finish):
- * loader/loader.cpp:
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::cancelRequests):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::NumberOfPendingOrLoadingRequests):
- (WebCore::CheckCacheObjectStatus):
- * page/Frame.cpp:
- (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
- (WebCore::Frame::Frame):
- (WebCore::Frame::stopLoading):
- (WebCore::Frame::setAutoLoadImages):
- (WebCore::Frame::autoLoadImages):
- (WebCore::Frame::begin):
- (WebCore::Frame::checkCompleted):
- (WebCore::Frame::reparseConfiguration):
- * page/Frame.h:
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- 2006-10-18 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Geoff.
- - remove vestiges of KXMLCore name (former name of WTF).
- * config.h:
- 2006-10-18 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth.
-
- Fixed http://bugs.webkit.org/show_bug.cgi?id=11222
- Some global JS objects lacked references to their property hashtables,
- so for-in enumeration didn't work. I added the references, and then removed
- a few bogus properties from the tables. The bogus ones got in there through
- bit rot.
-
- We should come up with some solution to these hand-written bindings bugs.
- Maybe we could use a script to autogenerate them or something.
- * bindings/js/kjs_window.cpp:
- (KJS::):
- (KJS::History::getValueProperty):
- 2006-10-18 Adam Roben <aroben@apple.com>
- Reviewed by Brady.
- Change Shift-Tab to generate keyIdentifier U+000009 (Tab) instead of
- U+000019 (Backtab). This matches our windowsKeyCode for this key
- combination.
- * platform/mac/KeyEventMac.mm:
- (WebCore::keyIdentifierForKeyEvent):
- 2006-10-18 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam, Brady.
- Loader tweaks.
- * platform/cf/ResourceLoaderCFNet.cpp:
- (WebCore::didFinishLoading):
- (WebCore::didFail):
- (WebCore::didReceiveChallenge):
- (WebCore::runLoaderThread):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- 2006-10-18 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4752138> Manipulating popup in HTML page crashed Xcode
- - Store the Mac popup button cell as a RetainPtr to prevent GC collection.
- - Convert more ObjC local statics and member variables to use RetainPtr.
- - Convert more CFRetain/CFRelease to HardRetain/HardRelease.
- * bindings/objc/DOM.mm:
- (ObjCNodeFilterCondition::ObjCNodeFilterCondition): use HardRetain and not CFRetain
- (ObjCNodeFilterCondition::~ObjCNodeFilterCondition): use HardRelease and not CFRelease
- * bridge/mac/AXObjectCacheMac.mm:
- (WebCore::AXObjectCache::~AXObjectCache): use HardRelease and not CFRelease
- (WebCore::AXObjectCache::get): use HardRetain and not CFRetain
- (WebCore::AXObjectCache::remove): use HardRelease and not CFRelease
- * bridge/mac/WebCoreFrameBridge.mm:
- (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): use RetainPtr
- (+[WebCoreFrameBridge supportedImageMIMETypes]): ditto
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (+[WebCoreIconDatabaseBridge sharedInstance]): use RetainPtr
- * platform/PopupMenu.h: renamed popup to m_popup and switched to RetainPtr<NSPopUpButtonCell>
- * platform/cf/RetainPtr.h:
- (WTF::::operator): implement a missing operator= template function
- * platform/mac/PopupMenuMac.mm:
- (WebCore::PopupMenu::PopupMenu): remove nil initialization
- (WebCore::PopupMenu::~PopupMenu): use .get(), remove release message and rename to m_popup
- (WebCore::PopupMenu::clear): use .get() when sending a message and rename to m_popup
- (WebCore::PopupMenu::populate): ditto
- (WebCore::PopupMenu::show): ditto
- (WebCore::PopupMenu::hide): ditto
- (WebCore::PopupMenu::addSeparator): ditto
- (WebCore::PopupMenu::addGroupLabel): ditto
- (WebCore::PopupMenu::addOption): ditto
- 2006-10-18 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adele.
- Fixed <rdar://problem/3673233> JavaScript timers do not fire if controls
- are tracking or menus are down (run loop modes)
- I spent a few hours trying to write an automated test, but DRT doesn't
- seem to support it. Manual tests attached to related bugs.
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::passMouseDownEventToWidget):
- * platform/mac/SharedTimerMac.cpp:
- (WebCore::setSharedTimerFireTime):
- 2006-10-18 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Maciej.
- More Win32 buildfix.
- * bridge/win/FrameWin.h:
- 2006-10-18 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz
- Win32 build fix.
- * bridge/win/BrowserExtensionWin.cpp:
- (WebCore::BrowserExtensionWin::BrowserExtensionWin):
- (WebCore::BrowserExtensionWin::createNewWindow):
- * bridge/win/BrowserExtensionWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::createNewWindow):
- * bridge/win/FrameWin.h:
- * platform/win/CursorWin.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (Image::getHBITMAP):
- 2006-10-18 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4784823>
- GMail Editor: Hang occurs when removing list styling on text in a rich text message
- List removal moves the contents of every list item out of the list it's
- in. When the code tried to move the contents of an empty list item (an li
- with no child nodes, not even a placeholder br), moveParagraph didn't prune
- the li, like it would if the li had a placeholder inside it. So the list
- removal code went into an infinite loop, continually attempting to de-list
- an empty list item.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs): If the selection
- to move was empty and in an empty block that doesn't require a
- placeholder to prop itself open (like a bordered div or an li),
- remove it during the move.
- 2006-10-18 Adele Peterson <adele@apple.com>
- Reviewed by Beth.
- - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
- REGRESSION (r16975): fast/events/objc-event-api is failing
- When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
- a call to invalidateClick. This change moves it back to the sequence that existed before. This allows
- the click count to get properly reset during a selection.
- * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
- 2006-10-17 Geoffrey Garen <ggaren@apple.com>
-
- Reviewed by Anders.
-
- Factored common scaling code into a helper function.
- * platform/mac/ScreenMac.mm:
- (WebCore::scale):
- (WebCore::scaleScreenRectToPageCoordinates):
- (WebCore::scalePageRectToScreenCoordinates):
- 2006-10-17 Steve Falkenburg <sfalken@apple.com>
- Build fixes
- * bridge/win/BrowserExtensionWin.cpp:
- (WebCore::BrowserExtensionWin::createNewWindow):
- * bridge/win/BrowserExtensionWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::createNewWindow):
- * bridge/win/FrameWin.h:
- * platform/gdk/BrowserExtensionGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (BrowserExtensionGdk::createNewWindow):
- * platform/qt/BrowserExtensionQt.cpp:
- (WebCore::BrowserExtensionQt::createNewWindow):
- * platform/qt/BrowserExtensionQt.h:
- 2006-10-17 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Anders.
-
- Renamed WindowArgs to WindowFeatures, and moved it into its own header.
- ("Features" is the term of art in IE documentation. "Args" is pirate
- talk.)
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_window.cpp:
- (KJS::createNewWindow):
- (KJS::showModalDialog):
- (KJS::setWindowFeature):
- (KJS::parseWindowFeatures):
- (KJS::constrainToVisible):
- (KJS::WindowFunc::callAsFunction):
- * bridge/BrowserExtension.h:
- * bridge/WindowFeatures.h: Added.
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- 2006-10-17 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11268
- Implement the Objective-C DOM bindings for SVGNumber, SVGRect, and SVGPoint
- - Adds implementation for DOMSVGNumber, DOMSVGRect, and DOMSVGPoint.
- - Moves the contents of ksvg/bindings/js/ to bindings/js/.
- - Moves SVGZoomEvent.idl from ksvg/svg/ to ksvg/events/.
- - Adds isSVGColor() and isSVGPaint() methods to StyleBase, matching
- the other CSSValue classing, and allowing the bindings to allocate
- appropriately.
- - Removes #ifdefs around the getBBox() method in SVGLocatable.idl allowing
- generation for Objective-C.
- - Assorted style cleanups.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCSS.mm:
- (+[DOMCSSValue _CSSValueWith:WebCore::]):
- * bindings/objc/DOMEvents.mm:
- (+[DOMEvent _eventWith:WebCore::]):
- * bindings/objc/DOMSVG.h:
- * bindings/objc/DOMSVGNumber.mm:
- (-[DOMSVGNumber dealloc]):
- (-[DOMSVGNumber finalize]):
- (-[DOMSVGNumber value]):
- (-[DOMSVGNumber setValue:]):
- (-[DOMSVGNumber _SVGNumber]):
- (-[DOMSVGNumber _initWithFloat:]):
- (+[DOMSVGNumber _SVGNumberWith:]):
- * bindings/objc/DOMSVGPoint.mm:
- (-[DOMSVGPoint dealloc]):
- (-[DOMSVGPoint finalize]):
- (-[DOMSVGPoint x]):
- (-[DOMSVGPoint setX:]):
- (-[DOMSVGPoint y]):
- (-[DOMSVGPoint setY:]):
- (-[DOMSVGPoint WebCore::]):
- (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
- (+[DOMSVGPoint _SVGPointWith:WebCore::]):
- * bindings/objc/DOMSVGRect.mm:
- (-[DOMSVGRect dealloc]):
- (-[DOMSVGRect finalize]):
- (-[DOMSVGRect x]):
- (-[DOMSVGRect setX:]):
- (-[DOMSVGRect y]):
- (-[DOMSVGRect setY:]):
- (-[DOMSVGRect width]):
- (-[DOMSVGRect setWidth:]):
- (-[DOMSVGRect height]):
- (-[DOMSVGRect setHeight:]):
- (-[DOMSVGRect WebCore::]):
- (-[DOMSVGRect _initWithFloatRect:WebCore::]):
- (+[DOMSVGRect _SVGRectWith:WebCore::]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/StyleBase.h:
- (WebCore::StyleBase::isSVGColor):
- (WebCore::StyleBase::isSVGPaint):
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Removed.
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Removed.
- * ksvg2/bindings/js/JSSVGNumber.cpp: Removed.
- * ksvg2/bindings/js/JSSVGNumber.h: Removed.
- * ksvg2/bindings/js/JSSVGPoint.cpp: Removed.
- * ksvg2/bindings/js/JSSVGPoint.h: Removed.
- * ksvg2/bindings/js/JSSVGRect.cpp: Removed.
- * ksvg2/bindings/js/JSSVGRect.h: Removed.
- * ksvg2/svg/SVGColor.h:
- (WebCore::SVGColor::isSVGColor):
- * ksvg2/svg/SVGFECompositeElement.idl:
- * ksvg2/svg/SVGFEFloodElement.idl:
- * ksvg2/svg/SVGLocatable.idl:
- * ksvg2/svg/SVGMarkerElement.idl:
- * ksvg2/svg/SVGPaint.h:
- (WebCore::SVGPaint::isSVGPaint):
- * ksvg2/svg/SVGRectElement.idl:
- * ksvg2/svg/SVGZoomEvent.idl: Removed.
- 2006-10-17 David Hyatt <hyatt@apple.com>
- Prepare for the elimination of the RenderLayer for <html> elements. The layer is still present,
- but this patch makes everything work without a root layer being around.
- Reviewed by beth
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paint):
- (WebCore::RenderBlock::paintChildren):
- (WebCore::RenderBlock::nodeAtPoint):
- * rendering/RenderLayer.cpp:
- (WebCore::frameVisibleRect):
- (WebCore::RenderLayer::hitTest):
- (WebCore::RenderLayer::hitTestLayer):
- (WebCore::RenderLayer::intersectsDamageRect):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setInnerNode):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::paint):
- 2006-10-17 David Hyatt <hyatt@apple.com>
- Back out my previous patch to the WebCore memory cache.
- * loader/Cache.cpp:
- (WebCore::Cache::flush):
- (WebCore::Cache::setSize):
- (WebCore::Cache::getLRUListFor):
- (WebCore::Cache::removeFromLRUList):
- (WebCore::Cache::insertInLRUList):
- * loader/Cache.h:
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::deref):
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::deref):
- * loader/CachedImage.h:
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::setRequest):
- (WebCore::CachedResource::deref):
- * loader/CachedResource.h:
- (WebCore::CachedResource::allowInLRUList):
- * loader/CachedScript.cpp:
- (WebCore::CachedScript::deref):
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::deref):
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::deref):
- * loader/CachedXSLStyleSheet.h:
- 2006-10-17 Oliver Hunt <oliver@apple.com>
- Reviewed by Anders.
- Make north and east resize cursors use correct image
- * platform/win/CursorWin.cpp:
- (WebCore::eastResizeCursor):
- (WebCore::northResizeCursor):
- 2006-10-17 Oliver Hunt <oliver@apple.com>
- Reviewed by Brady
- Various cursor fixes
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMouseMoveEvent):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::pointerCursor):
- * platform/win/CursorWin.cpp:
- (WebCore::supportsAlphaCursors):
- (WebCore::Cursor::Cursor):
- (WebCore::Cursor::~Cursor):
- (WebCore::pointerCursor):
- 2006-10-17 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4776665>
- REGRESSION: In Mail, caret is visible when the message body isn't focused
- * page/Frame.cpp:
- (WebCore::Frame::paintCaret): If a caret blink timer is ever on in error
- (like when the frame that contains the caret isn't focused) then we don't
- want to paint the caret. We should eventually move to using a single bool
- for caret painting.
- 2006-10-17 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4774354>
- REGRESSION: In Gmail, caret reappears when dragging a selection over some text in the message body
- Functions call recomputCaretRect to see if the caret rect has changed,
- and, if it has, they invalidate (repaint) it. recomputeCaretRect was
- returning false if the caret turned into a range selection or was blown
- away.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::recomputeCaretRect): Don't early return if
- !isCaret(). Obtain the FrameView* using the m_frame pointer, because m_sel
- may now be null.
- 2006-10-17 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Brady.
- BrowserExtension cleanup.
-
- - Removed unnecessary #include of BrowserExtension in Frame.h, added
- #includes to compensate in other files.
-
- - Removed unused versions of createNewWindow.
-
- * bindings/js/kjs_window.cpp:
- * bridge/BrowserExtension.h:
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/WebCoreFrameBridge.mm:
- * html/HTMLFormElement.cpp:
- * loader/mac/LoaderFunctionsMac.mm:
- * page/Frame.h:
- * page/FramePrivate.h:
- 2006-10-15 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adam.
-
- - Fixed "FIXME: Violates Liskov Substitution principle."
-
- IFRAME was never a true subclass of FRAME, since they disagreed on a
- number of behaviors, which, confusingly, IFRAME just overrode and contradicted.
- The fix here is to factor out things common to IFRAME and FRAME into a
- common base class, HTMLFrameElementBase.
-
- I also changed some " *" to "* " and added #includes in files that implicitly
- assumed that HTMLIFrameElement.h #included HTMLFrameElement.h.
- 2006-10-16 Justin Garcia <justin.garcia@apple.com>
- Reviewed by sullivan
-
- <rdar://problem/4776765>
- REGRESSION: Caret's ghost left behind after inserting a paragraph separator (11237)
- We set m_needsLayout to false and call caretRect() in the hopes that it will give us
- the old caret rect. It in fact corrects the caret rect for an offset that it
- believes is due to scrolling but which is actually due to a change in selection
- without an accompanying layout. So it returns the new caret rect regardless of
- what m_needsLayout is set to.
-
- * editing/SelectionController.cpp:
- (WebCore::repaintRectForCaret): Moved the code from caretRepaintRect that
- adds a one pixel slop to this new function.
- (WebCore::SelectionController::caretRepaintRect): Moved this code to
- repaintRectForCaret.
- (WebCore::SelectionController::recomputeCaretRect): Compare the old
- caret rect to the new one that's computed with a fresh layout. If
- they are different, invalidate both repaint rects.
- 2006-10-17 David Harrison <harrison@apple.com>
- Reviewed by Adele.
- <rdar://problem/4770453> VO not honoring secure edit fields in web pages
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject isPasswordField]):
- New. Checks for input with inputType() of PASSWORD.
-
- (-[WebCoreAXObject subrole]):
- Returns NSAccessibilitySecureTextFieldSubrole if [self isPasswordField].
-
- (-[WebCoreAXObject roleDescription]):
- Pass [self subrole] instead of nil when calling NSAccessibilityRoleDescription.
-
- (-[WebCoreAXObject value]):
- Return nil if [self isPasswordField].
-
- (-[WebCoreAXObject accessibilityAttributeNames]):
- Return generic attributes if [self isPasswordField].
- (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
- Return empty array if [self isPasswordField].
- 2006-10-17 David Hyatt <hyatt@apple.com>
- Fix "flash to white' problem on yahoo.com as it finishes loading. Refine the FOUC suppression
- code so that it will only run if the body still has no renderer.
- * dom/Document.cpp:
- (WebCore::Document::updateLayoutIgnorePendingStylesheets):
- 2006-10-17 David Hyatt <hyatt@apple.com>
- Fix a bug where the WebCore memory cache could grow without bound during extended browsing
- sessions.
- Reviewed by mjs
- * loader/Cache.cpp:
- (WebCore::Cache::flush):
- (WebCore::Cache::setSize):
- (WebCore::Cache::getLRUListFor):
- (WebCore::Cache::removeFromLRUList):
- (WebCore::Cache::insertInLRUList):
- * loader/Cache.h:
- * loader/CachedCSSStyleSheet.cpp:
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- * loader/CachedImage.h:
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::setRequest):
- (WebCore::CachedResource::deref):
- * loader/CachedResource.h:
- (WebCore::CachedResource::allowInLRUList):
- * loader/CachedScript.cpp:
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- * loader/CachedXSLStyleSheet.h:
- 2006-10-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/3655385>
- Editing: -indent: method unimplemented
- Added Frame and bridge methods.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge indent]):
- (-[WebCoreFrameBridge outdent]):
- * page/Frame.cpp:
- (WebCore::Frame::indent):
- (WebCore::Frame::outdent):
- * page/Frame.h:
- 2006-10-16 Adam Roben <aroben@apple.com>
- Reviewed by John.
- More menulist cleanup/tweaking.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::setSelectedIndex): Renamed 'index'
- parameter to 'optionIndex' for clarity.
- (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Skip over
- items that are not enabled <option> elements when using arrow keys, and
- make sure we pass an option index to setSelectedIndex.
- * platform/PopupMenu.h:
- (WebCore::PopupMenu::setWasClicked): Specify default argument.
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::setTextFromOption): Strip whitespace from
- option text before setting the control text so that options within
- <optgroup>s don't appear indented in the actual control.
- 2006-10-16 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Adam.
- Win32 build fix.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/BrowserExtensionWin.cpp:
- (WebCore::BrowserExtensionWin::createNewWindow):
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::urlSelected):
- (WebCore::FrameWin::submitForm):
- (WebCore::FrameWin::createNewWindow):
- * bridge/win/FrameWin.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse):
- * platform/win/GraphicsContextWin.cpp:
- (WebCore::GraphicsContext::getWindowsContext):
- (WebCore::GraphicsContext::releaseWindowsContext):
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::openURLRequest):
- (WebCore::ServeSynchronousRequest):
- (WebCore::CheckIfReloading):
- (WebCore::IsResponseURLEqualToURL):
- (WebCore::ResponseMIMEType):
- (WebCore::ResponseIsMultipart):
- (WebCore::CacheObjectExpiresTime):
- (CachedResource::setResponse):
- (CachedResource::setAllData):
- * rendering/RenderThemeWin.cpp:
- (WebCore::doneDrawing):
- (WebCore::RenderThemeWin::paintButton):
- (WebCore::RenderThemeWin::paintTextField):
- 2006-10-16 David Hyatt <hyatt@apple.com>
- Fix for bug 9347, positioned elements have the wrong containing block. This is a change from CSS2 to
- CSS2.1. In the absence of any other enclosing positioned elements, the containing block for a positioned
- element is the initial containing block (our RenderView).
- Reviewed by mjs
- Test cases added to fast/block/positioning for quirks and strict modes.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::lowestPosition):
- (WebCore::RenderBlock::rightmostPosition):
- (WebCore::RenderBlock::leftmostPosition):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::containingBlockHeightForPositioned):
- (WebCore::RenderBox::calcAbsoluteVertical):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::containingBlock):
- (WebCore::RenderObject::container):
- 2006-10-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Anders.
- Misc Gdk/Linux build fixes.
- * platform/gdk/BrowserExtensionGdk.h:
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::submitForm):
- (WebCore::FrameGdk::urlSelected):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/RenderPopupMenuGdk.cpp:
- (WebCore::PopupMenu::PopupMenu):
- (WebCore::PopupMenu::~PopupMenu):
- (WebCore::PopupMenu::clear):
- (WebCore::PopupMenu::populate):
- (WebCore::PopupMenu::show):
- (WebCore::PopupMenu::hide):
- (WebCore::PopupMenu::addSeparator):
- (WebCore::PopupMenu::addGroupLabel):
- (WebCore::PopupMenu::addOption):
- * platform/gdk/RenderPopupMenuGdk.h:
- * platform/gdk/RenderThemeGdk.cpp:
- * platform/gdk/RenderThemeGdk.h:
- (WebCore::RenderThemeGdk::RenderThemeGdk):
- * platform/gdk/TemporaryLinkStubs.cpp:
- (BrowserExtensionGdk::createNewWindow):
- (BrowserExtensionGdk::BrowserExtensionGdk):
- (BrowserExtensionGdk::setTypedIconURL):
- (BrowserExtensionGdk::setIconURL):
- (BrowserExtensionGdk::getHistoryLength):
- (WebCore::CheckIfReloading):
- (WebCore::CacheObjectExpiresTime):
- (WebCore::ResponseURL):
- (WebCore::IsResponseURLEqualToURL):
- (WebCore::ResponseIsMultipart):
- (WebCore::ResponseMIMEType):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- (FileChooser::disconnectUploadControl):
- * rendering/RenderTheme.h:
- * rendering/RenderThemeMac.h:
- 2006-10-15 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Mitz.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11294
- Add getModifierState method to KeyboardEvent
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- * bindings/objc/PublicDOMInterfaces.h:
- * dom/KeyboardEvent.cpp:
- (WebCore::KeyboardEvent::getModifierState):
- * dom/KeyboardEvent.h:
- * dom/KeyboardEvent.idl:
- 2006-10-15 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Changed PlatformResponse handling for Qt. Don't just store
- a QString object containing the data but a new PlatformResponseQt struct
- containing data and url, and store it as pointer. This is compatible
- to the OS X handling and removes the Qt plaform specific hacks from
- CachedCSSStyleSheet, CachedResource & loader.
- Add new file LoaderFunctionsQt, similar to LoaderFunctionsMac, and move
- all methods from TemporaryLinkStubs related to loading in there, and implement
- some like ServeSynchronousRequest (yay for xslt handling!).
- * CMakeLists.txt:
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::checkNotify):
- * loader/CachedResource.h:
- (WebCore::CachedResource::CachedResource):
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse):
- * platform/ResourceLoaderClient.h:
- * platform/ResourceLoaderInternal.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::~FrameQt):
- (WebCore::FrameQt::createEmptyDocument):
- * platform/qt/FrameQt.h:
- (WebCore::QtFrame):
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::setFrame):
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::loadFinished):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/FrameQtClient.h:
- * platform/qt/LoaderFunctionsQt.cpp: Added.
- (WebCore::ServeSynchronousRequest):
- (WebCore::NumberOfPendingOrLoadingRequests):
- (WebCore::CheckIfReloading):
- (WebCore::CheckCacheObjectStatus):
- (WebCore::IsResponseURLEqualToURL):
- (WebCore::ResponseURL):
- (WebCore::ResponseMIMEType):
- (WebCore::ResponseIsMultipart):
- (WebCore::CacheObjectExpiresTime):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::remove):
- * platform/qt/ResourceLoaderQt.cpp:
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/TemporaryLinkStubs.cpp:
- 2006-10-14 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg basic datastructure classes.
- * ksvg2/svg/SVGAngle.cpp:
- (WebCore::SVGAngle::valueAsString):
- (WebCore::SVGAngle::context):
- (WebCore::SVGAngle::setContext):
- * ksvg2/svg/SVGAngle.h:
- * ksvg2/svg/SVGColor.cpp:
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::ownerSVGElement):
- (WebCore::SVGElement::viewportElement):
- (WebCore::SVGElement::parseMappedAttribute):
- (WebCore::SVGElement::childShouldCreateRenderer):
- * ksvg2/svg/SVGElement.h:
- (WebCore::svg_dynamic_cast):
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseViewBox):
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGLangSpace.cpp:
- (WebCore::SVGLangSpace::parseMappedAttribute):
- * ksvg2/svg/SVGLangSpace.h:
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::SVGLength::SVGLength):
- (WebCore::SVGLength::setValueAsString):
- (WebCore::SVGLength::dpi):
- (WebCore::SVGLength::updateValue):
- (WebCore::SVGLength::updateValueInSpecifiedUnits):
- (WebCore::SVGLength::context):
- (WebCore::SVGLength::setContext):
- * ksvg2/svg/SVGLength.h:
- * ksvg2/svg/SVGLengthList.cpp:
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGLocatable.cpp:
- (WebCore::SVGLocatable::nearestViewportElement):
- (WebCore::SVGLocatable::farthestViewportElement):
- (WebCore::SVGLocatable::getBBox):
- (WebCore::SVGLocatable::getCTM):
- (WebCore::SVGLocatable::getScreenCTM):
- * ksvg2/svg/SVGNumberList.cpp:
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
- (WebCore::SVGPreserveAspectRatio::getCTM):
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- * ksvg2/svg/SVGStringList.cpp:
- (WebCore::SVGStringList::reset):
- * ksvg2/svg/SVGStringList.h:
- * ksvg2/svg/SVGStylable.cpp:
- * ksvg2/svg/SVGStylable.h:
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::requiredFeatures):
- (WebCore::SVGTests::requiredExtensions):
- (WebCore::SVGTests::systemLanguage):
- (WebCore::SVGTests::isValid):
- (WebCore::SVGTests::parseMappedAttribute):
- * ksvg2/svg/SVGTests.h:
- * ksvg2/svg/SVGTransformable.cpp:
- (WebCore::SVGTransformable::parseTransformAttribute):
- * ksvg2/svg/SVGTransformable.h:
- * ksvg2/svg/SVGURIReference.cpp:
- (WebCore::SVGURIReference::parseMappedAttribute):
- * ksvg2/svg/SVGZoomAndPan.cpp:
- (WebCore::SVGZoomAndPan::parseMappedAttribute):
- * ksvg2/svg/SVGZoomAndPan.h:
- 2006-10-15 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Oliver.
- Implement some functions in FrameQt / ScrollViewQt.
- Added comments what needs to be done in quite some places,
- marked some functions as no-ops.
- * CMakeLists.txt:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::runJavaScriptConfirm):
- (WebCore::FrameQt::locationbarVisible):
- (WebCore::FrameQt::createFrame):
- (WebCore::FrameQt::passSubframeEventToSubframe):
- (WebCore::FrameQt::menubarVisible):
- (WebCore::FrameQt::personalbarVisible):
- (WebCore::FrameQt::statusbarVisible):
- (WebCore::FrameQt::toolbarVisible):
- (WebCore::FrameQt::markedTextRange):
- (WebCore::FrameQt::lastEventIsMouseUp):
- (WebCore::FrameQt::openURLRequest):
- (WebCore::FrameQt::scheduleClose):
- (WebCore::FrameQt::unfocusWindow):
- (WebCore::FrameQt::focusWindow):
- (WebCore::FrameQt::overrideMediaType):
- (WebCore::FrameQt::runJavaScriptPrompt):
- (WebCore::FrameQt::bindingRootObject):
- (WebCore::FrameQt::addPluginRootObject):
- (WebCore::FrameQt::registerCommandForUndo):
- (WebCore::FrameQt::registerCommandForRedo):
- (WebCore::FrameQt::clearUndoRedoOperations):
- (WebCore::FrameQt::respondToChangedSelection):
- (WebCore::FrameQt::respondToChangedContents):
- (WebCore::FrameQt::shouldChangeSelection):
- (WebCore::FrameQt::canGoBackOrForward):
- (WebCore::FrameQt::canPaste):
- (WebCore::FrameQt::canRedo):
- (WebCore::FrameQt::canUndo):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::runJavaScriptAlert):
- (WebCore::FrameQtClientDefault::runJavaScriptConfirm):
- (WebCore::FrameQtClientDefault::runJavaScriptPrompt):
- (WebCore::FrameQtClientDefault::menubarVisible):
- (WebCore::FrameQtClientDefault::toolbarVisible):
- (WebCore::FrameQtClientDefault::statusbarVisible):
- (WebCore::FrameQtClientDefault::personalbarVisible):
- (WebCore::FrameQtClientDefault::locationbarVisible):
- * platform/qt/FrameQtClient.h:
- * platform/qt/ImageSourceQt.cpp:
- * platform/qt/RenderThemeQt.cpp:
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::scrollPointRecursively):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- 2006-10-14 David Harrison <harrison@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4775213> REGRESSION: Can't from tab from last link on the page to URL address field
- <rdar://problem/4783926> REGRESSION: Typing tab key enters no text
- The problem is that EventTargetNode::defaultEventHandler() calls event->setDefaultHandled() regardless
- of whether frame->view()->advanceFocus() actually changed the focus.
- Trivial fix is to preventDefault() only if advanceFocus() returns true.
- * No test is possible because DumpRenderTree sets the WebView preference to
- tab to links, and that preference cannot be changed dynamically after
- the webview is initialized. Also, the "tab from last link" is not testable
- because DumpRenderTree uses the WebView for the whole window, so tabs can't
- shift focus out of the WebView regardless.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::defaultEventHandler):
- 2006-10-14 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Mitz.
- Fix Qt/Linux build & some little fixes:
- - Adapt to Maciej's FrameLoadRequest changes.
- - Fix response handling - don't try to compare with '0' - for us it's a non-ptr QString object.
- - Actually call setAllData from loader/loader.cpp (David Carson forgot that in his last commit)
- - Fix CacheObjectExpiresTime/ResponseIsMultipart signature.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::checkNotify):
- * loader/CachedResource.h:
- (WebCore::CachedResource::CachedResource):
- * loader/loader.cpp:
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::receivedResponse):
- * platform/qt/BrowserExtensionQt.cpp:
- (WebCore::BrowserExtensionQt::createNewWindow):
- * platform/qt/BrowserExtensionQt.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- (WebCore::FrameQt::openURLRequest):
- * platform/qt/FrameQt.h:
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::setURLForRect):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::CacheObjectExpiresTime):
- (WebCore::ResponseIsMultipart):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- 2006-10-14 David Carson <dacarson@gmail.com>
- Reviewed by Maciej.
- Fix: http://bugs.webkit.org/show_bug.cgi?id=11257
- Removed Mac platform dependance, changed WebCore functions to
- use PlatformResponse/PlatformData rather than NSURLResponse/
- NSData.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::checkNotify):
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::createImage):
- * loader/CachedResource.cpp:
- (WebCore::CachedResource::~CachedResource):
- * loader/CachedResource.h:
- (WebCore::CachedResource::CachedResource):
- (WebCore::CachedResource::response):
- (WebCore::CachedResource::allData):
- * loader/LoaderFunctions.h:
- * loader/loader.cpp:
- (WebCore::Loader::receivedResponse):
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ResponseMIMEType):
- (WebCore::ResponseIsMultipart):
- (WebCore::CacheObjectExpiresTime):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::CacheObjectExpiresTime):
- (WebCore::ResponseIsMultipart):
- (WebCore::ResponseMIMEType):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::CacheObjectExpiresTime):
- (WebCore::ResponseIsMultipart):
- (WebCore::ResponseMIMEType):
- (WebCore::CachedResource::setResponse):
- (WebCore::CachedResource::setAllData):
- 2006-10-14 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Maciej.
- Fix GDK build by defining FrameGdkClient() constructor as non-virtual.
- Pure virtual classes require non-pure destructor, who knew.
- Make CURL networking dependent on USE(CURL) instead of PLATFORM(GDK),
- so that other platforms can also use CURL, if they wish.
- Silence compiler warning about unused variable in SharedTimerLinux.cpp
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/gdk/FrameGdk.h:
- (WebCore::FrameGdkClient::~FrameGdkClient):
- * platform/gdk/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- * platform/gdk/SharedTimerLinux.cpp:
- (WebCore::stopSharedTimer):
- 2006-10-13 Beth Dakin <bdakin@apple.com>
- Reviewed by Geoff.
- Build fix from my last check-in. Make hasOutlineAnnotation() non-
- inline so that we don't have to include Document.h in
- RenderObject.h
- Doing so causes a build failure in WebKit, and it probably isn't a
- good idea anyway.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::hasOutlineAnnotation):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::hasOutline):
- 2006-10-13 Beth Dakin <bdakin@apple.com>
- Patch written mostly by Ken Kraisler, but also by me.
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=10216 and <rdar://
- problem/3391162> PDF created by printing should have live
- hyperlinks
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::focusRingBoundingRect):
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::setURLForRect):
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::setURLForRect): Implement method to add
- URL link to PDF document.
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paint): Ask hasOutline() instead of
- querying the outline width
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintObject): Same as above.
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::paintLines): Call the new paintOutline()
- (WebCore::RenderFlow::paintOutline): Take care of focus ring and
- pdf url rects, and outline painting.
- * rendering/RenderFlow.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::addPDFURLRect): Declaration to apply a PDF
- link to a rectanglular region.
- (WebCore::RenderObject::paintOutline): Take care of pdf rects as
- well as focus ring painting.
- * rendering/RenderObject.h:
- (WebCore::RenderObject::hasOutlineAnnotation): Returns true is the
- element is a link and we are printing.
- (WebCore::RenderObject::hasOutline): Returns true is the style has
- an outline and hasOutlineAnnotation() is true.
- * rendering/RenderStyle.h:
- (WebCore::RenderStyle::hasOutline): Returns true if outlineWidth is
- greater than 0 and outlineStyle is greater than BHIDDEN.
- 2006-10-13 Justin Garcia <justin.garcia@apple.com>
- Reviewed by ggaren and harrison
-
- <rdar://problem/4744008>
- 9A270: Mail crashes when I try to paste large items from Safari
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
- Even though we put nodes in the hash map in pre-order, they don't necessary
- come out of the iterator that way. If a node is a redundant style span
- and one of its pruned ancestors comes off the hash map after it, and that
- ancestor is a redundant style span or font tag, we will try to remove it
- even though it has already been removed and we'll crash.
- The test case added with the fix depends on our hash map implementation
- because it requires that a particular redundant style span come out of
- the iterator before its parent. So, it may eventually not provide
- coverage for the fix.
- 2006-10-13 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - split FrameLoadRequest off from ResourceRequest - it's a ResourceRequest plus frame name plus lockHistory bool
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_window.cpp:
- (KJS::createNewWindow):
- (KJS::WindowFunc::callAsFunction):
- * bridge/BrowserExtension.h:
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::submitForm):
- (WebCore::FrameMac::openURLRequest):
- (WebCore::FrameMac::urlSelected):
- * bridge/win/BrowserExtensionWin.h:
- * page/Frame.cpp:
- (WebCore::Frame::changeLocation):
- (WebCore::Frame::urlSelected):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::submitForm):
- * page/Frame.h:
- * page/FrameLoadRequest.h: Added.
- (WebCore::FrameLoadRequest::FrameLoadRequest):
- (WebCore::FrameLoadRequest::lockHistory):
- (WebCore::FrameLoadRequest::setLockHistory):
- * page/ResourceRequest.h:
- (WebCore::ResourceRequest::ResourceRequest):
- 2006-10-13 John Sullivan <sullivan@apple.com>
- Reviewed by Maciej
- * loader/mac/WebFrameLoader.mm:
- (-[WebFrameLoader loadDocumentLoader:]):
- Replace ASSERT(!policyDocumentLoader) with code that handles this case. This can
- happen when loading a page during a decidePolicyForNavigationAction callback.
- 2006-10-13 Dave Hyatt <hyatt@apple.com>
- Transparency layer work.
- Reviewed by aroben
- * platform/GraphicsContext.h:
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::beginTransparencyLayer):
- (WebCore::GraphicsContext::endTransparencyLayer):
- * platform/cg/GraphicsContextPlatformPrivate.h:
- (WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer):
- (WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer):
- 2006-10-13 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg paint server classes.
- * ksvg2/svg/SVGGradientElement.cpp:
- (WebCore::SVGGradientElement::SVGGradientElement):
- (WebCore::SVGGradientElement::parseMappedAttribute):
- (WebCore::SVGGradientElement::notifyAttributeChange):
- (WebCore::SVGGradientElement::canvasResource):
- (WebCore::SVGGradientElement::rebuildStops):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (WebCore::SVGLinearGradientElement::SVGLinearGradientElement):
- (WebCore::SVGLinearGradientElement::parseMappedAttribute):
- (WebCore::SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::parseMappedAttribute):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyClientsToRepaint):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::canvasResource):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGPatternElement.h:
- (WebCore::SVGPatternElement::rendererIsNeeded):
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
- (WebCore::SVGRadialGradientElement::parseMappedAttribute):
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGStopElement.cpp:
- (WebCore::SVGStopElement::SVGStopElement):
- (WebCore::SVGStopElement::parseMappedAttribute):
- * ksvg2/svg/SVGStopElement.h:
- 2006-10-13 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin, John.
- - Merged more frame and iframe code
- - Fixed a bug where iframes returned incorrect values for renderer-dependent
- properties during javascript: loads because they didn't have renderers at
- load time
-
- PLT insists this is a small performance win. Don't believe its lies.
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
- width and height, for consistency with the rest of the DOM.
- * dom/ContainerNode.cpp:
- (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
- queue that gets drained after the render tree is fully constructed. Currently,
- this is only used for frame loading.
- (WebCore::ContainerNode::attach):
- * dom/ContainerNode.h:
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
- attach() because loading iframes during attach() causes a crash.
- Moved frame loading logic into insertedIntoDocument(). That's a more
- logical place for it because document insertion is what
- triggers frame loading. Made frame loading a post-attach callback, instead
- of an immediate action, to fix the incorrect values bug.
- (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
- in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon
- require this call, once I remove the call from WebKit.
- (WebCore::HTMLFrameElement::setLocation):
- (WebCore::HTMLFrameElement::width):
- (WebCore::HTMLFrameElement::height):
- * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
- killing of puppies.
- * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
- (WebCore::HTMLIFrameElement::rendererIsNeeded):
- (WebCore::HTMLIFrameElement::createRenderer):
- (WebCore::HTMLIFrameElement::insertedIntoDocument):
- (WebCore::HTMLIFrameElement::removedFromDocument):
- (WebCore::HTMLIFrameElement::attach):
- * page/FrameView.h: Removed unused method.
- 2006-10-13 David Harrison <harrison@apple.com>
- Reviewed by Justin.
- <rdar://problem/4746860> Mail crash in WebCore::CSSMutableStyleDeclaration::merge(WebCore::CSSMutableStyleDeclaration*, bool)
- Tests added or changed:
- * editing/style/style-boundary-005.html: Added. Matches steps from bug.
- * editing/execCommand/hilitecolor-expected.txt: Updated (no empty Apple style spans).
- * editing/style/remove-underline-across-paragraph-in-bold-expected.txt: Updated (no empty Apple style spans).
- * editing/style/remove-underline-in-bold-expected.txt: Updated (no empty Apple style spans).
- * editing/style/typing-style-003-expected.txt: Updated (no empty Apple style spans).
- * dom/Text.cpp:
- (WebCore::Text::splitText):
- Comment changes.
-
- * editing/ApplyStyleCommand.cpp:
- (WebCore::isUnstyledStyleSpan):
- Renamed from isEmptyStyleSpan.
-
- (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
- Rename emptySpans local to unstyledSpans.
-
- (WebCore::dummySpanAncestorForNode):
- New. To locate Apple style span created when splitting a text node.
-
- (WebCore::ApplyStyleCommand::cleanupUnstyledAppleStyleSpans):
- Renamed from cleanUpEmptyStyleSpans. Algorithm changed to scan children
- of dummy span's parents, rather than traversing up from start and
- end locations. Old algorithm would miss empty spans in the bug case.
-
- (WebCore::ApplyStyleCommand::applyInlineStyle):
- Use dummySpanAncestorForNode() and cleanupUnstyledAppleStyleSpans().
-
- (WebCore::ApplyStyleCommand::removeCSSStyle):
- Renamed isEmptyStyleSpan() to isUnstyledStyleSpan().
-
- (WebCore::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
- Comment changes.
-
- * editing/ApplyStyleCommand.h:
- Renamed cleanUpEmptyStyleSpans() to cleanupUnstyledAppleStyleSpans().
-
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::removeRedundantStyles):
- Allow for Apple style span to be unstyled, because old email may have this in the DOM.
- Use !node->hasChildNodes() instead of !node->firstChild().
-
- * editing/SplitTextNodeCommand.cpp:
- (WebCore::SplitTextNodeCommand::doApply):
- Comment changes.
-
- * rendering/RenderTreeAsText.cpp:
- (WebCore::isEmptyOrUnstyledAppleStyleSpan):
- (WebCore::operator<<):
- Flag empty or unstyled AppleStyleSpa nbecause we never want to leave them in the DOM
- 2006-10-13 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fix Qt/Linux build after Adele's popup menu changes.
- * CMakeLists.txt:
- * platform/qt/FileChooserQt.cpp:
- (WebCore::FileChooser::disconnectUploadControl):
- * platform/qt/PopupMenuQt.cpp: Added.
- (WebCore::PopupMenu::PopupMenu):
- (WebCore::PopupMenu::~PopupMenu):
- (WebCore::PopupMenu::clear):
- (WebCore::PopupMenu::populate):
- (WebCore::PopupMenu::show):
- (WebCore::PopupMenu::hide):
- (WebCore::PopupMenu::addSeparator):
- (WebCore::PopupMenu::addGroupLabel):
- (WebCore::PopupMenu::addOption):
- * platform/qt/RenderPopupMenuQt.cpp: Removed.
- * platform/qt/RenderPopupMenuQt.h: Removed.
- * platform/qt/RenderThemeQt.cpp:
- 2006-10-13 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Darin.
- fixed build failure
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/WebFrameLoader.mm:
- 2006-10-13 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - converted WebFormState from Objective-C to C++
- * WebCore.exp: Added a new symbol, changed one symbol from C to C++.
- * WebCore.xcodeproj/project.pbxproj: Made lots of headers "private" instead of "project".
- Added UChar.h and FrameLoaderTypes.h.
- * loader/FrameLoaderTypes.h: Added. Has enums from WebFrameLoader.h.
- * loader/mac/WebFormState.h: Converted class to C++.
- * loader/mac/WebFormState.mm: Ditto.
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (-[WebFrameLoader loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
- (-[WebFrameLoader continueFragmentScrollAfterNavigationPolicy:formState:]):
- (-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
- (-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
- (-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
- (-[WebFrameLoader continueAfterNewWindowPolicy:]):
- (-[WebFrameLoader checkNavigationPolicyForRequest:documentLoader:formState:andCall:withSelector:]):
- (-[WebFrameLoader continueAfterNavigationPolicy:]):
- (-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
- (-[WebFrameLoader loadDocumentLoader:withLoadType:formState:]):
- (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
- (-[WebFrameLoader postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
- Changed Objective-C WebFormState uses to C++ WebCore::FormState.
- 2006-10-13 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for <rdar://problem/4768591> REGRESSION: List box selection color should just be a darker version of regular selection color
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::paintItemForeground):
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
- (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
- (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
- (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::activeListBoxSelectionBackgroundColor):
- 2006-10-13 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg structure classes.
- * ksvg2/svg/SVGDefsElement.cpp:
- (WebCore::SVGDefsElement::SVGDefsElement):
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGDescElement.cpp:
- (WebCore::SVGDescElement::SVGDescElement):
- * ksvg2/svg/SVGDescElement.h:
- * ksvg2/svg/SVGDocument.cpp:
- * ksvg2/svg/SVGDocument.h:
- * ksvg2/svg/SVGElementInstance.cpp:
- (WebCore::SVGElementInstance::SVGElementInstance):
- (WebCore::SVGElementInstance::correspondingElement):
- (WebCore::SVGElementInstance::correspondingUseElement):
- (WebCore::SVGElementInstance::parentNode):
- (WebCore::SVGElementInstance::childNodes):
- (WebCore::SVGElementInstance::previousSibling):
- (WebCore::SVGElementInstance::nextSibling):
- (WebCore::SVGElementInstance::firstChild):
- (WebCore::SVGElementInstance::lastChild):
- * ksvg2/svg/SVGElementInstance.h:
- * ksvg2/svg/SVGElementInstanceList.cpp:
- * ksvg2/svg/SVGElementInstanceList.h:
- * ksvg2/svg/SVGGElement.cpp:
- (WebCore::SVGGElement::SVGGElement):
- (WebCore::SVGGElement::parseMappedAttribute):
- (WebCore::SVGDummyElement::SVGDummyElement):
- * ksvg2/svg/SVGGElement.h:
- (WebCore::SVGGElement::rendererIsNeeded):
- * ksvg2/svg/SVGImageElement.cpp:
- (WebCore::SVGImageElement::createRenderer):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::SVGSVGElement):
- (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
- (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
- (WebCore::SVGSVGElement::currentScale):
- (WebCore::SVGSVGElement::setCurrentScale):
- (WebCore::SVGSVGElement::currentTranslate):
- (WebCore::SVGSVGElement::parseMappedAttribute):
- (WebCore::SVGSVGElement::suspendRedraw):
- (WebCore::SVGSVGElement::unsuspendRedraw):
- (WebCore::SVGSVGElement::unsuspendRedrawAll):
- (WebCore::SVGSVGElement::forceRedraw):
- (WebCore::SVGSVGElement::getIntersectionList):
- (WebCore::SVGSVGElement::getEnclosureList):
- (WebCore::SVGSVGElement::checkIntersection):
- (WebCore::SVGSVGElement::checkEnclosure):
- (WebCore::SVGSVGElement::deselectAll):
- (WebCore::SVGSVGElement::createSVGLength):
- (WebCore::SVGSVGElement::createSVGAngle):
- (WebCore::SVGSVGElement::createSVGMatrix):
- (WebCore::SVGSVGElement::createSVGTransform):
- (WebCore::SVGSVGElement::createSVGTransformFromMatrix):
- (WebCore::SVGSVGElement::getCTM):
- (WebCore::SVGSVGElement::getScreenCTM):
- (WebCore::SVGSVGElement::setCurrentTime):
- * ksvg2/svg/SVGSVGElement.h:
- (WebCore::SVGSVGElement::rendererIsNeeded):
- * ksvg2/svg/SVGSwitchElement.cpp:
- (WebCore::SVGSwitchElement::SVGSwitchElement):
- (WebCore::SVGSwitchElement::childShouldCreateRenderer):
- * ksvg2/svg/SVGSwitchElement.h:
- (WebCore::SVGSwitchElement::rendererIsNeeded):
- * ksvg2/svg/SVGSymbolElement.cpp:
- (WebCore::SVGSymbolElement::SVGSymbolElement):
- (WebCore::SVGSymbolElement::parseMappedAttribute):
- * ksvg2/svg/SVGSymbolElement.h:
- (WebCore::SVGSymbolElement::shouldAttachChild):
- * ksvg2/svg/SVGTitleElement.cpp:
- (WebCore::SVGTitleElement::SVGTitleElement):
- * ksvg2/svg/SVGTitleElement.h:
- * ksvg2/svg/SVGUseElement.cpp:
- (WebCore::SVGUseElement::parseMappedAttribute):
- (WebCore::SVGUseElement::closeRenderer):
- * ksvg2/svg/SVGUseElement.h:
- (WebCore::SVGUseElement::rendererIsNeeded):
- 2006-10-12 Adele Peterson <adele@apple.com>
- Reviewed by Anders.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=11172
- REGRESSION (NativeListBox): OPTION text paints over the edge of the select element at http://jobs.apple.com/
-
- Test: fast/forms/listbox-width-change.html
- * rendering/RenderListBox.cpp: (WebCore::RenderListBox::updateFromElement):
- When the options change, call setNeedsLayoutAndMinMaxRecalc.
- 2006-10-12 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - moved a bunch of WebFrameBridge code down to WebCoreFrameBridge, now that it no longer has any WebKit dependencies
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (stringByCollapsingNonPrintingCharacters):
- (-[WebCoreFrameBridge setTitle:]):
- (-[WebCoreFrameBridge didFirstLayout]):
- (-[WebCoreFrameBridge notifyIconChanged:]):
- (-[WebCoreFrameBridge originalRequestURL]):
- (-[WebCoreFrameBridge isLoadTypeReload]):
- (-[WebCoreFrameBridge frameDetached]):
- (-[WebCoreFrameBridge tokenizerProcessedData]):
- (-[WebCoreFrameBridge receivedData:textEncodingName:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:]):
- (-[WebCoreFrameBridge objectLoadedFromCacheWithURL:response:data:]):
- (-[WebCoreFrameBridge startLoadingResource:withMethod:URL:customHeaders:postData:]):
- (-[WebCoreFrameBridge reportClientRedirectToURL:delay:fireDate:lockHistory:isJavaScriptFormAction:]):
- (-[WebCoreFrameBridge reportClientRedirectCancelled:]):
- (-[WebCoreFrameBridge loadURL:referrer:reload:userGesture:target:triggeringEvent:form:formValues:]):
- (-[WebCoreFrameBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
- (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
- (-[WebCoreFrameBridge incomingReferrer]):
- (-[WebCoreFrameBridge isReloading]):
- (-[WebCoreFrameBridge handledOnloadEvents]):
- (-[WebCoreFrameBridge mainResourceURLResponse]):
- (-[WebCoreFrameBridge loadEmptyDocumentSynchronously]):
- * loader/mac/LoaderNSURLExtras.h:
- * loader/mac/LoaderNSURLRequestExtras.h: Added.
- * loader/mac/LoaderNSURLRequestExtras.m: Added.
- (isConditionalRequest):
- (setHTTPReferrer):
- * loader/mac/WebFrameLoader.mm:
- * loader/mac/WebSubresourceLoader.mm:
- 2006-10-12 Adele Peterson <adele@apple.com>
- RS by Geoff.
- Renamed menuListIsDetaching to disconnectMenuList,
- uploadControlDetaching to disconnectUploadControl, and fileChooserDetachingSoon to disconnectFileChooser.
- These names match similar methods in WebCore a little better.
- * platform/FileChooser.h:
- * platform/PopupMenu.h: (WebCore::PopupMenu::disconnectMenuList):
- * platform/mac/FileChooserMac.mm: (-[OpenPanelController disconnectFileChooser]):
- (WebCore::FileChooser::disconnectUploadControl):
- * platform/win/TemporaryLinkStubs.cpp: (FileChooser::disconnectUploadControl):
- * rendering/RenderFileUploadControl.cpp: (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList):
- 2006-10-12 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- WebCore part of fix for <rdar://problem/4450613> need a means to attach user data to any menu that is popuped up in HTML
- Added private delegate method for clients that want access to a PopupMenu's NSMenu.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::willPopupMenu):
- * bridge/mac/WebCoreFrameBridge.h:
- * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Calls willPopupMenu with the NSMenu about to be popped up.
- 2006-10-12 Adele Peterson <adele@apple.com>
- Reviewed by Alice.
- - Fix for <rdar://problem/4707372>
- After timers fix, crash in -[NSMenu performActionForItemAtIndex:] after moving/detroying active popup menu
- * platform/PopupMenu.h: (WebCore::PopupMenu::menuListIsDetaching): Added. Zeros out the pointer to the menu list.
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::~RenderMenuList): Calls menuListIsDetaching.
- * platform/mac/PopupMenuMac.mm: (WebCore::PopupMenu::show): Added a RefPtr to protect the PopupMenu while the NSMenu is up,
- in case the RenderMenuList goes away. Also, checks the pointer to the menu list immediately afterwards.
- 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Trying to fix "DRT hangs on certain testcases" like fast/dom/Document/document-reopen.html
- document.open(); document.write(..); and NO document.close(). On the Qt platform this
- leaves a HTMLDocument which is still in parsing mode (parsing() always returns true).
- DRT waits forever, but m_frame->isComplete() is never true due the parsing mode problem.
- Hmpf, this took me nine hours to debug today.
- Result: Couldn't find the real fix, going for a workaround for now.
-
- 540 minutes, 1 line of code changed after all -> 0,0019 lines per minute.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::handledOnloadEvents): Call endIfNotLoading() manually.
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::receivedData): Use write() again instead of addData().
- 2006-10-12 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Move popup menu code out of rendering/ and into platform/.
- RenderPopupMenu becomes PopupMenu, the
- RenderPopupMenuMac/RenderPopupMenuWin subclasses and all the associated
- virtual methods go away, RenderTheme gets to stop worrying about popup
- menus, PopupMenu becomes ref-counted, and everyone becomes happy.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Move files within project.
- * WebCore.xcodeproj/project.pbxproj: Ditto.
- * html/HTMLSelectElement.cpp: Remove unnecessary #include.
- * platform/PopupMenu.cpp: Moved from rendering/RenderPopupMenu.cpp.
- Also renamed showPopup()/hidePopup() to show()/hide() to disambiguate
- from RenderMenuList::showPopup/hidePopup.
- (WebCore::PopupMenu::create): New static creation method to hand back a
- PassRefPtr<PopupMenu>.
- (WebCore::PopupMenu::addItems): This platform-independent method should
- be called by PopupMenu::populate when the platform-specific
- implementation is ready to receive the menu items. Fixed an ASSERT
- while I was at it.
- * platform/PopupMenu.h: Moved from rendering/RenderPopupMenu.h. No more
- need for virtual methods.
- (WebCore::PopupMenu::wasClicked):
- (WebCore::PopupMenu::setWasClicked):
- (WebCore::PopupMenu::popupHandle):
- * platform/mac/PopupMenuMac.mm: Moved from
- rendering/RenderPopupMenuMac.mm. Much renaming ensues.
- (WebCore::PopupMenu::PopupMenu):
- (WebCore::PopupMenu::~PopupMenu):
- (WebCore::PopupMenu::clear):
- (WebCore::PopupMenu::populate):
- (WebCore::PopupMenu::show):
- (WebCore::PopupMenu::hide):
- (WebCore::PopupMenu::addSeparator):
- (WebCore::PopupMenu::addGroupLabel): Since we don't have our own
- RenderStyle anymore, just pick up the style from our RenderMenuList.
- (WebCore::PopupMenu::addOption): Ditto.
- * platform/win/TemporaryLinkStubs.cpp: Rename-fest.
- (PopupMenu::PopupMenu):
- (PopupMenu::~PopupMenu):
- (PopupMenu::clear):
- (PopupMenu::populate):
- (PopupMenu::show):
- (PopupMenu::hide):
- (PopupMenu::addSeparator):
- (PopupMenu::addGroupLabel):
- (PopupMenu::addOption):
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::~RenderMenuList):
- (WebCore::RenderMenuList::showPopup): Use nice new simple
- PopupMenu::create to make the popup.
- (WebCore::RenderMenuList::hidePopup):
- * rendering/RenderMenuList.h: Hold a RefPtr<PopupMenu> instead of a
- RenderPopupMenu*.
- (WebCore::RenderMenuList::popup):
- * rendering/RenderPopupMenu.cpp: Removed.
- * rendering/RenderPopupMenu.h: Removed.
- * rendering/RenderPopupMenuMac.h: Removed.
- * rendering/RenderPopupMenuMac.mm: Removed.
- * rendering/RenderPopupMenuWin.h: Removed.
- * rendering/RenderTheme.cpp: Get rid of createPopupMenu() method.
- * rendering/RenderTheme.h: Ditto.
- * rendering/RenderThemeMac.h: Ditto.
- * rendering/RenderThemeMac.mm: Ditto.
- * rendering/RenderThemeWin.cpp: Ditto.
- * rendering/RenderThemeWin.h: Ditto.
- 2006-10-12 Adele Peterson <adele@apple.com>
- Reviewed by Dave Harrison.
- - Fixed <rdar://problem/4650813> REGRESSION: typing in a textarea in Safari is extremely slow (sample shows focus ring drawing)
- * rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout):
- Make subtree layouts work for textareas as well as text fields.
- 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by MacDome.
- Finally found a way to remove our begin() trickery in FrameQt.
- The (probably misnamed) Frame::setEncoding() function automatically
- calls Frame::receivedFirstData() which calls being on the working
- url, which has been passed to didOpenUrl(). Took me some hours
- to figure out that the missing charset logic, forced us to do hacks.
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::tokenizerProcessedData):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::FrameQtClientDefault):
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- (WebCore::FrameQtClientDefault::receivedData):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/FrameQtClient.h:
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::slotData):
- (WebCore::ResourceLoaderManager::slotMimetype):
- (WebCore::ResourceLoaderManager::slotResult):
- (WebCore::ResourceLoaderManager::remove):
- * platform/qt/ResourceLoaderQt.cpp:
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::extractCharsetFromHeaders):
- 2006-10-12 Adam Roben <aroben@apple.com>
- Reviewed by Hyatt.
- Bandaid-ing a null-dereference crash until a real fix is made.
- * page/FrameView.cpp:
- (WebCore::FrameView::windowClipRect):
- 2006-10-12 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg text classes.
- * ksvg2/svg/SVGTRefElement.cpp:
- (WebCore::SVGTRefElement::SVGTRefElement):
- (WebCore::SVGTRefElement::updateReferencedText):
- (WebCore::SVGTRefElement::parseMappedAttribute):
- (WebCore::SVGTRefElement::childShouldCreateRenderer):
- (WebCore::SVGTRefElement::createRenderer):
- * ksvg2/svg/SVGTRefElement.h:
- (WebCore::SVGTRefElement::rendererIsNeeded):
- * ksvg2/svg/SVGTSpanElement.cpp:
- (WebCore::SVGTSpanElement::SVGTSpanElement):
- (WebCore::SVGTSpanElement::childShouldCreateRenderer):
- (WebCore::SVGTSpanElement::createRenderer):
- * ksvg2/svg/SVGTSpanElement.h:
- (WebCore::SVGTSpanElement::rendererIsNeeded):
- * ksvg2/svg/SVGTextContentElement.cpp:
- (WebCore::SVGTextContentElement::SVGTextContentElement):
- (WebCore::SVGTextContentElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::SVGTextElement):
- (WebCore::SVGTextElement::localMatrix):
- (WebCore::SVGTextElement::parseMappedAttribute):
- (WebCore::SVGTextElement::updateLocalTransform):
- (WebCore::SVGTextElement::nearestViewportElement):
- (WebCore::SVGTextElement::farthestViewportElement):
- (WebCore::SVGTextElement::getScreenCTM):
- (WebCore::SVGTextElement::getCTM):
- (WebCore::SVGTextElement::createRenderer):
- (WebCore::SVGTextElement::childShouldCreateRenderer):
- * ksvg2/svg/SVGTextElement.h:
- (WebCore::SVGTextElement::getTransformToElement):
- (WebCore::SVGTextElement::rendererIsNeeded):
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- (WebCore::SVGTextPositioningElement::SVGTextPositioningElement):
- (WebCore::SVGTextPositioningElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextPositioningElement.h:
- 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Specialization of alert() for DumpRenderTree - just log the output, don't show any message box.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::runJavaScriptAlert): Move runJavaScriptAlert functionality to FrameQtClientDefault.
- * platform/qt/FrameQtClient.cpp:
- (WebCore::FrameQtClientDefault::runJavaScriptAlert):
- * platform/qt/FrameQtClient.h:
- 2006-10-12 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Eric.
- - move m_responseMIMEType out of ResourceRequest, where it doesn't belong
- * page/FramePrivate.h: Add m_responseMIMEType
- * page/ResourceRequest.h: Remove m_responseMIMEType
- * page/Frame.cpp:
- (WebCore::Frame::setResponseMIMEType): added
- (WebCore::Frame::responseMIMEType): added
- (WebCore::Frame::begin): get MIME type from the right place
- (WebCore::Frame::write): ditto
- * page/Frame.h:
- * bindings/js/kjs_window.cpp:
- (KJS::createNewWindow): updated to use new Frame methods
- (KJS::WindowFunc::callAsFunction): ditto
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]): ditto
- (-[WebCoreFrameBridge canProvideDocumentSource]): ditto
- * loader/PluginDocument.cpp:
- (WebCore::PluginTokenizer::createDocumentStructure): ditto
- 2006-10-12 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Eric.
-
- <rdar://problem/4774321> REGRESSION: "Can't find the server" error page contains unstyled text and missing image
- We really need some way to test loadHTMLString since it keeps breaking!
-
- * loader/mac/WebFrameLoader.mm:
- (-[WebFrameLoader commitProvisionalLoad:]): Set stuff up on the proper data source.
- 2006-10-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * platform/qt/FileChooserQt.cpp:
- (WebCore::FileChooser::create):
- 2006-10-12 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Maciej.
- Update Gdk\Linux build for recent changes, based on Qt code
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
- (WebCore::FrameGdkClientDefault::~FrameGdkClientDefault):
- (WebCore::FrameGdkClientDefault::setFrame):
- (WebCore::FrameGdkClientDefault::openURL):
- (WebCore::FrameGdkClientDefault::submitForm):
- (WebCore::FrameGdkClientDefault::receivedResponse):
- (WebCore::FrameGdkClientDefault::receivedData):
- (WebCore::FrameGdkClientDefault::receivedAllData):
- (WebCore::FrameGdk::FrameGdk):
- (WebCore::FrameGdk::openURL):
- (WebCore::FrameGdk::submitForm):
- (WebCore::FrameGdk::urlSelected):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::createJavaAppletWidget):
- (FileChooser::create):
- 2006-10-12 Dave Hyatt <hyatt@apple.com>
- Patch to add more clipping retrieval functionality for widgets.
-
- Reviewed by mjs
- * page/Frame.h:
- Remove windowResizerRect. This is in the wrong place.
-
- * page/FrameView.cpp:
- (WebCore::FrameView::windowClipRect):
- (WebCore::FrameView::windowClipRectForLayer):
- Break out windowClipRect into helper functions that can be called separately (to make
- it easier for scrollbars in overflow sections and list boxes to get to an enclosing
- layer and get the right clip.
-
- * page/FrameView.h:
- Add the new windowClipRect helper methods.
-
- * platform/ScrollBar.h:
- Add a new interface to ScrollbarClient so that scrollbars can hand back proper
- clip rects for themselves depending on how they are used.
-
- * platform/ScrollView.h:
- Stub out methods for talking to a double buffer backing store on Win32.
-
- * platform/Widget.h:
- Add the ability to query for invalidation suppression.
-
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::windowClipRect):
- (WebCore::RenderLayer::paintOverflowControls):
- (WebCore::RenderLayer::calculateRects):
- (WebCore::RenderLayer::childrenClipRect):
- (WebCore::RenderLayer::selfClipRect):
- * rendering/RenderLayer.h:
- Enhance layers so that they can return either their foreground or background
- document clip rects. Make sure a layer scrollbar can return a proper clip.
-
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::windowClipRect):
- * rendering/RenderListBox.h:
- Make sure a list box scrollbar can return a proper clip.
-
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::enclosingLayer):
- * rendering/RenderObject.h:
- Make enclosingLayer const.
-
- 2006-10-11 Darin Adler <darin@apple.com>
- Reviewed by John.
- - some changes to prepare for converting more code to C++
- * bridge/mac/WebCoreFrameBridge.h: Added import of <Cocoa/Cocoa.h> so this header is
- self-sufficient.
- * bridge/mac/WebCoreViewFactory.h: Added forward declaration of the NSMenu class.
- Needed since the class is used in this header (for some work I have not landed yet).
- * loader/mac/LoaderNSURLExtras.h:
- * loader/mac/WebFormDataStream.h:
- Added extern "C" so this code can be used from C++.
- * loader/mac/LoaderNSURLExtras.m:
- * loader/mac/WebDataProtocol.mm:
- * loader/mac/WebDocumentLoader.mm:
- * loader/mac/WebFormDataStream.m:
- * loader/mac/WebLoader.mm:
- * loader/mac/WebMainResourceLoader.mm:
- * loader/mac/WebNetscapePlugInStreamLoader.mm:
- * loader/mac/WebPolicyDecider.mm:
- * loader/mac/WebSubresourceLoader.mm:
- Added missing includes of config.h.
- 2006-10-11 John Sullivan <sullivan@apple.com>
-
- Darin wrote this code; we tested it; I give it the thumbs up.
-
- - fixed regression from svn revision 16982 that was generating the wrong Obj-C classes
- The hash table to look up an element class given a QualifiedName was
- not working at all.
- * dom/QualifiedName.h:
- (WebCore::QualifiedName::impl):
- Added. This new accessor method for impl is needed if we want to use
- a QualifiedName as a hash table key without doing the kind of specialization
- we do for String. Maybe later we can do the String thing.
- * bindings/objc/DOM.mm:
- (WebCore::addElementClass):
- Use QualifiedName.impl instead of the QualifiedName pointer itself.
- The QualifiedName pointer is *not* unique so almost nothing would be found
- in this hash table!
- (WebCore::elementClass):
- ditto
-
- 2006-10-11 Adam Roben <aroben@apple.com>
- Rubberstamped by Anders.
- Clean up FileChooser::create and Icon::newIconForFile.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/FileChooserMac.mm:
- (WebCore::FileChooser::create):
- * platform/mac/IconMac.mm:
- (WebCore::Icon::newIconForFile):
- 2006-10-11 Oliver Hunt <oliver@apple.com>
- Reviewed by Adam.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=11251
- Corrects canvas tag to not throw JS exception when drawing
- zero sized rects, arcs, etc
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::arcTo):
- (WebCore::CanvasRenderingContext2D::arc):
- (WebCore::CanvasRenderingContext2D::rect):
- (WebCore::CanvasRenderingContext2D::clearRect):
- (WebCore::CanvasRenderingContext2D::fillRect):
- (WebCore::CanvasRenderingContext2D::strokeRect):
- 2006-10-11 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11221
- REGRESSION: iExploder crash due to style="cursor: url()"
- Take better care of empty cursor lists.
- Test: fast/css/invalid-cursor-property-crash.html
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- 2006-10-11 Adam Roben <aroben@apple.com>
- Fixing Windows for real this time.
- * platform/win/TemporaryLinkStubs.cpp:
- (FileChooser::create):
- 2006-10-11 Adam Roben <aroben@apple.com>
- Fix Windows build.
- * platform/win/TemporaryLinkStubs.cpp:
- (FileChooser::create):
- 2006-10-11 Antti Koivisto <koivisto@iki.fi>
- Reviewed by Hyatt.
-
- http://bugs.webkit.org/show_bug.cgi?id=4377
-
- Respect css visibility semantics for layers too
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::removeChildNode):
- (WebCore::RenderContainer::appendChildNode):
- (WebCore::RenderContainer::insertChildNode):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer):
- (WebCore::RenderLayer::updateLayerPositions):
- (WebCore::RenderLayer::setHasVisibleContent):
- (WebCore::RenderLayer::dirtyVisibleContentStatus):
- (WebCore::RenderLayer::childVisibilityChanged):
- (WebCore::RenderLayer::dirtyVisibleDescendantStatus):
- (WebCore::RenderLayer::updateVisibilityStatus):
- (WebCore::RenderLayer::addChild):
- (WebCore::RenderLayer::removeChild):
- (WebCore::RenderLayer::updateZOrderLists):
- (WebCore::RenderLayer::collectLayers):
- * rendering/RenderLayer.h:
- (WebCore::RenderLayer::hasVisibleContent):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle):
- 2006-10-10 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - added RetainPtr, smart pointer for refcounted ObjC objects and CFTypes
- * WebCore.xcodeproj/project.pbxproj:
- * platform/cf/RetainPtr.h: Added.
- (WTF::):
- (WTF::RetainPtr::RetainPtr):
- (WTF::RetainPtr::~RetainPtr):
- (WTF::RetainPtr::get):
- (WTF::RetainPtr::operator*):
- (WTF::RetainPtr::operator->):
- (WTF::RetainPtr::operator!):
- (WTF::RetainPtr::operator UnspecifiedBoolType):
- (WTF::::operator):
- (WTF::::swap):
- (WTF::swap):
- (WTF::operator==):
- (WTF::operator!=):
- (WTF::static_pointer_cast):
- (WTF::const_pointer_cast):
- (WTF::getPtr):
-
- - use it in WidgetMac so it gets tested in at least one place
-
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::Widget):
- (WebCore::Widget::~Widget):
- (WebCore::Widget::setEnabled):
- (WebCore::Widget::isEnabled):
- (WebCore::Widget::setCursor):
- (WebCore::Widget::getView):
- (WebCore::Widget::setView):
- (WebCore::Widget::getOuterView):
- 2006-10-10 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej.
- Moved WebFrameLoader from WebFrameBridge into WebCoreFrameBridge
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initMainFrameWithPage:]):
- (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
- (-[WebCoreFrameBridge dealloc]):
- (-[WebCoreFrameBridge close]):
- (-[WebCoreFrameBridge setFrameLoaderClient:]):
- (-[WebCoreFrameBridge frameLoader]):
- * loader/mac/WebFrameLoader.h:
- * loader/mac/WebFrameLoader.mm:
- (-[WebFrameLoader initWithFrameBridge:]):
- (-[WebFrameLoader setFrameLoaderClient:]):
- 2006-10-10 Adam Roben <aroben@apple.com>
- Reviewed by Oliver.
- Make FileChooser ref-counted.
- * platform/FileChooser.h:
- * platform/mac/FileChooserMac.mm:
- (WebCore::FileChooser::create):
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::RenderFileUploadControl):
- (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
- * rendering/RenderFileUploadControl.h:
- 2006-10-10 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11248
- Even More auto-generated Objective-C DOM bindings changes
- - Auto-generate DOMSVGPathElement.
- - Auto-generate the internal interfaces even for classes that have
- custom internal implementations. Change IDL property from ObjCNoInternal
- to ObjCCustomInternalImpl to indicate the change.
- - Add SVG classes to DOMNode and DOMEvent internal interfaces.
- - Add isSVGZoomEvent() method to Event class to match other Event subclasses
- and make DOM binding possible.
- - Assorted cleanups.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (WebCore::addElementClass):
- (WebCore::createElementClassMap):
- (WebCore::elementClass):
- (-[DOMNode description]):
- (+[DOMNode _nodeWith:WebCore::]):
- (-[DOMNode addEventListener:listener:useCapture:]):
- (-[DOMNode removeEventListener:listener:useCapture:]):
- (-[DOMElement _NPObject]):
- (WebCore::ObjCEventListener::handleEvent):
- * bindings/objc/DOMEvents.mm:
- (+[DOMEvent _eventWith:WebCore::]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMRGBColor.mm:
- (-[DOMRGBColor WebCore::]):
- * bindings/objc/DOMSVGPathSegInternal.h: Removed.
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/CSSRule.idl:
- * css/CSSValue.idl:
- * css/StyleSheet.idl:
- * dom/Event.cpp:
- (WebCore::Event::isSVGZoomEvent):
- * dom/Event.h:
- * dom/Event.idl:
- * dom/Node.idl:
- * ksvg2/events/SVGZoomEvent.cpp:
- (WebCore::SVGZoomEvent::isSVGZoomEvent):
- * ksvg2/events/SVGZoomEvent.h:
- * ksvg2/svg/SVGAnimatedAngle.idl:
- * ksvg2/svg/SVGCircleElement.idl:
- * ksvg2/svg/SVGClipPathElement.idl:
- * ksvg2/svg/SVGPathElement.idl:
- * ksvg2/svg/SVGPathSeg.idl:
- 2006-10-10 Oliver Hunt <oliver@apple.com>
- rubber stamped by Anders.
- More buildbot bustage
- * kcanvas/SVGInlineFlowBox.cpp:
- (WebCore::placeBoxesVerticallyWithAbsBaseline):
- 2006-10-10 Oliver Hunt <oliver@apple.com>
- Reviewed by Anders
- Unbreak build bots
- * dom/Text.cpp:
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::layout):
- * kcanvas/SVGInlineFlowBox.cpp:
- (WebCore::placePositionedBoxesHorizontally):
- (WebCore::placeBoxesVerticallyWithAbsBaseline):
- 2006-10-10 Oliver Hunt <oliver@apple.com>
- Reviewed by hyatt.
- Fixes bugs #6423, #6559, #10380 and #10839
- * WebCore.xcodeproj/project.pbxproj:
- * css/svg.css:
- * dom/Text.cpp:
- (WebCore::Text::createRenderer):
- * kcanvas/RenderSVGInline.cpp: Added.
- (WebCore::RenderSVGInline::RenderSVGInline):
- (WebCore::RenderSVGInline::createInlineBox):
- * kcanvas/RenderSVGInline.h: Added.
- (WebCore::RenderSVGInline::renderName):
- (WebCore::RenderSVGInline::requiresLayer):
- * kcanvas/RenderSVGInlineText.cpp: Added.
- (WebCore::RenderSVGInlineText::RenderSVGInlineText):
- (WebCore::RenderSVGInlineText::absoluteRects):
- (WebCore::RenderSVGInlineText::selectionRect):
- * kcanvas/RenderSVGInlineText.h: Added.
- (WebCore::RenderSVGInlineText::renderName):
- (WebCore::RenderSVGInlineText::requiresLayer):
- * kcanvas/RenderSVGTSpan.cpp: Added.
- (WebCore::RenderSVGTSpan::RenderSVGTSpan):
- (WebCore::RenderSVGTSpan::absoluteRects):
- * kcanvas/RenderSVGTSpan.h: Added.
- (WebCore::RenderSVGTSpan::renderName):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::RenderSVGText):
- (WebCore::RenderSVGText::computeAbsoluteRepaintRect):
- (WebCore::RenderSVGText::layout):
- (WebCore::RenderSVGText::createInlineBox):
- (WebCore::RenderSVGText::nodeAtPoint):
- (WebCore::RenderSVGText::absoluteRects):
- (WebCore::RenderSVGText::paint):
- (WebCore::RenderSVGText::relativeBBox):
- * kcanvas/RenderSVGText.h:
- (WebCore::RenderSVGText::renderName):
- * kcanvas/SVGInlineFlowBox.cpp: Added.
- (WebCore::SVGInlineFlowBox::paint):
- (WebCore::SVGInlineFlowBox::placeBoxesHorizontally):
- (WebCore::SVGInlineFlowBox::verticallyAlignBoxes):
- (WebCore::paintSVGInlineFlow):
- (WebCore::translateBox):
- (WebCore::placePositionedBoxesHorizontally):
- (WebCore::placeSVGFlowHorizontally):
- (WebCore::placeBoxesVerticallyWithAbsBaseline):
- (WebCore::placeSVGFlowVertically):
- * kcanvas/SVGInlineFlowBox.h: Added.
- (WebCore::SVGInlineFlowBox::SVGInlineFlowBox):
- * kcanvas/SVGRootInlineBox.cpp: Added.
- (WebCore::SVGRootInlineBox::paint):
- (WebCore::SVGRootInlineBox::placeBoxesHorizontally):
- (WebCore::SVGRootInlineBox::verticallyAlignBoxes):
- * kcanvas/SVGRootInlineBox.h: Added.
- (WebCore::SVGRootInlineBox::SVGRootInlineBox):
- * ksvg2/svg/SVGTRefElement.cpp:
- (SVGTRefElement::createRenderer):
- * ksvg2/svg/SVGTSpanElement.cpp:
- (SVGTSpanElement::createRenderer):
- * rendering/InlineFlowBox.h:
- 2006-10-10 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Improve popup menu behavior.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::HTMLSelectElement): Cache
- m_lastOnChangeIndex so we know when to fire onChange.
- (WebCore::HTMLSelectElement::setSelectedIndex): Added parameter to
- specify whether we should fire onChange.
- (WebCore::HTMLSelectElement::dispatchBlurEvent): Fire onChange on blur.
- (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Fire
- onChange when using the Enter key to change the selection.
- * html/HTMLSelectElement.h:
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::updateFromElement): Extract setText logic
- into its own method.
- (WebCore::RenderMenuList::setTextFromOption): New method.
- (WebCore::RenderMenuList::valueChanged): Let setSelectedIndex call
- onChange instead of calling it directly here.
- * rendering/RenderMenuList.h:
- 2006-10-10 Adele Peterson <adele@apple.com>
- Reviewed by Beth.
- - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type=text>
- and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
- Moved autoscroll code to the Frame class
- * bridge/mac/FrameMac.h: Moved _mouseDownMayStartDrag and _mouseDownMayStartAutoscroll flags to the frame.
- * bridge/mac/FrameMac.mm: Use new getters and setters for drag and autoscroll flags. Moved autoscroll code to Frame::handleMouseMoveEvent.
- (WebCore::FrameMac::FrameMac):
- (WebCore::FrameMac::handleMousePressEvent):
- (WebCore::FrameMac::eventMayStartDrag):
- (WebCore::FrameMac::handleMouseMoveEvent):
- (WebCore::FrameMac::mouseDown):
- * bridge/mac/WebCoreFrameBridge.h: Removed handleAutoscrollForMouseDragged, which called over the bridge for AppKit to do autoscroll for us.
- Now we scroll our views in WebCore.
- * page/Frame.cpp:
- (WebCore::Frame::handleMousePressEvent): Initialize the mouseDownMayStartAutoscroll flag.
- (WebCore::Frame::handleMouseMoveEvent): Now kicks off autoscroll if appropriate. Moved from FrameMac.
- (WebCore::Frame::updateSelectionForMouseDragOverPosition): Factored code out from handleMouseMoveEvent so we can update the selection from autoscroll too.
- (WebCore::Frame::mouseDownMayStartAutoscroll): Added.
- (WebCore::Frame::setMouseDownMayStartAutoscroll): Added.
- (WebCore::Frame::mouseDownMayStartDrag): Added.
- (WebCore::Frame::setMouseDownMayStartDrag): Added.
- (WebCore::Frame::autoscrollRenderer): Added
- (WebCore::Frame::setAutoscrollRenderer): Added.
- (WebCore::Frame::handleAutoscroll): Updated to use autoscrollRenderer getter and setter.
- (WebCore::Frame::autoscrollTimerFired): ditto.
- (WebCore::Frame::stopAutoscrollTimer): ditto.
- * page/Frame.h: Made autoscrollRenderer and stopAutoscrollTimer public, so the renderer being autoscrolled can kill the timer when it dies.
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate): Added mouseDownMayStartDrag and mouseDownMayStartAutoscroll flags. Moved from FrameMac.
- * page/FrameView.cpp: Store the current mouse position in window coordinates. The callers can convert to their own coordinate space.
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::FrameView::handleMouseDoubleClickEvent):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll): Rewrote this to scroll recursively, and to scroll based on the mouse position (not the selection).
- 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.
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::autoscroll): Convert the mouse coordinates to the right space.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::shouldAutoscroll): Also return true if the renderer is a root (so we know to autoscroll views too)
- (WebCore::RenderObject::destroy): If this renderer is being autoscrolled, stop the frame's autoscroll timer.
- 2006-10-10 Darin Adler <darin@apple.com>
- Rubber stamped by Maciej.
- - convert many of the loader source files to Objective-C++ to prepare
- to convert some of them to C++
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/WebDataProtocol.m: Removed.
- * loader/mac/WebDocumentLoader.m: Removed.
- * loader/mac/WebFormState.m: Removed.
- * loader/mac/WebFrameLoader.m: Removed.
- * loader/mac/WebLoader.m: Removed.
- * loader/mac/WebMainResourceLoader.m: Removed.
- * loader/mac/WebNetscapePlugInStreamLoader.m: Removed.
- * loader/mac/WebPolicyDecider.m: Removed.
- * loader/mac/WebSubresourceLoader.m: Removed.
- * loader/mac/WebDataProtocol.mm: Added.
- * loader/mac/WebDocumentLoader.mm: Added.
- * loader/mac/WebFormState.mm: Added.
- * loader/mac/WebFrameLoader.mm: Added.
- * loader/mac/WebLoader.mm: Added.
- * loader/mac/WebMainResourceLoader.mm: Added.
- * loader/mac/WebNetscapePlugInStreamLoader.mm: Added.
- * loader/mac/WebPolicyDecider.mm: Added.
- * loader/mac/WebSubresourceLoader.mm: Added.
- 2006-10-10 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Mitz.
- - fixed REGRESSION (r16960): crash on navigating to site
- http://www.zoominfo.com/Search/CompanyDetail.aspx?CompanyID=62948057&cs=QGDwILZIE
-
- * loader/mac/WebFrameLoader.m:
- (-[WebFrameLoader continueLoadRequestAfterNewWindowPolicy:frameName:formState:]):
- Add back a mistakenly removed retain.
- 2006-10-10 Maciej Stachowiak <mjs@apple.com>
- - fixed release build
- * WebCore.xcodeproj/project.pbxproj:
- 2006-10-10 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Eric.
- - moved a big honkin' pile of code over from WebKit; made minimal needed changes to compile
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * loader/mac/LoaderNSURLExtras.m: Added.
- * loader/mac/WebDataProtocol.m: Added.
- * loader/mac/WebDocumentLoader.m: Added.
- * loader/mac/WebFormDataStream.m: Added.
- * loader/mac/WebFrameLoader.m: Added.
- * loader/mac/WebLoader.m: Added.
- (-[NSURLProtocol didReceiveResponse:]):
- (-[NSURLProtocol didReceiveData:lengthReceived:allAtOnce:]):
- * loader/mac/WebMainResourceLoader.m: Added.
- (-[WebMainResourceLoader didReceiveResponse:]):
- * loader/mac/WebPolicyDecider.m: Added.
- * loader/mac/WebSubresourceLoader.h: Added.
- * loader/mac/WebSubresourceLoader.m: Added.
- 2006-10-10 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver (sort of?)
- - WebCore part of moving down NSURL extras
- * WebCore.exp:
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- 2006-10-09 Rob Buis <buis@kde.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg animation classes.
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- (WebCore::SVGAnimateColorElement::handleTimerEvent):
- * ksvg2/svg/SVGAnimateElement.cpp:
- (WebCore::SVGAnimateElement::SVGAnimateElement):
- (WebCore::SVGAnimateElement::handleTimerEvent):
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
- (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::parseTransformValue):
- (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
- (WebCore::SVGAnimateTransformElement::initialMatrix):
- (WebCore::SVGAnimateTransformElement::transformMatrix):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedPathData.cpp:
- * ksvg2/svg/SVGAnimatedPathData.h:
- * ksvg2/svg/SVGAnimatedPoints.cpp:
- * ksvg2/svg/SVGAnimatedPoints.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- (WebCore::SVGAnimationElement::targetElement):
- 2006-10-09 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Oliver.
- - added isMainFrame and frameLoader to WebCoreFrameBridge for ease of future code motion
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge isMainFrame]):
- 2006-10-09 Adam Roben <aroben@apple.com>
- Backing out accidental commit.
- * page/Frame.cpp:
- (WebCore::Frame::finishedParsing):
- 2006-10-09 Adam Roben <aroben@apple.com>
- Reviewed by Darin.
- Add ASSERTs to RefPtr to make sure we don't ref within a destructor, as
- this could cause recursive calls to the destructor. RefPtr now also
- inherits from Noncopyable.
- * dom/NodeFilter.h:
- * dom/Traversal.h:
- * page/DOMWindow.h:
- * page/Frame.cpp:
- (WebCore::Frame::finishedParsing):
- * page/Frame.h:
- * page/Plugin.h:
- * platform/FontFallbackList.h:
- * platform/Icon.h:
- * platform/Shared.h:
- (WebCore::Shared::Shared):
- (WebCore::Shared::ref):
- (WebCore::Shared::deref):
- (WebCore::Shared::hasOneRef):
- (WebCore::Shared::refCount):
- * platform/StringImpl.h:
- 2006-10-09 Oliver Hunt <ohunt@apple.com>
- Reviewed by Anders.
- Correcting ifdef's
- * html/CanvasGradient.cpp:
- (WebCore::CanvasGradient::CanvasGradient):
- (WebCore::CanvasGradient::~CanvasGradient):
- (WebCore::CanvasGradient::addColorStop):
- * html/CanvasGradient.h:
- * html/CanvasPattern.cpp:
- (WebCore::CanvasPattern::CanvasPattern):
- (WebCore::CanvasPattern::~CanvasPattern):
- * html/CanvasPattern.h:
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::fill):
- (WebCore::CanvasRenderingContext2D::stroke):
- (WebCore::CanvasRenderingContext2D::fillRect):
- (WebCore::CanvasRenderingContext2D::setShadow):
- (WebCore::CanvasRenderingContext2D::applyShadow):
- (WebCore::CanvasRenderingContext2D::drawImage):
- (WebCore::CanvasRenderingContext2D::createPattern):
- (WebCore::CanvasRenderingContext2D::applyStrokePattern):
- (WebCore::CanvasRenderingContext2D::applyFillPattern):
- * html/CanvasRenderingContext2D.h:
- * html/CanvasStyle.cpp:
- (WebCore::CanvasStyle::applyStrokeColor):
- (WebCore::CanvasStyle::applyFillColor):
- * html/HTMLCanvasElement.cpp:
- (WebCore::HTMLCanvasElement::paint):
- (WebCore::HTMLCanvasElement::createDrawingContext):
- * html/HTMLCanvasElement.h:
- 2006-10-09 Adam Roben <aroben@apple.com>
- Reviewed by Maciej.
- Fix a possible recursive destructor call.
- * page/Frame.cpp:
- (WebCore::Frame::~Frame): Add a FIXME about cleaning up the destructor.
- (WebCore::Frame::finishedParsing): Don't create a protector RefPtr if
- we're already being destroyed.
- 2006-10-09 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11234
- Assorted Objective-C bindings changes
- - Auto-generate DOMSVGPathSegArcAbs, DOMSVGPathSegArcRel, DOMSVGPathSegClosePath,
- DOMSVGPathSegCurvetoCubicAbs, DOMSVGPathSegCurvetoCubicRel,
- DOMSVGPathSegCurvetoCubicSmoothAbs, DOMSVGPathSegCurvetoCubicSmoothRel,
- DOMSVGPathSegCurvetoQuadraticAbs, DOMSVGPathSegCurvetoQuadraticRel,
- DOMSVGPathSegCurvetoQuadraticSmoothAbs, DOMSVGPathSegCurvetoQuadraticSmoothRel,
- DOMSVGPathSegLinetoAbs, DOMSVGPathSegLinetoHorizontalAbs,
- DOMSVGPathSegLinetoHorizontalRel, DOMSVGPathSegLinetoRel,
- DOMSVGPathSegLinetoVerticalAbs, DOMSVGPathSegLinetoVerticalRel,
- DOMSVGPathSegMovetoAbs, DOMSVGPathSegMovetoRel and DOMSVGSVGElement.
- - Auto-generate absoluteImageURL method for DOMHTMLInputElement and
- DOMHTMLObjectElement.
- - Auto-generate the internal methods for classes with ivars (notably
- DOMNodeIterator and DOMTreeWalker)
- - Put more methods in the WebCore namespace and factor out the
- displayString method into DOMInternal.h as done by Darin in his
- patch for http://bugs.webkit.org/show_bug.cgi?id=11219.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMNode _initWithNode:WebCore::]):
- (+[DOMNode _nodeWith:WebCore::]):
- (-[DOMNode addEventListener:listener:useCapture:]):
- (-[DOMNode removeEventListener:listener:useCapture:]):
- (-[DOMNode dispatchEvent:]):
- (-[DOMElement _imageTIFFRepresentation]):
- (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
- (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
- (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
- (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
- * bindings/objc/DOMCSS.mm:
- (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
- (+[DOMStyleSheet _styleSheetWith:WebCore::]):
- (-[DOMCSSRule _initWithCSSRule:WebCore::]):
- (+[DOMCSSRule _CSSRuleWith:WebCore::]):
- (-[DOMCSSValue _initWithCSSValue:WebCore::]):
- (+[DOMCSSValue _CSSValueWith:WebCore::]):
- * bindings/objc/DOMEvents.mm:
- (-[DOMEvent _initWithEvent:WebCore::]):
- (+[DOMEvent _eventWith:WebCore::]):
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
- * bindings/objc/DOMInternal.h:
- (-[DOMNodeFilter WebCore::]):
- * bindings/objc/DOMInternal.mm:
- (-[WebScriptObject _init]):
- (-[WebScriptObject _initializeScriptDOMNodeImp]):
- (WebCore::displayString):
- * bindings/objc/DOMObject.mm:
- (-[DOMObject dealloc]):
- (-[DOMObject finalize]):
- * bindings/objc/DOMRGBColor.mm:
- (-[DOMRGBColor dealloc]):
- (-[DOMRGBColor finalize]):
- (-[DOMRGBColor color]):
- (-[DOMRGBColor _initWithRGB:WebCore::]):
- (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
- * bindings/objc/DOMSVG.h:
- * bindings/objc/DOMSVGPathSegInternal.h: Added.
- * bindings/objc/DOMSVGPathSegInternal.mm: Added.
- (-[DOMSVGPathSeg WebCore::]):
- (-[DOMSVGPathSeg _initWithSVGPathSeg:WebCore::]):
- (+[DOMSVGPathSeg _SVGPathSegWith:WebCore::]):
- * bindings/objc/DOMXPath.mm:
- (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
- (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/NodeIterator.idl:
- * dom/TreeWalker.idl:
- * html/HTMLInputElement.idl:
- * html/HTMLObjectElement.idl:
- * ksvg2/svg/SVGDocument.idl:
- * ksvg2/svg/SVGElement.idl:
- * ksvg2/svg/SVGPathSeg.idl:
- * ksvg2/svg/SVGPathSegArcAbs.idl:
- * ksvg2/svg/SVGPathSegArcRel.idl:
- * ksvg2/svg/SVGPathSegClosePath.idl:
- * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl:
- * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl:
- * ksvg2/svg/SVGPathSegLinetoAbs.idl:
- * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl:
- * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl:
- * ksvg2/svg/SVGPathSegLinetoRel.idl:
- * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl:
- * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl:
- * ksvg2/svg/SVGPathSegMovetoAbs.idl:
- * ksvg2/svg/SVGPathSegMovetoRel.idl:
- 2006-10-09 Peter Kasting <pkasting@google.com>
- Unreviewed build fix.
- Fix windows build bustage.
- * platform/win/TemporaryLinkStubs.cpp:
- 2006-10-09 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Geoff.
- Fix memory leaks discovered via valgrind. Gdk build fixes.
- * Projects/gdk/webcore-gdk.bkl:
- * make-generated-sources.sh:
- * platform/cairo/ImageCairo.cpp:
- (WebCore::Image::draw):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::handleGdkEvent):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/PlatformScrollBar.h:
- (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
- (WebCore::PlatformScrollbar::verticalScrollbarWidth):
- 2006-10-09 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Beth.
- Fix LayoutTests/fast/css/case-transform.html with Qt - the last crashing layout test.
- * platform/qt/GlyphMapQt.cpp: Handle UTF-16 characters properly
- (WebCore::GlyphMap::fillPage):
- 2006-10-09 Nikolas Zimmermann <zimmermann@kde.org>
- Unreviewed build fix.
- Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::createJavaAppletWidget):
- * platform/qt/FrameQt.h:
- * platform/qt/TemporaryLinkStubs.cpp:
- 2006-10-09 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Tiny changes to help reorganize WebFrameLoader code in WebKit
- * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
- 2006-10-09 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
- already called frome ~FrameMac.
- * page/Frame.cpp:
- (WebCore::Frame::~Frame):
- 2006-10-09 Anders Carlsson <acarlsson@apple.com>
- * bridge/win/FrameWin.h:
- Add function declaration.
-
- 2006-10-09 Anders Carlsson <acarlsson@apple.com>
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::createJavaAppletWidget):
- Try fixing the Win32 build.
- 2006-10-09 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adam.
- Move applet widget creation to Frame and get rid of JavaAppletWidget.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/JavaAppletWidget.h: Removed.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::createJavaAppletWidget):
- * bridge/mac/JavaAppletWidget.mm: Removed.
- * page/Frame.h:
- * rendering/RenderApplet.cpp:
- (WebCore::RenderApplet::createWidgetIfNecessary):
- 2006-10-09 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=11220
- Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
- Subversion does not support resource forks and HFS metadata, so
- the resources for this test need to be on a disk image.
- * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
- * manual-tests/resources/plain-text-paste.dmg: Added.
- * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
- * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
- * manual-tests/resources/plain-text-paste/._4.txt: Removed.
- * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
- * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
- * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
- * manual-tests/resources/plain-text-paste/3.gif: Removed.
- * manual-tests/resources/plain-text-paste/4.txt: Removed.
- * manual-tests/resources/plain-text-paste/5.webloc: Removed.
- 2006-10-09 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in filter classes.
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
- (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (WebCore::SVGFEBlendElement::SVGFEBlendElement):
- (WebCore::SVGFEBlendElement::parseMappedAttribute):
- (WebCore::SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
- (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
- (WebCore::SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (WebCore::SVGFECompositeElement::parseMappedAttribute):
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (WebCore::SVGFEDisplacementMapElement::stringToChannel):
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (WebCore::SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEFuncAElement.cpp:
- (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
- * ksvg2/svg/SVGFEFuncBElement.cpp:
- (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
- * ksvg2/svg/SVGFEFuncGElement.cpp:
- (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
- * ksvg2/svg/SVGFEFuncRElement.cpp:
- (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
- (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
- (WebCore::SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFELightElement.cpp:
- (WebCore::SVGFELightElement::SVGFELightElement):
- (WebCore::SVGFELightElement::parseMappedAttribute):
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (WebCore::SVGFEMergeElement::SVGFEMergeElement):
- 2006-10-09 Rob Buis <buis@kde.org>
- Reviewed by olliej.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in SVGPath* classes.
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::SVGPathElement):
- (WebCore::SVGPathElement::getPointAtLength):
- (WebCore::SVGPathElement::createSVGPathSegClosePath):
- (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
- (WebCore::SVGPathElement::createSVGPathSegArcAbs):
- (WebCore::SVGPathElement::createSVGPathSegArcRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
- (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
- (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
- (WebCore::SVGPathElement::svgMoveTo):
- (WebCore::SVGPathElement::svgLineTo):
- (WebCore::SVGPathElement::svgLineToHorizontal):
- (WebCore::SVGPathElement::svgLineToVertical):
- (WebCore::SVGPathElement::svgCurveToCubic):
- (WebCore::SVGPathElement::svgCurveToCubicSmooth):
- (WebCore::SVGPathElement::svgCurveToQuadratic):
- (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
- (WebCore::SVGPathElement::svgArcTo):
- (WebCore::SVGPathElement::parseMappedAttribute):
- (WebCore::SVGPathElement::pathSegList):
- (WebCore::SVGPathElement::normalizedPathSegList):
- (WebCore::SVGPathElement::animatedPathSegList):
- (WebCore::SVGPathElement::animatedNormalizedPathSegList):
- (WebCore::SVGPathElement::toPathData):
- * ksvg2/svg/SVGPathElement.h:
- (WebCore::SVGPathElement::rendererIsNeeded):
- * ksvg2/svg/SVGPathSeg.h:
- * ksvg2/svg/SVGPathSegArc.cpp:
- 2006-10-09 Rob Buis <buis@kde.org>
- Reviewed by aroben.
- http://bugs.webkit.org/show_bug.cgi?id=11217
- Cleanup svg coding style
- Cleanup coding style in svg shape classes.
- * ksvg2/svg/SVGCircleElement.cpp:
- (WebCore::SVGCircleElement::SVGCircleElement):
- (WebCore::SVGCircleElement::parseMappedAttribute):
- (WebCore::SVGCircleElement::pushAttributeContext):
- * ksvg2/svg/SVGCircleElement.h:
- (WebCore::SVGCircleElement::rendererIsNeeded):
- * ksvg2/svg/SVGEllipseElement.cpp:
- * ksvg2/svg/SVGEllipseElement.h:
- (WebCore::SVGEllipseElement::rendererIsNeeded):
- * ksvg2/svg/SVGLineElement.cpp:
- (WebCore::SVGLineElement::parseMappedAttribute):
- (WebCore::SVGLineElement::pushAttributeContext):
- * ksvg2/svg/SVGLineElement.h:
- (WebCore::SVGLineElement::rendererIsNeeded):
- * ksvg2/svg/SVGPolyElement.cpp:
- (WebCore::SVGPolyElement::SVGPolyElement):
- (WebCore::SVGPolyElement::points):
- (WebCore::SVGPolyElement::animatedPoints):
- (WebCore::SVGPolyElement::parseMappedAttribute):
- (WebCore::SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGPolyElement.h:
- (WebCore::SVGPolyElement::rendererIsNeeded):
- * ksvg2/svg/SVGPolygonElement.cpp:
- (WebCore::SVGPolygonElement::SVGPolygonElement):
- (WebCore::SVGPolygonElement::toPathData):
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.cpp:
- (WebCore::SVGPolylineElement::SVGPolylineElement):
- (WebCore::SVGPolylineElement::toPathData):
- * ksvg2/svg/SVGPolylineElement.h:
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::parseMappedAttribute):
- (WebCore::SVGRectElement::pushAttributeContext):
- * ksvg2/svg/SVGRectElement.h:
- (WebCore::SVGRectElement::rendererIsNeeded):
- 2006-10-08 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - added a bit more WebCoreSystemInterface
- wkGetNSURLResponseCalculatedExpiration
- wkGetNSURLResponseLastModifiedDate
- wkGetNSURLResponseMustRevalidate
- * WebCore.exp: Added the new symbols.
- * platform/mac/WebCoreSystemInterface.h: Ditto.
- * platform/mac/WebCoreSystemInterface.mm: Ditto.
- - quiet down the code generation script
- * bindings/scripts/CodeGenerator.pm:
- 2006-10-08 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - more code laundering - add wkSupportsMultipartXMixedReplace
- * WebCore.exp:
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Darin and Oliver.
- Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
- * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
- (WebCore::GraphicsContext::drawConvexPolygon):
- 2006-10-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * page/Frame.cpp:
- (WebCore::Frame::submitForm):
- No need to use latin1() here.
- 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Darin.
- Kill warnings when generating IDL files on Qt/Linux, as the
- SOURCE_ROOT environment variable is not defined (and not needed) for us.
- * bindings/scripts/CodeGenerator.pm:
- 2006-10-08 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - split didNotOpenURL: into general and page-cache-specific parts
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge didNotOpenURL:]):
- (-[WebCoreFrameBridge invalidatePageCache:]):
- 2006-10-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * loader/loader.cpp:
- Remove DeprecatedStringList.h include.
-
- * page/Frame.cpp:
- (WebCore::Frame::submitForm):
- Don't remove "attach" from mailto URLs, we don't do it anywhere else.
- 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
- Yet another round of Objective-C SVG DOM bindings auto-generation
- - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
- DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
- DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
- DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
- DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
- DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
- DOMSVGZoomAndPan and DOMSVGZoomEvent.
- - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
- using the new [ConvertFromString] property.
- - Add forward declarations for NS* types to auto-generated classes.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMHTMLAppletElement.mm: Removed.
- * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMSVG.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * html/HTMLAppletElement.idl:
- * html/HTMLEmbedElement.idl:
- * ksvg2/svg/SVGPatternElement.idl:
- * ksvg2/svg/SVGPolygonElement.idl:
- * ksvg2/svg/SVGPolylineElement.idl:
- * ksvg2/svg/SVGRadialGradientElement.idl:
- * ksvg2/svg/SVGRenderingIntent.idl:
- * ksvg2/svg/SVGScriptElement.idl:
- * ksvg2/svg/SVGSetElement.idl:
- * ksvg2/svg/SVGStopElement.idl:
- * ksvg2/svg/SVGSwitchElement.idl:
- * ksvg2/svg/SVGSymbolElement.idl:
- * ksvg2/svg/SVGTRefElement.idl:
- * ksvg2/svg/SVGTSpanElement.idl:
- * ksvg2/svg/SVGTextContentElement.idl:
- * ksvg2/svg/SVGTextElement.idl:
- * ksvg2/svg/SVGTextPositioningElement.idl:
- * ksvg2/svg/SVGTitleElement.idl:
- * ksvg2/svg/SVGUseElement.idl:
- * ksvg2/svg/SVGViewElement.idl:
- * ksvg2/svg/SVGZoomEvent.idl:
- 2006-10-07 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
-
- 2006-10-07 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Convert a bunch of RefPtr<StringImpl> to String.
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::didTellBridgeAboutLoad):
- (WebCore::FrameMac::haveToldBridgeAboutLoad):
- * dom/BeforeUnloadEvent.cpp:
- (WebCore::BeforeUnloadEvent::storeResult):
- * dom/BeforeUnloadEvent.h:
- (WebCore::BeforeUnloadEvent::result):
- * dom/Document.cpp:
- (WebCore::Document::createEntityReference):
- * dom/Entity.cpp:
- (WebCore::Entity::Entity):
- (WebCore::Entity::nodeName):
- (WebCore::Entity::toString):
- * dom/Entity.h:
- (WebCore::Entity::publicId):
- (WebCore::Entity::systemId):
- (WebCore::Entity::notationName):
- * dom/EntityReference.cpp:
- (WebCore::EntityReference::EntityReference):
- (WebCore::EntityReference::nodeName):
- (WebCore::EntityReference::cloneNode):
- (WebCore::EntityReference::toString):
- * dom/EntityReference.h:
- * dom/KeyboardEvent.cpp:
- (WebCore::KeyboardEvent::KeyboardEvent):
- (WebCore::KeyboardEvent::initKeyboardEvent):
- * dom/KeyboardEvent.h:
- (WebCore::KeyboardEvent::keyIdentifier):
- * dom/MutationEvent.cpp:
- (WebCore::MutationEvent::MutationEvent):
- (WebCore::MutationEvent::initMutationEvent):
- * dom/MutationEvent.h:
- (WebCore::MutationEvent::prevValue):
- (WebCore::MutationEvent::newValue):
- (WebCore::MutationEvent::attrName):
- * dom/Notation.cpp:
- (WebCore::Notation::Notation):
- (WebCore::Notation::nodeName):
- * dom/Notation.h:
- (WebCore::Notation::publicId):
- (WebCore::Notation::systemId):
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::ProcessingInstruction):
- (WebCore::ProcessingInstruction::setData):
- (WebCore::ProcessingInstruction::nodeName):
- (WebCore::ProcessingInstruction::nodeValue):
- (WebCore::ProcessingInstruction::cloneNode):
- (WebCore::ProcessingInstruction::checkStyleSheet):
- (WebCore::ProcessingInstruction::toString):
- * dom/ProcessingInstruction.h:
- (WebCore::ProcessingInstruction::target):
- (WebCore::ProcessingInstruction::data):
- (WebCore::ProcessingInstruction::localHref):
- 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
- 10 more SVG Objective-C auto-generated bindings
- - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
- DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
- DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
- DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
- - Auto-generate the text method for DOMRange.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMRGBColor.mm:
- * bindings/objc/DOMSVG.h:
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/Range.idl:
- * ksvg2/svg/SVGFilterElement.cpp:
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterElement.idl:
- * ksvg2/svg/SVGForeignObjectElement.idl:
- * ksvg2/svg/SVGGElement.idl:
- * ksvg2/svg/SVGGradientElement.idl:
- * ksvg2/svg/SVGImageElement.idl:
- * ksvg2/svg/SVGLineElement.idl:
- * ksvg2/svg/SVGLinearGradientElement.idl:
- * ksvg2/svg/SVGMarkerElement.idl:
- * ksvg2/svg/SVGMaskElement.idl:
- * ksvg2/svg/SVGPaint.idl:
- 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
- Auto-generate a few more Objective-C DOM interfaces
- - Fully auto-generate DOMAbstractView and DOMRange.
- - Auto-generate just the interface for DOMRGBColor.
- - Add DOMRanges.h as the new top level file for Ranges
- module.
- - Add DOMRanges.h and DOMXPath.h to DOM.mm
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.h:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMAbstractView.h: Removed.
- * bindings/objc/DOMAbstractView.mm: Removed.
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMRGBColor.h: Removed.
- * bindings/objc/DOMRGBColor.mm:
- * bindings/objc/DOMRange.h: Removed.
- * bindings/objc/DOMRanges.h: Added.
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/RGBColor.idl:
- * dom/Range.idl:
- * page/AbstractView.idl: Added.
- 2006-10-07 Andrew Wellington <proton@wiretapped.net>
- Reviewed by Eric.
- Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
- http://bugs.webkit.org/show_bug.cgi?id=10837
- Return null when there is no frame. This matches Firefox.
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::getValueProperty):
- 2006-10-07 David Hyatt <hyatt@apple.com>
- Implement scroll corner painting (a white rect fill) for overflow areas to cover up
- scrollbar joins properly.
- Refactor painting of scrollbars and resizers into common functions. Eliminate the
- extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
- Reviewed by mitz
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- * platform/mac/PlatformScrollBar.h:
- (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
- (WebCore::PlatformScrollbar::verticalScrollbarWidth):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer):
- (WebCore::RenderLayer::~RenderLayer):
- (WebCore::RenderLayer::updateLayerPositions):
- (WebCore::scrollCornerRect):
- (WebCore::RenderLayer::positionOverflowControls):
- (WebCore::RenderLayer::paintOverflowControls):
- (WebCore::RenderLayer::isPointInResizeControl):
- (WebCore::RenderLayer::paintLayer):
- * rendering/RenderLayer.h:
- 2006-10-07 Mark Rowe <bdash@webkit.org>
- Reviewed by Mitz.
- Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
- matching recent ResourceLoader changes.
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::openURL):
- (WebCore::FrameGdk::urlSelected):
- * platform/gdk/PlatformScrollBar.h:
- * platform/gdk/ResourceLoaderCurl.cpp:
- (WebCore::ResourceLoader::start):
- * platform/gdk/ScrollViewGdk.cpp:
- (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
- (WebCore::ScrollView::resizeContents):
- (WebCore::ScrollView::scrollBy):
- (WebCore::ScrollView::hScrollbarMode):
- (WebCore::ScrollView::vScrollbarMode):
- (WebCore::ScrollView::suppressScrollbars):
- (WebCore::ScrollView::setHScrollbarMode):
- (WebCore::ScrollView::setVScrollbarMode):
- (WebCore::ScrollView::setScrollbarsMode):
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameView::passMousePressEventToScrollbar):
- (Widget::removeFromParent):
- (ScrollView::addChild):
- (ScrollView::updateScrollbars):
- (ScrollView::scrollbarUnderMouse):
- (PlatformScrollbar::PlatformScrollbar):
- (PlatformScrollbar::~PlatformScrollbar):
- (PlatformScrollbar::width):
- (PlatformScrollbar::height):
- (PlatformScrollbar::setEnabled):
- (PlatformScrollbar::paint):
- (PlatformScrollbar::updateThumbPosition):
- (PlatformScrollbar::updateThumbProportion):
- (PlatformScrollbar::setRect):
- (Scrollbar::Scrollbar):
- (Scrollbar::setSteps):
- (Scrollbar::scroll):
- (Scrollbar::setValue):
- (Scrollbar::setProportion):
- 2006-10-06 Dave Hyatt <hyatt@apple.com>
- Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
- * page/FrameView.cpp:
- (WebCore::FrameView::windowClipRect):
- * page/FrameView.h:
- * platform/ScrollView.h:
- * platform/Widget.cpp:
- (WebCore::Widget::windowClipRect):
- * platform/Widget.h:
- (WebCore::Widget::geometryChanged):
- (WebCore::Widget::handleMouseMoveEvent):
- (WebCore::Widget::handleMouseReleaseEvent):
- * platform/mac/ScrollViewMac.mm:
- (WebCore::ScrollView::addChild):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::documentClipRect):
- * rendering/RenderLayer.h:
- 2006-10-06 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Adam.
- Add another method we'll need for scrollbar dodging
- * platform/ScrollView.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (ScrollView::resizerOverlapsContent):
- 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
- Auto-generate the interfaces even for Objective-C DOM
- bindings that need custom implementations
- - Fully auto-generate DOMEventTarget, DOMNodeFilter and
- DOMHTMLOptionElement.
- - Auto-generate just the interface for DOMHTMLAppletElement,
- DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
- using the new IDL property ObjCCustomImplementation.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMEventTarget.h: Removed.
- * bindings/objc/DOMHTMLAppletElement.h: Removed.
- * bindings/objc/DOMHTMLEmbedElement.h: Removed.
- * bindings/objc/DOMHTMLOptionElement.h: Removed.
- * bindings/objc/DOMHTMLOptionElement.mm: Removed.
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMNodeFilter.h: Removed.
- * bindings/objc/DOMSVGNumber.h: Removed.
- * bindings/objc/DOMSVGPoint.h: Removed.
- * bindings/objc/DOMSVGPoint.mm:
- (-[DOMSVGPoint matrixTransform:]):
- * bindings/objc/DOMSVGRect.h: Removed.
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/EventTarget.idl:
- * html/HTMLAppletElement.idl:
- * html/HTMLEmbedElement.idl:
- * html/HTMLOptionElement.idl:
- * ksvg2/svg/SVGNumber.idl:
- * ksvg2/svg/SVGPoint.idl:
- * ksvg2/svg/SVGRect.idl:
- 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Make Qt/Linux compile again completly.
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::removeFromParent):
- 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
- * platform/qt/PlatformScrollBar.h:
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::hScrollbarMode):
- (WebCore::ScrollView::vScrollbarMode):
- (WebCore::ScrollView::suppressScrollbars):
- (WebCore::ScrollView::setHScrollbarMode):
- (WebCore::ScrollView::setVScrollbarMode):
- (WebCore::ScrollView::setScrollbarsMode):
- (WebCore::ScrollView::scrollbarUnderMouse):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::Scrollbar::Scrollbar):
- (WebCore::Scrollbar::setSteps):
- (WebCore::Scrollbar::scroll):
- (WebCore::Scrollbar::setValue):
- (WebCore::Scrollbar::setProportion):
- (WebCore::PlatformScrollbar::PlatformScrollbar):
- (WebCore::PlatformScrollbar::~PlatformScrollbar):
- (WebCore::PlatformScrollbar::width):
- (WebCore::PlatformScrollbar::height):
- (WebCore::PlatformScrollbar::setEnabled):
- (WebCore::PlatformScrollbar::paint):
- (WebCore::PlatformScrollbar::updateThumbPosition):
- (WebCore::PlatformScrollbar::updateThumbProportion):
- (WebCore::PlatformScrollbar::setRect):
- (FrameView::passMousePressEventToScrollbar):
- 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
- Another round of Objective-C SVG DOM bindings auto-generation
- - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
- DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
- DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
- DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
- DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
- DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
- DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
- DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
- DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
- DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
- DOMSVGFETileElement, DOMSVGFETurbulenceElement,
- DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
- - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
- and DOMSVGRect.
- - IDL clean up.
- - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
- in it's macro declaration and definition.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCSS.mm:
- (+[DOMCSSValue _CSSValueWith:WebCore::]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMSVG.h:
- * bindings/objc/DOMSVGNumber.h: Added.
- * bindings/objc/DOMSVGNumber.mm: Added.
- (-[DOMSVGNumber dealloc]):
- (-[DOMSVGNumber finalize]):
- (-[DOMSVGNumber value]):
- (-[DOMSVGNumber setValue:]):
- (-[DOMSVGNumber _SVGNumber]):
- (-[DOMSVGNumber _initWithFloat:]):
- (+[DOMSVGNumber _SVGNumberWith:]):
- * bindings/objc/DOMSVGPoint.h: Added.
- * bindings/objc/DOMSVGPoint.mm: Added.
- (-[DOMSVGPoint dealloc]):
- (-[DOMSVGPoint finalize]):
- (-[DOMSVGPoint x]):
- (-[DOMSVGPoint setX:]):
- (-[DOMSVGPoint y]):
- (-[DOMSVGPoint setY:]):
- (-[DOMSVGPoint WebCore::]):
- (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
- (+[DOMSVGPoint _SVGPointWith:WebCore::]):
- * bindings/objc/DOMSVGRect.h: Added.
- * bindings/objc/DOMSVGRect.mm: Added.
- (-[DOMSVGRect dealloc]):
- (-[DOMSVGRect finalize]):
- (-[DOMSVGRect x]):
- (-[DOMSVGRect setX:]):
- (-[DOMSVGRect y]):
- (-[DOMSVGRect setY:]):
- (-[DOMSVGRect width]):
- (-[DOMSVGRect setWidth:]):
- (-[DOMSVGRect height]):
- (-[DOMSVGRect setHeight:]):
- (-[DOMSVGRect WebCore::]):
- (-[DOMSVGRect _initWithFloatRect:WebCore::]):
- (+[DOMSVGRect _SVGRectWith:WebCore::]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- * ksvg2/svg/SVGAnimatedNumberList.idl:
- * ksvg2/svg/SVGAnimatedRect.idl:
- * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
- * ksvg2/svg/SVGCursorElement.idl:
- * ksvg2/svg/SVGFEBlendElement.idl:
- * ksvg2/svg/SVGFEColorMatrixElement.idl:
- * ksvg2/svg/SVGFEComponentTransferElement.idl:
- * ksvg2/svg/SVGFECompositeElement.idl:
- * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
- * ksvg2/svg/SVGFEDisplacementMapElement.idl:
- * ksvg2/svg/SVGFEDistantLightElement.idl:
- * ksvg2/svg/SVGFEFloodElement.idl:
- * ksvg2/svg/SVGFEFuncAElement.idl:
- * ksvg2/svg/SVGFEFuncBElement.idl:
- * ksvg2/svg/SVGFEFuncGElement.idl:
- * ksvg2/svg/SVGFEFuncRElement.idl:
- * ksvg2/svg/SVGFEGaussianBlurElement.idl:
- * ksvg2/svg/SVGFEImageElement.idl:
- * ksvg2/svg/SVGFEMergeElement.idl:
- * ksvg2/svg/SVGFEMergeNodeElement.idl:
- * ksvg2/svg/SVGFEOffsetElement.idl:
- * ksvg2/svg/SVGFEPointLightElement.idl:
- * ksvg2/svg/SVGFESpecularLightingElement.idl:
- * ksvg2/svg/SVGFESpotLightElement.idl:
- * ksvg2/svg/SVGFETileElement.idl:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.idl:
- * ksvg2/svg/SVGNumberList.idl:
- 2006-10-06 Adam Roben <aroben@apple.com>
- Backing out my previous change.
- * WebCore.xcodeproj/project.pbxproj:
- * page/FrameView.cpp:
- (WebCore::FrameView::adjustViewSize):
- 2006-10-06 Adam Roben <aroben@apple.com>
- Build fix.
- * WebCore.xcodeproj/project.pbxproj:
- * page/FrameView.cpp:
- (WebCore::FrameView::windowResizerRect):
- 2006-10-06 Adam Roben <aroben@apple.com>
- Reviewed by Maciej.
- More loader tweaks.
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ResourceLoader::newHTTPRequest):
- 2006-10-05 Steve Falkenburg <sfalken@apple.com>
- Reviewed by aroben.
- Stub out some methods that we'll be able to use to dodge a window resizer.
- * bridge/win/FrameWin.h:
- * page/Frame.h:
- (WebCore::Frame::windowResizerRect):
- * page/FrameView.h:
- * platform/ScrollView.h:
- (WebCore::ScrollView::windowResizerRect):
- * platform/Widget.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameView::windowResizerRect):
- (Widget::setParent):
- (Widget::parent):
- (FrameWin::windowResizerRect):
- 2006-10-05 Dave Hyatt <hyatt@apple.com>
- Stub out setFrameGeometry.
-
- * platform/ScrollView.h:
- 2006-10-05 Adele Peterson <adele@apple.com>
- Reverting autoscroll fix. I need to rework this a little.
- * page/Frame.cpp:
- (WebCore::Frame::handleAutoscroll):
- (WebCore::Frame::autoscrollTimerFired):
- (WebCore::Frame::stopAutoscrollTimer):
- * page/Frame.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::~RenderLayer):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::~RenderListBox):
- 2006-10-05 Alice <alice.liu@apple.com>
- Reviewed by Adam.
- Fixed <rdar://problem/4731778>
- * editing/CommandByName.cpp:
- (WebCore::Frame::Command::):
- was calling the wrong enabledFn for arrow selection and navigation
- 2006-10-05 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
- and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
- * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
- * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
- * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
- (WebCore::Frame::handleAutoscroll):
- (WebCore::Frame::autoscrollTimerFired):
- (WebCore::Frame::autoscrollRenderer):
- (WebCore::Frame::setAutoscrollRenderer):
- (WebCore::Frame::stopAutoscrollTimer):
- * page/Frame.h:
- 2006-10-05 Peter Kasting <pkasting@google.com>
- Reviewed by Eric.
- Fix win32 build bustage after ggaren's Scrollbar renaming changes.
- Properly include PlatformScrollBar.h in WbCore.vcproj.
- Clean up WidgetWin.cpp a bit.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/Widget.h:
- * platform/win/PlatformScrollBar.h:
- * platform/win/ScrollViewWin.cpp:
- (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
- (WebCore::ScrollView::resizeContents):
- (WebCore::ScrollView::scrollBy):
- (WebCore::ScrollView::hScrollbarMode):
- (WebCore::ScrollView::vScrollbarMode):
- (WebCore::ScrollView::suppressScrollbars):
- (WebCore::ScrollView::setHScrollbarMode):
- (WebCore::ScrollView::setVScrollbarMode):
- (WebCore::ScrollView::setScrollbarsMode):
- (WebCore::ScrollView::updateScrollbars):
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameView::passMousePressEventToScrollbar):
- (Widget::removeFromParent):
- (ScrollView::scrollbarUnderMouse):
- (PlatformScrollbar::PlatformScrollbar):
- (PlatformScrollbar::~PlatformScrollbar):
- (PlatformScrollbar::width):
- (PlatformScrollbar::height):
- (PlatformScrollbar::setEnabled):
- (PlatformScrollbar::paint):
- (PlatformScrollbar::updateThumbPosition):
- (PlatformScrollbar::updateThumbProportion):
- (PlatformScrollbar::setRect):
- (Scrollbar::Scrollbar):
- (Scrollbar::setSteps):
- (Scrollbar::scroll):
- (Scrollbar::setValue):
- (Scrollbar::setProportion):
- * platform/win/WidgetWin.cpp:
- (WebCore::WidgetPrivate::WidgetPrivate):
- (WebCore::Widget::Widget):
- (WebCore::Widget::setContainingWindow):
- (WebCore::Widget::containingWindow):
- 2006-10-05 Geoffrey Garen <ggaren@apple.com>
- build fix.
-
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::createFrame):
- * bridge/mac/FrameViewMac.mm:
- (WebCore::FrameView::passMousePressEventToScrollbar):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge installInFrame:]):
- * bridge/mac/WebCoreFrameView.h:
- * platform/ScrollBar.cpp:
- * platform/Widget.h:
- * platform/mac/PlatformScrollBar.h:
- * platform/mac/PlatformScrollBarMac.mm:
- (NSControlSizeForScrollBarControlSize):
- (-[WebCoreScrollBar initWithPlatformScrollbar:]):
- (-[WebCoreScrollBar detachPlatformScrollbar]):
- (-[WebCoreScrollBar scroll:]):
- (-[WebCoreScrollBar widget]):
- (WebCore::PlatformScrollbar::PlatformScrollbar):
- (WebCore::PlatformScrollbar::~PlatformScrollbar):
- (WebCore::PlatformScrollbar::updateThumbPosition):
- (WebCore::PlatformScrollbar::updateThumbProportion):
- (WebCore::PlatformScrollbar::scrollbarHit):
- (WebCore::PlatformScrollbar::width):
- (WebCore::PlatformScrollbar::height):
- (WebCore::PlatformScrollbar::setRect):
- (WebCore::PlatformScrollbar::setEnabled):
- (WebCore::PlatformScrollbar::paint):
- * platform/mac/ScrollViewMac.mm:
- (WebCore::ScrollView::setVScrollbarMode):
- (WebCore::ScrollView::setHScrollbarMode):
- (WebCore::ScrollView::setScrollbarsMode):
- (WebCore::ScrollView::vScrollbarMode):
- (WebCore::ScrollView::hScrollbarMode):
- (WebCore::ScrollView::suppressScrollbars):
- (WebCore::ScrollView::scrollbarUnderMouse):
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::removeFromParent):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::destroyScrollbar):
- 2006-10-05 Geoffrey Garen <ggaren@apple.com>
- build fix.
-
- * platform/Widget.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::destroyScrollbar):
- 2006-10-06 Mitz Pettel <mitz@webkit.org>
- http://bugs.webkit.org/show_bug.cgi?id=8276
- Fix broken manual test added back in r13990.
- Add resource forks for test resources.
- * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
- * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
- * manual-tests/resources/plain-text-paste/._4.txt: Added.
- * manual-tests/resources/plain-text-paste/._5.webloc: Added.
- 2006-10-05 David Hyatt <hyatt@apple.com>
- Rename addClip to clip.
- Reviewed by darin
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::clip):
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::savePlatformState):
- (WebCore::GraphicsContext::restorePlatformState):
- (WebCore::GraphicsContext::clip):
- (WebCore::GraphicsContext::addRoundedRectClip):
- (WebCore::GraphicsContext::addInnerRoundedRectClip):
- (WebCore::GraphicsContext::scale):
- (WebCore::GraphicsContext::rotate):
- (WebCore::GraphicsContext::translate):
- (WebCore::GraphicsContext::concatCTM):
- * platform/cg/GraphicsContextPlatformPrivate.h:
- (WebCore::GraphicsContextPlatformPrivate::save):
- (WebCore::GraphicsContextPlatformPrivate::restore):
- (WebCore::GraphicsContextPlatformPrivate::clip):
- (WebCore::GraphicsContextPlatformPrivate::scale):
- (WebCore::GraphicsContextPlatformPrivate::rotate):
- (WebCore::GraphicsContextPlatformPrivate::translate):
- (WebCore::GraphicsContextPlatformPrivate::concatCTM):
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::clip):
- (WebCore::GraphicsContext::addInnerRoundedRectClip):
- (WebCore::GraphicsContext::addRoundedRectClip):
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paintBackground):
- (WebCore::InlineFlowBox::paintBackgroundAndBorder):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended):
- * rendering/RenderButton.cpp:
- (WebCore::RenderButton::paintObject):
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::paintObject):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::beginTransparencyLayers):
- (WebCore::setClip):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::paintObject):
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::paintObject):
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::paintBackgroundsBehindCell):
- 2006-10-05 Mitz Pettel <mitz@webkit.org>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=10386
- Delete RenderImageButton.* and remove references from .vcproj and .bkl files
- * CMakeLists.txt:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCoreSources.bkl:
- * rendering/RenderImageButton.cpp: Removed.
- * rendering/RenderImageButton.h: Removed.
- 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=11067
- manual-tests/scrollbar-hittest2.html is invalid
- * manual-tests/scrollbar-hittest2.html:
- 2006-10-05 David Carson <dacarson@gmail.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11152
- Adjust the tokenizer chunk size to be smaller for
- mobile devices, and also decrease the yield timer
- for the tokenizer so that it can resume earlier.
- * html/HTMLTokenizer.cpp:
- * config.h:
- 2006-10-05 Adam Roben <aroben@apple.com>
- Removing accidentally-checked-in do-nothing code.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- 2006-10-05 David Carson <dacarson@gmail.com>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11158
- Initialize class variables
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer):
- 2006-10-05 Peter Kasting <pkasting@google.com>
- Reviewed by Darin, landed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=11176
- Fix win32 build, adapt to Maciej's ResourceLoader changes.
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoader::start):
- 2006-10-05 Brett Wilson <brettw@chromium.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10989
- Provide a way for embedders to implement BrowserExtensionWin
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/BrowserExtensionWin.cpp: Added.
- (BrowserExtensionWin::BrowserExtensionWin):
- (BrowserExtensionWin::setTypedIconURL):
- (BrowserExtensionWin::setIconURL):
- (BrowserExtensionWin::getHistoryLength):
- (BrowserExtensionWin::canRunModal):
- (BrowserExtensionWin::createNewWindow):
- (BrowserExtensionWin::canRunModalNow):
- (BrowserExtensionWin::runModal):
- (BrowserExtensionWin::goBackOrForward):
- (BrowserExtensionWin::historyURL):
- * bridge/win/BrowserExtensionWin.h:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::createNewWindow):
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- 2006-10-05 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
-
- Fixed <rdar://problem/4766987>
-
- - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
- except for file names.
-
- - fixed RenderLayer to properly tear down scrollbars, removing them from
- their parents.
- * bindings/js/kjs_window.cpp:
- (KJS::showModalDialog):
- (KJS::setWindowFeature):
- (KJS::parseWindowFeatures):
- * bridge/BrowserExtension.h:
- * dom/Document.cpp:
- (WebCore::Document::setInPageCache):
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::init):
- (WebCore::HTMLFrameElement::parseMappedAttribute):
- * html/HTMLFrameElement.h:
- (WebCore::HTMLFrameElement::scrollingMode):
- * page/Frame.cpp:
- (WebCore::Frame::finishedParsing):
- (WebCore::Frame::scrollbarsVisible):
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::FrameViewPrivate):
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::~FrameView):
- (WebCore::FrameView::resetScrollbars):
- (WebCore::FrameView::clear):
- (WebCore::FrameView::initScrollbars):
- (WebCore::FrameView::applyOverflowToViewport):
- (WebCore::FrameView::layout):
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::setScrollbarsMode):
- (WebCore::FrameView::setVScrollbarMode):
- (WebCore::FrameView::setHScrollbarMode):
- (WebCore::FrameView::restoreScrollbar):
- (WebCore::FrameView::dispatchMouseEvent):
- (WebCore::FrameView::scrollbarMoved):
- * page/FrameView.h:
- * page/MouseEventWithHitTestResults.cpp:
- (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
- * page/MouseEventWithHitTestResults.h:
- (WebCore::MouseEventWithHitTestResults::scrollbar):
- * platform/ScrollBar.cpp:
- (WebCore::Scrollbar::Scrollbar):
- (WebCore::Scrollbar::setValue):
- (WebCore::Scrollbar::setProportion):
- (WebCore::Scrollbar::setSteps):
- (WebCore::Scrollbar::scroll):
- * platform/ScrollBar.h:
- (WebCore::):
- (WebCore::ScrollbarClient::~ScrollbarClient):
- (WebCore::Scrollbar::~Scrollbar):
- (WebCore::Scrollbar::orientation):
- (WebCore::Scrollbar::controlSize):
- (WebCore::Scrollbar::hasPlatformScrollbars):
- (WebCore::Scrollbar::client):
- * platform/ScrollBarMode.h:
- (WebCore::):
- * platform/ScrollView.h:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::isPointInScrollbar):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer):
- (WebCore::RenderLayer::~RenderLayer):
- (WebCore::RenderLayer::scrollToOffset):
- (WebCore::RenderLayer::horizontaScrollbarWidget):
- (WebCore::RenderLayer::verticalScrollbarWidget):
- (WebCore::RenderLayer::valueChanged):
- (WebCore::RenderLayer::createScrollbar):
- (WebCore::RenderLayer::destroyScrollbar):
- (WebCore::RenderLayer::setHasHorizontalScrollbar):
- (WebCore::RenderLayer::setHasVerticalScrollbar):
- (WebCore::RenderLayer::verticalScrollbarWidth):
- (WebCore::RenderLayer::horizontalScrollbarHeight):
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- * rendering/RenderLayer.h:
- (WebCore::RenderLayer::horizontalScrollbar):
- (WebCore::RenderLayer::verticalScrollbar):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::~RenderListBox):
- (WebCore::RenderListBox::calcMinMaxWidth):
- (WebCore::RenderListBox::isPointInScrollbar):
- (WebCore::RenderListBox::optionAtPoint):
- (WebCore::RenderListBox::valueChanged):
- * rendering/RenderListBox.h:
- * rendering/RenderObject.h:
- (WebCore::RenderObject::NodeInfo::scrollbar):
- (WebCore::RenderObject::NodeInfo::setScrollbar):
- 2006-10-05 Peter Kasting <pkasting@google.com>
- Reviewed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=11138
- Incorrect mouse event generation on Windows
- * platform/win/MouseEventWin.cpp:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- (1) Set mouse button even for non-click-related messages.
- (2) Track clicks correctly for all buttons, not just the left button.
- 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
- (WebCore::KRenderingPaintServerLinearGradientQt::setup):
- (WebCore::KRenderingPaintServerRadialGradientQt::setup):
- (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
- (WebCore::KRenderingPaintServerPatternQt::renderPath):
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- (WebCore::KRenderingPaintServerQt::setPenProperties):
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
- (WebCore::KRenderingPaintServerSolidQt::setup):
- (WebCore::KRenderingPaintServerSolidQt::renderPath):
- * kcanvas/device/qt/RenderPathQt.cpp:
- (WebCore::getPathStroke):
- 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11054
- REGRESSION: Traditional Chinese encoding in login authentication
- 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
- 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
- for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
- * platform/StreamingTextDecoderICU.cpp:
- (WebCore::TextCodecICU::registerEncodingNames):
- 2006-10-05 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
- Removed dead code.
- Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/ecma/GlobalObject.cpp: Removed.
- * ksvg2/ecma/GlobalObject.h: Removed.
- 2006-10-05 Adam Roben <aroben@apple.com>
- Reviewed by Maciej.
- Small ResourceLoaderInternal tweak.
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- 2006-10-05 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
- More incremental KCanvas cleanup and optimization.
- Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
- Optimized dash array usage to not malloc.
- Also removed un-needed KSVGRenderingStyle includes.
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::operator<<):
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::nodeAtPoint):
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::RenderPath::strokeBBox):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::KRenderingPaintServerGradientQuartz::setup):
- (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
- (WebCore::KRenderingPaintServerGradientQuartz::teardown):
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerSolidQuartz::setup):
- (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
- * kcanvas/device/quartz/QuartzSupport.mm:
- (WebCore::applyStrokeStyleToContext):
- * ksvg2/css/SVGRenderStyle.h:
- (WebCore::SVGRenderStyle::hasStroke):
- (WebCore::SVGRenderStyle::hasFill):
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::fillPaintServer):
- (WebCore::KSVGPainterFactory::strokePaintServer):
- * ksvg2/misc/KCanvasRenderingStyle.h:
- 2006-10-05 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adam.
- - changed ResourceLoader to be refcounted
- It keeps a ref on itself while loading as well. This makes
- for a much saner memory management model than the previous.
- * bridge/mac/WebCoreResourceLoaderImp.mm:
- (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * loader/icon/IconLoader.cpp:
- (IconLoader::IconLoader):
- (IconLoader::~IconLoader):
- (IconLoader::startLoading):
- (IconLoader::stopLoading):
- (IconLoader::receivedData):
- * loader/icon/IconLoader.h:
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- * platform/ResourceLoader.cpp:
- (WebCore::ResourceLoader::create):
- (WebCore::ResourceLoader::kill):
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start):
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- * xml/xmlhttprequest.h:
- 2006-10-05 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
- Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
- http://bugs.webkit.org/show_bug.cgi?id=11163
-
- No SVG performance tests yet.
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint):
- 2006-10-05 Dave Hyatt <hyatt@apple.com>
- Stub out some stuff for widget focusability.
- Reviewed by maciej
-
- * page/FrameView.cpp:
- (WebCore::FrameView::dispatchMouseEvent):
- * platform/ScrollView.h:
- * platform/Widget.h:
- 2006-10-05 Adam Roben <aroben@apple.com>
- Reviewed by Maciej and Tim H.
- Copy some WebKit frame lifetime logic into WebCore -- just a step
- along the path to frame lifetime being handled completely in WebCore.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setView): Move platform-independent parts of this
- method into Frame.
- * page/Frame.cpp:
- (WebCore::Frame::setView): Adding platform-independent parts of
- FrameMac::setView
- (WebCore::Frame::detachChildren): New method to accomplish what
- -[WebFrameBridge _detachChildren] currently does.
- (WebCore::Frame::clear): Call detachChildren
- * page/Frame.h: Add declaration for detachChildren
- 2006-10-04 Alice Liu <alice.liu@apple.com>
- Reviewed by Darin.
- Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::setRequestHeader):
- removed exception set when the request is not open yet
- 2006-10-04 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4654328>
- Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
-
- * loader/PluginDocument.cpp:
- (WebCore::PluginTokenizer::writeRawData):
- Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
- 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=11130
- Convert "undefined" to AE missing value
- * bridge/mac/WebCoreFrameBridge.mm:
- (aeDescFromJSValue): return missing value for UndefinedType.
- 2006-10-03 Dave Hyatt <hyatt@apple.com>
- Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
- the windowToContents/contentsToWindow functions.
-
- Reviewed by anders
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::eventMayStartDrag):
- (WebCore::FrameMac::dragHysteresisExceeded):
- (WebCore::FrameMac::mouseDown):
- (WebCore::FrameMac::shouldDragAutoNode):
- (WebCore::FrameMac::sendContextMenuEvent):
- * bridge/mac/FrameViewMac.mm:
- (WebCore::FrameView::passMousePressEventToScrollbar):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge _visiblePositionForPoint:]):
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchMouseEvent):
- (WebCore::EventTargetNode::dispatchWheelEvent):
- * page/Frame.cpp:
- (WebCore::Frame::selectClosestWordFromMouseEvent):
- (WebCore::Frame::handleMousePressEventTripleClick):
- (WebCore::Frame::handleMousePressEventSingleClick):
- (WebCore::Frame::handleMouseMoveEvent):
- (WebCore::Frame::handleMouseReleaseEvent):
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::FrameView::handleMouseDoubleClickEvent):
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- (WebCore::FrameView::dispatchDragEvent):
- (WebCore::FrameView::prepareMouseEvent):
- (WebCore::FrameView::handleWheelEvent):
- * page/FrameView.h:
- * platform/ScrollBar.cpp:
- (WebCore::ScrollBar::setValue):
- * platform/ScrollView.h:
- * platform/Widget.h:
- (WebCore::Widget::scrolled):
- * platform/mac/ScrollViewMac.mm:
- (WebCore::ScrollView::contentsToWindow):
- (WebCore::ScrollView::windowToContents):
- (WebCore::ScrollView::scrollbarUnderMouse):
- * platform/mac/WidgetMac.mm:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::resize):
- (WebCore::RenderLayer::positionScrollbars):
- * rendering/RenderReplaced.cpp:
- (WebCore::RenderReplaced::shouldPaint):
- * rendering/RenderView.cpp:
- * rendering/RenderView.h:
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::setWidget):
- 2006-09-26 David Smith <catfish.man@gmail.com>
- Reviewed by Timothy.
- http://bugs.webkit.org/show_bug.cgi?id=3723
- Add -scrollDOMRangeToVisible:
- No automated tests are possible as this code path isn't reachable from JavaScript.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
- 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Timothy.
- <http://bugs.webkit.org/show_bug.cgi?id=10338>
- When contentEditable, cursor doesn't change to hand
-
- Allow the behaviour of editable links to be specified by a WebPreference
- The preference WebKitEditableLinkBehavior has four options:
- - AlwaysLive: Safari 2.0 behaviour
- - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
- - LiveWhenNotFocused: Editable links are live only when their editable block is not
- focused, or when the shift key is pressed
- - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
-
- No layout tests, just a modification of a manual-test as it isn't possible to test
- this automatically.
- * bridge/mac/WebCoreSettings.h:
- * bridge/mac/WebCoreSettings.mm:
- (-[WebCoreSettings setEditableLinkBehavior:]):
- (-[WebCoreSettings editableLinkBehavior]):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::HTMLAnchorElement):
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- (WebCore::HTMLAnchorElement::setActive):
- * html/HTMLAnchorElement.h:
- * manual-tests/contenteditable-link.html:
- * page/FrameView.cpp:
- (WebCore::nodeIsNotBeingEdited):
- (WebCore::selectCursor):
- * page/Settings.h:
- (WebCore::Settings::):
- (WebCore::Settings::Settings):
- (WebCore::Settings::editableLinkBehavior):
- (WebCore::Settings::setEditableLinkBehavior):
- 2006-10-03 Beth Dakin <bdakin@apple.com>
- Reviewed Darin.
- No test cases needed.
- Implemented a version of StringImpl::append that takes a UChar* and
- a length.
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::append):
- (WebCore::StringImpl::insert): Call new append instead of making a
- new StringImpl.
- * platform/StringImpl.h:
- 2006-10-03 Darin Fisher <darin@chromium.org>
- Reviewed by Darin.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
- HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoader::onHandleCreated):
- 2006-10-02 Geoffrey Garen <ggaren@apple.com>
- Feared, loathed, reviewed by Darin.
- More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
- into FRAME, plus other cleanup.
-
- No new behavior, so no new test. Layout tests pass. Basic browsing and
- Mail editing seem to work.
-
- * dom/Node.cpp:
- (WebCore::Node::detach): Removed random commented-out code.
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::isURLAllowed):
- (1) Removed reference to FrameView, to dissociate frame loading from rendering.
- (2) Renamed newURL to completeURL because the difference between newURL
- and URLString is that newURL is a KURL that is the complete version of URLString,
- not that it is new.
- (WebCore::HTMLFrameElement::willRemove):
- (1) Removed close() call and moved close() code into willRemove(), also removing
- close() call from detach(), since willRemove is the well-defined place
- from DOM tear-down, not detach().
- (2) Removed manual renderer detach code because the DOM is not responsible
- for managing the render tree. I confirmed that this change not
- regress <rdar://problem/4132581>.
- (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
- lost their content frames after being removed from the DOM. That's our
- current behavior, but it's going to change in future rounds of refactoring.
- This also fixes <rdar://problem/4750835>.
- (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
- attach/detach, because the render tree should not be in charge of deciding
- when to load.
- * html/HTMLFrameElement.h:
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
- because the renderer is a renderPartObject, not a renderPart.
- * html/HTMLIFrameElement.h:
- 2006-10-03 Mark Rowe <bdash@webkit.org>
- Reviewed by Mitz.
- http://bugs.webkit.org/show_bug.cgi?id=11137
- Bug 11137: GdkLauncher dies with "pure virtual method called" if
- window is closed while page still loading
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
- methods to be called before the FrameGdk portion of "this" is torn down.
- 2006-10-03 Adam Roben <aroben@apple.com>
- Reviewed by Darin.
- Handle tab key presses in the DOM.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
- * page/FrameView.cpp:
- (WebCore::FrameView::advanceFocus): Rename and reimplement
- focusNextPrevNode. Now we just call Element::focus().
- * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
- it public.
- 2006-10-03 Justin Garcia <justin.garcia@apple.com>
- Reviewed by mjs
-
- <rdar://problem/4760612>
- TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
-
- No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
-
- * dom/Range.cpp:
- (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
- positions are non-null since most of it's callers would be in a bad state if the positions
- were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
- Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
- from entering compareBoundaryPoints and hitting the assert.
- 2006-10-03 Adele Peterson <adele@apple.com>
- Reviewed by Geoff.
- Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::recalcStyle):
- (WebCore::HTMLSelectElement::isKeyboardFocusable):
- (WebCore::HTMLSelectElement::isMouseFocusable):
- (WebCore::HTMLSelectElement::createRenderer):
- (WebCore::HTMLSelectElement::setRecalcListItems):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- (WebCore::HTMLSelectElement::defaultEventHandler):
- 2006-10-04 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11132
- Caret disappears when you're typing
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelection): Remove unnecessary call to
- clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
- (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
- to false so we can get the old caret repaint rect. Later we need to change the
- design so getting the rect doesn't have a side effect of causing a layout without
- invalidation.
- 2006-10-03 David Harrison <harrison@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
- Updated test:
- * fast/text/justified-text-rect.html
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge convertToNSRange:]):
- (-[WebCoreFrameBridge convertToDOMRange:]):
- Make the selection's root editable element (or the document itself) be
- the basis for NSRange conversions. This supports "shadow DOM" like
- that for text fields and text areas.
-
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs):
- Pass the document element as the scope.
-
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::rangeFromLocationAndLength):
- Make the first parameter the scope.
-
- * editing/TextIterator.h:
- Make the first parameter of rangeFromLocationAndLength() the scope.
- 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fix Qt/Linux build.
- * CMakeLists.txt: Add counter related files.
- 2006-10-03 Mark Rowe <bdash@webkit.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10981
- Linux/GDK build fixes
- Based on a patch by Krzysztof Kowalczyk.
- * WebCoreSources.bkl:
- * platform/gdk/FrameGdk.cpp:
- (WebCore::doScroll):
- (WebCore::FrameGdk::handleGdkEvent):
- * platform/gdk/PlatformScrollBar.h: Added.
- (WebCore::PlatformScrollBar::isWidget):
- * platform/gdk/ScrollViewGdk.cpp:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameView::passMousePressEventToScrollbar):
- (FrameView::passMousePressEventToSubframe):
- (FrameView::passMouseReleaseEventToSubframe):
- (FrameView::passMouseMoveEventToSubframe):
- (FrameView::passWheelEventToSubframe):
- (Cursor::Cursor):
- (Widget::invalidate):
- (Widget::invalidateRect):
- (ScrollView::wheelEvent):
- (ScrollView::convertToContainingWindow):
- (ScrollView::convertFromContainingWindow):
- (GraphicsContext::clip):
- (PlatformScrollBar::PlatformScrollBar):
- (PlatformScrollBar::updateThumbPosition):
- (PlatformScrollBar::updateThumbProportion):
- (ScrollBar::ScrollBar):
- (ScrollBar::setProportion):
- (WebCore::supportedKeySizes):
- (WebCore::signedPublicKeyAndChallengeString):
- * platform/gdk/WheelEventGdk.cpp:
- (WebCore::PlatformWheelEvent::PlatformWheelEvent):
- * platform/gdk/WidgetGdk.cpp:
- (WebCore::Widget::convertToContainingWindow):
- (WebCore::Widget::convertFromContainingWindow):
- 2006-10-02 Adam Roben <aroben@apple.com>
- Reviewed by Maciej.
- Let Windows determine which mouse button is pressed.
- * platform/PlatformMouseEvent.h: Add message parameter to constructor.
- * platform/win/MouseEventWin.cpp:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
- parameter to determine which mouse button is pressed.
- 2006-10-02 Justin Garcia <justin.garcia@apple.com>
- Reviewed by anders
-
- Build fix
-
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::empty):
- * editing/SelectionController.h:
- 2006-10-02 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <rdar://problem/4755287>
- Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
- * editing/markup.cpp:
- (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
- elements). Don't skip blocks that aren't containers (like horizontal rules).
- 2006-10-03 Darin Adler <darin@apple.com>
- Reviewed by Justin Garcia.
- - correct mistaken code that would restart blinking every
- time "invalidateSelection" is called even if the caret
- has not moved
- * editing/SelectionController.h:
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::setSelection): Update for name change.
- (WebCore::SelectionController::recomputeCaretRect): New function.
- Computes caret rect and does any necessary invalidation if the rect
- changes.
- (WebCore::SelectionController::invalidateCaretRect): Renamed from
- needsCaretRepaint. Invalidates the caret rect unconditionally. Also
- calls recomputeCaretRect as a side effect.
- * page/Frame.cpp:
- (WebCore::Frame::invalidateSelection): Remove unneeded call to
- clearCaretRectIfNeeded.
- (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
- (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
- recomputeCaretRect function and not restart blinking if caret has
- not changed position.
- (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
- are not needed since selectionLayoutChanged already checks these.
- * page/FramePrivate.h: Removed unused m_blinkCaret.
- 2006-10-02 Beth Dakin <bdakin@apple.com>
- Reviewed by Adam.
- Build fix. Add counters to vcproj.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-10-02 Brady Eidson <beidson@apple.com>
- Reviewed by Adele
- If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
- icon data out because we don't correctly check SQL error conditions.
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::writeToDatabase):
- 2006-10-02 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Hyatt.
- Added method to find out whether a layout has occurred.
- * page/FrameView.cpp:
- (WebCore::FrameView::didFirstLayout):
- * page/FrameView.h:
- 2006-10-02 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- Initial implementation of CSS2 counters. See http://
- bugs.webkit.org/show_bug.cgi?id=4980 for more details.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
- the increment/reset list now that this is implemented.
- * css/CSSPrimitiveValue.cpp:
- (WebCore::CSSPrimitiveValue::cssText):
- * css/Counter.h:
- (WebCore::Counter::Counter):
- (WebCore::Counter::~Counter):
- (WebCore::Counter::identifier):
- (WebCore::Counter::listStyle):
- (WebCore::Counter::separator):
- (WebCore::Counter::listStyleNumber):
- (WebCore::Counter::setIdentifier):
- (WebCore::Counter::setListStyle):
- (WebCore::Counter::setSeparator):
- * css/cssparser.cpp:
- (WebCore::CSSParser::addProperty): Take care of reset/increment
- (WebCore::CSSParser::parseValue):
- (WebCore::CSSParser::parseContent): content can now take counters
- (WebCore::CSSParser::parseCounterContent): Parse counter() and
- counters()
- (WebCore::CSSParser::parseCounter): Parse counter-reset and
- counter-increment
- * css/cssparser.h:
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::matchUARules):
- (WebCore::CSSStyleSelector::applyProperty):
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::insert): Implemented a version of insert that
- accepts a UChar* and a length.
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::insert): Same as above.
- * platform/StringImpl.h:
- * rendering/CounterListItem.h: Added.
- * rendering/CounterNode.cpp: Added.
- (WebCore::CounterNode::CounterNode):
- (WebCore::CounterNode::insertAfter):
- (WebCore::CounterNode::removeChild):
- (WebCore::CounterNode::remove):
- (WebCore::CounterNode::setUsesSeparator):
- (WebCore::CounterNode::recountAndGetNext):
- (WebCore::CounterNode::recountTree):
- (WebCore::CounterNode::setSelfDirty):
- (WebCore::CounterNode::setParentDirty):
- * rendering/CounterNode.h: Added.
- (WebCore::CounterNode::~CounterNode):
- (WebCore::CounterNode::parent):
- (WebCore::CounterNode::previousSibling):
- (WebCore::CounterNode::nextSibling):
- (WebCore::CounterNode::firstChild):
- (WebCore::CounterNode::lastChild):
- (WebCore::CounterNode::value):
- (WebCore::CounterNode::setValue):
- (WebCore::CounterNode::count):
- (WebCore::CounterNode::setCount):
- (WebCore::CounterNode::setHasSeparator):
- (WebCore::CounterNode::isReset):
- (WebCore::CounterNode::hasSeparator):
- (WebCore::CounterNode::willNeedLayout):
- (WebCore::CounterNode::setWillNeedLayout):
- (WebCore::CounterNode::isRoot):
- (WebCore::CounterNode::setRenderer):
- (WebCore::CounterNode::renderer):
- * rendering/CounterResetNode.cpp: Added.
- (WebCore::CounterResetNode::CounterResetNode):
- (WebCore::CounterResetNode::insertAfter):
- (WebCore::CounterResetNode::removeChild):
- (WebCore::CounterResetNode::recountAndGetNext):
- (WebCore::CounterResetNode::setParentDirty):
- (WebCore::CounterResetNode::updateTotal):
- * rendering/CounterResetNode.h: Added.
- (WebCore::CounterResetNode::firstChild):
- (WebCore::CounterResetNode::lastChild):
- (WebCore::CounterResetNode::isReset):
- (WebCore::CounterResetNode::total):
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::updatePseudoChildForObject): Account for
- counter content.
- * rendering/RenderCounter.cpp: Added.
- (WebCore::RenderCounter::RenderCounter):
- (WebCore::RenderCounter::layout):
- (WebCore::toRoman):
- (WebCore::toLetterString):
- (WebCore::toHebrew):
- (WebCore::RenderCounter::convertValueToType):
- (WebCore::RenderCounter::calcMinMaxWidth):
- * rendering/RenderCounter.h: Added.
- (WebCore::RenderCounter::renderName):
- (WebCore::RenderCounter::isCounter):
- * rendering/RenderObject.cpp:
- (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
- maps of CounterNodes
- (WebCore::RenderObject::RenderObject):
- (WebCore::RenderObject::destroy): Destroy the maps.
- (WebCore::RenderObject::findCounter): Finds/creates counters.
- * rendering/RenderObject.h:
- (WebCore::RenderObject::isCounter):
- * rendering/RenderStyle.cpp:
- (WebCore::StyleVisualData::StyleVisualData):
- (WebCore::RenderStyle::arenaDelete):
- (WebCore::RenderStyle::RenderStyle):
- (WebCore::RenderStyle::diff):
- (WebCore::RenderStyle::setContent):
- (WebCore::ContentData::clearContent):
- (WebCore::RenderStyle::counterDataEquivalent):
- (WebCore::hasCounter):
- (WebCore::RenderStyle::hasCounterReset):
- (WebCore::RenderStyle::hasCounterIncrement):
- (WebCore::readCounter):
- (WebCore::RenderStyle::counterReset):
- (WebCore::RenderStyle::counterIncrement):
- * rendering/RenderStyle.h:
- (WebCore::StyleVisualData::operator==):
- (WebCore::CounterData::CounterData):
- (WebCore::CounterData::identifier):
- (WebCore::CounterData::listStyle):
- (WebCore::CounterData::separator):
- (WebCore::ContentData::contentCounter):
- (WebCore::ContentData::):
- (WebCore::RenderStyle::counterIncrement):
- (WebCore::RenderStyle::counterReset):
- (WebCore::RenderStyle::setCounterIncrement):
- (WebCore::RenderStyle::setCounterReset):
- (WebCore::RenderStyle::setCounterResetList):
- (WebCore::RenderStyle::setCounterIncrementList):
- (WebCore::RenderStyle::counterResetValueList):
- (WebCore::RenderStyle::counterIncrementValueList):
- 2006-10-02 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
- There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
- by using "-webkit-appearance:none".
- * css/html4.css:
- 2006-10-02 David Harrison <harrison@apple.com>
- Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
- addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
- Left the layout test.
-
- * rendering/bidi.cpp:
- (WebCore::checkMidpoints):
- 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Fix Qt/Linux build.
- * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
- (WebCore::supportedKeySizes):
- 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel & mjs. Landed by eseidel.
- Fix Qt/Linux build with older gcc 3.3.4.
- http://bugs.webkit.org/show_bug.cgi?id=11116
- As discussed with Maciej, the GCC_ROOT_NS_HACK
- can be completely removed, as well as the friendship
- between cacheGlobalObject & the JS* objects.
- * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
- * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
- (png_read_filter_row_mmx_avg):
- * platform/image-decoders/png/pngvcrd.c: Ditto.
- (png_mmx_support):
- (png_read_filter_row_mmx_avg):
- 2006-10-01 Maciej Stachowiak <mjs@apple.com>
- Rubber stamped by Alexey.
- - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
- * css/CSSGrammar.y:
- 2006-10-01 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
- Eliminate a few more hotspots in SVG drawing code.
-
- No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
- * platform/mac/ColorMac.mm:
- (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
- 2006-10-01 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
-
- More frame/iframe merging.
-
- - Removed needWidgetUpdate and related code. needWidgetUpdate is always
- false, so this was dead code.
- - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
- than attach(), is the correct place for setInViewSourceMode, because
- openURL() is the function that creates our frame.
- - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
- code that did the same thing in other places.
- - Made FRAME's attach() method suffuciently generic so that IFRAME could
- call up to it, rather than skipping its superclass and calling up directly
- to ELEMENT.
- - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
- - Replaced ad hoc frame loading code in FRAME::attach() with call to
- openURL(), the designated frame loading function.
- Layout tests pass. I added a layout test for viewsource mode, since I
- broke it in the course of writing this patch.
- 2006-10-01 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * dom/Document.cpp:
- (WebCore::Document::recalcStyleSelector):
- * dom/Document.h:
- Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
-
- * dom/Node.h:
- Remove DeprecatedStringList class forward declaration.
-
- * editing/markup.cpp:
- Include DeprecatedStringList.h here since it's not included by Document.h anymore.
-
- * kcanvas/KCanvasTreeDebug.cpp:
- * kcanvas/KCanvasTreeDebug.h:
- Remove unused functions.
-
- * loader/loader.cpp:
- * page/Frame.cpp:
- * page/Frame.h:
- * page/FrameView.h:
- Fixup DeprecatedStringList.h includes.
- 2006-09-30 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
- Problem was that the decision to trim was based only on whether the character
- is a soft hyphen, which caused pretty much any Japanese character to go.
- Changed to decide based on whether the character is ignorable whitespace.
-
- Test:
- * fast/text/international/wrap-CJK-001.html
- * rendering/bidi.cpp:
- (WebCore::isTrimmableChar):
- New. Checks whether character is whitespace that can be ignored
- according to the text node's style.
- trimmed from the end of wrapped line.
- (WebCore::checkMidpoints):
- Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
- 2006-10-01 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Mitz Pettel.
- Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
- * ksvg2/svg/SVGColor.cpp:
- (WebCore::SVGColor::setRGBColor):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
- * ksvg2/svg/SVGLengthList.cpp:
- * ksvg2/svg/SVGNumberList.cpp:
- (SVGNumberList::parse):
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
- * ksvg2/svg/SVGStringList.cpp:
- (WebCore::SVGStringList::reset):
- * ksvg2/svg/SVGStringList.h:
- * ksvg2/svg/SVGTransformable.cpp:
- (SVGTransformable::parseTransformAttribute):
- 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric, tweaked and landed by ap.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * platform/qt/PlatformScrollBar.h:
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::ScrollBar::ScrollBar):
- (WebCore::PlatformScrollBar::PlatformScrollBar):
- (FrameView::passMousePressEventToSubframe):
- (FrameView::passMouseMoveEventToSubframe):
- (FrameView::passMouseReleaseEventToSubframe):
- (FrameView::passWheelEventToSubframe):
- (FrameView::passMousePressEventToScrollbar):
- * ksvg2/svg/SVGDocument.h:
- 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
- REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
- No test case added (probably requires new DumpRenderTree functionality)
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::imageChanged): Added early return if the document is
- being destroyed.
- 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
- REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
-
- Make sure we only break after a space (and not any other valid line-break) if
- the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
- I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
- twice in quick succession.
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::findNextLineBreak):
- 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Maciej and Darin.
- http://bugs.webkit.org/show_bug.cgi?id=4372
- JavaScript document.write page form does not submit in Safari
- Test: fast/forms/document-write.html
- * page/Frame.cpp:
- (WebCore::Frame::submitForm): Don't check for parsing().
- 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
- Build fix.
- * bridge/mac/FrameViewMac.mm: Add missing #imports.
- 2006-10-01 Dave Hyatt <hyatt@apple.com>
- Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
-
- Reviewed by mitz
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
- * bridge/mac/FrameViewMac.mm:
- (WebCore::FrameView::passMousePressEventToScrollbar):
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::FrameView::setMousePressed):
- * page/FrameView.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameView::passMousePressEventToScrollbar):
- 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
- Add more SVG Objective-C DOM bindings
- - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
- DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
- DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
- DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
- DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
- DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMSVG.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * ksvg2/svg/SVGAElement.idl:
- * ksvg2/svg/SVGAnimateColorElement.idl:
- * ksvg2/svg/SVGAnimateElement.idl:
- * ksvg2/svg/SVGAnimateTransformElement.idl:
- * ksvg2/svg/SVGAnimatedPathData.idl:
- * ksvg2/svg/SVGAnimatedPoints.idl:
- * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
- * ksvg2/svg/SVGAnimationElement.idl:
- * ksvg2/svg/SVGCircleElement.idl:
- * ksvg2/svg/SVGClipPathElement.idl:
- * ksvg2/svg/SVGColor.idl:
- * ksvg2/svg/SVGCursorElement.idl:
- * ksvg2/svg/SVGDefsElement.idl:
- * ksvg2/svg/SVGDescElement.idl:
- * ksvg2/svg/SVGDocument.idl:
- * ksvg2/svg/SVGEllipseElement.idl:
- * ksvg2/svg/SVGPointList.idl:
- * ksvg2/svg/SVGPreserveAspectRatio.idl:
- * ksvg2/svg/SVGRect.idl:
- * ksvg2/svg/SVGSVGElement.idl:
- 2006-09-30 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele.
- - fix build
- * platform/FloatRect.h:
- (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
- but more appropriate for path-type stuff.
- * platform/cg/PathCG.cpp:
- (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
- 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11011
- External CSS is parsed as iso-8859-1 even though the main document is utf-8
- Test: fast/encoding/css-charset-default.xhtml
- * loader/CachedResourceClient.h:
- (WebCore::CachedResourceClient::setCSSStyleSheet):
- (WebCore::CachedResourceClient::setXSLStyleSheet):
- Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
- takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
- * css/CSSImportRule.cpp:
- (WebCore::CSSImportRule::setCSSStyleSheet):
- (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
- * css/CSSImportRule.h:
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::CSSStyleSheet):
- * css/CSSStyleSheet.h:
- Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
- member. Changed some String parameters to const String&.
- * css/StyleSheet.cpp:
- (WebCore::StyleSheet::StyleSheet):
- * css/StyleSheet.h:
- Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
- * css/StyleSheetList.cpp:
- (WebCore::StyleSheetList::length):
- (WebCore::StyleSheetList::item):
- * css/StyleSheetList.h:
- Special-casing implicit stylesheets seemed to be dead code, removed.
- * dom/Document.cpp:
- (WebCore::Document::setCSSStyleSheet):
- (WebCore::Document::recalcStyleSelector):
- * dom/Document.h:
- Renamed setStyleSheet() to setCSSStyleSheet().
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
- (WebCore::ProcessingInstruction::setCSSStyleSheet):
- (WebCore::ProcessingInstruction::setXSLStyleSheet):
- (WebCore::ProcessingInstruction::parseStyleSheet):
- * dom/ProcessingInstruction.h:
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
- is not specified.
- (WebCore::HTMLLinkElement::setCSSStyleSheet):
- * html/HTMLLinkElement.h:
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::childrenChanged):
- * ksvg2/svg/SVGStyleElement.cpp:
- (WebCore::SVGStyleElement::childrenChanged):
- Inherit URL and charset from the document.
- * loader/Cache.cpp:
- (WebCore::Cache::requestCSSStyleSheet):
- * loader/Cache.h:
- Adjust for setStyleSheet() renaming.
- * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::ref):
- (WebCore::CachedCSSStyleSheet::deref):
- (WebCore::CachedCSSStyleSheet::checkNotify):
- Pass the encoding to setCSSStyleSheet().
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::ref):
- (WebCore::CachedXSLStyleSheet::checkNotify):
- * loader/DocLoader.cpp:
- (WebCore::DocLoader::requestCSSStyleSheet):
- * loader/DocLoader.h:
- * page/Frame.cpp:
- (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
- (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
- * xml/XSLImportRule.cpp:
- (WebCore::XSLImportRule::setXSLStyleSheet):
- (WebCore::XSLImportRule::loadSheet):
- * xml/XSLImportRule.h:
- Adjust for setStyleSheet() renaming.
- 2006-09-30 Rob Buis <buis@kde.org>
- Reviewed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=11096
- Hit testing for polylines fails
- Fix Path::contains so it handles filled, non-closed paths too.
- * platform/cg/PathCG.cpp:
- (WebCore::Path::contains):
- 2006-09-30 Dave Hyatt <hyatt@apple.com>
- Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
- Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
- subframes while the mouse is down.
-
- Reviewed by mitzpettel
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
- (WebCore::FrameMac::passWheelEventToWidget):
- * bridge/mac/FrameViewMac.mm:
- (WebCore::FrameView::passMousePressEventToSubframe):
- (WebCore::FrameView::passMouseMoveEventToSubframe):
- (WebCore::FrameView::passMouseReleaseEventToSubframe):
- (WebCore::FrameView::passWheelEventToSubframe):
- * page/Frame.cpp:
- * page/Frame.h:
- * page/FrameView.cpp:
- (WebCore::subframeForTargetNode):
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::FrameView::handleMouseDoubleClickEvent):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- (WebCore::FrameView::handleWheelEvent):
- * page/FrameView.h:
- * platform/ScrollBar.h:
- (WebCore::ScrollBar::handleMouseMoveEvent):
- (WebCore::ScrollBar::handleMouseOutEvent):
- * platform/Widget.h:
- (WebCore::Widget::handleMouseMoveEvent):
- (WebCore::Widget::handleMouseReleaseEvent):
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameView::passMousePressEventToSubframe):
- (FrameView::passMouseMoveEventToSubframe):
- (FrameView::passMouseReleaseEventToSubframe):
- (FrameView::passWheelEventToSubframe):
- (Widget::capturingMouse):
- (Widget::setCapturingMouse):
- (Widget::capturingTarget):
- (Widget::capturingChild):
- (Widget::setCapturingChild):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::paintBoxDecorations):
- 2006-09-29 Darin Fisher <darin@chromium.org>
- Reviewed by Adele.
- Fixes windows bustage:
- http://bugs.webkit.org/show_bug.cgi?id=11093
- * platform/win/PlatformScrollBar.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (PlatformScrollBar::PlatformScrollBar):
- (ScrollBar::ScrollBar):
- 2006-09-29 David Hyatt <hyatt@apple.com>
- Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
- in RenderObject::NodeInfo (and then propagating that Widget to
- MouseEventWithHitTestResults).
- This allows RenderListBox and RenderBlock to do the same thing when the
- mouse is over the scrollbar.
- Also land fix to support font-size: 0.
- Reviewed by mjs (scrollbar), eric (font-size)
- * dom/Document.cpp:
- (WebCore::Document::prepareMouseEvent):
- * page/Frame.cpp:
- (WebCore::Frame::passWidgetMouseDownEventToWidget):
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::dispatchMouseEvent):
- * page/MouseEventWithHitTestResults.cpp:
- (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
- * page/MouseEventWithHitTestResults.h:
- (WebCore::MouseEventWithHitTestResults::scrollbar):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::isPointInScrollbar):
- (WebCore::RenderBlock::nodeAtPoint):
- * rendering/RenderBlock.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::hitTest):
- * rendering/RenderLayer.h:
- (WebCore::RenderLayer::getHiddenBehavior):
- * rendering/RenderListBox.cpp:
- (WebCore::RenderListBox::RenderListBox):
- (WebCore::RenderListBox::~RenderListBox):
- (WebCore::RenderListBox::isPointInScrollbar):
- * rendering/RenderListBox.h:
- * rendering/RenderObject.h:
- (WebCore::RenderObject::NodeInfo::NodeInfo):
- (WebCore::RenderObject::NodeInfo::scrollbar):
- (WebCore::RenderObject::NodeInfo::setScrollbar):
- 2006-09-29 Darin Fisher <darin@chromium.org>
- Reviewed by Adele.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
- * platform/win/ScrollViewWin.cpp:
- (WebCore::ScrollView::convertToContainingWindow):
- (WebCore::ScrollView::convertFromContainingWindow):
- * platform/win/WidgetWin.cpp:
- (WebCore::Widget::convertToContainingWindow):
- (WebCore::Widget::convertFromContainingWindow):
- 2006-09-29 Adele Peterson <adele@apple.com>
- Updated with new argument for PlatformScrollBar.
- * platform/win/TemporaryLinkStubs.cpp:
- (PlatformScrollBar::PlatformScrollBar):
- 2006-09-29 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Fixing build bustage with cast to int.
- * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
- 2006-09-29 Adele Peterson <adele@apple.com>
- Fixing accidental include.
- * rendering/RenderListBox.cpp:
- 2006-09-29 Adele Peterson <adele@apple.com>
- Adding RenderListBox files.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-09-29 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Initial implementation of engine-based list box control.
- * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
- * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
- * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
- (WebCore::FrameMac::FrameMac):
- (WebCore::FrameMac::handleMousePressEvent):
- (WebCore::FrameMac::handleMouseMoveEvent):
- (WebCore::FrameMac::mouseDown):
- * page/Frame.cpp:
- (WebCore::Frame::handleMouseMoveEvent):
- (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
- (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
- (WebCore::Frame::autoscrollTimerFired): ditto.
- (WebCore::Frame::stopAutoscrollTimer): ditto.
- (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
- * page/Frame.h:
- * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
- * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::currentMousePosition):
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::FrameView::handleMouseDoubleClickEvent):
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- (WebCore::FrameView::handleMouseReleaseEvent):
- * page/FrameView.h:
- * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
- * platform/ScrollBar.h:
- (WebCore::):
- (WebCore::ScrollBar::controlSize):
- * platform/mac/PlatformScrollBar.h:
- * platform/mac/PlatformScrollBarMac.mm:
- (NSControlSizeForScrollBarControlSize):
- (-[WebCoreScrollBar initWithPlatformScrollBar:]):
- (WebCore::PlatformScrollBar::PlatformScrollBar):
- * rendering/RenderBlock.h:
- * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
- * rendering/RenderLayer.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::shouldAutoscroll):
- (WebCore::RenderObject::autoscroll):
- * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
- * css/html4.css: Added properties for new list boxes.
- * html/HTMLOptionElement.cpp:
- (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
- (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
- * html/HTMLOptionElement.h: Added disabled method.
- * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
- (WebCore::HTMLSelectElement::recalcStyle):
- (WebCore::HTMLSelectElement::lastSelectedListIndex):
- (WebCore::HTMLSelectElement::deselectItems):
- (WebCore::HTMLSelectElement::setSelectedIndex):
- (WebCore::HTMLSelectElement::isKeyboardFocusable):
- (WebCore::HTMLSelectElement::isMouseFocusable):
- (WebCore::HTMLSelectElement::createRenderer):
- (WebCore::HTMLSelectElement::recalcListItems):
- (WebCore::HTMLSelectElement::setRecalcListItems):
- (WebCore::HTMLSelectElement::reset):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
- (WebCore::HTMLSelectElement::nextSelectableListIndex):
- (WebCore::HTMLSelectElement::previousSelectableListIndex):
- * html/HTMLSelectElement.h:
- * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
- (WebCore::RenderTheme::paint):
- (WebCore::RenderTheme::paintBorderOnly):
- (WebCore::RenderTheme::paintDecorations):
- (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
- (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
- (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
- (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
- (WebCore::RenderTheme::isControlStyled):
- (WebCore::RenderTheme::supportsFocusRing):
- * rendering/RenderTheme.h:
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
- * rendering/RenderListBox.cpp: Added.
- (WebCore::RenderListBox::RenderListBox):
- (WebCore::RenderListBox::~RenderListBox):
- (WebCore::RenderListBox::setStyle):
- (WebCore::RenderListBox::updateFromElement):
- (WebCore::RenderListBox::calcMinMaxWidth):
- (WebCore::RenderListBox::size):
- (WebCore::RenderListBox::numItems):
- (WebCore::RenderListBox::calcHeight):
- (WebCore::RenderListBox::baselinePosition):
- (WebCore::RenderListBox::itemBoundingBoxRect):
- (WebCore::RenderListBox::paintObject):
- (WebCore::RenderListBox::paintScrollbar):
- (WebCore::RenderListBox::paintItemForeground):
- (WebCore::RenderListBox::paintItemBackground):
- (WebCore::RenderListBox::scrollBarTarget):
- (WebCore::RenderListBox::isPointInScrollbar):
- (WebCore::RenderListBox::optionAtPoint):
- (WebCore::RenderListBox::autoscroll):
- (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
- (WebCore::RenderListBox::scroll):
- (WebCore::RenderListBox::valueChanged):
- * rendering/RenderListBox.h: Added.
- (WebCore::RenderListBox::isListBox):
- (WebCore::RenderListBox::selectionChanged):
- (WebCore::RenderListBox::setSelectionChanged):
- (WebCore::RenderListBox::canHaveChildren):
- (WebCore::RenderListBox::renderName):
- (WebCore::RenderListBox::setOptionsChanged):
- (WebCore::RenderListBox::shouldAutoscroll):
- (WebCore::RenderListBox::listIndexIsVisible):
- 2006-09-29 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- We had a bug where html4.css was ignoring Media Queries. In the end
- the problem was that we were trying to send a char* to the
- MediaQueryEvaluator constructor that expects a String, but the
- char* got interpreted as a bool, the wrong constructor was called,
- and the media type was never set.
- No test case possible since this only affects html4.css
- * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
- char*
- (WebCore::MediaQueryEvaluator):
- * css/MediaQueryEvaluator.h: Same.
- 2006-09-29 Geoffrey Garen <ggaren@apple.com>
- Reviewed by John, Maciej.
-
- Integrated some frame and iframe code. I'm trying to fix up frame ownership
- and loading. Reducing the number of different code paths involved
- seemed like a good first step.
-
- As a side effect, I fixed a bug where FRAME elements would report their
- src attributes as relative, rather than compelete, URLs. (IFRAME elements
- had the correct complete URL behavior.)
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
- (WebCore::HTMLFrameElement::openURL):
- (1) Removed checks that requestFrame does for us
- (2) Added isURLAllowed check, to have one clear bottleneck for it
- (3) Added viewsource check, to have one clear bottleneck for it
- (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
- method, instead of finding our content frame in our own unique way.
- (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
- since openURL does this for us now.
- (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
- This is what FF does, and it made no sense to have different behaviors
- for FRAME and IFRAME elements.
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
- code.
- * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
- HTMLFrameElement now does everything we need.
- 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Hyatt.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::convertToContainingWindow):
- (WebCore::ScrollView::convertFromContainingWindow):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::signedPublicKeyAndChallengeString):
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::convertToContainingWindow):
- (WebCore::Widget::convertFromContainingWindow):
- 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
- Simplify Internal methods for the auto-generated Objective-C DOM code
- - Auto-generate the internal methods for more Objective-C classes.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMCSS.mm:
- (-[DOMStyleSheet WebCore::]):
- (+[DOMStyleSheet _styleSheetWith:WebCore::]):
- (-[DOMCSSRule WebCore::]):
- (-[DOMCSSRule _initWithCSSRule:WebCore::]):
- (+[DOMCSSRule _CSSRuleWith:WebCore::]):
- (-[DOMCSSValue WebCore::]):
- (-[DOMCSSValue _initWithCSSValue:WebCore::]):
- (+[DOMCSSValue _CSSValueWith:WebCore::]):
- * bindings/objc/DOMHTMLAppletElement.mm:
- (-[DOMHTMLAppletElement WebCore::]):
- (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
- * bindings/objc/DOMHTMLEmbedElement.mm:
- (-[DOMHTMLEmbedElement WebCore::]):
- (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMInternal.mm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/CSSCharsetRule.idl:
- * css/CSSFontFaceRule.idl:
- * css/CSSImportRule.idl:
- * css/CSSMediaRule.idl:
- * css/CSSPageRule.idl:
- * css/CSSPrimitiveValue.idl:
- * css/CSSStyleRule.idl:
- * css/CSSStyleSheet.idl:
- * css/CSSUnknownRule.idl:
- * css/CSSValueList.idl:
- * dom/KeyboardEvent.idl:
- * dom/MouseEvent.idl:
- * dom/MutationEvent.idl:
- * dom/NodeIterator.idl:
- * dom/OverflowEvent.idl:
- * dom/UIEvent.idl:
- * dom/WheelEvent.idl:
- 2006-09-29 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
- <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
- Test added
- * fast/text/attributed-substring-from-range-001.html
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::attributedString):
- Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
- Also, add validation of the range.
- 2006-09-29 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10893
- InsertRule can not handle @import statements
- Allow @import as part of a css rule.
- * css/CSSGrammar.y:
- 2006-09-28 David Hyatt <hyatt@apple.com>
- Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::eventMayStartDrag):
- (WebCore::FrameMac::dragHysteresisExceeded):
- (WebCore::FrameMac::mouseDown):
- (WebCore::FrameMac::shouldDragAutoNode):
- (WebCore::FrameMac::sendContextMenuEvent):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge _visiblePositionForPoint:]):
- 2006-09-28 Dave Hyatt <hyatt@apple.com>
- This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
- ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
- view.
-
- Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
- the patch after review, once I realized that these new functions essentially do the same thing.)
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchMouseEvent):
- (WebCore::EventTargetNode::dispatchWheelEvent):
- * page/Frame.cpp:
- (WebCore::Frame::selectClosestWordFromMouseEvent):
- (WebCore::Frame::handleMousePressEventTripleClick):
- (WebCore::Frame::handleMousePressEventSingleClick):
- (WebCore::Frame::handleMouseMoveEvent):
- (WebCore::Frame::handleMouseReleaseEvent):
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent):
- (WebCore::selectCursor):
- (WebCore::FrameView::dispatchDragEvent):
- (WebCore::FrameView::prepareMouseEvent):
- (WebCore::FrameView::handleWheelEvent):
- * platform/ScrollView.h:
- * platform/Widget.cpp:
- (WebCore::Widget::convertToContainingWindow):
- * platform/Widget.h:
- * platform/mac/ScrollViewMac.mm:
- (WebCore::ScrollView::convertToContainingWindow):
- (WebCore::ScrollView::convertFromContainingWindow):
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::convertToContainingWindow):
- (WebCore::Widget::convertFromContainingWindow):
- * platform/win/ScrollViewWin.cpp:
- (WebCore::ScrollView::convertToContainingWindow):
- (WebCore::ScrollView::convertFromContainingWindow):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::resize):
- 2006-09-28 Alice Liu <alice.liu@apple.com>
- Build fix by adding missing files for CommandByName
- * WebCore.xcodeproj/project.pbxproj:
- 2006-09-28 Alice Liu <alice.liu@apple.com>
- Adding CommandByName files to the vcproj
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-09-28 Alice Liu <alice.liu@apple.com>
- Reviewed by Adam Roben.
- 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.
- This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
- This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
- * editing/CommandByName.cpp: Added.
- Added a command class that hangs off the frame so the frame can call commands more easily.
- (WebCore::Frame::commandImp):
- (WebCore::Frame::execCopy):
- (WebCore::Frame::execCut):
- (WebCore::Frame::execDelete):
- (WebCore::Frame::execForwardDelete):
- (WebCore::Frame::execPaste):
- (WebCore::Frame::execMoveLeft):
- (WebCore::Frame::execMoveRight):
- (WebCore::Frame::execMoveUp):
- (WebCore::Frame::execMoveDown):
- (WebCore::Frame::execSelectAll):
- (WebCore::Frame::execSelectLeft):
- (WebCore::Frame::execSelectRight):
- (WebCore::Frame::execSelectUp):
- (WebCore::Frame::execSelectDown):
- (WebCore::Frame::enabled):
- (WebCore::Frame::enabledAnySelection):
- (WebCore::Frame::enabledAnyEditableSelection):
- (WebCore::Frame::enabledPaste):
- (WebCore::Frame::enabledAnyRangeSelection):
- (WebCore::Frame::enabledAnyEditableRangeSelection):
- (WebCore::Frame::createCommandDictionary):
- (WebCore::Frame::Command::):
- (WebCore:::m_frame):
- (WebCore::CommandByName::execCommand):
- * editing/CommandByName.h: Added.
- * page/Frame.cpp:
- Added implementation of accessor for CommandByName member
- (WebCore::Frame::command):
- * page/Frame.h:
- Added accessor for CommandByName member
- * page/FramePrivate.h:
- Added a CommandByName member
- (WebCore::FramePrivate::FramePrivate):
- * platform/PlatformMouseEvent.h:
- Changed constructor prototype
- * platform/StringImpl.cpp:
- Exposing getWordBreakIterator to be used elsewhere
- (WebCore::getWordBreakIterator):
- * platform/StringImpl.h:
- Exposing getWordBreakIterator to be used elsewhere
- * platform/win/MouseEventWin.cpp:
- 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
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- 2006-09-28 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Remove no-longer-used PopUpButton.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
- * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
- PopUpButtonMac.mm
- * platform/PopUpButton.h: Removed.
- * platform/mac/PopUpButtonMac.mm: Removed.
- * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
- * rendering/DeprecatedRenderSelect.cpp: Change #include of
- PopUpButton.h to ListBox.h
- 2006-09-28 Darin Adler <darin@apple.com>
- Reviewed by Alice.
- - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
- 10% perf. regression (copying strings while decoding)
- Use Vector<UChar> instead of String when building up the decoded string in
- the ICU and Mac decoders. Using String leads to O(n^2) behavior because
- String grows the buffer every single time that append is called. Using
- Vector::append instead of String::append also avoids constructing a string
- each time just to append and a questionable copy that is done inside the
- String::append function which also contributed to the slowness.
- * platform/PlatformString.h:
- * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
- Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
- allocation.
- * platform/StringImpl.h:
- * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
- * platform/StreamingTextDecoder.h:
- * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
- Change to use a Vector<UChar> instead of a String, since vectors have better
- resizing performance (they store a separate capacity).
- * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
- * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
- Change to use Vector<UChar> instead of String and then create a string at
- the end of the process using the new adopt function.
- 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
- Auto-generate more SVG Objective-C bindings
- - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
- DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
- DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
- DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
- DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
- DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
- and DOMSVGTransformable.
- - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
- parent interfaces and the SVG animated classes.
- - Corrects CodeGenerator.pm to only skip the first parent for the main
- interface.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMSVG.h:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * ksvg2/svg/SVGAnimatedAngle.idl:
- * ksvg2/svg/SVGAnimatedBoolean.idl:
- * ksvg2/svg/SVGAnimatedEnumeration.idl:
- * ksvg2/svg/SVGAnimatedInteger.idl:
- * ksvg2/svg/SVGAnimatedLength.idl:
- * ksvg2/svg/SVGAnimatedLengthList.idl:
- * ksvg2/svg/SVGAnimatedNumber.idl:
- * ksvg2/svg/SVGAnimatedPathData.idl:
- * ksvg2/svg/SVGAnimatedString.idl:
- * ksvg2/svg/SVGAnimatedTransformList.idl:
- * ksvg2/svg/SVGExternalResourcesRequired.idl:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
- * ksvg2/svg/SVGFitToViewBox.idl:
- * ksvg2/svg/SVGLangSpace.idl:
- * ksvg2/svg/SVGLocatable.idl:
- * ksvg2/svg/SVGMetadataElement.idl:
- * ksvg2/svg/SVGStringList.idl:
- * ksvg2/svg/SVGStylable.idl:
- * ksvg2/svg/SVGStyleElement.idl:
- * ksvg2/svg/SVGTests.idl:
- * ksvg2/svg/SVGTransformable.idl:
- * ksvg2/svg/SVGURIReference.idl:
- * ksvg2/svg/SVGUnitTypes.idl:
- * ksvg2/svg/SVGZoomAndPan.idl:
- 2006-09-28 Brady Eidson <beidson@apple.com>
- Reviewed by Mitz Pettel!!!
- Change the error code check for common functions from SQLResultOk to SQLResultDone
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::forgetPageURLQuery):
- (WebCore::IconDatabase::setIconIDForPageURLQuery):
- (WebCore::IconDatabase::addIconForIconURLQuery):
- 2006-09-28 Dave Hyatt <hyatt@apple.com>
- Just eliminate MapWindowPoints usage and use the HWND as
- the viewport.
- * platform/win/MouseEventWin.cpp:
- (WebCore::positionForEvent):
- * platform/win/ScrollViewWin.cpp:
- (WebCore::ScrollView::viewportToContents):
- (WebCore::ScrollView::contentsToViewport):
- 2006-09-27 David Hyatt <hyatt@apple.com>
- Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
- selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
- scrollbars to provide hover feedback if needed.
- Reviewed by Eric
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- (WebCore::FrameView::handleMouseMoveEvent):
- * platform/ScrollBar.h:
- (WebCore::ScrollBar::mouseMoved):
- 2006-09-27 Darin Fisher <darin@chromium.org>
- Reviewed by Maciej and Adam, landed by Adam
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
- Windows build is busted
- * platform/win/TemporaryLinkStubs.cpp:
- (ScrollView::paint):
- (ScrollView::themeChanged):
- 2006-09-27 Eric Seidel <eric@webkit.org>
- Reviewed by mitz.
- paths with no fill specified default to black but do not receive paint-related mouse events
- http://bugs.webkit.org/show_bug.cgi?id=11069
- The default fill was being applied at the wrong place in the rendering chain, causing this problem.
- Test: svg/custom/hover-default-fill.svg
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
- * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::isFilled): remove null check
- (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
- (WebCore::KSVGPainterFactory::isStroked): remove null check
- (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
- * ksvg2/svg/SVGPaint.cpp:
- (WebCore::SVGPaint::defaultFill): added.
- (WebCore::SVGPaint::defaultStroke): added.
- * ksvg2/svg/SVGPaint.h:
- 2006-09-27 Rob Buis <buis@kde.org>
- Reviewed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=11015
- SVG handles em units incorrectly
- Calculate viewport coordinates at layout time, since
- at this point the font size is known and lengths depending
- on font sizes can be calculated correctly.
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::layout):
- (WebCore::RenderSVGContainer::viewport):
- (WebCore::RenderSVGContainer::calcViewport):
- * kcanvas/RenderSVGContainer.h:
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::SVGLength::updateValue):
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::createRenderer):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::createRenderer):
- (WebCore::SVGSVGElement::attributeChanged):
- * ksvg2/svg/SVGSVGElement.h:
- 2006-09-27 Eric Seidel <eric@webkit.org>
- Reviewed by darin.
- Change our invalid-fill error behavior to match Opera (and soon Firefox)
- http://bugs.webkit.org/show_bug.cgi?id=11017
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::isFilled):
- (WebCore::KSVGPainterFactory::fillPaintServer):
- (WebCore::KSVGPainterFactory::isStroked):
- (WebCore::KSVGPainterFactory::strokePaintServer):
- 2006-09-27 Brady Eidson <beidson@apple.com>
- Build fix
- * loader/icon/IconDatabase.cpp:
- (WebCore::readySQLStatement):
- 2006-09-27 Brady Eidson <beidson@apple.com>
- Reviewed by Adam
- In very specific circumstances, prepared SQLStatements can become invalid without
- any warning. This checks for that state and re-prepares the statement and also
- adds more aggressive error-checking everywhere these statements are used.
- * loader/icon/IconDatabase.cpp:
- (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
- (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
- (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
- (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
- (WebCore::IconDatabase::forgetPageURLQuery): Ditto
- (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
- (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
- (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
- (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
- * loader/icon/SQLStatement.cpp:
- (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
- * loader/icon/SQLStatement.h:
- 2006-09-26 Darin Adler <darin@apple.com>
- Reviewed by Steve.
- - clean up options for font code path
- * platform/Font.h:
- * platform/Font.cpp:
- (WebCore::Font::setCodePath): Added. Replaces boolean version.
- (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
- 2006-09-26 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
- Added limit parameter, passed down to Frame
-
- * page/Frame.h:
- * page/Frame.cpp:
- (WebCore::Frame::markAllMatchesForText):
- Added limit parameter. Stop the search if it hits limit.
- 2006-09-26 Sean Gies <seangies@apple.com>
- Reviewed by Brady Eidson.
- * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
- 2006-09-26 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <rdar://problem/4747695>
- Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
-
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
- to select special elements that are fully selected after expansion
- moves to positions that are visually distinct from the originals.
- * editing/InsertListCommand.cpp:
- (WebCore::InsertListCommand::doApply): If the content of the list
- item will be moved into another list, put it in a list item.
- 2006-09-26 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
-
- Temporary work-around for frame lifetime issue.
- * page/Frame.cpp:
- (WebCore::Frame::clear):
- (WebCore::Frame::disconnectOwnerElement):
- 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
- Auto-generate DOMSVGElement for the Objective-C bindings
- - Auto-generates DOMSVGElement.
- - Make SVGExceptions work like all the other ExceptionCode
- extensions (Range, XPath, etc.) by adding SVGExceptionOffset
- and SVGExceptionMax.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_binding.cpp:
- (KJS::):
- (KJS::setDOMException):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMInternal.mm:
- (raiseDOMException):
- * bindings/objc/DOMSVG.h:
- * bindings/objc/DOMSVGExecption.h: Added.
- * ksvg2/ksvg.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::setId):
- (WebCore::SVGElement::setXmlbase):
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGElement.idl:
- * ksvg2/svg/SVGException.h: Added.
- (WebCore::):
- 2006-09-26 Eric Seidel <eric@webkit.org>
- Reviewed by Tim H.
-
- viewbox parser does not allow <tab> as a delimiter
- http://bugs.webkit.org/show_bug.cgi?id=11014
- Test: svg/hixie/viewbox/003.xml
- * ksvg2/svg/svgpathparser.cpp:
- (WebCore::isWhitespace): new function
- (WebCore::skipOptionalSpaces):
- (WebCore::skipOptionalSpacesOrComma):
- 2006-09-26 Eric Seidel <eric@webkit.org>
- Reviewed by Tim H.
- SVGDocument::createElement does not create elements in the SVG namespace
- http://bugs.webkit.org/show_bug.cgi?id=10932
-
- Test: svg/custom/createelement.svg
- * ksvg2/svg/SVGDocument.cpp:
- (WebCore::SVGDocument::createElement):
- * ksvg2/svg/SVGDocument.h:
- 2006-09-26 Eric Seidel <eric@webkit.org>
- Reviewed by Tim H.
-
- RenderPath::nodeAtPoint does not respect stroke width
- http://bugs.webkit.org/show_bug.cgi?id=10829
- Test: svg/custom/stroke-width-click.svg
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::RenderPath::strokeContains):
- * kcanvas/device/quartz/QuartzSupport.h:
- * kcanvas/device/quartz/QuartzSupport.mm:
- 2006-09-26 Eric Seidel <eric@webkit.org>
- Reviewed by mitz.
- Bring animation back to life
- http://bugs.webkit.org/show_bug.cgi?id=11021
-
- Register/unregister SVGSVGElements as time containers on insertion/removal.
- Replace uses of DeprecatedString with String in SVGAnimationElement
- Various whitespace clean-up.
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- (WebCore::SVGTimer::notifyAll):
- * ksvg2/misc/SVGDocumentExtensions.cpp:
- (WebCore::SVGDocumentExtensions::startAnimations):
- (WebCore::SVGDocumentExtensions::pauseAnimations):
- (WebCore::SVGDocumentExtensions::unpauseAnimations):
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::parseTransformValue):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- (WebCore::SVGAnimationElement::SVGAnimationElement):
- (WebCore::SVGAnimationElement::parseMappedAttribute):
- (WebCore::SVGAnimationElement::parseClockValue):
- (WebCore::SVGAnimationElement::targetAttribute):
- (WebCore::SVGAnimationElement::setTargetAttribute):
- (WebCore::SVGAnimationElement::attributeName):
- * ksvg2/svg/SVGAnimationElement.h:
- (WebCore::SVGAnimationElement::rendererIsNeeded):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::getScreenCTM):
- (WebCore::SVGSVGElement::createRenderer):
- (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
- (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGSetElement.cpp:
- (WebCore::SVGSetElement::handleTimerEvent):
- * ksvg2/svg/SVGURIReference.cpp:
- (WebCore::SVGURIReference::getTarget):
- * ksvg2/svg/SVGURIReference.h:
- 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by mitzpettel.
- - fix http://bugs.webkit.org/show_bug.cgi?id=11020
- No-SVG build broken since r16549
-
- Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * platform/qt/GraphicsContextQt.cpp:
- 2006-09-26 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10820
- Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
-
- (Originally written by Eric Seidel).
-
- * bindings/js/kjs_window.cpp:
- (KJS::floatFeature):
- * ksvg2/svg/SVGAngle.cpp:
- (SVGAngle::setValueAsString):
- * ksvg2/svg/SVGAnimationElement.cpp:
- (SVGAnimationElement::parseMappedAttribute):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (SVGComponentTransferFunctionElement::parseMappedAttribute):
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (WebCore::SVGFECompositeElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (SVGFEDisplacementMapElement::parseMappedAttribute):
- * ksvg2/svg/SVGFELightElement.cpp:
- (SVGFELightElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (WebCore::SVGFEOffsetElement::parseMappedAttribute):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::parseMappedAttribute):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
- * ksvg2/svg/SVGStopElement.cpp:
- (SVGStopElement::parseMappedAttribute):
- * platform/AtomicString.h:
- (WebCore::AtomicString::toDouble):
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::toDouble):
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::toDouble):
- * platform/StringImpl.h:
- * rendering/DeprecatedSlider.cpp:
- (WebCore::DeprecatedSlider::updateFromElement):
- * xml/XPathGrammar.y:
- 2006-09-25 David Harrison <harrison@apple.com>
- Reviewed by Tim Omernick and Tim Hatcher.
- <rdar://problem/4717965> Text Field text parameterized attributes should work
- <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
-
- (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
- Cleaned up. Added text field and text area parameterzed attributes.
-
- (-[WebCoreAXObject doAXLineForTextMarker:]):
- Fixed to be zero-based and to deal with the first position properly.
-
- (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
- Minor formatting.
-
- (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
- (-[WebCoreAXObject indexForTextMarker:]):
- (-[WebCoreAXObject textMarkerRangeForRange:]):
- (-[WebCoreAXObject rangeForTextMarkerRange:]):
- New utility methods.
-
- (-[WebCoreAXObject doAXLineForIndex:]):
- (-[WebCoreAXObject doAXRangeForLine:]):
- (-[WebCoreAXObject doAXStringForRange:]):
- (-[WebCoreAXObject doAXRangeForPosition:]):
- (-[WebCoreAXObject doAXRangeForIndex:]):
- (-[WebCoreAXObject doAXBoundsForRange:]):
- (-[WebCoreAXObject doAXAttributedStringForRange:]):
- (-[WebCoreAXObject doAXRTFForRange:]):
- (-[WebCoreAXObject doAXStyleRangeForIndex:]):
- Implement text field and text area parameterized attributes.
-
- (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
- Added text field and text area parameterzed attributes.
- * rendering/RenderTextControl.h:
- Made indexForVisiblePosition() and visiblePositionForIndex() public.
- 2006-09-25 Adam Roben <aroben@apple.com>
- Reviewed by Brady.
- Build fixes.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
- * platform/ResourceLoader.h: Store whether a particular job
- has received a response within the ResourceLoader object itself, since
- it's possible that we will enter the InternetReadFileExA while loop
- twice for the same job.
- * platform/ResourceLoaderInternal.h: Add private instance variable to
- store whether we've received a response.
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
- directives.
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
- whether it has received a response instead of assuming it hasn't.
- (WebCore::ResourceLoader::setHasReceivedResponse): Added.
- (WebCore::ResourceLoader::hasReceivedResponse): Added.
- * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
- setProportion
- (ScrollBar::setProportion):
- 2006-09-25 Brady Eidson <beidson@apple.com>
- Requested by ggaren
- Disabled IconDatabase logging by default
- * platform/Logging.cpp:
- (WebCore::):
- 2006-09-25 Steve Falkenburg <sfalken@apple.com>
- Build fix
- * platform/cf/ResourceLoaderCFNet.cpp:
- (WebCore::willCacheResponse):
- 2006-09-25 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <http://bugs.webkit.org/show_bug.cgi?id=11002>
- Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
-
- * editing/IndentOutdentCommand.cpp:
- (WebCore::IndentOutdentCommand::indentRegion): Special case
- an empty root editable element.
- 2006-09-25 Brady Eidson <beidson@apple.com>
- Reviewed by Steve
- Math error in SystemTimeWin
- * platform/win/SystemTimeWin.cpp:
- (WebCore::currentTime):
- 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- Whitespace cleanup; rename *job variables to *loader.
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
- (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
- (KJS::JSXMLHttpRequestConstructorImp::construct):
- (KJS::JSXMLHttpRequest::getOwnPropertySlot):
- (KJS::JSXMLHttpRequest::getValueProperty):
- (KJS::JSXMLHttpRequest::put):
- (KJS::JSXMLHttpRequest::putValueProperty):
- (KJS::JSXMLHttpRequest::mark):
- (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
- (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
- (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
- * bindings/js/JSXMLHttpRequest.h:
- (KJS::JSXMLHttpRequest::toBoolean):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::XMLHttpRequest):
- (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::abort):
- (WebCore::XMLHttpRequest::receivedAllData):
- (WebCore::XMLHttpRequest::receivedData):
- * xml/xmlhttprequest.h:
- (WebCore::):
- 2006-09-25 Timothy Hatcher <timothy@apple.com>
- Reviewed by Brady.
- - Deprecate the rest of the old-style methods that are not generated.
- - Add @property syntax to DOMRange.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMRange setStart:offset:]):
- (-[DOMRange setEnd:offset:]):
- (-[DOMRange compareBoundaryPoints:sourceRange:]):
- (-[DOMRange setStart::]):
- (-[DOMRange setEnd::]):
- (-[DOMRange compareBoundaryPoints::]):
- (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
- (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
- (-[DOMDocument createNodeIterator::::]):
- (-[DOMDocument createTreeWalker::::]):
- * bindings/objc/DOMCSS.h:
- * bindings/objc/DOMCSS.mm:
- (-[DOMDocument getComputedStyle:pseudoElement:]):
- (-[DOMDocument getComputedStyle::]):
- (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMRange.h:
- * bindings/objc/DOMTraversal.h:
- 2006-09-25 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
-
- Outermost <svg> element should clip to viewport
- http://bugs.webkit.org/show_bug.cgi?id=11007
- Test: svg/custom/viewport-clip.svg
- * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
- 2006-09-25 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- * css/MediaList.cpp:
- Remove unused header.
-
- * dom/Document.cpp:
- (WebCore::Document::clear):
- Use clear instead of iterating through the list of event listeners, removing each one.
- (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
-
- * html/HTMLKeygenElement.cpp:
- (WebCore::HTMLKeygenElement::HTMLKeygenElement):
- (WebCore::HTMLKeygenElement::appendFormData):
- Update due to changes in the SSL key generator.
-
- * ksvg2/svg/SVGAngle.cpp:
- Remove unused header.
-
- * ksvg2/svg/SVGAnimationElement.cpp:
- (SVGAnimationElement::parseMappedAttribute):
- Rename methods and pass Strings instead of DeprecatedStrings to
- parseSeparatedList.
-
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- Remove unused headers.
-
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::parseSeparatedList):
- * ksvg2/svg/SVGHelper.h:
- Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
- DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
-
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGLengthList.h:
- Use Vector<String> instead of DeprecatedStringList.
-
- * loader/Cache.cpp:
- (WebCore::Cache::requestImage):
- (WebCore::Cache::requestStyleSheet):
- (WebCore::Cache::requestScript):
- (WebCore::Cache::requestXSLStyleSheet):
- (WebCore::Cache::requestXBLDocument):
- (WebCore::Cache::remove):
- (WebCore::Cache::get):
- Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
-
- * loader/DocLoader.cpp:
- (WebCore::DocLoader::needReload):
- * loader/DocLoader.h:
- Use a HashSet instead of DeprecatedStringList.
-
- * page/FrameView.h:
- Remove declarations that have no functions.
-
- * platform/SSLKeyGenerator.h:
- * platform/mac/SSLKeyGeneratorMac.mm:
- (WebCore::supportedKeySizes):
- (WebCore::signedPublicKeyAndChallengeString):
- Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
- DeprecatedString.
- 2006-09-25 Dave Hyatt <hyatt@apple.com>
- Shunt the RenderTheme world transform adoption between
- Cairo and Windows into getWindowsContext and move the method
- out of GraphicsContextCairo and into GraphicsContextWin.
- * ChangeLog:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/cairo/GraphicsContextCairo.cpp:
- * platform/win/GraphicsContextWin.cpp: Added.
- (WebCore::GraphicsContext::getWindowsContext):
- (WebCore::GraphicsContext::releaseWindowsContext):
- * rendering/RenderThemeWin.cpp:
- (WebCore::prepareForDrawing):
- 2006-09-24 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
- <svg:a> cannot be styled with a:hover
- http://bugs.webkit.org/show_bug.cgi?id=11005
-
- Test: svg/hixie/cascade/002.xml
- * css/cssstyleselector.cpp:
- (WebCore::checkPseudoState):
- 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
- SVG needs Obj-C DOM bindings
- - Auto-generate the first 8 Objective-C SVG DOM bindings. The
- auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
- DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
- DOMSVGTransformList.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMSVG.h: Added.
- * ksvg2/svg/SVGAngle.idl:
- * ksvg2/svg/SVGLength.idl:
- * ksvg2/svg/SVGLengthList.idl:
- * ksvg2/svg/SVGMatrix.idl:
- * ksvg2/svg/SVGPathSeg.idl:
- * ksvg2/svg/SVGPathSegList.idl:
- * ksvg2/svg/SVGTransform.idl:
- * ksvg2/svg/SVGTransformList.idl:
- 2006-09-24 Rob Buis <buis@kde.org>
- Reviewed by eseidel.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
- WebKit does not handle fallback custom cursors
- Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
- WebKit does not properly handle SVG <cursor> element
- Add support for svg cursor images. Also make sure hotspot
- settings are handled correctly. Add tests for handling of css3
- cursor syntax with hotspots in strict and quirks mode. Finally
- implement fallback.
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSCursorImageValue.cpp: Added.
- (WebCore::CSSCursorImageValue::CSSCursorImageValue):
- (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
- * css/CSSCursorImageValue.h: Added.
- (WebCore::CSSCursorImageValue::hotspot):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * ksvg2/svg/SVGCursorElement.cpp:
- * manual-tests/css3-cursor-fallback-quirks.html: Added.
- * manual-tests/css3-cursor-fallback-strict.html: Added.
- * manual-tests/cursorfallback.xml: Added.
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::createCustomCursor):
- (WebCore::Cursor::Cursor):
- * platform/qt/CursorQt.cpp:
- (WebCore::Cursor::Cursor):
- * rendering/RenderStyle.cpp:
- (WebCore::StyleInheritedData::StyleInheritedData):
- (WebCore::StyleInheritedData::operator==):
- (WebCore::RenderStyle::diff):
- (WebCore::RenderStyle::addCursor):
- (WebCore::RenderStyle::addSVGCursor):
- (WebCore::RenderStyle::setCursorList):
- (WebCore::RenderStyle::clearCursorList):
- * rendering/RenderStyle.h:
- (WebCore::CursorData::CursorData):
- (WebCore::CursorList::operator[]):
- (WebCore::CursorList::size):
- (WebCore::CursorList::append):
- (WebCore::RenderStyle::cursors):
- 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
- Auto-generate the internal methods interfaces for the Objective-C bindings
- - Auto-generate the internal method declarations into their own files
- named in the form DOMFooBarInternal.h for class DOMFooBar.
- - Remove all use of DOM_cast from code.
- - Assorted cleanups.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMNode _initWithNode:WebCore::]):
- (-[DOMNode WebCore::]):
- (-[DOMRange dealloc]):
- (-[DOMRange finalize]):
- (-[DOMRange _initWithRange:WebCore::]):
- (-[DOMRange WebCore::]):
- (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
- (-[DOMNodeFilter WebCore::]):
- (-[DOMNodeFilter dealloc]):
- (-[DOMNodeFilter finalize]):
- (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
- (-[DOMNodeIterator WebCore::]):
- (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
- (-[DOMTreeWalker WebCore::]):
- * bindings/objc/DOMAbstractView.mm:
- (-[DOMAbstractView _initWithAbstractView:WebCore::]):
- * bindings/objc/DOMCSS.mm:
- (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
- (-[DOMCSSRule _initWithRule:WebCore::]):
- (-[DOMCSSValue _initWithValue:WebCore::]):
- * bindings/objc/DOMEvents.mm:
- (-[DOMEvent _initWithEvent:WebCore::]):
- * bindings/objc/DOMHTMLAppletElement.mm:
- (-[DOMHTMLAppletElement align]):
- (-[DOMHTMLAppletElement setAlign:]):
- (-[DOMHTMLAppletElement alt]):
- (-[DOMHTMLAppletElement setAlt:]):
- (-[DOMHTMLAppletElement archive]):
- (-[DOMHTMLAppletElement setArchive:]):
- (-[DOMHTMLAppletElement code]):
- (-[DOMHTMLAppletElement setCode:]):
- (-[DOMHTMLAppletElement codeBase]):
- (-[DOMHTMLAppletElement setCodeBase:]):
- (-[DOMHTMLAppletElement height]):
- (-[DOMHTMLAppletElement setHeight:]):
- (-[DOMHTMLAppletElement hspace]):
- (-[DOMHTMLAppletElement setHspace:]):
- (-[DOMHTMLAppletElement name]):
- (-[DOMHTMLAppletElement setName:]):
- (-[DOMHTMLAppletElement object]):
- (-[DOMHTMLAppletElement setObject:]):
- (-[DOMHTMLAppletElement vspace]):
- (-[DOMHTMLAppletElement setVspace:]):
- (-[DOMHTMLAppletElement width]):
- (-[DOMHTMLAppletElement setWidth:]):
- * bindings/objc/DOMInternal.h:
- (getDOMWrapper):
- (addDOMWrapper):
- (raiseOnDOMError):
- * bindings/objc/DOMXPath.mm:
- (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Fix Qt/Linux build after Dave's Scrollbar changes.
- * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::ScrollBar::setProportion):
- (WebCore::PlatformScrollBar::updateThumbPosition):
- (WebCore::PlatformScrollBar::updateThumbProportion):
- 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Qt/Linux build system changes: enable xpath/xslt by default.
- Offer possibility to change all of these using 'ccmake'.
- * CMakeLists.txt:
- 2006-09-24 Dave Hyatt <hyatt@apple.com>
- Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
- Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
- the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
- * platform/ScrollBar.cpp:
- (WebCore::ScrollBar::setValue):
- (WebCore::ScrollBar::setProportion):
- * platform/ScrollBar.h:
- (WebCore::ScrollBar::value):
- * platform/mac/PlatformScrollBar.h:
- * platform/mac/PlatformScrollBarMac.mm:
- (WebCore::PlatformScrollBar::updateThumbPosition):
- (WebCore::PlatformScrollBar::updateThumbProportion):
- * platform/win/PlatformScrollBar.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (PlatformScrollBar::updateThumbPosition):
- (PlatformScrollBar::updateThumbProportion):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=4872
- XMLHttpRequest fails to throw an exception when there is a security violation
- (mismatching domains)
- Raise an exception if there is a security violation, and also in cases required by
- the current draft of XHR specification.
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
- (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
- reports one, and also if there were too few arguments passed.
- * bindings/js/kjs_binding.cpp:
- (KJS::setDOMException): Added support for custom XHR exceptions.
- * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
- exception code range for XHR exceptions.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::setRequestHeader):
- (WebCore::XMLHttpRequest::getStatus):
- (WebCore::XMLHttpRequest::getStatusText):
- (WebCore::XMLHttpRequest::processSyncLoadResults):
- (WebCore::XMLHttpRequest::receivedAllData):
- (WebCore::XMLHttpRequest::receivedData):
- 2006-09-22 Steve Falkenburg <sfalken@apple.com>
- Reviewed by Jeff Jenkins.
- Tweak CF types.
- * platform/cf/ResourceLoaderCFNet.cpp:
- (WebCore::willCacheResponse):
- 2006-09-22 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
- <http://bugs.webkit.org/show_bug.cgi?id=8029>
- Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
- * dom/Document.cpp:
- (WebCore::Document::clearSelectionIfNeeded):
- * dom/Element.cpp:
- (WebCore::Element::contains):
- * dom/Node.cpp:
- (WebCore::Node::traverseNextNode):
- (WebCore::Node::traverseNextSibling):
- (WebCore::Node::traversePreviousNodePostOrder):
- (WebCore::Node::checkAddChild):
- (WebCore::Node::isDescendantOf):
- * dom/Node.h:
- * dom/NodeIterator.cpp:
- (WebCore::NodeIterator::notifyBeforeNodeRemoval):
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyBlockStyle):
- (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
- (WebCore::ApplyStyleCommand::applyInlineStyle):
- (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::mergeIdenticalElements):
- (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::updatePositionForNodeRemoval):
- (WebCore::DeleteSelectionCommand::handleGeneralDelete):
- (WebCore::DeleteSelectionCommand::mergeParagraphs):
- * editing/FormatBlockCommand.cpp:
- (WebCore::FormatBlockCommand::doApply):
- * editing/IndentOutdentCommand.cpp:
- (WebCore::enclosingListOrBlockquote):
- * editing/Selection.cpp:
- (WebCore::Selection::validate):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::nodeWillBeRemoved):
- * editing/TextIterator.cpp:
- (WebCore::SimplifiedBackwardsTextIterator::advance):
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next):
- (WebCore::VisiblePosition::previous):
- (WebCore::VisiblePosition::canonicalPosition):
- (WebCore::isFirstVisiblePositionInNode):
- (WebCore::isLastVisiblePositionInNode):
- * editing/htmlediting.cpp:
- (WebCore::firstEditablePositionAfterPositionInRoot):
- (WebCore::lastEditablePositionBeforePositionInRoot):
- (WebCore::enclosingNodeWithTag):
- (WebCore::enclosingList):
- (WebCore::enclosingListChild):
- * editing/markup.cpp:
- (WebCore::createMarkup):
- 2006-09-22 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- - Added @property syntax to non-generated headers
- inside #ifndef BUILDING_ON_TIGER.
- - Changed the DOMEventTarget protocol to have have new versions
- of addEventListener and removeEventListener with named parameters.
- These old style methods can be removed once Mail changes to use
- the new methods <rdar://problem/4746649>.
- * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
- * bindings/objc/DOM.mm:
- (-[DOMNode addEventListener:listener:useCapture:]):
- (-[DOMNode addEventListener:::]): call the new method
- (-[DOMNode removeEventListener:listener:useCapture:]):
- (-[DOMNode removeEventListener:::]): call the new method
- * bindings/objc/DOMAbstractView.h:
- * bindings/objc/DOMEventTarget.h:
- * bindings/objc/DOMHTMLAppletElement.h:
- * bindings/objc/DOMHTMLEmbedElement.h:
- * bindings/objc/DOMHTMLOptionElement.h:
- * bindings/objc/DOMObject.h:
- * bindings/objc/DOMRGBColor.h:
- 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
- * platform/qt/FrameQt.cpp:
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
- (WebCore::GraphicsContext::origin):
- * platform/qt/PlatformScrollBar.h: Added.
- (WebCore::PlatformScrollBar::isWidget):
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::invalidate):
- (WebCore::Widget::invalidateRect):
- 2006-09-22 Dave Hyatt <hyatt@apple.com>
- Super-minor tweaks to the systemFont function on Mac.
- Set the generic family to None rather than to Serif, and
- don't waste time setting the computed size, since that is
- set from the specified size over in CSSStyleSelector anyway.
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::systemFont):
- 2006-09-22 Timothy Hatcher <timothy@apple.com>
- Reviewed by Brady.
- Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
- take floats. There was already an implicit conversion to float/double
- when calling CGContextTranslateCTM or cairo_translate.
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::translate):
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::translate):
- 2006-09-22 Brady Eidson <beidson@apple.com>
- Reviewed by Sfalken
- Add redirect and other cleanup to ResourceLoaderWin.cpp
- Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
- Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
- * WebCore.xcodeproj/project.pbxproj:
- * platform/ResourceLoader.h:
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoaderWndProc):
- (WebCore::initializeOffScreenResourceLoaderWindow):
- (WebCore::ResourceLoader::onHandleCreated):
- (WebCore::ResourceLoader::onRequestRedirected):
- (WebCore::ResourceLoader::onRequestComplete):
- (WebCore::transferJobStatusCallback):
- 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=10803
- REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
- * page/FrameView.cpp:
- (WebCore::FrameView::hoverTimerFired): Use the current event.
- 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Anders.
- Fix (last) svg memory leak.
- * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
- (SVGTransformable::parseTransformAttribute):
- 2006-09-22 Eric Seidel <eric@webkit.org>
- No review necessary, just removing a dead file.
- Remove unused file (added previously by mistake) to make room for real implementation.
- * platform/mac/BitmapImageMac.mm: Removed.
- 2006-09-22 Dave Hyatt <hyatt@apple.com>
- Move PlatformScrollBar.h down into the platforms.
-
- Reviewed by andersca
- * platform/PlatformScrollBar.h: Removed.
- * platform/win/PlatformScrollBar.h: Added.
- * platform/mac/PlatformScrollBar.h: Added.
- 2006-09-22 Dave Hyatt <hyatt@apple.com>
- Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
- any widget subsystems that don't have any underlying native objects backing the widgets.
- Reviewed by anders
- * platform/Widget.h:
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::invalidate):
- (WebCore::Widget::invalidateRect):
- * platform/win/TemporaryLinkStubs.cpp:
- (Widget::invalidate):
- (Widget::invalidateRect):
- 2006-09-22 Rob Buis <buis@kd.org>
- Reviewed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=10901
- Merge build fixes from unity
- * CMakeLists.txt:
- 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=10977
- SVGDocument does not expose 'rootElement' property
- Enable 'rootElement' property.
- * ksvg2/svg/SVGDocument.idl:
- 2006-09-21 Steve Falkenburg <sfalken@apple.com>
- Tweak includes.
- * platform/ResourceLoaderInternal.h:
- 2006-09-21 Geoffrey Garen <ggaren@apple.com>
- build fixed. band happy.
-
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::translate):
- * platform/mac/WidgetMac.mm:
- 2006-09-21 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
-
- Some Widget refactoring.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/mac/FrameMac.mm:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::runJavaScriptAlert):
- (WebCore::FrameWin::runJavaScriptConfirm):
- * bridge/win/PageWin.cpp:
- (WebCore::Page::Page):
- (WebCore::rootWindowForFrame):
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::translate):
- * page/FrameView.cpp:
- (WebCore::FrameView::isFrameView):
- * page/Page.h:
- (WebCore::Page::setInstanceHandle):
- (WebCore::Page::instanceHandle):
- * platform/GraphicsContext.h:
- * platform/ScrollView.h:
- * platform/Widget.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::translate):
- (WebCore::GraphicsContext::origin):
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::clearFocus):
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::initializeOffScreenResourceLoaderWindow):
- * platform/win/ScreenWin.cpp:
- (WebCore::monitorInfo):
- * platform/win/ScrollViewWin.cpp:
- (WebCore::ScrollView::updateContents):
- (WebCore::ScrollView::visibleWidth):
- (WebCore::ScrollView::visibleHeight):
- (WebCore::ScrollView::visibleContentRect):
- (WebCore::ScrollView::viewportToContents):
- (WebCore::ScrollView::contentsToViewport):
- (WebCore::ScrollView::scrollBy):
- (WebCore::ScrollView::updateScrollInfo):
- (WebCore::ScrollView::updateScrollBars):
- * platform/win/SharedTimerWin.cpp:
- (WebCore::initializeOffScreenTimerWindow):
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameView::updateBorder):
- (ScrollView::paint):
- (GraphicsContext::clip):
- * platform/win/WidgetWin.cpp:
- (WebCore::Widget::Widget):
- (WebCore::Widget::parentWindow):
- (WebCore::Widget::setParentWindow):
- (WebCore::Widget::frameGeometry):
- (WebCore::Widget::hasFocus):
- (WebCore::Widget::setFocus):
- (WebCore::Widget::show):
- (WebCore::Widget::hide):
- (WebCore::Widget::setFrameGeometry):
- 2006-09-22 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim H.
- * platform/TextEncoding.cpp:
- (WebCore::TextEncoding::backslashAsCurrencySymbol):
- Add comment clarifying why backslashAsCurrencySymbol is needed.
- 2006-09-21 Sean Gies <seangies@apple.com>
- Reviewed by Adam Roben.
- Add utility functions to get and release HDC from GraphicsContext.
- * platform/GraphicsContext.h: Add utilities to get and release HDC.
- * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
- * rendering/RenderThemeWin.cpp: Switch to new utilities.
- 2006-09-21 Justin Garcia <justin.garcia@apple.com>
- Reviewed by anders
-
- <rdar://problem/4426622>
- Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
- * editing/htmlediting.cpp:
- (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
- aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
- Got rid of uses of DepricatedString.
- 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading):
- 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Fix Qt/Linux build.
- * CMakeLists.txt:
- * kcanvas/device/qt/KCanvasClipperQt.h:
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::isLoadTypeReload):
- (WebCore::FrameQt::originalRequestURL):
- * platform/qt/FrameQt.h:
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::concatCTM):
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::wheelEvent):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::IconDatabase::setIconURLForPageURL):
- 2006-09-20 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <http://bugs.webkit.org/show_bug.cgi?id=7165>
- TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
- * editing/MoveSelectionCommand.cpp:
- (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
- to the position-to-move-to's document, not the fragment's document. The
- fragment's document is the document used to create the fragment and is irrelavant.
- === Safari-521.27 ===
- 2006-09-21 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
- This fixes Spinneret so it won't crash on its first load!
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading):
- 2006-09-21 Brady Eidson <beidson@apple.com>
- Build fix
- * platform/win/TemporaryLinkStubs.cpp:
- (ScrollView::wheelEvent):
- 2006-09-20 Rob Buis <buis@kde.org>
- Reviewed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=10946
- new marker code draws end-marker in wrong place
- Keep track of the start of the subpath so we can handle
- closeTo/moveTo correctly.
- * kcanvas/RenderPath.cpp:
- (WebCore::DrawMarkersData::DrawMarkersData):
- (WebCore::updateMarkerDataForElement):
- 2006-09-21 David Hyatt <hyatt@apple.com>
- Wheel scrolling prep for Win32.
- WARNING: NO TEST CASES ADDED OR CHANGED
- * platform/PlatformWheelEvent.h:
- * platform/ScrollBar.h:
- * platform/ScrollView.h:
- * platform/mac/ScrollViewMac.mm:
- (WebCore::ScrollView::wheelEvent):
- * rendering/RenderLayer.cpp:
- 2006-09-20 Timothy Hatcher <timothy@apple.com>
- Reviewed by Hyatt.
- Bug 10917: REGRESSION (r16027): iFrame transparency broken
- http://bugs.webkit.org/show_bug.cgi?id=10917
- Don't paint the base background color if we transparent.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended):
- 2006-09-20 Adam Roben <aroben@apple.com>
- Reviewed by andersca.
- * platform/FileChooser.h: Remove no-longer-necessary namespace std
- 2006-09-20 Eric Seidel <eric@webkit.org>
- Reviewed by beth.
- Cleanup style in KCanvas.
- Remove extra white-space, unneeded arguments, etc.
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasClipper.cpp:
- (WebCore::operator<<):
- (WebCore::KCanvasClipper::externalRepresentation):
- * kcanvas/KCanvasClipper.h:
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::KCanvasFilter::externalRepresentation):
- (WebCore::operator<<):
- (WebCore::KCanvasFilterEffect::externalRepresentation):
- (WebCore::KCPointLightSource::externalRepresentation):
- (WebCore::KCSpotLightSource::externalRepresentation):
- (WebCore::KCDistantLightSource::externalRepresentation):
- (WebCore::KCanvasFEBlend::externalRepresentation):
- (WebCore::KCanvasFEColorMatrix::externalRepresentation):
- (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
- (WebCore::KCanvasFEComposite::externalRepresentation):
- (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
- (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
- (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
- (WebCore::KCanvasFEFlood::externalRepresentation):
- (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
- (WebCore::KCanvasFEImage::externalRepresentation):
- (WebCore::KCanvasFEMerge::externalRepresentation):
- (WebCore::KCanvasFEMorphology::externalRepresentation):
- (WebCore::KCanvasFEOffset::externalRepresentation):
- (WebCore::KCanvasFESpecularLighting::externalRepresentation):
- (WebCore::KCanvasFETile::externalRepresentation):
- (WebCore::KCanvasFETurbulence::externalRepresentation):
- * kcanvas/KCanvasFilters.h:
- (WebCore::KCanvasFEDiffuseLighting::lightSource):
- (WebCore::KCanvasFESpecularLighting::lightSource):
- * kcanvas/KCanvasImage.h:
- * kcanvas/KCanvasMarker.cpp:
- (WebCore::KCanvasMarker::externalRepresentation):
- * kcanvas/KCanvasMarker.h:
- * kcanvas/KCanvasResource.cpp:
- (WebCore::operator<<):
- * kcanvas/KCanvasResource.h:
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::operator<<):
- (WebCore::writeIndent):
- (WebCore::writeStyle):
- (WebCore::write):
- (WebCore::writeRenderResources):
- * kcanvas/KCanvasTreeDebug.h:
- (WebCore::operator<<):
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint):
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- (WebCore::drawStartAndMidMarkers):
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::translateForAttributes):
- * kcanvas/RenderSVGImage.h:
- * kcanvas/device/KRenderingDevice.cpp:
- (WebCore::KRenderingDevice::currentContext):
- (WebCore::KRenderingDevice::popContext):
- (WebCore::KRenderingDevice::pushContext):
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingFillPainter.h:
- * kcanvas/device/KRenderingPaintServer.h:
- (WebCore::KRenderingPaintServer::KRenderingPaintServer):
- (WebCore::KRenderingPaintServer::activeClient):
- (WebCore::KRenderingPaintServer::setActiveClient):
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- (WebCore::operator<<):
- (WebCore::KRenderingPaintServerGradient::externalRepresentation):
- (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
- (WebCore::KRenderingPaintServerGradient::listener):
- (WebCore::KRenderingPaintServerGradient::setListener):
- (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- (WebCore::KRenderingPaintServerPattern::tile):
- (WebCore::KRenderingPaintServerPattern::setTile):
- (WebCore::KRenderingPaintServerPattern::listener):
- (WebCore::KRenderingPaintServerPattern::setListener):
- (WebCore::KRenderingPaintServerPattern::externalRepresentation):
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- (WebCore::KRenderingPaintServerSolid::externalRepresentation):
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/KRenderingStrokePainter.cpp:
- (WebCore::KRenderingStrokePainter::strokeMiterLimit):
- (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
- * kcanvas/device/KRenderingStrokePainter.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::prepareFilter):
- * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
- * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
- (WebCore::KCanvasMaskerQuartz::applyMask):
- * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
- (WebCore::KCanvasImageQuartz::init):
- * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
- (WebCore::KCanvasClipperQuartz::applyClip):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceQuartz::quartzContext):
- (WebCore::KRenderingDeviceQuartz::contextForImage):
- (WebCore::KRenderingDeviceQuartz::createPaintServer):
- (WebCore::KRenderingDeviceQuartz::createResource):
- (WebCore::KRenderingDeviceQuartz::createFilterEffect):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::CGShadingRefForLinearGradient):
- (WebCore::CGShadingRefForRadialGradient):
- (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
- (WebCore::KRenderingPaintServerGradientQuartz::teardown):
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
- (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
- (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
- (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
- (WebCore::KRenderingPaintServerSolidQuartz::draw):
- (WebCore::KRenderingPaintServerSolidQuartz::setup):
- (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
- (WebCore::KRenderingPaintServerPatternQuartz::teardown):
- * kcanvas/device/quartz/QuartzSupport.h:
- * kcanvas/device/quartz/QuartzSupport.mm:
- (WebCore::applyStrokeStyleToContext):
- 2006-09-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Dave Hyatt.
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- Use lroundf instead of lround since deltas are floats.
- 2006-09-20 Julien Palmas <julien.palmas@gmail.com>
- Reviewed by eseidel. Landed by eseidel.
- Test: svg/custom/pattern-y-offset.svg
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- 2006-09-20 David Hyatt <hyatt@apple.com>
- Add a new wheelEvent method to ScrollView. Platforms that wish
- to handle the wheel event for the scroll view themselves can then
- do so there. (Mac lets the underlying NSScrollView do it for now.)
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent):
- * platform/ScrollView.h:
- (WebCore::ScrollView::wheelEvent):
- 2006-09-20 Brady Eidson <beidson@apple.com>
- Reviewed by Tim Omernick
- Part of fixing a crash Tim O showed me that I missed in a release build.
- WebKit should be able to call through the bridge to WebCore no matter what -
- Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
- (-[WebCoreIconDatabaseBridge isOpen]):
- (-[WebCoreIconDatabaseBridge removeAllIcons]):
- (-[WebCoreIconDatabaseBridge _isEmpty]):
- (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
- (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
- (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
- (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
- (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
- (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
- (-[WebCoreIconDatabaseBridge retainIconForURL:]):
- (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
- (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
- (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
- (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
- (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
- (-[WebCoreIconDatabaseBridge _setEnabled:]):
- (-[WebCoreIconDatabaseBridge _isEnabled]):
- 2006-09-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- Add String::split which returns a Vector of Strings and use it instead of
- DeprecatedStringList.
-
- * bindings/js/kjs_events.cpp:
- (KJS::Clipboard::getValueProperty):
- * bindings/js/kjs_window.cpp:
- (KJS::parseModalDialogFeatures):
- * css/MediaList.cpp:
- (WebCore::MediaList::setMediaText):
- * dom/Clipboard.h:
- * html/HTMLFormElement.cpp:
- (WebCore::HTMLFormElement::formData):
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::tokenizeRelAttribute):
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::split):
- * platform/StringImpl.cpp:
- * platform/StringImpl.h:
- * platform/mac/ClipboardMac.h:
- * platform/mac/ClipboardMac.mm:
- (WebCore::ClipboardMac::types):
- 2006-09-20 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call
- HTMLElement::isContentEditable just to check the Frame's editability, since
- it calls updateRenderering, which can get us into infinite recursion.
- 2006-09-20 Brady Eidson <beidson@apple.com>
- Reviewed by Darin
- Cleaned up my last patch alot, and made the WebCore icon database disabled by default
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase): Disabled by default
- (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
- (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
- (WebCore::IconDatabase::iconForPageURL): Ditto
- (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
- (WebCore::IconDatabase::iconURLForPageURL): Ditto
- (WebCore::IconDatabase::retainIconForPageURL): Ditto
- (WebCore::IconDatabase::releaseIconForPageURL): Ditto
- (WebCore::IconDatabase::setIconDataForIconURL): Ditto
- (WebCore::IconDatabase::setIconURLForPageURL): Ditto
- (WebCore::IconDatabase::hasEntryForIconURL): Ditto
- (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
- 2006-09-20 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
- REGRESSION: file upload control with direction:rtl or text-align:right
- draws button on top of filename/icon
- * rendering/RenderFileUploadControl.cpp:
- (WebCore::RenderFileUploadControl::setStyle): Force text-align to
- match direction
- (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
- the filename and icon in RTL
- 2006-09-20 Alice Liu <alice.liu@apple.com>
- Reviewed by Adam Roben.
- fixed windows build
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- changed lrint to lround
- 2006-09-20 Sam Weinig <sam.weinig@gmail.com>
- Build Fix. Adds isHorizontal attribute back to WheelEvent
- for the Objective-C bindings. If it is found that isHorizontal
- is not used, we should remove it again but also remove it's
- declaration from PublicDOMInterfaces.h
- * dom/WheelEvent.h:
- (WebCore::WheelEvent::isHorizontal):
- * dom/WheelEvent.idl:
- 2006-09-20 David Hyatt <hyatt@apple.com>
- Fix for 10945, WheelEvent should support two dimensions at once, since
- MacBooks allow for diagonal scrolling. Also enhance the PlatformWheelEvent
- to allow for diagonal scrolling.
- Reviewed by Eric
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchWheelEvent):
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- (WebCore::WheelEvent::initWheelEvent):
- * dom/WheelEvent.h:
- (WebCore::WheelEvent::wheelDelta):
- (WebCore::WheelEvent::wheelDeltaX):
- (WebCore::WheelEvent::wheelDeltaY):
- * dom/WheelEvent.idl:
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent):
- * platform/PlatformWheelEvent.h:
- (WebCore::PlatformWheelEvent::deltaX):
- (WebCore::PlatformWheelEvent::deltaY):
- (WebCore::PlatformWheelEvent::normalize):
- * platform/mac/WheelEventMac.mm:
- (WebCore::PlatformWheelEvent::PlatformWheelEvent):
- 2006-09-19 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
- Split KCanvasResources.* into multiple files (and some other minor spacing changes).
-
- No tests were harmed in the making of this patch.
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasClipper.cpp: Added.
- (WebCore::operator<<):
- * kcanvas/KCanvasClipper.h: Added.
- * kcanvas/KCanvasFilters.h:
- * kcanvas/KCanvasImage.h:
- * kcanvas/KCanvasMarker.cpp: Added.
- * kcanvas/KCanvasMarker.h: Added.
- * kcanvas/KCanvasMasker.cpp: Added.
- (WebCore::KCanvasMasker::KCanvasMasker):
- (WebCore::KCanvasMasker::setMask):
- (WebCore::KCanvasMasker::externalRepresentation):
- (WebCore::getMaskerById):
- * kcanvas/KCanvasMasker.h: Added.
- * kcanvas/KCanvasResource.cpp: Added.
- (WebCore::KCanvasResource::invalidate):
- (WebCore::KCanvasResource::externalRepresentation):
- (WebCore::getResourceById):
- (WebCore::getPaintServerById):
- * kcanvas/KCanvasResource.h: Added.
- * kcanvas/KCanvasResources.cpp: Removed.
- * kcanvas/KCanvasResources.h: Removed.
- * kcanvas/RenderPath.cpp:
- * kcanvas/RenderSVGContainer.cpp:
- * kcanvas/RenderSVGImage.cpp:
- * kcanvas/RenderSVGText.cpp:
- * kcanvas/device/KRenderingPaintServer.h:
- * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
- * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- * ksvg2/svg/SVGFilterElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.h:
- 2006-09-19 Brady Eidson <beidson@apple.com>
- Reviewed by Sarge Decker
- <rdar://problem/4739892> and <rdar://problem/4729797>
- - WebCore::IconDatabase needs to have and respect an enabled() flag
- - Mail on ToT WebKit crashes in IconDatabase code when mailing a page from Safari
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge _setEnabled:]): Added
- (-[WebCoreIconDatabaseBridge _isEnabled]): Added
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open): Don't open if disabled
- (WebCore::IconDatabase::removeAllIcons): Ignore if disabled/closed
- (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ignore if disabled/closed
- (WebCore::IconDatabase::iconForPageURL): Default Icon if disabled/closed
- (WebCore::IconDatabase::isIconExpiredForIconURL): Default return if disabled/closed
- (WebCore::IconDatabase::iconURLForPageURL): Default return if disabled/closed
- (WebCore::IconDatabase::retainIconForPageURL): Ignore if disabled/closed
- (WebCore::IconDatabase::releaseIconForPageURL): Ignore if disabled/closed
- (WebCore::IconDatabase::releaseIconURL):
- (WebCore::IconDatabase::setIconDataForIconURL): Ignore if disabled/closed
- (WebCore::IconDatabase::setIconURLForPageURL): Ignore if disabled/closed
- (WebCore::IconDatabase::hasEntryForIconURL): Default return if disabled/closed
- (WebCore::IconDatabase::setEnabled): Added
- * loader/icon/IconDatabase.h:
- (WebCore::IconDatabase::enabled): Added
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading): do an IconDatabase::enabled() check before bothering to load the icon
- * platform/mac/ResourceLoaderMac.mm: Removed extraneous #include
- 2006-09-20 David Hyatt <hyatt@apple.com>
- Massage mouse wheel handling so that it is more cross-platform. Make
- all the work happen in handleWheelEvent on the FrameView.
- Reviewed by bradee-oh
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::wheelEvent):
- * page/FrameView.cpp:
- (WebCore::FrameView::handleWheelEvent):
- * platform/PlatformWheelEvent.h:
- (WebCore::PlatformWheelEvent::platformDelta):
- (WebCore::PlatformWheelEvent::delta):
- * platform/mac/WheelEventMac.mm:
- (WebCore::platformDeltaForEvent):
- (WebCore::PlatformWheelEvent::PlatformWheelEvent):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::scroll):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::scroll):
- 2006-09-19 Eric Seidel <eric@webkit.org>
- Reviewed by adele.
- Improve test output for filters with bounding-box relative sizes.
- http://bugs.webkit.org/show_bug.cgi?id=8585
- Many test results updated.
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::KCanvasFilter::externalRepresentation):
- 2006-09-19 Eric Seidel <eric@webkit.org>
- Reviewed by adele.
-
- Markers should clip to their viewport.
- http://bugs.webkit.org/show_bug.cgi?id=5967
- Test: svg/custom/marker-overflow-clip.svg
- * kcanvas/KCanvasResources.cpp:
- (WebCore::KCanvasMarker::KCanvasMarker):
- (WebCore::KCanvasMarker::setMarker):
- (WebCore::KCanvasMarker::draw):
- * kcanvas/KCanvasResources.h:
- (WebCore::KCanvasMasker::mask):
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::parseMappedAttribute):
- (WebCore::SVGMarkerElement::canvasResource):
- (WebCore::SVGMarkerElement::createRenderer):
- 2006-09-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by eseidel
- Backing out my recent change.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle):
- 2006-09-19 Brady Eidson <beidson@apple.com>
- Reviewed by Kevin McCullough
- http://bugs.webkit.org/show_bug.cgi?id=10940
- Opening a PDF in a new tab/window creates a documentless-frame
- and we deref the document without checking its validity
- * page/Frame.cpp:
- (WebCore::Frame::iconURL):
- 2006-09-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4735272>
- Can not click into link in programmatically editable content
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle): We stopped using
- userModify to implement document wide editability.
- 2006-09-19 Darin Fisher <darin@chromium.org>
- Reviewed by Darin and landed by Brady
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10939
- Build broken when SVG is not enabled.
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::startElementNs):
- 2006-09-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4727383> REGRESSION: Pasting plain text with tabs into Blot converts the tabs to single spaces
- Pasting plain text results in a match style paste, and the insertion
- position is whitespace normal, which clobbers the whitespace:pre on
- tab spans. Skip changes to the whitespace mode when computing a style
- change for tab spans or the text nodes inside tab spans.
- * editing/ApplyStyleCommand.cpp:
- (WebCore::StyleChange::init): Don't change the whitespace mode inside
- tab spans.
- 2006-09-19 David Hyatt <hyatt@apple.com>
- Fix for bug 5298, shape=default not supported for image maps. Implement
- support for it.
- Reviewed by timo
- * html/HTMLAreaElement.cpp:
- (WebCore::HTMLAreaElement::getRegion):
- * html/HTMLMapElement.cpp:
- (WebCore::HTMLMapElement::mapMouseEvent):
- 2006-09-19 Adam Roben <aroben@apple.com>
- Reviewed by Adele.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10824
- "no file selected" placeholder text missing from file upload control
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/RenderFileUploadControl.cpp: Remove class
- RenderFileUploadInnerFileBox, rename defaultFilenameNumChars to
- defaultWidthNumChars
- (WebCore::RenderFileUploadControl::RenderFileUploadControl): Call
- RenderBlock constructor instead of RenderFlexibleBox,
- (WebCore::RenderFileUploadControl::setStyle): Remove references to
- m_fileBox.
- (WebCore::RenderFileUploadControl::valueChanged): Call repaint()
- instead of updateIconAndFileName() (which has been removed)
- (WebCore::RenderFileUploadControl::updateFromElement): Remove
- references to m_fileBox, don't call updateIconAndFilename()
- (WebCore::RenderFileUploadControl::maxFilenameWidth): Calculate width
- without using m_fileBox
- (WebCore::RenderFileUploadControl::createButtonStyle): Remove
- now-unnecessary display:box rule.
- (WebCore::RenderFileUploadControl::paintObject): Remove redundant call
- to paintingDisabled() now that Icon::paint() does it, and add code to
- paint the filename directly.
- (WebCore::RenderFileUploadControl::calcMinMaxWidth): Move this method
- out of RenderFileUploadInnerFileBox and into RenderFileUploadControl
- * rendering/RenderFileUploadControl.h: Make RenderFileUploadControl a
- subclass of RenderBlock instead of RenderFlexibleBox, remove
- updateIconAndFilename() method, remove m_fileBox instance variable.
- 2006-09-19 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
- Exceptions thrown from <script> tags in XHTML/SVG docs show the wrong line numbers
- http://bugs.webkit.org/show_bug.cgi?id=10846
-
- No automated test case possible until http://bugs.webkit.org/show_bug.cgi?id=10905 is resolved.
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::XMLTokenizer):
- (WebCore::XMLTokenizer::startElementNs):
- (WebCore::XMLTokenizer::endElementNs):
- 2006-09-19 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by eseidel. Landed by eseidel.
-
- Build fix only, no tests affected.
- * platform/gdk/FontPlatformDataGdk.cpp:
- (WebCore::FontPlatformData::FontPlatformData):
- (WebCore::FontPlatformData::~FontPlatformData):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::isLoadTypeReload):
- (FrameGdk::originalRequestURL):
- (IconDatabase::setIconURLForPageURL):
- 2006-09-19 David Hyatt <hyatt@apple.com>
- Refine the fix for 9805 to really get all the complex cases right.
- Reviewed by Eric
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::clearFloatsIfNeeded):
- (WebCore::RenderBlock::handleBottomOfBlock):
- 2006-09-18 David Hyatt <hyatt@apple.com>
- Fix for 9805, <hr> not positioned properly following a previous empty sibling
- that had clear:both set on it. Update self-collapsing block clearance
- behavior to match what is specified in the latest draft of CSS2.1.
- Reviewed by Eric
- Added fast/block/margin-collapse/empty-clear-blocks.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::clearFloatsIfNeeded):
- (WebCore::RenderBlock::handleBottomOfBlock):
- 2006-09-18 Darin Fisher <darin@chromium.org>
- Reviewed by Brady, landed by Brady
- Send receivedResponse callback to ResourceLoaderClient when loading
- file URLs.
- See http://bugs.webkit.org/show_bug.cgi?id=10845
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoader::fileLoadTimer):
- 2006-09-18 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- <rdar://problem/3028061> - WebKit never updates favicon
- The WebKit enforced expiration date for icons has worked for some time, but the
- move to the new Icon Loader broke the "always get the icon if the user refreshes the page"
- functionality. This patch fixes that up, along with some other architectural improvements,
- the main one being that WebCore::Document now contains an iconURL for the Frame to query if needed.
- * bridge/mac/FrameMac.h: Added isLoadTypeReload()
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::isLoadTypeReload): Implementation, calls into the bridge
- * bridge/mac/WebCoreFrameBridge.h: Added isLoadTypeReload:
- * bridge/win/FrameWin.h: Added isLoadTypeReload() for temporary link stub
- * dom/Document.h: Added m_iconURL
- (WebCore::Document::iconURL): Added
- (WebCore::Document::setIconURL): Ditto
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::process): Sets the iconURL in the Document instead of the Frame
- * page/Frame.cpp:
- (WebCore::Frame::iconURL): Calculates the iconURL based on the document, then the default favicon.ico url
- (WebCore::Frame::endIfNotLoading): Checks for the load type - always loads icon on Reload
- * page/Frame.h: Nuked setIconURL(), added isLoadTypeReload()
- * page/FramePrivate.h: Nuked IconURL
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::isLoadTypeReload):
- 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - Re-add private method [DOMRGBColor _color] to DOMPrivate.h as
- it is it turns out that AppKit uses it.
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMRGBColor.mm:
- (-[DOMRGBColor _color]):
- 2006-09-18 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10903
- Yet Another Objective-C Bindings Patch
- - Whitespace cleanup for IDLParser.pm
- - Split DOMException, DOMRangeException, DOMXPathException, DOMEventsException
- and DOMAbstractView into their own files.
- - Remove private method [DOMRGBColor _color] from DOMPrivate.h as
- it is not used and a public method is available now.
- - Remove internal method [DOMDocument _ownerElement] from DOMInternal.h
- as it not used.
- - Auto-generate method isContentEditable for DOMNode.
- - General cleanup of bindings code including removing unneeded #imports
- and whitespace cleanup
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (addElementClass):
- (elementClass):
- (-[DOMNode _initWithNode:WebCore::]):
- (+[DOMNode _nodeWith:WebCore::]):
- (-[DOMNode WebCore::]):
- (-[DOMNode KJS::Bindings::]):
- (-[DOMNode addEventListener:::]):
- (-[DOMNode removeEventListener:::]):
- (-[DOMNode dispatchEvent:]):
- (-[DOMElement image]):
- (-[DOMElement _font]):
- (-[DOMElement _imageTIFFRepresentation]):
- (-[DOMElement _getURLAttribute:]):
- (-[DOMElement _NPObject]):
- (-[DOMElement isFocused]):
- (-[DOMRange dealloc]):
- (-[DOMRange finalize]):
- (-[DOMRange description]):
- (-[DOMRange startContainer]):
- (-[DOMRange startOffset]):
- (-[DOMRange endContainer]):
- (-[DOMRange endOffset]):
- (-[DOMRange collapsed]):
- (-[DOMRange commonAncestorContainer]):
- (-[DOMRange setStart::]):
- (-[DOMRange setEnd::]):
- (-[DOMRange setStartBefore:]):
- (-[DOMRange setStartAfter:]):
- (-[DOMRange setEndBefore:]):
- (-[DOMRange setEndAfter:]):
- (-[DOMRange collapse:]):
- (-[DOMRange selectNode:]):
- (-[DOMRange selectNodeContents:]):
- (-[DOMRange compareBoundaryPoints::]):
- (-[DOMRange deleteContents]):
- (-[DOMRange extractContents]):
- (-[DOMRange cloneContents]):
- (-[DOMRange insertNode:]):
- (-[DOMRange surroundContents:]):
- (-[DOMRange cloneRange]):
- (-[DOMRange toString]):
- (-[DOMRange detach]):
- (-[DOMRange _initWithRange:WebCore::]):
- (+[DOMRange _rangeWith:WebCore::]):
- (-[DOMRange WebCore::]):
- (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
- (+[DOMNodeFilter _nodeFilterWith:WebCore::]):
- (-[DOMNodeFilter WebCore::]):
- (-[DOMNodeFilter dealloc]):
- (-[DOMNodeFilter finalize]):
- (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
- (-[DOMNodeIterator WebCore::]):
- (+[DOMNodeIterator _nodeIteratorWith:WebCore::filter:]):
- (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
- (-[DOMTreeWalker WebCore::]):
- (+[DOMTreeWalker _treeWalkerWith:WebCore::filter:]):
- (ObjCNodeFilterCondition::acceptNode):
- (-[DOMDocument createNodeIterator::::]):
- (-[DOMDocument createTreeWalker::::]):
- (ObjCEventListener::find):
- (ObjCEventListener::create):
- (ObjCEventListener::handleEvent):
- * bindings/objc/DOMAbstractView.h: Added.
- * bindings/objc/DOMAbstractView.mm: Added.
- (-[DOMAbstractView document]):
- (-[DOMAbstractView WebCore::]):
- (-[DOMAbstractView _initWithAbstractView:WebCore::]):
- (+[DOMAbstractView _abstractViewWith:WebCore::]):
- * bindings/objc/DOMCSS.mm:
- (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
- (+[DOMStyleSheet _styleSheetWith:WebCore::]):
- (+[DOMCSSStyleSheet _CSSStyleSheetWith:WebCore::]):
- (-[DOMCSSRule _initWithRule:WebCore::]):
- (+[DOMCSSRule _CSSRuleWith:WebCore::]):
- (-[DOMCSSValue _initWithValue:WebCore::]):
- (+[DOMCSSValue _CSSValueWith:WebCore::]):
- (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:WebCore::]):
- (-[DOMDocument getComputedStyle::]):
- (-[DOMDocument getMatchedCSSRules::]):
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMEventException.h: Added.
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- * bindings/objc/DOMException.h: Added.
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
- (viewForElement):
- (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
- (-[DOMHTMLInputElement _selectedRange]):
- (-[DOMHTMLInputElement _setAutofilled:]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMObject.h:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMRange.h:
- * bindings/objc/DOMRangeException.h: Added.
- * bindings/objc/DOMViews.h:
- * bindings/objc/DOMViews.mm: Removed.
- * bindings/objc/DOMXPath.h:
- * bindings/objc/DOMXPathException.h: Added.
- * bindings/scripts/IDLParser.pm:
- * dom/Node.idl:
- 2006-09-18 Brady Eidson <beidson@apple.com>
- Windows build fix
- * platform/win/TemporaryLinkStubs.cpp:
- (IconDatabase::setIconURLForPageURL):
- 2006-09-18 David Hyatt <hyatt@apple.com>
- Fix for bug 3969, hr width doesn't update when it clears a float. This
- was also a problem with tables and overflow sections.
- Reviewed by Eric
- Added fast/block/float/width-update-after-clear.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::collapseMargins):
- (WebCore::RenderBlock::clearFloatsIfNeeded):
- 2006-09-18 Brady Eidson <beidson@apple.com>
- Reviewed by John
- http://bugs.webkit.org/show_bug.cgi?id=10907
- REGRESSION: New Icon Loaders don't handle certain non-server-root URLs correctly
- * bridge/mac/FrameMac.h: Changed originalRequestURL() to virtual
- * bridge/win/FrameWin.h: Added originalRequestURL()
- * loader/icon/IconLoader.cpp:
- (IconLoader::receivedAllData): Moved the "pageURL to iconURL mapping logic" to Frame::commitIconURLToIconDatabase()
- * page/Frame.cpp:
- (WebCore::Frame::iconURL): Construct the icon URL from *only* the protocol and host of the frame's url.
- (WebCore::Frame::endIfNotLoading): Call commitIconURLToIconDatabase() if we're not kicking off an icon load
- (WebCore::Frame::commitIconURLToIconDatabase): Map the completed doc's pageURL to the iconURL
- * page/Frame.h: Added pure virtual originalRequestURL()
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::originalRequestURL): Added
- 2006-09-18 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10807
- REGRESSION (r16259): Repro crash on manual-tests/svg-repaint-image.svg
- Make sure the paint method is not exited without popping
- context and transparency layer.
- WARNING: NO TEST CASES ADDED OR CHANGED
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- 2006-09-18 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Eric.
-
- - fix for http://bugs.webkit.org/show_bug.cgi?id=10896
- REGRESSION: WebKit can't be built with SVG disabled
-
- * bindings/scripts/CodeGeneratorObjC.pm:
- For each file generated add a #ifdef <something>_SUPPORT / #endif
- pair if the idl file has a Conditional extended attribute
- 2006-09-17 Eric Seidel <eric@webkit.org>
- Reviewed by ap.
-
- REGRESSION (r16245): double-clicking on javascript exceptions fails to show source
- http://bugs.webkit.org/show_bug.cgi?id=10813
- * bridge/mac/WebCoreFrameBridge.mm:
- (+[WebCoreFrameBridge stringWithData:textEncodingName:]):
- 2006-09-17 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=10779
- REGRESSION: Animated GIF ignores frame intervals and loops infinitely
- No test possible.
- * platform/Image.cpp:
- (WebCore::Image::shouldAnimate): Don't check that there is more than one frame,
- maybe the rest just hasn't been loaded yet.
- (WebCore::Image::startAnimation): Move the frame count check here - there is no need
- to start animating before we get at least two frames.
- 2006-09-17 Brady Eidson <beidson@apple.com>
- Reviewed by Sarge
- IconLoader now gracefully handles the condition where there's no document in the frame
- (ie. PDFs)
- * loader/icon/IconLoader.cpp:
- (IconLoader::startLoading):
- 2006-09-17 David Hyatt <hyatt@apple.com>
- Fix for bug 10899, rework how CSS keywords work to be smarter about
- using the correct size when generic families change (e.g., monospace to
- serif and vice versa).
- Reviewed by aroben
- Added fast/text/basic/generic-family-changes.html
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
- (WebCore::CSSStyleSelector::fontSizeForKeyword):
- * css/cssstyleselector.h:
- * dom/Document.cpp:
- (WebCore::Document::recalcStyle):
- * platform/FontDescription.h:
- (WebCore::FontDescription::FontDescription):
- (WebCore::FontDescription::keywordSize):
- (WebCore::FontDescription::setKeywordSize):
- (WebCore::FontDescription::operator==):
- 2006-09-17 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Brady.
- http://bugs.webkit.org/show_bug.cgi?id=10852
- REGRESSION: Reproducible crash in XMLHttpRequest::abort()
- Test: http/tests/xmlhttprequest/xhr-onunload.html
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send): Check the return value of ResourceLoader::start().
- * loader/icon/IconLoader.cpp:
- (IconLoader::startLoading): Fix a similar latent bug here.
- 2006-09-17 Adam Roben <aroben@apple.com>
- Build fix.
- * loader/icon/IconDatabase.cpp:
- 2006-09-17 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Brady.
- Add simplifyWhiteSpace and stripWhiteSpace to the String class.
- Change the XSLT Parameter Map to use Strings instead of StringImpls.
- General cleanup.
- * bindings/js/JSXSLTProcessor.cpp:
- (KJS::XSLTProcessorProtoFunc::callAsFunction):
- * bindings/js/kjs_events.cpp:
- (KJS::JSAbstractEventListener::handleEvent):
- * bindings/js/kjs_window.cpp:
- (KJS::ScheduledAction::execute):
- * css/MediaList.cpp:
- (WebCore::MediaList::setMediaText):
- * dom/Document.cpp:
- (WebCore::Document::processHttpEquiv):
- * editing/ApplyStyleCommand.cpp:
- (WebCore::StyleChange::init):
- * html/HTMLDocument.cpp:
- (WebCore::parseDocTypeDeclaration):
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::parseMappedAttribute):
- * html/HTMLObjectElement.cpp:
- (WebCore::HTMLObjectElement::HTMLObjectElement):
- (WebCore::HTMLObjectElement::parseMappedAttribute):
- (WebCore::HTMLObjectElement::attach):
- (WebCore::HTMLObjectElement::setComplete):
- (WebCore::HTMLObjectElement::detach):
- (WebCore::HTMLObjectElement::recalcStyle):
- (WebCore::HTMLObjectElement::childrenChanged):
- (WebCore::HTMLObjectElement::isImageType):
- * html/HTMLObjectElement.h:
- * html/HTMLOptionElement.cpp:
- (WebCore::HTMLOptionElement::value):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::appendFormData):
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::parseTag):
- * ksvg2/svg/SVGColor.cpp:
- (WebCore::SVGColor::setRGBColor):
- * ksvg2/svg/SVGDescElement.cpp:
- (WebCore::SVGDescElement::description):
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::stripWhiteSpace):
- (WebCore::String::simplifyWhiteSpace):
- * platform/StringImpl.cpp:
- (WebCore::isSpace):
- (WebCore::parseLength):
- (WebCore::StringImpl::stripWhiteSpace):
- (WebCore::StringImpl::simplifyWhiteSpace):
- (WebCore::StringImpl::toInt):
- * platform/StringImpl.h:
- * platform/mac/ClipboardMac.mm:
- (WebCore::cocoaTypeFromMIMEType):
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::updateWidget):
- * xml/XPathFunctions.cpp:
- (WebCore::XPath::FunNormalizeSpace::doEvaluate):
- * xml/XPathGrammar.y:
- * xml/XPathStep.cpp:
- (WebCore::XPath::Step::nodeTestMatches):
- * xml/XSLStyleSheet.cpp:
- (WebCore::XSLStyleSheet::loadChildSheets):
- (WebCore::XSLStyleSheet::locateStylesheetSubResource):
- * xml/XSLTProcessor.cpp:
- (WebCore::xsltParamArrayFromParameterMap):
- (WebCore::XSLTProcessor::setParameter):
- (WebCore::XSLTProcessor::getParameter):
- (WebCore::XSLTProcessor::removeParameter):
- * xml/XSLTProcessor.h:
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::getStatusText):
- 2006-09-17 David Hyatt <hyatt@apple.com>
- Fix for bugzilla bugs 10895 and 6336, fieldsets misbehaving when floats
- are declared right before the fieldsets. It turns out fieldsets in other
- browsers avoid floats (like overflow:auto/hidden/scroll sections do), so
- adding that behavior to fieldset fixes the bug.
- Made avoidsFloats virtual and did some refactoring to make tables, flexboxes
- and fieldsets all subclass.
- Reviewed by anders
- Added fast/forms/float-before-fieldset.html
- * rendering/RenderFieldset.h:
- (WebCore::RenderFieldset::avoidsFloats):
- * rendering/RenderFlexibleBox.h:
- (WebCore::RenderFlexibleBox::avoidsFloats):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::avoidsFloats):
- * rendering/RenderObject.h:
- * rendering/RenderTable.h:
- (WebCore::RenderTable::avoidsFloats):
- 2006-09-17 David Hyatt <hyatt@apple.com>
- Fix for bugzilla bug 3240, implement support for the HTML4 "frame" and
- "rules" attributes on tables.
- Reviewed by bradee-oh
- Well-covered by existing layout tests.
- * html/HTMLTableCellElement.cpp:
- (WebCore::HTMLTableCellElement::additionalAttributeStyleDecl):
- * html/HTMLTableColElement.cpp:
- (WebCore::HTMLTableColElement::additionalAttributeStyleDecl):
- * html/HTMLTableColElement.h:
- * html/HTMLTableElement.cpp:
- (WebCore::HTMLTableElement::HTMLTableElement):
- (WebCore::HTMLTableElement::~HTMLTableElement):
- (WebCore::HTMLTableElement::setCaption):
- (WebCore::HTMLTableElement::setTHead):
- (WebCore::HTMLTableElement::setTFoot):
- (WebCore::HTMLTableElement::setTBody):
- (WebCore::HTMLTableElement::createTHead):
- (WebCore::HTMLTableElement::deleteTHead):
- (WebCore::HTMLTableElement::createTFoot):
- (WebCore::HTMLTableElement::deleteTFoot):
- (WebCore::HTMLTableElement::createCaption):
- (WebCore::HTMLTableElement::deleteCaption):
- (WebCore::HTMLTableElement::insertRow):
- (WebCore::HTMLTableElement::deleteRow):
- (WebCore::HTMLTableElement::addChild):
- (WebCore::HTMLTableElement::childrenChanged):
- (WebCore::HTMLTableElement::mapToEntry):
- (WebCore::HTMLTableElement::parseMappedAttribute):
- (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
- (WebCore::HTMLTableElement::getSharedCellDecl):
- (WebCore::HTMLTableElement::getSharedGroupDecl):
- (WebCore::HTMLTableElement::attach):
- * html/HTMLTableElement.h:
- (WebCore::HTMLTableElement::caption):
- (WebCore::HTMLTableElement::tHead):
- (WebCore::HTMLTableElement::tFoot):
- (WebCore::HTMLTableElement::):
- * html/HTMLTableRowElement.h:
- * html/HTMLTableSectionElement.cpp:
- (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecl):
- * html/HTMLTableSectionElement.h:
- 2006-09-17 David Hyatt <hyatt@apple.com>
- Fix for bugzilla bug 4192, font size wrong for <tt> elements that
- specify their own new font-family list. Make sure to always
- reset the generic family along with the family list when mapping in
- new font-family values.
- Reviewed by bradee-oh
- fast/text/basic/generic-family-reset.html
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- 2006-09-16 Brady Eidson <beidson@apple.com>
- Reviewed by Hyatt
- Pruning code relating to WebKit's icon loader
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- * loader/icon/IconDatabase.h:
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to
- its new home
- 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10885
- Auto-generate DOMHTMLDocument for the Objective-C bindings
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLDocument createDocumentFragmentWithText:]):
- * bindings/objc/DOMHTMLDocument.h: Removed.
- * bindings/objc/DOMHTMLDocument.mm: Removed.
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * html/HTMLDocument.idl:
- * platform/DeprecatedString.h:
- (WebCore::DeprecatedString::operator NSString*):
- 2006-09-16 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10866
- Code in kcanvas/ should not use Private
- Remove Private classes and tweak coding style.
- WARNING: NO TEST CASES ADDED OR CHANGED
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::RenderPath):
- (WebCore::RenderPath::~RenderPath):
- (WebCore::RenderPath::localTransform):
- (WebCore::RenderPath::setLocalTransform):
- (WebCore::RenderPath::fillContains):
- (WebCore::RenderPath::relativeBBox):
- (WebCore::RenderPath::setPath):
- (WebCore::RenderPath::path):
- (WebCore::RenderPath::layout):
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::RenderSVGContainer):
- (WebCore::RenderSVGContainer::~RenderSVGContainer):
- (WebCore::RenderSVGContainer::drawsContents):
- (WebCore::RenderSVGContainer::setDrawsContents):
- (WebCore::RenderSVGContainer::localTransform):
- (WebCore::RenderSVGContainer::setLocalTransform):
- (WebCore::RenderSVGContainer::layout):
- (WebCore::RenderSVGContainer::paint):
- (WebCore::RenderSVGContainer::setViewport):
- (WebCore::RenderSVGContainer::viewport):
- (WebCore::RenderSVGContainer::setViewBox):
- (WebCore::RenderSVGContainer::viewBox):
- (WebCore::RenderSVGContainer::setAlign):
- (WebCore::RenderSVGContainer::align):
- (WebCore::RenderSVGContainer::fillContains):
- (WebCore::RenderSVGContainer::strokeContains):
- (WebCore::RenderSVGContainer::setSlice):
- (WebCore::RenderSVGContainer::slice):
- * kcanvas/RenderSVGContainer.h:
- * kcanvas/device/KRenderingFillPainter.cpp:
- (WebCore::KRenderingFillPainter::KRenderingFillPainter):
- (WebCore::KRenderingFillPainter::~KRenderingFillPainter):
- (WebCore::KRenderingFillPainter::fillRule):
- (WebCore::KRenderingFillPainter::setFillRule):
- (WebCore::KRenderingFillPainter::opacity):
- (WebCore::KRenderingFillPainter::setOpacity):
- * kcanvas/device/KRenderingFillPainter.h:
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- (WebCore::KRenderingPaintServerGradient::KRenderingPaintServerGradient):
- (WebCore::KRenderingPaintServerGradient::~KRenderingPaintServerGradient):
- (WebCore::KRenderingPaintServerGradient::gradientStops):
- (WebCore::KRenderingPaintServerGradient::setGradientStops):
- (WebCore::KRenderingPaintServerGradient::spreadMethod):
- (WebCore::KRenderingPaintServerGradient::setGradientSpreadMethod):
- (WebCore::KRenderingPaintServerGradient::boundingBoxMode):
- (WebCore::KRenderingPaintServerGradient::setBoundingBoxMode):
- (WebCore::KRenderingPaintServerGradient::gradientTransform):
- (WebCore::KRenderingPaintServerGradient::setGradientTransform):
- (WebCore::KRenderingPaintServerLinearGradient::KRenderingPaintServerLinearGradient):
- (WebCore::KRenderingPaintServerLinearGradient::~KRenderingPaintServerLinearGradient):
- (WebCore::KRenderingPaintServerLinearGradient::gradientStart):
- (WebCore::KRenderingPaintServerLinearGradient::setGradientStart):
- (WebCore::KRenderingPaintServerLinearGradient::gradientEnd):
- (WebCore::KRenderingPaintServerLinearGradient::setGradientEnd):
- (WebCore::KRenderingPaintServerRadialGradient::KRenderingPaintServerRadialGradient):
- (WebCore::KRenderingPaintServerRadialGradient::~KRenderingPaintServerRadialGradient):
- (WebCore::KRenderingPaintServerRadialGradient::gradientCenter):
- (WebCore::KRenderingPaintServerRadialGradient::setGradientCenter):
- (WebCore::KRenderingPaintServerRadialGradient::gradientFocal):
- (WebCore::KRenderingPaintServerRadialGradient::setGradientFocal):
- (WebCore::KRenderingPaintServerRadialGradient::gradientRadius):
- (WebCore::KRenderingPaintServerRadialGradient::setGradientRadius):
- (WebCore::KRenderingPaintServerGradient::listener):
- (WebCore::KRenderingPaintServerGradient::setListener):
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
- (WebCore::KRenderingPaintServerPattern::setBbox):
- (WebCore::KRenderingPaintServerPattern::bbox):
- (WebCore::KRenderingPaintServerPattern::boundingBoxMode):
- (WebCore::KRenderingPaintServerPattern::setBoundingBoxMode):
- (WebCore::KRenderingPaintServerPattern::tile):
- (WebCore::KRenderingPaintServerPattern::setTile):
- (WebCore::KRenderingPaintServerPattern::patternTransform):
- (WebCore::KRenderingPaintServerPattern::setPatternTransform):
- (WebCore::KRenderingPaintServerPattern::listener):
- (WebCore::KRenderingPaintServerPattern::setListener):
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- (WebCore::KRenderingPaintServerSolid::KRenderingPaintServerSolid):
- (WebCore::KRenderingPaintServerSolid::~KRenderingPaintServerSolid):
- (WebCore::KRenderingPaintServerSolid::color):
- (WebCore::KRenderingPaintServerSolid::setColor):
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/KRenderingStrokePainter.cpp:
- (WebCore::KRenderingStrokePainter::KRenderingStrokePainter):
- (WebCore::KRenderingStrokePainter::~KRenderingStrokePainter):
- (WebCore::KRenderingStrokePainter::strokeWidth):
- (WebCore::KRenderingStrokePainter::setStrokeWidth):
- (WebCore::KRenderingStrokePainter::strokeMiterLimit):
- (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
- (WebCore::KRenderingStrokePainter::strokeCapStyle):
- (WebCore::KRenderingStrokePainter::setStrokeCapStyle):
- (WebCore::KRenderingStrokePainter::strokeJoinStyle):
- (WebCore::KRenderingStrokePainter::setStrokeJoinStyle):
- (WebCore::KRenderingStrokePainter::dashOffset):
- (WebCore::KRenderingStrokePainter::setDashOffset):
- (WebCore::KRenderingStrokePainter::dashArray):
- (WebCore::KRenderingStrokePainter::setDashArray):
- (WebCore::KRenderingStrokePainter::opacity):
- (WebCore::KRenderingStrokePainter::setOpacity):
- (WebCore::KRenderingStrokePainter::dirty):
- (WebCore::KRenderingStrokePainter::setDirty):
- * kcanvas/device/KRenderingStrokePainter.h:
- 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Anders.
- http://bugs.webkit.org/show_bug.cgi?id=10887
- Fix build error
- * bindings/objc/DOMPrivate.h: Remove reference to DOMEventPrivate.h.
- 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Anders.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=10886
- REGRESSION (r16387): Reproducible crash when mousing over HTML document
- - Special case method [DOMNode ownerDocument] to call document() instead
- or ownerDocument() to return to the old behavior.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-09-15 Brady Eidson <beidson@apple.com>
- Reviewed by Tim Hatcher
- <rdar://problem/4730811> - New IconDatabase needs to attempt to create its path.
- Otherwise new installs and new user accounts won't have any icons because the icon.db cannot be created
- * loader/icon/IconDatabase.cpp: Removed a now obsolete FIXME
- (WebCore::makeAllDirectories): Added - candidate to be in a header for "platform neutral file utilities"
- (WebCore::IconDatabase::open): Make sure the directory exists
- 2006-09-15 Timothy Hatcher <timothy@apple.com>
- Reviewed by Brady.
- Make new style ObjC methods public API.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/PublicDOMInterfaces.h:
- 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10870
- Auto-generate DOMNode for the Objective-C bindings
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMNode boundingBox]):
- (-[DOMNode lineBoxRects]):
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMNode.h: Removed.
- * bindings/objc/DOMNode.mm: Removed.
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/Node.idl:
- 2006-09-15 Timothy Hatcher <timothy@apple.com>
- Reviewed by Justin.
- Removed alter selection logic from WebCoreFrameBridge and moved to SelectionController.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge centerSelectionInVisibleArea]):
- (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
- (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
- (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
- (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
- (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
- (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
- (-[WebCoreFrameBridge increaseSelectionListLevel]):
- (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
- (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
- (-[WebCoreFrameBridge decreaseSelectionListLevel]):
- (-[WebCoreFrameBridge insertLineBreak]):
- (-[WebCoreFrameBridge insertParagraphSeparator]):
- (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
- (-[WebCoreFrameBridge insertText:selectInsertedText:]):
- (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
- (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
- (createMouseEventFromDraggingInfo):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::moveTo):
- (WebCore::SelectionController::setSelection):
- (WebCore::SelectionController::modify):
- (WebCore::SelectionController::setBase):
- (WebCore::SelectionController::setExtent):
- * editing/SelectionController.h:
- * page/Frame.cpp:
- (WebCore::Frame::revealSelection):
- (WebCore::Frame::revealCaret):
- * page/Frame.h:
- 2006-09-15 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- Added the ability to get a mutable char* from a CString, which will copy the internal
- buffer if the ref count is greater than 1 so your mutable char* won't affect any other
- referrer of that buffer.
- * platform/CString.cpp:
- (WebCore::CString::mutableData):
- (WebCore::CString::copyBufferIfNeeded):
- * platform/CString.h:
- 2006-09-15 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4674869>
- REGRESSION: selecting text to write over results in cursor jumping to middle of next line
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::modify): Added lineBoundary to test fix.
- * editing/visible_units.cpp:
- (WebCore::endOfLine): If the last box on the line is a lineBreak, return the
- position before it, not after it.
- 2006-09-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=10864
- Bug 10864: Linux\GDK build fixes
- * Projects/gdk/webcore-gdk.bkl:
- * WebCoreSources.bkl:
- * platform/gdk/FontCacheGdk.cpp:
- * platform/gdk/FontDataGdk.cpp:
- (WebCore::FontData::platformInit):
- * platform/gdk/FontGdk.cpp:
- (WebCore::Font::drawGlyphs):
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::handleGdkEvent):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/ImageGdk.cpp: Added.
- (WebCore::Image::initPlatformData):
- (WebCore::Image::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- (WebCore::Image::supportsType):
- * platform/gdk/RenderPopupMenuGdk.cpp:
- (WebCore::RenderPopupMenuGdk::hidePopup):
- * platform/gdk/RenderPopupMenuGdk.h:
- * platform/gdk/ScreenGdk.cpp:
- (WebCore::drawableForPage):
- (WebCore::screenRect):
- (WebCore::screenDepth):
- (WebCore::usableScreenRect):
- (WebCore::scaleFactor):
- * platform/gdk/SystemTimeLinux.cpp:
- (WebCore::currentTime):
- * platform/gdk/TemporaryLinkStubs.cpp:
- (FrameGdk::bindingRootObject):
- (FrameGdk::markMisspellings):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::fileButtonNoFileSelectedLabel):
- (FrameGdk::shouldChangeSelection):
- (FrameGdk::respondToChangedSelection):
- (FrameGdk::respondToChangedContents):
- (Path::contains):
- (PlatformScrollBar::PlatformScrollBar):
- (PlatformScrollBar::~PlatformScrollBar):
- (PlatformScrollBar::width):
- (PlatformScrollBar::height):
- (PlatformScrollBar::setEnabled):
- (PlatformScrollBar::paint):
- (PlatformScrollBar::setScrollBarValue):
- (PlatformScrollBar::setKnobProportion):
- (PlatformScrollBar::setRect):
- (ScrollBar::ScrollBar):
- (FileChooser::FileChooser):
- (FileChooser::~FileChooser):
- (FileChooser::openFileChooser):
- (FileChooser::basenameForWidth):
- (FileChooser::uploadControlDetaching):
- (FileChooser::chooseFile):
- (Icon::Icon):
- (Icon::~Icon):
- (Icon::newIconForFile):
- (Icon::paint):
- (IconLoader::stopLoading):
- (IconLoader::startLoading):
- (IconLoader::createForFrame):
- (IconDatabase::isIconExpiredForIconURL):
- (IconDatabase::hasEntryForIconURL):
- (IconDatabase::sharedIconDatabase):
- * platform/gdk/WidgetGdk.cpp:
- * webcore-base.bkl:
- 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10835
- Fix svg memory leaks.
- Reworked SVGList to deal with RefPtr's for ptr types
- which makes manual refcounting unnecessary, and is much safer.
- Removing all virtual functions (nullItem) from SVGList, and
- also remove SVGListBase. Switch to a similar concept like
- Vector/VectorTraits (see new file SVGListTraits.h).
- Credits go to Eric/Maciej for the inspiration.
- * CMakeLists.txt: Add SVGListTraits.cpp to build
- * WebCore.xcodeproj/project.pbxproj: Ditto.
- * bindings/scripts/CodeGeneratorJS.pm: Generator changes for SVGTransform/PathSeg/LengthList (now RefPtr based)
- * kcanvas/RenderSVGText.cpp: Add some get() methods, as SVGLengthList is RefPtr based now.
- (WebCore::RenderSVGText::translationForAttributes):
- * ksvg2/svg/SVGAnimateTransformElement.cpp: Add some get() methods, as SVGTransformList is RefPtr based now.
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- * ksvg2/svg/SVGElementInstanceList.cpp: Be RefPtr based.
- (WebCore::SVGElementInstanceList::SVGElementInstanceList):
- * ksvg2/svg/SVGElementInstanceList.h:
- * ksvg2/svg/SVGLengthList.cpp: Ditto.
- (WebCore::SVGLengthList::SVGLengthList):
- * ksvg2/svg/SVGLengthList.h: Ditto.
- * ksvg2/svg/SVGList.h: Rewrote, as described above.
- (WebCore::SVGListTypeOperations::nullItem):
- (WebCore::SVGList::SVGList):
- (WebCore::SVGList::~SVGList):
- (WebCore::SVGList::clear):
- (WebCore::SVGList::getFirst):
- (WebCore::SVGList::getLast):
- (WebCore::SVGList::getItem):
- (WebCore::SVGList::replaceItem):
- (WebCore::SVGList::removeItem):
- * ksvg2/svg/SVGListTraits.cpp: Added.
- * ksvg2/svg/SVGListTraits.h: Added.
- (WebCore::):
- * ksvg2/svg/SVGPathElement.cpp: Add some get() methods, as SVGPathSegList is RefPtr based now.
- (WebCore::SVGPathElement::toPathData):
- * ksvg2/svg/SVGPathSegList.cpp: Be RefPtr based.
- (WebCore::SVGPathSegList::SVGPathSegList):
- * ksvg2/svg/SVGPathSegList.h: Ditto.
- * ksvg2/svg/SVGTransform.cpp: Style cleanup.
- (SVGTransform::SVGTransform):
- * ksvg2/svg/SVGTransformList.cpp: Be RefPtr based.
- (SVGTransformList::SVGTransformList):
- (SVGTransformList::createSVGTransformFromMatrix):
- (SVGTransformList::consolidate):
- * ksvg2/svg/SVGTransformList.h: Ditto.
- * ksvg2/svg/SVGTransformable.cpp: Fix RefPtr usage of SVGTransform.
- (SVGTransformable::parseTransformAttribute):
- 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Fix build on Qt/Linux and implement Frame::addMessageToConsole to
- be able to see javascript errors for instance.
- * CMakeLists.txt:
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQt.cpp: Implement addMessageToConsole.
- (WebCore::FrameQt::bindingRootObject):
- * platform/qt/TemporaryLinkStubs.cp
- (WebCore::IconDatabase::hasEntryForIconURL):
- (WebCore::IconDatabase::sharedIconDatabase):
- 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10869
- Auto-generate the internal methods for the Objective-C bindings
- - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
- implementations where standard. For cases where a custom implementation was
- needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
- - Some general cleanup of some of the non-generated bindings, to bring them in-
- line with what the generated bindings look like.
- * bindings/objc/DOM.mm:
- (-[DOMNode description]):
- * bindings/objc/DOMCSS.mm:
- (-[DOMCSSPrimitiveValue WebCore::]):
- (-[DOMDocument getComputedStyle::]):
- (-[DOMDocument getMatchedCSSRules::]):
- * bindings/objc/DOMEvents.mm:
- (-[DOMEvent WebCore::]):
- * bindings/objc/DOMHTML.mm:
- * bindings/objc/DOMHTMLDocument.mm:
- (-[DOMHTMLDocument title]):
- (-[DOMHTMLDocument setTitle:]):
- (-[DOMHTMLDocument referrer]):
- (-[DOMHTMLDocument domain]):
- (-[DOMHTMLDocument URL]):
- (-[DOMHTMLDocument body]):
- (-[DOMHTMLDocument setBody:]):
- (-[DOMHTMLDocument images]):
- (-[DOMHTMLDocument applets]):
- (-[DOMHTMLDocument links]):
- (-[DOMHTMLDocument forms]):
- (-[DOMHTMLDocument anchors]):
- (-[DOMHTMLDocument cookie]):
- (-[DOMHTMLDocument setCookie:]):
- (-[DOMHTMLDocument open]):
- (-[DOMHTMLDocument close]):
- (-[DOMHTMLDocument write:]):
- (-[DOMHTMLDocument writeln:]):
- (-[DOMHTMLDocument getElementById:]):
- (-[DOMHTMLDocument getElementsByName:]):
- (-[DOMHTMLDocument WebCore::]):
- (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
- * bindings/objc/DOMHTMLOptionElement.mm:
- (-[DOMHTMLOptionElement form]):
- (-[DOMHTMLOptionElement defaultSelected]):
- (-[DOMHTMLOptionElement setDefaultSelected:]):
- (-[DOMHTMLOptionElement text]):
- (-[DOMHTMLOptionElement index]):
- (-[DOMHTMLOptionElement disabled]):
- (-[DOMHTMLOptionElement setDisabled:]):
- (-[DOMHTMLOptionElement label]):
- (-[DOMHTMLOptionElement setLabel:]):
- (-[DOMHTMLOptionElement selected]):
- (-[DOMHTMLOptionElement setSelected:]):
- (-[DOMHTMLOptionElement value]):
- (-[DOMHTMLOptionElement setValue:]):
- (-[DOMHTMLOptionElement WebCore::]):
- (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMNode.mm:
- (-[DOMNode dealloc]):
- (-[DOMNode finalize]):
- (-[DOMNode nodeName]):
- (-[DOMNode nodeValue]):
- (-[DOMNode setNodeValue:]):
- (-[DOMNode nodeType]):
- (-[DOMNode parentNode]):
- (-[DOMNode childNodes]):
- (-[DOMNode firstChild]):
- (-[DOMNode lastChild]):
- (-[DOMNode previousSibling]):
- (-[DOMNode nextSibling]):
- (-[DOMNode attributes]):
- (-[DOMNode ownerDocument]):
- (-[DOMNode insertBefore::]):
- (-[DOMNode replaceChild::]):
- (-[DOMNode removeChild:]):
- (-[DOMNode appendChild:]):
- (-[DOMNode hasChildNodes]):
- (-[DOMNode cloneNode:]):
- (-[DOMNode normalize]):
- (-[DOMNode isSupported::]):
- (-[DOMNode namespaceURI]):
- (-[DOMNode prefix]):
- (-[DOMNode setPrefix:]):
- (-[DOMNode localName]):
- (-[DOMNode hasAttributes]):
- (-[DOMNode isSameNode:]):
- (-[DOMNode isEqualNode:]):
- (-[DOMNode isDefaultNamespace:]):
- (-[DOMNode lookupPrefix:]):
- (-[DOMNode lookupNamespaceURI:]):
- (-[DOMNode textContent]):
- (-[DOMNode setTextContent:]):
- (-[DOMNode boundingBox]):
- (-[DOMNode lineBoxRects]):
- * bindings/objc/DOMObject.mm:
- (-[DOMObject _init]):
- * bindings/objc/DOMXPath.mm:
- (-[DOMNativeXPathNSResolver dealloc]):
- (-[DOMNativeXPathNSResolver finalize]):
- (-[DOMNativeXPathNSResolver WebCore::]):
- (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
- (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
- (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
- (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
- * css/CSSCharsetRule.idl:
- * css/CSSFontFaceRule.idl:
- * css/CSSImportRule.idl:
- * css/CSSMediaRule.idl:
- * css/CSSPageRule.idl:
- * css/CSSPrimitiveValue.idl:
- * css/CSSRule.idl:
- * css/CSSStyleRule.idl:
- * css/CSSStyleSheet.idl:
- * css/CSSUnknownRule.idl:
- * css/CSSValue.idl:
- * css/CSSValueList.idl:
- * css/StyleSheet.idl:
- * dom/Event.idl:
- * dom/KeyboardEvent.idl:
- * dom/MouseEvent.idl:
- * dom/MutationEvent.idl:
- * dom/NodeIterator.idl:
- * dom/OverflowEvent.idl:
- * dom/TreeWalker.idl:
- * dom/UIEvent.idl:
- * dom/WheelEvent.idl:
- 2006-09-15 Adam Roben <aroben@apple.com>
- Reviewed by timothy.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10865
- New file upload control should match the width of the old one
- Make width of new file upload control match the old one as closely as
- possible.
- * rendering/RenderFileUploadControl.cpp:
- 2006-09-15 Timothy Hatcher <timothy@apple.com>
- Reviewed by Eric.
- Remove the SVG IDL files from the Copy Resources phase.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-09-15 Brady Eidson <beidson@apple.com>
- Reviewed by Eric Siedel
- Dumped the use of CGColorRef and directly use the floating point data from
- WebCore::Color
- This fixes the performance regression found between 16285 and 16286
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- 2006-09-14 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=10838
- Bug 10838: REGRESSION: Leaking of WebScriptObjectPrivate
- FrameMac relies on its cleanupPluginObjects being called to perform cleanup. The virtual
- Frame::cleanupPluginObjects method is called from Frame's destructor, which results
- in Frame::cleanupPluginObjects being called rather than FrameMac::cleanupPluginObjects.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::~FrameMac): Call cancelAndClear to ensure that FrameMac::cleanupPluginObjects
- will be called from Frame::clear
- * page/Frame.cpp:
- (WebCore::Frame::~Frame): Use cancelAndClear.
- (WebCore::Frame::cancelAndClear): Move cancellation and clearing into a separate method that
- FrameMac can use.
- * page/Frame.h:
- 2006-09-14 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej's rubber stamp
- Exact same fix I just made, but in the other method I horked up
- Also added a reference to the bugzilla in comments
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading):
- (WebCore::Frame::stop):
- 2006-09-14 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Fixed a bad iFrame crash, resolving some of the layout test badness
- * page/Frame.cpp:
- (WebCore::Frame::endIfNotLoading):
- - Added a RefPtr to protect the frame itself to prevent its destruction during this method
- 2006-09-14 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4655880> Up/Down arrows skip over To Do
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge canDeleteRange:]): Added a FIXME.
- * dom/Node.cpp: Removed the unused inSameRootEditableElement.
- * dom/Node.h:
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::modify): Added documentboundary to granularities in order test a fix.
- * editing/visible_units.cpp:
- (WebCore::previousLinePosition): Use highestEditableRoot so that this function can move from
- editable content into editable content that's embedded in non-editable content.
- (WebCore::nextLinePosition): Ditto.
- (WebCore::startOfEditableContent): Renamed from startOfEditableRoot and use highestEditableRoot.
- This is the behavior that callers desire. This fixes Command + Up/Down.
- (WebCore::endOfEditableContent): Ditto.
- * editing/visible_units.h:
- 2006-09-14 Karthik Kumar <karthikkumar@gmail.com>
- Reviewed by timothy. Landed by aroben.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10856
- Windows build fixes after r16360
- * WebCore.vcproj/WebCore/WebCore.vcproj: Add loader\icon to
- AdditionalIncludeDirectories
- * platform/win/TemporaryLinkStubs.cpp: Add link stubs for IconLoader,
- IconDatabase
- (IconLoader::stopLoading):
- (IconLoader::startLoading):
- (IconLoader::createForFrame):
- (IconDatabase::isIconExpiredForIconURL):
- (IconDatabase::hasEntryForIconURL):
- (IconDatabase::sharedIconDatabase):
- 2006-09-14 Brady Eidson <beidson@apple.com>
- Part of a build fix for Windows - rest will be working out a mess of temporary link stubs
- * loader/icon/IconLoader.cpp:
- (IconLoader::receivedAllData):
- * page/Frame.cpp:
- * page/FramePrivate.h:
- 2006-09-14 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Justin Garcia.
- - http://bugs.webkit.org/show_bug.cgi?id=10726
- Crash in ApplyStyleCommand::applyRelativeFontStyleChange
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Prevent a crash by
- makeing sure that the 'beyondEnd' node is after the start node.
- 2006-09-14 Darin Fisher <darin@chromium.org>
- Reviewed by Brady.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10845
- Various bugs/crashes in ResourceLoaderWin with local files.
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::fileLoadTimer):
- 2006-09-13 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Icon loads now take place in WebCore
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/BrowserExtension.h:
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- - Moved enforcement of a Mozilla Favicon extension elsewhere
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::originalRequestURL):
- - Added accessor to "original request URL"
-
- * bridge/mac/WebCoreFrameBridge.h:
- - Removed methods to set the iconURL as all loading is now done in WebCore
- - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
-
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::process):
- - Moved enforcement of a Mozilla Favicon extension elsewhere
-
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::setIconURLForPageURL):
- - Changed an ASSERT to correctly handle a sketchy (invalid) situation
- * loader/icon/IconLoader.h: Added.
- * loader/icon/IconLoader.cpp: Added.
- (IconLoader::IconLoader):
- (IconLoader::createForFrame):
- - Static factory method with a private constructor to enforce
- "you MUST have a Frame to create an IconLoader" semantics
- (IconLoader::~IconLoader):
- (IconLoader::startLoading):
- (IconLoader::stopLoading):
- (IconLoader::receivedData):
- - ResourceLoaderClient delegate
- (IconLoader::receivedAllData):
- - Ditto
- * loader/mac/IconLoaderMac.mm: Added.
- (IconLoader::receivedResponse):
- (IconLoader::notifyIconChanged):
- - For now, these are platform specific methods
- - One to get the HTTP response code of an icon load
- - The other to call through to the app when the icon has changed (loaded)
- * page/Frame.h:
- * page/Frame.cpp:
- (WebCore::Frame::iconURL):
- (WebCore::Frame::setIconURL):
- - Frame objects now have an inherent icon URL and a way to calculate/access it
- (WebCore::Frame::endIfNotLoading):
- - This is where we actually kick off the IconLoader
- (WebCore::Frame::stop):
- - Added call to stop loading the icon
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- (WebCore::FramePrivate::~FramePrivate):
- - Added the icon URL as a private member
- - Added the IconLoader as a private member, and clean it up on deletion
- * platform/mac/ResourceLoaderMac.mm:
- (WebCore::ResourceLoader::start): Added a valuable ASSERT
- 2006-09-13 David Hyatt <hyatt@apple.com>
- Fix for 10841, unable to check checkboxes inside labels.
- Reviewed by xenon, bradee-oh
- * css/html4.css:
- * dom/Element.cpp:
- (WebCore::Element::contains):
- * dom/Element.h:
- * html/HTMLLabelElement.cpp:
- (WebCore::HTMLLabelElement::defaultEventHandler):
- 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Adam.
- http://bugs.webkit.org/show_bug.cgi?id=10834
- Bug 10834: FileChooser constructor in FileChooserMac appears to overretain m_controller
- * platform/mac/FileChooserMac.mm:
- (WebCore::FileChooser::FileChooser): Don't over-retain the OpenPanelController.
- 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10836
- Bug 10836: REGRESSION: Mac implementation of Font::drawGlyphs leaks a CGColorRef
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText): Release CGColorRef after use.
- (WebCore::Font::drawGlyphs): Ditto.
- 2006-09-14 Anders Carlsson <acarlsson@apple.com>
- Try fixing the Win32 build.
-
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::bindingRootObject):
- 2006-09-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim O.
- Add USE defines for the generic JavaScriptCore bindings as well as NPAPI bindings.
-
- * bindings/js/kjs_binding.cpp:
- (KJS::ScriptInterpreter::createLanguageInstanceForValue):
- * bindings/js/kjs_dom.cpp:
- (KJS::getRuntimeObject):
- * bridge/mac/FrameMac.h:
- * config.h:
- * html/HTMLAppletElement.cpp:
- (WebCore::HTMLAppletElement::~HTMLAppletElement):
- (WebCore::HTMLAppletElement::detach):
- * html/HTMLAppletElement.h:
- * html/HTMLEmbedElement.cpp:
- (WebCore::HTMLEmbedElement::~HTMLEmbedElement):
- (WebCore::HTMLEmbedElement::detach):
- * html/HTMLEmbedElement.h:
- * html/HTMLObjectElement.cpp:
- (WebCore::HTMLObjectElement::~HTMLObjectElement):
- (WebCore::HTMLObjectElement::detach):
- * html/HTMLObjectElement.h:
- * html/HTMLPlugInElement.cpp:
- (WebCore::HTMLPlugInElement::HTMLPlugInElement):
- (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
- (WebCore::HTMLPlugInElement::createNPObject):
- * html/HTMLPlugInElement.h:
- * page/Frame.h:
- 2006-09-13 David Hyatt <hyatt@apple.com>
- Clean up the XBL and XSLT ifdefs to be consistent with the SVG
- and XPath ifdefs. KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
- KHTML_XSLT is now XSLT_SUPPORT.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSXSLTProcessor.cpp:
- * bindings/js/JSXSLTProcessor.h:
- * bindings/js/kjs_window.cpp:
- (KJS::Window::getValueProperty):
- * config.h:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::~Document):
- (WebCore::Document::recalcStyleSelector):
- * dom/Document.h:
- (WebCore::Document::bindingManager):
- * dom/Node.cpp:
- (WebCore::Node::createRendererIfNeeded):
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::ProcessingInstruction):
- (WebCore::ProcessingInstruction::checkStyleSheet):
- (WebCore::ProcessingInstruction::setStyleSheet):
- * dom/ProcessingInstruction.h:
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::processingInstruction):
- (WebCore::XMLTokenizer::insertErrorMessageBlock):
- * dom/XMLTokenizer.h:
- * loader/Cache.cpp:
- (WebCore::Cache::getStatistics):
- * loader/Cache.h:
- * loader/CachedResource.h:
- (WebCore::CachedResource::):
- * loader/CachedResourceClient.h:
- * loader/CachedXBLDocument.cpp:
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- * loader/CachedXSLStyleSheet.h:
- * loader/DocLoader.cpp:
- * loader/DocLoader.h:
- * rendering/RenderStyle.cpp:
- (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
- (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
- (WebCore::StyleCSS3NonInheritedData::operator==):
- * rendering/RenderStyle.h:
- * xml/XSLImportRule.cpp:
- * xml/XSLImportRule.h:
- * xml/XSLStyleSheet.cpp:
- * xml/XSLStyleSheet.h:
- * xml/XSLTProcessor.cpp:
- * xml/XSLTProcessor.h:
- 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Fix newly introduced memory leaks in SVG.
- http://bugs.webkit.org/show_bug.cgi?id=10835
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGListBase::~SVGListBase):
- (WebCore::SVGListBase::clearVector):
- (WebCore::SVGListBase::clear):
- (WebCore::SVGList::clearVector):
- (WebCore::):
- * ksvg2/svg/SVGNumberList.cpp: s/float/double/ - forgot that!
- (SVGNumberList::SVGNumberList):
- * ksvg2/svg/SVGNumberList.h: Ditto.
- 2006-09-13 Darin Fisher <darin@chromium.org>
- Reviewed/landed by aroben.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10833
- Windows build needs fixed after move to engine-rendered file upload widget
- * WebCore.vcproj/WebCore/WebCore.vcproj: Add RenderFileUpload files,
- remove RenderFileButton files
- * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser, Icon
- (FileChooser::FileChooser):
- (FileChooser::~FileChooser):
- (FileChooser::openFileChooser):
- (FileChooser::basenameForWidth):
- (FileChooser::uploadControlDetaching):
- (FileChooser::chooseFile):
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::fileButtonNoFileSelectedLabel):
- (Icon::Icon):
- (Icon::~Icon):
- (Icon::newIconForFile):
- (Icon::paint):
- 2006-09-13 Darin Fisher <darin@chromium.org>
- Reviewed/landed by aroben.
- Fixes http://bugs.webkit.org/attachment.cgi?id=10537
- Webkit WebCore build fails on Windows
- * WebCore.vcproj/WebCore/build-generated-files.sh: export SOURCE_ROOT
- variable
- 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Fix Qt/Linux build.
- * CMakeLists.txt: Change SVGZoomEvent.idl location & add RenderFileUploadControl
- * platform/Icon.h: Add wtf/Platform.h include
- * platform/qt/FileChooserQt.cpp: Added as stub. Easy to implement though.
- (WebCore::FileChooser::FileChooser):
- (WebCore::FileChooser::~FileChooser):
- (WebCore::FileChooser::openFileChooser):
- (WebCore::FileChooser::basenameForWidth):
- (WebCore::FileChooser::uploadControlDetaching):
- (WebCore::FileChooser::chooseFile):
- * platform/qt/IconQt.cpp: Added as stub.
- (WebCore::Icon::Icon):
- (WebCore::Icon::~Icon):
- (WebCore::Icon::newIconForFile):
- (WebCore::Icon::paint):
- * platform/qt/TemporaryLinkStubs.cpp: Remove old RenderFileButton code & some new *Labels needed
- (searchableIndexIntroduction):
- (fileButtonChooseFileLabel):
- (fileButtonNoFileSelectedLabel):
- 2006-09-12 Adam Roben <aroben@apple.com>
- Reviewed by eseidel.
- Switch back to passing relative paths to generate-bindings.pl when
- generating JS bindings.
- * DerivedSources.make: Pass in relative paths to generate-bindings.pl
- * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call
- chdir and always construct absolute paths instead.
- 2006-09-12 David Hyatt <hyatt@apple.com>
- Fix for bug 3244, implement html4 label support.
- Reviewed by mjs, aroben
- Added fast/events/label-focus.html
- * css/html4.css:
- * html/HTMLLabelElement.cpp:
- (WebCore::HTMLLabelElement::formElement):
- (WebCore::HTMLLabelElement::setActive):
- (WebCore::HTMLLabelElement::setHovered):
- (WebCore::HTMLLabelElement::defaultEventHandler):
- * html/HTMLLabelElement.h:
- 2006-09-12 Julien Palmas <julien.palmas@gmail.com>
- Reviewed by darin. Landed by eseidel.
- * ksvg2/svg/svgpathparser.cpp:
- (WebCore::SVGPolyParser::parsePoints):
- 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Andersca, Maciej, Brady.
- - Implemented intersectsNode in the Range Class
- to be compliant with Mozilla standard
- * dom/Range.cpp:
- (WebCore::Range::intersectsNode):
- * dom/Range.h:
- * dom/Range.idl:
- 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Test: svg/W3C-SVG-1.1/struct-dom-01-b.svg (fixed)
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10826
-
- Also finally fixes some long outstanding bugs:
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=9190
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=9229
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10413
- Enable all JavaScript SVG bindings. Builds on Qt/Linux & OSX.
- * CMakeLists.txt:
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
- * ksvg2/svg/SVGAElement.idl: Added.
- * ksvg2/svg/SVGAngle.idl:
- * ksvg2/svg/SVGAnimateColorElement.idl: Added.
- * ksvg2/svg/SVGAnimateElement.idl: Added.
- * ksvg2/svg/SVGAnimateTransformElement.idl: Added.
- * ksvg2/svg/SVGAnimatedLengthList.idl: Added.
- * ksvg2/svg/SVGAnimatedNumberList.idl: Added.
- * ksvg2/svg/SVGAnimatedTransformList.idl: Added.
- * ksvg2/svg/SVGAnimationElement.idl: Added.
- * ksvg2/svg/SVGCircleElement.idl: Added.
- * ksvg2/svg/SVGClipPathElement.idl: Added.
- * ksvg2/svg/SVGColor.idl:
- * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Added.
- * ksvg2/svg/SVGCursorElement.idl: Added.
- * ksvg2/svg/SVGDefsElement.idl: Added.
- * ksvg2/svg/SVGDescElement.idl: Added.
- * ksvg2/svg/SVGEllipseElement.idl: Added.
- * ksvg2/svg/SVGEvent.idl:
- * ksvg2/svg/SVGExternalResourcesRequired.idl: Added.
- * ksvg2/svg/SVGFEBlendElement.idl: Added.
- * ksvg2/svg/SVGFEColorMatrixElement.idl: Added.
- * ksvg2/svg/SVGFEComponentTransferElement.idl: Added.
- * ksvg2/svg/SVGFECompositeElement.idl: Added.
- * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Added.
- * ksvg2/svg/SVGFEDisplacementMapElement.idl: Added.
- * ksvg2/svg/SVGFEDistantLightElement.idl: Added.
- * ksvg2/svg/SVGFEFloodElement.idl: Added.
- * ksvg2/svg/SVGFEFuncAElement.idl: Added.
- * ksvg2/svg/SVGFEFuncBElement.idl: Added.
- * ksvg2/svg/SVGFEFuncGElement.idl: Added.
- * ksvg2/svg/SVGFEFuncRElement.idl: Added.
- * ksvg2/svg/SVGFEGaussianBlurElement.idl: Added.
- * ksvg2/svg/SVGFEImageElement.idl: Added.
- * ksvg2/svg/SVGFEMergeElement.idl: Added.
- * ksvg2/svg/SVGFEMergeNodeElement.idl: Added.
- * ksvg2/svg/SVGFEOffsetElement.idl: Added.
- * ksvg2/svg/SVGFEPointLightElement.idl: Added.
- * ksvg2/svg/SVGFESpecularLightingElement.idl: Added.
- * ksvg2/svg/SVGFESpotLightElement.idl: Added.
- * ksvg2/svg/SVGFETileElement.idl: Added.
- * ksvg2/svg/SVGFETurbulenceElement.idl: Added.
- * ksvg2/svg/SVGFilterElement.idl: Added.
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Added.
- * ksvg2/svg/SVGFitToViewBox.idl: Added.
- * ksvg2/svg/SVGForeignObjectElement.idl: Added.
- * ksvg2/svg/SVGGElement.idl: Added.
- * ksvg2/svg/SVGGradientElement.idl: Added.
- * ksvg2/svg/SVGImageElement.idl: Added.
- * ksvg2/svg/SVGLangSpace.idl: Added.
- * ksvg2/svg/SVGLength.idl:
- * ksvg2/svg/SVGLengthList.idl: Added.
- * ksvg2/svg/SVGLineElement.idl: Added.
- * ksvg2/svg/SVGLinearGradientElement.idl: Added.
- * ksvg2/svg/SVGLocatable.idl: Added.
- * ksvg2/svg/SVGMarkerElement.idl: Added.
- * ksvg2/svg/SVGMaskElement.idl: Added.
- * ksvg2/svg/SVGNumberList.idl: Added.
- * ksvg2/svg/SVGPaint.idl: Added.
- * ksvg2/svg/SVGPathElement.idl:
- * ksvg2/svg/SVGPathSeg.idl:
- * ksvg2/svg/SVGPatternElement.idl: Added.
- * ksvg2/svg/SVGPointList.idl: Added.
- * ksvg2/svg/SVGPolygonElement.idl: Added.
- * ksvg2/svg/SVGPolylineElement.idl: Added.
- * ksvg2/svg/SVGPreserveAspectRatio.idl:
- * ksvg2/svg/SVGRadialGradientElement.idl: Added.
- * ksvg2/svg/SVGRectElement.idl: Added.
- * ksvg2/svg/SVGRenderingIntent.idl: Added.
- * ksvg2/svg/SVGSVGElement.idl:
- * ksvg2/svg/SVGScriptElement.idl: Added.
- * ksvg2/svg/SVGSetElement.idl: Added.
- * ksvg2/svg/SVGStopElement.idl: Added.
- * ksvg2/svg/SVGStringList.idl: Added.
- * ksvg2/svg/SVGStylable.idl: Added.
- * ksvg2/svg/SVGStyleElement.idl: Added.
- * ksvg2/svg/SVGSwitchElement.idl: Added.
- * ksvg2/svg/SVGSymbolElement.idl: Added.
- * ksvg2/svg/SVGTRefElement.idl: Added.
- * ksvg2/svg/SVGTSpanElement.idl: Added.
- * ksvg2/svg/SVGTests.idl: Added.
- * ksvg2/svg/SVGTextContentElement.idl: Added.
- * ksvg2/svg/SVGTextElement.idl: Added.
- * ksvg2/svg/SVGTextPositioningElement.idl: Added.
- * ksvg2/svg/SVGTitleElement.idl: Added.
- * ksvg2/svg/SVGTransform.idl:
- * ksvg2/svg/SVGTransformList.idl: Added.
- * ksvg2/svg/SVGTransformable.idl: Added.
- * ksvg2/svg/SVGURIReference.idl: Added.
- * ksvg2/svg/SVGUnitTypes.idl: Added.
- * ksvg2/svg/SVGUseElement.idl: Added.
- * ksvg2/svg/SVGViewElement.idl: Added.
- * ksvg2/svg/SVGZoomAndPan.idl: Added.
- * ksvg2/svg/SVGZoomEvent.idl: Added.
- 2006-09-12 Adam Roben <aroben@apple.com>
- Reviewed by timo, ggaren.
- Make Icon ref-counted.
- * platform/FileChooser.h: Store m_icon as a RefPtr instead of
- auto_ptr.
- * platform/Icon.h: Inherit from Shared<Icon>
- * platform/mac/FileChooserMac.mm:
- (WebCore::FileChooser::chooseFile): Update m_icon usage
- * platform/mac/IconMac.mm:
- (WebCore::Icon::newIconForFile): Return a RefPtr instead of an
- auto_ptr
- === Safari-521.26 ===
- 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Anders.
- Add exception codes to SVGList functions, adjust all code using it.
- Move SVGPaintType enums from ksvg.h into SVGPaint (needed for js generation)
- Move SVGUnitTypes enums from ksvg.h into it's own file SVGUnitType.h (ditto)
- Move SVGRenderingIntent enums from ksvg.h into it's own file SVGRenderingIntent.h (ditto)
- Move SVGZoomAndPan enums from ksvg.h into SVGSVGElement (ditto)
- Move SVGFE* related enums into their respecitive classes.
- Fix JSSVGNumber to operator on doubles, instead of floats.
- * ksvg2/bindings/js/JSSVGNumber.cpp:
- (WebCore::getJSSVGNumber):
- * ksvg2/bindings/js/JSSVGNumber.h:
- (WebCore::JSSVGNumber::JSSVGNumber):
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- (WebCore::CSSParser::parseSVGPaint):
- * ksvg2/css/SVGRenderStyleDefs.cpp:
- (StyleFillData::operator==):
- * ksvg2/ksvg.h:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::isFilled):
- (WebCore::KSVGPainterFactory::fillPaintServer):
- (WebCore::KSVGPainterFactory::isStroked):
- (WebCore::KSVGPainterFactory::strokePaintServer):
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- (WebCore::SVGTimer::notifyAll):
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- (WebCore::SVGAnimateColorElement::handleTimerEvent):
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
- (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::parseTransformValue):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedTemplate.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- (SVGAnimationElement::getSimpleDuration):
- (SVGAnimationElement::parseMappedAttribute):
- (SVGAnimationElement::setTargetAttribute):
- * ksvg2/svg/SVGAnimationElement.h:
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::SVGClipPathElement):
- (SVGClipPathElement::parseMappedAttribute):
- (SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (SVGComponentTransferFunctionElement::transferFunction):
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- (WebCore::SVGComponentTransferFunctionElement::):
- * ksvg2/svg/SVGDocument.cpp:
- (WebCore::SVGDocument::dispatchZoomEvent):
- (WebCore::SVGDocument::dispatchScrollEvent):
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (WebCore::SVGFEBlendElement::parseMappedAttribute):
- (WebCore::SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEBlendElement.h:
- (WebCore::SVGFEBlendElement::):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::parseMappedAttribute):
- (SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- (WebCore::SVGFEColorMatrixElement::):
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
- (WebCore::SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (SVGFECompositeElement::parseMappedAttribute):
- (SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.h:
- (WebCore::SVGFECompositeElement::):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (SVGFEDisplacementMapElement::parseMappedAttribute):
- (SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- (WebCore::SVGFEDisplacementMapElement::):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (WebCore::SVGFEFloodElement::parseMappedAttribute):
- (WebCore::SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (SVGFEGaussianBlurElement::parseMappedAttribute):
- (SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEMergeNodeElement.cpp:
- (SVGFEMergeNodeElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (SVGFEOffsetElement::parseMappedAttribute):
- (SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::parseMappedAttribute):
- (SVGFESpecularLightingElement::filterEffect):
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFETileElement.cpp:
- (WebCore::SVGFETileElement::parseMappedAttribute):
- (WebCore::SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- (WebCore::SVGFETurbulenceElement::):
- * ksvg2/svg/SVGFilterElement.cpp:
- (SVGFilterElement::SVGFilterElement):
- (SVGFilterElement::parseMappedAttribute):
- (SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::SVGGradientElement):
- (SVGGradientElement::parseMappedAttribute):
- * ksvg2/svg/SVGGradientElement.h:
- (WebCore::SVGGradientElement::):
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::ParseSeperatedList):
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGListBase::clear):
- (WebCore::SVGListBase::initialize):
- (WebCore::SVGListBase::getItem):
- (WebCore::SVGListBase::insertItemBefore):
- (WebCore::SVGListBase::replaceItem):
- (WebCore::SVGListBase::removeItem):
- (WebCore::SVGListBase::appendItem):
- * ksvg2/svg/SVGLocatable.cpp:
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGMarkerElement.h:
- (WebCore::SVGMarkerElement::):
- * ksvg2/svg/SVGNumberList.cpp:
- (SVGNumberList::parse):
- * ksvg2/svg/SVGPaint.cpp:
- (WebCore::SVGPaint::SVGPaint):
- (WebCore::SVGPaint::uri):
- (WebCore::SVGPaint::setUri):
- (WebCore::SVGPaint::setPaint):
- * ksvg2/svg/SVGPaint.h:
- (WebCore::SVGPaint::):
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::svgMoveTo):
- (WebCore::SVGPathElement::svgLineTo):
- (WebCore::SVGPathElement::svgLineToHorizontal):
- (WebCore::SVGPathElement::svgLineToVertical):
- (WebCore::SVGPathElement::svgCurveToCubic):
- (WebCore::SVGPathElement::svgCurveToCubicSmooth):
- (WebCore::SVGPathElement::svgCurveToQuadratic):
- (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
- (WebCore::SVGPathElement::svgArcTo):
- (WebCore::SVGPathElement::svgClosePath):
- (WebCore::SVGPathElement::parseMappedAttribute):
- (WebCore::SVGPathElement::toPathData):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::parseMappedAttribute):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- * ksvg2/svg/SVGPolyElement.cpp:
- (SVGPolyElement::parseMappedAttribute):
- (SVGPolyElement::svgPolyTo):
- (SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGPolygonElement.cpp:
- (SVGPolygonElement::toPathData):
- * ksvg2/svg/SVGPolylineElement.cpp:
- (SVGPolylineElement::toPathData):
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRenderingIntent.h: Added.
- (WebCore::SVGRenderingIntent::):
- (WebCore::SVGRenderingIntent::SVGRenderingIntent):
- (WebCore::SVGRenderingIntent::~SVGRenderingIntent):
- * ksvg2/svg/SVGSVGElement.h:
- (WebCore::SVGSVGElement::):
- * ksvg2/svg/SVGScriptElement.cpp:
- (WebCore::SVGScriptElement::type):
- (WebCore::SVGScriptElement::setType):
- (WebCore::SVGScriptElement::parseMappedAttribute):
- * ksvg2/svg/SVGScriptElement.h:
- * ksvg2/svg/SVGStringList.cpp:
- (WebCore::SVGStringList::reset):
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- (SVGStyledLocatableElement::getTransformToElement):
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (SVGStyledTransformableElement::parseMappedAttribute):
- (SVGStyledTransformableElement::getTransformToElement):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::hasExtension):
- (WebCore::SVGTests::isValid):
- * ksvg2/svg/SVGTests.h:
- * ksvg2/svg/SVGTextContentElement.cpp:
- (SVGTextContentElement::getSubStringLength):
- (SVGTextContentElement::getStartPositionOfChar):
- (SVGTextContentElement::getEndPositionOfChar):
- (SVGTextContentElement::getExtentOfChar):
- (SVGTextContentElement::getRotationOfChar):
- (SVGTextContentElement::selectSubString):
- * ksvg2/svg/SVGTextContentElement.h:
- (WebCore::SVGTextContentElement::):
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextElement.h:
- (WebCore::SVGTextElement::getTransformToElement):
- * ksvg2/svg/SVGTransform.h:
- * ksvg2/svg/SVGTransformList.cpp:
- (SVGTransformList::consolidate):
- (SVGTransformList::concatenate):
- * ksvg2/svg/SVGTransformable.cpp:
- (SVGTransformable::parseTransformAttribute):
- * ksvg2/svg/SVGUnitTypes.h: Added.
- (WebCore::SVGUnitTypes::):
- (WebCore::SVGUnitTypes::SVGUnitTypes):
- (WebCore::SVGUnitTypes::~SVGUnitTypes):
- * ksvg2/svg/SVGUseElement.cpp:
- (SVGUseElement::closeRenderer):
- * ksvg2/svg/SVGViewElement.h:
- (WebCore::SVGViewElement::):
- * ksvg2/svg/SVGZoomAndPan.cpp:
- (WebCore::SVGZoomAndPan::SVGZoomAndPan):
- (WebCore::SVGZoomAndPan::parseMappedAttribute):
- 2006-09-12 John Sullivan <sullivan@apple.com>
- Reviewed by Adele Peterson.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::doTextFieldCommandFromEvent):
- Don't call textField:doCommandBySelector: with a nil selector. This was indirectly causing a
- (valid) assertion failure in some Safari code.
- 2006-09-12 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4717841> Setting AXFocused to true does not activate the insertion point in text field
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
- For AXFocus, use focus() if the node is an element, so that selection is set.
- Matches tabbing behavior in text fields and text areas.
- 2006-09-12 Adam Roben <aroben@apple.com>
- Reviewed by adele.
- Make uploading work with the new file upload control.
- * css/html4.css: Remove unnecessary style (this is already done in
- RenderFileUpload.cpp)
- * html/HTMLInputElement.cpp: Don't get the button text from the value
- attribute for file controls.
- (WebCore::HTMLInputElement::valueWithDefault):
- * platform/mac/FileChooserMac.mm: Call
- RenderFileUploadControl::valueChanged when the user selects a file.
- (WebCore::FileChooser::chooseFile):
- * rendering/RenderFileUploadControl.cpp: Add valueChanged() method to
- update the form and fire the onChange event.
- (WebCore::RenderFileUploadControl::valueChanged):
- (WebCore::RenderFileUploadControl::updateFromElement):
- * rendering/RenderFileUploadControl.h: Add valueChanged() declaration.
- 2006-09-12 Adam Roben <aroben@apple.com>
- Adding rules to html4.css to style the button in file upload controls.
- * css/html4.css:
- 2006-09-12 Adam Roben <aroben@apple.com>
- Reviewed many times by darin, hyatt.
- Switch to new engine-based implementation of <input type="file">
- * WebCore.exp: Remove obsolete symbol WebCoreFileButton
- * WebCore.xcodeproj/project.pbxproj: Remove files for old widget-based
- control, add files for new engine-based control
- * css/CSSSelector.cpp: Add support for new
- '-webkit-file-upload-button' pseudo element
- (WebCore::CSSSelector::extractPseudoType):
- * css/CSSSelector.h: Ditto.
- (WebCore::CSSSelector::):
- * css/cssstyleselector.cpp: Ditto.
- (WebCore::CSSStyleSelector::checkOneSelector):
- * html/HTMLInputElement.cpp: Send click events to new control
- (WebCore::HTMLInputElement::select):
- (WebCore::HTMLInputElement::click):
- (WebCore::HTMLInputElement::createRenderer):
- (WebCore::HTMLInputElement::valueWithDefault):
- (WebCore::HTMLInputElement::defaultEventHandler):
- * html/HTMLTextFieldInnerElement.h: Add 'virtual' keyword
- (WebCore::HTMLTextFieldInnerElement::shadowParentNode):
- * platform/FileButton.h: Removed.
- * platform/FileChooser.h: Added. This is the replacement for
- FileButton.h
- (WebCore::FileChooser::filename):
- (WebCore::FileChooser::icon):
- (WebCore::FileChooser::uploadControl):
- (WebCore::FileChooser::document):
- * platform/Icon.h: Added new platform-specific class representing a
- file icon.
- * platform/LocalizedStrings.h:
- * platform/mac/FileButtonMac.mm: Removed.
- * platform/mac/FileChooserMac.mm: Added. This is the replacement for
- FileButtonMac.mm
- (-[OpenPanelController initWithFileChooser:]):
- (-[OpenPanelController fileChooserDetachingSoon]):
- (-[OpenPanelController beginSheet]):
- (-[OpenPanelController chooseFilename:]):
- (-[OpenPanelController cancel]):
- (WebCore::FileChooser::FileChooser):
- (WebCore::FileChooser::~FileChooser):
- (WebCore::FileChooser::openFileChooser):
- (WebCore::FileChooser::basenameForWidth):
- (WebCore::FileChooser::uploadControlDetaching):
- (WebCore::FileChooser::chooseFile):
- * platform/mac/IconMac.mm: Added.
- (WebCore::Icon::Icon):
- (WebCore::Icon::~Icon):
- (WebCore::Icon::newIconForFile):
- (WebCore::Icon::paint):
- * platform/mac/LocalizedStringsMac.mm: Call across bridge to get
- localized strings.
- (WebCore::fileButtonChooseFileLabel):
- (WebCore::fileButtonNoFileSelectedLabel):
- * rendering/RenderButton.cpp: Extract method setText() from
- updateFromElement.
- (WebCore::RenderButton::updateFromElement):
- (WebCore::RenderButton::setText):
- * rendering/RenderButton.h: Add declaration for new setText method.
- * rendering/RenderFileButton.cpp: Removed.
- * rendering/RenderFileButton.h: Removed.
- * rendering/RenderFileUploadControl.cpp: Added. This is the
- replacement for RenderFileButton.cpp.
- (WebCore::RenderFileUploadInnerFileBox::renderName):
- (WebCore::HTMLFileUploadInnerButtonElement::isShadowNode):
- (WebCore::HTMLFileUploadInnerButtonElement::shadowParentNode):
- (WebCore::RenderFileUploadControl::RenderFileUploadControl):
- (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
- (WebCore::RenderFileUploadControl::setStyle):
- (WebCore::RenderFileUploadControl::updateIconAndFilename):
- (WebCore::RenderFileUploadControl::click):
- (WebCore::RenderFileUploadControl::updateFromElement):
- (WebCore::RenderFileUploadControl::maxFilenameWidth):
- (WebCore::RenderFileUploadControl::createButtonStyle):
- (WebCore::RenderFileUploadControl::paintObject):
- (WebCore::RenderFileUploadInnerFileBox::RenderFileUploadInnerFileBox):
- (WebCore::RenderFileUploadInnerFileBox::setStyle):
- (WebCore::RenderFileUploadInnerFileBox::layout):
- (WebCore::RenderFileUploadInnerFileBox::setHasIcon):
- (WebCore::RenderFileUploadInnerFileBox::setFilename):
- (WebCore::RenderFileUploadInnerFileBox::calcMinMaxWidth):
- (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
- (WebCore::HTMLFileUploadInnerButtonElement::createRenderer):
- * rendering/RenderFileUploadControl.h: Added. This is the replacement
- for RenderFileButton.h.
- (WebCore::RenderFileUploadControl::renderName):
- * rendering/RenderStyle.cpp: Add support for
- -webkit-file-upload-button pseudo element.
- (WebCore::):
- (WebCore::pseudoBit):
- * rendering/RenderStyle.h: Ditto.
- (WebCore::RenderStyle::):
- 2006-09-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John Sullivan.
- Do the plugin object cleanup in Frame::clear instead of setView.
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setView):
- (WebCore::FrameMac::cleanupPluginObjects):
- * page/Frame.cpp:
- (WebCore::Frame::clear):
- * page/Frame.h:
- 2006-09-12 Darin Fisher <darin@chromium.org>
- Reviewed/landed by aroben.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10822
- windows build is busted
- * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing
- JSRangeException.{cpp,h} to project
- 2006-09-12 David Hyatt <hyatt@apple.com>
- Fix fieldsets so that they properly expand to enclose overhanging floats
- when the fieldset has auto height. This is a nifty undocumented behavior
- of the fieldset element. The bug is 3898.
- Reviewed by mjs
- Added fast/forms/fieldset-with-float.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlock):
- * rendering/RenderFieldset.h:
- (WebCore::RenderFieldset::renderName):
- (WebCore::RenderFieldset::expandsToEncloseOverhangingFloats):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
- * rendering/RenderTableCell.h:
- (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats):
- 2006-09-11 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
-
- REGRESSION: When dragging a link on a page, the selected link doesn't display it's name or URL
- http://bugs.webkit.org/show_bug.cgi?id=10819
- http://bugs.webkit.org/show_bug.cgi?id=10814
- No test cases were harmed in the coding of the patch.
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreDrawTextAtPoint):
- 2006-09-11 David Hyatt <hyatt@apple.com>
- Fix for bug 8126, column widths apply to the border boxes of cells.
- Reviewed by aroben
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::styleOrColWidth):
- 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Adele.
- Fix Qt/Linux build.
- * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.
- 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10750
- This finally fixes the SVGAnimated* classes JS bindings!
- - Move all SVGAnimated*.idl files from ksvg2/bindings/idl/svg to ksvg2/svg
- - Adjust XCode/Qt build files to generate the new idl files
- - Remove all SVGAnimated* primitives cpp implementations (Angle/Boolean/Color/Enumeration/Integer/Length/
- LengthList/Number/NumberList/PreserveAspectRatio/
- Rect/String/TransformList)
- - Remove unneeded methods from CodeGenerator.pm and add new helper function: IsSVGAnimatedType
- - Adjust CodeGeneratorJS.pm to the new SVGAnimated* tear-off concept
- - Add two new macros: ANIMATED_PROPERTY_EMPTY_DECLARATIONS / ANIMATED_PROPERTY_FORWARD_DECLARATIONS.
- This is used to fix multiple-inheritance issues in SVG with properties,
- similar like SVGTests::isValid() was fixed.
- - Rewrote SVGList using WTF::Vector, instead of DeprecatedPtrList and killed DOMList.
- (SVGAnimated*Lists work again now)
- - Adjust macros in SVGElement to create the "*Animated" tear-off classes.
- - Adjust all SVG classes which use the ANIMATED macros to include the ClassName as first param in the header.
- * CMakeLists.txt:
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
- (WebCore::RenderSVGImage::paint):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::translationForAttributes):
- * ksvg2/ksvg.h:
- * ksvg2/misc/SVGDocumentExtensions.h:
- (WebCore::FloatRect):
- * ksvg2/svg/SVGAElement.h:
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- * ksvg2/svg/SVGAnimateColorElement.h:
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedTemplate.h:
- (WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
- * ksvg2/svg/SVGAnimationElement.h:
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
- (SVGComponentTransferFunctionElement::transferFunction):
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGElementInstanceList.cpp:
- (WebCore::SVGElementInstanceList::SVGElementInstanceList):
- * ksvg2/svg/SVGElementInstanceList.h:
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
- (SVGFEColorMatrixElement::parseMappedAttribute):
- (SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEImageElement.h:
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::SVGFitToViewBox):
- (WebCore::SVGFitToViewBox::parseViewBox):
- (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGGElement.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::SVGGradientElement):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::PercentageOfViewport):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGLength.cpp:
- * ksvg2/svg/SVGLengthList.cpp:
- (WebCore::SVGLengthList::SVGLengthList):
- (WebCore::SVGLengthList::parse):
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGList.h:
- (WebCore::SVGListBase::SVGListBase):
- (WebCore::SVGListBase::~SVGListBase):
- (WebCore::SVGListBase::numberOfItems):
- (WebCore::SVGListBase::clear):
- (WebCore::SVGListBase::initialize):
- (WebCore::SVGListBase::getFirst):
- (WebCore::SVGListBase::getLast):
- (WebCore::SVGListBase::getItem):
- (WebCore::SVGListBase::insertItemBefore):
- (WebCore::SVGListBase::replaceItem):
- (WebCore::SVGListBase::removeItem):
- (WebCore::SVGListBase::appendItem):
- (WebCore::SVGList::nullItem):
- (WebCore::):
- * ksvg2/svg/SVGLocatable.cpp:
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGNumberList.cpp:
- (SVGNumberList::SVGNumberList):
- (SVGNumberList::parse):
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::pathSegList):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPathSegList.cpp:
- (WebCore::SVGPathSegList::SVGPathSegList):
- * ksvg2/svg/SVGPathSegList.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGPointList.cpp:
- (SVGPointList::SVGPointList):
- * ksvg2/svg/SVGPointList.h:
- * ksvg2/svg/SVGPolyElement.cpp:
- (SVGPolyElement::points):
- (SVGPolyElement::svgPolyTo):
- (SVGPolyElement::notifyAttributeChange):
- * ksvg2/svg/SVGPolyElement.h:
- * ksvg2/svg/SVGPolygonElement.cpp:
- (SVGPolygonElement::toPathData):
- * ksvg2/svg/SVGPolylineElement.cpp:
- (SVGPolylineElement::toPathData):
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- (WebCore::SVGPreserveAspectRatio::):
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::SVGSVGElement):
- (WebCore::SVGSVGElement::parseMappedAttribute):
- (WebCore::SVGSVGElement::createRenderer):
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGScriptElement.h:
- * ksvg2/svg/SVGStopElement.h:
- * ksvg2/svg/SVGStringList.cpp:
- (WebCore::SVGStringList::SVGStringList):
- (WebCore::SVGStringList::reset):
- * ksvg2/svg/SVGStringList.h:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (SVGStyledTransformableElement::SVGStyledTransformableElement):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.h:
- * ksvg2/svg/SVGSymbolElement.h:
- * ksvg2/svg/SVGTRefElement.h:
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::isValid):
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::SVGTextElement):
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- (SVGTextPositioningElement::SVGTextPositioningElement):
- (SVGTextPositioningElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextPositioningElement.h:
- * ksvg2/svg/SVGTransformList.cpp:
- (SVGTransformList::SVGTransformList):
- (SVGTransformList::createSVGTransformFromMatrix):
- (SVGTransformList::consolidate):
- (SVGTransformList::concatenate):
- * ksvg2/svg/SVGTransformList.h:
- * ksvg2/svg/SVGURIReference.h:
- * ksvg2/svg/SVGUseElement.h:
- * ksvg2/svg/SVGViewElement.h:
- 2006-09-11 Adam Roben <aroben@apple.com>
- Rubberstamped by Adele.
- Rename LocalGraphicsContext.{h,mm} to
- LocalCurrentGraphicsContext.{h,mm} to match the class name.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/LocalCurrentGraphicsContext.mm: Added.
- * platform/mac/LocalCurrentGraphicsContext.h: Added.
- * platform/mac/LocalGraphicsContext.h: Removed.
- * platform/mac/LocalGraphicsContext.mm: Removed.
- * rendering/RenderThemeMac.mm: Fix #include to match renamed file
- 2006-09-11 Brady Eidson <beidson@apple.com>
- Build fix
- * WebCore.xcodeproj/project.pbxproj:
- 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
- Reviewed by Darin.
- - Implements comparePoint on the Range class
- - Exposes RangeExceptions in JavaScript
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_binding.cpp:
- * bindings/objc/DOMInternal.mm:
- * dom/Range.cpp:
- (WebCore::Range::comparePoint):
- (WebCore::Range::compareNode):
- * dom/Range.h:
- (WebCore::Range::):
- * dom/Range.idl:
- * dom/RangeException.h: Added.
- (WebCore::):
- * dom/RangeException.idl: Added.
- * page/DOMWindow.idl:
- 2006-09-11 Adam Roben <aroben@apple.com>
- Reviewed by timo.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10812
- Move LocalGraphicsContext out of RenderThemeMac
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/LocalGraphicsContext.h: Added.
- * platform/mac/LocalGraphicsContext.mm: Added.
- (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
- (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
- * rendering/RenderThemeMac.mm:
- 2006-09-11 Vladimir Olexa <vladimir.olexa@gmail.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10323
- REGRESSION: javascript: URL containing '\\' gets passed as '//'
- Test: fast/dom/javascript-backslash.html
- * platform/KURL.cpp: (WebCore::KURL::init): Don't do backslash
- substitution in JavaScript URLs.
- 2006-09-11 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin and Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10792
- Remove the [Exclude=LANGUAGE] idiom from IDL's and code generators
- for something better
- - Replaces [Exclude=LANGUAGE] idiom with preprocessor #if defined(LANGUAGE)
- idiom.
- - Assorted whitespace changes to IDL files.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMEvents.h:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/CSSRule.idl:
- * css/CSSStyleDeclaration.idl:
- * css/CSSValue.idl:
- * dom/DOMImplementation.idl:
- * dom/Document.idl:
- * dom/Element.idl:
- * dom/Event.idl:
- * dom/KeyboardEvent.idl:
- * dom/MouseEvent.idl:
- * dom/NamedNodeMap.idl:
- * dom/NodeFilter.idl:
- * dom/UIEvent.idl:
- * dom/WheelEvent.idl:
- * html/HTMLAnchorElement.idl:
- * html/HTMLAreaElement.idl:
- * html/HTMLDocument.idl:
- * html/HTMLElement.idl:
- * html/HTMLImageElement.idl:
- * html/HTMLInputElement.idl:
- * html/HTMLLinkElement.idl:
- * html/HTMLOptionsCollection.idl:
- 2006-09-11 David Hyatt <hyatt@apple.com>
- Fix an unwitting victim of the kMin->min change. calcBlockMinMaxWidth
- was accidentally renamed to calcBlominMaxWidth.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::calcMinMaxWidth):
- (WebCore::RenderBlock::calcBlockMinMaxWidth):
- * rendering/RenderBlock.h:
- 2006-09-10 David Hyatt <hyatt@apple.com>
- Rework the printer font stuff a little bit so that the Font API doesn't
- have to be changed.
- Reviewed by eseidel
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreStringTruncator.mm:
- (truncateString):
- (+[WebCoreStringTruncator widthOfString:font:]):
- * platform/Font.cpp:
- (WebCore::Font::drawSimpleText):
- * platform/Font.h:
- * platform/TextStyle.h:
- (WebCore::TextStyle::TextStyle):
- (WebCore::TextStyle::attemptFontSubstitution):
- (WebCore::TextStyle::setRTL):
- * platform/mac/FontMac.mm:
- (WebCore::m_wordSpacing):
- (WebCore::Font::drawGlyphs):
- * platform/mac/ListBoxMac.mm:
- (itemTextRenderer):
- (groupLabelTextRenderer):
- (-[WebCoreTableView drawRow:clipRect:]):
- * platform/mac/PopUpButtonMac.mm:
- (PopUpButton::sizeHint):
- * platform/mac/TextFieldMac.mm:
- (-[NSSearchFieldCell _addStringToRecentSearches:]):
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreDrawTextAtPoint):
- (WebCoreTextFloatWidth):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::paint):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- 2006-09-10 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Small cleanups + future plans
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open): path separator cleanup
- * platform/Image.h:
-
- 2006-09-10 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Added specialized HashTraits
- * platform/IntSizeHash.h:
- 2006-09-10 Brady Eidson <beidson@apple.com>
- Forgetting header #define protection is BAAAAAD
- (and re-alphabetized the project file)
- * WebCore.xcodeproj/project.pbxproj:
- * platform/IntSizeHash.h:
- 2006-09-10 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Moved the custom IntSize hash out of IconDatabase into a more generally useful file
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconDatabase.h:
- * platform/IntSizeHash.h: Added.
- 2006-09-10 David Hyatt <hyatt@apple.com>
- Fix for bug 10801, form controls that get styled suddenly lose their
- intrinsic margins. Move the intrinsic margin addition code into
- adjustRenderStyle and get it out of the theme code and the old form control
- code.
- Reviewed by aroben
- * css/cssstyleselector.cpp:
- (WebCore::addIntrinsicMargins):
- (WebCore::CSSStyleSelector::adjustRenderStyle):
- * css/html4.css:
- * rendering/DeprecatedRenderSelect.h:
- (WebCore::DeprecatedRenderSelect::calcReplacedHeight):
- * rendering/DeprecatedSlider.h:
- * rendering/RenderFormElement.cpp:
- (WebCore::RenderFormElement::setStyle):
- * rendering/RenderFormElement.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::resize):
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::adjustButtonStyle):
- (WebCore::RenderThemeMac::adjustTextFieldStyle):
- (WebCore::RenderThemeMac::adjustTextAreaStyle):
- (WebCore::RenderThemeMac::adjustMenuListStyle):
- (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::adjustButtonStyle):
- (WebCore::RenderThemeWin::adjustTextFieldStyle):
- (WebCore::RenderThemeWin::adjustTextAreaStyle):
- 2006-09-10 Darin Adler <darin@apple.com>
- - test for http://bugs.webkit.org/show_bug.cgi?id=10547
- * manual-tests/target-test.html: Added.
- * manual-tests/targeted.html: Added.
- 2006-09-10 Eric Seidel <eric@webkit.org>
- Reviewed by darin.
-
- Remove a bunch more NSGraphicsContext related code.
- Add a LocalCurrentGraphicsContext to simplify methods which need to call up into AppKit controls (and thus depend on the [NSGraphicsContext currentContext] being set correctly)
- Add an "isPrinting" flag to many of the text drawing functions in order to avoid the need for a GraphicsContext::isPrinting() function.
- No tests were harmed in the making of this patch.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge drawRect:]):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- (WebCore::KRenderingDeviceContextQuartz::cgContext):
- (WebCore::KRenderingDeviceQuartz::isBuffered):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
- (WebCore::KRenderingDeviceContextQuartz::~KRenderingDeviceContextQuartz):
- * kcanvas/device/quartz/QuartzSupport.mm:
- * platform/Font.cpp:
- (WebCore::Font::drawSimpleText):
- (WebCore::Font::drawText):
- * platform/Font.h:
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::drawText):
- * platform/GraphicsContext.h:
- * platform/mac/FileButtonMac.mm:
- (-[WebFileChooserButton drawRect:]):
- * platform/mac/FontMac.mm:
- (WebCore::ATSULayoutParameters::ATSULayoutParameters):
- (WebCore::ATSULayoutParameters::initialize):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawGlyphs):
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawLineForMisspelling):
- * platform/mac/ListBoxMac.mm:
- (-[WebCoreTableView drawRow:clipRect:]):
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreDrawTextAtPoint):
- * rendering/EllipsisBox.cpp:
- (WebCore::EllipsisBox::paint):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderThemeMac.mm:
- (WebCore::WebCoreNSGraphicsContextBridge::WebCoreNSGraphicsContextBridge):
- (WebCore::WebCoreNSGraphicsContextBridge::~WebCoreNSGraphicsContextBridge):
- (WebCore::RenderThemeMac::paintButton):
- (WebCore::RenderThemeMac::paintTextField):
- (WebCore::RenderThemeMac::paintTextArea):
- 2006-09-09 Steve Falkenburg <sfalken@apple.com>
- Reviewed by aroben.
- Fixes to work with string API changes.
- * platform/cf/ResourceLoaderCFNet.cpp:
- (WebCore::arrayFromFormData):
- (WebCore::ResourceLoader::start):
- * platform/cf/StringCF.cpp:
- * platform/cf/StringImplCF.cpp:
- 2006-09-09 David Hyatt <hyatt@apple.com>
- Fix for Bugzilla bug 5500, scrollLeft/Top/Width/Height properties not supported
- on textarea. Refactored the DOM getters and setters to go through the renderer
- instead of right to the layer. The renderer functions are virtual so that the
- text control can subclass and forward to its anonymous div.
- Fix for Bugzilla bug 10719, When positioned objects are sizing using their
- containing block width as a guide, they should not ever use the line width like
- non-positioned objects do.
- Reviewed by aroben
- * WebCore.xcodeproj/project.pbxproj:
- * dom/Element.cpp:
- (WebCore::Element::scrollLeft):
- (WebCore::Element::scrollTop):
- (WebCore::Element::setScrollLeft):
- (WebCore::Element::setScrollTop):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::containingBlockWidthForPositioned):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::clientWidth):
- (WebCore::RenderObject::clientHeight):
- (WebCore::RenderObject::scrollWidth):
- (WebCore::RenderObject::scrollHeight):
- (WebCore::RenderObject::scrollLeft):
- (WebCore::RenderObject::scrollTop):
- (WebCore::RenderObject::setScrollLeft):
- (WebCore::RenderObject::setScrollTop):
- (WebCore::RenderObject::hasStaticX):
- (WebCore::RenderObject::hasStaticY):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::clientLeft):
- (WebCore::RenderObject::clientTop):
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::scrollWidth):
- (WebCore::RenderTextControl::scrollHeight):
- (WebCore::RenderTextControl::scrollLeft):
- (WebCore::RenderTextControl::scrollTop):
- (WebCore::RenderTextControl::setScrollLeft):
- (WebCore::RenderTextControl::setScrollTop):
- * rendering/RenderTextControl.h:
- 2006-09-09 David Hyatt <hyatt@apple.com>
- Implement support for the WinIE clientLeft and clientTop extensions.
- Reviewed by aroben
- * dom/Element.cpp:
- (WebCore::Element::clientLeft):
- (WebCore::Element::clientTop):
- * dom/Element.h:
- * dom/Element.idl:
- * rendering/RenderObject.h:
- (WebCore::RenderObject::clientLeft):
- (WebCore::RenderObject::clientTop):
- 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Eric.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10795
- Auto-generate the Objective-C DOM XPath bindings
- - Auto-generates DOMXPathExpression, DOMXPathNSResolver and DOMXPathResult.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMXPath.h:
- * bindings/objc/DOMXPath.mm:
- * bindings/objc/PublicDOMInterfaces.h:
- * xml/XPathExpression.idl:
- * xml/XPathNSResolver.idl:
- * xml/XPathResult.idl:
- 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Eric.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10791
- Even More Objective-C DOM auto-generation cleanup
- - Auto-generate some remaining extension methods for DOMDocument
- and DOMCSSStyleDeclaration.
- - Split DOMHTMLEmbedElement into it's own files. It can't be
- auto-generated yet because the Objective-C interface is significantly
- different from the implementation interface. Since HTMLEmbedElement
- is not in the W3C spec, this is somewhat of a gray area.
- - Auto-generate DOMEventListener protocol.
- - Clean up the IDL files by separating the extensions from the
- specified methods and attributes.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMCSS.mm:
- * bindings/objc/DOMEventListener.h: Removed.
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMHTML.mm:
- * bindings/objc/DOMHTMLEmbedElement.h: Added.
- * bindings/objc/DOMHTMLEmbedElement.mm: Added.
- (-[DOMHTMLEmbedElement align]):
- (-[DOMHTMLEmbedElement setAlign:]):
- (-[DOMHTMLEmbedElement height]):
- (-[DOMHTMLEmbedElement setHeight:]):
- (-[DOMHTMLEmbedElement name]):
- (-[DOMHTMLEmbedElement setName:]):
- (-[DOMHTMLEmbedElement src]):
- (-[DOMHTMLEmbedElement setSrc:]):
- (-[DOMHTMLEmbedElement type]):
- (-[DOMHTMLEmbedElement setType:]):
- (-[DOMHTMLEmbedElement width]):
- (-[DOMHTMLEmbedElement setWidth:]):
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/PublicDOMInterfaces.h:
- * css/CSSStyleDeclaration.idl:
- * dom/Document.idl:
- * dom/KeyboardEvent.h:
- * dom/KeyboardEvent.idl:
- * dom/MouseEvent.idl:
- * dom/MutationEvent.idl:
- * dom/OverflowEvent.idl:
- * dom/UIEvent.idl:
- * dom/WheelEvent.idl:
- * html/HTMLEmbedElement.idl: Added.
- 2006-09-09 Eric Seidel <eric@webkit.org>
- Reviewed by Tim H.
-
- Remove DeprecatedString usage and fix style.
- http://bugs.webkit.org/show_bug.cgi?id=10787
- No tests were harmed in the making of this patch.
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::KCanvasFilterEffect::in):
- (WebCore::KCanvasFilterEffect::setIn):
- (WebCore::KCanvasFilterEffect::result):
- (WebCore::KCanvasFilterEffect::setResult):
- (WebCore::KCanvasFEMerge::externalRepresentation):
- * kcanvas/KCanvasFilters.h:
- (WebCore::KCanvasFEBlend::in2):
- (WebCore::KCanvasFEBlend::setIn2):
- (WebCore::KCanvasFEComposite::in2):
- (WebCore::KCanvasFEComposite::setIn2):
- (WebCore::KCanvasFEDisplacementMap::in2):
- (WebCore::KCanvasFEDisplacementMap::setIn2):
- (WebCore::KCanvasFEMerge::mergeInputs):
- (WebCore::KCanvasFEMerge::setMergeInputs):
- * kcanvas/KCanvasResources.cpp:
- (WebCore::KCanvasResource::idInRegistry):
- (WebCore::KCanvasResource::setIdInRegistry):
- (WebCore::getResourceById):
- * kcanvas/KCanvasResources.h:
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::getAbsoluteRepaintRect):
- (WebCore::RenderPath::paint):
- (WebCore::RenderPath::drawMarkersIfNeeded):
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::paint):
- (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint):
- * kcanvas/device/KRenderingPaintServer.h:
- (WebCore::KRenderingPaintServer::idInRegistry):
- (WebCore::KRenderingPaintServer::setIdInRegistry):
- * kcanvas/device/quartz/KCanvasFilterQuartz.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::imageForName):
- (WebCore::KCanvasFilterQuartz::setImageForName):
- (WebCore::KCanvasFEMergeQuartz::getCIFilter):
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- (WebCore::CSSStyleSelector::applySVGProperty):
- * ksvg2/css/SVGRenderStyle.cpp:
- * ksvg2/css/SVGRenderStyle.h:
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/ecma/GlobalObject.cpp:
- (GlobalObject::get):
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- (WebCore::SVGTimer::notifyAll):
- * ksvg2/svg/SVGDescElement.cpp:
- (WebCore::SVGDescElement::SVGDescElement):
- (WebCore::SVGDescElement::description):
- * ksvg2/svg/SVGDescElement.h:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (WebCore::SVGFEBlendElement::SVGFEBlendElement):
- (WebCore::SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
- (SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
- (WebCore::SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (SVGFECompositeElement::SVGFECompositeElement):
- (SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
- (SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (WebCore::SVGFEFloodElement::SVGFEFloodElement):
- (WebCore::SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
- (SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (SVGFEOffsetElement::SVGFEOffsetElement):
- (SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
- (SVGFESpecularLightingElement::filterEffect):
- * ksvg2/svg/SVGFETileElement.cpp:
- (WebCore::SVGFETileElement::SVGFETileElement):
- (WebCore::SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (SVGFETurbulenceElement::SVGFETurbulenceElement):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseViewBox):
- (WebCore::SVGFitToViewBox::parseMappedAttribute):
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
- (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
- (WebCore::SVGPreserveAspectRatio::getCTM):
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGStyleElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- * ksvg2/svg/SVGViewElement.cpp:
- (WebCore::SVGViewElement::SVGViewElement):
- (WebCore::SVGViewElement::parseMappedAttribute):
- * ksvg2/svg/SVGZoomAndPan.cpp:
- (WebCore::SVGZoomAndPan::SVGZoomAndPan):
- 2006-09-08 Darin Adler <darin@apple.com>
- Reviewed by Tim H.
- <rdar://problem/4699166> REGRESSION: Background images in Mail stationery do not load
-
- Fixes the quoting logic. The previous logic did not account for the
- CSS tokenizer's regex character range between * and ~ as valid in URL types.
- * css/CSSPrimitiveValue.cpp:
- (WebCore::isCSSTokenizerURL):
- 2006-09-09 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=10759
- fast/AppleScript/array.html test failing
- * bridge/mac/WebCoreFrameBridge.mm:
- (aeDescFromJSValue): Convert integer values to typeSInt32 AE descriptors.
- 2006-09-08 Eric Seidel <eric@webkit.org>
- Reviewed by darin.
- Replace incorrect fooBaseValue() calls with foo() calls instead.
- http://bugs.webkit.org/show_bug.cgi?id=10746
-
- With the previously broken animation system, we had both base and anim values
- but they were not automatically connected/disconnected when animation started and stopped.
- So the animVals were basically never used (since they were always wrong).
- Now, animVal and baseVal are handled correctly.
-
- There are only 3 places in the code where we will ever need to use the BaseValue accessor variants.
- 1. SVGAnimated* DOM bindings
- 2. Animation Code
- 3. parseMappedAttribute implementations
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::translationForAttributes):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- (WebCore::RenderSVGImage::relativeBBox):
- (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
- (WebCore::RenderSVGImage::translationForAttributes):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::translationForAttributes):
- * ksvg2/misc/SVGImageLoader.cpp:
- (WebCore::SVGImageLoader::updateFromElement):
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::defaultEventHandler):
- * ksvg2/svg/SVGCircleElement.cpp:
- (SVGCircleElement::parseMappedAttribute):
- (SVGCircleElement::toPathData):
- (SVGCircleElement::pushAttributeContext):
- (SVGCircleElement::hasPercentageValues):
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (SVGComponentTransferFunctionElement::transferFunction):
- * ksvg2/svg/SVGCursorElement.cpp:
- (SVGCursorElement::parseMappedAttribute):
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::parseMappedAttribute):
- (WebCore::SVGEllipseElement::toPathData):
- (WebCore::SVGEllipseElement::pushAttributeContext):
- (WebCore::SVGEllipseElement::hasPercentageValues):
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEDistantLightElement.cpp:
- (WebCore::SVGFEDistantLightElement::lightSource):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEImageElement.cpp:
- (SVGFEImageElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (SVGFEMergeElement::SVGFEMergeElement):
- (SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFEPointLightElement.cpp:
- (WebCore::SVGFEPointLightElement::SVGFEPointLightElement):
- (WebCore::SVGFEPointLightElement::lightSource):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::filterEffect):
- * ksvg2/svg/SVGFESpotLightElement.cpp:
- (WebCore::SVGFESpotLightElement::lightSource):
- * ksvg2/svg/SVGFETileElement.cpp:
- (SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (SVGFETurbulenceElement::filterEffect):
- * ksvg2/svg/SVGFilterElement.cpp:
- (SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::rebuildStops):
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::PercentageOfViewport):
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::toPathData):
- (SVGLineElement::pushAttributeContext):
- (SVGLineElement::hasPercentageValues):
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::attributeChanged):
- (WebCore::SVGMaskElement::drawMaskerContent):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::pushAttributeContext):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::toPathData):
- (WebCore::SVGRectElement::pushAttributeContext):
- (WebCore::SVGRectElement::hasPercentageValues):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::viewport):
- (WebCore::SVGSVGElement::parseMappedAttribute):
- (WebCore::SVGSVGElement::getCTM):
- (WebCore::SVGSVGElement::getScreenCTM):
- (WebCore::SVGSVGElement::createRenderer):
- * ksvg2/svg/SVGTRefElement.cpp:
- (SVGTRefElement::updateReferencedText):
- * ksvg2/svg/SVGUseElement.cpp:
- (SVGUseElement::closeRenderer):
- 2006-09-08 Eric Seidel <eric@webkit.org>
- Reviewed by beth.
- Remove the last vestiges of KDOM (KDOMCSSValue and KDOMCSSValueList)
- http://bugs.webkit.org/show_bug.cgi?id=10778
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- (WebCore::CSSParser::parseSVGStrokeDasharray):
- (WebCore::CSSParser::parseSVGPaint):
- (WebCore::CSSParser::parseSVGColor):
- 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin and Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10774
- Auto-generate the Objective-C DOM Traversal bindings
- - Auto-generates DOMNodeIterator and DOMTreeWalker.
- - Splits out DOMNodeFilter into its own file.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMNodeFilter.h: Added.
- * bindings/objc/DOMTraversal.h:
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/NodeFilter.idl:
- * dom/NodeIterator.idl:
- * dom/Range.idl:
- * dom/TreeWalker.idl:
- 2006-09-07 Darin Fisher <darin@chromium.org>
- Reviewed by Darin, landed by Adam.
- Fixes part of bug 10743: Windows build busted.
- * platform/win/FontCacheWin.cpp: Add missing #include, set svn:eol-style to native
- (WebCore::FontCache::getFontLinkInterface):
- (WebCore::FontCache::getFontDataForCharacters):
- * platform/win/FontDataWin.cpp: Ditto.
- (WebCore::FontData::platformWidthForGlyph):
- * platform/win/FontWin.cpp: Add missing #include, band-aid over const problem with GlyphBufferGlyph
- (WebCore::Font::drawGlyphs):
- * platform/win/ResourceLoaderWin.cpp: Add missing #include, change .ascii() to .latin1()
- (WebCore::ResourceLoaderWndProc):
- (WebCore::ResourceLoader::start):
- 2006-09-07 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10753
- REGRESSION: The beginning of a CSS file is missing
- Test: http/tests/incremental/slow-utf8-css.pl
- * loader/Decoder.cpp:
- (WebCore::Decoder::checkForCSSCharset): Use the same buffering logic as used for HTML.
- (WebCore::Decoder::decode):
- * loader/Decoder.h: Added a return value and a movedDataToBuffer parameter to
- checkForCSSCharset().
- 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10766
- Auto-generate the Objective-C DOM Events bindings
- - Auto-generates DOMEvent, DOMKeyboardEvent, DOMMouseEvent, DOMMutationEvent,
- DOMOverflowEvent, DOMUIEvent, and DOMWheelEvent.
-
- - Splits out DOMEventListener and DOMEventTarget into their own files.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMEventListener.h: Added.
- * bindings/objc/DOMEventTarget.h: Added.
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- (-[DOMEvent WebCore::]):
- (-[DOMEvent _initWithEvent:WebCore::]):
- (+[DOMEvent _eventWith:WebCore::]):
- * bindings/objc/DOMEventsNonstandard.mm: Removed.
- * bindings/objc/DOMNode.h:
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/Event.idl:
- * dom/EventListener.idl: Added.
- * dom/EventTarget.idl: Added.
- * dom/KeyboardEvent.idl:
- * dom/MouseEvent.idl:
- * dom/UIEvent.idl:
- * dom/WheelEvent.idl:
- 2006-09-07 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9753
- SVG with width and height 100% leaves room for scrollbar on the right.
- Relayout children of svg containers, except svg shapes that do not depend on percentages.
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::hasPercentageValues):
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::layout):
- * ksvg2/svg/SVGCircleElement.cpp:
- (SVGCircleElement::hasPercentageValues):
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::hasPercentageValues):
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::hasPercentageValues):
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::hasPercentageValues):
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- (WebCore::SVGStyledElement::hasPercentageValues):
- 2006-09-06 Brady Eidson <beidson@apple.com>
- Constant renamed in 16250 wasn't changed in each use
- * platform/win/GlyphMapWin.cpp:
- (WebCore::GlyphMap::fillPage):
- 2006-09-06 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher.
- - fix crashes affecting editing layout tests (regressions from my vector change)
- * editing/BreakBlockquoteCommand.cpp:
- (WebCore::BreakBlockquoteCommand::doApply): Added check for empty vector.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
- 2006-09-06 David Harrison <harrison@apple.com>
- Reviewed and tweaked by Tim H.
- <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation
- If we don't find the font in the available fonts list, call [NSFont fontWithName:size:]
- to trigger a search that will include auto activation. No PLT or iBench perf impact.
- No layout tests affected. Not testable in an automated way that will work on all systems.
- * platform/mac/WebFontCache.mm:
- (+[WebFontCache fontWithFamily:traits:size:]):
- 2006-09-06 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Fix Qt/Linux build.
- * CMakeLists.txt: Take out CharacterData.cpp from build / add new Text* files to build.
- * platform/qt/BrowserExtensionQt.cpp: Add wtf/Platform.h include.
- * platform/qt/FontCacheQt.cpp: Add FontData.h include.
- * platform/qt/FontQt.cpp:
- (WebCore::Font::drawGlyphs): Fix constness in reinterpret_cast.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::markMisspellings): Change "SelectionController" param type to "Selection".
- (WebCore::FrameQt::respondToChangedSelection): Ditto.
- (WebCore::FrameQt::respondToChangedContents): Ditto.
- (WebCore::FrameQt::shouldChangeSelection): Ditto.
- * platform/qt/FrameQt.h: Ditto.
- * platform/qt/ImageQt.cpp:
- (WebCore::Image::supportsType): Fix String->QString conversion.
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::add): Fix String->DeprecatedString conversion.
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::handleKeyEvent): Adapt to SelectionController signature changes.
- * platform/qt/qt-encodings.txt: Removed.
- 2006-09-06 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher.
- - http://bugs.webkit.org/show_bug.cgi?id=10675
- tweak font-related headers and convert lists to vectors
- One major change was to greatly reduce the number of files that include Font.h.
- Another was to convert many uses of DeprecatedPtrList/DeprecatedValueList to Vector.
- * WebCore.xcodeproj/project.pbxproj: Added TextStyle.h.
- * bindings/objc/DOM.mm: (-[DOMElement _font]): Changed to not depend on
- Font::getNSFont since a WebCore::Font represents more than one NSFont.
- * bindings/objc/DOMNode.mm: (-[DOMNode lineBoxRects]): Updated to use Vector.
- * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
- * bridge/mac/FrameViewMac.mm: (WebCore::FrameView::updateDashboardRegions): Ditto.
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
- * dom/Document.cpp:
- (WebCore::Document::dashboardRegions): Ditto.
- (WebCore::Document::setDashboardRegions): Ditto.
- * dom/Document.h: Ditto.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::removeUnrenderedNodes): Ditto.
- * html/FormDataList.h: Ditto.
- * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isFocusable): Ditto.
- * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ditto.
- * kcanvas/RenderPath.cpp: (WebCore::RenderPath::absoluteRects): Ditto.
- * kcanvas/RenderPath.h: Ditto.
- * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::absoluteRects): Ditto.
- * kcanvas/RenderSVGImage.h: Ditto.
- * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Ditto.
- * kcanvas/RenderSVGText.h: Ditto.
- * loader/FormData.cpp:
- (WebCore::FormData::flatten): Ditto.
- (WebCore::FormData::flattenToString): Ditto.
- * loader/FormData.h: (WebCore::FormData::elements): Ditto.
- * loader/mac/LoaderFunctionsMac.mm: (WebCore::ServeSynchronousRequest): Ditto.
- * page/Frame.cpp: (WebCore::Frame::markedTextUnderlines): Ditto.
- * page/Frame.h: Ditto.
- * page/FramePrivate.h: Ditto.
- * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start): Ditto.
- * rendering/InlineTextBox.h: Ditto.
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint): Ditto.
- (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
- * rendering/RenderContainer.h: Ditto.
- * rendering/RenderContainer.cpp: (WebCore::RenderContainer::lineBoxRects): Ditto.
- * rendering/RenderInline.h: Ditto.
- * rendering/RenderInline.cpp: (WebCore::RenderInline::absoluteRects): Ditto.
- * rendering/RenderObject.h: Ditto.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::lineBoxRects): Ditto.
- (WebCore::RenderObject::absoluteRects): Ditto.
- (WebCore::RenderObject::absoluteBoundingBoxRect): Ditto.
- (WebCore::RenderObject::addDashboardRegions): Ditto.
- (WebCore::RenderObject::collectDashboardRegions): Ditto.
- * rendering/RenderStyle.h: Ditto.
- * rendering/RenderStyle.cpp:
- (WebCore::RenderStyle::initialDashboardRegions): Ditto.
- (WebCore::RenderStyle::noneDashboardRegions): Ditto.
- * rendering/RenderText.h: Ditto.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::absoluteRects): Ditto.
- (WebCore::RenderText::lineBoxRects): Ditto.
- * rendering/RenderView.h: Ditto.
- * rendering/RenderView.cpp: (WebCore::RenderView::absoluteRects): Ditto.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::attributedString): Updated to use Vector and changed to not
- depend on getNSFont on a Font.
- (WebCore::FrameMac::fontForSelection): Changed to not depend on Font::getNSFont.
- (WebCore::FrameMac::fontAttributesForSelectionStart): Ditto.
- (WebCore::convertAttributesToUnderlines): Updated to use Vector.
- (WebCore::FrameMac::setMarkedTextRange): Ditto.
- (WebCore::FrameMac::dashboardRegionsDictionary): Ditto.
- * bridge/mac/WebCoreAXObject.mm:
- (boundingBoxRect): Updated to use Vector.
- (AXAttributeStringSetStyle): Changed to not depend on Font::getNSFont.
- * bridge/mac/WebCoreStringTruncator.mm: Updated includes.
- * page/Settings.h: Ditto.
- * platform/mac/WebCoreTextRenderer.mm: Ditto.
- * rendering/EllipsisBox.cpp: Ditto.
- * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
- Updated to use a Vector that we iterate in reverse order instead of a linked list
- that we reverse by prepending elements instead of adding to the end.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
- * loader/DocLoader.h: Removed unneeded include of DeprecatedPtrList.h.
- * platform/Font.h: Moved TextStyle to a separate header. Removed Font::getNSFont.
- * platform/Font.cpp: Changed to use const instead of #define.
- (WebCore::Font::width): Overloaded this so we don't have a default parameter, which
- eliminates the need to have TextStyle defined to compiler the Font.h header.
- * platform/TextStyle.h: Added.
- * platform/FontData.h: Added a forward declaration of ATSUStyle so this header
- can stand alone.
- * platform/FontFallbackList.h: Tweaks.
- * platform/FontFallbackList.cpp: Tweaks.
- * platform/FontFamily.h: Removed unneeded NSString declaration. Simplified class by
- using Shared and RefPtr, which resulted in removing many explicit functions.
- * platform/FontFamily.cpp: More of the same.
- * platform/GlyphBuffer.h: Removed unneeded MAX_GLYPH_EXPANSION and GLYPH_BUFFER_SIZE
- macros.
- * platform/GlyphMap.h: Removed unneeded include of GlyphBuffer.h, which was included
- only for the typedef of Glyph; there's no reason to not just repeat that typedef here
- since C++ allows multiple typedefs if they match. Renamed the cGlyphPageSize constant
- to GlyphPage::size.
- * platform/GlyphMap.cpp: Changed NO_BREAK_SPACE and ZERO_WIDTH_SPACE macros into
- constants. Updated for cGlyphPageSize change.
- * platform/mac/GlyphMapMac.cpp: Updated for cGlyphPageSize change.
- * platform/GlyphWidthMap.h: Removed unneeded include of GlyphBuffer.h, which was included
- only for the typedef of Glyph; there's no reason to not just repeat that typedef here
- since C++ allows multiple typedefs if they match. Renamed the cGlyphWidthPageSize constant
- to GlyphWidthPage::size.
- * platform/GlyphWidthMap.cpp: Updated for cGlyphWidthPageSize change.
- * platform/GraphicsContext.h: Removed unneeded include of Font.h. Changed drawText
- function to use overloading instead of default parameters to allow TextStyle to be optional.
- This cuts the dependency on TextStyle.
- * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawText): Added overload.
- * platform/Image.h: Removed unneeded forward declaration of IntSize.
- * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
- Changed to not depend on Font::getNSFont.
- * platform/mac/ListBoxMac.mm: (-[WebCoreTableView fontChanged]): Ditto.
- * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
- Ditto.
- * rendering/RenderPopupMenuMac.mm:
- (WebCore::RenderPopupMenuMac::showPopup): Ditto.
- (WebCore::RenderPopupMenuMac::addGroupLabel): Ditto.
- (WebCore::RenderPopupMenuMac::addOption): Ditto.
- * platform/mac/FontDataMac.mm: Fixed includes. Converted a bunch of macros to be
- constants and inline functions instead.
- * platform/mac/FontMac.mm: Fixed includes.
- * platform/mac/PopUpButtonMac.mm: Ditto.
- * rendering/RenderMenuList.cpp: Ditto.
- * rendering/RenderTextControl.cpp: Ditto.
- * platform/mac/WebCoreSystemInterface.h: Fixes so this header stands alone and is
- compatible with all 4 of C, ObjC, C++, ObjC++.
- 2006-09-05 Darin Fisher <darin@chromium.org>
- Reviewed/landed by aroben.
- Fixes bug 10743: Windows build is busted.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/FrameWin.h:
- * platform/ResourceLoaderInternal.h:
- * platform/TextEncodingRegistry.cpp:
- * platform/win/ResourceLoaderWin.cpp:
- (WebCore::ResourceLoaderWndProc):
- (WebCore::ResourceLoader::start):
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::markMisspellings):
- (FrameWin::shouldChangeSelection):
- (FrameWin::respondToChangedSelection):
- (FrameWin::respondToChangedContents):
- (RenderThemeWin::adjustMenuListStyle):
- 2006-09-05 Darin Adler <darin@apple.com>
- - some quick build fixes
- * bridge/mac/WebCoreAXObject.mm: Remove use of WebCore::UChar.
- * bridge/mac/WebCoreFrameBridge.mm: Ditto. Also remove include
- of CharsetNames.h.
- * css/CSSGrammar.y: Remove use of WebCore::UChar.
- * platform/UChar.h: Back out WebCore::UChar for now.
- 2006-09-05 Darin Adler <darin@apple.com>
- Reviewed by Alexey.
- - http://bugs.webkit.org/show_bug.cgi?id=10728
- text encodings should work without a numeric ID
- - includes a fix for http://bugs.webkit.org/show_bug.cgi?id=10681
- REGRESSION: Reproducible crash at Wikipedia
- - fixed a bug where link elements would not set the charset properly for
- CSS stylesheets they loaded
- - converted DeprecatedString code paths that are related to decoding web
- pages to use String instead, to ensure that conversion back and forth won't
- hurt performance
- Test: fast/encoding/css-link-charset.html
- Test: fast/forms/form-data-encoding-normalization-overrun.html
- Coverage for encoding issues is pretty good, so we probably don't need more
- tests to land this. Our existing tests did find issues with this patch while
- it was under development. And I suppose it would be nice to have even more tests.
- * platform/TextEncoding.h:
- * platform/TextEncoding.cpp:
- (WebCore::addEncodingName): Added. Used to build up the set used by isJapanese.
- (WebCore::TextEncoding::TextEncoding): Removed boolean "eight bit only" parameter and
- added an overload for String as well as const char*. Simplified because now the only
- data member is m_name -- calls the registry's atomicCanonicalTextEncodingName function
- to make the name canonical (resolve aliases) and atomic (use a single pointer for each
- encoding name so we can compare and hash efficiently).
- (WebCore::TextEncoding::decode): Renamed from toUnicode. Just a simple wrapper on top
- of TextDecoder that can be used when the data to decode is all present at once.
- (WebCore::TextEncoding::encode): Renamed from fromUnicode. Handles the normalization and
- then uses the registry to get a codec to handle the rest.
- (WebCore::TextEncoding::usesVisualOrdering): New implementation that compares with the
- name of the only encoding that uses visual ordering. We blur the concepts a bit so that
- we treat the visual ordering and logical ordering variations as two separate encodings.
- (WebCore::TextEncoding::isJapanese): New implementation that uses a set to efficiently
- determine if an encoding is Japanese.
- (WebCore::TextEncoding::backslashAsCurrencySymbol): New implementation that compares
- with the names of the two encodings that have the strange backslash.
- (WebCore::TextEncoding::closest8BitEquivalent): Added. Replaces the old "eight bit only"
- boolean parameter to the constructor.
- (WebCore::ASCIIEncoding): Added.
- (WebCore::Latin1Encoding): Added.
- (WebCore::UTF16BigEndianEncoding): Added.
- (WebCore::UTF16LittleEndianEncoding): Added.
- (WebCore::UTF8Encoding): Added.
- (WebCore::WindowsLatin1Encoding): Added.
- * platform/TextEncodingRegistry.h: Added.
- * platform/TextEncodingRegistry.cpp: Added. Keeps a table of all the character set
- aliases and names and another of all the codecs and parameters for each name.
- * platform/TextDecoder.h: Added.
- * platform/TextDecoder.cpp: Added. Contains logic to look for a BOM and hand the data
- to the proper codec, based on code that used to be in both the ICU and Mac codecs.
- * platform/StreamingTextDecoder.h: Renamed class to TextCodec. We'll rename
- the files in a later check-in. Moved creation functions into TextEncodingRegistry.h.
- Added typedefs of the registrar function types so classes derived from this one
- can use them without including the TextEncodingRegistry header. Renamed toUnicode
- and fromUnicode to decode and encode. Changed the parameter and return types so that
- the parameters are pointers to the data and the return types are String and CString.
- * platform/StreamingTextDecoder.cpp:
- (WebCore::TextCodec::appendOmittingBOM): Added. Helper function used by multiple
- classes derived from this one.
- * platform/TextCodecLatin1.h: Added.
- * platform/TextCodecLatin1.cpp: Added. Contains logic to handle encoding and decoding
- Windows Latin-1, based on code that used to be in both the ICU and Mac codecs.
- * platform/TextCodecUTF16.h: Added.
- * platform/TextCodecUTF16.cpp: Added. Contains logic to handle encoding and decoding
- UTF-16, based on code that used to be in both the ICU and Mac codecs.
- * platform/StreamingTextDecoderICU.h: Renamed class to TextCodecICU. We'll rename
- the files in a later check-in. Removed all the functions having to do with handling
- BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
- because that's superseded by the registry. Added registry hook functions.
- * platform/StreamingTextDecoderICU.cpp:
- (WebCore::TextCodecICU::registerEncodingNames): Added. Registers all encodings that
- ICU can handle with the "IANA" standard. Also includes a special case for a particular
- type of encoding for Hebrew that uses logical ordering. Also includes aliases that are
- not in ICU but that were historically known to WebKit for encodings that ICU handles.
- (WebCore::newTextCodecICU): Added. Used by registerCodecs.
- (WebCore::TextCodecICU::registerCodecs): Added. Registers codecs for the same encodings
- as above.
- (WebCore::TextCodecICU::TextCodecICU): Much simplified since this now only handles the
- actual ICU encoding and decoding.
- (WebCore::TextCodecICU::~TextCodecICU): Renamed.
- (WebCore::TextCodecICU::releaseICUConverter): Changed to be a const member function.
- (WebCore::TextCodecICU::createICUConverter): Changed to be a const member function and
- to check if the cached converter can be reused in a simpler way.
- (WebCore::TextCodecICU::decode): Updated for changes to types.
- (WebCore::TextCodecICU::encode): Updated for changes to types, and removed normalization
- since this is now handled by the caller.
- * platform/mac/StreamingTextDecoderMac.h: Renamed class to TextCodecMac. We'll rename
- the files in a later check-in. Removed all the functions having to do with handling
- BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
- because that's superseded by the registry. Added registry hook functions.
- * platform/mac/StreamingTextDecoderMac.cpp:
- (WebCore::TextCodecMac::registerEncodingNames): Added. Registers encodings based on
- the charset table generated by the make-charset-table.pl perl script.
- (WebCore::newTextCodecMac): Added. Used by registerCodecs.
- (WebCore::TextCodecMac::registerCodecs): Added. Registers codecs for the same encodings
- as above.
- (WebCore::TextCodecMac::TextCodecMac): Much simplified since this now only handles the
- actual TEC/CF encoding and decoding.
- (WebCore::TextCodecMac::~TextCodecMac): Renamed.
- (WebCore::TextCodecMac::releaseTECConverter): Changed to be a const member function.
- (WebCore::TextCodecMac::createTECConverter): Changed to be a const member function.
- (WebCore::TextCodecMac::decode): Updated for changes to types.
- (WebCore::TextCodecMac::encode): Updated for changes to types, and removed normalization
- since this is now handled by the caller.
- * platform/mac/mac-encodings.txt: Removed most of the names in this file. This now
- only includes encodings where we want to use Mac OS X Carbon Text Encoding Converter,
- which is only encodings that are not supported by ICU.
- * platform/make-charset-table.pl: Removed flags from output. We don't use them any more.
- * platform/CharsetData.h: Changed from a platform-independent header into a
- Macintosh-specific one. A later patch should move this and rename it. Also
- subsumes ExtraCFEncodings.h.
- * WebCore.xcodeproj/project.pbxproj: Added new files. Changed the prefix on the
- "make character sets" rule to be kTextEncoding instead of kCFStringEncoding.
- * loader/Decoder.h: Change the default encoding parameter to the constructor to be
- a TextEncoding object. Renamed setEncodingName to setEncoding, and made it take a
- TextEncoding for the encoding. Removed the encodingName and visuallyOrdered functions,
- since TextEncoding supports both directly in a straightforward way. Changed both
- decode and flush functions to return String instead of DeprecatedString. Added a
- number of private functions to factor this class a bit more so it's easier to read.
- Got rid of a number of redundant data members. Changed the buffer to a Vector<char>.
- * loader/Decoder.cpp:
- (WebCore::Decoder::determineContentType): Added. Used by constructor to determine
- the content type based on the passed-in MIME type.
- (WebCore::Decoder::defaultEncoding): Added. Used by constructor to determine the
- default encoding based on the passed in default and the content type.
- (WebCore::Decoder::Decoder): Changed to use the functions above. Also renamed
- m_reachedBody to m_checkedForHeadCharset.
- (WebCore::Decoder::setEncoding): Renamed and changed to take an encoding rather
- than an encoding name.
- (WebCore::Decoder::checkForBOM): Factored out of decode.
- (WebCore::Decoder::checkForCSSCharset): Factored out of decode.
- (WebCore::Decoder::checkForHeadCharset): Factored out of decode.
- (WebCore::Decoder::detectJapaneseEncoding): Factored out of decode.
- (WebCore::Decoder::decode): Refactored so it's no longer one huge function.
- Changed to use the new Vector<char> and the new API for TextDecoder.
- (WebCore::Decoder::flush): Added code to empty out the buffer. Not an issue in
- practice since we don't re-use the decoder after flushing it.
- * platform/UChar.h: Added. Has the type named WebCore::UChar that we'll be switching
- to. We'll switch away from the ICU ::UChar type, because we don't want to be so
- closely tied to ICU -- include this instead of <unicode/umachine.h>.
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::latin1): Updated for changes to TextEncoding.
- (WebCore::String::utf8): Ditto.
- (WebCore::String::newUninitialized): Added. Gives a way to create a String and
- then write directly into its buffer.
- * platform/StringImpl.h: Changed return value for charactersWithNullTermination to
- be a const UChar*. While it's true that this function changes the underlying
- StringImpl, the characters still shouldn't be modified with the returned pointer.
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::charactersWithNullTermination): Updated for change above.
- (WebCore::StringImpl::newUninitialized): Added. Gives a way to create a StringImpl
- and then write directly into its buffer.
- * platform/CString.h:
- * platform/CString.cpp: (WebCore::CString::newUninitialized): Added. Gives a way
- to create a CString and then write directly into its buffer.
- * bridge/mac/WebCoreFrameBridge.h: Removed textEncoding method, and replaced
- +[WebCoreFrameBridge stringWithData:textEncoding:] with
- -[WebCoreFrameBridge stringWithData:] to avoid having to pass text encoding
- IDs around.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setEncoding:userChosen:]): Removed now-unneeded conversion
- to DeprecatedString.
- (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
- Ditto.
- (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): Ditto.
- (-[WebCoreFrameBridge referrer]): Removed now-unneeded call to getNSString.
- (-[WebCoreFrameBridge stringWithData:]): Added. Asks the document's decoder
- what its encoding is, and decodes using that.
- (+[WebCoreFrameBridge stringWithData:textEncodingName:]): Simplified so it
- no longer involved a text encoding ID number.
- (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
- Changed to use UChar instead of DeprecatedChar.
- (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]): Removed
- now-unneeded conversion to DeprecatedString.
- (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Ditto.
- * html/HTMLFormElement.cpp:
- (WebCore::encodeCString): Changed parameter to CString.
- (WebCore::HTMLFormElement::formData): Updated code for improvements to TextEncoding.
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Fixed mistake where the
- decoder was created without passing in the character set. Also changed from
- DeprecatedString to String.
- (WebCore::CachedCSSStyleSheet::setCharset): More of the same.
- * bindings/js/kjs_window.h: (KJS::ScheduledAction::ScheduledAction): Changed
- to use String instead of DeprecatedString, UChar instead of DeprecatedChar,
- CString instead of DeprecatedCString, etc.
- * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
- * bridge/mac/FrameMac.h: Ditto.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::isCharacterSmartReplaceExempt):
- Ditto.
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject helpText]): Ditto.
- (-[WebCoreAXObject value]): Ditto.
- (-[WebCoreAXObject accessibilityDescription]): Ditto.
- (-[WebCoreAXObject doAXStringForTextMarkerRange:]): Ditto.
- * bridge/mac/WebCoreEncodings.mm: (+[WebCoreEncodings decodeData:]): Ditto.
- Also fixed code that does a deref without a ref to use RefPtr instead.
- * bridge/mac/WebCoreScriptDebugger.mm:
- (-[WebCoreScriptCallFrame evaluateWebScript:]): Ditto.
- * bridge/mac/WebCoreSettings.mm:
- (-[WebCoreSettings setDefaultTextEncoding:]): Ditto.
- * css/CSSImportRule.cpp: (WebCore::CSSImportRule::insertedIntoParent): Ditto.
- * css/cssparser.cpp: (WebCore::CSSParser::lex): Ditto.
- * dom/Document.h:
- * dom/Document.cpp:
- (WebCore::Document::setCharset): Ditto.
- (WebCore::Document::write): Ditto.
- (WebCore::Document::determineParseMode): Ditto.
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet): Ditto.
- * dom/XMLTokenizer.h:
- * dom/XMLTokenizer.cpp:
- (WebCore::shouldAllowExternalLoad): Ditto.
- (WebCore::createStringParser): Ditto.
- (WebCore::XMLTokenizer::write): Ditto.
- (WebCore::toString): Ditto.
- (WebCore::handleElementAttributes): Ditto.
- (WebCore::XMLTokenizer::startElementNs): Ditto.
- (WebCore::XMLTokenizer::endElementNs): Ditto.
- (WebCore::XMLTokenizer::characters): Ditto.
- (WebCore::XMLTokenizer::processingInstruction): Ditto.
- (WebCore::XMLTokenizer::cdataBlock): Ditto.
- (WebCore::XMLTokenizer::comment): Ditto.
- (WebCore::XMLTokenizer::internalSubset): Ditto.
- (WebCore::getXHTMLEntity): Ditto.
- (WebCore::externalSubsetHandler): Ditto.
- (WebCore::XMLTokenizer::initializeParserContext): Ditto.
- (WebCore::XMLTokenizer::notifyFinished): Ditto.
- (WebCore::xmlDocPtrForString): Ditto.
- (WebCore::parseXMLDocumentFragment): Ditto.
- (WebCore::attributesStartElementNsHandler): Ditto.
- (WebCore::parseAttributes): Ditto.
- * html/FormDataList.h:
- * html/FormDataList.cpp:
- (WebCore::FormDataList::appendString): Ditto. Also changed to call the
- encoding function by its new name and with new parameters.
- (WebCore::FormDataList::appendFile): Ditto.
- * html/HTMLDocument.h:
- * html/HTMLDocument.cpp:
- (WebCore::parseDocTypePart): Ditto.
- (WebCore::containsString): Ditto.
- (WebCore::parseDocTypeDeclaration): Ditto.
- (WebCore::HTMLDocument::determineParseMode): Ditto.
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::appendFormData): Ditto.
- * html/HTMLScriptElement.cpp:
- (WebCore::HTMLScriptElement::parseMappedAttribute): Ditto.
- * html/HTMLTokenizer.h:
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptHandler): Ditto.
- (WebCore::HTMLTokenizer::parseTag): Ditto.
- (WebCore::HTMLTokenizer::write): Ditto.
- (WebCore::HTMLTokenizer::finish): Ditto.
- (WebCore::parseHTMLDocumentFragment): Ditto.
- * loader/Cache.h:
- * loader/Cache.cpp:
- (WebCore::Cache::requestStyleSheet): Ditto.
- (WebCore::Cache::requestScript): Ditto.
- * loader/CachedResource.h: Ditto.
- * loader/CachedScript.h:
- * loader/CachedScript.cpp:
- (WebCore::CachedScript::CachedScript): Ditto.
- (WebCore::CachedScript::ref): Ditto.
- (WebCore::CachedScript::deref): Ditto.
- (WebCore::CachedScript::setCharset): Ditto.
- (WebCore::CachedScript::data): Ditto.
- (WebCore::CachedScript::checkNotify): Ditto.
- * loader/CachedXBLDocument.h:
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::setCharset): Ditto.
- * loader/CachedXSLStyleSheet.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::setCharset): Ditto.
- * loader/DocLoader.cpp:
- (WebCore::DocLoader::requestStyleSheet): Ditto.
- (WebCore::DocLoader::requestScript): Ditto.
- * loader/DocLoader.h: Ditto.
- * loader/FormData.h:
- * loader/FormData.cpp:
- (WebCore::FormData::FormData): Ditto.
- (WebCore::FormData::appendFile): Ditto.
- (WebCore::FormData::flattenToString): Ditto.
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/Frame.cpp:
- (WebCore::UserStyleSheetLoader::setStyleSheet): Ditto.
- (WebCore::getString): Ditto.
- (WebCore::Frame::replaceContentsWithScriptResult): Ditto.
- (WebCore::Frame::executeScript): Ditto.
- (WebCore::Frame::clear): Ditto.
- (WebCore::Frame::write): Ditto.
- (WebCore::Frame::endIfNotLoading): Ditto.
- (WebCore::Frame::baseTarget): Ditto.
- (WebCore::Frame::scheduleRedirection): Ditto.
- (WebCore::Frame::scheduleLocationChange): Ditto.
- (WebCore::Frame::scheduleHistoryNavigation): Ditto.
- (WebCore::Frame::changeLocation): Ditto.
- (WebCore::Frame::redirectionTimerFired): Ditto.
- (WebCore::Frame::encoding): Ditto.
- (WebCore::Frame::submitForm): Ditto.
- (WebCore::Frame::referrer): Ditto.
- (WebCore::Frame::isCharacterSmartReplaceExempt): Ditto.
- (WebCore::Frame::setEncoding): Ditto.
- * page/Settings.h: Ditto.
- * platform/SegmentedString.h: Ditto.
- * platform/SegmentedString.cpp: Ditto.
- * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString): Ditto.
- * xml/XSLTProcessor.cpp:
- (WebCore::transformTextStringToXHTMLDocumentString): Ditto.
- (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
- * xml/xmlhttprequest.h:
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::open): Ditto.
- (WebCore::XMLHttpRequest::send): Ditto.
- (WebCore::XMLHttpRequest::receivedData): Ditto.
- * platform/DeprecatedString.cpp:
- (WebCore::DeprecatedString::fromUtf8): Updated for changes to TextEncoding.
- (WebCore::DeprecatedString::utf8): Ditto.
- * platform/KURL.h:
- * platform/KURL.cpp:
- (WebCore::KURL::KURL): Updated to overload based on presence or absence of
- TextEncoding rather than having a default.
- (WebCore::KURL::init): Moved body of constructor in here. Updated to use
- the new TextEncoding interface.
- (WebCore::KURL::decode_string): Updated to overload based on presence or
- absence of TextEncoding rather than having a default. Updated to use
- the new TextEncoding interface.
- (WebCore::encodeRelativeString): Updated to use the new TextEncoding interface.
- * platform/Font.cpp: (WebCore::WidthIterator::normalizeVoicingMarks): Fixed
- code to use U_ZERO_ERROR instead of a typecast.
- * bindings/js/kjs_proxy.h: Removed unneeded declaration of DeprecatedString.
- * platform/GraphicsContext.h: Ditto.
- * platform/GraphicsContext.cpp: Removed unneeded include of "DeprecatedString.h".
- * rendering/break_lines.cpp: Ditto.
- * xml/XMLSerializer.cpp: Ditto.
- * platform/mac/FontDataMac.mm: Removed unneeded include of <unicode/unorm.h>.
- * platform/CharsetNames.h: Emptied out this file. A later patch could remove it.
- * platform/CharsetNames.cpp: Ditto.
- * platform/mac/ExtraCFEncodings.h: Ditto.
- 2006-09-05 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10490
- -> Remove all SVGAnimated* usage from ksvg2.
- This is all done using a set of macros which live in svg/SVGElement.h
- (ANIMATED_PROPERTY_DECLARATIONS / ANIMATED_PROPERTY_DEFINITIONS).
- Transform all properties to this new concept using Eric ruby script.
- -> Replace all usages of "property()->baseVal()" with "propertyBaseValue()".
- -> Replace all usages of "property()->setBaseVal()" with "setPropertyBaseValue()".
- -> Add "virtual const SVGElement* contextElement() const".
- This concept allows to access the document (needed to access the SVGDocumentExtensions)
- from lowest-base-classes like SVGURIReference / SVGExternalResourcesRequired etc.
- These classes contain this contextElement() function as pure virtual functions.
- The topmost classes (like SVGCircleElement) implement this function with "return this".
- -> Move default value initialization to constructors.
- As the lazy_create usage, which was involved in default property initialization,
- has been removed, we need to do the initialization in the constructor.
-
- This forces us to fix the SVGLength class, as calling viewportElement() from the
- constructor does not work. This SVGLength cleanup is one of the next things to fix.
- * bindings/scripts/CodeGeneratorJS.pm:
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::translationForAttributes):
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- (WebCore::RenderSVGImage::relativeBBox):
- (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
- (WebCore::RenderSVGImage::translationForAttributes):
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::translationForAttributes):
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- (WebCore::SVGTimer::notifyAll):
- * ksvg2/misc/SVGDocumentExtensions.cpp:
- * ksvg2/misc/SVGDocumentExtensions.h:
- (WebCore::SVGDocumentExtensions::baseValueMap):
- (WebCore::SVGDocumentExtensions::baseValue):
- (WebCore::SVGDocumentExtensions::setBaseValue):
- (WebCore::SVGDocumentExtensions::hasBaseValue):
- (WebCore::String):
- (WebCore::bool):
- (WebCore::double):
- * ksvg2/misc/SVGImageLoader.cpp:
- (WebCore::SVGImageLoader::updateFromElement):
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::parseMappedAttribute):
- (WebCore::SVGAElement::defaultEventHandler):
- * ksvg2/svg/SVGAElement.h:
- (WebCore::SVGAElement::contextElement):
- * ksvg2/svg/SVGAnimateColorElement.h:
- (WebCore::SVGAnimateColorElement::contextElement):
- * ksvg2/svg/SVGAnimateElement.h:
- (WebCore::SVGAnimateElement::contextElement):
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::initialMatrix):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- (WebCore::SVGAnimateTransformElement::contextElement):
- * ksvg2/svg/SVGCircleElement.cpp:
- (SVGCircleElement::SVGCircleElement):
- (SVGCircleElement::parseMappedAttribute):
- (SVGCircleElement::toPathData):
- (SVGCircleElement::pushAttributeContext):
- * ksvg2/svg/SVGCircleElement.h:
- (WebCore::SVGCircleElement::contextElement):
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::SVGClipPathElement):
- (SVGClipPathElement::parseMappedAttribute):
- (SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGClipPathElement.h:
- (WebCore::SVGClipPathElement::contextElement):
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
- (SVGComponentTransferFunctionElement::parseMappedAttribute):
- (SVGComponentTransferFunctionElement::transferFunction):
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGCursorElement.cpp:
- (SVGCursorElement::SVGCursorElement):
- (SVGCursorElement::parseMappedAttribute):
- * ksvg2/svg/SVGCursorElement.h:
- (WebCore::SVGCursorElement::contextElement):
- * ksvg2/svg/SVGDefsElement.h:
- (WebCore::SVGDefsElement::contextElement):
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::SVGEllipseElement):
- (WebCore::SVGEllipseElement::parseMappedAttribute):
- (WebCore::SVGEllipseElement::toPathData):
- (WebCore::SVGEllipseElement::pushAttributeContext):
- * ksvg2/svg/SVGEllipseElement.h:
- (WebCore::SVGEllipseElement::contextElement):
- * ksvg2/svg/SVGExternalResourcesRequired.cpp:
- (WebCore::SVGExternalResourcesRequired::SVGExternalResourcesRequired):
- (WebCore::SVGExternalResourcesRequired::parseMappedAttribute):
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- (SVGFEBlendElement::SVGFEBlendElement):
- (SVGFEBlendElement::parseMappedAttribute):
- (SVGFEBlendElement::filterEffect):
- * ksvg2/svg/SVGFEBlendElement.h:
- (WebCore::SVGFEBlendElement::contextElement):
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
- (SVGFEColorMatrixElement::parseMappedAttribute):
- (SVGFEColorMatrixElement::filterEffect):
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- (WebCore::SVGFEColorMatrixElement::contextElement):
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- (SVGFEComponentTransferElement::SVGFEComponentTransferElement):
- (SVGFEComponentTransferElement::parseMappedAttribute):
- (SVGFEComponentTransferElement::filterEffect):
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- (WebCore::SVGFEComponentTransferElement::contextElement):
- * ksvg2/svg/SVGFECompositeElement.cpp:
- (SVGFECompositeElement::SVGFECompositeElement):
- (SVGFECompositeElement::parseMappedAttribute):
- (SVGFECompositeElement::filterEffect):
- * ksvg2/svg/SVGFECompositeElement.h:
- (WebCore::SVGFECompositeElement::contextElement):
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
- (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
- (WebCore::SVGFEDiffuseLightingElement::filterEffect):
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- (WebCore::SVGFEDiffuseLightingElement::contextElement):
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
- (SVGFEDisplacementMapElement::parseMappedAttribute):
- (SVGFEDisplacementMapElement::filterEffect):
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- (WebCore::SVGFEDisplacementMapElement::contextElement):
- * ksvg2/svg/SVGFEDistantLightElement.cpp:
- (WebCore::SVGFEDistantLightElement::lightSource):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (SVGFEFloodElement::parseMappedAttribute):
- (SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGFEFloodElement.h:
- (WebCore::SVGFEFloodElement::contextElement):
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
- (SVGFEGaussianBlurElement::parseMappedAttribute):
- (SVGFEGaussianBlurElement::filterEffect):
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- (WebCore::SVGFEGaussianBlurElement::contextElement):
- * ksvg2/svg/SVGFEImageElement.cpp:
- (SVGFEImageElement::SVGFEImageElement):
- (SVGFEImageElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEImageElement.h:
- (WebCore::SVGFEImageElement::contextElement):
- * ksvg2/svg/SVGFELightElement.cpp:
- (SVGFELightElement::SVGFELightElement):
- (SVGFELightElement::parseMappedAttribute):
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- (SVGFEMergeElement::SVGFEMergeElement):
- (SVGFEMergeElement::filterEffect):
- * ksvg2/svg/SVGFEMergeElement.h:
- (WebCore::SVGFEMergeElement::contextElement):
- * ksvg2/svg/SVGFEMergeNodeElement.cpp:
- (SVGFEMergeNodeElement::parseMappedAttribute):
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- (WebCore::SVGFEMergeNodeElement::contextElement):
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- (SVGFEOffsetElement::SVGFEOffsetElement):
- (SVGFEOffsetElement::parseMappedAttribute):
- (SVGFEOffsetElement::filterEffect):
- * ksvg2/svg/SVGFEOffsetElement.h:
- (WebCore::SVGFEOffsetElement::contextElement):
- * ksvg2/svg/SVGFEPointLightElement.cpp:
- (WebCore::SVGFEPointLightElement::lightSource):
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
- (SVGFESpecularLightingElement::parseMappedAttribute):
- (SVGFESpecularLightingElement::filterEffect):
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- (WebCore::SVGFESpecularLightingElement::contextElement):
- * ksvg2/svg/SVGFESpotLightElement.cpp:
- (WebCore::SVGFESpotLightElement::lightSource):
- * ksvg2/svg/SVGFETileElement.cpp:
- (SVGFETileElement::parseMappedAttribute):
- (SVGFETileElement::filterEffect):
- * ksvg2/svg/SVGFETileElement.h:
- (WebCore::SVGFETileElement::contextElement):
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- (SVGFETurbulenceElement::SVGFETurbulenceElement):
- (SVGFETurbulenceElement::parseMappedAttribute):
- (SVGFETurbulenceElement::filterEffect):
- * ksvg2/svg/SVGFETurbulenceElement.h:
- (WebCore::SVGFETurbulenceElement::contextElement):
- * ksvg2/svg/SVGFilterElement.cpp:
- (SVGFilterElement::SVGFilterElement):
- (SVGFilterElement::parseMappedAttribute):
- (SVGFilterElement::canvasResource):
- * ksvg2/svg/SVGFilterElement.h:
- (WebCore::SVGFilterElement::contextElement):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- (SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
- (SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes):
- (SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
- (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- (WebCore::SVGFilterPrimitiveStandardAttributes::contextElement):
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::SVGFitToViewBox):
- (WebCore::SVGFitToViewBox::parseViewBox):
- (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
- (WebCore::SVGFitToViewBox::parseMappedAttribute):
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
- (WebCore::SVGForeignObjectElement::parseMappedAttribute):
- * ksvg2/svg/SVGForeignObjectElement.h:
- (WebCore::SVGForeignObjectElement::isValid):
- (WebCore::SVGForeignObjectElement::contextElement):
- * ksvg2/svg/SVGGElement.h:
- (WebCore::SVGGElement::contextElement):
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::SVGGradientElement):
- (SVGGradientElement::parseMappedAttribute):
- (SVGGradientElement::rebuildStops):
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::PercentageOfViewport):
- * ksvg2/svg/SVGImageElement.cpp:
- (SVGImageElement::SVGImageElement):
- (SVGImageElement::parseMappedAttribute):
- (SVGImageElement::haveLoadedRequiredResources):
- * ksvg2/svg/SVGImageElement.h:
- (WebCore::SVGImageElement::contextElement):
- * ksvg2/svg/SVGLangSpace.h:
- * ksvg2/svg/SVGLength.cpp:
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::SVGLineElement):
- (SVGLineElement::parseMappedAttribute):
- (SVGLineElement::toPathData):
- (SVGLineElement::pushAttributeContext):
- * ksvg2/svg/SVGLineElement.h:
- (WebCore::SVGLineElement::contextElement):
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (SVGLinearGradientElement::SVGLinearGradientElement):
- (SVGLinearGradientElement::parseMappedAttribute):
- (SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGLinearGradientElement.h:
- (WebCore::SVGLinearGradientElement::contextElement):
- * ksvg2/svg/SVGMarkerElement.cpp:
- (WebCore::SVGMarkerElement::SVGMarkerElement):
- (WebCore::SVGMarkerElement::parseMappedAttribute):
- (WebCore::SVGMarkerElement::setOrientToAuto):
- (WebCore::SVGMarkerElement::setOrientToAngle):
- (WebCore::SVGMarkerElement::canvasResource):
- * ksvg2/svg/SVGMarkerElement.h:
- (WebCore::SVGMarkerElement::contextElement):
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::SVGMaskElement):
- (WebCore::SVGMaskElement::attributeChanged):
- (WebCore::SVGMaskElement::parseMappedAttribute):
- (WebCore::SVGMaskElement::drawMaskerContent):
- * ksvg2/svg/SVGMaskElement.h:
- (WebCore::SVGMaskElement::contextElement):
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::SVGPathElement):
- * ksvg2/svg/SVGPathElement.h:
- (WebCore::SVGPathElement::isValid):
- (WebCore::SVGPathElement::contextElement):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::SVGPatternElement):
- (WebCore::SVGPatternElement::parseMappedAttribute):
- (WebCore::SVGPatternElement::pushAttributeContext):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGPatternElement.h:
- (WebCore::SVGPatternElement::contextElement):
- * ksvg2/svg/SVGPolyElement.h:
- (WebCore::SVGPolyElement::contextElement):
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
- (WebCore::SVGRadialGradientElement::~SVGRadialGradientElement):
- (WebCore::SVGRadialGradientElement::parseMappedAttribute):
- (WebCore::SVGRadialGradientElement::buildGradient):
- * ksvg2/svg/SVGRadialGradientElement.h:
- (WebCore::SVGRadialGradientElement::contextElement):
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::SVGRectElement):
- (WebCore::SVGRectElement::parseMappedAttribute):
- (WebCore::SVGRectElement::toPathData):
- (WebCore::SVGRectElement::pushAttributeContext):
- * ksvg2/svg/SVGRectElement.h:
- (WebCore::SVGRectElement::contextElement):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::SVGSVGElement):
- (WebCore::SVGSVGElement::~SVGSVGElement):
- (WebCore::SVGSVGElement::viewport):
- (WebCore::SVGSVGElement::parseMappedAttribute):
- (WebCore::SVGSVGElement::getCTM):
- (WebCore::SVGSVGElement::getScreenCTM):
- (WebCore::SVGSVGElement::createRenderer):
- * ksvg2/svg/SVGSVGElement.h:
- (WebCore::SVGSVGElement::contextElement):
- * ksvg2/svg/SVGScriptElement.h:
- (WebCore::SVGScriptElement::contextElement):
- * ksvg2/svg/SVGSetElement.h:
- (WebCore::SVGSetElement::contextElement):
- * ksvg2/svg/SVGStopElement.cpp:
- (SVGStopElement::SVGStopElement):
- (SVGStopElement::parseMappedAttribute):
- * ksvg2/svg/SVGStopElement.h:
- * ksvg2/svg/SVGStylable.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (SVGStyledTransformableElement::SVGStyledTransformableElement):
- (SVGStyledTransformableElement::parseMappedAttribute):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.cpp:
- * ksvg2/svg/SVGSwitchElement.h:
- (WebCore::SVGSwitchElement::contextElement):
- * ksvg2/svg/SVGSymbolElement.h:
- (WebCore::SVGSymbolElement::contextElement):
- * ksvg2/svg/SVGTRefElement.cpp:
- (SVGTRefElement::updateReferencedText):
- * ksvg2/svg/SVGTRefElement.h:
- (WebCore::SVGTRefElement::contextElement):
- * ksvg2/svg/SVGTSpanElement.h:
- (WebCore::SVGTSpanElement::contextElement):
- * ksvg2/svg/SVGTextContentElement.cpp:
- (SVGTextContentElement::SVGTextContentElement):
- (SVGTextContentElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::SVGTextElement):
- (WebCore::SVGTextElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextElement.h:
- (WebCore::SVGTextElement::contextElement):
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- (SVGTextPositioningElement::SVGTextPositioningElement):
- (SVGTextPositioningElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextPositioningElement.h:
- * ksvg2/svg/SVGTransformable.cpp:
- * ksvg2/svg/SVGTransformable.h:
- * ksvg2/svg/SVGURIReference.cpp:
- (SVGURIReference::parseMappedAttribute):
- * ksvg2/svg/SVGURIReference.h:
- * ksvg2/svg/SVGUseElement.cpp:
- (SVGUseElement::SVGUseElement):
- (SVGUseElement::parseMappedAttribute):
- (SVGUseElement::closeRenderer):
- * ksvg2/svg/SVGUseElement.h:
- (WebCore::SVGUseElement::contextElement):
- * ksvg2/svg/SVGViewElement.h:
- (WebCore::SVGViewElement::contextElement):
- 2006-09-05 Eric Seidel <eric@webkit.org>
- Reviewed by aroben.
- Speed up path parsing by removing string copies.
- http://bugs.webkit.org/show_bug.cgi?id=10722
-
- Tests already cover path parsing.
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (WebCore::SVGFitToViewBox::parseViewBox):
- * ksvg2/svg/svgpathparser.cpp:
- (WebCore::skipOptionalSpaces): Added.
- (WebCore::skipOptionalSpacesOrComma): Added.
- (WebCore::parseCoord):
- (WebCore::SVGPolyParser::parsePoints):
- (WebCore::SVGPathParser::parseSVG):
- 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10742
- More Objective-C DOM auto-generation cleanup
-
- - Factor out implementation type-getters into their own function
- and standardize naming as was done for type-makers (ie. HTML
- and CSS prefixing for method names).
- * bindings/objc/DOMCSS.mm:
- (-[DOMCSSStyleDeclaration getPropertyShorthand:]):
- (-[DOMCSSStyleDeclaration isPropertyImplicit:]):
- (-[DOMCSSStyleDeclaration _CSSStyleDeclaration]):
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLTableCaptionElement _HTMLTableCaptionElement]):
- (-[DOMHTMLTableSectionElement _HTMLTableSectionElement]):
- (-[DOMHTMLTableElement _HTMLTableElement]):
- (-[DOMHTMLTableCellElement _HTMLTableCellElement]):
- (-[DOMHTMLEmbedElement _HTMLEmbedElement]):
- (-[DOMHTMLEmbedElement align]):
- (-[DOMHTMLEmbedElement setAlign:]):
- (-[DOMHTMLEmbedElement height]):
- (-[DOMHTMLEmbedElement setHeight:]):
- (-[DOMHTMLEmbedElement name]):
- (-[DOMHTMLEmbedElement setName:]):
- (-[DOMHTMLEmbedElement src]):
- (-[DOMHTMLEmbedElement setSrc:]):
- (-[DOMHTMLEmbedElement type]):
- (-[DOMHTMLEmbedElement setType:]):
- (-[DOMHTMLEmbedElement width]):
- (-[DOMHTMLEmbedElement setWidth:]):
- * bindings/objc/DOMInternal.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
- (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
- (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
- (-[WebCoreFrameBridge selectionStartHasStyle:]):
- (-[WebCoreFrameBridge selectionHasStyle:]):
- 2006-09-05 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Removed dead code for password field.
- * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextField.mm:
- 2006-09-05 Justin Garcia <justin.garcia@apple.com>
- Reviewed by thatcher
-
- Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
-
- Fixes:
- <http://bugs.webkit.org/show_bug.cgi?id=6498>
- SelectionController's setters should notify delegates of selection changes
-
- Moved setSelection from Frame to SelectionController.
- I haven't moved any of the work that's done as a result of a
- Selection change to SelectionController yet.
- Make fewer uses of SelectionControllers. They're now only used for
- the Frame's selection, the Page's drag caret, and functions that
- need to do Selection expansion.
- * bindings/js/kjs_window.cpp:
- (KJS::Selection::getValueProperty):
- (KJS::Selection::toString):
- (KJS::SelectionFunc::callAsFunction):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- (WebCore::FrameMac::dispatchCPPEvent):
- (WebCore::FrameMac::fontForSelection):
- (WebCore::FrameMac::baseWritingDirectionForSelectionStart):
- (WebCore::FrameMac::markMisspellingsInAdjacentWords):
- (WebCore::FrameMac::markMisspellings):
- (WebCore::FrameMac::respondToChangedSelection):
- (WebCore::FrameMac::shouldChangeSelection):
- (WebCore::FrameMac::shouldDeleteSelection):
- (WebCore::FrameMac::respondToChangedContents):
- * bridge/mac/PageMac.mm:
- (WebCore::Page::Page):
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
- (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
- (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
- (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge isSelectionEditable]):
- (-[WebCoreFrameBridge isSelectionRichlyEditable]):
- (-[WebCoreFrameBridge selectionState]):
- (-[WebCoreFrameBridge deselectText]):
- (-[WebCoreFrameBridge selectedAttributedString]):
- (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
- (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
- (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
- (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
- (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
- (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
- (-[WebCoreFrameBridge selectedDOMRange]):
- (-[WebCoreFrameBridge selectNSRange:]):
- (-[WebCoreFrameBridge selectedNSRange]):
- (-[WebCoreFrameBridge selectionAffinity]):
- (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
- (-[WebCoreFrameBridge setSelectionToDragCaret]):
- (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
- (-[WebCoreFrameBridge moveDragCaretToPoint:]):
- (-[WebCoreFrameBridge removeDragCaret]):
- (-[WebCoreFrameBridge dragCaretDOMRange]):
- (-[WebCoreFrameBridge isDragCaretRichlyEditable]):
- (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
- (-[WebCoreFrameBridge ensureSelectionVisible]):
- (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
- * bridge/win/PageWin.cpp:
- (WebCore::Page::Page):
- * dom/Document.cpp:
- (WebCore::Document::updateSelection):
- (WebCore::Document::clearSelectionIfNeeded):
- (WebCore::Document::notifyBeforeNodeRemoval):
- * dom/Element.cpp:
- (WebCore::Element::updateFocusAppearance):
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::EditCommand):
- * editing/JSEditor.cpp:
- * editing/ModifySelectionListLevel.cpp:
- (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
- (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
- * editing/Selection.cpp:
- (WebCore::Selection::setBase):
- (WebCore::Selection::setExtent):
- * editing/Selection.h:
- (WebCore::Selection::extent):
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::SelectionController):
- (WebCore::SelectionController::moveTo):
- (WebCore::SelectionController::setSelection):
- (WebCore::SelectionController::nodeWillBeRemoved):
- (WebCore::SelectionController::modify):
- (WebCore::SelectionController::clear):
- (WebCore::SelectionController::setBase):
- (WebCore::SelectionController::setExtent):
- * editing/SelectionController.h:
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::insertText):
- (WebCore::TypingCommand::deleteKeyPressed):
- (WebCore::TypingCommand::forwardDeleteKeyPressed):
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::caretRect):
- * editing/VisiblePosition.h:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- * page/Frame.cpp:
- (WebCore::Frame::selectedText):
- (WebCore::Frame::hasSelection):
- (WebCore::Frame::selectionController):
- (WebCore::Frame::dragCaretController):
- (WebCore::Frame::notifyRendererOfSelectionChange):
- (WebCore::Frame::invalidateSelection):
- (WebCore::Frame::clearCaretRectIfNeeded):
- (WebCore::Frame::setFocusNodeIfNeeded):
- (WebCore::Frame::selectionLayoutChanged):
- (WebCore::Frame::caretBlinkTimerFired):
- (WebCore::Frame::paintCaret):
- (WebCore::Frame::paintDragCaret):
- (WebCore::Frame::isPointInsideSelection):
- (WebCore::Frame::selectClosestWordFromMouseEvent):
- (WebCore::Frame::handleMousePressEventDoubleClick):
- (WebCore::Frame::handleMousePressEventTripleClick):
- (WebCore::Frame::handleMousePressEventSingleClick):
- (WebCore::Frame::handleMouseMoveEvent):
- (WebCore::Frame::handleMouseReleaseEvent):
- (WebCore::Frame::selectAll):
- (WebCore::Frame::selectContentsOfNode):
- (WebCore::Frame::shouldChangeSelection):
- (WebCore::Frame::shouldDeleteSelection):
- (WebCore::Frame::isSelectionInPasswordField):
- (WebCore::Frame::appliedEditing):
- (WebCore::Frame::unappliedEditing):
- (WebCore::Frame::reappliedEditing):
- (WebCore::Frame::computeAndSetTypingStyle):
- (WebCore::Frame::applyStyle):
- (WebCore::Frame::applyParagraphStyle):
- (WebCore::Frame::selectionListState):
- (WebCore::Frame::selectionHasStyle):
- (WebCore::Frame::selectionComputedStyle):
- (WebCore::Frame::selectFrameElementInParentIfFullySelected):
- (WebCore::Frame::currentForm):
- (WebCore::Frame::revealSelection):
- (WebCore::Frame::centerSelectionInVisibleArea):
- (WebCore::Frame::styleForSelectionStart):
- (WebCore::Frame::setSelectionFromNone):
- (WebCore::Frame::findString):
- * page/Frame.h:
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- * page/FrameView.cpp:
- (WebCore::FrameView::clear):
- * page/Page.cpp:
- (WebCore::Page::dragCaretController):
- * page/Page.h:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintCaret):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::autoscroll):
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::selectionStart):
- (WebCore::RenderTextControl::selectionEnd):
- (WebCore::RenderTextControl::setSelectionRange):
- (WebCore::RenderTextControl::selectionChanged):
- * rendering/RenderTreeAsText.cpp:
- (WebCore::writeSelection):
- 2006-09-05 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- Let the engine draw the focus ring for styled menu lists.
- * rendering/RenderTheme.cpp: (WebCore::RenderTheme::supportsFocusRing): Added case for MenulistButtonAppearance.
- 2006-09-05 Adele Peterson <adele@apple.com>
- Reviewed by Adam.
- - Fix for <rdar://problem/4706463> REGRESSION: Must click twice on <select> elements for menu to show
- * rendering/RenderPopupMenuMac.h:
- * rendering/RenderPopupMenuMac.mm:
- (WebCore::RenderPopupMenuMac::showPopup): Moved call to dismiss popup into hidePopup method.
- Now calls RenderMenuList::hidePopup which will update the m_popupIsVisible flag on the menu list before hiding the popup.
- (WebCore::RenderPopupMenuMac::hidePopup): Added.
- 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=10738
- Consolidate the Objective-C DOM Bindings Internal files into DOMInternal.h
- - Consolidate DOMHTMLInternal.h, DOMCSSInternal.h, DOMEventsInternal.h,
- DOMViewsInternal.h and DOMXPathInternal.h into DOMInternal.h.
- - Rename the "type-makers" (used to make a binding from an implementation
- type) so that all the HTML ones begin with the prefix HTML. Did the same
- for the CSS.
- - Auto-generate a couple more methods from DOMExtensions.h.
- - Various cleanups of the Objective-C auto-generation code.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMDocument createCSSStyleDeclaration]):
- * bindings/objc/DOMCSS.mm:
- (+[DOMCSSRuleList _CSSRuleListWith:]):
- (+[DOMCSSRule _CSSRuleWith:]):
- (+[DOMCSSStyleDeclaration _CSSStyleDeclarationWith:]):
- (+[DOMCSSValue _CSSValueWith:]):
- (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:]):
- (-[DOMDocument getComputedStyle::]):
- (-[DOMDocument getMatchedCSSRules::]):
- * bindings/objc/DOMCSSInternal.h: Removed.
- * bindings/objc/DOMEvents.mm:
- * bindings/objc/DOMEventsInternal.h: Removed.
- * bindings/objc/DOMEventsNonstandard.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.mm:
- (+[DOMHTMLCollection _HTMLCollectionWith:]):
- (+[DOMHTMLOptionsCollection _HTMLOptionsCollectionWith:]):
- (+[DOMHTMLElement _HTMLElementWith:]):
- (+[DOMHTMLFormElement _HTMLFormElementWith:]):
- (+[DOMHTMLTableCaptionElement _HTMLTableCaptionElementWith:]):
- (+[DOMHTMLTableSectionElement _HTMLTableSectionElementWith:]):
- (+[DOMHTMLTableElement _HTMLTableElementWith:]):
- (+[DOMHTMLTableCellElement _HTMLTableCellElementWith:]):
- * bindings/objc/DOMHTMLAppletElement.mm:
- * bindings/objc/DOMHTMLDocument.mm:
- (-[DOMHTMLDocument body]):
- (-[DOMHTMLDocument images]):
- (-[DOMHTMLDocument applets]):
- (-[DOMHTMLDocument links]):
- (-[DOMHTMLDocument forms]):
- (-[DOMHTMLDocument anchors]):
- * bindings/objc/DOMHTMLInternal.h: Removed.
- * bindings/objc/DOMHTMLOptionElement.mm:
- (-[DOMHTMLOptionElement form]):
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMRGBColor.mm:
- (setWrapperForRGB):
- (-[DOMRGBColor red]):
- (-[DOMRGBColor green]):
- (-[DOMRGBColor blue]):
- (-[DOMRGBColor alpha]):
- * bindings/objc/DOMUtility.mm:
- (KJS::ScriptInterpreter::createObjcInstanceForValue):
- * bindings/objc/DOMViews.mm:
- (-[DOMAbstractView WebCore::]):
- (-[DOMAbstractView _initWithAbstractView:WebCore::]):
- (+[DOMAbstractView _abstractViewWith:WebCore::]):
- * bindings/objc/DOMViewsInternal.h: Removed.
- * bindings/objc/DOMXPath.mm:
- * bindings/objc/DOMXPathInternal.h: Removed.
- * bindings/objc/PublicDOMInterfaces.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge typingStyle]):
- * html/HTMLAnchorElement.idl:
- * html/HTMLAreaElement.idl:
- * html/HTMLImageElement.idl:
- * html/HTMLInputElement.idl:
- * html/HTMLLinkElement.idl:
- 2006-09-05 Steve Falkenburg <sfalken@apple.com>
- Conditionalize new DOM headers for ObjC only
- * DerivedSources.make:
- 2006-09-04 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10716
- XMLHttpRequest.responseText is null if HTTP response is empty
- Extended existing tests:
- - http/tests/xmlhttrequest/zero-length-response.html
- - http/tests/xmlhttrequest/zero-length-response-sync.html
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::XMLHttpRequest): Initialize responseText to an empty string.
- (WebCore::XMLHttpRequest::open): Reset responseText to an empty string.
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequest::getValueProperty): Return null rather than undefined
- for nil responseXML.
- 2006-09-04 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- Bug 10714: ObjC autogeneration needs safe-guards against easily modifying the public API
- http://bugs.webkit.org/show_bug.cgi?id=10714
-
- - New PublicDOMInterfaces.h file is consulted when generating
- the ObjC DOM files. All public DOM class interfaces, properties
- and methods need to be in this file. Anything not in the file will
- be generated into the appropriate private header file. During
- generation if something changed or is missing in the public API
- a build error will occur. New interfaces added to the IDLs files
- will now not automatically be reflected in the public ObjC API.
- Methods commented out in PublicDOMInterfaces.h are pending public
- and will be uncommented once approved.
- - Removed most of the Exclude=ObjC uses from the IDL files. This
- attribute was mostly used to prevent changes to the public headers.
- - Make a new parameter name if the original conflicts with a property name.
- - Simplified the generation code for dealing with exceptions.
- - Moved file opens to WriteData. Files are unlinked before
- being opened to work around a Leopard file truncation bug.
- - Fixed #imports for DOMImplementation to be DOMDOMImplementation.h
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCSS.h:
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/PublicDOMInterfaces.h: Added.
- * bindings/scripts/CodeGeneratorObjC.pm:
- * dom/Document.idl:
- * dom/Element.idl:
- * dom/NamedNodeMap.idl:
- * dom/ProcessingInstruction.idl:
- * html/HTMLAnchorElement.idl:
- * html/HTMLAreaElement.idl:
- * html/HTMLBodyElement.idl:
- * html/HTMLButtonElement.idl:
- * html/HTMLImageElement.idl:
- * html/HTMLInputElement.idl:
- * html/HTMLLabelElement.idl:
- * html/HTMLLegendElement.idl:
- * html/HTMLLinkElement.idl:
- * html/HTMLOptionsCollection.idl:
- * html/HTMLPreElement.idl:
- * html/HTMLStyleElement.idl:
- * html/HTMLTextAreaElement.idl:
- 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Continue fixing the build, I forgot this in my previous patch!
- * platform/qt/PathQt.cpp:
- (WebCore::Path::apply):
- 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Fix build on Qt/Linux.
- * CMakeLists.txt:
- * platform/qt/PathQt.cpp:
- (WebCore::Path::transform):
- 2006-09-04 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10676
- @charset rules not accessible via DOM
- Test: fast/encoding/css-charset-dom.html
- * WebCore.xcodeproj/project.pbxproj: Added CSSCharsetRule.cpp
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleSheet::getValueProperty):
- Separated Rules and CssRules, since now they behave differently.
- * css/CSSCharsetRule.h: Make the constructor take an encoding.
- * css/CSSCharsetRule.cpp: Added.
- * css/CSSGrammar.y: Create CSSStylesheetRules as necessary.
- * css/CSSRuleList.cpp:
- (WebCore::CSSRuleList::CSSRuleList):
- * css/CSSRuleList.h:
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::cssRules):
- * css/CSSStyleSheet.h:
- Skip charset rules in IE compatibility mode.
- * css/StyleBase.h:
- (WebCore::StyleBase::isCharsetRule): Fixed a typo.
- * css/cssparser.cpp:
- (WebCore::CSSParser::createCharsetRule):
- * css/cssparser.h:
- Added createCharsetRule().
- 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Darin.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
- Let FrameQt operate on a FrameQtClient, just like Win/Mac handle it.
- * CMakeLists.txt:
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::~FrameQt):
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- * platform/qt/FrameQt.h:
- * platform/qt/FrameQtClient.cpp: Added.
- (WebCore::FrameQtClientDefault::FrameQtClientDefault):
- (WebCore::FrameQtClientDefault::~FrameQtClientDefault):
- (WebCore::FrameQtClientDefault::setFrame):
- (WebCore::FrameQtClientDefault::openURL):
- (WebCore::FrameQtClientDefault::submitForm):
- (WebCore::FrameQtClientDefault::receivedResponse):
- (WebCore::FrameQtClientDefault::receivedData):
- (WebCore::FrameQtClientDefault::receivedAllData):
- * platform/qt/FrameQtClient.h: Added.
- (WebCore::FrameQtClient::~FrameQtClient):
- 2006-09-04 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- Clean-up style and spacing.
- http://bugs.webkit.org/show_bug.cgi?id=10724
- No tests needed, no functional changes.
- * ksvg2/svg/svgpathparser.cpp:
- (WebCore::parseCoord):
- (WebCore::SVGPolyParser::parsePoints):
- (WebCore::SVGPathParser::parseSVG):
- (WebCore::SVGPathParser::calculateArc):
- (WebCore::SVGPathParser::svgLineToHorizontal):
- (WebCore::SVGPathParser::svgLineToVertical):
- (WebCore::SVGPathParser::svgCurveToCubicSmooth):
- (WebCore::SVGPathParser::svgCurveToQuadratic):
- (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
- (WebCore::SVGPathParser::svgArcTo):
- 2006-09-04 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=6546
- clipPath data does not respect transforms
- Get the transform from the dom element and adjust
- the clip path with it.
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::canvasResource):
- 2006-09-04 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- This code should have gone in as part of:
- http://bugs.webkit.org/show_bug.cgi?id=10696
- It addresses the comments there, also we use double instead
- of float now in calculations.
- * platform/Path.cpp:
- (WebCore::Path::createRoundedRectangle):
- (WebCore::Path::createRectangle):
- (WebCore::Path::createEllipse):
- (WebCore::Path::createCircle):
- 2006-09-03 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin and Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10711
- Auto-generate the Objective-C DOM Stylesheet bindings
- Auto-generates DOMMediaList, DOMStyleSheet, and DOMStyleSheetList.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCSS.mm:
- (+[DOMStyleSheet _styleSheetWith:]):
- (+[DOMCSSStyleSheet _CSSStyleSheetWith:]):
- * bindings/objc/DOMCSSInternal.h:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMObject.mm:
- (-[DOMObject sheet]):
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMStylesheets.h:
- * bindings/objc/DOMUtility.mm:
- (KJS::ScriptInterpreter::createObjcInstanceForValue):
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/StyleSheet.idl: Added.
- * css/StyleSheetList.idl: Added.
- 2006-09-03 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10696
- RenderPathQuartz and RenderPathQt should not be needed
- Cleanup of code related to RenderPath.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasCreator.cpp:
- * kcanvas/KCanvasCreator.h:
- * kcanvas/RenderPath.cpp:
- (WebCore::):
- (WebCore::DrawMarkersData::DrawMarkersData):
- (WebCore::drawMarkerWithData):
- (WebCore::updateMarkerDataForElement):
- (WebCore::drawStartAndMidMarkers):
- (WebCore::RenderPath::drawMarkersIfNeeded):
- * kcanvas/RenderPath.h:
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/RenderPathQt.cpp:
- (WebCore::RenderPath::strokeContains):
- (WebCore::RenderPath::strokeBBox):
- * kcanvas/device/qt/RenderPathQt.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::RenderPath::strokeBBox):
- (WebCore::RenderPath::strokeContains):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * kcanvas/device/quartz/QuartzSupport.h:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGCircleElement.cpp:
- (SVGCircleElement::toPathData):
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::toPathData):
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGGElement.cpp:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::toPathData):
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGPathElement.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/SVGPolygonElement.cpp:
- * ksvg2/svg/SVGPolylineElement.cpp:
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::toPathData):
- * ksvg2/svg/SVGSVGElement.cpp:
- * ksvg2/svg/SVGStyledElement.cpp:
- (WebCore::SVGStyledElement::createRenderer):
- * ksvg2/svg/SVGSwitchElement.cpp:
- * ksvg2/svg/SVGTextElement.cpp:
- * ksvg2/svg/SVGUseElement.cpp:
- * platform/Path.h:
- (WebCore::):
- * platform/cg/PathCG.cpp:
- (WebCore::CGPathToCFStringApplierFunction):
- (WebCore::CGPathApplierToPathApplier):
- (WebCore::Path::apply):
- (WebCore::Path::transform):
- * platform/qt/PathQt.cpp:
- (WebCore::Path::apply):
- 2006-09-03 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- Bug 10685: ObjC DOM should have no unnamed parameters
- http://bugs.webkit.org/show_bug.cgi?id=10685
- - The ObjC code generation script now outputs parameter prefixes
- for methods that have more than 1 parameter. This prefix is simply
- the parameter name. Some parameter names have been changed in the IDL
- files to produce better prefixes. If an extended attribute of "ObjCPrefix"
- exists on a parameter we will use that for the prefix.
- - A backwards compatible version of the method is placed in a
- category with a deprecation macro for 10.5 and later. This step only
- happens if the IDL extended attribute "OldStyleObjC" is defined.
- All new functions in IDL should not get this attribute.
- - Made the $interfaceMethodSelector regex in IDLStructure.pm allow "=" so
- parameter extended attributes can have values.
- - Moved RemoveExcludedAttributesAndFunctions to CodeGenerator.pm
- so it can be shared between the two generators.
-
- - Removed the die when we encounter a getter that uses exceptions.
- Sam Weinig added support for this in an earlier change.
- - Check if $ENV{"MACOSX_DEPLOYMENT_TARGET"} is defined before we compare.
- This caused a perl warning when generating on other platforms.
- - The ObjC generation will not happen on platforms other than Mac OS.
- This is determined by the "OS" env variable Xcode sets. This check
- is in the DerivedSources.make.
- - Added a way to skip generation if the constructor of the specific
- generator returns undef. Not used yet.
- - Many cleanup tweaks in CodeGeneratorObjC.pm.
- - Removed IDL and CSS files from the project's resource copy phase,
- these do no need to be in WebCore's resources.
- * DerivedSources.make
- * WebCore.xcodeproj/project.pbxproj
- * bindings/scripts/CodeGenerator.pm
- * bindings/scripts/CodeGeneratorJS.pm
- * bindings/scripts/CodeGeneratorObjC.pm
- * bindings/scripts/IDLStructure.pm
- * css/CSSMediaRule.idl
- * css/CSSPrimitiveValue.idl
- * css/CSSStyleDeclaration.idl
- * css/CSSStyleSheet.idl
- * dom/CharacterData.idl
- * dom/DOMImplementation.idl
- * dom/Document.idl
- * dom/Element.idl
- * dom/KeyboardEvent.idl
- * dom/MouseEvent.idl
- * dom/MutationEvent.idl
- * dom/NamedNodeMap.idl
- * dom/UIEvent.idl
- * html/HTMLCanvasElement.idl
- * html/HTMLSelectElement.idl
- * ksvg2/bindings/idl/svg/SVGLengthList.idl
- * ksvg2/bindings/idl/svg/SVGNumberList.idl
- * ksvg2/bindings/idl/svg/SVGPointList.idl
- * ksvg2/bindings/idl/svg/SVGStringList.idl
- * ksvg2/bindings/idl/svg/SVGTextContentElement.idl
- * ksvg2/bindings/idl/svg/SVGTransformList.idl
- * ksvg2/svg/SVGSVGElement.idl
- * page/DOMWindow.idl
- 2006-09-03 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=10693
- Convert JavaScript arrays to AppleScript lists
- Test: fast/AppleScript/array.html
- * bridge/mac/WebCoreFrameBridge.mm:
- (aeDescFromJSValue): Added a case for ArrayInstance.
- 2006-09-03 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10697
- REGRESSION (r16175): Errors in incremental decoding of UTF-8
- Tests:
- - http/tests/incremental/slow-utf8-html.pl
- - fast/encoding/charset-invalid.html
- * loader/Decoder.cpp:
- (Decoder::Decoder): Ensure that we have a valid encoding. Get its name via TextEncoding, to match
- the logic in setEncodingName().
- (Decoder::setEncodingName): Only set m_encodingName if the encoding is valid. Rely on TextEncoding
- constructor to lowercase it if necessary.
- (Decoder::decode): Use setEncodingName() to apply encoding from BOM. Don't try to ensure the
- validity of encoding - it is enforced by class constructor and setEncodingName().
- 2006-09-02 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10684
- Auto-generate the Objective-C DOM CSS bindings
- Auto-generates DOMCSSCharsetRule, DOMCSSFontFaceRule, DOMCSSImportRule,
- DOMCSSMediaRule, DOMCSSPageRule, DOMCSSPrimitiveValue, DOMCSSRule,
- DOMCSSRuleList, DOMCSSStyleDeclaration, DOMCSSStyleRule, DOMCSSStyleSheet,
- DOMCSSUnknownRule, DOMCSSValue, DOMCSSValueList, DOMCounter, and DOMRect.
- Splits DOMRGBColor into its own files.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCSS.h:
- * bindings/objc/DOMCSS.mm:
- (+[DOMCSSStyleSheet _CSSStyleSheetWith:]):
- (+[DOMCSSPrimitiveValue _valueWith:]):
- * bindings/objc/DOMCSSInternal.h:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMRGBColor.h: Added.
- * bindings/objc/DOMRGBColor.mm: Added.
- (getWrapperForRGB):
- (setWrapperForRGB):
- (removeWrapperForRGB):
- (-[DOMRGBColor dealloc]):
- (-[DOMRGBColor finalize]):
- (-[DOMRGBColor red]):
- (-[DOMRGBColor green]):
- (-[DOMRGBColor blue]):
- (-[DOMRGBColor alpha]):
- (-[DOMRGBColor color]):
- (-[DOMRGBColor _initWithRGB:WebCore::]):
- (+[DOMRGBColor _RGBColorWithRGB:WebCore::]):
- * bindings/scripts/CodeGeneratorObjC.pm:
- * css/CSSCharsetRule.idl: Added.
- * css/CSSFontFaceRule.idl: Added.
- * css/CSSImportRule.idl: Added.
- * css/CSSMediaRule.idl: Added.
- * css/CSSPageRule.idl: Added.
- * css/CSSRule.idl:
- * css/CSSStyleDeclaration.idl:
- * css/CSSStyleRule.idl: Added.
- * css/CSSStyleSheet.idl: Added.
- * css/CSSUnknownRule.idl: Added.
- * css/CSSValue.idl:
- * css/MediaList.idl:
- * css/RGBColor.idl: Added.
- * css/Rect.idl:
- * css/RectImpl.h:
- 2006-09-02 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Justin.
-
- http://bugs.webkit.org/show_bug.cgi?id=10579
- AppleStyleCommand::applyBlockStyle crash
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyBlockStyle): Prevent a crash by
- making sure that the 'beyondEnd' node is after the start node.
- 2006-09-02 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Tim H.
- Bug 10454: Unix bakefile fixes
- http://bugs.webkit.org/show_bug.cgi?id=10454
- * WebCoreSources.bkl:
- * platform/gdk/RenderPopupMenuGdk.cpp:
- (WebCore::RenderPopupMenuGdk::RenderPopupMenuGdk):
- * platform/gdk/RenderPopupMenuGdk.h:
- * platform/gdk/RenderThemeGdk.cpp:
- (WebCore::RenderThemeGdk::createPopupMenu):
- (WebCore::RenderThemeGdk::systemFont):
- * platform/gdk/RenderThemeGdk.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- * webcore-base.bkl:
- 2006-09-02 Adele Peterson <adele@apple.com>
- Reviewed by Anders.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=10667
- Password: Double-click should select-all to avoid exposing word boundaries
- Test: fast/forms/password-doubleclick-selection.html
- * editing/visible_units.cpp:
- (WebCore::previousBoundary): When searching for boundaries in renderers that use the textSecurity property,
- convert characters in strings to alpha-numeric characters (in this case, all 'x's) so that every character
- isn't treated as a punctuation boundary.
- (WebCore::nextBoundary): ditto.
- * editing/TextIterator.cpp: (WebCore::SimplifiedBackwardsTextIterator::handleTextNode): Updated to use the renderer's
- string instead of the node value. This matches the base class implementation of handleTextNode.
- Code cleanup.
- * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
- Avoid unnecessary check for password field case if the smart replace condition is false.
- * page/Frame.cpp: (WebCore::Frame::mayCopy): Removed duplicate code. Calls isSelectionInPasswordField now.
- * rendering/RenderText.cpp: (WebCore::RenderText::setText): Updated formatting.
- 2006-09-01 David Hyatt <hyatt@apple.com>
- Fix for 10682, refine the FOUC paint suppression logic so that it
- is only triggered when FOUC would really have occurred.
- Reviewed by aroben
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::styleForElement):
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::updateLayoutIgnorePendingStylesheets):
- (WebCore::Document::updateStyleSelector):
- * dom/Document.h:
- (WebCore::Document::haveStylesheetsLoaded):
- (WebCore::Document::):
- (WebCore::Document::didLayoutWithPendingStylesheets):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintChildren):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::paintLayer):
- 2006-09-01 Darin Fisher <darin@chromium.org>
- Reviewed by Darin. Updated/landed by Adam.
- Fixes http://bugs.webkit.org/show_bug.cgi?id=10553
- Windows build fixes
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.vcproj/WebCore/build-generated-files.sh:
- * bridge/win/FrameWin.h:
- * bridge/win/PageWin.cpp:
- (WebCore::Page::Page):
- * platform/win/FontWin.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::registerCommandForUndo):
- (FrameWin::canPaste):
- (FrameWin::issuePasteAndMatchStyleCommand):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (FrameWin::overrideMediaType):
- (FrameWin::saveDocumentState):
- (FrameWin::respondToChangedContents):
- (FrameWin::handledOnloadEvents):
- (FrameWin::createPlugin):
- (FrameWin::objectContentType):
- (Path::contains):
- (TextField::TextField):
- (RenderPopupMenuWin::hidePopup):
- (RenderThemeWin::paintMenuList):
- (RenderThemeWin::adjustMenuListStyle):
- (CString::CString):
- (CString::data):
- * platform/win/WidgetWin.cpp:
- * rendering/RenderPopupMenuWin.h:
- 2006-09-01 Brady Eidson <beidson@apple.com>
- Reviewed by Tim Omernick
- Added an SQLDatabase logging channel. Changed all SQLDatabase and SQLStatement errors to use this new channel.
- Also, as a popular request from other contributers, added a log for all prepare(), step(), finalize(), and reset()s
- Also, fixed a grammar error in my previous ChangeLog entry.
- * bridge/mac/WebCorePageBridge.mm:
- (initializeLoggingChannelsIfNecessary): Initialize the new channel
- * loader/icon/SQLDatabase.cpp:
- (WebCore::SQLDatabase::setBusyTimeout): Use SQLDatabase logging channel
- (WebCore::SQLDatabase::setBusyHandler): ditto
- (WebCore::SQLDatabase::clearAllTables): ditto
- (WebCore::SQLDatabase::runVacuumCommand): ditto
- * loader/icon/SQLStatement.cpp:
- (WebCore::SQLStatement::prepare): Added a log
- (WebCore::SQLStatement::step): ditto
- (WebCore::SQLStatement::finalize): ditto
- (WebCore::SQLStatement::reset): ditto
- (WebCore::SQLStatement::getColumnBlob): Use SQLDatabase logging channel
- (WebCore::SQLStatement::returnTextResults): ditto
- (WebCore::SQLStatement::returnTextResults16): ditto
- (WebCore::SQLStatement::returnIntResults): ditto
- (WebCore::SQLStatement::returnInt64Results): ditto
- (WebCore::SQLStatement::returnDoubleResults): ditto
- * platform/Logging.cpp:
- (WebCore::): Added new logging channel
- * platform/Logging.h: ditto
- 2006-09-01 Adele Peterson <adele@apple.com>
- Reviewed by Tim Omernick.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=6990
- Switch to use new text field implementation for <input type="password">
- * css/html4.css: Give input[password] the same style properties as normal text fields.
- * html/HTMLInputElement.cpp: Removed checks for TextFieldAppearance.
- (WebCore::HTMLInputElement::selectionStart):
- (WebCore::HTMLInputElement::selectionEnd):
- (WebCore::HTMLInputElement::setSelectionStart):
- (WebCore::HTMLInputElement::setSelectionEnd):
- (WebCore::HTMLInputElement::select):
- (WebCore::HTMLInputElement::setSelectionRange):
- (WebCore::HTMLInputElement::createRenderer):
- * html/HTMLInputElement.h: (WebCore::HTMLInputElement::isNonWidgetTextField):
- 2006-09-01 Brady Eidson <beidson@apple.com>
- Reviewed by John (though Sarge reviewed a previous patch of mine in an attempt to review this one)
- Added some constants for SQL Result Codes to SQLDatabase.h
- This way, users of SQLDatabase can access all necessary SQLite functionality
- without having access to sqlite3.h.
- Also reordered some files in the xcodeproj and some #includes
- * WebCore.xcodeproj/project.pbxproj: Reordered some files
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::writeToDatabase): Use our new result codes
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::sharedIconDatabase): Use our new result codes
- (WebCore::IconDatabase::retainIconForPageURL): Use our new result codes
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Use our new result codes
- (WebCore::IconDatabase::addIconForIconURLQuery): Use our new result codes
- (WebCore::IconDatabase::hasIconForIconURLQuery): Use our new result codes
- * loader/icon/SQLDatabase.cpp:
- (WebCore::SQLDatabase::lastError): Moved from header to eliminate dependency on sqlite3.h in header
- (WebCore::SQLDatabase::lastErrorMsg): Ditto
- * loader/icon/SQLDatabase.h: Removed #include <sqlite3.h>
- * loader/icon/SQLStatement.cpp: Added #include <sqlite3.h>
- * loader/icon/SQLStatement.h: Removed #include <sqlite3.h>
- 2006-09-01 David Hyatt <hyatt@apple.com>
- Fix for 10680, contrained flexbox is not shrinking flexible children
- properly. (Fixing in case it's hit by the file upload control.)
- Reviewed by aroben
- Adding 026.html to fast/flexbox.
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::allowedChildFlex):
- 2006-09-01 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel. Landed by eseidel.
- Implement support for multiple parents in the SVG idls.
- For class "FooBar" go through all parents recursively,
- collect their attributes & functions & constants and
- add them directly into the class "FooBar".
- (Note: It is NOT enabled by default for now - still some things related to SVGAnimated* need to be solved first)
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/generate-bindings.pl:
- 2006-09-02 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by hyatt. Landed by eseidel.
- Fix build on Linux.
- * CMakeLists.txt: Add platform/CString.cpp.
- * platform/qt/FrameQt.cpp: Correct repsondToChangedContents() signature
- * platform/qt/FrameQt.h:: Correct respondToChangedContents() signature
- 2006-09-01 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - a few small tweaks to the icon database bridge
- * bridge/mac/WebCoreIconDatabaseBridge.h: Removed unnecessary declarations.
- Renamed sharedBridgeInstance to sharedInstance.
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Put functions inside WebCore namespace.
- (WebCore::IconDatabase::loadIconFromURL): Updated for sharedInstance namespace.
- 2006-09-01 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4651318> REGRESSION: can't drag library items to widget in Dashcode
- <rdar://problem/4701626> REGRESSION: Unit Converter widget doesn't work convert data in its fields
- jsNull should not be returned as NSNull because existing applications do not
- expect that return value. Return as nil for backwards compatibility.
- * bindings/objc/WebScriptObject.mm:
- (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:]):
- 2006-09-01 Alexey Proskuryakov <ap@nypop.com>
- Release build fix.
- * loader/Decoder.cpp:
- (Decoder::Decoder): Use String::latin1().
- 2006-09-01 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- - http://bugs.webkit.org/show_bug.cgi?id=5620
- Should only honor encoding from <meta> in HTML
- - http://bugs.webkit.org/show_bug.cgi?id=9783
- An XML declaration without an explicit encoding incorrectly triggers
- UTF-8 encoding in an HTML document
- - http://bugs.webkit.org/show_bug.cgi?id=10155
- CSS2: @charset is not supported
-
- * loader/Decoder.cpp:
- (Decoder::Decoder): Decoder now knows what kind of content it is decoding.
- Also, the browser default encoding can now be passed directly to the constructor,
- to streamline the logic.
- (Decoder::decode): Add support for @charset, differentiate between HTML and XML.
- (Decoder::setEncodingName): Style cleanup.
- (Decoder::encodingName): Ditto.
- (Decoder::flush): Ditto.
- * loader/Decoder.h:
- (WebCore::Decoder::):
- * bridge/mac/WebCoreEncodings.mm: Pass a content type of text/html to Decoder.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
- (WebCore::CachedCSSStyleSheet::setCharset):
- (WebCore::CachedCSSStyleSheet::data):
- * loader/CachedCSSStyleSheet.h:
- Use Decoder instead of TextEncoding::toUnicode() to enable @charset support.
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::CachedXBLDocument): Pass a content type.
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::CachedXSLStyleSheet): Ditto.
- (WebCore::CachedXSLStyleSheet::data): Flush the decoder to be safe.
- * page/Frame.cpp:
- (WebCore::Frame::write): Pass a content type and a default encoding to
- the Decoder.
- * xml/XSLTProcessor.cpp:
- (WebCore::XSLTProcessor::createDocumentFromSource): Pass the output document
- MIME type.
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::receivedData): Ditto.
- 2006-09-01 Adele Peterson <adele@apple.com>
- Reviewed by John.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=10580
- Password: New secure text field allows non-Roman text entry
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setSecureKeyboardEntry): Enable and disable Roman keyboards when switching in and out of this mode.
- (WebCore::FrameMac::isSecureKeyboardEntry): Changed secureKeyboardEntry to isSecureKeyboardEntry.
- * bridge/mac/FrameMac.h: ditto.
- * page/Frame.cpp: (WebCore::Frame::setIsActive): ditto.
- * page/Frame.h: (WebCore::Frame::isSecureKeyboardEntry): ditto.
- 2006-09-01 Adele Peterson <adele@apple.com>
- Reviewed by John.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=10665
- Password: Disable smartReplace for new password fields
- * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply):
- Don't smart replace when the selection being replaced is in a password field.
- 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10669
- Auto-generate the remaining Objective-C HTML DOM bindings
-
- Auto-generates DOMHTMLAnchorElement, DOMHTMLAreaElement,
- DOMHTMLBaseFontElement, DOMHTMLFontElement, DOMHTMLFrameElement,
- DOMHTMLFrameSetElement, DOMHTMLHRElement, DOMHTMLIFrameElement,
- DOMHTMLImageElement, DOMHTMLMapElement, DOMHTMLModElement,
- DOMHTMLObjectElement, DOMHTMLParamElement, DOMHTMLScriptElement,
- DOMHTMLTableCaptionElement, DOMHTMLTableCellElement,
- DOMHTMLTableColElement, DOMHTMLTableElement, DOMHTMLTableRowElement,
- and DOMHTMLTableSectionElement.
- Splits DOMHTMLAppletElement and DOMHTMLOptionElement into their own
- files.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLAnchorElement absoluteLinkURL]):
- (-[DOMHTMLImageElement altDisplayString]):
- (-[DOMHTMLImageElement absoluteImageURL]):
- (-[DOMHTMLImageElement WebCore::]):
- (-[DOMHTMLObjectElement absoluteImageURL]):
- (-[DOMHTMLObjectElement WebCore::]):
- (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
- (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
- (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
- (-[DOMHTMLTableSectionElement _tableSectionElement]):
- (+[DOMHTMLTableElement _tableElementWith:]):
- (-[DOMHTMLTableElement _tableElement]):
- (+[DOMHTMLTableCellElement _tableCellElementWith:]):
- (-[DOMHTMLTableCellElement _tableCellElement]):
- * bindings/objc/DOMHTMLAppletElement.h: Added.
- * bindings/objc/DOMHTMLAppletElement.mm: Added.
- (-[DOMHTMLAppletElement WebCore::]):
- (-[DOMHTMLAppletElement align]):
- (-[DOMHTMLAppletElement setAlign:]):
- (-[DOMHTMLAppletElement alt]):
- (-[DOMHTMLAppletElement setAlt:]):
- (-[DOMHTMLAppletElement archive]):
- (-[DOMHTMLAppletElement setArchive:]):
- (-[DOMHTMLAppletElement code]):
- (-[DOMHTMLAppletElement setCode:]):
- (-[DOMHTMLAppletElement codeBase]):
- (-[DOMHTMLAppletElement setCodeBase:]):
- (-[DOMHTMLAppletElement height]):
- (-[DOMHTMLAppletElement setHeight:]):
- (-[DOMHTMLAppletElement hspace]):
- (-[DOMHTMLAppletElement setHspace:]):
- (-[DOMHTMLAppletElement name]):
- (-[DOMHTMLAppletElement setName:]):
- (-[DOMHTMLAppletElement object]):
- (-[DOMHTMLAppletElement setObject:]):
- (-[DOMHTMLAppletElement vspace]):
- (-[DOMHTMLAppletElement setVspace:]):
- (-[DOMHTMLAppletElement width]):
- (-[DOMHTMLAppletElement setWidth:]):
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/objc/DOMHTMLOptionElement.h: Added.
- * bindings/objc/DOMHTMLOptionElement.mm: Added.
- (-[DOMHTMLOptionElement WebCore::]):
- (-[DOMHTMLOptionElement form]):
- (-[DOMHTMLOptionElement defaultSelected]):
- (-[DOMHTMLOptionElement setDefaultSelected:]):
- (-[DOMHTMLOptionElement text]):
- (-[DOMHTMLOptionElement index]):
- (-[DOMHTMLOptionElement disabled]):
- (-[DOMHTMLOptionElement setDisabled:]):
- (-[DOMHTMLOptionElement label]):
- (-[DOMHTMLOptionElement setLabel:]):
- (-[DOMHTMLOptionElement selected]):
- (-[DOMHTMLOptionElement setSelected:]):
- (-[DOMHTMLOptionElement value]):
- (-[DOMHTMLOptionElement setValue:]):
- * bindings/objc/DOMPrivate.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-08-31 Alice Liu <alice.liu@apple.com>
- Reviewed by Darin.
- Fixed <rdar://problem/4463870> Switch to use new text field implementation for <isindex>
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLInputElement _isTextField]):
- moved isindex from the list of nonTextInputTypes to the list of textInputTypes
- * css/html4.css:
- added isindex to certain rules that applied to input fields
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::canHaveSelection):
- (WebCore::HTMLInputElement::selectionStart):
- (WebCore::HTMLInputElement::selectionEnd):
- (WebCore::HTMLInputElement::setSelectionStart):
- (WebCore::HTMLInputElement::setSelectionEnd):
- (WebCore::HTMLInputElement::select):
- (WebCore::HTMLInputElement::setSelectionRange):
- (WebCore::HTMLInputElement::createRenderer):
- for the 8 methods above, moved the case for isindex to the same case as text
- * html/HTMLInputElement.h:
- (WebCore::HTMLInputElement::isNonWidgetTextField):
- added isindex to this test
- * html/HTMLIsIndexElement.idl:
- HTMLIsIndexElement inherits from HTMLInputElement
- * rendering/RenderLineEdit.cpp:
- (WebCore::RenderLineEdit::RenderLineEdit):
- removed the case for isindex since we changed the renderer type from a RenderLineEdit
- to a RenderTextControl in WebCore::HTMLInputElement::createRenderer()
- 2006-08-31 David Harrison <harrison@apple.com>
- Reviewed by Adele.
- <rdar://problem/4708119> REGRESSION: Cannot observe an AXTextField element directly
- ... and most of
- <rdar://problem/4708022> REGRESSION: TextRange-based attributes are missing from text fields
- <rdar://problem/4709515> REGRESSION: Expose text areas
- Remaining work for those two bugs in new bugs:
- <rdar://problem/4712101> Support NSAccessibilityVisibleCharacterRangeAttribute for AXTextField and AXTextArea elements
- <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
- <rdar://problem/4712125> Support setting NSAccessibilitySelectedTextAttribute for AXTextField and AXTextArea elements
- * bridge/AXObjectCache.h:
- (WebCore::AXObjectCache::postNotificationToElement):
- * bridge/mac/AXObjectCacheMac.mm:
- (WebCore::AXObjectCache::postNotification):
- (WebCore::AXObjectCache::postNotificationToElement):
- Removed postNotificationToTopWebArea.
- postNotification now posts to input element or top web area, as appropriate.
- postNotificationToElement posts to the specified element itself.
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::respondToChangedContents):
- Take a selection. Pass the starting position's renderer to postNotification so that postNotification can post to the appropriate input element, if any.
-
- * bridge/mac/WebCoreAXObject.h:
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject isWebArea]):
- (-[WebCoreAXObject isAnchor]):
- (-[WebCoreAXObject isTextRange]):
- New convenience methods.
-
- (-[WebCoreAXObject role]):
- (-[WebCoreAXObject roleDescription])
- (-[WebCoreAXObject value]):
- (-[WebCoreAXObject accessibilityDescription]):
- Support AXTextField and AXTextArea.
- (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
- Register AXTextField and AXTextArea elements so notifications to them can be observed.
-
- (-[WebCoreAXObject accessibilityIsIgnored]):
- Use new convenience method isWebArea.
- (-[WebCoreAXObject accessibilityAttributeNames]):
- Simplify the array creation.
- Add text range support.
-
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- Add text range support.
-
- (-[WebCoreAXObject canSetFocusAttribute]):
- (-[WebCoreAXObject canSetValueAttribute]):
- (-[WebCoreAXObject canSetTextRangeAttributes]):
- New convenience methods.
-
- (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
- (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
- Add text range support.
- (-[WebCoreAXObject observableObject]):
- New to locate text field or text area to notify.
-
- * dom/Document.cpp:
- (WebCore::Document::updateSelection):
- Post AXSelectedTextChanged notification with new selection's start node.
- postNotification will send it to the input element, if there is one, or the top WebArea.
-
- (WebCore::Document::implicitClose):
- Use postNotificationToElement now that it acts like the old postNotification.
-
- * page/Frame.h:
- * page/Frame.cpp:
- (WebCore::Frame::appliedEditing):
- (WebCore::Frame::unappliedEditing):
- (WebCore::Frame::reappliedEditing):
- Pass the selection of interest to respondToChangedContents.
-
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- Use postNotificationToElement now that it acts like the old postNotification.
- 2006-08-31 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10666
- Password: Disallow Spelling, Font, Speech, and Writing Direction context menu
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge isSelectionInPasswordField]): Added.
- * page/Frame.cpp: (WebCore::Frame::isSelectionInPasswordField): Added.
- * page/Frame.h:
- 2006-08-31 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim O, Hyatt.
- * WebCore.xcodeproj/project.pbxproj:
- Add KURLCFNet.cpp
-
- * platform/KURL.h:
- Get rid of include, add KURL constructor that takes a CFURLRef.
-
- * platform/PlatformString.h:
- * platform/StringImpl.h:
- Get rid of include.
-
- * platform/cf/KURLCFNet.cpp:
- (WebCore::KURL::KURL):
- Add constructor.
-
- * platform/cf/ResourceLoaderCFNet.cpp:
- Fix includes.
-
- * platform/cf/StringCF.cpp:
- (WebCore::String::createCFString):
- Move this here from PlatformString.h
-
- * platform/cf/StringImplCF.cpp:
- (WebCore::StringImpl::createCFString):
- Fix cast.
-
- * platform/mac/KURLMac.mm:
- Move createCFURL() to KURLCFNet.cpp
- 2006-08-31 Dave Hyatt <hyatt@apple.com>
- Make ScrollBar.cpp suitable for compiling on Windows by removing the #import.
- Reviewed by adam
- * platform/ScrollBar.cpp:
- 2006-08-31 Brady Eidson <beidson@apple.com>
- Reviewed by John
- Cleaned up my last patch after further considerations
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Uses the new checkForDanglingPageURLs to check
- for and fix danglers. Does so in all builds (changed from debug only in my last patch)
- (WebCore::IconDatabase::syncDatabase): Uses the new checkForDanglingPageURLs to check for danglers
- (WebCore::IconDatabase::checkForDanglingPageURLs): This checks and, if asked via an arg, prunes the dangling pageURLs
- * loader/icon/IconDatabase.h:
- 2006-08-31 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- Add CString. CString is a simple, null-terminated byte buffer that supports data
- sharing. Its main use is to be a better const char*.
-
- Also add latin1 and utf8 methods to String which returns CStrings.
-
- * platform/CString.cpp: Added.
- (WebCore::CString::CString):
- (WebCore::CString::init):
- (WebCore::CString::data):
- (WebCore::CString::length):
- (WebCore::CString::deprecatedCString):
- * platform/CString.h: Added.
- (WebCore::CStringBuffer::CStringBuffer):
- (WebCore::CStringBuffer::data):
- (WebCore::CStringBuffer::length):
- (WebCore::CString::CString):
- (WebCore::CString::operator const char*):
- (WebCore::CString::isNull):
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::latin1):
- (WebCore::String::utf8):
- 2006-08-31 Brady Eidson <beidson@apple.com>
- Reviewed by Hyatt
- Previously mentioned ASSERT was hit right away by folks, as we first need to bring their old icon.db into consistency
- Changed the ASSERT to a LOG_ERROR and added a method for debug builds to bring a DB back together.
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Check for the danglers and prune them out
- (WebCore::IconDatabase::syncDatabase): Check for the danglers and log the error
- (WebCore::IconDatabase::pruneDanglingPageURLs): Prune the danglers
- * loader/icon/IconDatabase.h:
- 2006-08-31 Brady Eidson <beidson@apple.com>
- Reviewed by Hyatt
- Fixed an error where an Icon's IconID could change without the change being reflected in the PageURL table,
- causing icons to be pruned before their time and pages to lose their icons. This is because I misunderstood
- how SQLite handles the "ON CONFLICT REPLACE" condition, which is to delete the row and re-insert instead of
- perform an update. Also added an assertion to make sure this doesn't happen again.
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::writeToDatabase): Instead of one INSERT relying on SQLites conflict handling, broke
- this into an UPDATE attempt followed by the initial INSERT
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::createDatabaseTables): Slight tweak to the database schema to prevent this from happening
- in the future. Note this change will not cause incompatibility with the current schema, therefore I didn't update
- the official database version number
- (WebCore::IconDatabase::syncDatabase): Added an ASSERT to look for this condition in the future
- * loader/icon/SQLDatabase.cpp:
- (WebCore::SQLDatabase::lastChanges): Added this SQLite accessor to see if an UPDATE command actually changed a row
- * loader/icon/SQLDatabase.h: Ditto
- 2006-08-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10653
- Auto-generate another 20 Objective-C DOM HTML bindings
- Auto-generates DOMHTMLBRElement, DOMHTMLButtonElement, DOMHTMLDListElement,
- DOMHTMLDirectoryElement, DOMHTMLDivElement, DOMHTMLFieldSetElement,
- DOMHTMLHeadingElement, DOMHTMLInputElement, DOMHTMLLIElement, DOMHTMLLabelElement,
- DOMHTMLLegendElement, DOMHTMLMenuElement, DOMHTMLOListElement, DOMHTMLOptGroupElement,
- DOMHTMLParagraphElement, DOMHTMLPreElement, DOMHTMLQuoteElement, DOMHTMLSelectElement,
- DOMHTMLTextAreaElement, and DOMHTMLUListElement.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLInputElement altDisplayString]):
- (-[DOMHTMLInputElement absoluteImageURL]):
- (-[DOMHTMLInputElement WebCore::]):
- (-[DOMHTMLInputElement _rectOnScreen]):
- (-[DOMHTMLInputElement _replaceCharactersInRange:withString:selectingFromIndex:]):
- (-[DOMHTMLInputElement _selectedRange]):
- (-[DOMHTMLInputElement _setAutofilled:]):
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/objc/DOMPrivate.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-08-31 Adele Peterson <adele@apple.com>
- Reviewed by John Sullivan.
- Removing use of SPI in favor of Carbon API to enable and disable secure event input.
- * WebCore.exp: Removed wkSecureEventInput and wkSetSecureEventInput.
- * platform/mac/WebCoreSystemInterface.h: ditto.
- * platform/mac/WebCoreSystemInterface.mm: ditto.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setSecureKeyboardEntry): Uses EnableSecureEventInput and DisableSecureEventInput.
- (WebCore::FrameMac::secureKeyboardEntry): Uses IsSecureEventInputEnabled.
- 2006-08-30 Brady Eidson <beidson@apple.com>
- Reviewed by "common sense" (and Maciej)
- Fixed two logging typos
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::syncDatabase):
- 2006-08-30 Adele Peterson <adele@apple.com>
- Adding missing nil check for focus node.
- * page/Frame.cpp: (WebCore::Frame::setIsActive):
- 2006-08-30 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10575
- Enable secure input mode for new password fields
- * WebCore.exp: Added wkSetSecureEventInput and wkSecureEventInput.
- * platform/mac/WebCoreSystemInterface.h: ditto.
- * platform/mac/WebCoreSystemInterface.mm: ditto.
- * page/Frame.cpp: (WebCore::Frame::setIsActive): Enables and disables secure keyboard entry based on whether the frame becomes active.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setSecureKeyboardEntry): Added. Calls wkSetSecureEventInput.
- (WebCore::FrameMac::secureKeyboardEntry): Added. Calls wkSecureEventInput.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::dispatchFocusEvent): For password fields, enable secure keyboard entry.
- (WebCore::HTMLInputElement::dispatchBlurEvent): For password fields, disable secure keyboard entry.
- * page/Frame.h:
- (WebCore::Frame::setSecureKeyboardEntry):
- (WebCore::Frame::secureKeyboardEntry):
- 2006-08-30 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher.
- - eliminated the need for UsesPassRefPtr in IDL files
- - got rid of the category mechanism for ObjC generated DOM headers
- (after discussions with Tim H where we decided it's not needed)
- - simplified use of macro inside ObjC generated code
- * ForwardingHeaders/wtf/GetPtr.h: Added.
- * bindings/scripts/CodeGeneratorObjC.pm: Removed code to handle
- categories. Eliminated use of DOM_cast since that's for the protection
- of human programmers -- the script won't make mistakes that it needs
- to catch. Changed macro to always be named IMPL instead of incorporating
- the class name. Use WTF::getPtr to extract the pointer, and removed the
- code that uses .get() to extract the pointer in the PassRefPtr case.
- * dom/Attr.idl: Removed all uses of UsesPassRefPtr and ObjCCatagory.
- * dom/DOMImplementation.idl: Ditto.
- * dom/Document.idl: Ditto.
- * dom/Element.idl: Ditto.
- * dom/NamedNodeMap.idl: Ditto.
- * html/HTMLDocument.idl: Ditto.
- * html/HTMLElement.idl: Ditto.
- * html/HTMLFormElement.idl: Ditto.
- * html/HTMLMapElement.idl: Ditto.
- * html/HTMLSelectElement.idl: Ditto.
- * html/HTMLTableElement.idl: Ditto.
- * html/HTMLTableRowElement.idl: Ditto.
- * html/HTMLTableSectionElement.idl: Ditto.
- 2006-08-30 Brady Eidson <beidson@apple.com>
- Reviewed by John
- <rdar://problem/4707718> - Instead of faking the user out with an in-memory icon database if their
- ~/Library/Safari/Icons is unwritable, we'll actually fail to open the icon database and the app will
- run as if it was disabled via a preference.
- Also took the opportunity to change some ASSERTS() to reasonable behavior
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]): NSLog on failure so the user has a chance to figure
- out there's a problem.
- (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
- (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]): From here on, just replaced ASSERTS() with reasonable behavior
- (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
- (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
- (-[WebCoreIconDatabaseBridge retainIconForURL:]):
- (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
- (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
- (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
- (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
- (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open): If we fail to open, return false
- (WebCore::IconDatabase::~IconDatabase): cleanup better
- * loader/icon/IconDatabase.h:
- 2006-08-30 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4708007> REGRESSION: text field inside a webpage no longer has settable AXValueAttribute
- <rdar://problem/4707479> REGRESSION: controls inside a webpage no longer have settable AXFocusedAttribute
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject canSetFocusAttribute]):
- (-[WebCoreAXObject canSetValueAttribute]):
- New utility methods. Text fields and buttons are focusable.
- Text fields can have their value set. We need not make
- popupbutton value settable because AppKit does not.
-
- (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
- Call new utility methods.
-
- (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
- Set focus for text field or button.
- Set value for text field.
-
- 2006-08-30 David Hyatt <hyatt@apple.com>
- Fix for bugs 9000 and 10606. Add code to suppress painting when
- a FOUC situation would otherwise occur. There will still typically be
- a flash to white, but at least the wrong content won't show.
- Reviewed by darin
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::updateLayoutIgnorePendingStylesheets):
- (WebCore::Document::preferredStylesheetSet):
- (WebCore::Document::selectedStylesheetSet):
- (WebCore::Document::setSelectedStylesheetSet):
- (WebCore::Document::stylesheetLoaded):
- (WebCore::Document::updateStyleSelector):
- * dom/Document.h:
- (WebCore::Document::haveStylesheetsLoaded):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paintChildren):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::paintLayer):
- (WebCore::isSubframe):
- (WebCore::RenderLayer::hitTest):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::repaintViewRectangle):
- 2006-08-31 Nikolas Zimmermann <zimmermann@kde.org>
-
- Reviewed by Eric. Landed by rwlbuis.
-
- Apply Rob's fixes in RenderPathQt too -> unbreak build.
-
- * kcanvas/RenderPath.h: Some style cleanups.
- * kcanvas/device/qt/RenderPathQt.cpp:
- (WebCore::RenderPathQt::strokeContains):
- * kcanvas/device/qt/RenderPathQt.h:
- 2006-08-30 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10640
- Auto-generate 10 more Objective-C DOM HTML bindings
- Auto-generates DOMHTMLBaseElement, DOMHTMLBodyElement, DOMHTMLHeadElement,
- DOMHTMLHtmlElement, DOMHTMLIsIndexElement, DOMHTMLLinkElement,
- DOMHTMLMetaElement, DOMHTMLStyleElement and DOMHTMLTitleElement.
- Splits DOMHTMLDocument into it's own files.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMHTML.mm:
- * bindings/objc/DOMHTMLDocument.h: Added.
- * bindings/objc/DOMHTMLDocument.mm: Added.
- (-[DOMHTMLDocument WebCore::]):
- (-[DOMHTMLDocument title]):
- (-[DOMHTMLDocument setTitle:]):
- (-[DOMHTMLDocument referrer]):
- (-[DOMHTMLDocument domain]):
- (-[DOMHTMLDocument URL]):
- (-[DOMHTMLDocument body]):
- (-[DOMHTMLDocument setBody:]):
- (-[DOMHTMLDocument images]):
- (-[DOMHTMLDocument applets]):
- (-[DOMHTMLDocument links]):
- (-[DOMHTMLDocument forms]):
- (-[DOMHTMLDocument anchors]):
- (-[DOMHTMLDocument cookie]):
- (-[DOMHTMLDocument setCookie:]):
- (-[DOMHTMLDocument open]):
- (-[DOMHTMLDocument close]):
- (-[DOMHTMLDocument write:]):
- (-[DOMHTMLDocument writeln:]):
- (-[DOMHTMLDocument getElementById:]):
- (-[DOMHTMLDocument getElementsByName:]):
- (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
- (-[DOMHTMLDocument createDocumentFragmentWithText:]):
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * html/HTMLDocument.idl:
- 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Use QColor <-> Color conversion operator, instead of faking it.
- * platform/qt/FontQt.cpp:
- (WebCore::Font::drawGlyphs):
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::fillRect):
- 2006-08-30 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10586
- pointer-events has issues when things are not stroked/filled
- Add a param to fillContains/strokeContains to indicate
- whether we still want hit testing when there is no fill/stroke.
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::fillContains):
- (WebCore::RenderPath::nodeAtPoint):
- * kcanvas/RenderPath.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::KCanvasItemQuartz::strokeContains):
- 2006-08-29 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4700297>
- REGRESSION: After replacing a misspelled word in a sentence, the selection extends to end of current line
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): Rebalance whitespace
- around insertionPos before insertion because the content might
- cause a collapse, e.g. inserting <div>foo</div> at hello^ world.
- * editing/htmlediting.cpp:
- (WebCore::rebalanceWhitespaceInTextNode): Rebalance with all nbsps
- for simplicity, we can produce sequences of regular spaces and
- nbsps on serialization (10636).
- 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- The old solution was slow & does not work correctly.
- Move the QString -> DeprecatedString conversion into
- DeprectedString.cpp, to be able to access allocateHandle().
- * platform/DeprecatedString.cpp:
- (WebCore::DeprecatedString::DeprecatedString):
- * platform/qt/StringQt.cpp:
- 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Implement containsCharacters() / determinePitch() functions.
- * platform/qt/FontDataQt.cpp:
- (WebCore::FontData::containsCharacters):
- (WebCore::FontData::determinePitch):
- 2006-08-30 Brady Eidson <beidson@apple.com>
- Reviewed by Darin's rubberstamp
- We apparently have a fancy delateAllValues() helper for HashMap/Sets - I'll use that instead
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::removeAllIcons):
- 2006-08-29 waylonis <waylonis@google.com>
- Reviewed, tweaked by ggaren.
-
- - Changed to use ExecState on current context rather than global.
- Part of the fix for http://bugs.webkit.org/show_bug.cgi?id=10114
- * bindings/objc/WebScriptObject.mm:
- (+[WebScriptObject throwException:]):
- (-[WebScriptObject setException:]):
- 2006-08-30 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- - WebCore part of fix for:
- http://bugs.webkit.org/show_bug.cgi?id=10576
- Disallow copy from new password fields
- * page/Frame.cpp: (WebCore::Frame::mayCopy): Added. Checks to see if the selection is within a password field.
- * page/Frame.h: Added mayCopy.
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::handleMouseMoveEvent): Checks mayCopy before starting a drag.
- (WebCore::FrameMac::mayDHTMLCut): Renamed to match the bridge method. This also checks mayCopy now.
- (WebCore::FrameMac::mayDHTMLCopy): ditto.
- (WebCore::FrameMac::tryDHTMLCut): ditto.
- (WebCore::FrameMac::tryDHTMLCopy): ditto.
- (WebCore::FrameMac::mayDHTMLPaste): Renamed to match the bridge function.
- (WebCore::FrameMac::tryDHTMLPaste): ditto.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge mayCopy]): Calls the renamed method on frame.
- (-[WebCoreFrameBridge mayDHTMLCut]): ditto.
- (-[WebCoreFrameBridge mayDHTMLCopy]): ditto.
- (-[WebCoreFrameBridge mayDHTMLPaste]): ditto.
- (-[WebCoreFrameBridge tryDHTMLCut]): ditto.
- (-[WebCoreFrameBridge tryDHTMLCopy]): ditto.
- (-[WebCoreFrameBridge tryDHTMLPaste]): ditto.
- * css/html4.css: Added !important to the -webkit-text-security property for password fields.
- 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Commit KDE related tweaks, to be able to
- differentiate between a Qt-only or a KDE build.
- * CMakeLists.txt: Move global variables up to trunk/CMakeLists.txt.
- Also rename USE_WEBKIT_SVG_SUPPORT to WEBKIT_USE_SVG_SUPPORT.
- 2006-08-30 Timothy Hatcher <timothy@apple.com>
- Rubber-stamped by Brady.
- Fix for the generated headers to make the build work
- during "installhdrs" builds. Also export DOM headers
- using the #import <WebCore/DOM*.h> syntax.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGeneratorObjC.pm:
- 2006-08-29 Brady Eidson <beidson@apple.com>
- Reviewed by Kevin Decker (Sarge)
- <rdar://problem/4678414> - New IconDB needs to delete icons when asked
- <rdar://problem/4707718> - If user's Icon directory is unwritable, Safari will crash at startup
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge removeAllIcons]): Added
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open): If DB file is not writeable, create an in-memory DB for this session
- (WebCore::IconDatabase::close): Use new deleteAllPreparedStatements()
- (WebCore::IconDatabase::removeAllIcons): Actually implemented
- (WebCore::IconDatabase::deleteAllPreparedStatements): Added for convinience/consistency
- (WebCore::IconDatabase::setPrivateBrowsingEnabled): Use new SQLDatabase::clearAllTables()
- * loader/icon/IconDatabase.h:
- * loader/icon/SQLDatabase.cpp:
- (WebCore::SQLDatabase::clearAllTables): Moved this from IconDatabase as it actually belongs here
- (WebCore::SQLDatabase::vacuum): Added
- * loader/icon/SQLDatabase.h:
- (WebCore::SQLDatabase::path): changed name from getPath()
- 2006-08-29 Brady Eidson <beidson@apple.com>
- Reviewed by Alice
- Added a truth value to setIconURLForPageURL so WebKit can avoid sending a notification
- This is a win on the iBench
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::setIconURLForPageURL):
- * loader/icon/IconDatabase.h:
- 2006-08-29 Alice Liu <alice.liu@apple.com>
- Reviewed by Brady.
- Fixed <rdar://problem/4702021> REGRESSION: WebClip and Weather widgets shift downward vertically on screen after I drag them out from dashboard configure bar
- * platform/mac/ScreenMac.mm:
- (WebCore::flipScreenRect):
- reverted the one line in this method back to what it was before r15765. This changed caused window.screenY to be incorrect.
- 2006-08-29 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - fix <rdar://problem/4701494> REGRESSION: Scrollbar on EPSN widget doesn't scroll (also affects Widgets widget, web inspector)
- The bug was that we would return "none" for computed style properties when they were
- exactly "-1px".
- Test: fast/css/computed-style-negative-top.html
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::valueForLength): Moved special case for "undefined length" out of here.
- (WebCore::valueForMaxLength): Moved it into here.
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Use valueForMaxLength
- only for max-height and max-width.
- 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by eseidel.
- Add path-related SVG JavaScript bindings to generation.
- * CMakeLists.txt:
- 2006-08-29 Eric Seidel <eric@webkit.org>
- Reviewed by kevin.
- Re-enable path-related SVG JavaScript bindings.
- http://bugs.webkit.org/show_bug.cgi?id=10623
- Split all SVGPathSeg*.idl files into Abs and Rel pieces.
- Move all SVGPath*.idl files into ksvg2/svg
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/scripts/CodeGeneratorJS.pm: Special case Abs and Rel header includes
- * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathElement.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSeg.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegArc.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegList.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl: Removed.
- * ksvg2/ksvg.h: move SVGPathSegment enum
- * ksvg2/svg/SVGPathElement.cpp: move SVGPathSegment enum
- (WebCore::SVGPathElement::toPathData):
- * ksvg2/svg/SVGPathSeg.cpp:
- (WebCore::SVGPathSeg::SVGPathSeg):
- * ksvg2/svg/SVGPathSeg.h:
- (WebCore::SVGPathSeg::):
- * ksvg2/svg/SVGPathSegArcAbs.idl: Added.
- * ksvg2/svg/SVGPathSegArcRel.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoCubicAbs.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoCubicRel.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoCubicSmoothAbs.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoCubicSmoothRel.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoQuadraticAbs.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoQuadraticRel.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothAbs.idl: Added.
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmoothRel.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoAbs.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoHorizontalAbs.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoHorizontalRel.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoRel.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoVerticalAbs.idl: Added.
- * ksvg2/svg/SVGPathSegLinetoVerticalRel.idl: Added.
- * ksvg2/svg/SVGPathSegMovetoAbs.idl: Added.
- * ksvg2/svg/SVGPathSegMovetoRel.idl: Added.
- 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric, landed by Anders.
- Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
- Finish Unity merging. Remove libcurl usage, in favour of KIO.
- This makes the regression testing fly! IO processing is way faster now.
- * CMakeLists.txt:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- (WebCore::FrameQt::createEmptyDocument):
- (WebCore::FrameQt::receivedData):
- (WebCore::FrameQt::receivedAllData):
- * platform/qt/FrameQt.h:
- * platform/qt/ResourceLoaderCurl.cpp: Removed.
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::ResourceLoaderManager):
- (WebCore::ResourceLoaderManager::~ResourceLoaderManager):
- (WebCore::ResourceLoaderManager::self):
- (WebCore::ResourceLoaderManager::slotData):
- (WebCore::ResourceLoaderManager::slotMimetype):
- (WebCore::ResourceLoaderManager::slotResult):
- (WebCore::ResourceLoaderManager::remove):
- (WebCore::ResourceLoaderManager::add):
- * platform/qt/ResourceLoaderManager.h:
- * platform/qt/ResourceLoaderQt.cpp: Added.
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::receivedResponse):
- 2006-08-29 Timothy Hatcher <timothy@apple.com>
- Reviewed by Eric.
- Bug 10632: Objective-C DOM should use the @property syntax for DOM attributes
- http://bugs.webkit.org/show_bug.cgi?id=10632
- Generate @property when MACOSX_DEPLOYMENT_TARGET is >= 10.5.
- This is backwards compatible with the getter/setter methods.
- Generate setter arguments with a "new" prefix to avoid the property
- name conflict warning. Also removes some whitespace and the comments
- that we added to the headers. This makes the headers look like what we ship now.
- * bindings/objc/DOMCSS.mm:
- (-[DOMDocument getComputedStyle::]): renamed a local variable to avoid the property name conflict.
- (-[DOMDocument getMatchedCSSRules::]): ditto.
- * bindings/scripts/CodeGeneratorObjC.pm: generate @property in the headers.
- 2006-08-30 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Fix time calculation, by using a correct calculation. Calling time()
- returns a number of seconds, aka. an integer. Fix it by using gettimeofday().
- Patch originally proposed by Ronan Meneu <rmeneu@origyn.fr>
- * platform/qt/SystemTimeQt.cpp:
- (WebCore::currentTime):
- 2006-08-29 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10628
- Auto-generate the remaining Objective-C DOM bindings
- Auto-generates DOMHTMLCollection, DOMHTMLElement, DOMHTMLFormElement,
- and DOMHTMLOptionsCollection, and lays groundwork for the rest of the
- HTML DOM bindings by adding/fixing the appropriate IDL's and updating
- the CodeGeneratorObjC.pm build script.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.h:
- * bindings/objc/DOMHTML.mm:
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/scripts/CodeGeneratorObjC.pm:
- * html/HTMLAnchorElement.idl:
- * html/HTMLAreaElement.idl:
- * html/HTMLBaseFontElement.idl:
- * html/HTMLBodyElement.idl:
- * html/HTMLButtonElement.idl:
- * html/HTMLCollection.idl: Added.
- * html/HTMLDocument.idl:
- * html/HTMLElement.idl:
- * html/HTMLFormElement.idl:
- * html/HTMLFrameElement.idl: Added.
- * html/HTMLFrameSetElement.idl: Added.
- * html/HTMLIFrameElement.idl: Added.
- * html/HTMLImageElement.idl:
- * html/HTMLInputElement.idl:
- * html/HTMLLabelElement.idl:
- * html/HTMLLegendElement.idl:
- * html/HTMLLinkElement.idl:
- * html/HTMLMapElement.idl:
- * html/HTMLObjectElement.idl: Added.
- * html/HTMLOptionsCollection.idl:
- * html/HTMLPreElement.idl:
- * html/HTMLSelectElement.idl: Added.
- * html/HTMLStyleElement.idl:
- * html/HTMLTableCaptionElement.idl: Added.
- * html/HTMLTableCellElement.idl: Added.
- * html/HTMLTableColElement.idl: Added.
- * html/HTMLTableElement.idl: Added.
- * html/HTMLTableRowElement.idl: Added.
- * html/HTMLTableSectionElement.idl: Added.
- * html/HTMLTextAreaElement.idl:
- 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10629.
- Drawing convex polygons is broken in the Qt platform.
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::drawConvexPolygon):
- 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Implementing font hashing properly, fixes weird crashes in HashMap.
- * platform/qt/FontPlatformData.h:
- * platform/qt/FontPlatformDataQt.cpp:
- (WebCore::FontPlatformData::FontPlatformData):
- (WebCore::FontPlatformData::hash):
- 2006-08-29 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by ggaren.
- Fix scrollbars to reappear after the first layouting.
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::suppressScrollBars):
- 2006-08-29 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin and Geoff.
- Move the CF String functions to separate files in platform/cf.
- Also, move the files in platform/cfnet to platform/cf.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/PlatformString.h:
- * platform/StringImpl.h:
- * platform/cf/StringCF.cpp: Added.
- (WebCore::String::String):
- * platform/cf/StringImplCF.cpp: Added.
- (WebCore::StringImpl::createCFString):
- * platform/cfnet/KURLCFNet.cpp: Removed.
- * platform/cfnet/ResourceLoaderCFNet.cpp: Removed.
- * platform/mac/StringImplMac.mm:
- * platform/mac/StringMac.mm:
- 2006-08-29 Geoffrey Garen <ggaren@apple.com>
- Rolling out a change I included by accident in my last commit.
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::passMouseDownEventToWidget):
- * platform/mac/SharedTimerMac.cpp:
- (WebCore::setSharedTimerFireTime):
- 2006-08-28 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
-
- Added support for experimental CFNetwork-based loader (not turned on yet).
-
- While I was there, I did the following platform cleanup:
- - Windows now uses USE(WININET) instead of PLATFORM(WIN_OS), to match the
- USE(CFNETWORK) idiom.
- - Removed some #includes of windows.h in platform-independent headers.
- - Changed #ifdef __APPLE__ to PLATFORM(MAC)
- - Fixed some build bustage, including case-sensitive filesystem bustage.
- * loader/loader.cpp:
- (WebCore::Loader::receivedAllData):
- * platform/Cursor.h:
- * platform/KURL.h:
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderClient.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/cfnet/KURLCFNet.cpp: Added.
- (WebCore::KURL::createCFURL):
- * platform/cfnet/ResourceLoaderCFNet.cpp: Added.
- (WebCore::willSendRequest):
- (WebCore::didReceiveChallenge):
- (WebCore::didCancelChallenge):
- (WebCore::didReceiveResponse):
- (WebCore::didReceiveData):
- (WebCore::didFinishLoading):
- (WebCore::didFail):
- (WebCore::willCacheResponse):
- (WebCore::addHeadersFromString):
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::arrayFromFormData):
- (WebCore::emptyPerform):
- (WebCore::runLoaderThread):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- * platform/win/CursorWin.cpp:
- 2006-08-28 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4700341>
- REGRESSION: In new mail message, caret isn't placed at end of line after redoing typing
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): Added a FIXME.
- * page/Frame.cpp:
- (WebCore::Frame::reappliedEditing): Restore the endingSelection(), not the startingSelection().
- 2006-08-28 Tim Omernick <timo@apple.com>
- Reviewed by John Sullivan.
- Part of <rdar://problem/4481553> NetscapeMoviePlugIn example code scripting doesn't work in Firefox (4319)
- <http://bugs.webkit.org/show_bug.cgi?id=4319>: NetscapeMoviePlugIn example code scripting doesn't work
- in Firefox
- No test cases added, since this is essentially a leak fix.
- A brief history of NPP_GetValue(), NPObjects, and reference counting.
- Earlier versions of WebKit incorrectly interpreted the NPRuntime reference counting rules. We failed to take
- into account the fact that plug-ins are required to retain NPObjects before returning them. This creates several
- classes of interesting plug-ins:
- 1) Plug-ins tested in WebKit and other browsers. These plug-ins may have WebKit-specific workarounds to not retain
- the returned NPObject, thus avoiding the memory leak in WebKit.
- 2) Plug-ins tested only in other browsers. These plug-ins must already retain their NPObjects, since other browsers
- implemented the NPRuntime retain/release rules correctly. These plug-ins likely work in WebKit, but probably leak
- NPObjects since WebKit adds its own retain in addition to the plug-in's retain.
- 3) Plug-ins tested only in WebKit, that fail to retain their NPObjects before returning them.
- Such plug-ins are guaranteed to crash in other browsers due to the missing expected retain. These plug-ins
- work in older WebKits because WebKit did not expect the plug-in to retain the NPObject. Now that our retain
- rules match other browsers, these plug-ins may crash due to the difference in retain/release behavior. We could
- potentially detect that situation and correct it here, but I consider it a bug that the plug-in did not follow the
- documented NPRuntime reference counting rules. Furthermore, it is extremely unlikely that someone would develop
- a Netscape plug-in and test it *only* in WebKit. The entire purpose of creating a Netscape plugin is so that it
- works in all browsers!
- 4) Plug-ins tested only in WebKit, that properly retain their NPObjects before returning them.
- These plug-ins probably work in other browsers, and leak their NPObjects in older WebKits because of WebKit's
- extra retain. A developer of this type of plug-in is probably unaware of the NPObject leak. A more savvy developer
- would create a plug-in that fits into category #1.
-
- I am changing our NPP_GetValue() behavior to match Firefox and other browsers -- the plug-in is now expected to retain the
- returned NPObject, and the browser is expected to release it when done. This means that plug-ins in category #3 need to be
- 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
- this needs to be handled specifically by WebKit.
- * bridge/mac/FrameMac.mm:
- Changed -pluginScriptableObject to -createPluginScriptableObject to make clearer the contract that the method must return a
- retained NPObject. Also changed it to return an actual NPObject* instead of a void*. There is only one caller of this method,
- and only one implementor. Using void* here is a needless abstraction. It's an NPObject*! Admit it!
- (WebCore::getInstanceForView):
- Release the NPObject after creating the bindings instance. This is the actual bug fix.
- 2006-08-28 Alice Liu <alice.liu@apple.com>
- Reviewed by Geoff.
- Fixed <rdar://problem/4548537> Document.domain and other attributes are blank for an iframe created with document.write
- * dom/Document.cpp:
- (WebCore::Document::open):
- 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()
- * page/Frame.cpp:
- (WebCore::Frame::didExplicitOpen):
- set the frame's url to the document's url
- 2006-08-28 Brady Eidson <beidson@apple.com>
- Reviewed by Adele and Adam
- Added an optimization to return early if there's no replacements to be made
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::replace):
- 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
- Provide stub implementation of RenderPopupMenuQt.
- * CMakeLists.txt:
- * platform/qt/RenderPopupMenuQt.cpp: Added.
- (WebCore::RenderPopupMenuQt::RenderPopupMenuQt):
- (WebCore::RenderPopupMenuQt::~RenderPopupMenuQt):
- (WebCore::RenderPopupMenuQt::clear):
- (WebCore::RenderPopupMenuQt::populate):
- (WebCore::RenderPopupMenuQt::showPopup):
- (WebCore::RenderPopupMenuQt::hidePopup):
- (WebCore::RenderPopupMenuQt::addSeparator):
- (WebCore::RenderPopupMenuQt::addGroupLabel):
- (WebCore::RenderPopupMenuQt::addOption):
- * platform/qt/RenderPopupMenuQt.h: Added.
- * platform/qt/RenderThemeQt.cpp:
- (WebCore::RenderThemeQt::systemFont):
- (WebCore::RenderThemeQt::createPopupMenu):
- 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by ap.
- Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
- Offer QString -> DeprecatedString conversion.
- * platform/DeprecatedString.h:
- * platform/qt/StringQt.cpp:
- (WebCore::DeprecatedString::DeprecatedString):
- 2006-08-28 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim Hatcher.
-
- Fixes one chunk of: http://bugs.webkit.org/show_bug.cgi?id=10604
- * platform/qt/RenderThemeQt.cpp:
- (WebCore::RenderThemeQt::systemFont):
- Remove annoying notImplemented() usage in systemFont()
- 2006-08-28 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/3942647> Support AXStyleTextMarkerRangeForTextMarker parameterized attribute
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
- Add AXStyleTextMarkerRangeForTextMarker.
-
- (startOfStyleRange):
- (endOfStyleRange):
- Return first/last VisiblePosition in range having the same style has the specified VisiblePosition.
- (-[WebCoreAXObject doAXStyleTextMarkerRangeForTextMarker:]):
- Return AXTextMarkerRange for startOfStyleRange/endOfStyleRange of the specified AXTextMarker.
-
- (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
- Call doAXStyleTextMarkerRangeForTextMarker for AXStyleTextMarkerRangeForTextMarker.
- 2006-08-28 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4517383> Hide all images used for spacing purpose in AX
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityIsIgnored]):
- Check for one-dimensional image
- Check whether rendered image was stretched from one-dimensional file image
- 2006-08-27 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Rewrote StringImpl::replace(UChar, StringImpl*)
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::replace):
- 2006-08-27 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Tim H.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=4624
- WebCore needs autogenerated Obj-C DOM bindings
- First round of auto-generated Objective C DOM bindings, starting
- with the DOM Core.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMNode description]):
- (-[DOMNode KJS::Bindings::]):
- (-[DOMNode dispatchEvent:]):
- (-[DOMNamedNodeMap _initWithNamedNodeMap:]):
- (+[DOMNamedNodeMap _namedNodeMapWith:]):
- (-[DOMNodeList _initWithNodeList:]):
- (+[DOMNodeList _nodeListWith:]):
- (-[DOMImplementation _initWithDOMImplementation:]):
- (+[DOMImplementation _DOMImplementationWith:]):
- (-[DOMImplementation _DOMImplementation]):
- (+[DOMDocumentFragment _documentFragmentWith:]):
- (-[DOMDocumentFragment _fragment]):
- (-[DOMDocument createCSSStyleDeclaration]):
- (+[DOMDocument _documentWith:]):
- (-[DOMDocument _document]):
- (-[DOMDocument _ownerElement]):
- (+[DOMAttr _attrWith:]):
- (-[DOMAttr _attr]):
- (+[DOMDocumentType _documentTypeWith:WebCore::]):
- (-[DOMDocumentType WebCore::]):
- (+[DOMText _textWith:WebCore::]):
- (+[DOMComment _commentWith:WebCore::]):
- (+[DOMCDATASection _CDATASectionWith:WebCore::]):
- (+[DOMProcessingInstruction _processingInstructionWith:WebCore::]):
- (+[DOMEntityReference _entityReferenceWith:WebCore::]):
- * bindings/objc/DOMCSS.h:
- * bindings/objc/DOMCSS.mm:
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.mm:
- (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
- * bindings/objc/DOMHTMLInternal.h:
- * bindings/objc/DOMImplementationFront.h:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMNode.h: Added.
- * bindings/objc/DOMNode.mm: Added.
- (-[DOMNode dealloc]):
- (-[DOMNode finalize]):
- (-[DOMNode nodeName]):
- (-[DOMNode nodeValue]):
- (-[DOMNode setNodeValue:]):
- (-[DOMNode nodeType]):
- (-[DOMNode parentNode]):
- (-[DOMNode childNodes]):
- (-[DOMNode firstChild]):
- (-[DOMNode lastChild]):
- (-[DOMNode previousSibling]):
- (-[DOMNode nextSibling]):
- (-[DOMNode attributes]):
- (-[DOMNode ownerDocument]):
- (-[DOMNode insertBefore::]):
- (-[DOMNode replaceChild::]):
- (-[DOMNode removeChild:]):
- (-[DOMNode appendChild:]):
- (-[DOMNode hasChildNodes]):
- (-[DOMNode cloneNode:]):
- (-[DOMNode normalize]):
- (-[DOMNode isSupported::]):
- (-[DOMNode namespaceURI]):
- (-[DOMNode prefix]):
- (-[DOMNode setPrefix:]):
- (-[DOMNode localName]):
- (-[DOMNode hasAttributes]):
- (-[DOMNode isSameNode:]):
- (-[DOMNode isEqualNode:]):
- (-[DOMNode isDefaultNamespace:]):
- (-[DOMNode lookupPrefix:]):
- (-[DOMNode lookupNamespaceURI:]):
- (-[DOMNode textContent]):
- (-[DOMNode setTextContent:]):
- (-[DOMNode boundingBox]):
- (-[DOMNode lineBoxRects]):
- * bindings/objc/DOMObject.h: Added.
- * bindings/objc/DOMObject.mm: Added.
- (-[DOMObject init]):
- (-[DOMObject dealloc]):
- (-[DOMObject finalize]):
- (-[DOMObject copyWithZone:]):
- (-[DOMObject sheet]):
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMRange.h:
- * bindings/objc/DOMStylesheets.h:
- * bindings/objc/DOMTraversal.h:
- * bindings/objc/DOMViews.h:
- * bindings/objc/DOMViews.mm:
- * bindings/objc/DOMXPath.h:
- * bindings/objc/DOMXPath.mm:
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/scripts/CodeGeneratorObjC.pm: Added.
- * dom/Attr.idl:
- * dom/CDATASection.idl: Added.
- * dom/Comment.idl: Added.
- * dom/DOMImplementation.idl:
- * dom/Document.idl:
- * dom/Element.idl:
- * dom/EntityReference.idl: Added.
- * dom/NamedNodeMap.idl: Added.
- * dom/NodeList.idl: Added.
- * dom/ProcessingInstruction.idl:
- 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Tim H.
- Fix crash in LayoutTests/css1/font_properties/font.html,
- by implementing FontData::smallCapsFontData.
- * platform/qt/FontDataQt.cpp:
- (WebCore::FontData::platformDestroy):
- (WebCore::FontData::smallCapsFontData):
- 2006-08-27 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Plugged a leak in StringImpl::replace()
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::replace):
- 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Remove most annoying notImplemented() usages and
- implement some missing ScrollViewQt functions.
- Much nicer output when invoking run-webkit-tests.
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::saveDocumentState):
- (WebCore::FrameQt::restoreDocumentState):
- (WebCore::FrameQt::clearUndoRedoOperations):
- (WebCore::FrameQt::partClearedInBegin):
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::headerCallback):
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::updateContents):
- (WebCore::ScrollView::suppressScrollBars):
- (WebCore::ScrollView::setStaticBackground):
- (WebCore::ScrollView::addChild):
- (WebCore::ScrollView::removeChild):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::historyContains):
- (WebCore::CheckCacheObjectStatus):
- (WebCore::CheckIfReloading):
- (loadResourceIntoArray):
- (WebCore::PlugInInfoStore::supportsMIMEType):
- 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Fix Qt build (add SVGMetaDataElement.cpp to build system)
- * CMakeLists.txt:
- 2006-08-27 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- No logic changes. Just cleanup.
- * ksvg2/svg/SVGAngle.cpp:
- (SVGAngle::SVGAngle):
- (SVGAngle::unitType):
- (SVGAngle::valueAsString):
- (SVGAngle::newValueSpecifiedUnits):
- (SVGAngle::convertToSpecifiedUnits):
- * ksvg2/svg/SVGAngle.h:
- * ksvg2/svg/SVGLength.cpp:
- (WebCore::SVGLength::unitType):
- (WebCore::SVGLength::newValueSpecifiedUnits):
- (WebCore::SVGLength::convertToSpecifiedUnits):
- (WebCore::SVGLength::updateValue):
- (WebCore::SVGLength::updateValueInSpecifiedUnits):
- * ksvg2/svg/SVGLength.h:
- * platform/BitmapImage.cpp: Removed.
- * platform/BitmapImage.h: Removed.
- 2006-08-27 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- -Changed all of the commonly used queries to keep around pre-prepared statements and bind
- their arguments instead of constructing a new, messy, string appended statement each time
- -Changed some code in pruneUnretainedIconsOnStartup regarding transactions
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase): Initializers
- (WebCore::IconDatabase::close): Wipe all the preprepared statements
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Better handling of transactions
- (WebCore::readySQLStatement): Make sure a preprepared statement is ready to go for a fooQuery()
- (WebCore::IconDatabase::pageURLTableIsEmptyQuery): Added a comment
- (WebCore::IconDatabase::imageDataForIconURLQuery): Use preprepared statement + binding
- (WebCore::IconDatabase::timeStampForIconURLQuery): ditto
- (WebCore::IconDatabase::iconURLForPageURLQuery): ditto
- (WebCore::IconDatabase::forgetPageURLQuery): ditto
- (WebCore::IconDatabase::setIconIDForPageURLQuery): ditto
- (WebCore::IconDatabase::getIconIDForIconURLQuery): ditto
- (WebCore::IconDatabase::addIconForIconURLQuery): ditto
- (WebCore::IconDatabase::hasIconForIconURLQuery): ditto
- * loader/icon/IconDatabase.h: Added fooQuery() and *m_fooStatements
- * loader/icon/SQLStatement.h:
- (WebCore::SQLStatement::database): Added
- 2006-08-27 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fix switch logic.
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::setHScrollBarMode):
- (WebCore::ScrollView::setVScrollBarMode):
- 2006-08-27 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10557
- KCanvasPath should be replace by platform/Path
- Refactoring out the KCanvasPath class.
- * CMakeLists.txt:
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasCreator.cpp:
- (WebCore::KCanvasCreator::createRoundedRectangle):
- (WebCore::KCanvasCreator::createRectangle):
- (WebCore::KCanvasCreator::createEllipse):
- (WebCore::KCanvasCreator::createCircle):
- (WebCore::KCanvasCreator::createLine):
- * kcanvas/KCanvasCreator.h:
- * kcanvas/KCanvasPath.cpp: Removed.
- * kcanvas/KCanvasPath.h: Removed.
- * kcanvas/KCanvasResources.cpp:
- (WebCore::operator<<):
- (WebCore::KCanvasResource::clients):
- (WebCore::KCanvasResource::invalidate):
- (WebCore::KCanvasClipper::addClipData):
- * kcanvas/KCanvasResources.h:
- (WebCore::KCClipData::windRule):
- (WebCore::KCClipDataList::KCClipDataList):
- (WebCore::KCClipDataList::addPath):
- * kcanvas/KCanvasTreeDebug.cpp:
- (WebCore::operator<<):
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::fillContains):
- (WebCore::RenderPath::relativeBBox):
- (WebCore::RenderPath::setPath):
- (WebCore::RenderPath::path):
- (WebCore::RenderPath::paint):
- (WebCore::RenderPath::nodeAtPoint):
- * kcanvas/RenderPath.h:
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingFillPainter.cpp:
- (WebCore::KRenderingFillPainter::fillRule):
- (WebCore::KRenderingFillPainter::setFillRule):
- * kcanvas/device/KRenderingFillPainter.h:
- * kcanvas/device/qt/KCanvasClipperQt.cpp:
- (WebCore::KCanvasClipperQt::applyClip):
- * kcanvas/device/qt/KCanvasPathQt.cpp: Removed.
- * kcanvas/device/qt/KCanvasPathQt.h: Removed.
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceContextQt::addPath):
- (WebCore::KRenderingDeviceContextQt::setFillRule):
- (WebCore::KRenderingDeviceQt::createItem):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/RenderPathQt.cpp:
- (WebCore::RenderPathQt::drawMarkersIfNeeded):
- (WebCore::RenderPathQt::strokeContains):
- (WebCore::getPathStroke):
- (WebCore::RenderPathQt::strokeBBox):
- * kcanvas/device/qt/RenderPathQt.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.h:
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded):
- (WebCore::KCanvasItemQuartz::strokeBBox):
- (WebCore::KCanvasItemQuartz::strokeContains):
- * kcanvas/device/quartz/KCanvasPathQuartz.h: Removed.
- * kcanvas/device/quartz/KCanvasPathQuartz.mm: Removed.
- * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
- (WebCore::KCanvasClipperQuartz::applyClip):
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceContextQuartz::addPath):
- (WebCore::KRenderingDeviceQuartz::createItem):
- * kcanvas/device/quartz/QuartzSupport.h:
- * kcanvas/device/quartz/QuartzSupport.mm:
- (WebCore::scratchContext):
- (WebCore::strokeBoundingBox):
- (WebCore::pathContainsPoint):
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- (WebCore::CSSStyleSelector::applySVGProperty):
- * ksvg2/css/SVGRenderStyle.h:
- (WebCore::SVGRenderStyle::InheritedFlags::):
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- (WebCore::KSVGPainterFactory::fillPainter):
- * ksvg2/svg/SVGCircleElement.cpp:
- (SVGCircleElement::toPathData):
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::toPathData):
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::notifyAttributeChange):
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::toPathData):
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::toPathData):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::notifyClientsToRepaint):
- * ksvg2/svg/SVGPolygonElement.cpp:
- (SVGPolygonElement::toPathData):
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.cpp:
- (SVGPolylineElement::toPathData):
- * ksvg2/svg/SVGPolylineElement.h:
- * ksvg2/svg/SVGRectElement.cpp:
- (WebCore::SVGRectElement::toPathData):
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- (WebCore::SVGStyledElement::createRenderer):
- * ksvg2/svg/SVGStyledElement.h:
- (WebCore::SVGStyledElement::toPathData):
- * ksvg2/svg/SVGTextContentElement.cpp:
- * ksvg2/svg/SVGTextElement.cpp:
- * platform/Path.h:
- (WebCore::):
- (WebCore::Path::setWindingRule):
- (WebCore::Path::windingRule):
- * platform/cg/PathCG.cpp:
- (WebCore::Path::contains):
- (WebCore::Path::isEmpty):
- (WebCore::CGPathToCFStringApplierFunction):
- (WebCore::CFStringFromCGPath):
- (WebCore::Path::debugString):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::openURL):
- * platform/qt/PathQt.cpp:
- (WebCore::Path::contains):
- (WebCore::Path::isEmpty):
- (WebCore::Path::debugString):
- 2006-08-26 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt.
- pointer-events attribute does not work.
- http://bugs.webkit.org/show_bug.cgi?id=10415
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::pointerEventsHitRules): new function to contain pointer-events hit logic
- (WebCore::RenderPath::nodeAtPoint): respect pointer-events property
- * kcanvas/RenderPath.h:
- (WebCore::RenderPath::PointerEventsHitRules::PointerEventsHitRules):
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- * ksvg2/svg/SVGPaint.cpp: Fix this to use a real enum value
- (WebCore::SVGPaint::SVGPaint):
- (WebCore::SVGPaint::paintType):
- (WebCore::SVGPaint::uri):
- (WebCore::SVGPaint::setUri):
- (WebCore::SVGPaint::setPaint):
- * ksvg2/svg/SVGPaint.h:
- 2006-08-27 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10558
- SVG should have support for <metadata> element
- Add support for metadata tag.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
- * ksvg2/svg/SVGMetadataElement.cpp: Added.
- (SVGMetadataElement::SVGMetadataElement):
- (SVGMetadataElement::~SVGMetadataElement):
- * ksvg2/svg/SVGMetadataElement.h: Added.
- * ksvg2/svg/SVGMetadataElement.idl: Added.
- * ksvg2/svg/svgtags.in:
- 2006-08-26 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Daily Qt build fixes :-)
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContext::drawConvexPolygon):
- * platform/qt/ImageQt.cpp:
- (WebCore::Image::initPlatformData):
- (WebCore::Image::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- 2006-08-26 David Hyatt <hyatt@apple.com>
- Fix the ifdef in Path.h to be CG.
- * platform/Path.h:
- 2006-08-26 David Hyatt <hyatt@apple.com>
- Fix Mac build bustage (lots of float/int confusion). I am not sure
- whether rounding was desired or not... this is just a band-aid to get
- the build working again.
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintMenuListButtonGradients):
- (WebCore::RenderThemeMac::paintMenuListButton):
- (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
- 2006-08-25 David Hyatt <hyatt@apple.com>
- More refactoring of image to disentangle graphics (e.g., Cairo) from
- platform (e.g., Windows).
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- Add ImageWin to project.
- * loader/Cache.cpp:
- (WebCore::Cache::init):
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::loadImageFromResource):
- Renamed loadResource to loadPlatformResource to try to make it more clear
- that this call is implemented on each OS (and not by graphics libraries).
- * platform/Image.cpp:
- (WebCore::Image::Image):
- (WebCore::Image::~Image):
- (WebCore::Image::invalidateData):
- (WebCore::Image::size):
- (WebCore::Image::setData):
- (WebCore::Image::setNativeData):
- Fix up the PDF code to not be considered platform data any more, since
- PDF rendering is not for a specific OS.
- Renamed the methods that set OS-specific data (like NSImage) to PlatformData
- instead of NativeData.
- * platform/Image.h:
- Shifted the PDF members into CG defines. Made CGImageRef a CG define.
- Renamed methods to reflect that they are OS-specific and not
- graphics-library-specific.
-
- * platform/cairo/ImageCairo.cpp:
- Removed the platform data methods. Other platforms besides Windows that
- use Cairo will need to account for this change by adding these methods
- to their OS Image***.cpp file.
- * platform/cg/ImageCG.cpp:
- (WebCore::Image::drawTiled):
- Add FIXMEs to the wkpattern stuff.
- * platform/cg/PDFDocumentImage.cpp:
- Shouldn't have #imports in .cpp.
- * platform/mac/ImageMac.mm:
- (WebCore::Image::initPlatformData):
- (WebCore::Image::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- (WebCore::Image::getTIFFRepresentation):
- Add the platform data initializers to the Mac Image file. Move the
- TIFF representation there as well, since this is only used by Mac code.
- * platform/win/ImageWin.cpp: Added.
- (WebCore::Image::initPlatformData):
- (WebCore::Image::invalidatePlatformData):
- (WebCore::Image::loadPlatformResource):
- (WebCore::Image::supportsType):
- Similar work for Windows. Add stubs for possible future HBITMAP returns
- in the platform data methods.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::paintResizeControl):
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintResizeControl):
- loadResource -> loadPlatformResource
- 2006-08-26 Adam Roben <aroben@apple.com>
- Rubber-stamped by Adele.
- Fixed build.
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::drawConvexPolygon):
- 2006-08-25 Adele Peterson <adele@apple.com>
- Patch by Francisco, Reviewed by me.
- Preparation for switch to new text field implementation of password field.
- Added -webkit-text-security property.
- Tests: updated fast/css/computed-style-expected.txt
- * css/CSSPropertyNames.in: Added -webkit-text-security.
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added cases for textSecurity.
- * css/cssparser.cpp: (WebCore::CSSParser::parseValue): ditto.
- * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
- * css/html4.css: Added style for password field to use -webkit-text-security.
- * html/HTMLInputElement.cpp: Check appearance property to decide which renderer to use.
- (WebCore::HTMLInputElement::selectionStart):
- (WebCore::HTMLInputElement::selectionEnd):
- (WebCore::HTMLInputElement::setSelectionStart):
- (WebCore::HTMLInputElement::setSelectionEnd):
- (WebCore::HTMLInputElement::select):
- (WebCore::HTMLInputElement::setSelectionRange):
- (WebCore::HTMLInputElement::createRenderer):
- * html/HTMLInputElement.h: (WebCore::HTMLInputElement::isNonWidgetTextField): Added check for password.
- * platform/StringImpl.cpp: (WebCore::StringImpl::secure): Added. Converts a string to replace
- characters with one character, like a bullet.
- * platform/StringImpl.h:
- * rendering/RenderStyle.cpp:
- (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData): Initialize textSecurity.
- (WebCore::RenderStyle::diff): Added case for textSecurity.
- * rendering/RenderStyle.h:
- (WebCore::):
- (WebCore::RenderStyle::textSecurity): Added.
- (WebCore::RenderStyle::setTextSecurity): Added.
- (WebCore::RenderStyle::initialTextSecurity): Added.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::setStyle): Added case for textSecurity.
- (WebCore::RenderText::setText): ditto.
- 2006-08-25 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Enable styling for popup menus. Also fixed baseline calculation for buttons and selects.
- Tests: fast/forms/select-baseline.html
- fast/borders/borderRadiusInvalidColor.html
- updated: fast/forms/select-style-expected.txt and more...
- * css/html4.css: Added style rules for styled select elements.
- * platform/GraphicsContext.h: Added argument for antialiasing.
- * platform/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto.
- * platform/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawConvexPolygon): ditto.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorderArc): Added textColor argument so this can be used when the border color is invalid.
- (WebCore::RenderObject::drawBorder): Removed invalidisInvert since its dead code
- (any callers that set this to true were already ensuring that their color was valid).
- Updated drawConvexPolygon call to use FloatPoints instead of IntPoints.
- (WebCore::RenderObject::paintBorder): Updated to remove invalidisInvert argument from drawBorder call.
- (WebCore::RenderObject::paintOutline): ditto.
- * rendering/RenderFlow.cpp: (WebCore::RenderFlow::paintOutlineForLine): ditto.
- * rendering/RenderObject.h: Updated arguments for drawBorder and drawBorderArc.
- * rendering/RenderBlock.cpp: (WebCore::RenderBlock::getBaselineOfLastLineBox): Changed isRootLineBox argument to true when setting line height.
- Added case for when there's no children to check for hasLineIfEmpty.
- * rendering/RenderBlock.h:
- * rendering/bidi.cpp: (WebCore::RenderBlock::layoutInlineChildren): Changed isRootLineBox argument to true when setting line height.
- * rendering/RenderButton.h: (WebCore::RenderButton::hasLineIfEmpty): Added so buttons always get a line height.
- * rendering/RenderMenuList.h: (WebCore::RenderMenuList::hasLineIfEmpty): ditto.
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::layoutHorizontalBox): Added code to check hasLineIfEmpty to give flex boxes line height.
- (WebCore::RenderFlexibleBox::layoutVerticalBox): ditto.
- * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle): Moved the appearance adjustment code into adjust style.
- * rendering/RenderBox.cpp: (WebCore::RenderBox::paintBoxDecorations): Lets the theme paint "decorations", like the arrow control and gradients
- immediately after painting the background.
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::adjustStyle): This now checks whether the control is styled, and adjusts the appearance property appropriately.
- For styled selects, instead of setting the appearance to none, which is what we do for other styled controls, we set the appearance
- to MenulistButtonAppearance, which indicates that we will draw the arrow controls and button appearance in the engine.
- (WebCore::RenderTheme::paintDecorations): Added. Paints MenulistButtonAppearance in a different function,
- so the arrow control will draw at the right time (after the background).
- (WebCore::RenderTheme::paint): Added case for MenulistButtonAppearance.
- (WebCore::RenderTheme::paintBorderOnly): ditto.
- (WebCore::RenderTheme::isControlContainer): Removed cases for MenuListAppearance and MenulistButtonAppearance since the baseline is no longer provided by the theme.
- (WebCore::RenderTheme::adjustMenuListButtonStyle): Added.
- * rendering/RenderTheme.h: (WebCore::RenderTheme::paintMenuListButton): Added.
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::isControlStyled): Removed code that made selects unstyle-able.
- (WebCore::RenderThemeMac::baselinePosition): Removed cases for MenuListAppearance and MenulistButtonAppearance.
- (WebCore::RenderThemeMac::popupButtonPadding): Added top and bottom padding so empty popups have the right baseline.
- (WebCore::TopGradientInterpolate): Added.
- (WebCore::BottomGradientInterpolate): Added.
- (WebCore::MainGradientInterpolate): Added.
- (WebCore::RenderThemeMac::paintMenuListButtonGradients): Added. Draws gradients for styled popup menu button appearance.
- (WebCore::RenderThemeMac::paintMenuListButton): Calls paintMenuListButtonGradients, and draws arrow control.
- (WebCore::RenderThemeMac::adjustMenuListButtonStyle): Added to set padding and border radius to account for the arrow control size and font size.
- 2006-08-25 Brady Eidson <beidson@apple.com>
- Reviewed by Adam
- Changed some time()-related code to be more platform independent
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::isIconExpiredForIconURL):
- (WebCore::IconDatabase::getOrCreateIconDataCache):
- (WebCore::IconDatabase::setIconDataForIconURL):
- 2006-08-25 David Harrison <harrison@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4416432> Radio buttons and Checkboxes in AXWebAreas don't fill in their AXTitle attribute
- * bridge/mac/WebCoreAXObject.mm:
- (labelForElement):
- New. Returns the HTMLLabelElement, if any, for the specified Element.
-
- (-[WebCoreAXObject title]):
- For input elements, return the innerHTML() of the labelForElement().
- 2006-08-25 Brady Eidson <beidson@apple.com>
- Reviewed by Tim Hatcher
- Changed some debugging-only code to be more platform independent
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
- (WebCore::IconDatabase::syncDatabase):
- 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10561
- Qt platform build fixes.
- * platform/qt/FrameQt.h:
- * platform/qt/ScreenQt.cpp:
- (WebCore::qwidgetForPage):
- (WebCore::screenRect):
- (WebCore::screenDepth):
- (WebCore::usableScreenRect):
- * platform/qt/TemporaryLinkStubs.cpp:
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- * platform/qt/WidgetQt.cpp:
- 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Finally fix font caching. WebKit+Qt now works
- out of the box without any further patches :-)
- * platform/qt/FontDataQt.cpp:
- (WebCore::FontData::platformDestroy):
- * platform/qt/FontPlatformData.h:
- * platform/qt/FontPlatformDataQt.cpp:
- (WebCore::FontPlatformData::FontPlatformData):
- (WebCore::FontPlatformData::isFixedPitch):
- (WebCore::FontPlatformData::font):
- (WebCore::FontPlatformData::fontPtr):
- (WebCore::FontPlatformData::hash):
- (WebCore::FontPlatformData::operator==):
- 2006-08-25 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10559
- Confirm to WebKit style guide - last fixes :-)
- * platform/ResourceLoaderClient.h:
- * platform/qt/ComboBoxQt.cpp:
- * platform/qt/FrameQt.cpp:
- (WebCore::doScroll):
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::setTitle):
- (WebCore::FrameQt::passSubframeEventToSubframe):
- (WebCore::FrameQt::registerCommandForUndo):
- (WebCore::FrameQt::registerCommandForRedo):
- (WebCore::FrameQt::keyEvent):
- (WebCore::FrameQt::setFrameGeometry):
- * platform/qt/GlyphMapQt.cpp:
- (WebCore::GlyphMap::fillPage):
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::toQtCompositionMode):
- (WebCore::toQtLineCap):
- (WebCore::toQtLineJoin):
- (WebCore::TextShadow::TextShadow):
- (WebCore::GraphicsContextPlatformPrivate::p):
- * platform/qt/ImageQt.cpp:
- (WebCore::FrameData::clear):
- (WebCore::Image::supportsType):
- * platform/qt/IntSizeQt.cpp:
- * platform/qt/LineEditQt.cpp:
- * platform/qt/ListBoxQt.cpp:
- * platform/qt/PageQt.cpp:
- (WebCore::Page::windowRect):
- * platform/qt/PathQt.cpp:
- (WebCore::Path::~Path):
- * platform/qt/ResourceLoaderCurl.cpp:
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::headerCallback):
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- (WebCore::ResourceLoaderManager::add):
- * platform/qt/ScreenQt.cpp:
- (WebCore::screenRect):
- (WebCore::usableScreenRect):
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::ScrollView):
- (WebCore::ScrollView::~ScrollView):
- (WebCore::ScrollView::setParentWidget):
- (WebCore::ScrollView::addChild):
- * platform/qt/SharedTimerQt.cpp:
- (WebCore::setSharedTimerFiredFunction):
- * platform/qt/SharedTimerQt.h:
- (WebCore::SharedTimerQt::SharedTimerQt):
- (WebCore::SharedTimerQt::fire):
- * platform/qt/SystemTimeQt.cpp:
- (WebCore::currentTime):
- * platform/qt/TextEditQt.cpp:
- (WebCore::PlatformTextEdit::setParentWidget):
- (WebCore::PlatformTextEdit::text):
- (WebCore::PlatformTextEdit::sizeWithColumnsAndRows):
- 2006-08-24 David Harrison <harrison@apple.com>
- Reviewed by Justin.
- Follow up for...
- <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
- Fix bug I introduced in r15959.
-
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- Use topDocument in case we are in a subframe (we want the start/end of the overall page).
- 2006-08-24 Brady Eidson <beidson@apple.com>
- Reviewed by Alice
- Fixed my previous checkin, which was pruning the users entire icon db on startup everytime
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::retainIconForPageURL): Bind the PageURL to argument 1, as SQL bindings
- are indexed to 1, not 0
- 2006-08-24 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
- Frame refactoring: changed FrameView clients so they no longer assume that
- FrameViews are Widgets that can tell you things about the platform, in
- preparation for divorcing FrameViews from heavy-weight Widgets altogether.
- This patch makes Page, rather than Widget, responsible for answering
- questions about the screen (scale factor, color depth, etc.). Refactoring
- aside, I think this makes more sense, since (a) the screen has nothing to do
- with any particular widget and (b) Page was already half-responsible for
- answering those questions, anyway.
- Plus some random Windows build fix goodness.
- Layout tests still pass.
- 2006-08-24 Timothy Hatcher <timothy@apple.com>
- Reviewed by Hyatt.
- Allow changing the background color WebCore draws under transparent page backgrounds.
- No automated way to test. All tests pass, no performance regression.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setBaseBackgroundColor:]):
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::FrameViewPrivate):
- (WebCore::FrameView::baseBackgroundColor):
- (WebCore::FrameView::setBaseBackgroundColor):
- * page/FrameView.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::paintBoxDecorations):
- 2006-08-24 Darin Adler <darin@apple.com>
- Reviewed by Justin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10169
- REGRESSION: NativeTextArea: Text dragged from <input type=text> to textarea disappears
- - eliminate the EditCommandPtr class from editing; use PassRefPtr and RefPtr instead
- - other editing-related cleanup
- Test: fast/forms/drag-into-textarea.html
- * bridge/mac/FrameMac.h: Changed EditCommandPtr parameters to use PassRefPtr<EditCommand> instead.
- * bridge/win/FrameWin.h: Ditto.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::registerCommandForUndoOrRedo): Ditto.
- (WebCore::FrameMac::registerCommandForUndo): Ditto.
- (WebCore::FrameMac::registerCommandForRedo): Ditto.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
- Use applyCommand instead of EditCommandPtr. Also remove now-unneeded document parameter.
- (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]): Ditto.
- (-[WebCoreFrameBridge deleteSelectionWithSmartDelete:]): Ditto.
- * editing/AppendNodeCommand.h: Removed document parameter from constructor. Changed new child
- parameter to be a PassRefPtr. Reversed order of child and parent parameters.
- * editing/AppendNodeCommand.cpp:
- (WebCore::AppendNodeCommand::AppendNodeCommand): Ditto.
- (WebCore::AppendNodeCommand::doApply): Ditto.
- (WebCore::AppendNodeCommand::doUnapply): Ditto.
- * editing/ApplyStyleCommand.h: Removed document parameter from constructor.
- * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::ApplyStyleCommand): Ditto.
- * editing/BreakBlockquoteCommand.h: Removed unneeded include of DeprecatedPtrList.h.
- * editing/BreakBlockquoteCommand.cpp: Moved the include of DeprecatedPtrList.h here.
- (WebCore::BreakBlockquoteCommand::doApply): Changed code to construct a Selection explicitly
- since setEndingSelection is no longer overloaded for Position.
- * editing/CompositeEditCommand.h: Added isFirstCommand function. Changed m_cmds from
- a DeprecatedValueList<EditCommandPtr> to a Vector<RefPtr<EditCommand>> and renamed it
- m_commands and made both doUnapply and doReapply private.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::doUnapply): Rewrote to use m_commands.
- (WebCore::CompositeEditCommand::doReapply): Ditto.
- (WebCore::CompositeEditCommand::applyCommandToComposite): Removed code to explicitly set up
- starting and ending selection -- now done inside setParent. Rewrote to use m_commands.
- (WebCore::CompositeEditCommand::applyStyle): Changed to not use EditCommandPtr.
- (WebCore::CompositeEditCommand::applyStyledElement): Ditto.
- (WebCore::CompositeEditCommand::removeStyledElement): Ditto.
- (WebCore::CompositeEditCommand::insertParagraphSeparator): Ditto.
- (WebCore::CompositeEditCommand::insertNodeBefore): Ditto.
- (WebCore::CompositeEditCommand::appendNode): Ditto.
- (WebCore::CompositeEditCommand::removeNode): Ditto.
- (WebCore::CompositeEditCommand::removeNodePreservingChildren): Ditto.
- (WebCore::CompositeEditCommand::splitTextNode): Ditto.
- (WebCore::CompositeEditCommand::splitElement): Ditto.
- (WebCore::CompositeEditCommand::mergeIdenticalElements): Ditto.
- (WebCore::CompositeEditCommand::wrapContentsInDummySpan): Ditto.
- (WebCore::CompositeEditCommand::splitTextNodeContainingElement): Ditto.
- (WebCore::CompositeEditCommand::joinTextNodes): Ditto.
- (WebCore::CompositeEditCommand::inputText): Ditto.
- (WebCore::CompositeEditCommand::insertTextIntoNode): Ditto.
- (WebCore::CompositeEditCommand::deleteTextFromNode): Ditto.
- (WebCore::CompositeEditCommand::replaceTextInNode): Ditto.
- (WebCore::CompositeEditCommand::deleteSelection): Ditto.
- (WebCore::CompositeEditCommand::removeCSSProperty): Ditto.
- (WebCore::CompositeEditCommand::removeNodeAttribute): Ditto. Also fixed a bug where the code
- would not remove an empty attribute -- will not come up in practice, but wrong in theory.
- (WebCore::CompositeEditCommand::setNodeAttribute): Changed to not use EditCommandPtr.
- (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Ditto.
- (WebCore::CompositeEditCommand::deleteInsignificantText): Rewrote to use a for loop.
- (WebCore::CompositeEditCommand::moveParagraphs): Changed to not use EditCommandPtr.
- (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Changed code to construct a
- Selection explicitly since setEndingSelection is no longer overloaded for Position.
- (WebCore::createBlockPlaceholderElement): Collapsed this code so that the
- block placeholder class string is no longer spread across multiple functions.
- Perhaps we can get rid of this altogether at some point.
- * editing/DeleteFromTextNodeCommand.h: Removed unneeded document parameter from one constructor.
- Also removed unneeded destructor.
- * editing/DeleteFromTextNodeCommand.cpp:
- (WebCore::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand): Ditto.
- * editing/DeleteSelectionCommand.h: Removed unneeded document parameter from one constructor.
- * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Ditto.
- * editing/EditCommand.h: Removed ECommandState, isCompositeStep(), parent(), state(), setState(),
- and most overloads of setStartingSelection() and setEndingSelection(). Made document() protected
- and non-virtual. Made setStartingSelection() setEndingSelection(), and styleAtPosition() protected.
- Made doApply(), doUnapply(), and doReapply() private. Added startingRootEditableElement(),
- endingRootEditableElement(), m_startingRootEditableElement, and m_endingRootEditableElement, which
- are needed so we can determine which editable elements an editing operation affects. Changed setParent()
- and m_parent to use CompositeEditCommand instead of EditCommand. Removed EditCommandPtr. Added
- applyCommand() function that's convenient to use on a newly-created command.
- * editing/EditCommand.cpp:
- (WebCore::EditCommand::EditCommand): Removed initialization for m_state, and added it for starting
- and ending root editable elements.
- (WebCore::EditCommand::apply): Simplified check for top level by just checking m_parent. Removed
- code to assert and set m_start. Eliminated use of EditCommandPtr.
- (WebCore::EditCommand::unapply): Ditto.
- (WebCore::EditCommand::reapply): Ditto.
- (WebCore::EditCommand::setStartingSelection): Changed to set root editable element too. Also made this
- not change the starting selection of the parent unless this is the first command in the parent -- didn't
- make sense the way it was.
- (WebCore::EditCommand::setEndingSelection): Changed to set root editable element too.
- (WebCore::EditCommand::setParent): Added code to set the starting and ending selection on the child
- based on the ending selection of the parent, formerly done by callers.
- (WebCore::applyCommand): Added.
- * editing/FormatBlockCommand.h: Tweaked formatting.
- * editing/FormatBlockCommand.cpp: (WebCore::FormatBlockCommand::FormatBlockCommand): Ditto.
- * editing/InsertLineBreakCommand.h: Ditto.
- * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
- * editing/IndentOutdentCommand.cpp:
- (WebCore::IndentOutdentCommand::splitTreeToNode): Removed use of EditCommandPtr.
- (WebCore::IndentOutdentCommand::outdentParagraph): Updated for change to list type enum.
- (WebCore::IndentOutdentCommand::outdentRegion): Removed use of EditCommandPtr.
- * editing/InsertIntoTextNodeCommand.h: Removed unneeded document parameter to constructor.
- * editing/InsertIntoTextNodeCommand.cpp:
- (WebCore::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand): Ditto.
- * editing/InsertListCommand.h: Renamed EListType to EList, and took the "Type" suffix off
- the constants.
- * editing/InsertListCommand.cpp:
- (WebCore::InsertListCommand::InsertListCommand): Ditto.
- (WebCore::InsertListCommand::doApply): Ditto.
- * editing/InsertNodeBeforeCommand.h: Removed unneeded document parameter from constructor
- and changed the parameter of the node to insert to a PassRefPtr.
- * editing/InsertNodeBeforeCommand.cpp:
- (WebCore::InsertNodeBeforeCommand::InsertNodeBeforeCommand): Ditto.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Remvoed use of EditCommandPtr.
- * editing/InsertTextCommand.h: Changed insertTab to take const Position&.
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input): Ditto.
- (WebCore::InsertTextCommand::insertTab): Ditto.
- * editing/JSEditor.h: Tweaked formatting and names.
- * editing/JSEditor.cpp: Ditto. Also changed places that use EditCommandPtr.
- * editing/JoinTextNodesCommand.h: Removed unneeeded document pointer
- * editing/JoinTextNodesCommand.cpp:
- (WebCore::JoinTextNodesCommand::JoinTextNodesCommand): Ditto.
- * editing/MergeIdenticalElementsCommand.h: Ditto.
- * editing/MergeIdenticalElementsCommand.cpp:
- (WebCore::MergeIdenticalElementsCommand::MergeIdenticalElementsCommand): Ditto.
- * editing/ModifySelectionListLevel.h: Changed EListType to be named Type and be a member of
- IncreaseSelectionListLevelCommand. Also changed m_listElement to be a RefPtr<Node>.
- * editing/ModifySelectionListLevel.cpp:
- (WebCore::getStartEndListChildren): Changed parameters to be references instead of pointers.
- (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
- Changed to use Type instead of EListType.
- (WebCore::canIncreaseListLevel): Changed parameters to be references instead of pointers.
- (WebCore::IncreaseSelectionListLevelCommand::doApply): Updated for change to canIncreaseListLevel.
- (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel): Ditto.
- (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelWithType):
- Changed to not use EditCommandPtr.
- (WebCore::canDecreaseListLevel): Changed parameters to be references instead of pointers.
- (WebCore::DecreaseSelectionListLevelCommand::doApply): Updated for change to canDecreaseListLevel.
- (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel): Ditto.
- (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel): Changed to not use
- EditCommandPtr.
- * editing/MoveSelectionCommand.h: Removed unnecessary document parameter and changed the fragment
- parameter to be a PassRefPtr.
- * editing/MoveSelectionCommand.cpp:
- (WebCore::MoveSelectionCommand::MoveSelectionCommand): Ditto.
- (WebCore::MoveSelectionCommand::doApply): Got rid of use of EditCommandPtr.
- * editing/RebalanceWhitespaceCommand.h: Removed unnecessary document parameter.
- * editing/RebalanceWhitespaceCommand.cpp:
- (WebCore::RebalanceWhitespaceCommand::RebalanceWhitespaceCommand): Ditto.
- (WebCore::RebalanceWhitespaceCommand::doApply): Got rid of use of EditCommandPtr.
- * editing/RemoveCSSPropertyCommand.h: Tweaked formatting.
- * editing/RemoveNodeAttributeCommand.h: Removed unnecessary document parameter.
- * editing/RemoveNodeAttributeCommand.cpp:
- (WebCore::RemoveNodeAttributeCommand::RemoveNodeAttributeCommand): Ditto.
- * editing/RemoveNodeCommand.h: Removed unnecessary document parameter.
- * editing/RemoveNodeCommand.cpp:
- (WebCore::RemoveNodeCommand::RemoveNodeCommand): Ditto.
- * editing/RemoveNodePreservingChildrenCommand.h: Removed unnecessary document parameter.
- * editing/RemoveNodePreservingChildrenCommand.cpp:
- (WebCore::RemoveNodePreservingChildrenCommand::RemoveNodePreservingChildrenCommand): Ditto.
- * editing/ReplaceSelectionCommand.h: Change fragment parameter to a PassRefPtr.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
- (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand): Ditto.
- (WebCore::ReplaceSelectionCommand::doApply): Ditto.
- (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Ditto.
- * editing/Selection.h: Changed SEL_DEFAULT_AFFINITY to be a constant rather than
- a macro. Added constructors that take visible positions. Changed setBase and
- setExtent to take const Position& for better efficiency.
- * editing/Selection.cpp:
- (WebCore::Selection::Selection): Removed unnecessary double initialization of m_state
- and m_baseIsFirst in existing constructors. Added VisiblePosition-based constructors.
- * editing/SetNodeAttributeCommand.h: Removed unnneeded document parameter.
- * editing/SetNodeAttributeCommand.cpp:
- (WebCore::SetNodeAttributeCommand::SetNodeAttributeCommand): Ditto.
- * editing/SplitElementCommand.h: Removed unnneeded document parameter.
- * editing/SplitElementCommand.cpp:
- (WebCore::SplitElementCommand::SplitElementCommand): Ditto.
- * editing/SplitTextNodeCommand.h: Removed unnneeded document parameter.
- * editing/SplitTextNodeCommand.cpp:
- (WebCore::SplitTextNodeCommand::SplitTextNodeCommand): Ditto.
- * editing/SplitTextNodeContainingElementCommand.h: Removed unnneeded document parameter.
- * editing/SplitTextNodeContainingElementCommand.cpp:
- (WebCore::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand): Ditto.
- * editing/TypingCommand.h: Replaced uses of EditCommandPtr with EditCommand*.
- Renamed openForMoveTyping() with isOpenForMoreTyping().
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed): Updated to remove use of EditCommandPtr.
- (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
- (WebCore::TypingCommand::insertText): Ditto.
- (WebCore::TypingCommand::insertLineBreak): Ditto.
- (WebCore::TypingCommand::insertParagraphSeparatorInQuotedContent): Ditto.
- (WebCore::TypingCommand::insertParagraphSeparator): Ditto.
- (WebCore::TypingCommand::isOpenForMoreTypingCommand): Ditto.
- (WebCore::TypingCommand::closeTyping): Ditto.
- (WebCore::TypingCommand::typingAddedToOpenCommand): Ditto.
- (WebCore::TypingCommand::insertTextRunWithoutNewlines): Ditto.
- * editing/WrapContentsInDummySpanCommand.h: Removed unnneeded document parameter.
- * editing/WrapContentsInDummySpanCommand.cpp:
- (WebCore::WrapContentsInDummySpanCommand::WrapContentsInDummySpanCommand): Ditto.
- * editing/htmlediting.h: Changed type of NON_BREAKING_SPACE to UChar instead of
- unsigned short.
- * page/Frame.h: Changed lastEditCommand() to return an EditCommand* and changed
- appliedEditing(), unappliedEditing(), reappliedEditing(), registerCommandForUndo(),
- and registerCommandForRedo() to take PassRefPtr<EditCommand>.
- * page/FramePrivate.h: Changed m_lastEditCommand to be a RefPtr<EditCommand>.
- * page/Frame.cpp:
- (WebCore::Frame::didOpenURL): Fixed for change to m_lastEditCommand.
- (WebCore::Frame::setFocusNodeIfNeeded): Call the rootEditableElement function
- from Selection to simplify the code.
- (WebCore::Frame::selectAll): Ditto.
- (WebCore::Frame::lastEditCommand): Updated for change to m_lastEditCommand.
- (WebCore::dispatchEditableContentChangedEvents): Added. This sends an event to
- both of the root editable elements involved in a change -- the start selection
- might be in a different element than the end selection.
- (WebCore::Frame::appliedEditing): Changed to call dispatchEditableContentChangedEvents,
- and to do it before setting the ending selection. Also update to use PassRefPtr instead
- of EditCommandPtr and change the order of setting m_lastEditCommand since passing it
- to registerCommandForUndo will take ownership and set it to 0.
- (WebCore::Frame::unappliedEditing): Ditto.
- (WebCore::Frame::reappliedEditing): Ditto.
- (WebCore::Frame::computeAndSetTypingStyle): Updated for removal of EditCommandPtr.
- (WebCore::Frame::applyStyle): Ditto.
- (WebCore::Frame::applyParagraphStyle): Ditto.
- * platform/gdk/FrameGdk.h: Updated for above changes.
- * platform/gdk/TemporaryLinkStubs.cpp: Updated for above changes.
- * platform/win/TemporaryLinkStubs.cpp: Updated for above changes.
- 2006-08-24 Brady Eidson <beidson@apple.com>
- Reviewed by Alice
- <rdar://problem/4697973> - Unacceptable delay on startup
- <rdar://problem/4690949> - Need to correctly prune unretained pageurls and icons on startup
- This patch was started by me and finished by Mark Rowe - we now special case all retains during
- startup into one huge sql transaction. Also we track PageURL retains instead of IconURLs so pruning works right.
- Testing with reasonable sets of bookmarks/history (3000), startup time is neglibile. Testing with a huge set of
- bookmarks (40,000), startup has a noticable delay, but reasonable, and is inline with shipping safari which also
- has a noticeable delay.
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open): adding an initialStartupTransaction and pageRetainStatement
- (WebCore::IconDatabase::close): do cleanup on the initialStartupSQL stuff
- (WebCore::IconDatabase::retainIconForPageURL): Track initial PageURL retains in the temporary table
- (WebCore::IconDatabase::releaseIconForPageURL): Ditto
- (WebCore::IconDatabase::retainIconURL): We no longer special case this on startup
- (WebCore::IconDatabase::releaseIconURL): We no longer special case this on startup
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Handle the big transaction correctly and quickly
- (WebCore::IconDatabase::syncDatabase): Change the timing log message
- * loader/icon/IconDatabase.h:
- * loader/icon/SQLStatement.cpp:
- (WebCore::SQLStatement::bindText16): Added this - for reusing commonly used statements by just rebinding parameters.
- * loader/icon/SQLStatement.h:
- 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * CMakeLists.txt:
- Remove KCanvasMatrix.cpp because it no longer exists
- Remove platform/qt/test
- * platform/FloatSize.h:
- * platform/image-decoders/bmp/BMPImageDecoder.cpp:
- * platform/image-decoders/gif/GIFImageDecoder.cpp:
- * platform/image-decoders/gif/GIFImageReader.cpp:
- * platform/image-decoders/ico/ICOImageDecoder.cpp:
- * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
- * platform/image-decoders/png/PNGImageDecoder.cpp:
- * platform/image-decoders/xbm/XBMImageDecoder.cpp:
- Added PLATFORM(QT) hooks in the image-decoders/, as they also need
- to work for Qt, not only for Cairo.
- * platform/qt/qt-encodings.txt: Added (required for build).
- 2006-08-24 Adam Roben <aroben@apple.com>
- Fixing a typo from last patch.
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- (WebCore::KRenderingPaintServerQt::setPenProperties):
- 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed/landed by Adam.
- Final cleanup to conform to WebKit coding style!
- * kcanvas/device/qt/KCanvasClipperQt.cpp:
- (WebCore::KCanvasClipperQt::applyClip):
- * kcanvas/device/qt/KCanvasClipperQt.h:
- * kcanvas/device/qt/KCanvasPathQt.cpp:
- * kcanvas/device/qt/KCanvasPathQt.h:
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- (WebCore::KRenderingPaintServerLinearGradientQt::KRenderingPaintServerLinearGradientQt):
- (WebCore::KRenderingPaintServerRadialGradientQt::KRenderingPaintServerRadialGradientQt):
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.h:
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
- (WebCore::KRenderingPaintServerPatternQt::KRenderingPaintServerPatternQt):
- * kcanvas/device/qt/KRenderingPaintServerPatternQt.h:
- * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
- (WebCore::KRenderingPaintServerQt::setPenProperties):
- * kcanvas/device/qt/KRenderingPaintServerQt.h:
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
- (WebCore::KRenderingPaintServerSolidQt::KRenderingPaintServerSolidQt):
- (WebCore::KRenderingPaintServerSolidQt::renderPath):
- * kcanvas/device/qt/KRenderingPaintServerSolidQt.h:
- * kcanvas/device/qt/RenderPathQt.cpp:
- * kcanvas/device/qt/RenderPathQt.h:
- * platform/qt/AffineTransformQt.cpp:
- * platform/qt/BrowserExtensionQt.cpp:
- * platform/qt/BrowserExtensionQt.h:
- * platform/qt/ColorQt.cpp:
- (WebCore::Color::Color):
- * platform/qt/ComboBoxQt.cpp:
- (WebCore::PlatformComboBox::PlatformComboBox):
- (WebCore::PlatformComboBox::~PlatformComboBox):
- (WebCore::PlatformComboBox::setParentWidget):
- (WebCore::PlatformComboBox::appendGroupLabel):
- * platform/qt/CookieJarQt.cpp:
- * platform/qt/CursorQt.cpp:
- (WebCore::Cursors::Cursors::self):
- * platform/qt/FloatPointQt.cpp:
- * platform/qt/FloatRectQt.cpp:
- * platform/qt/FontCacheQt.cpp:
- (WebCore::FontCache::getSimilarFontPlatformData):
- (WebCore::FontCache::createFontPlatformData):
- * platform/qt/FontDataQt.cpp:
- * platform/qt/FontPlatformData.h:
- * platform/qt/FontPlatformDataQt.cpp:
- * platform/qt/FontQt.cpp:
- (WebCore::Font::operator QFont):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::floatWidthForComplexText):
- * platform/qt/FrameQt.cpp:
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- (WebCore::FrameQt::keyEvent):
- * platform/qt/FrameQt.h:
- * platform/qt/GlyphMapQt.cpp:
- * platform/qt/GraphicsContextQt.cpp:
- (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
- (WebCore::GraphicsContext::GraphicsContext):
- (WebCore::GraphicsContext::drawConvexPolygon):
- (WebCore::GraphicsContext::setFocusRingClip):
- (WebCore::GraphicsContext::clip):
- * platform/qt/ImageQt.cpp:
- (WebCore::Image::draw):
- (WebCore::Image::drawTiled):
- * platform/qt/ImageSourceQt.cpp:
- * platform/qt/IntPointQt.cpp:
- * platform/qt/IntRectQt.cpp:
- * platform/qt/IntSizeQt.cpp:
- * platform/qt/LineEditQt.cpp:
- (WebCore::PlatformLineEdit::PlatformLineEdit):
- (WebCore::PlatformLineEdit::~PlatformLineEdit):
- (WebCore::PlatformLineEdit::setParentWidget):
- (WebCore::PlatformLineEdit::addSearchResult):
- * platform/qt/ListBoxQt.cpp:
- (WebCore::ListBox::ListBox):
- (WebCore::ListBox::~ListBox):
- (WebCore::ListBox::setParentWidget):
- * platform/qt/PageQt.cpp:
- (WebCore::Page::windowRect):
- (WebCore::Page::setWindowRect):
- * platform/qt/PathQt.cpp:
- (WebCore::Path::addArc):
- * platform/qt/PlatformKeyboardEventQt.cpp:
- (WebCore::windowsKeyCodeForKeyEvent):
- (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
- * platform/qt/PlatformMouseEventQt.cpp:
- * platform/qt/RenderThemeQt.cpp:
- (WebCore::RenderThemeQt::getStylePainterAndWidgetFromPaintInfo):
- (WebCore::RenderThemeQt::applyTheme):
- (WebCore::RenderThemeQt::paintButton):
- (WebCore::RenderThemeQt::paintTextField):
- * platform/qt/ResourceLoaderCurl.cpp:
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/ResourceLoaderManager.cpp:
- (WebCore::ResourceLoaderManager::add):
- * platform/qt/ResourceLoaderManager.h:
- * platform/qt/ScreenQt.cpp:
- * platform/qt/ScrollViewCanvasQt.cpp:
- (WebCore::ScrollViewCanvasQt::handleKeyEvent):
- * platform/qt/ScrollViewCanvasQt.h:
- * platform/qt/ScrollViewQt.cpp:
- * platform/qt/SharedTimerQt.cpp:
- * platform/qt/SharedTimerQt.h:
- (WebCore::SharedTimerQt::inst):
- * platform/qt/StringQt.cpp:
- * platform/qt/SystemTimeQt.cpp:
- * platform/qt/TemporaryLinkStubs.cpp:
- * platform/qt/TextEditQt.cpp:
- (WebCore::PlatformTextEdit::PlatformTextEdit):
- (WebCore::PlatformTextEdit::~PlatformTextEdit):
- (WebCore::PlatformTextEdit::setParentWidget):
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::setQWidget):
- 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed and landed by Anders.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * CMakeLists.txt:
- * platform/qt/FrameQt.cpp: Added.
- (WebCore::doScroll):
- (WebCore::FrameView::isFrameView):
- (WebCore::FrameQt::FrameQt):
- (WebCore::FrameQt::init):
- (WebCore::FrameQt::~FrameQt):
- (WebCore::FrameQt::openURL):
- (WebCore::FrameQt::submitForm):
- (WebCore::FrameQt::urlSelected):
- (WebCore::FrameQt::userAgent):
- (WebCore::FrameQt::runJavaScriptAlert):
- (WebCore::FrameQt::runJavaScriptConfirm):
- (WebCore::FrameQt::locationbarVisible):
- (WebCore::FrameQt::setTitle):
- (WebCore::FrameQt::createFrame):
- (WebCore::FrameQt::passWheelEventToChildWidget):
- (WebCore::FrameQt::passSubframeEventToSubframe):
- (WebCore::FrameQt::objectContentType):
- (WebCore::FrameQt::createPlugin):
- (WebCore::FrameQt::passMouseDownEventToWidget):
- (WebCore::FrameQt::menubarVisible):
- (WebCore::FrameQt::personalbarVisible):
- (WebCore::FrameQt::statusbarVisible):
- (WebCore::FrameQt::toolbarVisible):
- (WebCore::FrameQt::createEmptyDocument):
- (WebCore::FrameQt::markedTextRange):
- (WebCore::FrameQt::incomingReferrer):
- (WebCore::FrameQt::mimeTypeForFileName):
- (WebCore::FrameQt::markMisspellingsInAdjacentWords):
- (WebCore::FrameQt::markMisspellings):
- (WebCore::FrameQt::lastEventIsMouseUp):
- (WebCore::FrameQt::saveDocumentState):
- (WebCore::FrameQt::restoreDocumentState):
- (WebCore::FrameQt::openURLRequest):
- (WebCore::FrameQt::scheduleClose):
- (WebCore::FrameQt::unfocusWindow):
- (WebCore::FrameQt::focusWindow):
- (WebCore::FrameQt::overrideMediaType):
- (WebCore::FrameQt::addMessageToConsole):
- (WebCore::FrameQt::runJavaScriptPrompt):
- (WebCore::FrameQt::getEmbedInstanceForWidget):
- (WebCore::FrameQt::getObjectInstanceForWidget):
- (WebCore::FrameQt::getAppletInstanceForWidget):
- (WebCore::FrameQt::registerCommandForUndo):
- (WebCore::FrameQt::registerCommandForRedo):
- (WebCore::FrameQt::clearUndoRedoOperations):
- (WebCore::FrameQt::issueUndoCommand):
- (WebCore::FrameQt::issueRedoCommand):
- (WebCore::FrameQt::issueCutCommand):
- (WebCore::FrameQt::issueCopyCommand):
- (WebCore::FrameQt::issuePasteCommand):
- (WebCore::FrameQt::issuePasteAndMatchStyleCommand):
- (WebCore::FrameQt::issueTransposeCommand):
- (WebCore::FrameQt::respondToChangedSelection):
- (WebCore::FrameQt::respondToChangedContents):
- (WebCore::FrameQt::shouldChangeSelection):
- (WebCore::FrameQt::partClearedInBegin):
- (WebCore::FrameQt::canGoBackOrForward):
- (WebCore::FrameQt::handledOnloadEvents):
- (WebCore::FrameQt::canPaste):
- (WebCore::FrameQt::canRedo):
- (WebCore::FrameQt::canUndo):
- (WebCore::FrameQt::print):
- (WebCore::FrameQt::shouldInterruptJavaScript):
- (WebCore::FrameQt::keyEvent):
- (WebCore::FrameQt::receivedResponse):
- (WebCore::FrameQt::receivedData):
- (WebCore::FrameQt::receivedAllData):
- (WebCore::FrameQt::setFrameGeometry):
- * platform/qt/FrameQt.h: Added.
- * platform/qt/ScrollViewCanvasQt.cpp: Added.
- (WebCore::ScrollViewCanvasQt::ScrollViewCanvasQt):
- (WebCore::ScrollViewCanvasQt::paintEvent):
- (WebCore::ScrollViewCanvasQt::sizeHint):
- (WebCore::ScrollViewCanvasQt::mouseMoveEvent):
- (WebCore::ScrollViewCanvasQt::mousePressEvent):
- (WebCore::ScrollViewCanvasQt::mouseReleaseEvent):
- (WebCore::ScrollViewCanvasQt::keyPressEvent):
- (WebCore::ScrollViewCanvasQt::keyReleaseEvent):
- (WebCore::ScrollViewCanvasQt::handleKeyEvent):
- * platform/qt/ScrollViewCanvasQt.h: Added.
- * platform/qt/ScrollViewQt.cpp:
- (WebCore::ScrollView::setParentWidget):
- 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by ap.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/FontCacheQt.cpp: Added.
- (WebCore::FontCache::platformInit):
- (WebCore::FontCache::getFontDataForCharacters):
- (WebCore::FontCache::getSimilarFontPlatformData):
- (WebCore::FontCache::getLastResortFallbackFont):
- (WebCore::FontCache::createFontPlatformData):
- * platform/qt/FontDataQt.cpp: Added.
- (WebCore::FontData::platformInit):
- (WebCore::FontData::platformDestroy):
- (WebCore::FontData::smallCapsFontData):
- (WebCore::FontData::containsCharacters):
- (WebCore::FontData::determinePitch):
- (WebCore::FontData::platformWidthForGlyph):
- * platform/qt/FontPlatformData.h: Added.
- * platform/qt/FontPlatformDataQt.cpp: Added.
- (WebCore::FontPlatformData::FontPlatformData):
- (WebCore::FontPlatformData::operator=):
- (WebCore::FontPlatformData::~FontPlatformData):
- (WebCore::FontPlatformData::isFixedPitch):
- (WebCore::FontPlatformData::setFont):
- (WebCore::FontPlatformData::font):
- (WebCore::FontPlatformData::hash):
- (WebCore::FontPlatformData::operator==):
- * platform/qt/FontQt.cpp: Added.
- (WebCore::Font::operator QFont):
- (WebCore::Font::drawGlyphs):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::floatWidthForComplexText):
- * platform/qt/GlyphMapQt.cpp: Added.
- (WebCore::GlyphMap::fillPage):
- 2006-08-24 David Harrison <harrison@apple.com>
- Reinstate r15966 because layout test changes are correct.
- <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::advance):
- 2006-08-24 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by ap.
- http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support (Part II)
- Adapt the KCanvas Qt device to Rob's KCanvasMatrix removal.
- Use AffineTransform everywhere instead.
- * kcanvas/device/qt/KRenderingDeviceQt.cpp:
- (WebCore::KRenderingDeviceContextQt::KRenderingDeviceContextQt):
- (WebCore::KRenderingDeviceContextQt::concatCTM):
- (WebCore::KRenderingDeviceContextQt::ctm):
- * kcanvas/device/qt/KRenderingDeviceQt.h:
- * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
- (WebCore::KRenderingPaintServerLinearGradientQt::setup):
- (WebCore::KRenderingPaintServerRadialGradientQt::setup):
- 2006-08-24 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10524
- svg transform: comma delimiting breaks display
- Properly parse transforms which use ',' as seperators.
- * ksvg2/svg/SVGTransformable.cpp:
- (SVGTransformable::parseTransformAttribute):
- 2006-08-23 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - added an assert to make it slightly easier to debug the common case of
- calling document() on a node of 0
- * dom/Node.h: (WebCore::Node::document): ASSERT(this).
- 2006-08-23 David Hyatt <hyatt@apple.com>
- Refactor Cairo and CoreGraphics to use platform ifdefs. This patch
- separates the graphics engines from their respective platforms and replaces
- #ifdef PLATFORM(MAC) and PLATFORM(WIN) with PLATFORM(CG) and PLATFORM(CAIRO).
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * platform/AffineTransform.h:
- * platform/Color.h:
- * platform/Cursor.h:
- * platform/FloatPoint.h:
- * platform/FloatRect.h:
- * platform/FloatSize.h:
- * platform/Font.h:
- * platform/FontData.h:
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::glyphAt):
- (WebCore::GlyphBuffer::advanceAt):
- (WebCore::GlyphBuffer::add):
- * platform/GraphicsContext.h:
- * platform/Image.h:
- * platform/ImageSource.h:
- * platform/IntPoint.h:
- * platform/IntRect.h:
- * platform/IntSize.h:
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderClient.h:
- * platform/Widget.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- * platform/cairo/ImageCairo.cpp:
- * platform/cairo/ImageSourceCairo.cpp:
- * platform/cg/AffineTransformCG.cpp:
- * platform/cg/FloatPointCG.cpp: Added.
- * platform/cg/FloatRectCG.cpp: Added.
- * platform/cg/FloatSizeCG.cpp: Added.
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::GraphicsContext):
- (WebCore::GraphicsContext::~GraphicsContext):
- (WebCore::GraphicsContext::setFocusRingClip):
- (WebCore::GraphicsContext::clearFocusRingClip):
- (WebCore::GraphicsContext::platformContext):
- (WebCore::GraphicsContext::drawRect):
- (WebCore::GraphicsContext::drawLine):
- * platform/cg/GraphicsContextPlatformPrivate.h: Added.
- (WebCore::GraphicsContextPlatformPrivate:::m_cgContext):
- (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
- * platform/cg/ImageCG.cpp: Added.
- (WebCore::Image::drawTiled):
- * platform/cg/ImageSourceCG.cpp: Added.
- * platform/cg/IntPointCG.cpp: Added.
- * platform/cg/IntRectCG.cpp: Added.
- * platform/cg/IntSizeCG.cpp: Added.
- * platform/cg/PDFDocumentImage.cpp: Added.
- (WebCore::PDFDocumentImage::adjustCTM):
- * platform/cg/PDFDocumentImage.h: Added.
- * platform/cg/PathCG.cpp:
- * platform/image-decoders/bmp/BMPImageDecoder.cpp:
- * platform/image-decoders/gif/GIFImageDecoder.cpp:
- * platform/image-decoders/gif/GIFImageReader.cpp:
- * platform/image-decoders/ico/ICOImageDecoder.cpp:
- * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
- * platform/image-decoders/png/PNGImageDecoder.cpp:
- * platform/image-decoders/xbm/XBMImageDecoder.cpp:
- * platform/mac/FloatPointMac.mm:
- * platform/mac/FloatRectMac.mm:
- * platform/mac/FloatSizeMac.mm:
- * platform/mac/GraphicsContextMac.mm:
- * platform/mac/ImageMac.mm:
- * platform/mac/ImageSourceMac.cpp: Removed.
- * platform/mac/IntPointMac.mm:
- * platform/mac/IntRectMac.mm:
- * platform/mac/IntSizeMac.mm:
- * platform/mac/PDFDocumentImage.h: Removed.
- * platform/mac/PDFDocumentImage.mm: Removed.
- 2006-08-23 David Hyatt <hyatt@apple.com>
- Remove the ifdef for platform scrollbars vs. engine scrollbars until
- engine scrollbars actually exist.
- * platform/ScrollBar.h:
- (WebCore::ScrollBar::hasPlatformScrollBars):
- 2006-08-23 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- Removed the poorly named next/previousVisiblePosition
- and use next/previousCandidate and next/previousVisuallyDistinctCandidate.
- Removed the unused VisiblePosition::maxOffset()
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next):
- (WebCore::VisiblePosition::previous):
- (WebCore::VisiblePosition::canonicalPosition):
- * editing/VisiblePosition.h:
- 2006-08-23 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Alexey. Landed by rwlbuis.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support (Part II)
- * platform/qt/GraphicsContextQt.cpp: Added.
- (WebCore::toQtCompositionMode):
- (WebCore::toQtLineCap):
- (WebCore::toQtLineJoin):
- (WebCore::TransparencyLayer::TransparencyLayer):
- (WebCore::TransparencyLayer::cleanup):
- (WebCore::TextShadow::TextShadow):
- (WebCore::TextShadow::isNull):
- (WebCore::GraphicsContextPlatformPrivate::p):
- (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
- (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
- (WebCore::GraphicsContext::GraphicsContext):
- (WebCore::GraphicsContext::~GraphicsContext):
- (WebCore::GraphicsContext::platformContext):
- (WebCore::GraphicsContext::savePlatformState):
- (WebCore::GraphicsContext::restorePlatformState):
- (WebCore::GraphicsContext::drawRect):
- (WebCore::adjustLineToPixelBounderies):
- (WebCore::GraphicsContext::drawLine):
- (WebCore::GraphicsContext::drawEllipse):
- (WebCore::GraphicsContext::drawArc):
- (WebCore::GraphicsContext::drawConvexPolygon):
- (WebCore::GraphicsContext::fillRect):
- (WebCore::GraphicsContext::addClip):
- (WebCore::GraphicsContext::drawFocusRing):
- (WebCore::GraphicsContext::setFocusRingClip):
- (WebCore::GraphicsContext::clearFocusRingClip):
- (WebCore::GraphicsContext::drawLineForText):
- (WebCore::GraphicsContext::drawLineForMisspelling):
- (WebCore::GraphicsContext::roundToDevicePixels):
- (WebCore::GraphicsContext::setShadow):
- (WebCore::GraphicsContext::clearShadow):
- (WebCore::GraphicsContext::beginTransparencyLayer):
- (WebCore::GraphicsContext::endTransparencyLayer):
- (WebCore::GraphicsContext::clearRect):
- (WebCore::GraphicsContext::strokeRect):
- (WebCore::GraphicsContext::setLineWidth):
- (WebCore::GraphicsContext::setLineCap):
- (WebCore::GraphicsContext::setLineJoin):
- (WebCore::GraphicsContext::setMiterLimit):
- (WebCore::GraphicsContext::setAlpha):
- (WebCore::GraphicsContext::setCompositeOperation):
- (WebCore::GraphicsContext::clip):
- (WebCore::GraphicsContext::translate):
- (WebCore::GraphicsContext::rotate):
- (WebCore::GraphicsContext::scale):
- (WebCore::GraphicsContext::addInnerRoundedRectClip):
- (WebCore::GraphicsContext::addRoundedRectClip):
- (WebCore::GraphicsContext::createRenderingDeviceContext):
- * platform/qt/ImageQt.cpp: Added.
- (WebCore::FrameData::clear):
- (WebCore::Image::initNativeData):
- (WebCore::Image::destroyNativeData):
- (WebCore::Image::invalidateNativeData):
- (WebCore::Image::loadResource):
- (WebCore::Image::supportsType):
- (WebCore::Image::draw):
- (WebCore::Image::drawTiled):
- (WebCore::Image::checkForSolidColor):
- * platform/qt/ImageSourceQt.cpp: Added.
- (WebCore::createDecoder):
- (WebCore::ImageSource::ImageSource):
- (WebCore::ImageSource::~ImageSource):
- (WebCore::ImageSource::initialized):
- (WebCore::ImageSource::setData):
- (WebCore::ImageSource::isSizeAvailable):
- (WebCore::ImageSource::size):
- (WebCore::ImageSource::repetitionCount):
- (WebCore::ImageSource::frameCount):
- (WebCore::ImageSource::createFrameAtIndex):
- (WebCore::ImageSource::frameDurationAtIndex):
- (WebCore::ImageSource::frameHasAlphaAtIndex):
- 2006-08-23 Brady Eidson <beidson@apple.com>
- Reviewed by Adele
- Moved default URL icon from WebKit to WebCore
- * Resources/urlIcon.tiff: Added.
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconDataCache.cpp:
- (WebCore::IconDataCache::loadImageFromResource):
- * loader/icon/IconDataCache.h:
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::defaultIcon):
- * loader/icon/IconDatabase.h:
- 2006-08-23 Adam Roben <aroben@apple.com>
- Reviewed by Darin, Adele.
- Some popup refactoring/cleanup.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::defaultEventHandler):
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::RenderMenuList):
- (WebCore::RenderMenuList::~RenderMenuList):
- (WebCore::RenderMenuList::showPopup):
- (WebCore::RenderMenuList::hidePopup):
- * rendering/RenderMenuList.h:
- (WebCore::RenderMenuList::popup):
- (WebCore::RenderMenuList::popupIsVisible):
- * rendering/RenderPopupMenu.h:
- * rendering/RenderPopupMenuMac.h:
- (WebCore::RenderPopupMenuMac::hidePopup):
- 2006-08-23 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Anders. Landed by rwlbuis.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/ResourceLoaderCurl.cpp: Added.
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::receivedResponse):
- * platform/qt/ResourceLoaderManager.cpp: Added.
- (WebCore::ResourceLoaderManager::ResourceLoaderManager):
- (WebCore::ResourceLoaderManager::get):
- (WebCore::ResourceLoaderManager::useSimpleTransfer):
- (WebCore::writeCallback):
- (WebCore::headerCallback):
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- (WebCore::ResourceLoaderManager::remove):
- (WebCore::ResourceLoaderManager::add):
- (WebCore::ResourceLoaderManager::cancel):
- * platform/qt/ResourceLoaderManager.h: Added.
- * platform/qt/StringQt.cpp: Added.
- (WebCore::String::String):
- (WebCore::String::operator QString):
- (WebCore::DeprecatedString::operator QString):
- 2006-08-23 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Added escapeSQLString() - a helper to escape strings to be used in textual SQL queries
- * WebCore.xcodeproj/project.pbxproj: Reordered some files
- * loader/icon/IconDataCache.cpp: Use the new escapeSQLString()
- (WebCore::IconDataCache::writeToDatabase):
- * loader/icon/IconDatabase.cpp: Use the new escapeSQLString() throughout
- (WebCore::IconDatabase::retainIconURL):
- (WebCore::IconDatabase::releaseIconURL):
- (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
- (WebCore::IconDatabase::establishIconIDForIconURL):
- (WebCore::imageDataForIconURLQuery):
- (WebCore::timeStampForIconURLQuery):
- (WebCore::iconURLForPageURLQuery):
- (WebCore::forgetPageURLQuery):
- (WebCore::setIconIDForPageURLQuery):
- (WebCore::getIconIDForIconURLQuery):
- (WebCore::addIconForIconURLQuery):
- (WebCore::hasIconForIconURLQuery):
- * loader/icon/SQLDatabase.h:
- (WebCore::escapeSQLString): Added
- 2006-08-22 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Brady.
- - assorted style cleanup of icon loader code:
-
- - wrapped all implementation files in namespace WebCore {} instead of "using namespace WebCore;" at top
- - split headers to be one per class, to match impl files
- - made files that are purely local in IconDatabase.cpp static
- - make each impl file include config.h as first header (and no config.h includes in other headers)
- - avoid multiple copies of Vector<unsigned char> for image data
- * WebCore.xcodeproj/project.pbxproj:
- * loader/icon/IconDataCache.cpp:
- * loader/icon/IconDataCache.h: Added.
- (WebCore::):
- (WebCore::IconDataCache::getTimestamp):
- (WebCore::IconDataCache::setTimestamp):
- (WebCore::IconDataCache::getIconURL):
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::imageDataForIconURL):
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::pageURLTableIsEmptyQuery):
- (WebCore::imageDataForIconURLQuery):
- (WebCore::timeStampForIconURLQuery):
- (WebCore::iconURLForPageURLQuery):
- (WebCore::forgetPageURLQuery):
- (WebCore::setIconIDForPageURLQuery):
- (WebCore::getIconIDForIconURLQuery):
- (WebCore::addIconForIconURLQuery):
- (WebCore::hasIconForIconURLQuery):
- * loader/icon/IconDatabase.h:
- * loader/icon/SQLDatabase.cpp:
- * loader/icon/SQLDatabase.h:
- * loader/icon/SQLStatement.cpp:
- (WebCore::SQLStatement::getColumnBlobAsVector):
- * loader/icon/SQLStatement.h: Added.
- (WebCore::SQLStatement::isPrepared):
- (WebCore::SQLStatement::prepareAndStep):
- (WebCore::SQLStatement::lastError):
- (WebCore::SQLStatement::lastErrorMsg):
- * loader/icon/SQLTransaction.cpp:
- * loader/icon/SQLTransaction.h: Added.
- 2006-08-22 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- The role of the SiteIcon is now the original intention - to be a cache of data relating to an Icon
- As such, I'm renaming it to IconDataCache.
- Also, the IconDatabase has to manually set the image data on the IconDataCache and also sets the
- TimeStamp when an icon is created or the data is changed.
- IconDataCache now has a method to write itself *to* a given database, instead of read itself from one.
- IconDatabase schema changes to have the timestamp set manually instead of via a trigger.
- The overall purpose of this change is to cache the timestamp, killing off a very common SQL query.
- * WebCore.xcodeproj/project.pbxproj: Renamed a file
- * loader/icon/IconDataCache.cpp: Added.
- (IconDataCache::IconDataCache):
- (IconDataCache::getImage): Now either returns the stored image, or 0 - no attempt to grab data
- (IconDataCache::manuallySetImageData): Delete the old image and create the new one
- (IconDataCache::writeToDatabase): Write the current iconURL, data, and timestamp to the given DB
- (IconDataCache::imageDataStatus): Determine if an IconDataCache is new without data versus actually having null data
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::createDatabaseTables): Changed DB schema to version 5 (hopefully the final version)
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::IconDatabase::isIconExpiredForIconURL): Uses the timestamp in the IconDataCache object instead of always querying
- (WebCore::IconDatabase::getOrCreateIconDataCache): Added, to handle creation of new IconDataCache when appropriate
- (WebCore::IconDatabase::setIconDataForIconURL): Puts data in SiteIcon then marks it for a future write
- (WebCore::IconDatabase::syncDatabase): Now syncs SiteIconsPendingUpdate
- * loader/icon/IconDatabase.h:
- (WebCore::IconDataCache::getTimestamp):
- (WebCore::IconDataCache::setTimestamp):
- * loader/icon/SiteIcon.cpp: Removed.
- 2006-08-22 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <http://bugs.webkit.org/show_bug.cgi?id=10449>
- REGRESSION(r15918): drag-into-marker.html failing
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): Don't avoid nesting
- in a list item.
- 2006-08-22 Brady Eidson <beidson@apple.com>
- Reviewed by Kevin
- Added a check in getTIFFRepresentation to not proceed if the frame count is zero
- This is an error condition that was handled gracefully before - in certain circumstances
- the call to CGImageDestinationCreateWithData will spam the Console if it is passed null/empty data
- or invalid data. This small change bails out before that call if that call will definitely fail
- * platform/mac/ImageMac.mm:
- (WebCore::Image::getTIFFRepresentation):
- 2006-08-22 David Harrison <harrison@apple.com>
- Backed out my last change (r15966) because it broke lots of layout tests.
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::advance):
- 2006-08-22 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - added some SPI indirections to support the following in WebKit/Loader:
- - pull more WebDataSource code into WebFrameLoader
- - make WebMainResourceLoader not depend on WebKit or on SPI
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- 2006-08-22 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
- <rdar://problem/4052343&4052343&4426622> Mail hung on paste text
-
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::isInterchangeNewlineNode):
- (WebCore::isInterchangeConvertedSpaceSpan):
- (WebCore::ReplacementFragment::ReplacementFragment):
- (WebCore::ReplaceSelectionCommand::removeRedundantStyles): Compute the redundant inheritable styles and
- remove them and remove style nodes and style spans which were only contributing redundant styles.
- (WebCore::ReplaceSelectionCommand::doApply):
- * editing/ReplaceSelectionCommand.h:
- 2006-08-22 David Harrison <harrison@apple.com>
- Reviewed by Darin.
- <rdar://problem/4077676> Inline hole line adheres to the Japanese characters in inline hole
- This happens because the underline is always 2 pixels thick, and placed 3 pixels above the bottom of the text box.
- Test case added:
- * manual-tests/inline-input-marking.html: Added.
- Check that underlining of the inline input hole does not obscure the glyphs.
-
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintMarkedTextUnderline):
- Position underline at bottom of text box.
- Height of underline is reduced to 1 px when font's descent is less than or equal to 2 px.
- 2006-08-22 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10402
- REPRO: SVG crashes inside gradient code
- Make sure we do not try to update the canvas resource/gradient paintserver when it is not yet built.
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::notifyAttributeChange):
- (SVGGradientElement::resourceNotification):
- 2006-08-22 David Harrison <harrison@apple.com>
- Reviewed by John.
- <rdar://problem/4523606> Represent heading elements in AXAttributedStringForTextMarkerRange
- * bridge/mac/WebCoreAXObject.mm:
- (headingLevel):
- (-[WebCoreAXObject headingLevel]):
- (-[WebCoreAXObject isHeading]):
- New. Heading level is per the tag (h1 == 1, h2 == 2, etc.)
-
- (-[WebCoreAXObject role]):
- (-[WebCoreAXObject roleDescription]):
- Add role and roleDescription for headings.
-
- (-[WebCoreAXObject value]):
- Value is the headingLevel.
-
- (AXAttributeStringSetHeadingLevel):
- (AXAttributedStringAppendText):
- Put text's heading level (if applicable) in the attributes.
-
- 2006-08-22 David Harrison <harrison@apple.com>
- Reviewed by John.
- <rdar://problem/4522205> Represent controls in AXAttributedStringForTextMarkerRange
- Treat controls as replaced elements, so that AXAttributedStringForTextMarkerRange will, too.
-
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::advance):
- Include controls.
- 2006-08-22 David Harrison <harrison@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4407336> Some non-text elements return AXTextMarkerRangeForUIElement with equal start and end marker
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject textMarkerRange]):
- Use 0 and maxDeepOffset(), instead of caretMinOffset() and caretMaxRenderedOffset().
- Check for VisiblePositions being equal. If so, adjust end one to its next().
- That happens with, e.g., buttons.
- 2006-08-22 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10491
- KCanvasMatrix removal
- Remove KCanvasMatrix from project, using AffineTransform instead.
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/KCanvasMatrix.cpp: Removed.
- * kcanvas/KCanvasMatrix.h: Removed.
- * kcanvas/KCanvasResources.cpp:
- (WebCore::KCanvasMarker::draw):
- * kcanvas/KCanvasResources.h:
- * kcanvas/RenderForeignObject.cpp:
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::viewportTransform):
- (WebCore::RenderSVGContainer::getAspectRatio):
- * kcanvas/RenderSVGContainer.h:
- * kcanvas/RenderSVGText.cpp:
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- (WebCore::KRenderingPaintServerGradient::gradientTransform):
- (WebCore::KRenderingPaintServerGradient::setGradientTransform):
- (WebCore::KRenderingPaintServerGradient::externalRepresentation):
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- (WebCore::KRenderingPaintServerPattern::patternTransform):
- (WebCore::KRenderingPaintServerPattern::setPatternTransform):
- (WebCore::KRenderingPaintServerPattern::externalRepresentation):
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- (WebCore::KRenderingDeviceContextQuartz::concatCTM):
- (WebCore::KRenderingDeviceContextQuartz::ctm):
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- (WebCore::KRenderingPaintServerPatternQuartz::setup):
- * kcanvas/device/quartz/QuartzSupport.mm:
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- (SVGLinearGradientElement::buildGradient):
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- (WebCore::SVGRadialGradientElement::buildGradient):
- 2006-08-22 Rob Buis <buis@kde.org>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10405
- REPRO: SVG Maze crashes in RenderPath code
- Do not render a path when it is empty so maze15.svg does not crash anymore.
- Also get rid of a runtime warning issued by CGContextGetPathBoundingBox.
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::paint):
- * kcanvas/device/quartz/KCanvasPathQuartz.mm:
- (WebCore::KCanvasPathQuartz::strokeBoundingBox):
- 2006-08-21 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- <rdar://4690949> - New IconDB: Need to prune unretained icons on startup
- Added a flag to track whether or not the initial pruning has taken place on startup
- If that flag is not set, IconURL retain counts will be tracked in a temporary db table
- in addition to the in-memory hash. Then when the timer fires after initial retains
- are complete, we prune those icons not in the retain table, prune dangling PageURL
- references, delete the temporary table, and set the flag - and carry on as normal
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase): initialize the flag
- (WebCore::IconDatabase::open): changed the schema of the temporary table
- (WebCore::IconDatabase::retainIconURL): store the icon retain to the temp table if starting up
- (WebCore::IconDatabase::releaseIconURL): ditto
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): remove all icons *not* in the retain table, then
- wipe all the PageURLs who no longer point to a valid IconURL
- * loader/icon/IconDatabase.h:
- 2006-08-21 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=10419
- XSLTProcessor transformToFragment fails because of an XML declaration
- Test: fast/xsl/transformToFragment-XML-declaration.html
- * xml/XSLTProcessor.cpp:
- (WebCore::XSLTProcessor::transformToString): Always inhibit XML declaration printout.
- 2006-08-21 David Harrison <harrison@apple.com>
- Reviewed by Justin.
- <rdar://problem/4471481> Represent misspellings in AXAttributedStringForTextMarkerRange
- Added support for the NSAccessibilityMisspelledTextAttribute.
-
- Test cases added: None. Manual AX testing is way too awkward, and automated testing
- is not possible. See following bug...
- <rdar://problem/4256882> Need automated testing support for accessibility APIs
- * bridge/mac/WebCoreAXObject.mm:
- Lots of trivial formatting in many methods.
-
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- Fixed AXStartTextMarker and AXEndTextMarker to use startOfDocument and endOfDocument, instead of
- of positionForCoordinates. I had seen erroneous endOfDocument results while testing the spelling
- attribute.
- (WebCore::AXAttributeStringSetSpelling):
- New. Adds the NSAccessibilityMisspelledTextAttribute for misspelled words.
- (-[WebCoreAXObject AXAttributedStringAppendText:]):
- Added call to AXAttributeStringSetSpelling.
-
- * editing/visible_units.cpp:
- (WebCore::startOfDocument):
- (WebCore::endOfDocument):
- Added for AXStartTextMarker/AXEndTextMarker fix, these forms of the familiar functions take a Node*,
- so a previously existing VisiblePosition is not required.
-
- * editing/visible_units.h:
- Declare new forms of startOfDocument and endOfDocument.
- 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/TemporaryLinkStubs.cpp: Added.
- (JavaAppletWidget::JavaAppletWidget):
- (Font::selectionRectForComplexText):
- (Font::offsetForPositionForComplexText):
- (WebCore::refreshPlugins):
- (WebCore::focusRingColor):
- (Image::drawTiled):
- (WebCore::TextField::selectAll):
- (WebCore::TextField::addSearchResult):
- (WebCore::TextField::selectionStart):
- (WebCore::TextField::hasSelectedText):
- (WebCore::TextField::selectedText):
- (WebCore::TextField::setAutoSaveName):
- (WebCore::TextField::checksDescendantsForFocus):
- (WebCore::TextField::setSelection):
- (WebCore::TextField::setMaxResults):
- (WebCore::TextField::edited):
- (WebCore::TextField::focusPolicy):
- (WebCore::TextField::TextField):
- (WebCore::TextField::~TextField):
- (WebCore::TextField::setFont):
- (WebCore::TextField::setAlignment):
- (WebCore::TextField::setWritingDirection):
- (WebCore::TextField::maxLength):
- (WebCore::TextField::setMaxLength):
- (WebCore::TextField::text):
- (WebCore::TextField::setText):
- (WebCore::TextField::cursorPosition):
- (WebCore::TextField::setCursorPosition):
- (WebCore::TextField::setEdited):
- (WebCore::TextField::setReadOnly):
- (WebCore::TextField::setPlaceholderString):
- (WebCore::TextField::setColors):
- (WebCore::TextField::sizeForCharacterWidth):
- (WebCore::TextField::baselinePosition):
- (WebCore::TextField::setLiveSearch):
- (WebCore::Slider::Slider):
- (WebCore::Slider::sizeHint):
- (WebCore::Slider::~Slider):
- (WebCore::Slider::setValue):
- (WebCore::Slider::setMaxValue):
- (WebCore::Slider::setMinValue):
- (WebCore::Slider::setFont):
- (WebCore::Slider::value):
- (WebCore::Slider::focusPolicy):
- (WebCore::ScrollBar::ScrollBar):
- (WebCore::ScrollBar::setSteps):
- (WebCore::ScrollBar::scroll):
- (WebCore::ScrollBar::setValue):
- (WebCore::ScrollBar::setKnobProportion):
- (WebCore::PlatformScrollBar::PlatformScrollBar):
- (WebCore::PlatformScrollBar::~PlatformScrollBar):
- (WebCore::PlatformScrollBar::width):
- (WebCore::PlatformScrollBar::height):
- (WebCore::PlatformScrollBar::setEnabled):
- (WebCore::PlatformScrollBar::paint):
- (WebCore::PlatformScrollBar::setScrollBarValue):
- (WebCore::PlatformScrollBar::setKnobProportion):
- (WebCore::PlatformScrollBar::setRect):
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- (WebCore::CheckCacheObjectStatus):
- (WebCore::CheckIfReloading):
- (WebCore::ServeSynchronousRequest):
- (WebCore::historyContains):
- (WebCore::submitButtonDefaultLabel):
- (WebCore::inputElementAltText):
- (WebCore::resetButtonDefaultLabel):
- (WebCore::defaultLanguage):
- (WebCore::findNextSentenceFromIndex):
- (WebCore::findSentenceBoundary):
- (WebCore::findNextWordFromIndex):
- (WebCore::findWordBoundary):
- (Frame::setNeedsReapplyStyles):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- (WebCore::searchableIndexIntroduction):
- (WebCore::setFocusRingColorChangeFunction):
- (FrameView::updateBorder):
- (loadResourceIntoArray):
- (PlugInInfoStore::createPluginInfoForPluginAtIndex):
- (PlugInInfoStore::pluginCount):
- (WebCore::PlugInInfoStore::supportsMIMEType):
- (FileButton::FileButton):
- (FileButton::click):
- (FileButton::sizeForCharacterWidth):
- (FileButton::focusPolicy):
- (FileButton::frameGeometry):
- (FileButton::setFilename):
- (FileButton::baselinePosition):
- (FileButton::setFrameGeometry):
- (FileButton::setDisabled):
- (WebCore::supportedKeySizes):
- (WebCore::signedPublicKeyAndChallengeString):
- 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/CursorQt.cpp: Added.
- (WebCore::Cursor::Cursor):
- (WebCore::Cursor::~Cursor):
- (WebCore::Cursor::operator=):
- (WebCore::Cursors::Cursors::self):
- (WebCore::moveCursor):
- (WebCore::crossCursor):
- (WebCore::handCursor):
- (WebCore::iBeamCursor):
- (WebCore::waitCursor):
- (WebCore::helpCursor):
- (WebCore::eastResizeCursor):
- (WebCore::northResizeCursor):
- (WebCore::northEastResizeCursor):
- (WebCore::northWestResizeCursor):
- (WebCore::southResizeCursor):
- (WebCore::southEastResizeCursor):
- (WebCore::southWestResizeCursor):
- (WebCore::westResizeCursor):
- (WebCore::northSouthResizeCursor):
- (WebCore::eastWestResizeCursor):
- (WebCore::northEastSouthWestResizeCursor):
- (WebCore::northWestSouthEastResizeCursor):
- (WebCore::columnResizeCursor):
- (WebCore::rowResizeCursor):
- * platform/qt/RenderThemeQt.cpp: Added.
- (WebCore::RenderThemeQt::RenderThemeQt):
- (WebCore::RenderThemeQt::supportsHover):
- (WebCore::RenderThemeQt::paintCheckbox):
- (WebCore::RenderThemeQt::paintRadio):
- (WebCore::theme):
- (WebCore::RenderThemeQt::isControlStyled):
- (WebCore::RenderThemeQt::controlSupportsTints):
- (WebCore::RenderThemeQt::systemFont):
- (WebCore::RenderThemeQt::createPopupMenu):
- (WebCore::RenderThemeQt::addIntrinsicMargins):
- (WebCore::RenderThemeQt::stylePainterAndWidgetForPaintInfo):
- (WebCore::RenderThemeQt::setCheckboxSize):
- (WebCore::RenderThemeQt::setRadioSize):
- (WebCore::RenderThemeQt::supportsFocus):
- (WebCore::RenderThemeQt::applyTheme):
- (WebCore::RenderThemeQt::adjustButtonStyle):
- (WebCore::RenderThemeQt::paintButton):
- (WebCore::RenderThemeQt::adjustTextFieldStyle):
- (WebCore::RenderThemeQt::paintTextField):
- 2006-08-21 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/SharedTimerQt.cpp: Added.
- (WebCore:setSharedTimerFiredFunction):
- (WebCore::setSharedTimerFireTime):
- (WebCore::stopSharedTimer):
- * platform/qt/SharedTimerQt.h: Added.
- (WebCore::SharedTimerQt::SharedTimerQt):
- (WebCore::SharedTimerQt::~SharedTimerQt):
- (WebCore::SharedTimerQt::inst):
- (WebCore::SharedTimerQt::fire):
- * platform/qt/SystemTimeQt.cpp: Added.
- (WebCore::currentTime):
- 2006-08-21 Brady Eidson <beidson@apple.com>
- Reviewed by John
- -Defers writing to the database via a timer and handles starting the timer
- intelligently
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open): Don't start the update timer by default
- (WebCore::IconDatabase::close): Call syncDatabase()
- (WebCore::IconDatabase::setPrivateBrowsingEnabled): Call syncDatabase()
- (WebCore::IconDatabase::setIconURLForPageURL): Setup the cached url, but defer the DB call
- (WebCore::IconDatabase::setIconURLForPageURLInDatabase): Actually commit the url to the DB
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup):
- (WebCore::IconDatabase::updateDatabase): The updateTimer calls this, which just calls syncDatabase()
- (WebCore::IconDatabase::syncDatabase): Add and remove pending pageURLs and iconURLs, and stop the updateTimer
- * loader/icon/IconDatabase.h:
- 2006-08-21 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Eric.
- - http://bugs.webkit.org/show_bug.cgi?id=10429
- XSLTProcessor.transformToFragment crashes if the owner document is empty
- Test: fast/js/xslt-fragment-in-empty-doc.html
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::XMLTokenizer): Don't iterate over the element stack if it's empty.
- 2006-08-21 Brady Eidson <beidson@apple.com>
- Reviewed by Anders
- -Added timer-based, deferred deletion of database records - PageURLs and Icons handled seperately
- In the near future, we'll also have timer-based deferred *addition* of database records
- -Keep retain/release counts in a hash instead of a DB table
- -Keep only one hash record for the SiteIcons
- -Renamed some methods for clarity
- * bridge/mac/WebCoreIconDatabaseBridge.h: Renamed method for clarity
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
- (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]): Ditto
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open): Added new timer setup
- (WebCore::IconDatabase::iconForPageURL): Only work with one hash of the SiteIcons
- (WebCore::IconDatabase::retainIconForPageURL): Keep count in a hash
- (WebCore::IconDatabase::releaseIconForPageURL): Keep count in a hash, use deferred deletion
- (WebCore::IconDatabase::retainIconURL): Added
- (WebCore::IconDatabase::releaseIconURL): Added
- (WebCore::IconDatabase::forgetPageURL): Added
- (WebCore::IconDatabase::isIconURLRetained): New and improved simplicity
- (WebCore::IconDatabase::setIconDataForIconURL): Cleanup
- (WebCore::IconDatabase::setIconURLForPageURL):
- (WebCore::IconDatabase::pruneUnretainedIconsOnStartup): Renamed
- (WebCore::IconDatabase::pruneIconsPendingDeletion): Added
- (WebCore::IconDatabase::hasEntryForIconURL): Renamed for clarity
- * loader/icon/IconDatabase.h: Added multiple stuffs
- 2006-08-21 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej's rubberstamp
- Removed stale file references from the Xcode.proj
- * WebCore.xcodeproj/project.pbxproj:
- 2006-08-20 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Maciej. Landed by rwlbuis.
- Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10463
- WebKit should have Qt platform support
- Removing HelperQt.h usage by creating appropriate operators
- constructor in some of the platform classes, as suggested by Darin.
- * CMakeLists.txt:
- * platform/DeprecatedString.h:
- * platform/Font.h:
- * platform/PlatformString.h:
- * platform/qt/ComboBoxQt.cpp:
- (WebCore::PlatformComboBox::appendItem):
- (WebCore::PlatformComboBox::appendGroupLabel):
- (WebCore::PlatformComboBox::setFont):
- * platform/qt/LineEditQt.cpp:
- (WebCore::PlatformLineEdit::setFont):
- (WebCore::PlatformLineEdit::setText):
- (WebCore::PlatformLineEdit::text):
- (WebCore::PlatformLineEdit::selectedText):
- * platform/qt/ListBoxQt.cpp:
- (WebCore::ListBox::setFont):
- (WebCore::ListBox::appendItem):
- * platform/qt/PlatformKeyboardEventQt.cpp:
- (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
- * platform/qt/ScrollViewQt.cpp:
- * platform/qt/StringQt.cpp: Added.
- (WebCore::String::String):
- (WebCore::String::operator QString):
- (WebCore::DeprecatedString::operator QString):
- * platform/qt/TextEditQt.cpp:
- * platform/qt/WidgetQt.cpp:
- (WebCore::Widget::setFont):
- 2006-08-18 Steve Falkenburg <sfalken@apple.com>
- Rubber stamped by adele.
-
- Fix call to WebFormDelegate's textFieldDidBeginEditing.
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::subtreeHasChanged):
- 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- Next chunk of the implementation for:
- http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/KeyboardCodes.h: Added.
- * platform/qt/PlatformKeyboardEventQt.cpp: Added.
- (WebCore::keyIdentifierForQtKeyCode):
- (WebCore::windowsKeyCodeForKeyEvent):
- (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
- * platform/qt/PlatformMouseEventQt.cpp: Added.
- (WebCore::):
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- Next chunk of the implementation for:
- http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/AffineTransformQt.cpp: Added.
- (WebCore::AffineTransform::AffineTransform):
- (WebCore::AffineTransform::setMatrix):
- (WebCore::AffineTransform::map):
- (WebCore::AffineTransform::mapRect):
- (WebCore::AffineTransform::isIdentity):
- (WebCore::AffineTransform::m11):
- (WebCore::AffineTransform::m12):
- (WebCore::AffineTransform::m21):
- (WebCore::AffineTransform::m22):
- (WebCore::AffineTransform::dx):
- (WebCore::AffineTransform::dy):
- (WebCore::AffineTransform::reset):
- (WebCore::AffineTransform::scale):
- (WebCore::AffineTransform::rotate):
- (WebCore::AffineTransform::translate):
- (WebCore::AffineTransform::shear):
- (WebCore::AffineTransform::det):
- (WebCore::AffineTransform::invert):
- (WebCore::AffineTransform::operator QMatrix):
- (WebCore::AffineTransform::operator==):
- (WebCore::AffineTransform::operator*=):
- (WebCore::AffineTransform::operator*):
- * platform/qt/BrowserExtensionQt.cpp: Added.
- (WebCore::BrowserExtensionQt::BrowserExtensionQt):
- (WebCore::BrowserExtensionQt::canRunModal):
- (WebCore::BrowserExtensionQt::createNewWindow):
- (WebCore::BrowserExtensionQt::canRunModalNow):
- (WebCore::BrowserExtensionQt::runModal):
- (WebCore::BrowserExtensionQt::goBackOrForward):
- (WebCore::BrowserExtensionQt::historyURL):
- (WebCore::BrowserExtensionQt::setTypedIconURL):
- (WebCore::BrowserExtensionQt::setIconURL):
- (WebCore::BrowserExtensionQt::getHistoryLength):
- * platform/qt/BrowserExtensionQt.h: Added.
- * platform/qt/CookieJarQt.cpp: Added.
- (WebCore::setCookies):
- (WebCore::cookies):
- (WebCore::cookiesEnabled):
- * platform/qt/PageQt.cpp: Added.
- (WebCore::rootWindowForFrame):
- (WebCore::Page::windowRect):
- (WebCore::Page::setWindowRect):
- * platform/qt/PathQt.cpp: Added.
- (WebCore::Path::Path):
- (WebCore::Path::~Path):
- (WebCore::Path::operator=):
- (WebCore::Path::contains):
- (WebCore::Path::translate):
- (WebCore::Path::boundingRect):
- (WebCore::Path::moveTo):
- (WebCore::Path::addLineTo):
- (WebCore::Path::addQuadCurveTo):
- (WebCore::Path::addBezierCurveTo):
- (WebCore::Path::addArcTo):
- (WebCore::Path::closeSubpath):
- (WebCore::Path::addArc):
- (WebCore::Path::addRect):
- (WebCore::Path::addEllipse):
- (WebCore::Path::clear):
- * platform/qt/ScreenQt.cpp: Added.
- (WebCore::screenRect):
- (WebCore::screenDepth):
- (WebCore::usableScreenRect):
- 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- First chunk of the implementation for:
- http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/ComboBoxQt.cpp: Added.
- (WebCore::PlatformComboBox::PlatformComboBox):
- (WebCore::PlatformComboBox::~PlatformComboBox):
- (WebCore::PlatformComboBox::setParentWidget):
- (WebCore::PlatformComboBox::clear):
- (WebCore::PlatformComboBox::appendItem):
- (WebCore::PlatformComboBox::appendGroupLabel):
- (WebCore::PlatformComboBox::appendSeparator):
- (WebCore::PlatformComboBox::setCurrentItem):
- (WebCore::PlatformComboBox::sizeHint):
- (WebCore::PlatformComboBox::frameGeometry):
- (WebCore::PlatformComboBox::setFrameGeometry):
- (WebCore::PlatformComboBox::baselinePosition):
- (WebCore::PlatformComboBox::setFont):
- (WebCore::PlatformComboBox::focusPolicy):
- (WebCore::PlatformComboBox::itemSelected):
- (WebCore::PlatformComboBox::setWritingDirection):
- (WebCore::PlatformComboBox::populate):
- (WebCore::PlatformComboBox::populateMenu):
- * platform/qt/LineEditQt.cpp: Added.
- (WebCore::PlatformLineEdit::PlatformLineEdit):
- (WebCore::PlatformLineEdit::~PlatformLineEdit):
- (WebCore::PlatformLineEdit::setParentWidget):
- (WebCore::PlatformLineEdit::setColors):
- (WebCore::PlatformLineEdit::setAlignment):
- (WebCore::PlatformLineEdit::setCursorPosition):
- (WebCore::PlatformLineEdit::cursorPosition):
- (WebCore::PlatformLineEdit::setEdited):
- (WebCore::PlatformLineEdit::edited):
- (WebCore::PlatformLineEdit::setFont):
- (WebCore::PlatformLineEdit::setMaxLength):
- (WebCore::PlatformLineEdit::maxLength):
- (WebCore::PlatformLineEdit::setReadOnly):
- (WebCore::PlatformLineEdit::isReadOnly):
- (WebCore::PlatformLineEdit::setText):
- (WebCore::PlatformLineEdit::text):
- (WebCore::PlatformLineEdit::setWritingDirection):
- (WebCore::PlatformLineEdit::selectAll):
- (WebCore::PlatformLineEdit::hasSelectedText):
- (WebCore::PlatformLineEdit::selectionStart):
- (WebCore::PlatformLineEdit::selectedText):
- (WebCore::PlatformLineEdit::setSelection):
- (WebCore::PlatformLineEdit::sizeForCharacterWidth):
- (WebCore::PlatformLineEdit::baselinePosition):
- (WebCore::PlatformLineEdit::focusPolicy):
- (WebCore::PlatformLineEdit::checksDescendantsForFocus):
- (WebCore::PlatformLineEdit::setLiveSearch):
- (WebCore::PlatformLineEdit::setAutoSaveName):
- (WebCore::PlatformLineEdit::setMaxResults):
- (WebCore::PlatformLineEdit::setPlaceholderString):
- (WebCore::PlatformLineEdit::addSearchResult):
- * platform/qt/ListBoxQt.cpp: Added.
- (WebCore::ListBox::ListBox):
- (WebCore::ListBox::~ListBox):
- (WebCore::ListBox::setParentWidget):
- (WebCore::ListBox::sizeForNumberOfLines):
- (WebCore::ListBox::setSelectionMode):
- (WebCore::ListBox::clear):
- (WebCore::ListBox::doneAppendingItems):
- (WebCore::ListBox::setSelected):
- (WebCore::ListBox::isSelected):
- (WebCore::ListBox::setEnabled):
- (WebCore::ListBox::isEnabled):
- (WebCore::ListBox::setWritingDirection):
- (WebCore::ListBox::focusPolicy):
- (WebCore::ListBox::checksDescendantsForFocus):
- (WebCore::ListBox::clearCachedTextRenderers):
- (WebCore::ListBox::setFont):
- (WebCore::ListBox::appendItem):
- * platform/qt/ScrollViewQt.cpp: Added.
- (WebCore::ScrollView::ScrollView):
- (WebCore::ScrollView::~ScrollView):
- (WebCore::ScrollView::setParentWidget):
- (WebCore::ScrollView::updateContents):
- (WebCore::ScrollView::visibleWidth):
- (WebCore::ScrollView::visibleHeight):
- (WebCore::ScrollView::visibleContentRect):
- (WebCore::ScrollView::setContentsPos):
- (WebCore::ScrollView::resizeContents):
- (WebCore::ScrollView::contentsX):
- (WebCore::ScrollView::contentsY):
- (WebCore::ScrollView::contentsWidth):
- (WebCore::ScrollView::contentsHeight):
- (WebCore::ScrollView::viewportToContents):
- (WebCore::ScrollView::contentsToViewport):
- (WebCore::ScrollView::scrollOffset):
- (WebCore::ScrollView::scrollBy):
- (WebCore::ScrollView::hScrollBarMode):
- (WebCore::ScrollView::vScrollBarMode):
- (WebCore::ScrollView::suppressScrollBars):
- (WebCore::ScrollView::setHScrollBarMode):
- (WebCore::ScrollView::setVScrollBarMode):
- (WebCore::ScrollView::setScrollBarsMode):
- (WebCore::ScrollView::setStaticBackground):
- (WebCore::ScrollView::addChild):
- (WebCore::ScrollView::removeChild):
- (WebCore::ScrollView::scrollPointRecursively):
- (WebCore::ScrollView::inWindow):
- * platform/qt/TextEditQt.cpp: Added.
- (WebCore::PlatformTextEdit::PlatformTextEdit):
- (WebCore::PlatformTextEdit::~PlatformTextEdit):
- (WebCore::PlatformTextEdit::setParentWidget):
- (WebCore::PlatformTextEdit::setColors):
- (WebCore::PlatformTextEdit::setAlignment):
- (WebCore::PlatformTextEdit::setLineHeight):
- (WebCore::PlatformTextEdit::setCursorPosition):
- (WebCore::PlatformTextEdit::getCursorPosition):
- (WebCore::PlatformTextEdit::setFont):
- (WebCore::PlatformTextEdit::setReadOnly):
- (WebCore::PlatformTextEdit::isReadOnly):
- (WebCore::PlatformTextEdit::setDisabled):
- (WebCore::PlatformTextEdit::isDisabled):
- (WebCore::PlatformTextEdit::hasSelectedText):
- (WebCore::PlatformTextEdit::setText):
- (WebCore::PlatformTextEdit::text):
- (WebCore::PlatformTextEdit::textWithHardLineBreaks):
- (WebCore::PlatformTextEdit::focusPolicy):
- (WebCore::PlatformTextEdit::setWordWrap):
- (WebCore::PlatformTextEdit::wordWrap):
- (WebCore::PlatformTextEdit::setScrollBarModes):
- (WebCore::PlatformTextEdit::setWritingDirection):
- (WebCore::PlatformTextEdit::selectionStart):
- (WebCore::PlatformTextEdit::selectionEnd):
- (WebCore::PlatformTextEdit::setSelectionStart):
- (WebCore::PlatformTextEdit::setSelectionEnd):
- (WebCore::PlatformTextEdit::selectAll):
- (WebCore::PlatformTextEdit::setSelectionRange):
- (WebCore::PlatformTextEdit::sizeWithColumnsAndRows):
- (WebCore::PlatformTextEdit::checksDescendantsForFocus):
- * platform/qt/WidgetQt.cpp: Added.
- (WebCore::WidgetPrivate::WidgetPrivate):
- (WebCore::WidgetPrivate::~WidgetPrivate):
- (WebCore::Widget::Widget):
- (WebCore::Widget::~Widget):
- (WebCore::Widget::setClient):
- (WebCore::Widget::client):
- (WebCore::Widget::frameGeometry):
- (WebCore::Widget::hasFocus):
- (WebCore::Widget::setFocus):
- (WebCore::Widget::clearFocus):
- (WebCore::Widget::font):
- (WebCore::Widget::setFont):
- (WebCore::Widget::setCursor):
- (WebCore::Widget::show):
- (WebCore::Widget::hide):
- (WebCore::Widget::setQWidget):
- (WebCore::Widget::qwidget):
- (WebCore::Widget::setParentWidget):
- (WebCore::Widget::parentWidget):
- (WebCore::Widget::setFrameGeometry):
- (WebCore::Widget::mapFromGlobal):
- (WebCore::Widget::scaleFactor):
- (WebCore::Widget::lockDrawingFocus):
- (WebCore::Widget::unlockDrawingFocus):
- (WebCore::Widget::paint):
- (WebCore::Widget::enableFlushDrawing):
- (WebCore::Widget::isEnabled):
- (WebCore::Widget::setIsSelected):
- (WebCore::Widget::disableFlushDrawing):
- (WebCore::Widget::setEnabled):
- (WebCore::Widget::focusPolicy):
- 2006-08-19 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- First chunk of the implementation for:
- http://bugs.webkit.org/show_bug.cgi?id=10467
- WebKit should have Qt platform support
- * platform/qt/ColorQt.cpp: Added.
- (WebCore::Color::Color):
- (WebCore::Color::operator QColor):
- * platform/qt/FloatPointQt.cpp: Added.
- (WebCore::FloatPoint::FloatPoint):
- (WebCore::FloatPoint::operator QPointF):
- * platform/qt/FloatRectQt.cpp: Added.
- (WebCore::FloatRect::FloatRect):
- (WebCore::FloatRect::operator QRectF):
- * platform/qt/IntPointQt.cpp: Added.
- (WebCore::IntPoint::IntPoint):
- (WebCore::IntPoint::operator QPoint):
- * platform/qt/IntRectQt.cpp: Added.
- (WebCore::IntRect::IntRect):
- (WebCore::IntRect::operator QRect):
- * platform/qt/IntSizeQt.cpp: Added.
- (WebCore::IntSize::IntSize):
- (WebCore::IntSize::operator QSize):
- 2006-08-18 Nikolas Zimmermann <zimmermann@kde.org>
-
- Reviewed by Eric. Landed by rwlbuis.
-
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10470
- The Qt platform needs a KCanvas device.
-
- * kcanvas/device/qt/KCanvasClipperQt.cpp: Added.
- (WebCore::KCanvasClipperQt::applyClip):
- * kcanvas/device/qt/KCanvasClipperQt.h: Added.
- (WebCore::KCanvasClipperQt::KCanvasClipperQt):
- * kcanvas/device/qt/KCanvasPathQt.cpp: Added.
- (WebCore::KCanvasPathQt::KCanvasPathQt):
- (WebCore::KCanvasPathQt::~KCanvasPathQt):
- (WebCore::KCanvasPathQt::isEmpty):
- (WebCore::KCanvasPathQt::moveTo):
- (WebCore::KCanvasPathQt::lineTo):
- (WebCore::KCanvasPathQt::curveTo):
- (WebCore::KCanvasPathQt::closeSubpath):
- (WebCore::KCanvasPathQt::boundingBox):
- (WebCore::KCanvasPathQt::strokeBoundingBox):
- (WebCore::KCanvasPathQt::strokeContainsPoint):
- (WebCore::KCanvasPathQt::containsPoint):
- * kcanvas/device/qt/KCanvasPathQt.h: Added.
- (WebCore::KCanvasPathQt::qtPath):
- * kcanvas/device/qt/KRenderingDeviceQt.cpp: Added.
- (WebCore::KRenderingDeviceContextQt::KRenderingDeviceContextQt):
- (WebCore::KRenderingDeviceContextQt::~KRenderingDeviceContextQt):
- (WebCore::KRenderingDeviceContextQt::concatCTM):
- (WebCore::KRenderingDeviceContextQt::ctm):
- (WebCore::KRenderingDeviceContextQt::mapFromVisual):
- (WebCore::KRenderingDeviceContextQt::mapToVisual):
- (WebCore::KRenderingDeviceContextQt::clearPath):
- (WebCore::KRenderingDeviceContextQt::addPath):
- (WebCore::KRenderingDeviceContextQt::createGraphicsContext):
- (WebCore::KRenderingDeviceContextQt::painter):
- (WebCore::KRenderingDeviceContextQt::pathBBox):
- (WebCore::KRenderingDeviceContextQt::setFillRule):
- (WebCore::KRenderingDeviceContextQt::fillPath):
- (WebCore::KRenderingDeviceContextQt::strokePath):
- (WebCore::KRenderingDeviceQt::KRenderingDeviceQt):
- (WebCore::KRenderingDeviceQt::~KRenderingDeviceQt):
- (WebCore::KRenderingDeviceQt::popContext):
- (WebCore::KRenderingDeviceQt::pushContext):
- (WebCore::KRenderingDeviceQt::qtContext):
- (WebCore::KRenderingDeviceQt::contextForImage):
- (WebCore::KRenderingDeviceQt::stringForPath):
- (WebCore::KRenderingDeviceQt::createResource):
- (WebCore::KRenderingDeviceQt::createPaintServer):
- (WebCore::KRenderingDeviceQt::createFilterEffect):
- 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10466
- WebKit should have Qt platform support.
- * platform/Color.h:
- * platform/Cursor.h:
- (WebCore::Cursor::Cursor):
- * platform/FloatPoint.h:
- * platform/FloatRect.h:
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::glyphAt):
- (WebCore::GlyphBuffer::advanceAt):
- (WebCore::GlyphBuffer::add):
- * platform/GraphicsContext.h:
- * platform/ImageSource.h:
- * platform/IntPoint.h:
- * platform/IntRect.h:
- * platform/IntSize.h:
- * platform/ListBox.h:
- * platform/Path.h:
- * platform/PlatformKeyboardEvent.h:
- * platform/PlatformMouseEvent.h:
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderClient.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/ScrollView.h:
- * platform/Widget.h:
- 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10465
- General WebKit Linux build fixes.
- * kcanvas/KCanvasFilters.cpp:
- (WebCore::operator<<):
- * kcanvas/RenderSVGImage.cpp:
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- * page/Frame.h:
- * rendering/RenderStyle.h:
- (WebCore::RenderStyle::deleteBindingURIs):
- * xml/DOMParser.cpp:
- 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Eric. Landed by rwlbuis.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10464
- Offer a cmake build system for Qt platform.
- * CMakeLists.txt: Added.
- 2006-08-17 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4671069> REGRESSION: Popup buttons in web pages aren't exposed as AXPopupButtons
- Accessorized RenderMenuList objects.
-
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject mouseButtonListener]):
- Trivial formatting.
-
- (-[WebCoreAXObject actionElement]):
- Return the HTMLSelectElement.
-
- (-[WebCoreAXObject firstChild]):
- (-[WebCoreAXObject lastChild]):
- (-[WebCoreAXObject previousSibling]):
- (-[WebCoreAXObject nextSibling]):
- (-[WebCoreAXObject parentObject]):
- (-[WebCoreAXObject parentObjectUnignored]):
- (-[WebCoreAXObject isAttachment]):
- (-[WebCoreAXObject attachmentView]):
- Trivial formatting.
- (-[WebCoreAXObject role]):
- Return NSAccessibilityPopUpButtonRole.
- (-[WebCoreAXObject subrole]):
- Trivial formatting.
-
- (-[WebCoreAXObject roleDescription]):
- Return NSAccessibilityPopUpButtonRole.
-
- (-[WebCoreAXObject textUnderElement]):
- Trivial formatting.
- (-[WebCoreAXObject value]):
- Return the RenderMenuList::text().
-
- (-[WebCoreAXObject position]):
- Trivial formatting.
- (-[WebCoreAXObject accessibilityIsIgnored]):
- - Ignore popup menu items because AppKit does.
- - Remove redundant check for buttonTag (earlier isControl() check suffices).
-
- (-[WebCoreAXObject accessibilityAttributeNames]):
- (-[WebCoreAXObject accessibilityActionNames]):
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- Trivial formatting.
-
- (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
- Removed old debugging code that is no longer needed.
- Trivial formatting.
-
- (-[WebCoreAXObject doAXSentenceTextMarkerRangeForTextMarker:]):
- (-[WebCoreAXObject doAXParagraphTextMarkerRangeForTextMarker:]):
- (-[WebCoreAXObject removeAXObjectID]):
- Trivial formatting.
-
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::accessKeyAction):
- Call click() instead of focus().
-
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::text):
- Added for easy access to popup's current text.
-
- * rendering/RenderMenuList.h:
- (WebCore::RenderMenuList::isMenuList):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::isMenuList):
- Added so popups can be identified.
- 2006-08-17 David Harrison <harrison@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4527201> REGRESSION: AXTextMarkerRangeForUnorderedTextMarkers returns out of order range
- Test cases added: None. Manual AX testing is way too awkward, and automated testing
- is not possible. See following bug...
- <rdar://problem/4256882> Need automated testing support for accessibility APIs
- * bridge/mac/AXObjectCacheMac.mm:
- (WebCore::AXObjectCache::visiblePositionForTextMarker):
- Validate the marker by comparing the node and offset to those of the resulting VisiblePosition.
- 2006-08-17 Nikolas Zimmermann <zimmermann@kde.org>
- Reviewed by Anders.
- Fixes: http://bugs.webkit.org/show_bug.cgi?id=10447
- AffineTransform should be multi-platform compatible
- * platform/AffineTransform.h:
- * platform/cg/AffineTransformCG.cpp:
- (WebCore::AffineTransform::m11):
- (WebCore::AffineTransform::m12):
- (WebCore::AffineTransform::m21):
- (WebCore::AffineTransform::m22):
- (WebCore::AffineTransform::dx):
- (WebCore::AffineTransform::dy):
- 2006-08-16 David Hyatt <hyatt@apple.com>
- Fix an issue with CSS2 system fonts where they did not respect text
- zoom. This was most visible with the new control fonts used for form
- controls (they stopped swapping between small/mini/regular as you zoomed).
- Reviewed by beth
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- 2006-08-15 Justin Garcia <justin.garcia@apple.com>
- Reviewed by thatcher
-
- First part of fix for:
- <rdar://problem/4384589>
- Mail hung on paste text
-
- Fixes:
- <http://bugs.webkit.org/show_bug.cgi?id=8592>
- Extra line left after deleting whitespace:pre text
- <rdar://problem/4128080> Paste as HTML does not yield equivalent style
- <rdar://problem/4046469> Box styles on first element aren't copied/pasted
- Copy/paste of arstechnica.com
-
- Here's how we avoid adding redundant style information on paste: insert
- the fragment and do a test rendering, save away style information for
- every node in the fragment, remove all style information from the fragment,
- remove the fragment, insert it into the appropriate place in the document,
- then restore only those styles gathered during the test insertion that aren't
- redundant. Restoring the styles in this way results in an ApplyStyleCommand
- and a layout for nearly every inserted node.
- Instead we want to insert the fragment into the document without removing the
- style information, then mark style nodes and inline style declarations for
- removal if they are redundant, and sweep to remove them. This means that we
- can't rely on ReplacementFragment::wasBlock anymore, because blocks will now
- have style spans around them. This patch removes the use of wasBlock in
- ReplaceSelectionCommand.
-
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs): Added code
- to remove the line placeholder left after a move from preserveNewline text.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::doApply): Don't add a placeholder if
- we're deleting a paragraph in preserveNewline text.
- * editing/JSEditor.cpp: Pass true to prevent nesting.
- * editing/ReplaceSelectionCommand.cpp: Removed wasBlock and friends.
- (WebCore::ReplacementFragment::ReplacementFragment): Ditto.
- (WebCore::ReplacementFragment::saveRenderingInfo): Ditto.
- (WebCore::RenderingInfo::RenderingInfo): Ditto.
- (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
- (WebCore::ReplaceSelectionCommand::shouldMergeStart): Combined the to/from
- merging rules into one method.
- (WebCore::ReplaceSelectionCommand::shouldMergeEnd):
- (WebCore::ReplaceSelectionCommand::shouldMerge):
- (WebCore::ReplaceSelectionCommand::doApply):
- Don't do nesting prevention when pasting into an empty paragraph, this
- fixes 4046469, the common cause of paste fidelity bugs, but needs
- to be tweaked a little because this can lead to margin/border build-up
- on repeated copy/pastes.
- Don't track startPos in addition to insertionPos. It was never used.
- Fixed a bug where a fragment starting with an interchange newline would
- cause content to be put outside of an editable region when pasting at the
- very end of it.
- Adjust insertionPos before insertion (not during) and do not consult wasBlock
- to decide whether or not to do so.
- Changed the way we do the start merge: insert the fragment, then stich
- paragraphs together, in the same way that we do the end merge. This
- doesn't require wasBlock and fixes bugs.
- Replaced some uses of insertionPos with endOfInsertedContent.
- Fixed a bug in the expansion of the last incoming br (a "collapsed" br
- is one where !isStartOfParagraph([br,0])).
- Removed the special case code that did the end merge for the preserveNewline
- case, since this patch fixes the moveParagraph bug in the preserveNewline case.
- Removed some unused variables.
- (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): An endBR that was
- holding a line open should always be displaced by inserted content, unless
- the inserted content ends with a br.
- (WebCore::ReplaceSelectionCommand::updateNodesInserted):
- * editing/ReplaceSelectionCommand.h:
- (WebCore::RenderingInfo::style):
- * editing/markup.cpp:
- (WebCore::createMarkup): Only add mail blockquotes and list/table/pre when
- annotate is true (when we're creating markup for the pasteboard).
- 2006-08-16 John Sullivan <sullivan@apple.com>
- Reviewed by Brady Eidson
-
- - fixed <rdar://problem/4637156> underlines appearing in white selection text
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::paintDecorations):
- bail out if phase is PaintPhaseSelection and forceWhiteText is true
- 2006-08-16 Brady Eidson <beidson@apple.com>
- Reviewed by John
- Updated the DB version number and added a helpful comment explaining its meaning
- * loader/icon/IconDatabase.cpp:
- 2006-08-16 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Major refactoring of new iconDB:
- -Instead of private browsing being handled by in-memory tables, it's now handled
- by a separate in-memory database with the same table names. This allows us to
- re-use the same SQL on either the main or private-browsing database
- -So it follows, I broke out much of the SQL queries into seperate methods suffixed with
- "Query" that take a database as the method's argument so the same language can run on
- both private and main tables
- -Now that we have two DBs, moved the retain/release count to the m_mainDB
- -While I was at it, updated the schema to combine the Icon and IconResource table - cuts
- down on some high-usage, low value queries which were too expensive
- -Ditched the _url -> url convention for escaping urls for SQL. Now its url and escapedURL
- -Pruned tons of unused methods from previous revisions
- * bridge/mac/WebCoreIconDatabaseBridge.h: Removed isIconExpiredForPageURL as it was never used
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Ditto
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase): Updated initializer list
- (WebCore::IconDatabase::open): Sets up both databases
- (WebCore::IconDatabase::close): Closes both databases
- (WebCore::IconDatabase::isEmpty): Queries both databases for at least 1 record
- (WebCore::IconDatabase::isValidDatabase): Reflect the updated schema
- (WebCore::IconDatabase::clearDatabaseTables): Ditto - and takes DB as a parameter
- (WebCore::IconDatabase::createDatabaseTables): Ditto
- (WebCore::IconDatabase::imageDataForIconURL): style cleanup, and using a query-function
- (WebCore::IconDatabase::setPrivateBrowsingEnabled): Resets private DB instead of private tables
- (WebCore::IconDatabase::isIconExpiredForIconURL): Uses a query-function on each DB
- (WebCore::IconDatabase::iconURLForPageURL): Uses a query-function on each DB
- (WebCore::IconDatabase::retainIconForPageURL): Retain count DB changes
- (WebCore::IconDatabase::releaseIconForPageURL): Ditto
- (WebCore::IconDatabase::isIconURLRetained): Determine if it's time to prune a released icon yet
- (WebCore::IconDatabase::forgetIconForIconURLFromDatabase): Alot simpler
- (WebCore::IconDatabase::setIconDataForIconURL): Style cleanup
- (WebCore::IconDatabase::setHaveNoIconForIconURL): Ditto
- (WebCore::IconDatabase::setIconURLForPageURL): Ditto - and using a query-function
- (WebCore::IconDatabase::establishIconIDForIconURL): Style cleanup
- (WebCore::IconDatabase::pruneUnreferencedIcons): DB name change
- (WebCore::IconDatabase::pruneUnretainedIcons): Ditto
- (WebCore::IconDatabase::hasIconForIconURL): Simpler, using a query-function
- (WebCore::IconDatabase::~IconDatabase):
- (WebCore::pageURLTableIsEmptyQuery): Self-explanatory SQL query
- (WebCore::imageDataForIconURLQuery): Self-explanatory SQL query
- (WebCore::timeStampForIconURLQuery): Self-explanatory SQL query
- (WebCore::iconURLForPageURLQuery): Self-explanatory SQL query
- (WebCore::forgetPageURLQuery): Self-explanatory SQL query
- (WebCore::setIconIDForPageURLQuery): Self-explanatory SQL query
- (WebCore::getIconIDForIconURLQuery): Self-explanatory SQL query
- (WebCore::addIconForIconURLQuery): Self-explanatory SQL query
- (WebCore::hasIconForIconURLQuery): Self-explanatory SQL query
- * loader/icon/IconDatabase.h: Some new/changed methods, pruned methods, and new comments
- (WebCore::IconDatabase::isOpen): Changed our meaning of "isOpen" to reflect the 2 databases
- 2006-08-15 Jonas Witt <jonas.witt@gmail.com>
- Reviewed by Darin.
- - added ObjC wrappers for the KeyboardEvent and WheelEvent initializers
- http://bugs.webkit.org/show_bug.cgi?id=9736
- * bindings/objc/DOMEvents.mm:
- (-[DOMKeyboardEvent initKeyboardEvent::::::::::]):
- * bindings/objc/DOMEventsNonstandard.mm:
- (-[DOMWheelEvent initWheelEvent:::::::::::]):
- * bindings/objc/DOMPrivate.h:
- - added an initializer for the WheelEvent
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::initWheelEvent):
- * dom/WheelEvent.h:
- 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Tim H.
- Build fix: DWARF and -gfull are incompatible with symbol separation.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=10394
- Bug 10394: WebKit Release and Production configurations should enable dead code stripping
- * WebCore.xcodeproj/project.pbxproj:
- 2006-08-15 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
-
- - This patch reworks a previous fix for <rdar://problem/3524912> repro
- crash in KHTMLParser::parseToken, due to parser's current element being
- destroyed (www.gnnetcom.dk), along with subsequent adjustments to fix
- leaks.
-
- The previous solutions caused a ~2% performance regression on iBench HTML,
- due to RefPtr churn. The optimizations here gain back that ~2% plus ~1% more,
- for a total win of ~3% vs current TOT.
-
- We can merge this fix to the branch to fix <rdar://problem/4661982>
- (crash in KHTMLParser::popBlock).
-
- The solution here is:
- (1) Don't let the parser ref document nodes -- that causes leaks.
- (2) Handle ref/deref manually, to avoid RefPtr churn. Specifically, when
- moving a node between stacks or to/from 'current', rather than deref'ing
- and then ref'ing again, simply move the node, along with its refcount, to
- its new location, and overwrite its old location.
-
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLParser.cpp:
- (WebCore::HTMLStackElem::HTMLStackElem):
- (WebCore::HTMLStackElem::derefNode):
- (WebCore::HTMLParser::HTMLParser):
- (WebCore::HTMLParser::setCurrent):
- (WebCore::HTMLParser::insertNode):
- (WebCore::HTMLParser::popNestedHeaderTag):
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
- (WebCore::HTMLParser::reopenResidualStyleTags):
- (WebCore::HTMLParser::pushBlock):
- (WebCore::HTMLParser::popBlock):
- (WebCore::HTMLParser::popOneBlockCommon):
- (WebCore::HTMLParser::popOneBlock):
- (WebCore::HTMLParser::moveOneBlockToStack):
- * html/HTMLParser.h:
- 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=10384
- Bug 10384: Switch to DWARF for Release configuration
- * WebCore.xcodeproj/project.pbxproj:
- 2006-08-15 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Hyatt.
- Tweaked and landed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10399
- Bug 10399: RenderTextArea is unused
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- Removed RenderTextArea source files.
- * html/HTMLTextAreaElement.cpp: Removed include of RenderTextArea.h.
- * html/HTMLTextAreaElement.h: Removed forward declaration of RenderTextArea.
- * platform/mac/WidgetMac.mm: (WebCore::Widget::paint): Updated a comment.
- * platform/TextBox.h: Removed.
- * platform/mac/TextBoxMac.mm: Removed.
- * platform/mac/WebCoreTextArea.h: Removed.
- * platform/mac/WebCoreTextArea.mm: Removed.
- * rendering/RenderTextArea.cpp: Removed.
- * rendering/RenderTextArea.h: Removed.
- 2006-08-15 Brady Eidson <beidson@apple.com>
- Reviewed by THE OTHER Maciej...
- Two small fixes -
- 1) Renamed retain/release methods to add PageUrl in - we're being consistent and clear in the WebCore API
- 2) Fixed a bug where a null SiteIcon reference would be added into the pageURLToSiteIcon map causing a
- null dereference later
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge retainIconForURL:]): Changed IconDatabase method name
- (-[WebCoreIconDatabaseBridge releaseIconForURL:]): ditto
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::retainIconForPageURL): Name change
- (WebCore::IconDatabase::releaseIconForPageURL): ditto
- (WebCore::IconDatabase::setIconURLForPageURL): Added the null site-icon check when changing a PageURL's iconURL
- * loader/icon/IconDatabase.h: Some renames
- 2006-08-14 Eric Seidel <eric@webkit.org>
- Reviewed by mjs.
- <mask>, <marker>, <pattern> inside <defs> do not work
- http://bugs.webkit.org/show_bug.cgi?id=6548
- * ksvg2/svg/SVGDefsElement.cpp:
- (WebCore::SVGDefsElement::SVGDefsElement): moved to .cpp file
- (WebCore::SVGDefsElement::isValid): moved to .cpp file
- (WebCore::SVGDefsElement::rendererIsNeeded): Added.
- (WebCore::SVGDefsElement::createRenderer): Added.
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGGElement.cpp:
- (WebCore::SVGGElement::SVGGElement): adjusted spacing
- (WebCore::SVGGElement::parseMappedAttribute): adjusted spacing
- (WebCore::SVGDummyElement::SVGDummyElement): adjusted spacing
- 2006-08-14 Eric Seidel <eric@webkit.org>
- Reviewed by darin and mjs.
-
- Add better SVGLoad event support.
- http://bugs.webkit.org/show_bug.cgi?id=6010
- There will still need to be additional support added for <link> and <script> elements.
- Not all of the error -> loaded -> error transition cases work yet.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent):
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::dispatchLoadEvent):
- * html/HTMLImageLoader.h:
- (WebCore::HTMLImageLoader::haveFiredLoadEvent):
- (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
- * ksvg2/misc/SVGImageLoader.cpp:
- (WebCore::SVGImageLoader::SVGImageLoader):
- (WebCore::SVGImageLoader::dispatchLoadEvent):
- * ksvg2/misc/SVGImageLoader.h:
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::parseMappedAttribute):
- * ksvg2/svg/SVGAnimatedBoolean.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::SVGElement):
- (WebCore::SVGElement::parseMappedAttribute):
- (WebCore::SVGElement::haveLoadedRequiredResources):
- (WebCore::SVGElement::sendSVGLoadEventIfPossible):
- (WebCore::SVGElement::closeRenderer):
- * ksvg2/svg/SVGElement.h:
- (WebCore::SVGElement::rendererIsNeeded):
- (WebCore::svg_dynamic_cast):
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGImageElement.cpp:
- (SVGImageElement::SVGImageElement):
- (SVGImageElement::haveLoadedRequiredResources):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::parseMappedAttribute):
- * ksvg2/svg/SVGScriptElement.cpp:
- (WebCore::SVGScriptElement::SVGScriptElement):
- (WebCore::SVGScriptElement::parseMappedAttribute):
- (WebCore::SVGScriptElement::executeScript):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
- 2006-08-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=10393
- Autogenerate NodeIterator and TreeWalker.
-
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- Add new files.
-
- * bindings/js/JSNodeIteratorCustom.cpp: Added.
- (WebCore::JSNodeIterator::mark):
- * bindings/js/JSTreeWalkerCustom.cpp: Added.
- (WebCore::JSTreeWalker::mark):
-
- * bindings/js/kjs_traversal.cpp:
- * bindings/js/kjs_traversal.h:
- Remove implementations of DOMNodeIterator and DOMTreeWalker.
- * bindings/scripts/CodeGeneratorJS.pm:
- Add "CustomMarkFunction" attribute for classes where mark() needs to be overridden.
-
- * bindings/objc/DOM.mm:
- (-[DOMNodeIterator detach]):
- * dom/NodeIterator.cpp:
- (WebCore::NodeIterator::detach):
- * dom/NodeIterator.h:
- Get rid of exception in detach, it isn't used at all and this function can't throw an exception according to the spec.
- * dom/NodeIterator.idl: Added.
- * dom/TreeWalker.idl: Added.
- 2006-08-14 Brady Eidson <beidson@apple.com>
- Reviewed by John
- The changes are plentiful, but small, mostly to improve performance
- 1) Add a bool flag to SiteIcon to stop it from querying the database over and over
- 2) Added a pageURL->iconURL hashmap to cache database results, as an optimization
- 3) Fix a bug in setIconURLForPageURL code where the pageURL would still point to an old icon
- 4) Added isIconURLRetained() to optimize the retain count check
- 5) Prune old, unused code
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::imageDataForIconID): Removed unused code
- (WebCore::IconDatabase::imageDataForIconURL): Removed unused code
- (WebCore::IconDatabase::imageDataForPageURL): Removed unused code
- (WebCore::IconDatabase::isIconExpiredForIconURL): Removed LOG msg
- (WebCore::IconDatabase::isIconExpiredForPageURL): Removed LOG msg
- (WebCore::IconDatabase::iconURLForPageURL): Added a hashmap cache to avoid common queries
- (WebCore::IconDatabase::releaseIconForURL): Changed to is isRetained() instead of retainCount()
- (WebCore::IconDatabase::isIconURLRetained): Added - we don't care about the actual retain count
- for an icon so much as whether or not it is retained
- (WebCore::IconDatabase::setIconURLForPageURL): If the new and old iconURLs are the same, skip the
- SQLite code
- * loader/icon/IconDatabase.h: Added new methods/variables
- * loader/icon/SiteIcon.cpp:
- (SiteIcon::SiteIcon): Added a flag so it only queries the database for icon data once
- (SiteIcon::getImage): Ditto
- 2006-08-14 David Hyatt <hyatt@apple.com>
- Fix for bug 10385, add more support for crappy pseudo-XML-in-HTML.
- Reviewed by ggaren
- Added fast/parser/bad-xml-slash.html
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::parseTag):
- 2006-08-14 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10204
- REGRESSION: title tag parsing problem breaks Travelocity and Google Analytics pages
- Test: fast/parser/title-error-test.html
- * html/HTMLParser.cpp: (WebCore::HTMLParser::handleError): Fixed an error
- handling case that was skipping until a </style> tag in code that was shared
- between both <title> and <style>. Also rearranged the code a tiny bit.
- 2006-08-14 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - fixed some storage leaks
- (part of http://bugs.webkit.org/show_bug.cgi?id=10259)
- * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start):
- Rearrange code so that "delete this" is called any time the function returns
- false -- ownership was inconsistent before.
- * rendering/RenderContainer.cpp: (WebCore::RenderContainer::removeChildNode):
- Call deleteLineBoxWrapper even when documentBeingDestroyed() is true, because
- some of what it does has to be done during destruction. A little awkward since
- I preserved the order of operations. Perhaps we could structure this better later.
- 2006-08-14 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan and Geoff Garen.
- <rdar://problem/3854950> AX Seed: Blackboard Learning Systems - frame names need to be put in AXDescription AXAttribute
- Test cases added: None. Manual AX testing is way too awkward, and automated testing
- is not possible. See following bug...
- <rdar://problem/4256882> Need automated testing support for accessibility APIs
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityDescription]):
- For a web area, return the name of the owning frame or iframe.
-
- (-[WebCoreAXObject accessibilityAttributeNames]):
- Advertize NSAccessibilityDescriptionAttribute.
-
- (-[WebCoreAXObject rendererForView:]):
- Clean up some old naming.
- 2006-08-11 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10353
- XMLSerializer and DOMParser should have real implementations
-
- Make real implementation files for DOMParser and XMLSerializer and wrap them
- using our bindings generation.
-
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSDOMParser.cpp: Removed.
- * bindings/js/JSDOMParser.h: Removed.
- * bindings/js/JSXMLSerializer.cpp: Removed.
- * bindings/js/JSXMLSerializer.h: Removed.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::getValueProperty):
- * bindings/js/kjs_window.h:
- (KJS::Window::):
- * page/DOMWindow.idl:
- * xml/DOMParser.cpp: Added.
- (WebCore::DOMParser::parseFromString):
- * xml/DOMParser.h: Added.
- * xml/DOMParser.idl: Added.
- * xml/XMLSerializer.cpp: Added.
- (WebCore::XMLSerializer::serializeToString):
- * xml/XMLSerializer.h: Added.
- * xml/XMLSerializer.idl: Added.
- 2006-08-14 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Brady.
- - removed WebKit-level dependencies from WebFormDataStream. Use WebCore version of system interface
- * WebCore.exp: export new functions
- * platform/mac/WebCoreSystemInterface.h: Added CFReadStream related functions
- * platform/mac/WebCoreSystemInterface.mm: ditto
- 2006-08-13 Maks Orlovich <maksim@kde.org>
- Reviewed (and tweaked a little) by Maciej.
-
- - shrank the size of JSObject by 8 bytes and made the corresponding reduction to the cell size, resulting
- in a 1.2% speed improvement on JS iBench (and probably overall memory savings).
- The WebCore part of this is to expect only FunctionImp to have a scope, not all JSObjects.
-
- * bindings/js/kjs_events.cpp:
- (KJS::JSLazyEventListener::parseCode):
- 2006-08-12 Eric Seidel <eric@webkit.org>
- Reviewed by hyatt and mjs.
- Fix two missing null checks causing layout test crashes.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle): check e for null (null for pseudo styles)
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::requiresLayer): check parent()->element() for null
- 2006-08-11 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- The outermost <svg> element needs to clip itself
- http://bugs.webkit.org/show_bug.cgi?id=5358
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle): adjust for SVG overflow rules
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::requiresLayer): only require layers for absolute/relative positioning of outermost SVG
- (WebCore::RenderSVGContainer::paint):
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h: remove dead methods
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: remove dead methods
- (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
- * ksvg2/svg/SVGPaint.cpp: spacing changes
- (WebCore::SVGPaint::SVGPaint): spacing cleanup
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::parseMappedAttribute): spacing cleanup
- * platform/GraphicsContext.h: Added concatCTM
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::concatCTM): Added.
- 2006-08-11 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Renamed a method/parameter for clarity and consistency, as well as some style
- cleanups and removing some ridiculously verbose log messages.
- Also added an _isEmpty method to the database and bridge for WebKit's use.
- Finally, added a central way for both WebKit and WebCore to get the icon database filename
- * bridge/mac/WebCoreIconDatabaseBridge.h: Added _isEmpty and defaultDatabaseFilename
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed an unnecessary semicolon off most of these methods
- (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
- (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
- (-[WebCoreIconDatabaseBridge isOpen]):
- (-[WebCoreIconDatabaseBridge _isEmpty]): Added
- (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
- (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
- (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
- (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
- (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
- (-[WebCoreIconDatabaseBridge retainIconForURL:]):
- (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
- (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
- (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
- (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
- (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
- (-[WebCoreIconDatabaseBridge defaultDatabaseFilename]): Added
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::defaultDatabaseFilename): Added
- (WebCore::IconDatabase::open):
- (WebCore::IconDatabase::isEmpty): Added
- (WebCore::IconDatabase::retainIconForURL): Removed log message
- (WebCore::IconDatabase::releaseIconForURL): Removed log message
- * loader/icon/IconDatabase.h:
- 2006-08-11 David Hyatt <hyatt@apple.com>
- Eliminate RenderImageButton.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject isImageButton]):
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::createRenderer):
- * rendering/RenderImage.h:
- (WebCore::RenderImage::isImage):
- 2006-08-11 Adele Peterson <adele@apple.com>
- Reviewed by Brady.
- - Fix for <rdar://problem/4656274>
- REGRESSION: option elements are selected when added regardless of "selected" property
- Test: fast/forms/option-constructor-selected.html
- * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setOption):
- When adding an option element, check that the option element is selected before calling setSelectedIndex.
- 2006-08-11 David Hyatt <hyatt@apple.com>
- Fix for bug 10349, make sure to call setChanged when an anchor changes
- from not being a link to being a link (and vice versa).
- Test is in fast/dynamic/link-href-change.html
- Reviewed by darin
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::HTMLAnchorElement):
- (WebCore::HTMLAnchorElement::parseMappedAttribute):
- * html/HTMLAnchorElement.h:
- * html/HTMLAreaElement.cpp:
- (WebCore::HTMLAreaElement::parseMappedAttribute):
- 2006-08-09 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Revert an over-optimization step that messed up the HashSet lookup.
- * dom/DOMImplementation.cpp:
- 2006-08-12 Oliver <ojh16@student.canterbury.ac.nz>
- Rubber stamped by tim
- Removed commented out code
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- 2006-08-12 Oliver <ojh16@student.canterbury.ac.nz>
- Reviewed by geoff
- Fixed regression in SVG image layout
- (see bug #10346)
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint):
- 2006-08-10 Anders Carlsson <acarlsson@apple.com>
- Rubber-stamped by Maciej.
- Move xpath to xml.
-
- * DerivedSources.make:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * xpath/XPathEvaluator.cpp: Removed.
- * xpath/XPathEvaluator.h: Removed.
- * xpath/XPathEvaluator.idl: Removed.
- * xpath/XPathExpression.cpp: Removed.
- * xpath/XPathExpression.h: Removed.
- * xpath/XPathExpression.idl: Removed.
- * xpath/XPathNSResolver.cpp: Removed.
- * xpath/XPathNSResolver.h: Removed.
- * xpath/XPathNSResolver.idl: Removed.
- * xpath/XPathNamespace.cpp: Removed.
- * xpath/XPathNamespace.h: Removed.
- * xpath/XPathResult.cpp: Removed.
- * xpath/XPathResult.h: Removed.
- * xpath/XPathResult.idl: Removed.
- * xpath/impl/XPathExpressionNode.cpp: Removed.
- * xpath/impl/XPathExpressionNode.h: Removed.
- * xpath/impl/XPathFunctions.cpp: Removed.
- * xpath/impl/XPathFunctions.h: Removed.
- * xpath/impl/XPathGrammar.y: Removed.
- * xpath/impl/XPathParser.cpp: Removed.
- * xpath/impl/XPathParser.h: Removed.
- * xpath/impl/XPathPath.cpp: Removed.
- * xpath/impl/XPathPath.h: Removed.
- * xpath/impl/XPathPredicate.cpp: Removed.
- * xpath/impl/XPathPredicate.h: Removed.
- * xpath/impl/XPathStep.cpp: Removed.
- * xpath/impl/XPathStep.h: Removed.
- * xpath/impl/XPathUtil.cpp: Removed.
- * xpath/impl/XPathUtil.h: Removed.
- * xpath/impl/XPathValue.cpp: Removed.
- * xpath/impl/XPathValue.h: Removed.
- * xpath/impl/XPathVariableReference.cpp: Removed.
- * xpath/impl/XPathVariableReference.h: Removed.
- 2006-08-10 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4600112> REGRESSION: VO no longer able to review text within an edit field on web pages
- Test cases added: None. Manual AX testing is way too awkward, and automated testing
- is not possible. See following bug...
- <rdar://problem/4256882> Need automated testing support for accessibility APIs
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject value]):
- Add handling for text input fields.
- 2006-08-09 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10247
- REGRESSION: Unable to build webkit without SVG/XPATH
- * bindings/js/kjs_binding.cpp:
- (KJS::setDOMException):
- * bindings/js/kjs_dom.cpp:
- (KJS::toJS):
- * bindings/js/kjs_html.cpp:
- (KJS::HTMLElementFunction::callAsFunction):
- * bindings/js/kjs_proxy.cpp:
- * bindings/js/kjs_proxy.h:
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMInternal.mm:
- (raiseDOMException):
- * bindings/objc/DOMXPath.mm:
- * bindings/objc/DOMXPathInternal.h:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
- * css/CSSGrammar.y:
- * css/CSSStyleDeclaration.cpp:
- (WebCore::propertyID):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssparser.h:
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::loadDefaultStyle):
- (WebCore::CSSStyleSelector::applyProperty):
- * css/cssstyleselector.h:
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::~Document):
- (WebCore::Document::createElementNS):
- (WebCore::Document::implicitClose):
- (WebCore::Document::recalcStyleSelector):
- (WebCore::Document::createEvent):
- * dom/Document.h:
- * dom/Document.idl:
- * dom/Node.cpp:
- (WebCore::Node::createRendererIfNeeded):
- * dom/Node.h:
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::endElementNs):
- (WebCore::XMLTokenizer::insertErrorMessageBlock):
- * html/HTMLEmbedElement.cpp:
- * html/HTMLEmbedElement.h:
- * html/HTMLObjectElement.cpp:
- * html/HTMLObjectElement.h:
- * kcanvas/KCanvasCreator.cpp:
- * kcanvas/KCanvasCreator.h:
- * kcanvas/KCanvasFilters.cpp:
- * kcanvas/KCanvasFilters.h:
- * kcanvas/KCanvasImage.h:
- * kcanvas/KCanvasMatrix.cpp:
- * kcanvas/KCanvasMatrix.h:
- * kcanvas/KCanvasPath.cpp:
- * kcanvas/KCanvasPath.h:
- * kcanvas/KCanvasResourceListener.h:
- * kcanvas/KCanvasResources.cpp:
- * kcanvas/KCanvasResources.h:
- * kcanvas/KCanvasTreeDebug.cpp:
- * kcanvas/RenderForeignObject.cpp:
- * kcanvas/RenderForeignObject.h:
- * kcanvas/RenderPath.cpp:
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp:
- * kcanvas/RenderSVGContainer.h:
- * kcanvas/RenderSVGImage.cpp:
- * kcanvas/RenderSVGImage.h:
- * kcanvas/RenderSVGText.cpp:
- * kcanvas/RenderSVGText.h:
- * kcanvas/device/KRenderingDevice.cpp:
- * kcanvas/device/KRenderingDevice.h:
- * kcanvas/device/KRenderingFillPainter.cpp:
- * kcanvas/device/KRenderingFillPainter.h:
- * kcanvas/device/KRenderingPaintServer.h:
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/KRenderingStrokePainter.cpp:
- * kcanvas/device/KRenderingStrokePainter.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- * kcanvas/device/quartz/KCanvasItemQuartz.mm:
- * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
- * kcanvas/device/quartz/KCanvasPathQuartz.mm:
- * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- * kcanvas/device/quartz/QuartzSupport.h:
- * kcanvas/device/quartz/QuartzSupport.mm:
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.h:
- * ksvg2/css/SVGCSSParser.cpp:
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- * ksvg2/css/SVGRenderStyle.cpp:
- * ksvg2/css/SVGRenderStyle.h:
- * ksvg2/css/SVGRenderStyleDefs.cpp:
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/ecma/GlobalObject.cpp:
- * ksvg2/ecma/GlobalObject.h:
- * ksvg2/events/JSSVGLazyEventListener.cpp:
- * ksvg2/events/JSSVGLazyEventListener.h:
- * ksvg2/events/SVGZoomEvent.cpp:
- * ksvg2/events/SVGZoomEvent.h:
- * ksvg2/ksvg.h:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- * ksvg2/misc/KSVGTimeScheduler.h:
- * ksvg2/misc/SVGDocumentExtensions.cpp:
- * ksvg2/misc/SVGDocumentExtensions.h:
- * ksvg2/misc/SVGImageLoader.cpp:
- * ksvg2/misc/SVGImageLoader.h:
- * ksvg2/svg/DOMList.h:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGAElement.h:
- * ksvg2/svg/SVGAngle.cpp:
- * ksvg2/svg/SVGAngle.h:
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- * ksvg2/svg/SVGAnimateColorElement.h:
- * ksvg2/svg/SVGAnimateElement.cpp:
- * ksvg2/svg/SVGAnimateElement.h:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedAngle.cpp:
- * ksvg2/svg/SVGAnimatedAngle.h:
- * ksvg2/svg/SVGAnimatedBoolean.cpp:
- * ksvg2/svg/SVGAnimatedBoolean.h:
- * ksvg2/svg/SVGAnimatedColor.cpp:
- * ksvg2/svg/SVGAnimatedColor.h:
- * ksvg2/svg/SVGAnimatedEnumeration.cpp:
- * ksvg2/svg/SVGAnimatedEnumeration.h:
- * ksvg2/svg/SVGAnimatedInteger.cpp:
- * ksvg2/svg/SVGAnimatedInteger.h:
- * ksvg2/svg/SVGAnimatedLength.cpp:
- * ksvg2/svg/SVGAnimatedLength.h:
- * ksvg2/svg/SVGAnimatedLengthList.cpp:
- * ksvg2/svg/SVGAnimatedLengthList.h:
- * ksvg2/svg/SVGAnimatedNumber.cpp:
- * ksvg2/svg/SVGAnimatedNumber.h:
- * ksvg2/svg/SVGAnimatedNumberList.cpp:
- * ksvg2/svg/SVGAnimatedNumberList.h:
- * ksvg2/svg/SVGAnimatedPathData.cpp:
- * ksvg2/svg/SVGAnimatedPathData.h:
- * ksvg2/svg/SVGAnimatedPoints.cpp:
- * ksvg2/svg/SVGAnimatedPoints.h:
- * ksvg2/svg/SVGAnimatedPreserveAspectRatio.cpp:
- * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
- * ksvg2/svg/SVGAnimatedRect.cpp:
- * ksvg2/svg/SVGAnimatedRect.h:
- * ksvg2/svg/SVGAnimatedString.cpp:
- * ksvg2/svg/SVGAnimatedString.h:
- * ksvg2/svg/SVGAnimatedTemplate.h:
- * ksvg2/svg/SVGAnimatedTransformList.cpp:
- * ksvg2/svg/SVGAnimatedTransformList.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- * ksvg2/svg/SVGAnimationElement.h:
- * ksvg2/svg/SVGCircleElement.cpp:
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGClipPathElement.cpp:
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGColor.cpp:
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGCursorElement.cpp:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGDOMImplementation.cpp:
- * ksvg2/svg/SVGDOMImplementation.h:
- * ksvg2/svg/SVGDefsElement.cpp:
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGDescElement.cpp:
- * ksvg2/svg/SVGDescElement.h:
- * ksvg2/svg/SVGDocument.cpp:
- * ksvg2/svg/SVGDocument.h:
- * ksvg2/svg/SVGElement.cpp:
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGElementInstance.cpp:
- * ksvg2/svg/SVGElementInstance.h:
- * ksvg2/svg/SVGElementInstanceList.cpp:
- * ksvg2/svg/SVGElementInstanceList.h:
- * ksvg2/svg/SVGEllipseElement.cpp:
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGExternalResourcesRequired.cpp:
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGFEBlendElement.cpp:
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- * ksvg2/svg/SVGFEDistantLightElement.cpp:
- * ksvg2/svg/SVGFEDistantLightElement.h:
- * ksvg2/svg/SVGFEFloodElement.cpp:
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEFuncAElement.cpp:
- * ksvg2/svg/SVGFEFuncAElement.h:
- * ksvg2/svg/SVGFEFuncBElement.cpp:
- * ksvg2/svg/SVGFEFuncBElement.h:
- * ksvg2/svg/SVGFEFuncGElement.cpp:
- * ksvg2/svg/SVGFEFuncGElement.h:
- * ksvg2/svg/SVGFEFuncRElement.cpp:
- * ksvg2/svg/SVGFEFuncRElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGFEImageElement.h:
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.h:
- * ksvg2/svg/SVGFEMergeNodeElement.cpp:
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFEPointLightElement.cpp:
- * ksvg2/svg/SVGFEPointLightElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFESpotLightElement.cpp:
- * ksvg2/svg/SVGFESpotLightElement.h:
- * ksvg2/svg/SVGFETileElement.cpp:
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGFilterElement.cpp:
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * ksvg2/svg/SVGFitToViewBox.cpp:
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGGElement.cpp:
- * ksvg2/svg/SVGGElement.h:
- * ksvg2/svg/SVGGradientElement.cpp:
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGHelper.cpp:
- * ksvg2/svg/SVGHelper.h:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGLangSpace.cpp:
- * ksvg2/svg/SVGLangSpace.h:
- * ksvg2/svg/SVGLength.cpp:
- * ksvg2/svg/SVGLength.h:
- * ksvg2/svg/SVGLengthList.cpp:
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGLineElement.cpp:
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGList.h:
- * ksvg2/svg/SVGLocatable.cpp:
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGMatrix.cpp:
- * ksvg2/svg/SVGMatrix.h:
- * ksvg2/svg/SVGNumber.cpp:
- * ksvg2/svg/SVGNumber.h:
- * ksvg2/svg/SVGNumberList.cpp:
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGPaint.cpp:
- * ksvg2/svg/SVGPaint.h:
- * ksvg2/svg/SVGPathElement.cpp:
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPathSeg.cpp:
- * ksvg2/svg/SVGPathSeg.h:
- * ksvg2/svg/SVGPathSegArc.cpp:
- * ksvg2/svg/SVGPathSegArc.h:
- * ksvg2/svg/SVGPathSegClosePath.cpp:
- * ksvg2/svg/SVGPathSegClosePath.h:
- * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
- * ksvg2/svg/SVGPathSegCurvetoCubic.h:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
- * ksvg2/svg/SVGPathSegLineto.cpp:
- * ksvg2/svg/SVGPathSegLineto.h:
- * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
- * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
- * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
- * ksvg2/svg/SVGPathSegLinetoVertical.h:
- * ksvg2/svg/SVGPathSegList.cpp:
- * ksvg2/svg/SVGPathSegList.h:
- * ksvg2/svg/SVGPathSegMoveto.cpp:
- * ksvg2/svg/SVGPathSegMoveto.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGPoint.cpp:
- * ksvg2/svg/SVGPoint.h:
- * ksvg2/svg/SVGPointList.cpp:
- * ksvg2/svg/SVGPointList.h:
- * ksvg2/svg/SVGPolyElement.cpp:
- * ksvg2/svg/SVGPolyElement.h:
- * ksvg2/svg/SVGPolygonElement.cpp:
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.cpp:
- * ksvg2/svg/SVGPolylineElement.h:
- * ksvg2/svg/SVGPreserveAspectRatio.cpp:
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGRect.cpp:
- * ksvg2/svg/SVGRect.h:
- * ksvg2/svg/SVGRectElement.cpp:
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGScriptElement.cpp:
- * ksvg2/svg/SVGScriptElement.h:
- * ksvg2/svg/SVGSetElement.cpp:
- * ksvg2/svg/SVGSetElement.h:
- * ksvg2/svg/SVGStopElement.cpp:
- * ksvg2/svg/SVGStopElement.h:
- * ksvg2/svg/SVGStringList.cpp:
- * ksvg2/svg/SVGStringList.h:
- * ksvg2/svg/SVGStylable.cpp:
- * ksvg2/svg/SVGStylable.h:
- * ksvg2/svg/SVGStyleElement.cpp:
- * ksvg2/svg/SVGStyleElement.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.cpp:
- * ksvg2/svg/SVGSwitchElement.h:
- * ksvg2/svg/SVGSymbolElement.cpp:
- * ksvg2/svg/SVGSymbolElement.h:
- * ksvg2/svg/SVGTRefElement.cpp:
- * ksvg2/svg/SVGTRefElement.h:
- * ksvg2/svg/SVGTSpanElement.cpp:
- * ksvg2/svg/SVGTSpanElement.h:
- * ksvg2/svg/SVGTests.cpp:
- * ksvg2/svg/SVGTests.h:
- * ksvg2/svg/SVGTextContentElement.cpp:
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTextPositioningElement.cpp:
- * ksvg2/svg/SVGTextPositioningElement.h:
- * ksvg2/svg/SVGTitleElement.cpp:
- * ksvg2/svg/SVGTitleElement.h:
- * ksvg2/svg/SVGTransform.cpp:
- * ksvg2/svg/SVGTransform.h:
- * ksvg2/svg/SVGTransformList.cpp:
- * ksvg2/svg/SVGTransformList.h:
- * ksvg2/svg/SVGTransformable.cpp:
- * ksvg2/svg/SVGTransformable.h:
- * ksvg2/svg/SVGURIReference.cpp:
- * ksvg2/svg/SVGURIReference.h:
- * ksvg2/svg/SVGUseElement.cpp:
- * ksvg2/svg/SVGUseElement.h:
- * ksvg2/svg/SVGViewElement.cpp:
- * ksvg2/svg/SVGViewElement.h:
- * ksvg2/svg/SVGZoomAndPan.cpp:
- * ksvg2/svg/SVGZoomAndPan.h:
- * ksvg2/svg/svgpathparser.cpp:
- * ksvg2/svg/svgpathparser.h:
- * page/DOMWindow.idl:
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- (WebCore::Frame::begin):
- (WebCore::Frame::pauseTimeouts):
- (WebCore::Frame::resumeTimeouts):
- * platform/GraphicsContext.h:
- * platform/cg/GraphicsContextCG.cpp:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::isTransparent):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::containingBlock):
- * rendering/RenderObject.h:
- * rendering/RenderStyle.cpp:
- (WebCore::RenderStyle::RenderStyle):
- (WebCore::RenderStyle::inheritFrom):
- (WebCore::RenderStyle::operator==):
- (WebCore::RenderStyle::inheritedNotEqual):
- (WebCore::RenderStyle::diff):
- * rendering/RenderStyle.h:
- * rendering/RenderTreeAsText.cpp:
- (WebCore::write):
- (WebCore::externalRepresentation):
- * xpath/XPathEvaluator.cpp:
- * xpath/XPathEvaluator.h:
- * xpath/XPathExpression.cpp:
- * xpath/XPathExpression.h:
- * xpath/XPathNSResolver.cpp:
- * xpath/XPathNSResolver.h:
- * xpath/XPathNamespace.cpp:
- * xpath/XPathNamespace.h:
- * xpath/XPathResult.cpp:
- * xpath/XPathResult.h:
- * xpath/impl/XPathExpressionNode.cpp:
- * xpath/impl/XPathExpressionNode.h:
- * xpath/impl/XPathFunctions.cpp:
- * xpath/impl/XPathFunctions.h:
- * xpath/impl/XPathGrammar.y:
- * xpath/impl/XPathParser.cpp:
- * xpath/impl/XPathParser.h:
- * xpath/impl/XPathPath.cpp:
- * xpath/impl/XPathPath.h:
- * xpath/impl/XPathPredicate.cpp:
- * xpath/impl/XPathPredicate.h:
- * xpath/impl/XPathStep.cpp:
- * xpath/impl/XPathStep.h:
- * xpath/impl/XPathUtil.cpp:
- * xpath/impl/XPathUtil.h:
- * xpath/impl/XPathValue.cpp:
- * xpath/impl/XPathValue.h:
- * xpath/impl/XPathVariableReference.cpp:
- * xpath/impl/XPathVariableReference.h:
- Change all #if SVG_SUPPORT to #ifdef SVG_SUPPORT and
- #if XPATH_SUPPORT to #ifdef XPATH_SUPPORT
- (except for one #if !SVG_SUPPORT to a #ifndef SVG_SUPPORT
- in RenderTreeAsText.cpp)
- 2006-08-08 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10230
- SVGDOMImplementation should die (and be rolled into DOMImplementation)
- Delete SVGDOMImplementation and references to it. The
- svg specific functionality is now in DOMImplementation.
- * WebCore.xcodeproj/project.pbxproj:
- * dom/DOMImplementation.cpp:
- (WebCore::svgFeatureSet):
- (WebCore::DOMImplementation::hasFeature):
- (WebCore::DOMImplementation::createDocument):
- (WebCore::DOMImplementation::createSVGDocument):
- * dom/DOMImplementation.h:
- * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Removed.
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- * ksvg2/svg/SVGColor.cpp:
- * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
- * ksvg2/svg/SVGDocument.cpp:
- (WebCore::SVGDocument::SVGDocument):
- * ksvg2/svg/SVGDocument.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::isSupported):
- * ksvg2/svg/SVGFEBlendElement.cpp:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- * ksvg2/svg/SVGFEComponentTransferElement.cpp:
- * ksvg2/svg/SVGFECompositeElement.cpp:
- * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
- * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
- * ksvg2/svg/SVGFEFloodElement.cpp:
- * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
- * ksvg2/svg/SVGFELightElement.cpp:
- * ksvg2/svg/SVGFEMergeElement.cpp:
- * ksvg2/svg/SVGFEOffsetElement.cpp:
- * ksvg2/svg/SVGFESpecularLightingElement.cpp:
- * ksvg2/svg/SVGFETileElement.cpp:
- * ksvg2/svg/SVGFETurbulenceElement.cpp:
- * ksvg2/svg/SVGGradientElement.cpp:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/SVGPolyElement.cpp:
- * ksvg2/svg/SVGStopElement.cpp:
- * ksvg2/svg/SVGStyledElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::isValid):
- * ksvg2/svg/SVGTransformable.cpp:
- * page/Frame.cpp:
- (WebCore::Frame::begin):
- 2006-08-07 Brady Eidson <beidson@apple.com>
- Reviewed by Anders and John
- Icons can now refresh when new data is sent from WebKit, both on disk and in memory
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (WebCore::IconDatabase::loadIconFromURL): Allows WebCore/Kit to kick off a load
- outside of any greater context
- (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
- (-[WebCoreIconDatabaseBridge isIconExpiredForPageURL:]): Allows WebKit
- to get whether or not an icon has expired
- * loader/icon/IconDatabase.cpp:
- (WebCore::IconDatabase::recreateDatabase): Changed database schema slightly
- (WebCore::IconDatabase::createPrivateTables): Changed database schema slightly
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::IconDatabase::isIconExpiredForIconURL): Get if an icon has expired
- (WebCore::IconDatabase::isIconExpiredForPageURL): Get if an icon has expired
- (WebCore::IconDatabase::setIconDataForIconURL): Force a refresh of the in memory
- image when new icon data is loaded
- (WebCore::IconDatabase::setIconURLForPageURL): added a check for null iconID
- * loader/icon/IconDatabase.h: added/changed some methods
- * loader/icon/SiteIcon.cpp:
- (SiteIcon::getImage): simplified/removed debugging code
- (SiteIcon::manuallySetImageData): allow the image data to be changed when new icon
- data is loaded
- 2006-08-05 Darin Adler <darin@apple.com>
- Reviewed by Eric Seidel.
- - fix a storage leak
- * rendering/RenderView.cpp: (WebCore::RenderView::setSelection):
- Delete the values if we are going to exit without using the maps.
- Otherwise all the values leak.
- 2006-08-05 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10213
- REGRESSION: Crash in WebCore::RenderLayer::isTransparent involving <iframe> and <select>
- Test: fast/frames/iframe-option-crash.xhtml
- * rendering/RenderView.cpp: (WebCore::RenderView::paintBoxDecorations):
- Check for a nil renderer.
- 2006-08-04 David Hyatt <hyatt@apple.com>
- Fix for Radar bug #4644045, regression where dragging selection no longer
- works for floats contained inside layers. I added an optimization to
- refine dirty rect checking for layers, and it incorrectly excluded floats
- from the paint bounds since PaintPhaseSelection was not considered when
- analyzing the floatRect().
- Reviewed by beth
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::paint):
- 2006-08-04 David Hyatt <hyatt@apple.com>
- Fix remove() so that it is equivalent to calling removeChild on the
- parent. This involved moving three operations that remove did.
- (1) Move the accessibility object cache removal into the destroy methods,
- since this really should just happen when a render object is going away.
- (2) removeFromObjectLists shifted into removeChild, which means it will
- now be called more often (this is a correct change). Note that there is
- also now a new guard on removeFromObjectLists so that it won't do any
- work unless the document is not being destroyed.
- (3) The big one. deleteLineBoxWrapper was not getting called to clean up
- the line box tree. This moved right into RenderContainer's removeChildNode so
- that it is now done even in the lowest level RenderContainer removal primitive.
- Reviewed by beth
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::removeChildNode):
- (WebCore::RenderContainer::removeChild):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::removeFromObjectLists):
- (WebCore::RenderObject::destroy):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::remove):
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::destroy):
- 2006-08-04 David Hyatt <hyatt@apple.com>
- Back out the fix for list marker crashes. The actual bug here is that
- there is a confusing mismatch between remove() and removeChild() in the
- render tree. remove() does a little bit of extra work that removeChild
- should be doing instead (so that remove() can just be a shorthand for
- removeChild).
- This conservative fix does not solve the remove/removeChild mismatch
- but instead just changes the list marker updating code to use remove
- instead.
- Reviewed by beth
- Test Case: fast/lists/dynamic-marker-crash.html
- * rendering/ListMarkerBox.cpp:
- * rendering/ListMarkerBox.h:
- * rendering/RenderListItem.cpp:
- (WebCore::RenderListItem::updateMarkerLocation):
- 2006-08-04 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10192
- Make WebCore (and friends) compile with -Wshorten-64-to-32
- * Adds -Wshorten-64-to-32 flag to Xcode project.
- * Adds 'f' to float literals where expecting a float.
- * Use cosf() instead of cos() when assigning to a float.
- * WebCore.xcodeproj/project.pbxproj:
- * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m:
- (+[WKDiffuseLightingFilter initialize]):
- * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m:
- (-[WKDiscreteTransferFilter outputImage]):
- * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m:
- (+[WKDisplacementMapFilter initialize]):
- * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m:
- (+[WKSpecularLightingFilter initialize]):
- * kcanvas/device/quartz/filters/WKSpotLightFilter.m:
- (-[WKSpotLightFilter outputImage]):
- * kcanvas/device/quartz/filters/WKTableTransferFilter.m:
- (-[WKTableTransferFilter outputImage]):
- 2006-08-03 David Hyatt <hyatt@apple.com>
- Fix for bug 10229, don't bother trying to clear when no floats are
- present. I suspect there's still a bug in the math that follows, but
- this fix is safer in that it just does the obvious thing (and doesn't
- compute any clearance if no floats are even around).
- Reviewed by maciej
- * ChangeLog:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::getClearDelta):
- 2006-08-03 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4641033/4515463/4052426/4046570/4053718/4053724/4060115/4062858>
- Copy/Paste fidelity was bad.
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyInlineStyle):
- * editing/markup.cpp:
- (WebCore::startMarkup): We were not adding non-inheritable styles
- to the markup for an element unless they were in the elements inline
- style declaration.
- 2006-08-03 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10176
- Make WebCore compile with -Wundef
- * Adds -Wundef flag to Xcode project
- * Converts #ifs to #ifdef and #ifndefs where needed.
- * Replaces #ifdef WIN32 with #if PLATFORM(WIN_OS) or PLATFORM(WIN)
- (and in one instance in config.h with #if !COMPILER(MSVC))
- * Added #define YYMAXDEPTH 10000 in XPathGrammar.y and CSSGrammar.y
- to fix a warning from within Bison.
- * Cleaned up style a little in surrounding code.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreAXObject.mm:
- (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
- * config.h:
- * css/CSSGrammar.y:
- * css/MediaFeatureNames.cpp:
- * css/MediaFeatureNames.h:
- * css/cssparser.cpp:
- * dom/ContainerNode.cpp:
- (WebCore::ContainerNode::setActive):
- * dom/Element.cpp:
- (WebCore::Element::attach):
- * dom/Element.h:
- * dom/EventNames.cpp:
- * dom/EventNames.h:
- * dom/NamedAttrMap.h:
- * dom/Position.cpp:
- * dom/QualifiedName.cpp:
- * dom/QualifiedName.h:
- * dom/Range.h:
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::error):
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptHandler):
- (WebCore::HTMLTokenizer::scriptExecution):
- (WebCore::HTMLTokenizer::parseTag):
- (WebCore::HTMLTokenizer::continueProcessing):
- (WebCore::HTMLTokenizer::write):
- (WebCore::HTMLTokenizer::timerFired):
- (WebCore::HTMLTokenizer::notifyFinished):
- * kcanvas/device/quartz/KCanvasFilterQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * ksvg2/css/SVGRenderStyle.h:
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/scripts/make_names.pl:
- * loader/CachedResource.h:
- * loader/LoaderFunctions.h:
- * loader/loader.h:
- * page/Frame.cpp:
- * page/FrameTree.cpp:
- * page/FrameView.cpp:
- (WebCore::FrameView::clear):
- (WebCore::FrameView::layout):
- (WebCore::FrameView::layoutTimerFired):
- (WebCore::FrameView::scheduleRelayout):
- (WebCore::FrameView::unscheduleRelayout):
- * platform/AtomicString.cpp:
- * platform/AtomicString.h:
- * platform/Cursor.h:
- * platform/DeprecatedArray.h:
- * platform/DeprecatedString.cpp:
- (WebCore::allocateHandle):
- (WebCore::initializeHandleNodeBlock):
- (WebCore::freeHandle):
- * platform/FloatPoint.h:
- * platform/FloatRect.h:
- * platform/FloatSize.h:
- * platform/GraphicsContext.h:
- * platform/Image.h:
- * platform/IntPoint.h:
- * platform/IntRect.h:
- (WebCore::IntRect::inflateX):
- (WebCore::IntRect::inflateY):
- * platform/IntSize.h:
- * platform/PlatformKeyboardEvent.h:
- * platform/PlatformMouseEvent.h:
- * platform/PlatformString.h:
- * platform/ResourceLoader.h:
- * platform/ResourceLoaderInternal.h:
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/ScrollView.h:
- * platform/StaticConstructors.h:
- * platform/StreamingTextDecoderICU.cpp:
- (WebCore::StreamingTextDecoderICU::convert):
- * platform/StringImpl.h:
- * platform/Widget.h:
- * platform/mac/BlockExceptions.mm:
- * platform/mac/ColorMac.mm:
- (+[WebCoreControlTintObserver WebCore]):
- * platform/mac/FloatPointMac.mm:
- * platform/mac/FloatRectMac.mm:
- * platform/mac/FloatSizeMac.mm:
- * platform/mac/FontMac.mm:
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawFocusRing):
- * platform/mac/IntPointMac.mm:
- * platform/mac/IntRectMac.mm:
- * platform/mac/IntSizeMac.mm:
- * platform/mac/WebCoreSystemInterface.h:
- * rendering/RenderBlock.h:
- * rendering/RenderTableCell.h:
- * rendering/bidi.cpp:
- (WebCore::appendRun):
- (WebCore::RenderBlock::layoutInlineChildren):
- * xml/XSLTProcessor.cpp:
- (WebCore::parseErrorFunc):
- * xpath/impl/XPathGrammar.y:
- 2006-08-03 Adam Roben <aroben@apple.com>
- Reviewed by Maciej and Beth.
- Fix use-after-dispose heap corruption bug.
- * rendering/ListMarkerBox.cpp:
- (WebCore::ListMarkerBox::destroy): Only call removeChild if we're not
- destroying the document
- 2006-08-03 Adam Roben <aroben@apple.com>
- Reviewed by Anders.
- - Fixed Windows build.
- * platform/Color.cpp:
- (WebCore::makeRGBAFromHSLA): Whitespace change
- * platform/win/TemporaryLinkStubs.cpp: Add new method stubs
- (PlatformScrollBar::PlatformScrollBar):
- (PlatformScrollBar::~PlatformScrollBar):
- (PlatformScrollBar::width):
- (PlatformScrollBar::height):
- (PlatformScrollBar::setEnabled):
- (PlatformScrollBar::paint):
- (PlatformScrollBar::setScrollBarValue):
- (PlatformScrollBar::setKnobProportion):
- (PlatformScrollBar::setRect):
- (ScrollBar::ScrollBar):
- (ScrollBar::scroll):
- (ScrollBar::setValue):
- 2006-08-02 Justin Garcia <justin.garcia@apple.com>
- Reviewed by mjs
-
- <http://bugs.webkit.org/show_bug.cgi?id=10225>
- GMail Editor: Change Hilite Color doesn't work
- * editing/JSEditor.cpp: Added support for execCommand("HiliteColor", ...).
- It's what GMail uses to implement text hiliting. It's just a synonym for BackColor.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::nodeWillBeRemoved): Moved a comment
- a more appropriate place.
- 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Adele and Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10177
- REGRESSION: Successfully dragging text into a disabled field
- Test: fast/forms/textfield-drag-into-disabled.html
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::createDivStyle): Changed to set -webkit-user-modify
- to read-only on the inner div if the control is disabled.
- (WebCore::RenderTextControl::updateFromElement): Ditto.
- 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10198
- REGRESSION: WebKit r15750 crashes while loading anthem.com
- Test: fast/overflow/generated-content-crash.html
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::updateScrollInfoAfterLayout): Added a null check for
- the renderer's element. Generated content does not have an element and
- therefore does not need to maintain overflow status.
- 2006-08-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10202
- REGRESSION: Repro crash when loading an empty image document
- Test: fast/tokenizer/image-empty-crash.html
- * loader/ImageDocument.cpp:
- (WebCore::ImageTokenizer::stopParsing): Added null check for m_imageElement.
- (WebCore::ImageTokenizer::finish): Ditto.
- 2006-08-03 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - clean up "flip"-related code a tiny bit
- * platform/Screen.h: Removed redundant parameter names.
- * platform/mac/ScreenMac.mm:
- (WebCore::flipScreenRect): Changed to call flipScreenPoint so we only have one
- copy of the flipping code.
- (WebCore::flipScreenPoint): Fixed indentation.
- * bridge/mac/WebCoreFrameBridge.mm: (globalPoint): Removed type casts and
- simplified a bit.
- * platform/mac/PlatformMouseEventMac.mm: (WebCore::globalPositionForEvent):
- * platform/mac/WheelEventMac.mm: (WebCore::globalPositionForEvent):
- Removed unneeded local variable.
- 2006-08-02 David Hyatt <hyatt@apple.com>
- Abstract RenderLayer scrollbar creation and destruction so that there
- is a clean spot in which to drop in engine scrollbar stuff.
- Reviewed by timo
- * platform/ScrollBar.h:
- (WebCore::ScrollBar::hasPlatformScrollBars):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::createScrollbar):
- (WebCore::RenderLayer::destroyScrollbar):
- (WebCore::RenderLayer::setHasHorizontalScrollbar):
- (WebCore::RenderLayer::setHasVerticalScrollbar):
- * rendering/RenderLayer.h:
- 2006-08-02 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=3438
- incorrect display of transparent 1x1 PNGs
- Test: fast/replaced/image-solid-color-with-alpha.html
- * platform/mac/ImageMac.mm:
- (WebCore::Image::checkForSolidColor): Changed to divide each color component
- by the alpha component. You need to do that since the bitmap context has
- premultiplied alpha but m_solidColor should be non-premultiplied.
- 2006-08-02 Adam Roben <aroben@apple.com>
- Reviewed by Brady.
- - Remove redundant #include
- * loader/loader.cpp:
- 2006-07-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=9955
- Colors scaled from [0, 1] range to [0, 255] incorrectly
-
- Fixes scaling issue and fixes Color to follow style guidelines.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
- * platform/Color.cpp:
- (WebCore::calcHue):
- (WebCore::makeRGBAFromHSLA):
- (WebCore::Color::Color):
- (WebCore::Color::name):
- (WebCore::Color::setNamedColor):
- (WebCore::Color::light):
- (WebCore::Color::dark):
- (WebCore::blend):
- * platform/Color.h:
- (WebCore::Color::Color):
- (WebCore::Color::isValid):
- (WebCore::Color::red):
- (WebCore::Color::green):
- (WebCore::Color::blue):
- (WebCore::Color::alpha):
- (WebCore::Color::rgb):
- (WebCore::Color::setRGB):
- (WebCore::operator==):
- (WebCore::operator!=):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorder):
- 2006-07-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
- - fix http://bugs.webkit.org/show_bug.cgi?id=10158
- REGRESSION: Selection highlight is dark and opaque when solid-color images are used
- Reviewed by Darin.
- Pixel test: fast/backgrounds/solid-color-context-restore.html
- * platform/mac/ImageMac.mm:
- (WebCore::Image::draw): Added calls to preserve the graphics context
- around the painting of a solid color image.
- (WebCore::Image::drawTiled): Ditto.
- 2006-07-31 Maciej Stachowiak <mjs@apple.com>
- Rubber-stamped by Tim Hatcher.
- - renamed TransferJob to ResourceLoader
- * Projects/gdk/webcore-gdk.bkl:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreResourceLoaderImp.h:
- * bridge/mac/WebCoreResourceLoaderImp.mm:
- (-[WebCoreResourceLoaderImp redirectedToURL:]):
- (-[WebCoreResourceLoaderImp addData:]):
- (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
- * bridge/win/FrameWin.cpp:
- * dom/XMLTokenizer.cpp:
- (WebCore::openFunc):
- * loader/Cache.cpp:
- * loader/LoaderFunctions.h:
- * loader/loader.cpp:
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::receivedResponse):
- (WebCore::Loader::receivedData):
- (WebCore::Loader::cancelRequests):
- (WebCore::Loader::jobForRequest):
- * loader/loader.h:
- * loader/mac/LoaderFunctionsMac.mm:
- (WebCore::ServeSynchronousRequest):
- * platform/ResourceLoader.cpp: Added.
- (WebCore::ResourceLoader::ResourceLoader):
- (WebCore::ResourceLoader::isErrorPage):
- (WebCore::ResourceLoader::error):
- (WebCore::ResourceLoader::setError):
- (WebCore::ResourceLoader::queryMetaData):
- (WebCore::ResourceLoader::addMetaData):
- (WebCore::ResourceLoader::kill):
- (WebCore::ResourceLoader::url):
- (WebCore::ResourceLoader::postData):
- (WebCore::ResourceLoader::method):
- (WebCore::ResourceLoader::client):
- * platform/ResourceLoader.h: Added.
- (WebCore::ResourceLoader::getInternal):
- * platform/ResourceLoaderClient.h: Added.
- (WebCore::ResourceLoaderClient::~ResourceLoaderClient):
- (WebCore::ResourceLoaderClient::receivedRedirect):
- (WebCore::ResourceLoaderClient::receivedResponse):
- (WebCore::ResourceLoaderClient::receivedData):
- (WebCore::ResourceLoaderClient::receivedAllData):
- * platform/ResourceLoaderInternal.h: Added.
- (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
- * platform/TransferJob.cpp: Removed.
- * platform/TransferJob.h: Removed.
- * platform/TransferJobClient.h: Removed.
- * platform/TransferJobInternal.h: Removed.
- * platform/gdk/FrameGdk.cpp:
- (WebCore::FrameGdk::openURL):
- (WebCore::FrameGdk::urlSelected):
- (WebCore::FrameGdk::receivedData):
- (WebCore::FrameGdk::receivedAllData):
- * platform/gdk/FrameGdk.h:
- * platform/gdk/ResourceLoaderCurl.cpp: Added.
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::cancel):
- * platform/gdk/ResourceLoaderManager.cpp: Added.
- (WebCore::ResourceLoaderManager::ResourceLoaderManager):
- (WebCore::ResourceLoaderManager::get):
- (WebCore::ResourceLoaderManager::useSimpleTransfer):
- (WebCore::writeCallback):
- (WebCore::ResourceLoaderManager::downloadTimerCallback):
- (WebCore::ResourceLoaderManager::remove):
- (WebCore::ResourceLoaderManager::add):
- (WebCore::ResourceLoaderManager::cancel):
- * platform/gdk/ResourceLoaderManager.h: Added.
- * platform/gdk/TemporaryLinkStubs.cpp:
- (WebCore::ServeSynchronousRequest):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- * platform/gdk/TransferJobCurl.cpp: Removed.
- * platform/gdk/TransferJobManager.cpp: Removed.
- * platform/gdk/TransferJobManager.h: Removed.
- * platform/mac/ResourceLoaderMac.mm: Added.
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- (WebCore::ResourceLoader::setLoader):
- (WebCore::ResourceLoader::receivedResponse):
- (WebCore::ResourceLoader::cancel):
- * platform/mac/TransferJobMac.mm: Removed.
- * platform/win/ResourceLoaderWin.cpp: Added.
- (WebCore::addToOutstandingJobs):
- (WebCore::lookupResourceLoader):
- (WebCore::ResourceLoaderWndProc):
- (WebCore::initializeOffScreenResourceLoaderWindow):
- (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
- (WebCore::ResourceLoader::~ResourceLoader):
- (WebCore::ResourceLoader::start):
- (WebCore::ResourceLoader::fileLoadTimer):
- (WebCore::ResourceLoader::cancel):
- * platform/win/ResourceLoaderWin.h: Added.
- * platform/win/TemporaryLinkStubs.cpp:
- (WebCore::ServeSynchronousRequest):
- (WebCore::ResourceLoader::assembleResponseHeaders):
- (WebCore::ResourceLoader::retrieveCharset):
- * platform/win/TransferJobWin.cpp: Removed.
- * platform/win/TransferJobWin.h: Removed.
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::receivedAllData):
- (WebCore::XMLHttpRequest::receivedRedirect):
- (WebCore::XMLHttpRequest::receivedData):
- * xml/xmlhttprequest.h:
- 2006-07-31 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - removed obsolete cell margin hack
- * rendering/RenderBox.cpp: (WebCore::RenderBox::calcVerticalMargins):
- Set top and bottom margins to 0 for table cells instead of -16384.
- No effect on layout (including layout tests).
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- Added a few comments about differences between this class and the
- what the CSS specification says about computed style.
- 2006-07-31 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9738
- Bug 9738: Unqualified :hover selector ignored in strict parsing mode
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::checkSelector): Restrict the :hover and :active
- exclusion based on onlyHoverActive to quirks mode.
- 2006-07-31 David Hyatt <hyatt@apple.com>
- Fix for bug 10179, digg.com scrolls slowly. Improve fixed positioning
- and fixed backgrounds so that a count of them is kept on the FrameView.
- This allows us to switch slow scrolling on and off as these objects come
- and go.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle):
- (WebCore::CSSStyleSelector::applyProperty):
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::layout):
- (WebCore::FrameView::useSlowRepaints):
- (WebCore::FrameView::setUseSlowRepaints):
- (WebCore::FrameView::addSlowRepaintObject):
- (WebCore::FrameView::removeSlowRepaintObject):
- * page/FrameView.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::paintBoxDecorations):
- 2006-07-31 David Hyatt <hyatt@apple.com>
- Begin disentangling of scrollbar logic in preparation for engine-implemented
- scrollbars. Split ScrollBar into two classes, an abstract base (still named
- ScrollBar) and a new PlatformScrollBar subclass. This subclass is used only
- by platforms that want to continue to use a platform scrollbar (rather than
- the engine one).
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLCanvasElement.h:
- * page/Frame.cpp:
- * platform/PlatformScrollBar.h: Added.
- (WebCore::PlatformScrollBar::isWidget):
- * platform/ScrollBar.h:
- (WebCore::ScrollBarClient::~ScrollBarClient):
- (WebCore::ScrollBar::~ScrollBar):
- (WebCore::ScrollBar::orientation):
- (WebCore::ScrollBar::value):
- (WebCore::ScrollBar::client):
- * platform/mac/PlatformScrollBarMac.mm: Added.
- (-[WebCoreScrollBar initWithPlatformScrollBar:]):
- (-[WebCoreScrollBar detachPlatformScrollBar]):
- (-[WebCoreScrollBar scroll:]):
- (-[WebCoreScrollBar widget]):
- (-[WebCoreScrollBar mouseDown:]):
- (WebCore::PlatformScrollBar::PlatformScrollBar):
- (WebCore::PlatformScrollBar::~PlatformScrollBar):
- (WebCore::PlatformScrollBar::setScrollBarValue):
- (WebCore::PlatformScrollBar::setKnobProportion):
- (WebCore::PlatformScrollBar::scrollbarHit):
- (WebCore::PlatformScrollBar::width):
- (WebCore::PlatformScrollBar::height):
- (WebCore::PlatformScrollBar::setRect):
- (WebCore::PlatformScrollBar::setEnabled):
- (WebCore::PlatformScrollBar::paint):
- * platform/mac/ScrollBarMac.mm: Removed.
- * platform/mac/WebCoreTextArea.mm:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::isPointInScrollbar):
- * rendering/RenderFormElement.cpp:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::horizontalScrollbarWidget):
- (WebCore::RenderLayer::verticalScrollbarWidget):
- (WebCore::RenderLayer::valueChanged):
- (WebCore::RenderLayer::setHasHorizontalScrollbar):
- (WebCore::RenderLayer::setHasVerticalScrollbar):
- (WebCore::RenderLayer::positionScrollbars):
- * rendering/RenderLayer.h:
- * rendering/RenderWidget.h:
- 2006-07-31 Adele Peterson <adele@apple.com>
- Reviewed by John and Anders.
- - Fix for <rdar://problem/4380576> onChange does not get called when field changed by return key
- Test: fast/forms/onchange-enter-submit.html
- Blur (which will fire onChange appropriately) before submitting a form when pressing Enter.
- This matches the sequence of events fired in WinIE.
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
- * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::defaultEventHandler):
- 2006-07-31 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Kevin.
- Moved string debug function outside of the WebCore namespace so that it's
- easier to call in the debugger. I will never doubt Darin again (x100).
- * platform/String.cpp:
- (string):
- 2006-07-31 David Hyatt <hyatt@apple.com>
- Partial fix for 5453. Improve overflow so that when it changes
- dynamically from scroll/auto to hidden that we properly hide the
- scrollbars. Also refine the dirty dashboard region updating so that
- it only happens if the scrollbars genuinely come and go.
- Also eliminate the extra repaint of the entire block. This should not be
- necessary, since the scrollbars repaint themselves already and children
- will repaint already if they move.
- Reviewed by darin
- Adding test case from bug into fast/overflow/dynamic-hidden.html
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::setHasHorizontalScrollbar):
- (WebCore::RenderLayer::setHasVerticalScrollbar):
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- 2006-07-31 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by justin
-
- <http://bugs.webkit.org/show_bug.cgi?id=9507>
- Empty style spans created in applyInlineStyle
-
- Improves paste fidelity because some of these empty font/style spans had a non-zero
- size and were messing up the layout of pasted content:
- <rdar://problem/4515463>
- REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyInlineStyle): Use the adjusted start node instead
- of start.node(). Don't do any application if the endpoints are swapped. Adjust
- endNode if the start node is a descendant of it, so that the pre-order traversal will
- terminate properly.
- 2006-07-31 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
- * platform/String.cpp:
- (WebCore::string): Added a debugging function to create a String from a
- const char*.
- 2006-07-31 Anders Carlsson <acarlsson@apple.com>
- * css/CSSPrimitiveValue.cpp:
- Fix windows build.
- 2006-07-31 Geoffrey Garen <ggaren@apple.com>
- Reinstating my last change. Everything builds now.
-
- 2006-07-31 Geoffrey Garen <ggaren@apple.com>
- Backing out my last change because it causes a build failure in some
- configurations. This seems to be the cleanest way to get svn to cooperate.
- 2006-07-31 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
- Moved files around to make WebCore's structure clearer
- and easier to explain.
- DerivedSources/JS* -> bindings/js/DerivedSources/ (so JS* files
- show up when you search inside bindings/js/, but are marked, at
- the same time, as files that you should not edit manually)
- WebCore+SVG/DOMList.h -> ksvg2/svg/ (only files inside ksvg2/svg/
- use DOMList.h)
- icon -> loader/icon
- I tested that everything still builds.
- 2006-07-30 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher.
- - some improvements for the benefit of the style pane of the inspector
- * css/CSSComputedStyleDeclaration.cpp: Removed background-position
- and border-spacing from the list of properties that show up in
- computed style, because of background-position-x, background-position-y,
- -webkit-border-horizontal-spacing and -webkit-border-vertical-spacing.
- (WebCore::valueForLength): Added handling for undefinedLength, intrinsic,
- and min-intrinsic.
- (WebCore::primitiveValueFromLength): Removed code that would add a
- space to the string for no good reason.
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Added a
- special case for a line clamp of -1, which should come back as "none"
- rather than an actual "-1".
- (WebCore::CSSComputedStyleDeclaration::length): Return 0 if the
- declaration has no corresponding node or no renderer.
- (WebCore::CSSComputedStyleDeclaration::item): Check against length()
- so that the two stay consistent rather than using a constant.
- * css/CSSPrimitiveValue.cpp:
- (WebCore::isCSSTokenizerIdentifier): Added.
- (WebCore::isCSSTokenizerURL): Added.
- (WebCore::quoteString): Added.
- (WebCore::quoteStringIfNeeded): Changed to quote strings in many more
- cases -- any cases where they would not parse in the CSS parser otherwise.
- The main case this affects is font names with spaces in them.
- (WebCore::quoteURLIfNeeded): Added.
- (WebCore::CSSPrimitiveValue::cssText): Use quoteURLIfNeeded in the case
- where we're making the text form of a URI.
- * css/tokenizer.flex: Whitespace tweaks to line things up better.
- 2006-07-30 Eric Seidel <eric@webkit.org>
- Reviewed by gramps!
- Remove some unused SVG code.
- * ksvg2/ecma/Ecma.cpp: Removed.
- * ksvg2/ecma/Ecma.h: Removed.
- * ksvg2/ecma/GlobalObject.cpp: remove a couple dead functions.
- * ksvg2/ecma/GlobalObject.h: add a comment about this dead code.
- * ksvg2/ecma/SVGLookup.h: Removed.
- 2006-07-29 Darin Adler <darin@apple.com>
- - Removed tabs from these source files that still had them.
- We don't use them; that way source files look fine in editors
- that have tabs set to 8 spaces or to 4 spaces.
- - Removed allow-tabs Subversion property from the files too.
- * bindings/objc/WebScriptObject.h:
- * bindings/objc/WebScriptObject.mm:
- * platform/FontData.cpp:
- 2006-07-29 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- - patch for http://bugs.webkit.org/show_bug.cgi?id=10080
- Adopt pedantic changes from the Unity project to improve
- cross-compiler compatibility
- Changes include:
- * Removing trailing semicolon from namespace braces.
- * Removing trailing comma from last enum declaration.
- * Updating to match style guidelines.
- * Adding missing newline to the end of the file.
- * Turning on gcc warning for missing newline at the end of a source file
- (GCC_WARN_ABOUT_MISSING_NEWLINE in Xcode, -Wnewline in gcc).
- * Alphabetical sorting of Xcode source list files.
- * Use abs() function from <math.h> instead of ABS() macro.
- * Use C-style comments instead of C++ comments in files that might
- be included by either C or C++ files.
- * Use -numeric_limits<double>::infinity() instead of -HUGE_VAL.
- * WebCore+SVG/DOMList.h:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCorePrefix.h:
- * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
- * bindings/js/JSXSLTProcessor.h:
- * bindings/js/kjs_domnode.h:
- (KJS::DOMNode::):
- * bindings/objc/DOMCSS.h:
- (-[DOMCSSValue enum]):
- * bindings/objc/DOMCore.h:
- (-[DOMImplementation createDocument:::]):
- * bindings/objc/DOMEvents.h:
- (-[DOMOverflowEvent enum]):
- * bindings/objc/DOMRange.h:
- * bindings/objc/DOMTraversal.h:
- * bindings/objc/DOMXPath.h:
- (-[DOMXPathNSResolver lookupNamespaceURI:]):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreKeyboardAccess.h:
- * css/makeprop:
- * css/makevalues:
- * dom/ChildNodeList.h:
- * dom/DocPtr.h:
- * dom/Document.h:
- (WebCore::Document::):
- * dom/DocumentMarker.h:
- (WebCore::DocumentMarker::):
- (WebCore::DocumentMarker::operator==):
- (WebCore::DocumentMarker::operator!=):
- * dom/EventTargetNode.h:
- * dom/KeyboardEvent.h:
- (WebCore::KeyboardEvent::):
- * dom/NameNodeList.h:
- (WebCore::NameNodeList::rootNodeChildrenChanged):
- * dom/QualifiedName.cpp:
- * editing/TypingCommand.h:
- (WebCore::TypingCommand::):
- * editing/UnlinkCommand.h:
- (WebCore::UnlinkCommand::editingAction):
- * html/FormDataList.h:
- (WebCore::FormDataListItem::FormDataListItem):
- (WebCore::FormDataList::appendData):
- * html/HTMLBlockquoteElement.h:
- * html/HTMLDivElement.h:
- * html/HTMLFormElement.h:
- * html/HTMLHRElement.h:
- * html/HTMLHeadingElement.h:
- * html/HTMLMarqueeElement.h:
- * html/HTMLParagraphElement.h:
- * html/HTMLPlugInElement.h:
- * html/HTMLPreElement.h:
- * html/HTMLTokenizer.h:
- (WebCore::HTMLTokenizer::State::):
- * icon/IconDatabase.cpp:
- * icon/SQLStatement.cpp:
- * kcanvas/KCanvasFilters.h:
- (WebCore::):
- (WebCore::KCanvasPoint3F::KCanvasPoint3F):
- (WebCore::KCanvasFilter::KCanvasFilter):
- (WebCore::KCanvasFilter::~KCanvasFilter):
- (WebCore::KCanvasFilterEffect::~KCanvasFilterEffect):
- (WebCore::KCComponentTransferFunction::KCComponentTransferFunction):
- (WebCore::KCanvasFEConvolveMatrix::KCanvasFEConvolveMatrix):
- (WebCore::KCLightSource::KCLightSource):
- (WebCore::KCDistantLightSource::KCDistantLightSource):
- (WebCore::KCPointLightSource::KCPointLightSource):
- (WebCore::KCSpotLightSource::KCSpotLightSource):
- (WebCore::KCanvasFEDiffuseLighting::KCanvasFEDiffuseLighting):
- (WebCore::KCanvasFEDisplacementMap::KCanvasFEDisplacementMap):
- (WebCore::KCanvasFEImage::KCanvasFEImage):
- (WebCore::KCanvasFESpecularLighting::KCanvasFESpecularLighting):
- * kcanvas/RenderSVGImage.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
- * ksvg2/css/SVGRenderStyle.h:
- (WebCore::SVGRenderStyle::InheritedFlags::):
- (WebCore::SVGRenderStyle::NonInheritedFlags::):
- * ksvg2/css/SVGRenderStyleDefs.h:
- (WebCore::):
- * ksvg2/events/SVGZoomEvent.h:
- * ksvg2/ksvg.h:
- (WebCore::):
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/misc/SVGImageLoader.h:
- * ksvg2/scripts/make_names.pl:
- * ksvg2/svg/SVGAElement.h:
- * ksvg2/svg/SVGAngle.h:
- * ksvg2/svg/SVGAnimateColorElement.h:
- * ksvg2/svg/SVGAnimateElement.h:
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedAngle.h:
- * ksvg2/svg/SVGAnimatedBoolean.h:
- * ksvg2/svg/SVGAnimatedColor.h:
- * ksvg2/svg/SVGAnimatedEnumeration.h:
- * ksvg2/svg/SVGAnimatedInteger.h:
- * ksvg2/svg/SVGAnimatedLength.h:
- * ksvg2/svg/SVGAnimatedLengthList.h:
- * ksvg2/svg/SVGAnimatedNumber.h:
- * ksvg2/svg/SVGAnimatedNumberList.h:
- * ksvg2/svg/SVGAnimatedPathData.h:
- * ksvg2/svg/SVGAnimatedPoints.h:
- * ksvg2/svg/SVGAnimatedPreserveAspectRatio.h:
- * ksvg2/svg/SVGAnimatedRect.h:
- * ksvg2/svg/SVGAnimatedString.h:
- * ksvg2/svg/SVGAnimatedTemplate.h:
- * ksvg2/svg/SVGAnimatedTransformList.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- (SVGAnimationElement::calculateCurrentValueItem):
- (SVGAnimationElement::calculateRelativeTimePercentage):
- * ksvg2/svg/SVGAnimationElement.h:
- (WebCore::):
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGDOMImplementation.h:
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGDescElement.h:
- * ksvg2/svg/SVGDocument.h:
- * ksvg2/svg/SVGElement.h:
- (WebCore::SVGElement::rendererIsNeeded):
- (WebCore::svg_dynamic_cast):
- * ksvg2/svg/SVGElementInstance.h:
- * ksvg2/svg/SVGElementInstanceList.h:
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDisplacementMapElement.h:
- * ksvg2/svg/SVGFEDistantLightElement.h:
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEFuncAElement.h:
- * ksvg2/svg/SVGFEFuncBElement.h:
- * ksvg2/svg/SVGFEFuncGElement.h:
- * ksvg2/svg/SVGFEFuncRElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEImageElement.h:
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.h:
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFEPointLightElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFESpotLightElement.h:
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * ksvg2/svg/SVGFitToViewBox.h:
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGGElement.h:
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGHelper.h:
- (WebCore::):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGLangSpace.h:
- * ksvg2/svg/SVGLength.h:
- * ksvg2/svg/SVGLengthList.h:
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGList.h:
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGMatrix.h:
- * ksvg2/svg/SVGNumber.h:
- * ksvg2/svg/SVGNumberList.h:
- * ksvg2/svg/SVGPaint.h:
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPathSeg.h:
- * ksvg2/svg/SVGPathSegArc.h:
- * ksvg2/svg/SVGPathSegClosePath.h:
- * ksvg2/svg/SVGPathSegCurvetoCubic.h:
- * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
- * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
- * ksvg2/svg/SVGPathSegLineto.h:
- * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
- * ksvg2/svg/SVGPathSegLinetoVertical.h:
- * ksvg2/svg/SVGPathSegList.h:
- * ksvg2/svg/SVGPathSegMoveto.h:
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGPoint.h:
- * ksvg2/svg/SVGPointList.h:
- * ksvg2/svg/SVGPolyElement.h:
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.h:
- * ksvg2/svg/SVGPreserveAspectRatio.h:
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGRect.h:
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGSVGElement.h:
- * ksvg2/svg/SVGScriptElement.h:
- * ksvg2/svg/SVGSetElement.h:
- * ksvg2/svg/SVGStopElement.h:
- * ksvg2/svg/SVGStringList.h:
- * ksvg2/svg/SVGStylable.h:
- * ksvg2/svg/SVGStyleElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- (WebCore::SVGStyledElement::rendererIsNeeded):
- (WebCore::SVGStyledElement::canvasResource):
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.h:
- * ksvg2/svg/SVGSymbolElement.h:
- * ksvg2/svg/SVGTRefElement.h:
- * ksvg2/svg/SVGTSpanElement.h:
- * ksvg2/svg/SVGTests.h:
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTextPositioningElement.h:
- * ksvg2/svg/SVGTitleElement.h:
- * ksvg2/svg/SVGTransform.h:
- * ksvg2/svg/SVGTransformList.h:
- * ksvg2/svg/SVGTransformable.h:
- * ksvg2/svg/SVGURIReference.h:
- * ksvg2/svg/SVGUseElement.h:
- * ksvg2/svg/SVGViewElement.h:
- * ksvg2/svg/SVGZoomAndPan.h:
- * ksvg2/svg/svgpathparser.h:
- * page/Frame.h:
- (WebCore::):
- * platform/AffineTransform.h:
- * platform/FontCache.cpp:
- (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
- * platform/FontData.cpp:
- (WebCore::FontData::FontData):
- * platform/FontData.h:
- * platform/TextBox.h:
- (WebCore::TextBox::):
- * platform/Timer.cpp:
- (WebCore::TimerBase::heapPop):
- * platform/mac/FontCacheMac.mm:
- * platform/mac/GlyphMapMac.cpp:
- * platform/mac/WebFontCache.mm:
- (betterChoice):
- * rendering/DeprecatedRenderSelect.cpp:
- (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
- * rendering/EllipsisBox.h:
- * rendering/RenderBR.h:
- (WebCore::RenderBR::renderName):
- (WebCore::RenderBR::width):
- * rendering/RenderBlock.h:
- (WebCore::):
- * rendering/RenderFlexibleBox.h:
- * rendering/RenderFlow.h:
- (WebCore::RenderFlow::RenderFlow):
- * rendering/RenderFrame.cpp:
- * rendering/bidi.h:
- * rendering/break_lines.cpp:
- 2006-07-29 Rob Buis <buis@kde.org>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=10151
- ghostmap XHTML + SVG fails due to javascript undefined exception
- Make sure document.URL works when called from a non-HTML document.
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::getValueProperty):
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLDocument::):
- * dom/Document.idl:
- 2006-07-29 Mike Emmel <mike.emmel@gmail.com>
- Reviewed and tweaked by Darin.
- - fixes for Linux build
- (still might not compile, since Darin tweaked but was unable to test).
- * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
- * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
- * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
- before ::.
- * platform/gdk/FrameGdk.h:
- * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
- out of this file.
- * platform/gdk/RenderPopupMenuGdk.h: Added.
- * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
- * platform/gdk/RenderThemeGdk.h:
- * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
- * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
- 2006-07-29 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10022
- Bug 10022: REGRESSION: Crash in WebCore::XMLTokenizer::characters
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::resumeParsing): If the write() call resulted in new callbacks being
- added, don't call through to end() just yet.
- 2006-07-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by John Sullivan.
- - manual test for http://bugs.webkit.org/show_bug.cgi?id=9984
- ASSERTION FAILURE: _private->mouseDownEvent != nil
- (WebKit/WebView/WebHTMLView.m:4863 -[WebHTMLView(WebInternal) _delegateDragSourceActionMask])
- * manual-tests/subview-click-assertion.html: Added.
- 2006-07-29 Andrew Wellington <proton@wiretapped.net>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8587 / <rdar://problem/4631844>
- REGRESSION: {display:list-item} items outside an ol or ul element don't number correctly
- * rendering/RenderListItem.cpp:
- (WebCore::enclosingList): If no real list element is found, use parent instead.
- (WebCore::previousListItem): Check list elements to see if they are list items -- the
- old code assumed that a list would never be a list item but this is entirely possible
- with CSS and especially with the new rule that means any DOM element could act as a list.
- 2006-07-29 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=10147
- REGRESSION: custom attribute values set via javascript are not persistent
- Test: fast/dom/Element/setAttribute-case-insensitivity.html
- * dom/Element.cpp:
- (WebCore::Element::setAttribute): Use the lowercased localName for retrieving the old value, too.
- 2006-07-28 Timothy Hatcher <timothy@apple.com>
- Suggested by Darin.
- Moving the implementation of isContentEditable to the
- the WebPrivate category.
- * bindings/objc/DOM.mm:
- (-[DOMNode isContentEditable]):
- 2006-07-28 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- First part of:
- <rdar://problem/4515463>
- REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page
-
- Migrate to isBlock and enclosingBlock.
- Changed RendereringInfo::isBlock and ReplacementFragment::isBlock
- to wasBlock so that they don't conflict with isBlock and because
- it's more descriptive.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::mergeStartNode):
- (WebCore::ReplacementFragment::wasBlock):
- (WebCore::ReplacementFragment::saveRenderingInfo):
- (WebCore::ReplacementFragment::renderedBlocks):
- (WebCore::RenderingInfo::RenderingInfo):
- (WebCore::ReplaceSelectionCommand::shouldMergeStart):
- (WebCore::ReplaceSelectionCommand::doApply):
- * editing/ReplaceSelectionCommand.h:
- (WebCore::RenderingInfo::wasBlock):
- 2006-07-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- More changes for:
- <rdar://problem/4242293>
- Poor paste fidelity of http://www.google.com/
- * editing/markup.cpp:
- (WebCore::needInterchangeNewlineAfter): Added.
- (WebCore::createMarkup):
- Only add an interchangeNewline if we're annotating for interchange. Can't test
- this until we expose createMarkup in non-annotate mode (I'd expose Range::toHTML).
- Remove the FIXME about prepending the interchangeNewline before creating the rest
- of the markup. Its correct to surround the interchangeNewline in ancestors of the
- adjusted startNode.
- Fixed the check to see if an interchangeNewline is needed (!inSameBlock). This would
- add an interchangeNewline for a selection that started before a table.
- Removed the workaround for the bug where markup for a table was not included when
- selecting the contents of a table, since this change fixes the general problem of
- markup for ancestors of the startNode being left out.
- Don't leave out ancestors of the startNode as we leave their subtrees. Execute the
- code to include them even if we closed ancestors in the ancestorsToClose list.
- 2006-07-28 Timothy Hatcher <timothy@apple.com>
- Reviewed by John.
- Adding isContentEditable to DOMNode's private category.
- * bindings/objc/DOMPrivate.h:
- 2006-07-28 Alexey Proskuryakov <ap@nypop.com>
- Rolling out http://bugs.webkit.org/show_bug.cgi?id=6010 because of failing layout tests.
- Add better SVGLoad event support.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent):
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::dispatchLoadEvent):
- * html/HTMLImageLoader.h:
- * ksvg2/misc/SVGImageLoader.cpp:
- (WebCore::SVGImageLoader::SVGImageLoader):
- * ksvg2/misc/SVGImageLoader.h:
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::parseMappedAttribute):
- * ksvg2/svg/SVGAnimatedBoolean.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::SVGElement):
- (WebCore::SVGElement::parseMappedAttribute):
- * ksvg2/svg/SVGElement.h:
- (WebCore::SVGElement::adjustViewportClipping):
- (WebCore::SVGElement::closeRenderer):
- (WebCore::SVGElement::rendererIsNeeded):
- (WebCore::SVGElement::isClosed):
- (WebCore::svg_dynamic_cast):
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGImageElement.cpp:
- (SVGImageElement::SVGImageElement):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::parseMappedAttribute):
- * ksvg2/svg/SVGScriptElement.cpp:
- (SVGScriptElement::SVGScriptElement):
- (SVGScriptElement::parseMappedAttribute):
- (SVGScriptElement::executeScript):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::callReadyStateChangeListener):
- 2006-07-28 Adele Peterson <adele@apple.com>
- Rolling out http://bugs.webkit.org/show_bug.cgi?id=9753 because of failing layout tests.
- SVG with width and height 100% leaves room for scrollbar on the right.
- * kcanvas/RenderPath.cpp:
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp:
- (WebCore::RenderSVGContainer::layout):
- * ksvg2/svg/SVGCircleElement.cpp:
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGEllipseElement.cpp:
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGLineElement.cpp:
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGRectElement.cpp:
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- 2006-07-27 Eric Seidel <eric@webkit.org>
- Reviewed by darin.
-
- Add better SVGLoad event support.
- http://bugs.webkit.org/show_bug.cgi?id=6010
- There will still need to be additional support added for <link> and <script> elements.
- Not all of the error -> loaded -> error transition cases work yet.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent):
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::dispatchLoadEvent):
- * html/HTMLImageLoader.h:
- (WebCore::HTMLImageLoader::haveFiredLoadEvent):
- (WebCore::HTMLImageLoader::setHaveFiredLoadEvent):
- * ksvg2/misc/SVGImageLoader.cpp:
- (WebCore::SVGImageLoader::SVGImageLoader):
- (WebCore::SVGImageLoader::dispatchLoadEvent):
- * ksvg2/misc/SVGImageLoader.h:
- * ksvg2/svg/SVGAElement.cpp:
- (WebCore::SVGAElement::parseMappedAttribute):
- * ksvg2/svg/SVGAnimatedBoolean.h:
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::SVGElement):
- (WebCore::SVGElement::parseMappedAttribute):
- (WebCore::SVGElement::haveLoadedRequiredResources):
- (WebCore::SVGElement::sendSVGLoadEventIfPossible):
- (WebCore::SVGElement::closeRenderer):
- * ksvg2/svg/SVGElement.h:
- (WebCore::SVGElement::rendererIsNeeded):
- (WebCore::svg_dynamic_cast):
- * ksvg2/svg/SVGExternalResourcesRequired.h:
- * ksvg2/svg/SVGImageElement.cpp:
- (SVGImageElement::SVGImageElement):
- (SVGImageElement::haveLoadedRequiredResources):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::parseMappedAttribute):
- * ksvg2/svg/SVGScriptElement.cpp:
- (WebCore::SVGScriptElement::SVGScriptElement):
- (WebCore::SVGScriptElement::parseMappedAttribute):
- (WebCore::SVGScriptElement::executeScript):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::callReadyStateChangeListener): use new Event() instead of createEvent
- 2006-07-27 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Anders.
- - http://bugs.webkit.org/show_bug.cgi?id=10135
- Cleanup: remove useless parameters from RenderObject::position()
- No test possible (no functionality change)
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::position):
- * rendering/RenderBox.h:
- * rendering/RenderObject.h:
- (WebCore::RenderObject::position):
- * rendering/RenderTableRow.h:
- (WebCore::RenderTableRow::position):
- * rendering/RenderTableSection.h:
- (WebCore::RenderTableSection::position):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::position):
- * rendering/RenderText.h:
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::constructLine):
- (WebCore::RenderBlock::computeVerticalPositionsForLine):
- 2006-07-27 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9753
- SVG with width and height 100% leaves room for scrollbar on the right.
- Relayout children of svg containers, except svg shapes that do not depend on percentages.
- * kcanvas/RenderPath.cpp: (WebCore::RenderPath::hasPercentageValues):
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp: (WebCore::RenderSVGContainer::layout):
- * ksvg2/svg/SVGCircleElement.cpp: (SVGCircleElement::hasPercentageValues):
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGEllipseElement.cpp: (WebCore::SVGEllipseElement::hasPercentageValues):
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGLineElement.cpp: (SVGLineElement::hasPercentageValues):
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGRectElement.cpp: (WebCore::SVGRectElement::hasPercentageValues):
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGStyledElement.h: (WebCore::SVGStyledElement::hasPercentageValues):
- 2006-07-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4242293>
- Poor paste fidelity of http://www.google.com/
- * editing/ApplyStyleCommand.cpp:
- (WebCore::ApplyStyleCommand::applyInlineStyle): Fixed crasher with nil-check.
- * editing/markup.cpp:
- (WebCore::startMarkup): Style information wasn't added to an element if it had
- attributes but no style attribute.
- 2006-07-27 Alexander Kellett <lypanov@kde.org>
- Reviewed by Darin.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9867
- REGRESSION: code that modifies form element in Firefox modifies form attribute in WebKit
- * bindings/scripts/CodeGeneratorJS.pm: add new attribute - HasOverridingNameGetter
- * html/HTMLFormElement.idl:
- 2006-07-27 Rob Buis <buis@kde.org>
- Reviewed by Anders.
- http://bugs.webkit.org/show_bug.cgi?id=8992
- Some HTML DOM attributes have incorrect types
- Adjust idl and dom source code for HTMLImageElement and
- HTMLBaseFontElement to choose correct type for
- HTMLImageElement::border and HTMLBaseFontElement::size
- attributes.
- * html/HTMLBaseFontElement.cpp:
- (WebCore::HTMLBaseFontElement::size):
- (WebCore::HTMLBaseFontElement::setSize):
- * html/HTMLBaseFontElement.h:
- * html/HTMLBaseFontElement.idl:
- * html/HTMLImageElement.cpp:
- (WebCore::HTMLImageElement::border):
- (WebCore::HTMLImageElement::setBorder):
- * html/HTMLImageElement.h:
- * html/HTMLImageElement.idl:
- 2006-07-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4628409>
- Safari crashes in CompositeEditCommand::removeBlockPlaceholder entering text in a web page form
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::removeBlockPlaceholder):
- A script on the page shrinks the textarea down to zero rows just
- before insertion. That gives the shadow div a zero height, removing
- [div, 0] as a candidate for a VisiblePosition. Then
- InsertTextCommand::input() tries to create a VisiblePosition from
- [div, 0] and fails. A nil check is a quick fix. Another might
- be to make positions where there is a caret selection candidates.
- Another might be to make any [div, 0] where div is a shadow div inside
- a form element a candidate.
- 2006-07-27 Graham Dennis <graham.dennis@gmail.com>
- Reviewed by Darin.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=10094
- Japanese characters improperly rendering in TOT
-
- Test: fast/encoding/denormalised-voiced-japanese-chars.html
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance): pass currentCharacter to normalizeVoicingMarks
- (WebCore::WidthIterator::normalizeVoicingMarks): turn the currentCharacter variable
- into an argument as WidthIterator::advance doesn't update m_currentCharacter while
- looping
- 2006-07-27 Eric Seidel <eric@webkit.org>
- Reviewed by ap.
- Complex entities seem to fail on TOT
- http://bugs.webkit.org/show_bug.cgi?id=6390
- Use an alternative work-around to an XML Entity parsing bug.
- * dom/XMLTokenizer.cpp:
- (WebCore::XMLTokenizer::write):
- (WebCore::hackAroundLibXMLEntityBug): added.
- (WebCore::startElementNsHandler):
- (WebCore::endElementNsHandler):
- (WebCore::charactersHandler):
- (WebCore::processingInstructionHandler):
- (WebCore::cdataBlockHandler):
- (WebCore::commentHandler):
- (WebCore::getEntityHandler):
- 2006-07-27 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9938
- Fix viewBox issues in Hixie's test
- Do a more accurate and quicker job of parsing the viewBox
- attribute. Handle properly on negative width/height and
- invalid syntax in general.
- * ksvg2/svg/SVGFitToViewBox.cpp:
- (SVGFitToViewBox::parseViewBox):
- 2006-07-27 Eric Seidel <eric@webkit.org>
- Reviewed by ap.
- Enables getSVGDocument() support for HTMLObjectElement and HTMLEmbedElement
- http://bugs.webkit.org/show_bug.cgi?id=9237
- This patch does not try to autogenerate anything, but enables the SVG functionality.
- Also fix HTMLObjectElement vspace and hspace to be numbers instead of strings to match IE & Firefox.
- * bindings/js/kjs_dom.cpp:
- (KJS::toJS):
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLElement::objectGetter):
- (KJS::HTMLElementFunction::callAsFunction):
- (KJS::JSHTMLElement::objectSetter):
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLElement::):
- * dom/Document.h:
- (WebCore::Document::isSVGDocument):
- * html/HTMLEmbedElement.cpp:
- (WebCore::HTMLEmbedElement::contentDocument):
- (WebCore::HTMLEmbedElement::getSVGDocument):
- * html/HTMLEmbedElement.h:
- * html/HTMLObjectElement.cpp:
- (WebCore::HTMLObjectElement::HTMLObjectElement):
- (WebCore::HTMLObjectElement::getInstance):
- (WebCore::HTMLObjectElement::parseMappedAttribute):
- (WebCore::HTMLObjectElement::contentDocument):
- (WebCore::HTMLObjectElement::rendererIsNeeded):
- (WebCore::HTMLObjectElement::createRenderer):
- (WebCore::HTMLObjectElement::setCode):
- (WebCore::HTMLObjectElement::setArchive):
- (WebCore::HTMLObjectElement::setBorder):
- (WebCore::HTMLObjectElement::setCodeBase):
- (WebCore::HTMLObjectElement::setCodeType):
- (WebCore::HTMLObjectElement::setData):
- (WebCore::HTMLObjectElement::hspace):
- (WebCore::HTMLObjectElement::setHspace):
- (WebCore::HTMLObjectElement::setStandby):
- (WebCore::HTMLObjectElement::setType):
- (WebCore::HTMLObjectElement::setUseMap):
- (WebCore::HTMLObjectElement::vspace):
- (WebCore::HTMLObjectElement::setVspace):
- (WebCore::HTMLObjectElement::getSVGDocument):
- * html/HTMLObjectElement.h:
- * ksvg2/svg/SVGDocument.h:
- (WebCore::SVGDocument::isSVGDocument):
- * rendering/RenderWidget.h:
- (WebCore::RenderWidget::frameView):
- 2006-07-26 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=9901
- XSLTProcessor cannot parse text nodes for INPUT ELEMENTS in an XSLT stylesheet
- Test: fast/js/xhtml-serialize.html
- * editing/markup.cpp:
- (WebCore::endMarkup): If the element has child nodes, write a closing tag even if it
- is not permitted in HTML, to make it valid XML.
- 2006-07-26 Alice Liu <alice.liu@apple.com>
- Reviewed by John Sullivan (and Kevin and Timo).
- landing this patch for John et al.
- Fixed <rdar://problem/4651380> REGRESSION (9A232->9A234): existing web clips don't render if you restart Dashboard
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- moved the call to didFirstLayout to above the check for needsLayout
- because we need to call didFirstLayout for every webview, not just
- ones we think need layout.
- 2006-07-26 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
-
- <rdar://problem/4652788>
- REGRESSION: Can't change size or style of any text in message body
- * dom/Node.cpp:
- (WebCore::Node::isContentRichlyEditable): Mimic Node::isContentEditable.
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::isContentRichlyEditable): First check
- the frame for editability, then userModify, like what
- HTMLElement::isContentEditable() does.
- * html/HTMLElement.h:
- 2006-07-26 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by ap.
- - fix debug-only information() string for table cells
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::information):
- 2006-07-25 David Harrison <harrison@apple.com>
- Reviewed by timo and Darin.
- <rdar://problem/4618584> "Paste and Match Style" is not working in Mail (add SPI)
-
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
- Add matchStyle parameter for use by WebKit.
- 2006-07-25 Justin Garcia <justin.garcia@apple.com>
- Reviewed by adele
-
- <rdar://problem/4649560>
- REGRESSION: Can't Select All when the body is contentEditable="true"
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::canonicalPosition): Allow descent from a non-editable html
- element into an editable body as a convenience.
- 2006-07-25 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
-
- <rdar://problem/4468458> Incoming HTML message is editable <body contenteditable="true">
- * dom/Document.cpp:
- (WebCore::Document::inDesignMode): Removed some spaces.
- * page/Frame.cpp:
- (WebCore::Frame::applyEditingStyleToElement): Just add CSS properties needed for editing.
- (WebCore::Frame::removeEditingStyleFromElement): Made this a no-op, we'll remove
- it eventually.
- 2006-07-25 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9717
- Replace IDL ConvertUndefinedToTrue parameter attribute with Optional attribute
- No test added because there is no change in functionality.
- * bindings/js/kjs_binding.cpp: Removed valueToBooleanTreatUndefinedAsTrue() method.
- * bindings/js/kjs_binding.h: Ditto.
- * bindings/scripts/CodeGeneratorJS.pm: Removed support for ConvertUndefinedToTrue parameter attribute.
- * dom/Element.h: Set default value to true for scrollIntoView() and scrollIntoViewIfNeeded() arguments.
- * dom/Element.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
- Fixed name of scrollIntoViewIfNeeded() argument to match implementation.
- * page/DOMWindow.idl: Replaced ConvertUndefinedToTrue attribute with Optional attribute.
- 2006-07-24 Dan Waylonis <waylonis@google.com>
- Reviewed and tweaked a bunch by Darin.
- Test: plugins/bindings-test.html
- - fix http://bugs.webkit.org/show_bug.cgi?id=9902
- jsNull and NSNull not properly converted between JS and ObjC
- * bindings/objc/WebScriptObject.mm:
- (+[WebScriptObject _convertValueToObjcValue:originExecutionContext:executionContext:]):
- Added case that converts jsNull to NSNull.
- 2006-07-24 Darin Adler <darin@apple.com>
- Reviewed by Adele and Justin.
- - fix <rdar://problem/4613616> REGRESSION: some spaces typed in <textarea> are posted as non-breaking spaces (9630)
- http://bugs.webkit.org/show_bug.cgi?id=9630
- - also fixes http://bugs.webkit.org/show_bug.cgi?id=9939
- REGRESSION: Pasting text into native text area with newline at end does not preserve newline
- - removed some uses of DeprecatedPtrList in the markup code
- Test: fast/forms/textarea-type-spaces.html
- Test: fast/forms/textarea-paste-newline.html
- * bindings/objc/DOMHTML.mm: (-[DOMHTMLDocument createDocumentFragmentWithText:]):
- Updated call to pass a range -- in this case it is the range of the entire document,
- so this will not handle the whitespace properly.
- * bridge/mac/WebCoreFrameBridge.h: Added range context parameter to the
- documentFragmentWithText: method, so we can handle whitespace properly.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge nodesFromList:]): Changed from DeprecatedPtrList to Vector.
- (-[WebCoreFrameBridge markupStringFromNode:nodes:]): Ditto.
- (-[WebCoreFrameBridge markupStringFromRange:nodes:]): Ditto.
- (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Added range context
- parameter -- pass it on to createFragmentFromText.
- (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]): Changed from
- DeprecatedPtrList to Vector.
- (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
- Pass the range of the current selection as context when creating the fragment.
- * dom/Position.cpp: (WebCore::Position::inRenderedText): Replace range check with
- a call to the new containsCaretOffset function -- helps make the caret work right when
- it is past the end of the last line in a textarea.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::rebalanceWhitespaceAt): Don't do anything if the
- style does not call for collapsing whitespace.
- (WebCore::CompositeEditCommand::rebalanceWhitespace): Call replaceWhitespaceAt
- to share code, including the new logic mentioned above.
- * editing/InsertLineBreakCommand.cpp: (WebCore::InsertLineBreakCommand::doApply):
- Use a text node instead of a break element when inserting and the style is preserveNewline.
- * editing/JSEditor.cpp: (WebCore::execRemoveFormat): Pass the selection range
- to createFragmentFromText.
- * editing/RebalanceWhitespaceCommand.cpp: (WebCore::RebalanceWhitespaceCommand::doApply):
- Assert that we're in a style that collapses whitespace. It's the caller's responsibility
- not to call otherwise.
- * editing/ReplaceSelectionCommand.h: Removed unused destructor, type, isSingleTextNode,
- isTreeFragment, m_type, and added a context parameter to inertFragmentForTestRendering.
- Also changed the constructor to take a selection rather than a pointer to the root
- editable element, replaced removeEndBRIfNeeded with shouldRemoveEndBR and removed an
- unused parameter from shouldMergeEnd.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplacementFragment::ReplacementFragment): Removed code to set up m_type.
- Compute root editable element from passed-in selection. Used the start of the selection
- as a base node for style purposes for the test rendering. Removed the special case
- "single text node" alternative to createFragmentFromText in the plain text case, since
- createFragmentFromText now handles that correctly.
- (WebCore::ReplacementFragment::insertFragmentForTestRendering): Copy the whitespace
- property from the source location when creating a temporary element for test rendering.
- (WebCore::ReplacementFragment::shouldMergeEnd): Removed unneeded boolean
- parameter fragmentHadInterchangeNewlineAtEnd, which is always false.
- (WebCore::ReplaceSelectionCommand::doApply): Update for ReplacementFragment changes,
- change code to not remove end BR when it can be re-used instead, don't call the
- paragraph separator insertion when the position is at the start of a paragraph already,
- removed redundant computation of identical "next" value, removed unneeded boolean
- parameter to shouldMergeEnd, add case for merging when all we need to do is to delete
- a newline character, removed unneeded code to set insertionPos after all code that uses
- it, and use spaces instead of non-breaking spaces when doing smart paste if the
- context is one where we do not collapse white space.
- (WebCore::ReplaceSelectionCommand::shouldRemoveEndBR): Renamed and changed to return
- a boolean instead of doing the removal.
- * editing/markup.h: Use Vector instead of DeprecatedPtrList. Change the
- createFragmentFromText function to take a range for context instead of a document.
- * editing/markup.cpp:
- (WebCore::markup): Use Vector instead of DeprecatedPtrList.
- (WebCore::createMarkup): Ditto.
- (WebCore::createParagraphContentsFromString): Remove unneeded document parameter
- and changed a couple places to use isEmpty instead of comparing with "".
- (WebCore::createFragmentFromText): Given the new context parameter, if the context
- is one that preserves newlines, then use "\n" instead of <br> elements.
- (WebCore::createFragmentFromNodes): Use Vector instead of DeprecatedPtrList.
- * html/HTMLElement.cpp: (WebCore::HTMLElement::setInnerText): Do not use <br>
- elements if the context of this node is one where we preserve newlines.
- * rendering/InlineTextBox.h:
- * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::containsCaretOffset):
- Added. Implements the appropriate rule for determining if a caret position is
- in this line or not. Returns true for both one line and the next in cases where
- affinity must be considered to determine which line the caret is on.
- * rendering/RenderText.h: Make atLineWrap no longer be a member function.
- * rendering/RenderText.cpp:
- (WebCore::atLineWrap): Remove special rule about preserveNewline and isLineBreak,
- which will no longer apply due to the new containsCaretOffset function logic.
- (WebCore::RenderText::caretRect): Use containsCaretOffset.
- (WebCore::RenderText::inlineBox): Ditto.
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::updateFromElement): Make a placeholder <br> element
- after calling setInnerText so that the last newline in the string has the effect
- we expect outside the HTML world (an additional line).
- (WebCore::RenderTextControl::setSelectionRange): Set granularity of the selection
- too. The layout tests caught this problem, which needs a better solution long term.
- (WebCore::RenderTextControl::text): Call textContent with the parameter false
- so it will not include newlines for <br> elements. Now the only <br> element
- that will ever be in the shadow DOM tree is the one to prevent collapsing, and
- that one should not show up in the text value.
- * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Took a rule
- that specifically called out the pre whitespace mode and made it work for all
- the modes that preserve newlines. This makes sure we get a last line box for
- text after the last "\n" even in cases where there is no <br> afterward.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::fixupWhitespace):
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply):
- Added assertions to make sure we don't do anything when we're not collapsing
- whitespace.
- * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::setDefaultValue):
- Changed to use Vector instead of DeprecatedPtrList.
- * editing/HTMLInterchange.cpp: Removed obsolete comment.
- * loader/Cache.h: Removed a stray include.
- 2006-07-24 Adele Peterson <adele@apple.com>
- Reviewed by Justin.
- - Fix for <rdar://problem/4632132> Changing style of content with mixed editability fails
- Test: * editing/style/apple-style-editable-mix.html
- * dom/Node.cpp: (WebCore::Node::isContentRichlyEditable): Doesn't need to check the editable root. It now just
- checks the user modify property of its own renderer, since that is inherited.
- * editing/ApplyStyleCommand.cpp: (WebCore::ApplyStyleCommand::applyInlineStyle): If the end position is in a table,
- Adjust the end node to the last descendant of the table, so we don't skip over any runs.
- 2006-07-24 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - implement String::createCFString
- * WebCore.xcodeproj/project.pbxproj: Added StringImplMac.mm and StringMac.mm.
- * bindings/objc/DOMInternal.mm: Moved NSString conversion functions out of here.
- * platform/mac/StringImplMac.mm: Added. Moved NSString conversion members here
- and added the CFStringRef ones.
- * platform/mac/StringMac.mm: Added. Ditto.
- 2006-07-24 David Hyatt <hyatt@apple.com>
- Two bug fixes.
- (1) Make sure to mark positioned objects that depend on line position to
- mark themselves as needing layout when their line box placeholder gets
- repositioned.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::position):
-
- (2) Improve highlighting to factor the inflation into overflow so that
- invalidation and repainting will work properly.
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::addHighlightOverflow):
- * rendering/RootInlineBox.h:
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren):
- 2006-07-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- <rdar://problem/4641824> REGRESSION: Wikipedia widget fails to complete a search after pressing return key
-
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- Don't eat enter events for search fields that have no enclosing form; they need to be passed to AppKit so
- that onsearch can be invoked.
-
- * manual-tests/onsearch-enter.html: Added.
- 2006-07-24 Dave MacLachlan <dmaclach@mac.com>
- Reviewed by Darin and Alexey.
-
- Fix for: <http://bugs.webkit.org/show_bug.cgi?id=8425>
- and <http://bugs.webkit.org/show_bug.cgi?id=6947>
- Test: svg/custom/non-opaque-filters.svg
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- (WebCore::KCanvasFilterQuartz::prepareFilter):
- We create an autorelease pool so we can control the deallocation of the
- CIContext that we're creating. The CIContext retains the CGContext that
- you pass it internally so when the CIContext is released, the
- CGContext is released as well.
- This is all fine and dandy unless you wrap the creation of the CIFilter
- with a pair of CGBegin/EndTransparencyLayer calls which swap the context
- out from underneath you. So if you start with context A,
- CGBeginTransparencyLayer swaps it out and gives you B. You create a CIFilter
- with it and add a reference to B. CGEndTransparencyLayer swaps out B and
- gives you back A. Autorelease pool comes and cleans up the Filter, and calls
- release on A, but A never got the refcount in the first place. B did. BOOM!
- So we create a pool, then do a retain, then release the pool so that we
- don't have to worry about the pool releasing it at a later time.
- See <rdar://problem/4647735> for reduction of CGEndTransparencyLayer case
- 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9669
- Incomplete repaint when changing an inline's border
- Test: fast/repaint/line-overflow.html
- * rendering/RenderBlock.h:
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren): Added repaintTop and repaintBottom
- variables to track the vertical edges of the area that changed, accounting for
- lines that were deleted, inserted or moved. Removed unnecessary updating of
- m_overflowHeight.
- (WebCore::RenderBlock::determineStartPosition): Removed unnecessary updating of
- m_overflowHeight.
- (WebCore::RenderBlock::determineEndPosition):
- (WebCore::RenderBlock::matchedEndLine): Added repaintTop and repaintBottom
- arguments, which this method updates to account for deleted lines.
- (WebCore::RenderBlock::checkLinesForOverflow): Removed outdated FIXME.
- 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10075
- REGRESSION: Reversed pop-up text in visually-ordered Hebrew pages
- Test: fast/forms/select-visual-hebrew.html
- * css/html4.css: Set "-webkit-rtl-ordering: logical" on select elements.
- 2006-07-24 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=10009
- REGRESSION: Schubert-IT PDF Plug-in not working for full page (works in frames)
- * page/Frame.cpp:
- (WebCore::Frame::begin): Give PDF plugins a chance to handle frame content, before ImageDocument
- claims it.
- 2006-07-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=10083
- REGRESSION (r15584): editing/selection/select-from-textfield-outwards failing
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::positionForCoordinates): Added back change from the fix
- for bug 9312: For coordinates outside a replaced object, return the position
- just before (after) the element if the coordinates are above or to the left (below
- or to the right).
- 2006-07-23 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by maciej.
- Bug 9686: [Drosera] Need the ability to break into Drosera on Javascript exceptions
- http://bugs.webkit.org/show_bug.cgi?id=9686
- WebCore portion of the fix.
- * bridge/mac/WebCoreScriptDebugger.h:
- (-[WebScriptDebugger exceptionRaised:sourceId:line::]): Add delegate method.
- * bridge/mac/WebCoreScriptDebugger.mm:
- (WebCoreScriptDebuggerImp::exception): Call delegate method when an exception is raised.
- 2006-07-23 Alice Liu <alice.liu@apple.com>
- Reviewed by Adele.
- 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).
- * editing/visible_units.cpp:
- (WebCore::previousLinePosition):
- When setting selection endpoints, don't traverse down into nodes where editing would ignore its contents. Use the parent node instead.
- (WebCore::nextLinePosition):
- same as above
- 2006-07-23 David Harrison <harrison@apple.com>
- Reviewed by timo.
- <rdar://problem/4646759> Mail crash editing To Do - WebCore::InsertTextCommand::prepareForTextInsertion
-
- * Test: editing/deleting/delete-mixed-editable-content-001.html
- * editing/visible_units.cpp:
- (WebCore::startOfParagraph):
- Respect editable boundary the same way endOfParagraph does.
- 2006-07-23 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej. (Patch by me, Maciej, and Harrison.)
- Fix for <rdar://problem/4529398> WebCore crashes when pasting rich
- text - WebCore::InlineBox::root()
- The initial rendering crash was due to a render object having a
- stale reference to an inline box that had already been deleted and
- then recreated in the exact same location in memory. (Crazy, I
- know.) The situation seemed pretty specific to list markers
- according to Hyatt according to Maciej, so that is what I patched
- specifically. Fixing this crash unearthed a separate editing crash
- where we were trying to insert a block into itself. I worked on
- that with Maciej and Harrison, and Harrison came up with a fix.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): This is the fix for the editing crash. If paragraphStart is an atomic
- node, insert the new block into the parent instead.
- * rendering/InlineBox.cpp:
- (WebCore::InlineBox::isChildOfParent): This function is for
- posterity. It will help keep the linebox tree in check.
- * rendering/InlineBox.h:
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::addToLine): Added assert.
- (WebCore::InlineFlowBox::deleteLine): Added assert.
- * rendering/ListMarkerBox.cpp:
- (WebCore::ListMarkerBox::destroy): If this has a parent, call
- removeChild on this.
- (WebCore::ListMarkerBox::operator delete):
- * rendering/ListMarkerBox.h:
- 2006-07-23 Alice Liu <alice.liu@apple.com>
- Reviewed by Darin.
- fixed <rdar://problem/4617841> REGRESSION (NativeTextField): You can move keyboard focus to a field without getting insertion point
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::positionForCoordinates):
- removed some unnecessary vertical position checks and added a fudge factor to be more forgiving for clicks near lines.
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::nodeAtPoint):
- added implementation
- * rendering/RenderTextControl.h:
- added function protocol
- 2006-07-23 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- Updating fix from last checkin.
- * rendering/RenderFlexibleBox.cpp: (WebCore::RenderFlexibleBox::layoutVerticalBox):
- Only tell the view about this flexbox if there isn't another flexbox already cached.
- 2006-07-23 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for <rdar://problem/4644614> REGRESSION: Typing, pasting or dragging in new text areas causes unnecessary scrolling
- * rendering/RenderBlock.cpp: (WebCore::RenderBlock::layoutBlock): Don't updateScrollInfoAfterLayout if an ancestor flexible box is just on
- its first layout.
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::layoutBlock): ditto.
- (WebCore::RenderFlexibleBox::layoutVerticalBox): Let the view know if this flex box is doing its first pass at layout.
- * rendering/RenderView.cpp: (WebCore::RenderView::RenderView): Caches a flexible box that's doing its first layout.
- * rendering/RenderView.h:
- (WebCore::RenderView::setFlexBoxInFirstLayout):
- (WebCore::RenderView::flexBoxInFirstLayout):
- 2006-07-22 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=10038
- REGRESSION: Length of navigator.mimeTypes collection returns number of installed plugins, not number
- of registered mime types
- * bindings/js/kjs_navigator.cpp:
- (KJS::MimeTypes::getValueProperty): Return the length of the mime types vector, not the plugins one.
- (KJS::MimeTypes::getOwnPropertySlot): Fixed another typo, which prevented MimeTypes::getValueProperty()
- from even being called.
- 2006-07-21 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele and Tim Omernick.
- <rdar://problem/4641004> 9A224: Safari crashes in WebCore::RenderMenuList::showPopup when changing a input select field to input text field
- Couldn't figure out how to make layout test, here's a manual test:
- * manual-tests/remove-select-onchange.html: Added.
-
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::showPopup): Don't add the RenderPopupMenu to the render
- tree so it doesn't get destroyed if we do.
-
- The remaining changes are to let the RenderPopupMenu know its menu list w/o having
- to be in the render tree:
-
- * rendering/RenderPopupMenu.cpp:
- (WebCore::RenderPopupMenu::RenderPopupMenu):
- * rendering/RenderPopupMenu.h:
- (WebCore::RenderPopupMenu::menuList):
- * rendering/RenderPopupMenuMac.h:
- * rendering/RenderPopupMenuMac.mm:
- (WebCore::RenderPopupMenuMac::RenderPopupMenuMac):
- * rendering/RenderPopupMenuWin.h:
- (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
- * rendering/RenderTheme.h:
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::createPopupMenu):
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::createPopupMenu):
- * rendering/RenderThemeWin.h:
- 2006-07-21 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- Fix for: <rdar://problem/4643238> REGRESSION: Can't set insertion point at the end of a line of text
- Test: fast/forms/textarea-scrolled-endline-caret.html
- * rendering/RenderBlock.cpp: (WebCore::RenderBlock::positionForCoordinates):
- When looking for the closest line box, take the scroll offset into account.
- 2006-07-21 Tim Omernick <timo@apple.com>
- Reviewed by Geoff & Maciej.
- <rdar://problem/4632505> REGRESSION: Crash at WebCore::Widget::getView() const + 6
- Geoff is working on a layout test for this.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::focusWindow):
- (WebCore::FrameMac::unfocusWindow):
- 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
- 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
- crasher.
-
- 2006-07-21 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- <rdar://problem/4523976> REGRESSION (NativeTextField): Crash occurs when choosing "Undo Typing" after typing and setting the value
- * rendering/RenderTextControl.cpp:
- (WebCore::RenderTextControl::updateFromElement): Clear the undo
- chain when the text control contents have been set
- programmatically.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::clearUndoRedoOperations): Before clearing undo
- stack, close all open undo groups and then open an equal number,
- since otherwise NSUndoManager ends up in an inconsistent state
- leading to uncaught ObjC exceptions.
- 2006-07-21 Beth Dakin <bdakin@apple.com>
-
- Reviewed by Darin.
- Just moving this assertion down a couple of lines. It was hitting
- every time you try to print a page because we put it too early in
- the function.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge drawRect:]):
- 2006-07-21 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4548238>
- REGRESSION: Can't remove the first OL/UL list item in a Mail's compose window
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
- Moved from InsertParagraphSeparator. Does its own typing style restoration.
- * editing/CompositeEditCommand.h:
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Call breakOutOfEmptyListItem.
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed): Call breakOutOfEmptyListItem if
- the endingSelection is at the start of an editable region.
- * editing/htmlediting.cpp:
- (WebCore::embeddedSublist): Moved from InsertParagraphSeparator.
- (WebCore::appendedSublist): Ditto.
- (WebCore::enclosingEmptyListItem): Ditto.
- * editing/htmlediting.h:
- === Safari-521.20 ===
- 2006-07-21 Tim Omernick <timo@apple.com>
- Reviewed by Beth Dakin & John Sullivan.
- <rdar://problem/4633717> 9A218: Reproducible crash in -[NSScroller mouseDown:]
- Beth is in the middle of making a layout test for this; she will land it soon.
- * platform/mac/ScrollBarMac.mm:
- (ScrollBar::~ScrollBar):
- Call Widget::removeFromSuperview() rather than -removeFromSuperview directly on the scroll bar view.
- Widget::removeFromSuperview() obeys the "mustStayInWindow" flag, which is set while tracking the mouse
- in view-based widgets to prevent their destruction while the tracking is in progress.
- I searched around WebCore and this is the only Widget subclass that directly removes its view rather
- than using removeFromSuperview().
- 2006-07-21 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9312
- REGRESSION: Selection bug in new text fields when selecting past the first letter
- Test: editing/selection/select-from-textfield-outwards.html
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent): Added code to handle the case
- where the selection starts (resp. ends) in the last (resp. first) visual position
- inside an editable root.
- * editing/htmlediting.cpp:
- (WebCore::comparePositions): Fixed the case of comparing a position inside a shadow
- tree with a position in the shadow ancestor.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::positionForCoordinates): For coordinates outside a replaced
- object, return the position just before (after) the element if the coordinates are above or
- to the left (below or to the right).
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::caretMaxOffset): Changed to return 1 for replaced objects.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::positionForCoordinates): Changed to return the last position
- in the lowest text box if the y coordinate is below all text boxes.
- 2006-07-21 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
-
- - Fixed <rdar://problem/4507265> REGRESSION: overlays don't work on
- HousingMaps.com (Google Maps-based site)
-
- - Made style.filter undetectable, like document.all.
-
- Unfortunately, the SVG spec-makers invented a CSS attribute named 'filter',
- which conflicts with IE's custom CSS attribute by the same name. Web programs
- like the Google maps API test for style.filter, and assume it's the IE
- style.filter if they find it, so we need to make style.filter undetectable
- to avoid breaking them.
-
- An alternative solution would be to hotwire a delorean, go back in time,
- and beg the web standards makers to make standards that work on the web.
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleDeclaration::cssPropertyGetter):
- 2006-07-20 Justin Garcia <justin.garcia@apple.com>
- Reviewed by john
-
- <rdar://problem/4641033>
- REGRESSION: Pasting from web pages into Mail (or Blot) often loses most of the content
-
- * editing/markup.cpp:
- (WebCore::createMarkup): We surround the currently accumulated markup with markup
- for ancestors of the startNode when the pre-order traversal leaves the trees rooted
- at those ancestors. We assumed that any ancestors of the current node not in the
- ancestorsToClose list were those kind of ancestors. But we don't add renderer-less
- containers to the ancestorsToClose list. So, we were incorrectly surrounding the
- currently accumulated markup with markup for render-less containers. Most of the
- content at apple.com was being put inside an <optgroup> inside a <select> element.
- Then on Paste createContextualFragment would drop it.
- 2006-07-21 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * dom/Document.h:
- (WebCore::Document::):
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::addEventListener):
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- Only dispatch overflowchanged events if overflowchanged event listeners have been registered on the document.
- 2006-07-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4637807> REGRESSION: "Features & Options" page at volvocars.us fails
- * xml/XSLTProcessor.cpp:
- (WebCore::xsltParamArrayFromParameterMap):
- Turns out parameters never worked. String parameters need to be escaped so we create a transform context,
- add the parameters to it quoted and then use xsltApplyStylesheetUser which lets us pass the transform context to it.
- This also works around a bug in libxslt where a hash table isn't allocated.
- 2006-07-20 Alice Liu <alice.liu@apple.com>
- Reviewed by Tim Omernick.
- Fixed <rdar://problem/4621649> repro crash: Upload link causes crash on pages.google.com in Frame::nodeForWidget
- 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.
- * manual-tests/remove-input-file-onchange.html: Added.
- * platform/mac/FileButtonMac.mm:
- (-[WebFileChooserButton chooseFilename:]):
- swapped the calls to changeFilename and bridgeForWidget because changeFilename will destroy the widget that is accessed in bridgeForWidget
- 2006-07-20 Alice Liu <alice.liu@apple.com>
- Reviewed by Adele.
- Fixed <rdar://problem/4532113> REGRESSION (NativeTextField): Crash occurs after modifying field then reloading page -[FormDelegate frameLayoutHasChanged:]
- added a manual test because of the need to use AutoFill.
- * dom/Node.h:
- (WebCore::Node::aboutToUnload):
- added virtual function prototype
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::aboutToUnload):
- added implementation that sends textFieldDidEndEditing notification
- * html/HTMLInputElement.h:
- added virtual function prototype
- * manual-tests/input-type-file-autocomplete-frame-1.html: Added.
- * manual-tests/input-type-file-autocomplete-frame-2.html: Added.
- * manual-tests/input-type-file-autocomplete-refresh.html: Added.
- * page/Frame.cpp:
- (WebCore::Frame::stopLoading):
- before unloading, call aboutToUnload on the current focused node
- 2006-07-20 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- fixed <rdar://problem/4611303> REGRESSION: repro crash in WebCore::EventTargetNode::dispatchWindowEvent at aeropostale.com
- There was an attempt to deref an EventListener that got cleaned up in GC. Changing Document's EventListener list from
- vanilla ptrs to refptrs to prevent GC, following EventTargetNode's proven example.
- * dom/Document.cpp:
- (WebCore::Document::Document):
- (WebCore::Document::clear):
- (WebCore::Document::handleWindowEvent):
- (WebCore::Document::getHTMLWindowEventListener):
- (WebCore::Document::removeHTMLWindowEventListener):
- (WebCore::Document::removeWindowEventListener):
- (WebCore::Document::hasWindowEventListener):
- Changed all of the list iterators to work with RefPtrs instead of vanilla ptrs
- * dom/Document.h:
- Changed the EventListener list to be a vanilla pointer list to a refptr list
- 2006-07-20 John Sullivan <sullivan@apple.com>
- Reviewed by Maciej
- - WebCore part of fix for:
- <rdar://problem/4557386> REGRESSION (419.3-521.19): repro Safari world leak involving
- closing tabs after clicking in a web page
-
- * bridge/mac/WebCoreFrameBridge.h:
- (-[WebCoreFrameBridge textViewWasFirstResponderAtMouseDownTime:])
- renamed to be more specific (formerly wasFirstResponderAtMouseDownTime:)
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::passMouseDownEventToWidget):
- updated for name change
- 2006-07-19 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=8272
- Use of window.open & window.close can cause crash
- * platform/PlatformMouseEvent.h:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- * platform/mac/PlatformMouseEventMac.mm:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- The default constructor now creates a "zero" event, and a new one was added to create the "current" one.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::handleMouseMoveEvent):
- * rendering/RenderFormElement.cpp:
- (WebCore::RenderFormElement::clicked):
- Updated for the above changes.
- * platform/gdk/MouseEventGdk.cpp:
- * platform/gdk/TemporaryLinkStubs.cpp:
- (PlatformMouseEvent::PlatformMouseEvent):
- * platform/win/MouseEventWin.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (PlatformMouseEvent::PlatformMouseEvent):
- Trying not to break other platforms.
- * manual-tests/invalid-mouse-event.html: Added.
- 2006-07-20 Maciej Stachowiak <mjs@apple.com>
-
- Reviewed by Anders.
- - delete line that I only commented in the last patch - meant to do this before landing
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::close):
- 2006-07-19 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Geoff.
- - fixed <rdar://problem/4634484> REGRESSION: Project Change Request form should have vertical scroll bar, but doesn't
-
- I couldn't figure out how to make an automated test case for this,
- or even a manual one. It seems to be timing-related in some way.
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::close): detach the child frame from
- its element, not the frame containing this element.
- 2006-07-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::nextKeyViewInFrame):
- Hold a ref to the node in case it gets destroyed by an event handler.
- 2006-07-19 Mark Rowe <opendarwin.org@bdash.net.nz>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10021
- Bug 10021: REGRESSION: Stack overflow due to infinite recursion in
- Image::checkForSolidColor
- * platform/Image.cpp:
- (WebCore::Image::cacheFrame): Don't call checkForSolidColor unless
- the frame was decoded successfully.
- 2006-07-19 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for:
- <rdar://problem/4422657> REGRESSION: member name field or password field should have focus after loading webmail.mac.com (7405)
- http://bugs.webkit.org/show_bug.cgi?id=7405
- <rdar://problem/4614181> REGRESSION: Crash in WebCore::RenderTextField::text() when quoting post at the Ars Technica forum (9707)
- http://bugs.webkit.org/show_bug.cgi?id=9707
- Needs an http test. (http://bugs.webkit.org/show_bug.cgi?id=10020)
- 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.
- Now, we detect this case and let setFocusNode be called. And when the stylesheet finishes loading, and the element attaches, a timer will fire,
- which will cause the correct selection & scrolling behavior to occur.
- This fix removes selection and scrolling behavior from the focus method. This code is now in a new method, updateFocusAppearance.
- updateFocusAppearance can now be called directly from focus(), but it can also be called when a timer fires. This timer gets set
- up when an element attaches, and its already been focused by the focus method. We have to use a timer, because updateFocusAppearance can cause
- a layout to happen, and we don't want that to happen in the middle of attach().
- * bindings/objc/DOM.mm: (-[DOMElement isFocused]): Added SPI for autofill.
- * bindings/objc/DOMPrivate.h:
- * dom/Element.cpp:
- (WebCore::Element::Element): Initializes timer and needFocusAppearanceUpdate bool.
- (WebCore::Element::attach): Checks needsFocusAppearanceUpdate, and if the node is focused, then starts the timer.
- (WebCore::Element::focus): Updated to check supportsFocus before calling setFocusNode,
- and only requiring the element to be focusable now before updating focus appearance.
- (WebCore::Element::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
- (WebCore::Element::updateFocusAppearanceTimerFired): Stops the timer, and if the element is focusable, calls updateFocusAppearance.
- (WebCore::Element::stopUpdateFocusAppearanceTimer): Cancels timer, and setsNeedsFocusAppearanceUpdate(false).
- (WebCore::Element::detach): Calls stopUpdateFocusAppearanceTimer.
- (WebCore::Element::blur): ditto.
- * dom/Element.h:
- (WebCore::Element::needsFocusAppearanceUpdate): Added so the timer only fires when focus() methods have caused an element to be focused.
- (WebCore::Element::setNeedsFocusAppearanceUpdate): Added so focus methods can set this flag.
- * dom/Node.h: (WebCore::Node::supportsFocus): Added. Base class just calls isFocusable.
- * html/HTMLAnchorElement.h: Added supportsFocus.
- * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::supportsFocus): Added. Checks for the case where stylesheets haven't loaded yet,
- so we can still focus the node without a renderer, and when it gets a renderer, we'll update the focus appearance.
- * html/HTMLGenericFormElement.h: (WebCore::HTMLGenericFormElement::supportsFocus): ditto.
- * html/HTMLGenericFormElement.cpp: Removed include of Document.h since this is now in the header.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::focus): Updated to check supportsFocus before calling setFocusNode,
- and only requiring the element to be focusable now before updating focus appearance.
- (WebCore::HTMLInputElement::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
- * html/HTMLInputElement.h:
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::focus): Updated to check supportsFocus before calling setFocusNode,
- and only requiring the element to be focusable now before updating focus appearance.
- (WebCore::HTMLTextAreaElement::updateFocusAppearance): Added. Separates the selection, and the scrolling from focusing the node.
- * html/HTMLTextAreaElement.h:
- 2006-07-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4631972>
- REGRESSION: Mail crashes when pasting entire contents of http://www.apple.com/support/ into a new mail message
- * dom/Position.cpp:
- (WebCore::Position::upstream): Deployed isBlock and enclosingBlock.
- (WebCore::Position::downstream): Ditto.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary): Ditto.
- * editing/htmlediting.cpp:
- (WebCore::canHaveChildrenForEditing): Added !iframe.
- (WebCore::isBlock): Added, returns !node->renderer()->isInline()
- (WebCore::enclosingBlock): Added.
- * editing/htmlediting.h:
- 2006-07-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- <rdar://problem/4631272> REGRESSION: Crash tabbing out of hostname field at autorestore.apple.com
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::nextKeyViewInFrame):
- Take into account that focus handlers can cause a node's renderer to be destroyed.
-
- 2006-07-19 David Hyatt <hyatt@apple.com>
- Fix for 4638376. The 1x1 solid color image optimization was broken when
- I re-architected image. This patch restores the optimization for CG. Cairo
- will still need the optimization.
- Reviewed by darin
- WARNING: NO TEST CASES ADDED OR CHANGED (need test cases still)
- * platform/Image.cpp:
- (WebCore::Image::Image):
- (WebCore::Image::invalidateData):
- (WebCore::Image::cacheFrame):
- * platform/Image.h:
- (WebCore::Image::setIsPDF):
- * platform/cairo/ImageCairo.cpp:
- (WebCore::Image::checkForSolidColor):
- * platform/mac/ImageMac.mm:
- (WebCore::Image::initNativeData):
- (WebCore::Image::invalidateNativeData):
- (WebCore::Image::checkForSolidColor):
- (WebCore::Image::draw):
- (WebCore::Image::drawTiled):
- 2006-07-19 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4613519>
- REGRESSION: Pasting text in native text area inserts text one character before it should (9527)
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreakCommand instead of bailing
- if the enclosingBlockFlowElement doesn't have a parent.
- 2006-07-19 David Harrison <harrison@apple.com>
- Reviewed by Tim Hatcher.
- <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
- <rdar://problem/4062218> pasting in contents of web.apple.com strips off the <table> element from the first table
-
- Better patch than previous checkin.
- * test: editing/pasteboard/paste-table-003.html
-
- * editing/markup.cpp:
- (WebCore::createMarkup):
- Make sure to include the table when including a tbody.
- === Safari-521.19 ===
- 2006-07-19 David Harrison <harrison@apple.com>
- Reviewed by Tim Hatcher.
- <rdar://problem/4629307> -[DOMRange markupString] does not include the initial table element if it is at the beginning of the range
- No test case as this can only be reproduced through ObjC APIs.
- * editing/markup.cpp:
- (WebCore::createMarkup):
- Adjust the range for ancestor markup handling when main loop skips first node.
- 2006-07-18 David Hyatt <hyatt@apple.com>
- Fix for radar 4611287, make resizable text fields opt-in rather than
- opt-out. Open source users will need to write the pref into their defaults
- to see the resizers on textareas now.
- Reviewed by mjs and adele
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreSettings.mm:
- (-[WebCoreSettings setTextAreasAreResizable:]):
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * css/html4.css:
- 2006-07-18 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9959
- REGRESSION: iframes stop rendering after 200th one on successive reloads
-
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::attach):
- (WebCore::HTMLFrameElement::close):
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::insertedIntoDocument):
- (WebCore::HTMLIFrameElement::willRemove):
- Remove calls to incrementFrameCount and decrementFrameCount.
-
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- Call incrementFrameCount here.
-
- (WebCore::Frame::~Frame):
- Call disconnectOwnerElement.
-
- (WebCore::Frame::disconnectOwnerElement):
- Call decrementFrameCount here.
-
- 2006-07-18 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=9013
- Let correct CSS custom cursor declarations parse
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue): Ignore any values following a custom CSS cursor URI, instead of
- requiring that it is the only one in the list (which is actually illegal, according to the spec).
- This is only a temporary hack, with a real implementation to follow in bug 6001/6002.
- * manual-tests/custom-cursors.html: Added a test for this issue.
- * manual-tests/resources/helpCursor.tiff: A cursor image used in the test.
- 2006-07-18 Timothy Hatcher <timothy@apple.com>
- Reviewed by Anders.
-
- <rdar://problem/4636216> NetNewsWire fails to launch on 9A224 - missing symbols
-
- WebCore needs to add -sub_library libobjc to maintain
- backwards compatibility with binaries linked with WebKit
- before JavaScriptCore moved out of WebKit.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-07-18 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Justin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9978
- REGRESSION (r12949-r12988): Clicking the first letter on a line places the caret at the end of the previous line
- Test: editing/selection/click-start-of-line.html
- * rendering/RenderText.cpp:
- (WebCore::RenderText::positionForCoordinates): Changed to return downstream
- affinity if the x coordinate is to the left of the middle of the first character
- in the text box.
- 2006-07-18 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9695
- <rdar://problem/4614085>
- TOT REGRESSION: NativeTextArea: Text area does not respond to Cmd-UpArrow/Cmd-DownArrow (9695)
-
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::modifyExtendingRightForward):
- (WebCore::SelectionController::modifyMovingRightForward):
- (WebCore::SelectionController::modifyExtendingLeftBackward):
- (WebCore::SelectionController::modifyMovingLeftBackward):
- If the caret is inside an editable region, the beginning/end of the document should actually be the
- beginning/end of the editable region.
- 2006-07-17 Tim Omernick <timo@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
- by script
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setProhibitsScrolling:]):
- * page/Frame.cpp:
- (WebCore::Frame::prohibitsScrolling):
- (WebCore::Frame::setProhibitsScrolling):
- * page/Frame.h:
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- * page/FrameView.cpp:
- (WebCore::FrameView::scrollPointRecursively):
- (WebCore::FrameView::setContentsPos):
- * page/FrameView.h:
- * platform/ScrollView.h:
- 2006-07-17 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Dave Harrison.
-
- - fixed <rdar://problem/4618089> Blot crashes when I paste in all the contents of http://www.apple.com/startpage/
- * editing/htmlediting.cpp:
- (WebCore::editingIgnoresContent):
- 2006-07-17 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4621728>
- REGRESSION: Selecting by dragging down creates selection in wrong direction, with certain steps
- <rdar://problem/4604932>
- REGRESSION: Dragging too far left on a line will select all lines above it.
-
- No layout test because of 9980.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::positionForCoordinates): Don't return positions inside editable roots
- for coordinates outside those roots, except for coordinates outside a document that is entirely
- editable.
- 2006-07-17 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/4635281> JSCanvasRenderingContext2D::drawImage needs to initialize the exception code to zero
- * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
- (WebCore::JSCanvasRenderingContext2D::drawImage): initialize ec to zero
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::drawImage): initialize ec before earlier return
- 2006-07-17 Timothy Hatcher <timothy@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4634874> WebScriptObject and WebUndefined are no longer defined by WebKit
- Moves WebScriptObject and WebUndefined to WebCore.
- * WebCore.exp:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMInternal.mm:
- * bindings/objc/DOMUtility.mm:
- * bindings/objc/WebScriptObject.mm: Added.
- (+[WebUndefined allocWithZone:]):
- (-[WebUndefined initWithCoder:]):
- (-[WebUndefined encodeWithCoder:]):
- (-[WebUndefined copyWithZone:]):
- * bindings/objc/WebScriptObjectPrivate.h: Added.
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreScriptDebugger.mm:
- 2006-07-17 David Hyatt <hyatt@apple.com>
- Back out the fix for 5564, since it turns out font:x-small; is a pretty
- prominent IE-specific CSS hack. Because Web sites rely on IE's incorrect
- font parsing as a means of also correcting IE's incorrect font size rules.
- This fixes Yahoo.com.
- Reviewed by darin
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseFont):
- 2006-07-17 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <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
-
- * dom/Document.cpp:
- (WebCore::Document::updateSelection):
- 2006-07-17 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Beth.
-
- <rdar://problem/4604946> REGRESSION: 'checkboxRef.checked = true' fires onchange event in Leopard
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::setChecked):
- (WebCore::HTMLInputElement::preDispatchEventHandler):
- * html/HTMLInputElement.h:
- 2006-07-16 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9954
- REGRESSION: document.dir should return empty string in <head>
- Test: fast/dom/document-dir-property.html
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::getValueProperty): Return an empty string instead of an
- undefined value for an unset document.dir property.
- 2006-07-16 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- * dom/NodeFilter.idl:
- Removed "No newline at end of file" that snuck in as part of the "apply patch" process.
- * manual-tests/input-empty-on-focus.html:
- Removed "Property changes" that snuck in as part of the "apply patch" process.
- 2006-07-16 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9943
- <rdar://problem/4590613>
- REGRESSION (Tiger-TOT): menus are offset to the right at http://movies.aol.com/movie-photo-bts/superman-returns
- The problem turns out to be the fact that body.offsetLeft is returning a non-zero value.
- I have no idea why the menus worked in Tiger Safari, because body.offsetLeft behavior has not changed.
- Presumably some other bug that we fixed had been compensating.
- Test: fast/html/body-offset-properties.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::offsetLeft): Always return 0 for any object without an offsetParent.
- (WebCore::RenderObject::offsetTop): Ditto.
- (WebCore::RenderObject::offsetParent): Return 0 for the body (treat as a special case).
- 2006-07-16 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for <rdar://problem/4616595> REGRESSION: Problems with world
- clock widget clock hand motion on 9A211 + 4604574
- The second hand on the widget was jiggling because the rotation was
- messing up the use of the affine transformation matrix while
- rounding to pixel boundaries in device space. We are mainly
- concerned with rounding to pixel boundaries with the scale in mind,
- so this patch extracts the scale to device space from the matrix,
- and rounds to pixel boundaries using only the scale. This doesn't
- seem like it is a perfect solution, but it definitely solves the
- immediate problem. We will probably need to re-address what should
- happen to avoid pixel cracks with rotations at non-integral scale
- factors.
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::roundToDevicePixels):
- 2006-07-15 Darin Adler <darin@apple.com>
- - fix mistake from fix for 8952 that was breaking layout tests
- * editing/SelectionController.cpp: (WebCore::SelectionController::nodeWillBeRemoved):
- Justin was right! I changed the behavior of the function by accident. Changed it
- back so that it doesn't blow away the selection on the DOM side in the case where
- it didn't before.
- I will write 100 times on the blackboard: "When Justin says something about editing,
- assume he is right."
- 2006-07-15 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * WebCore.vcproj/WebCore/WebCore.vcproj: Added StreamingTextDecoderICU.cpp/h.
- 2006-07-15 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8952
- <rdar://problem/4575185>
- REGRESSION: crash on drag of highlighted Google custom home page modules
- Test: fast/dynamic/move-node-with-selection.html
- * editing/SelectionController.cpp: (WebCore::SelectionController::nodeWillBeRemoved):
- Call updateRendering before calling clearSelection(), since it's important to do any
- work beforehand, and there are calls inside clearSelection that will indirectly do an
- updateRendering. Also change code to make fewer assumptions about object lifetime.
- 2006-07-15 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8587
- <rdar://problem/4631844>
- REGRESSION: {display:list-item} on items outside an ol or ul element no longer causes incremental numbering
- Test: fast/lists/numeric-markers-outside-list.html
- * rendering/RenderListItem.cpp: (WebCore::previousListItem):
- Look for list items, even when we're outside any list.
- 2006-07-15 Adele Peterson <adele@apple.com>
- Reviewed by John.
- - Fix for <rdar://problem/4593970> REGRESSION (NativeTextField): autofill menu disappears after typing a 2nd character
- This was caused by composite editing commands, (like typing or pasting) that include a DeleteCommand, being
- interpreted by the form delegate as an actual delete. This fix doesn't notify the form delegate if the deletion is
- part of an editing command to replace the selected text.
- * editing/DeleteSelectionCommand.h: Added m_replace to keep track of whether this deletion is
- part of a composite command to replace the text being deleted.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): Initialize m_replace.
- (WebCore::DeleteSelectionCommand::doApply): Only notify the form delegate of the deletion if the text is not being replaced.
- * editing/CompositeEditCommand.h:
- * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::deleteSelection):
- Added replace argument to construct DeleteSelectionCommand.
-
- * editing/InsertTextCommand.cpp: (WebCore::InsertTextCommand::input): Call deleteSelection with replace argument.
- * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::doApply): ditto.
- 2006-07-15 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej, tweaked to match Darin's patch.
-
- - Fixed <rdar://problem/4631837> REGRESSION: Reproducible crash on
- FCKeditor demo (9911)
-
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::putValueProperty): Check for a null body element before
- forwarding the put request to it. I confirmed that no other parts of the
- file use 'body' or 'bodyElement' without checking for null.
-
- Also, use 'body' rather than 'bodyElement' because dir can bet set on
- any element, not just HTMLBodyElement.
- 2006-07-15 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8871
- <rdar://problem/4575417>
- REGRESSION: Pressing Enter/Return in a text input removes the selected text
- - fix http://bugs.webkit.org/show_bug.cgi?id=9743
- <rdar://problem/4614228>
- REGRESSION: crash dispatching JavaScript-created keyboard event to input element
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::doTextFieldCommandFromEvent):
- Add a null check to fix the crash, and a FIXME explaining why this is not necessarily
- enough for the future.
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
- Consume Enter key keypress events even if the element is not in a form.
- * platform/mac/KeyEventMac.mm: (WebCore::keyIdentifierForKeyEvent): Added \n to the
- characters that turn into "Enter". Actual keyboard events always are \r or \003 on
- the Macintosh, but in layout tests we can use \n, and everything other than the
- code path here works, so worth fixing.
- 2006-07-15 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9883
- <rdar://problem/4631821>
- REGRESSION: NativePopups don't work correctly in some forum software
- Test: fast/forms/select-selected.html
- * rendering/RenderMenuList.h:
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::updateFromElement): Added code to map the selected option
- index to a list index before using it to index into the list.
- (WebCore::RenderMenuList::showPopup): Added code to map the selection option index
- to a list index before passing it to the menu renderer.
- (WebCore::RenderMenuList::valueChanged): Added code to map the list index back to a
- option index before calling setSelectedIndex (that function takes an option index).
- 2006-07-15 Darin Adler <darin@apple.com>
- Reviewed by John Sullivan.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9928
- REGRESSION: Text Encoding menu inoperative (after gcc protocol build fix)
- * bindings/objc/DOM.mm:
- (-[DOMNode addEventListener:::]): Moved into DOMEventTarget category.
- (-[DOMNode removeEventListener:::]): Ditto.
- (-[DOMNode dispatchEvent:]): Ditto.
- * WebCore.xcodeproj/project.pbxproj: Allow Xcode to do its thing.
- 2006-07-15 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- <rdar://problem/4632144> REGRESSION: table column tests failing as a result of very recent fix
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::addChild): columns and colgroups are valid children of a table too, not
- just table sections!
- 2006-07-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9866
- <rdar://problem/4631561>
- REGRESSION: Repro crash from mangleme using iframe, only from server.
-
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::attach):
- Add null check for contentFrame() since content frames won't be created for invalid URLs.
- 2006-07-14 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- Fix http://bugs.webkit.org/show_bug.cgi?id=4195
- REGRESSION: KOI8-U encoding no longer supported.
- Tests:
- * http/tests/misc/BOM-override.pl
- * http/tests/misc/BOM-override-script.html
- * fast/encoding/charset-koi8-u.html
- * fast/encoding/charset-x-nextstep.html
- Restored a TEC code path for encodings that are not supported by ICU (but which currently
- passes all layout tests even by itself with ICU disabled). A lot of refactoring is
- still needed - most importantly, round-tripping encoding names via CFStringEncoding
- makes little sense now.
- * WebCore.exp:
- * bridge/mac/WebCoreTextDecoder.h: Removed.
- * bridge/mac/WebCoreTextDecoder.mm: Removed.
- WebCoreTextDecoder was not used anywhere since WebTextView was moved into WebCore.
- * loader/Decoder.cpp:
- (Decoder::Decoder):
- (Decoder::setEncodingName):
- (Decoder::decode):
- Use StreamingTextDecoder::create().
- * platform/StreamingTextDecoder.cpp:
- (WebCore::StreamingTextDecoder::create):
- (WebCore::StreamingTextDecoder::~StreamingTextDecoder):
- * platform/StreamingTextDecoder.h:
- StreamingTextDecoder is just an abstract interface to implementations now.
- * platform/StreamingTextDecoderICU.cpp: Added.
- (WebCore::StreamingTextDecoderICU::StreamingTextDecoderICU):
- (WebCore::StreamingTextDecoderICU::~StreamingTextDecoderICU):
- (WebCore::StreamingTextDecoderICU::releaseICUConverter):
- (WebCore::StreamingTextDecoderICU::textEncodingSupported):
- (WebCore::StreamingTextDecoderICU::convertUTF16):
- (WebCore::StreamingTextDecoderICU::convertIfASCII):
- (WebCore::StreamingTextDecoderICU::createICUConverter):
- (WebCore::StreamingTextDecoderICU::appendOmittingBOM):
- (WebCore::StreamingTextDecoderICU::convertUsingICU):
- (WebCore::StreamingTextDecoderICU::convert):
- (WebCore::StreamingTextDecoderICU::toUnicode):
- (WebCore::StreamingTextDecoderICU::fromUnicode):
- * platform/StreamingTextDecoderICU.h: Added.
- Renamed from StreamingTextDecoder; added a way to tell whether the encoding is actually
- supported by the decoder; minor cleanup.
- * platform/TextEncoding.cpp:
- (WebCore::TextEncoding::effectiveEncoding): Moved from StreamingTextDecoder.
- (WebCore::TextEncoding::toUnicode): Use StreamingTextDecoder::create().
- (WebCore::TextEncoding::fromUnicode): Moved to StreamingTextDecoderICU.
-
- * platform/TextEncoding.h: Changed __APPLE__ to PLATFORM(MAC); added effectiveEncoding().
- * platform/mac/StreamingTextDecoderMac.cpp: Added.
- (WebCore::StreamingTextDecoderMac::StreamingTextDecoderMac):
- (WebCore::StreamingTextDecoderMac::~StreamingTextDecoderMac):
- (WebCore::StreamingTextDecoderMac::releaseTECConverter):
- (WebCore::StreamingTextDecoderMac::textEncodingSupported):
- (WebCore::StreamingTextDecoderMac::convertUTF16):
- (WebCore::StreamingTextDecoderMac::convertIfASCII):
- (WebCore::StreamingTextDecoderMac::createTECConverter):
- (WebCore::StreamingTextDecoderMac::appendOmittingBOM):
- (WebCore::StreamingTextDecoderMac::convertOneChunkUsingTEC):
- (WebCore::StreamingTextDecoderMac::convertUsingTEC):
- (WebCore::StreamingTextDecoderMac::convert):
- (WebCore::StreamingTextDecoderMac::toUnicode):
- (WebCore::StreamingTextDecoderMac::fromUnicode):
- * platform/mac/StreamingTextDecoderMac.h: Added.
- (WebCore::StreamingTextDecoderMac::convert):
- This is a TEC+CFString code path for decoding, basically restored from a year-old revision.
- * platform/mac/TextEncodingMac.cpp: Removed. Code moved to StreamingTextDecoderMac.
- * WebCore.xcodeproj/project.pbxproj:
- === Safari-521.17 ===
- 2006-07-14 Timothy Hatcher <timothy@apple.com>
- <rdar://problem/4623957> SWB: gcc-5412 (new?) objc warning causes WebCore project failure
- Made a DOMNode category in DOMEvents.h that lets DOMNode conform to the
- DOMEventTarget protocol that works with GCC 5412.
- Removed forward declarations of WebCoreWidgetHolder and imported WebCoreWidgetHolder.h.
- Removed all <Cocoa/Cocoa.h> and <Foundation/Foundation.h> imports in other headers,
- we import <Cocoa/Cocoa.h> in the prefix header for ObjC.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMEvents.h:
- * bridge/mac/FormDataMac.h:
- * bridge/mac/WebCoreAXObject.h:
- * bridge/mac/WebCoreCache.h:
- * bridge/mac/WebCoreEncodings.h:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameNamespaces.h:
- * bridge/mac/WebCoreJavaScript.h:
- * bridge/mac/WebCorePageBridge.h:
- * bridge/mac/WebCorePageState.h:
- * bridge/mac/WebCoreResourceLoader.h:
- * bridge/mac/WebCoreScriptDebugger.h:
- * bridge/mac/WebCoreSettings.h:
- * bridge/mac/WebCoreStringTruncator.h:
- * bridge/mac/WebCoreStringTruncator.mm:
- * bridge/mac/WebCoreTextDecoder.h:
- * bridge/mac/WebDashboardRegion.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * platform/mac/CookieJar.mm:
- * platform/mac/DeprecatedStringMac.mm:
- * platform/mac/FontDataMac.mm:
- * platform/mac/FoundationExtras.h:
- * platform/mac/TextBoundaries.mm:
- * platform/mac/WebCoreHistory.h:
- * platform/mac/WebCoreHistory.m:
- * platform/mac/WebCoreKeyGenerator.h:
- * platform/mac/WebCoreTextArea.h:
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextRenderer.h:
- * platform/mac/WebCoreView.h:
- * platform/mac/WebCoreWidgetHolder.h:
- 2006-07-14 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
- - Updated ScriptInterpreter to work with Interpreter ref-counting in
- JavaScriptCore.
- (KJS::ScriptInterpreter::~ScriptInterpreter): Now protected to catch
- manual delete.
- 2006-07-14 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele and Justin.
- http://bugs.webkit.org/show_bug.cgi?id=9658
- <rdar://problem/4613948>
- REGRESSION: Check Spelling does not work in textarea elements
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::advanceToNextMisspelling):
- Don't use setStartBefore or setEndAfter on the search range because for shadow trees, there
- is no notion of before and after. Instead, use setStart and setEnd and pass in the start and end
- indices respectively.
-
- * dom/Range.cpp:
- (WebCore::Range::checkNodeBA):
- Allow range operations on shadow trees.
- * manual-tests/form-element-spelling.html: Added.
- 2006-07-14 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4621660> REGRESSION: Safari crashing in
- WebCore::FrameView::updateOverflowStatus
- m_viewportRenderer is never initialized for framesets, and it
- shouldn't be. So we just need to nil-check for it in
- updateOverflowStatus() and return early.
- * page/FrameView.cpp:
- (WebCore::FrameView::updateOverflowStatus): Nil check.
- 2006-07-14 Adele Peterson <adele@apple.com>
- RS by Darin.
- Backing out fix for <rdar://problem/4604703>
- REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field
- Darin had a better fix in WebKit for this.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
- 2006-07-14 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- - Fix for <rdar://problem/4614054> REGRESSION: Safari submits forms when the Return key is hit to complete inline inputs
- * page/Frame.h: (WebCore::Frame::inputManagerHasMarkedText): Added.
- * bridge/mac/FrameMac.h: ditto.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::inputManagerHasMarkedText): Added. Asks the input manager if there's marked text.
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): For text fields, don't submit the form on Enter
- if the input manager says there's marked text. I added this code for all text field paths. For widgets, WebCoreTextField.mm
- has code to deal with this case. But as we convert search, password, and isindex, they will need to do this check too.
- 2006-07-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9907
- REGRESSION (r15418): editing/pasteboard/paste-table-001 fails in pixel mode
- * rendering/RenderText.cpp:
- (WebCore::RenderText::caretRect): Fixed the calculation of the max/min allowed caret
- position.
- 2006-07-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9905
- REGRESSION (r15404-r15415): Repro crash when pressing delete in an empty editable div
- Test: editing/deleting/delete-at-start-or-end.html
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed): Added null check.
- (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
- 2006-07-14 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Geoffrey.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9903
- Simplify logic in JSHTMLOptionsCollection::setLength() by using no-arg getNumber()
- No test cases since there is no change in functionality.
- * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
- (WebCore::JSHTMLOptionsCollection::setLength): Simplified logic by using the
- no-argument getNumber() method.
- 2006-07-14 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Adele.
- - Build fix: don't need BLOCK_OBJC_EXCEPTIONS because we already have
- one surrounding this function, and the nested one makes the compiler
- think our local variable is volatile (seems like a compiler bug to me).
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::sendContextMenuEvent):
- 2006-07-14 Timothy Hatcher <timothy@apple.com>
- Reviewed by Maciej.
- Make JavaScriptCore a public framework. Adjusted the paths.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-07-14 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Hyatt.
- - fixed <rdar://problem/4567031> REGRESSION: Crash at WebCore::RenderBlock::createLineBoxes (seems to be a security hole?)
-
- I also fixed all the similar crash / assertion failure cases I could think of.
- * dom/Node.cpp:
- (WebCore::Node::nextRendererWithSameParent): Helper function for some of the above.
- * dom/Node.h:
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::addChild): Don't allow inserting forms when not in
- an HTML document, since we don't need that quirk and because parsing won't
- do certain render tree fixups. Also watch out for case when inserting before
- the renderer of a misnested child.
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::addChild): ditto
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::addChild): ditto
- 2006-07-13 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for <rdar://problem/4604703>
- REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field
- Test:
- * manual-tests/password-ctrl-click-lose-focus.html: Added.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
- If we're about to set a selection in the current view, make sure its the first responder.
- In this case, this will cause the password field to resign first responder at the right time.
- 2006-07-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9670
- REGRESSION: RTL white-space:pre-wrap text is offset to the right
- Test: fast/text/international/rtl-white-space-pre-wrap.html
- * rendering/RenderText.cpp:
- (WebCore::RenderText::caretRect): Fixed LTR case and added the RTL case
- of clipping the caret position to the text box when the caret is after
- the trailing space of an autowrapped line.
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::computeHorizontalPositionsForLine): Changed to truncate-
- to-fit the logically last text box if it contains the trailing spaces of an
- autowrapped line.
- (WebCore::RenderBlock::bidiReorderLine): Remember the logically last text run.
- In the case of autowrapped text with white space that overflows beyond the line,
- the last text run is the one containing the overflowing white space.
- (WebCore::RenderBlock::findNextLineBreak): Split overflowing white space on a
- line that autowraps only after white space into a separate text run.
- 2006-07-13 David Harrison <harrison@apple.com>
- Reviewed by Dave Hyatt.
- <rdar://problem/4624203> -webkit-highlight should be behind images
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::paint):
- Call custom highlighter before painting the image, marker, or widget.
- 2006-07-13 David Harrison <harrison@apple.com>
- Reviewed by Justin and Levi.
- <rdar://problem/4620743> REGRESSION: Option-Delete doesn't delete words during typing
- * Tests:
- editing/deleting/delete-by-word-001.html
- editing/deleting/delete-by-word-002.html
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed):
- (WebCore::TypingCommand::forwardDeleteKeyPressed):
- (WebCore::TypingCommand::doApply):
- * editing/TypingCommand.h:
- Delete and forward delete to use specified granularity.
- Undo of delete and forward delete to select what had been deleted (non-char granularity only).
-
- * page/Frame.cpp:
- (WebCore::Frame::setSelection):
- Close typing and end style even if selection is not changing.
- * page/Frame.h:
- Remove unused setSelection parameter keepTypingStyle.
- 2006-07-12 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- <rdar://problem/4622763> Deleting from beginning of paragraph following a table deletes rather than selects the table
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializeStartEnd): Added selection expansion for HRs.
- (WebCore::DeleteSelectionCommand::initializePositionData): Now uses enclosingBlockFlowOrTableElement
- instead of enclosingBlockFlowElement.
- (WebCore::DeleteSelectionCommand::removeNode): Use to identify that we need a placeholder
- when the start or end block is removed.
- (WebCore::DeleteSelectionCommand::handleGeneralDelete): Added check for canHaveChildrenForEditing
- to keep things like HRs from being given children.
- (WebCore::DeleteSelectionCommand::doApply): Switched to use member variable for needPlaceholder.
- * editing/DeleteSelectionCommand.h: Made needPlaceholder a member variable.
- * editing/TypingCommand.cpp:
- (WebCore::TypingCommand::deleteKeyPressed): Fixed selection bug for tables and open typing commands.
- (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
- * editing/htmlediting.cpp:
- (WebCore::editingIgnoresContent): Added check for HRs, since it's not considered a widget.
- * editing/visible_units.cpp:
- (WebCore::startOfParagraph): Fix for HRs and tables.
- (WebCore::endOfParagraph): Ditto.
- 2006-07-13 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9880
- Memory leaks running DOM-Hanoi
- No change in behavior, thus no test included.
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setStatusBarText): Use a local autorelease pool to release the temporaries -
- the test runs non-stop, and the enclosing pool doesn't get a chance to be drained.
- 2006-07-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9862
- REGRESSION: GMail: Crash in RenderView::repaintViewRectangle when spoofing as FF
- - see also <rdar://problem/4622407>
- Test: fast/frames/repaint-display-none-crash.html
- * rendering/RenderView.cpp:
- (WebCore::RenderView::repaintViewRectangle): Added null checking of the owner element's
- renderer, which can be null if the iframe is set to display:none.
- 2006-07-12 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4509393>
- selected DOM range starts with <object>, 0 offset but selection should include the <object>
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::shouldMergeStart):
- Don't pull content out of a table cell.
- * editing/htmlediting.cpp:
- (WebCore::editingIgnoresContent): Added <select> nodes.
- (WebCore::rangeCompliantEquivalent): Convert [node, 0] positions to positionBeforeNode(node)
- for more types of nodes.
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::positionForCoordinates):
- Fix a crasher when right clicking on an anonymous table.
- 2006-07-12 John Sullivan <sullivan@apple.com>
- Reviewed by Brady Eidson
-
- - fixed <rdar://problem/4611164> REGRESSION: Crash occurs when undoing a series of
- misspelled words (WebCore::RenderObject::repaint(bool)
- * dom/Document.cpp:
- (WebCore::Document::removeMarkers):
- put (it - markers.begin()) in a local variable before altering markers, in every case where this was
- happening. One of the cases like this was fixed a while back, but other cases were
- either missed at that time or crept in since.
- 2006-07-13 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Justin.
- http://bugs.webkit.org/show_bug.cgi?id=9663
- REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
-
- * dom/Document.cpp:
- (WebCore::Document::updateSelection):
- Don't return early if the selection is empty.
- 2006-07-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- <rdar://problem/4614656> REGRESSION: onpaste() handlers don't run for textarea elements
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::dispatchCPPEvent):
- If the element is a shadow node, dispatch the event to its real parent.
- * manual-tests/textarea-onpaste.html: Added.
- 2006-07-12 Beth Dakin <bdakin@apple.com>
- Reviewed by Anders.
- Fix for layout test regressions after my check-in last night. Just
- a silly mistake where I should have asked if we were NOT printing
- instead of if we were in the listbox code.
- * WebCore.xcodeproj/project.pbxproj: Project file wars. Back to
- XCode 2.3
- * platform/mac/ListBoxMac.mm:
- (itemTextRenderer): Inverted check.
- (groupLabelTextRenderer): Inverted check.
- 2006-07-12 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9806
- <rdar://problem/4622622>
- REGRESSION: Large rowspan causes WebKit to call abort()
- Test: fast/table/large-rowspan-crash.html
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::ensureRows):
- Use sizeof(RowStruct) instead of sizeof(int).
- Clearly we'll need something better to solve this completely.
- I expect another smaller, but still huge, value will still cause a problem.
- 2006-07-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4586665> REGRESSION: autorestore.apple.com: Crashes Safari in WebCore::Widget::client() const
- * bridge/mac/FrameMac.h:
- Add focusCallResultedInViewBeingCreated argument.
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::nextKeyViewInFrame):
- If the call to focus() caused the node to get a native widget, set focusCallResultedInViewBeingCreated to true.
-
- (WebCore::FrameMac::nextKeyViewInFrameHierarchy):
- Don't reset the focus node if focusCallResultedInViewBeingCreated is true. Also, add magic to prevent setting
- a text field as the first responder if its field editor already is the current first responder.
-
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent):
- In some cases, get the event target node again after dispatching the mouse event.
- 2006-07-12 Beth Dakin <bdakin@apple.com>
- Reviewed by Adele.
- Fix for <rdar://problem/4615765> Input[type='search' fields
- initially render too large in Widgets
- Fundamentally, the problem here is that we were miscalculating
- things because [NSGraphicsContext currentContextDrawingToScreen]
- was evaluating to false when widgets first load. We only ever used
- this check, however, to determine if we were printing or not, so it
- should not have evaluated to false for loading in Dashbaord.
- Instead, if we query the RenderView about whether or not we are
- printing, we will get the right answer.
- No test case added since this appears only to affect Dashboard.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge drawRect:]): Ask the RenderView if we are
- printing instead. This is not part of the actual bug fix, but it
- seems wise to get rid of all calls to [NSGraphicsContext
- currentContextDrawingToScreen] when we are just trying to determine
- if we are printing or not.
- * platform/mac/ListBoxMac.mm:
- (itemTextRenderer):This function now takes a boolean, isPrinting.
- (groupLabelTextRenderer): Same as above.
- (ListBox::sizeForNumberOfLines): Ask the RenderView if we are
- printing.
- (-[WebCoreTableView drawRow:clipRect:]): Same as above.
- * platform/mac/PopUpButtonMac.mm:
- (PopUpButton::sizeHint): Same as above.
- * platform/mac/TextFieldMac.mm:
- (-[NSSearchFieldCell _addStringToRecentSearches:]):
- * rendering/RenderLineEdit.cpp: Same as above.
- 2006-07-12 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Fix for: http://bugs.webkit.org/show_bug.cgi?id=9813
- OPTION text can paint over select element's scrollbar
- Test: fast/forms/option-text-clip.html
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::paintObject):
- When calculating the clip to apply to the button text, also consider padding.
- In the future, we may have separate renderers for the text part, and the arrow part
- of the control, and then the separation should be natural. For now, we use padding.
- 2006-07-11 David Kilzer <ddkilzer@kilzer.net>
- Windows build fix. Reviewed by NOBODY.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Added JSHTMLOptionsCollection.cpp/h
- and JSHTMLOptionsCollectionCuston.cpp. VC++ Express realphabetized the file list.
- 2006-07-11 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9809
- <rdar://problem/4619515>
- focus ring fails to appear on select element after choosing item from popup
- - includes http://bugs.webkit.org/show_bug.cgi?id=9853
- improvements to select element, including some storage leak fixes
- * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::index): Use a const
- reference for the list items, so we don't have to copy a vector.
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::selectedIndex): Ditto.
- (WebCore::HTMLSelectElement::setSelectedIndex): Ditto.
- (WebCore::HTMLSelectElement::length): Ditto.
- (WebCore::HTMLSelectElement::remove): Ditto.
- (WebCore::HTMLSelectElement::value): Ditto.
- (WebCore::HTMLSelectElement::setValue): Ditto.
- (WebCore::HTMLSelectElement::stateValue): Ditto.
- (WebCore::HTMLSelectElement::restoreState): Ditto.
- (WebCore::HTMLSelectElement::appendFormData): Ditto.
- (WebCore::HTMLSelectElement::optionToListIndex): Ditto.
- (WebCore::HTMLSelectElement::listToOptionIndex): Ditto.
- (WebCore::HTMLSelectElement::recalcListItems): Made const, with the appropriate
- fields mutable.
- (WebCore::HTMLSelectElement::reset): Use a const reference for
- the list items, so we don't have to copy the vector. Remove the call to
- setSelectionChanged for the RenderMenuList case.
- (WebCore::HTMLSelectElement::notifyOptionSelected): Ditto, on both counts.
- (WebCore::HTMLSelectElement::defaultEventHandler): Call focus() before showing
- the pop-up.
- * html/HTMLSelectElement.h: The RenderMenuList class is no longer a friend.
- Changed the listItems function to return a const reference to the vector so
- it no longer copies the vector. Removed the const_cast to the call to
- recalcListItems and changed it to a const member function. Made m_recalcListItems
- mutable.
- * rendering/DeprecatedRenderSelect.cpp:
- (WebCore::DeprecatedRenderSelect::updateFromElement): Removed an unnecessary call
- to recalcListItems, which is called automatically. Use a const reference for the
- list items so we don't have to copy a vector.
- (WebCore::DeprecatedRenderSelect::layout): Ditto.
- (WebCore::DeprecatedRenderSelect::selectionChanged): Ditto.
- (WebCore::DeprecatedRenderSelect::updateSelection): Ditto.
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::RenderMenuList): Updated for renamed data members.
- (WebCore::RenderMenuList::createInnerBlock): Ditto.
- (WebCore::RenderMenuList::addChild): Ditto.
- (WebCore::RenderMenuList::removeChild): Ditto.
- (WebCore::RenderMenuList::setStyle): Ditto. Also removed code to set the style
- on the pop-up menu, because it's created with the correct style and destroyed
- before it a style change could occur.
- (WebCore::RenderMenuList::updateFromElement): Rearranged code to compute the
- maximum width in a simpler fashion, and to not bother trying to maintain
- the "selected" flags on the elements, since the HTMLSelectElement class
- takes care of that. Store the width as an int. Call setText to set the text
- based on the selected element's option text.
- (WebCore::RenderMenuList::paintObject): Don't check m_inner when setting
- up the clip -- always set up the clip.
- (WebCore::RenderMenuList::calcMinMaxWidth): Use m_optionsWidth directly
- instead of calling ceilf on m_longestWidth.
- (WebCore::RenderMenuList::showPopup): Don't use m_popupMenu to store the
- menu -- instead keep the pointer in a local variable. Get the selected
- index from the HTMLSelectElement.
- (WebCore::RenderMenuList::valueChanged): Call HTMLSelectElement::setSelectedIndex
- to do most of the work.
- * rendering/RenderMenuList.h: Renamed m_inner to m_innerBlock. Removed
- m_popupMenu, m_size, m_selectionChanged, and m_selectedIndex. Renamed
- m_longestWidth to m_optionsWidth and changed it to be an int. Removed
- unneeded override of removeLeftoverAnonymousBoxes function. Removed
- unneeded selectionChanged, setSelectionChanged, updateSelection, and
- hasPopupMenu functions. Removed extra includes.
- * rendering/RenderPopupMenu.cpp: (WebCore::RenderPopupMenu::populate):
- Change to iterate the list items instead of iterating all children
- of the select node.
- * rendering/RenderPopupMenu.h: Renamed getRenderMenuList to menuList.
- * rendering/RenderPopupMenuMac.mm:
- (WebCore::RenderPopupMenuMac::populate): Moved code to clear and create
- the pop-up here from the caller. Removed an extra retain that would cause
- the NSPopUpButtonCell to leak.
- (WebCore::RenderPopupMenuMac::showPopup): Removed unnecessary code to
- create the pop-up, which is now in populate, and also the call to the
- clear function, for the same reason. Reorganized code to make it a bit
- more readable. Removed an unnecessary if to check if frame is nil.
- Used a RefPtr to make sure we don't make a call on a frame after it's
- deleted. As part of the reorganization fixed a problem where we'd retain
- the event and then return early without releasing it in one case.
- (WebCore::RenderPopupMenuMac::addSeparator): Tweaked a little.
- (WebCore::RenderPopupMenuMac::addGroupLabel): Grouped all the code to
- manage the NSMenu at the bottom of the function.
- (WebCore::RenderPopupMenuMac::addOption): Ditto.
- 2006-07-11 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4620686>
- REGRESSION: Mispelling markers are still displayed when using the delete key to place caret into a misspelled word
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::respondToChangedSelection): Remove markers from newAdjacentWords
- even if oldAdjacentWords is equal to newAdjacentWords. This happens during a deletion.
-
- 2006-07-11 Tim Omernick <timo@apple.com>
- Reviewed by NOBODY (build fix)
- * bindings/objc/DOMPrivate.h:
- Don't @class NPObject; that breaks files that actually #import <JavaScriptCore/npruntime.h>, since the NPObject
- there is of a different type.
- Also clarified a highly misleading comment from my last commit. I meant to clarify the comment
- before landing.
- 2006-07-12 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9635
- REGRESSION: Crash when adding to cart at <http://www.yemeksepeti.com/>
-
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptHandler):
- Don't load external scripts if the parser is stopped.
-
- * manual-tests/open-close-tokenizer-crash.html: Added.
- * manual-tests/resources/empty-file.js: Added.
- * manual-tests/resources/open-close-tokenizer-crash.html: Added.
- Add manual test.
- 2006-07-11 John Sullivan <sullivan@apple.com>
- Reviewed by Kevin, Timo O, Brady, Darin, and Hyatt (whee!)
- - added support for creating a selection image with white text
- * rendering/RenderObject.h:
- (WebCore::):
- add PaintRestriction enum
- (WebCore::RenderObject::PaintInfo::PaintInfo):
- add forceWhiteText boolean to PaintInfo struct
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- replaced m_selectionOnly bool with m_paintRestriction, which also handles forcing the
- text to white
- * page/Frame.cpp:
- (WebCore::Frame::paint):
- updated to use & pass m_paintRestriction where it used to use & pass just m_selectionOnly
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::selectionImage):
- now takes forceWhiteText parameter, stored in FramePrivate as part of PaintRestriction
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge selectionImageForcingWhiteText:]):
- renamed from selectionImage, now takes forceWhiteText parameter, which is passed
- down into Frame
- * rendering/RenderLayer.h:
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::paint):
- use a PaintRestriction value where we used to use a selectionOnly bool
- (WebCore::RenderLayer::paintLayer):
- ditto; also stores forceWhiteText in PaintInfo struct
- * kcanvas/KCanvasResources.cpp:
- (WebCore::KCanvasMarker::draw):
- updated for changed signature of PaintInfo constructor
- * ksvg2/svg/SVGMaskElement.cpp:
- (WebCore::SVGMaskElement::drawMaskerContent):
- ditto
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- ditto
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- paint with white text color if forceWhiteText is set in PaintInfo struct
- 2006-07-11 Tim Omernick <timo@apple.com>
- Reviewed by Anders.
- <http://bugs.webkit.org/show_bug.cgi?id=9843>:
- Give Netscape plug-ins access to their own DOM element
- * html/HTMLPlugInElement.h:
- Just import JSC headers on Mac. The NPObject and Bindings::Instance stuff is only used on Mac anyway.
- Changed __APPLE__ to PLATFORM(MAC).
- Added m_NPObject ivar.
- * html/HTMLPlugInElement.cpp:
- (WebCore::HTMLPlugInElement::HTMLPlugInElement):
- Initialize the NPObject.
- (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
- Release the NPObject when the element is destroyed.
- (WebCore::HTMLPlugInElement::createNPObject):
- Creates an NPObject for the element.
- (WebCore::HTMLPlugInElement::getNPObject):
- Returns the NPObject for the element, creating and caching it if necessary.
- * html/HTMLAppletElement.h:
- Changed __APPLE__ to PLATFORM(MAC).
- * html/HTMLAppletElement.cpp:
- ditto
- * html/HTMLEmbedElement.h:
- ditto
- * html/HTMLEmbedElement.cpp:
- ditto
- * html/HTMLObjectElement.h:
- ditto
- * html/HTMLObjectElement.cpp:
- ditto
- * bindings/objc/DOMPrivate.h:
- Added -[DOMElement _NPObject].
- * bindings/objc/DOM.mm:
- (-[DOMElement _NPObject]):
- Returns the NPObject for the element. Since this is only needed by the Netscape plug-in API, you can only get
- the NPObject for applet, embed, and object elements.
-
- 2006-07-11 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=9861
- REGRESSION: Can't dynamically change list box to popup
-
- and updated fix for http://bugs.webkit.org/show_bug.cgi?id=9859
- REGRESSION: Can't dynamically change popup to list box
- The original fix for 9859 was in the renderer, and I think we can catch the change
- earlier in the element to detach and reattach.
- I also did some cleanup to remove the PopupButton code path from DeprecatedRenderSelect
- Test: fast/forms/select-change-listbox-to-popup.html
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::parseMappedAttribute): If the new attribute value is going to require us to change from listbox to popup or vice versa,
- 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
- when we attach.
- (WebCore::HTMLSelectElement::recalcStyle): Updated shouldUseMenuList since it no longer takes a RenderStyle.
- (WebCore::HTMLSelectElement::isKeyboardFocusable): ditto.
- (WebCore::HTMLSelectElement::isMouseFocusable): ditto.
- (WebCore::HTMLSelectElement::createRenderer): ditto.
- (WebCore::HTMLSelectElement::setRecalcListItems): ditto.
- (WebCore::HTMLSelectElement::reset): ditto.
- (WebCore::HTMLSelectElement::notifyOptionSelected): ditto.
- (WebCore::HTMLSelectElement::defaultEventHandler): ditto.
- * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList):
- This method no longer takes a RenderStyle. That was leftover from when we used to use the appearance
- to determine whether or not to use the new menu list implementation.
- * rendering/DeprecatedRenderSelect.h: Removed PopupButton code path.
- * rendering/DeprecatedRenderSelect.cpp:
- (WebCore::DeprecatedRenderSelect::DeprecatedRenderSelect):
- (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
- (WebCore::DeprecatedRenderSelect::updateFromElement):
- (WebCore::DeprecatedRenderSelect::baselinePosition):
- (WebCore::DeprecatedRenderSelect::layout):
- (WebCore::DeprecatedRenderSelect::updateSelection):
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
- Backed out previous fix since this is now done in HTMLSelectElement.
- 2006-07-11 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=9859
- REGRESSION: Can't dynamically change popup to list box
- Test: fast/forms/select-change-popup-to-listbox.html
- * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
- If the select element has the multiple property set, or has a size > 1, then it
- really should be a list box, so we detach and attach the element so it creates the
- correct type of renderer.
- 2006-07-11 John Sullivan <sullivan@apple.com>
- Reviewed by Beth Dakin and Tim Omernick
- - fixed <rdar://problem/4622794> HiDPI: dragging the selection in Safari can show pixel cracks
- at non-integral scale factors
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::imageFromRect):
- round image rect in window coordinate space
- 2006-07-10 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9811
- rdar://problem/4619572
- OPTION text contained in OPTGROUP appears at the wrong size
- * dom/Node.h:
- * dom/Node.cpp: (WebCore::Node::renderStyle): Made a const member function.
- The derived classes were overriding with const member functions, and I could
- change either this or the derived -- decided to do this.
- 2006-07-10 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9810
- rdar://problem/4619534
- OPTGROUP label text is using the default font instead of Lucida Grande
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::setFontFromControlSize):
- Code wants the family name, but was calling fontName, which is not the same thing.
- Also removed the unneeded conversion to DeprecatedString.
- === Safari-521.16 ===
- 2006-07-10 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9179
- Implement select.options.add() method
- Tests:
- - fast/dom/select-selectedIndex-multiple.html
- - fast/dom/select-selectedIndex.html
- - fast/js/select-options-add.html
- * DerivedSources.make: Added JSHTMLOptionsCollection.h.
- * ForwardingHeaders/kjs/operations.h: Added.
- * WebCore.xcodeproj/project.pbxproj: Added new source files.
- * bindings/js/JSHTMLOptionsCollectionCustom.cpp: Added.
- (WebCore::JSHTMLOptionsCollection::length):
- (WebCore::JSHTMLOptionsCollection::setLength):
- (WebCore::JSHTMLOptionsCollection::indexSetter):
- * bindings/js/kjs_html.cpp: Removed JSHTMLOptionsCollection implementation.
- Renamed classes and methods for consistency.
- (KJS::JSHTMLElement::selectGetter):
- (KJS::JSHTMLElement::put):
- (KJS::JSHTMLElement::selectSetter):
- (KJS::JSHTMLCollection::JSHTMLCollection):
- (KJS::JSHTMLCollectionProtoFunc::callAsFunction):
- (KJS::getHTMLOptionsCollection):
- * bindings/js/kjs_html.h: Ditto.
- * bindings/scripts/CodeGeneratorJS.pm: Added support for HasCustomIndexSetter class attribute.
- Added support for Optional parameter attribute, which makes generated code assume overloaded
- implementation methods are available for a JavaScript function with optional arguments. Changed
- local 'impl' variables to 'imp' so that impl() methods could be called without class designation.
- * html/HTMLOptionElement.idl: Added GenerateNativeConverter attribute.
- * html/HTMLOptionsCollection.cpp: Added methods used by generated JSHTMLOptionsCollection class.
- (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
- (WebCore::HTMLOptionsCollection::add):
- (WebCore::HTMLOptionsCollection::selectedIndex):
- (WebCore::HTMLOptionsCollection::setSelectedIndex):
- (WebCore::HTMLOptionsCollection::setLength):
- * html/HTMLOptionsCollection.h: Ditto.
- * html/HTMLOptionsCollection.idl: Added.
- 2006-07-10 David Harrison <harrison@apple.com>
- Reviewed by Dave Hyatt.
- <rdar://problem/4602408> -webkit-highlight needs to support images and elements other than text
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintCustomHighlight):
- * rendering/RenderBox.h:
- Utility for subclasses.
-
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- Custom highlight in front of images.
-
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- Custom highlight in front of list markers.
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::paint):
- Custom highlight in front of objects.
- 2006-07-10 David Hyatt <hyatt@apple.com>
- <rdar://problem/4620557> REGRESSION: In a mail message, text isn't painted
- correctly after choosing Redo Typing
- Better fix for repainting issue with positioned objects when height
- changes. Optimize when only a positioned child changes so that we don't
- incorrectly do normal flow layout.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlock):
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::layoutBlock):
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::layout):
- * rendering/RenderView.cpp:
- (WebCore::RenderView::layout):
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren):
- 2006-07-10 Adele Peterson <adele@apple.com>
- Reviewed by Beth.
- - Fix for <rdar://problem/4621442> REGRESSION (NativePopup) : Popup menus aren't drawn correctly on page at orbitz.com; cheaptickets.com
- Test: fast/forms/select-style.html
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
- Don't let popups be style-able for now. We'll allow it later, when we
- have a good way to handle border & backgrounds and still having it look like a control.
- 2006-07-10 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4619260>
- 9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
- <rdar://problem/4619841>
- REGRESSION: Dragging selection over input field results in a crash (WebCore::maxDeepOffset(WebCore::Node const*)
- * WebCore.xcodeproj/project.pbxproj:
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent): Iterate using next/previousVisuallyDistinctCandidate
- instead of traverseNext/Previous node because we were skipping positions. Jump out of shadow trees.
- Migrate to isEditablePosition instead of isContentEditable.
-
- 2006-07-10 Beth Dakin <bdakin@apple.com>
- Reviewed by Adele.
- Shuffling comments around from my last check-in to make things read
- more clearly.
- * page/DOMWindow.h:
- * page/DOMWindow.idl:
- 2006-07-10 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- Fix for <rdar://problem/4621095> The should be a way to
- access the user interface scale factor through the DOM
- window.devicePixelRatio returns the user interface scale factor.
- * page/DOMWindow.cpp:
- (WebCore::DOMWindow::devicePixelRatio):
- * page/DOMWindow.h:
- * page/DOMWindow.idl:
- 2006-07-10 Brady Eidson <beidson@apple.com>
- Reviewed by Alexey
- Resolved the console error messages people got from the new DB even if they didn't have it enabled
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::pruneUnreferencedIcons):
- (WebCore::IconDatabase::pruneUnretainedIcons):
- Added quick check to bail if the DB isn't open
- 2006-07-10 David Harrison <harrison@apple.com>
- Reviewed by Tim Hatcher
- Partial fix for...
- <rdar://problem/4619260> 9A213 + Safari 521.15.1 Crash with To Do's alarm icon (WebCore::maxDeepOffset(WebCore::Node const*) )
-
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent):
- 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.
- 2006-07-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9808
- REGRESSION: Incorrect layout (and ERROR) when forcing ATSU For All Text
- * manual-tests/ATSU-bad-layout.html: Added.
- * platform/mac/FontMac.mm:
- (WebCore::Font::floatWidthForComplexText): Return 0 immediately for empty runs.
- 2006-07-10 Darin Adler <darin@apple.com>
- - try to fix the no-SVG build
- * ksvg2/misc/SVGImageLoader.cpp: Move namespace brace inside the #if.
- 2006-07-10 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9833
- REGRESSION: Reproducible crash: RenderMenuList.cpp:58: failed assertion `!m_first'
- * manual-tests/empty-title-popup.html: Added.
- * rendering/RenderMenuList.h: Add createInnerBlock.
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::createInnerBlock): Factored out of addChild.
- (WebCore::RenderMenuList::addChild): Call createInnerBlock.
- (WebCore::RenderMenuList::setText): Changed parameter type.
- (WebCore::RenderMenuList::showPopup): Call createInnerBlock before calling
- the parent class's addChild.
- 2006-07-10 Rob Buis <buis@kde.org>
- Reviewed by Maciej via IRC.
- Make sure the attributes are calculated against viewport width value,
- as defined in the spec. http://paste.lisp.org/display/22342
- * ksvg2/svg/SVGEllipseElement.cpp:
- (WebCore::SVGEllipseElement::rx): Changed LM_HEIGHT to LM_WIDTH.
- * ksvg2/svg/SVGLineElement.cpp:
- (SVGLineElement::x2): Ditto.
- 2006-07-10 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for <rdar://problem/4610314> Support the CSS3 content property
- for images
- This patch provides initial support for the CSS3 content property.
- It lacks support for any content other than images, and only allows
- content for elements that seemed safe for now.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty): Remove restrictions for
- just :before and :after
- * html/HTMLBRElement.cpp:
- (WebCore::HTMLBRElement::createRenderer):
- * html/HTMLFrameSetElement.cpp:
- (WebCore::HTMLFrameSetElement::createRenderer):
- * html/HTMLImageElement.cpp:
- (WebCore::HTMLImageElement::createRenderer):
- * html/HTMLLegendElement.cpp:
- (WebCore::HTMLLegendElement::createRenderer):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::RenderImage):
- (WebCore::RenderImage::setCachedImage): Don't allow the image to be
- set this way if it was already set with the content property.
- * rendering/RenderImage.h:
- (WebCore::RenderImage::setIsAnonymousImage): Anonymous images are
- those set through the content property.
- (WebCore::RenderImage::isAnonymousImage):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::createObject): If there is content
- specified, create a RenderImage with the content and initialize the
- cached image to whatever was specified in the CSS.
- 2006-07-10 Brady Eidson <beidson@apple.com>
- Reviewed by NOBODY (Build Fix!)
- * icon/SiteIcon.cpp:
- (SiteIcon::getImage):
- Release build made an "unused variable" warning, which is, of course, an error. fixed that.
- 2006-07-10 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- SQLite Icon DB now fully replicates functionality of the old DB, including pruning to keep unused
- information out to keep down disk usage. For now, it is still off by default, as the critical
- feature of importing old icons into the new DB is still unrealized.
- If you'd like to test, add #define ICONDEBUG to your WebKitPrefix.h
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open):
- -Sets up a timer for initial pruning
- (WebCore::IconDatabase::iconForPageURL):
- -Switched away from "dirty blob hack" as the problem is provisionally solved
- (WebCore::IconDatabase::retainIconForURL):
- (WebCore::IconDatabase::releaseIconForURL):
- -Same as found in WebKit
- (WebCore::IconDatabase::totalRetainCountForIconURL):
- -Adds up all retainers of icon
- (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
- -Wipes an Icon table entry out
- (WebCore::IconDatabase::establishTemporaryIconIDForIconURL):
- (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
- (WebCore::IconDatabase::establishIconIDForIconURL):
- (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
- -Added ability to get an iconID without creating a new one if a lookup is all
- that is genuinely wanted
- (WebCore::IconDatabase::pruneUnreferencedIcons):
- (WebCore::IconDatabase::pruneUnretainedIcons):
- -Called on a timer on DB startup to clean it out
- * icon/IconDatabase.h:
- * icon/SiteIcon.cpp:
- (SiteIcon::SiteIcon):
- (SiteIcon::~SiteIcon):
- -Deletes the image on deletion
- (SiteIcon::getImage):
- -Cut down on no-longer-necessary debug info
- 2006-07-10 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- http://bugs.webkit.org/show_bug.cgi?id=9245
- Quirksmode: Incorrect handling of disabled BUTTON elements
- * html/HTMLButtonElement.cpp:
- (WebCore::HTMLButtonElement::defaultEventHandler):
- Don't call prepareSubmit if the element is disabled.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::defaultEventHandler):
- Don't call prepareSubmit if the element is disabled.
- 2006-07-10 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * platform/win/TemporaryLinkStubs.cpp: Put a few functions in the WebCore namespace.
- * platform/gdk/TemporaryLinkStubs.cpp: Ditto.
- 2006-07-10 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix failures seen in layout tests
- * bindings/js/kjs_dom.cpp: (KJS::toJS): Restore one of the few WebCore:: prefixes
- that really needed to be there -- because we have two classes named JSHTMLDocument
- at the moment! (One in KJS and one in WebCore namespace.)
- 2006-07-10 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * rendering/RenderLayer.h: Correct a forward declaration of ScrollBar.
- 2006-07-09 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Fix for <rdar://problem/4463835> Switch to use new popup menu implementation for <select>
- * css/html4.css: Added style for new selects, and for list boxes.
- * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Removed check for appearance so new popups can be styled.
-
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::setStyle): Removed padding. This is now set by the theme.
- (WebCore::RenderMenuList::calcMinMaxWidth): Now takes minimum text size into account.
- * rendering/RenderMenuList.h: Removed baselinePosition since we're letting the theme calculate that.
- * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isControlContainer): Added menuList as a ControlContainer,
- so RenderThemeMac will compute its baseline.
- * rendering/RenderTheme.h: (WebCore::RenderTheme::minimumTextSize): Added.
- * rendering/RenderThemeMac.h: Added minimumTextSize, setPopupPaddingFromControlSize, popupButtonSizes, popupButtonMargins, popupButtonPadding.
- Removed sizeOfArrowControl.
- * rendering/RenderThemeMac.mm:
- (WebCore::): Added enum for padding.
- (WebCore::RenderThemeMac::adjustRepaintRect): Now inflates rect to account for control shadow.
- (WebCore::RenderThemeMac::baselinePosition): Now calculates baseline for menulist.
- (WebCore::RenderThemeMac::popupButtonMargins): Tweaked values.
- (WebCore::RenderThemeMac::popupButtonSizes): Added.
- (WebCore::RenderThemeMac::popupButtonPadding): Added, so different padding can be set for different control sizes.
- (WebCore::RenderThemeMac::setPopupPaddingFromControlSize): Added.
- (WebCore::RenderThemeMac::paintMenuList): Now inflates rect to account for control shadow.
- (WebCore::RenderThemeMac::adjustMenuListStyle): Resets border, sets padding, sets control size.
- (WebCore::RenderThemeMac::setPopupButtonCellState): Removed unnecessary class name.
- (WebCore::RenderThemeMac::minimumTextSize): Added.
- 2006-07-09 Darin Adler <darin@apple.com>
- - add back "unused code" for plain text fields, still used by <isindex>!
- * platform/TextField.h:
- * platform/mac/TextFieldMac.mm:
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextField.mm:
- * rendering/RenderLineEdit.cpp:
- 2006-07-09 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher.
- - put more into the WebCore namespace
- - removed unused code for plain text fields
- Put more classes, class templates, enums, functions, and constants into
- the WebCore namespace, including all the headers in the platform directory.
- Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
- Added some "WebCore::" qualifiers in a few places.
- Removed "uses WebCore::" in headers that we said we'd remove "when
- everything is in the WebCore namespace".
- * bindings/js/JSDOMParser.cpp:
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- * bindings/js/JSXSLTProcessor.cpp:
- * bindings/js/kjs_binding.cpp:
- * bindings/js/kjs_css.cpp:
- * bindings/js/kjs_dom.cpp:
- * bindings/js/kjs_dom.h:
- * bindings/js/kjs_events.cpp:
- * bindings/js/kjs_proxy.h:
- * bindings/js/kjs_window.h:
- * bindings/objc/DOM.mm:
- * bridge/History.h:
- * bridge/JavaAppletWidget.h:
- * bridge/mac/FormDataMac.h:
- * bridge/mac/FormDataMac.mm:
- * bridge/mac/WebCoreAXObject.mm:
- * bridge/mac/WebCoreEncodings.mm:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- * bridge/mac/WebCorePageState.h:
- * bridge/mac/WebCoreScriptDebugger.mm:
- * bridge/mac/WebCoreSettings.h:
- * css/CSSGrammar.y:
- * css/CSSPageRule.cpp:
- * css/CSSPageRule.h:
- * css/MediaList.cpp:
- * css/cssstyleselector.h:
- * dom/Clipboard.h:
- * dom/Document.cpp:
- * dom/Document.h:
- * dom/EventTargetNode.h:
- * dom/Node.cpp:
- * dom/Node.h:
- * dom/Position.h:
- * dom/Range.cpp:
- * dom/XMLTokenizer.cpp:
- * editing/AppendNodeCommand.h:
- * editing/ApplyStyleCommand.cpp:
- * editing/BreakBlockquoteCommand.cpp:
- * editing/BreakBlockquoteCommand.h:
- * editing/CompositeEditCommand.cpp:
- * editing/CompositeEditCommand.h:
- * editing/CreateLinkCommand.h:
- * editing/DeleteFromTextNodeCommand.h:
- * editing/DeleteSelectionCommand.h:
- * editing/FormatBlockCommand.h:
- * editing/HTMLInterchange.cpp:
- * editing/HTMLInterchange.h:
- * editing/IndentOutdentCommand.h:
- * editing/InsertIntoTextNodeCommand.h:
- * editing/InsertLineBreakCommand.h:
- * editing/InsertListCommand.h:
- * editing/InsertNodeBeforeCommand.h:
- * editing/InsertTextCommand.cpp:
- * editing/InsertTextCommand.h:
- * editing/JSEditor.cpp:
- * editing/JSEditor.h:
- * editing/JoinTextNodesCommand.h:
- * editing/MergeIdenticalElementsCommand.cpp:
- * editing/MergeIdenticalElementsCommand.h:
- * editing/ModifySelectionListLevel.h:
- * editing/MoveSelectionCommand.h:
- * editing/RebalanceWhitespaceCommand.h:
- * editing/RemoveNodeAttributeCommand.h:
- * editing/RemoveNodeCommand.h:
- * editing/RemoveNodePreservingChildrenCommand.h:
- * editing/ReplaceSelectionCommand.h:
- * editing/SetNodeAttributeCommand.h:
- * editing/SplitElementCommand.cpp:
- * editing/SplitElementCommand.h:
- * editing/SplitTextNodeCommand.cpp:
- * editing/SplitTextNodeCommand.h:
- * editing/SplitTextNodeContainingElementCommand.h:
- * editing/TypingCommand.cpp:
- * editing/TypingCommand.h:
- * editing/UnlinkCommand.h:
- * editing/VisiblePosition.cpp:
- * editing/WrapContentsInDummySpanCommand.cpp:
- * editing/WrapContentsInDummySpanCommand.h:
- * editing/markup.cpp:
- * editing/markup.h:
- * html/HTMLAnchorElement.cpp:
- * html/HTMLBodyElement.cpp:
- * html/HTMLButtonElement.h:
- * html/HTMLCollection.h:
- * html/HTMLDocument.h:
- * html/HTMLEmbedElement.cpp:
- * html/HTMLFormElement.cpp:
- * html/HTMLFormElement.h:
- * html/HTMLFrameElement.cpp:
- * html/HTMLFrameSetElement.cpp:
- * html/HTMLKeygenElement.cpp:
- * html/HTMLLabelElement.cpp:
- * html/HTMLObjectElement.cpp:
- * html/HTMLObjectElement.h:
- * html/HTMLTableElement.cpp:
- * html/HTMLTablePartElement.cpp:
- * icon/IconDatabase.h:
- * kcanvas/KCanvasPath.h:
- * kcanvas/KCanvasResources.cpp:
- * kcanvas/KCanvasResources.h:
- * kcanvas/KCanvasTreeDebug.cpp:
- * kcanvas/KCanvasTreeDebug.h:
- * kcanvas/RenderSVGContainer.cpp:
- * kcanvas/RenderSVGText.h:
- * kcanvas/device/KRenderingPaintServer.h:
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- * ksvg2/misc/SVGImageLoader.cpp:
- * ksvg2/svg/SVGElement.cpp:
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGForeignObjectElement.cpp:
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGPoint.h:
- * ksvg2/svg/SVGStylable.h:
- * ksvg2/svg/SVGTRefElement.cpp:
- * ksvg2/svg/SVGTRefElement.h:
- * ksvg2/svg/SVGTSpanElement.cpp:
- * ksvg2/svg/SVGTSpanElement.h:
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/svgpathparser.cpp:
- * ksvg2/svg/svgpathparser.h:
- * loader/Cache.h:
- * loader/DocLoader.h:
- * loader/LoaderFunctions.h:
- * loader/mac/LoaderFunctionsMac.mm:
- * page/Frame.h:
- * page/FrameView.h:
- * page/Page.h:
- * page/Settings.h:
- * platform/AffineTransform.cpp:
- * platform/AffineTransform.h:
- * platform/Arena.cpp:
- * platform/Arena.h:
- * platform/CookieJar.h:
- * platform/DeprecatedCString.cpp:
- * platform/DeprecatedCString.h:
- * platform/DeprecatedPtrList.h:
- * platform/DeprecatedPtrListImpl.cpp:
- * platform/DeprecatedPtrListImpl.h:
- * platform/DeprecatedPtrQueue.h:
- * platform/DeprecatedString.cpp:
- * platform/DeprecatedString.h:
- * platform/DeprecatedStringList.cpp:
- * platform/DeprecatedStringList.h:
- * platform/DeprecatedValueList.h:
- * platform/DeprecatedValueListImpl.cpp:
- * platform/DeprecatedValueListImpl.h:
- * platform/FileButton.h:
- * platform/FloatPoint.h:
- * platform/FloatRect.h:
- * platform/FloatSize.h:
- * platform/FontData.h:
- * platform/FontFallbackList.h:
- * platform/GraphicsContext.h:
- * platform/IntPoint.h:
- * platform/IntRect.h:
- * platform/IntSize.h:
- * platform/KURL.cpp:
- * platform/KURL.h:
- * platform/ListBox.h:
- * platform/Logging.cpp:
- * platform/Logging.h:
- * platform/Pen.h:
- * platform/PopUpButton.h:
- * platform/RegularExpression.cpp:
- * platform/RegularExpression.h:
- * platform/SSLKeyGenerator.h:
- * platform/ScrollBar.h:
- * platform/SegmentedString.h:
- * platform/Shared.h:
- * platform/Slider.h:
- * platform/StringImpl.h:
- * platform/TextBox.h:
- * platform/TextField.h:
- * platform/TextStream.cpp:
- * platform/TextStream.h:
- * platform/TransferJob.h:
- * platform/TransferJobClient.h:
- * platform/Widget.h:
- * platform/cg/AffineTransformCG.cpp:
- * platform/mac/ClipboardMac.h:
- * platform/mac/ClipboardMac.mm:
- * platform/mac/DeprecatedStringListMac.mm:
- * platform/mac/FontCacheMac.mm:
- * platform/mac/KURLMac.mm:
- * platform/mac/ListBoxMac.mm:
- * platform/mac/PopUpButtonMac.mm:
- * platform/mac/SSLKeyGeneratorMac.mm:
- * platform/mac/TextBoxMac.mm:
- * platform/mac/TextFieldMac.mm:
- * platform/mac/WebCoreTextArea.h:
- * platform/mac/WebCoreTextArea.mm:
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextField.mm:
- * rendering/DeprecatedRenderSelect.h:
- * rendering/RenderArena.cpp:
- * rendering/RenderArena.h:
- * rendering/RenderBlock.cpp:
- * rendering/RenderBox.cpp:
- * rendering/RenderContainer.cpp:
- * rendering/RenderFlexibleBox.cpp:
- * rendering/RenderFlow.cpp:
- * rendering/RenderLayer.cpp:
- * rendering/RenderLineEdit.cpp:
- * rendering/RenderObject.h:
- * rendering/RenderStyle.cpp:
- * rendering/RenderStyle.h:
- * rendering/RenderText.cpp:
- * rendering/RenderTextFragment.cpp:
- * rendering/RenderTheme.h:
- * rendering/RenderTreeAsText.cpp:
- * rendering/RenderTreeAsText.h:
- * rendering/RenderView.h:
- * rendering/bidi.h:
- * xml/XSLStyleSheet.cpp:
- * xml/XSLTProcessor.cpp:
- 2006-07-09 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Beth.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::clear): Garbage collect after reinitalizing the global
- object, not before, since the reinitialization tends to create garbage.
- 2006-07-09 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- Bug 9820: Move new DOM API that has been through API review to public headers
- http://bugs.webkit.org/show_bug.cgi?id=9820
- * bindings/objc/DOM.mm:
- (-[DOMElement focus]):
- (-[DOMElement blur]):
- (-[DOMRange text]):
- (-[DOMRange _text]):
- * bindings/objc/DOMCSS.mm:
- (-[DOMRGBColor color]):
- (-[DOMRGBColor _color]):
- * bindings/objc/DOMCore.h:
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMExtensions.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLElement titleDisplayString]):
- (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
- (-[DOMHTMLDocument createDocumentFragmentWithText:]):
- (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
- (-[DOMHTMLDocument _createDocumentFragmentWithText:]):
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMXPath.h:
- * bindings/objc/DOMXPath.mm:
- 2006-07-09 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=9749 A
- nested content editable div causes unnecessary screen redraws.
-
- We were repainting too much because we were deciding that we needed
- a full layout because we didn't have a first line box. Our code
- used to hold a lot of assumptions that positioned elements would
- always have line boxes, but I fixed a few bugs a while back that
- appeared because this assumption isn't true. This assumption was
- also causing the extra redraws because the check meant that we
- would decide to do a full layout for any positioned element that
- did not have any line boxes in the first place. Maciej and I talked
- about this, and we couldn't figure out why the check for line boxes
- was part of determining if we need a full layout in the first
- place. After hunting around the code, we decided to assume that
- this check is antiquated. Removing it fixes the bug and doesn't
- seem to break any layout tests. So, fingers crossed!
- Will add layout test so soon.
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren): Remove firstLineBox
- check.
- 2006-07-09 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4598149> Deleting the contents of a DOMRange and then inserting a node into it crashes in WebCore::Font::canUseGlyphCache
- Test: fast/dom/delete-contents.html
-
- * dom/Range.cpp:
- (WebCore::Range::processContents):
- 2006-07-09 Darin Adler <darin@apple.com>
- - another round of renaming; and KWQ is dead
- * WebCore.vcproj/WebCore/WebCore.vcproj: Remove paths for kwq and khtml directories.
- Move files to their new locations. Did rename.
- * WebCore.xcodeproj/project.pbxproj: Move files to their new locations. Did rename.
- * WebCoreSources.bkl: Did rename.
- * webcore-base.bkl: Removed kwq.
- * kwq/AccessibilityObjectCache.h: Removed.
- * kwq/AccessibilityObjectCache.mm: Removed.
- * kwq/FormDataMac.h: Removed.
- * kwq/FormDataMac.mm: Removed.
- * kwq/WebCoreAXObject.h: Removed.
- * kwq/WebCoreAXObject.mm: Removed.
- * kwq/WebCoreEditCommand.h: Removed.
- * kwq/WebCoreEditCommand.mm: Removed.
- * kwq/WebCorePageState.h: Removed.
- * kwq/WebCorePageState.mm: Removed.
- * kwq/WebCoreResourceLoaderImp.h: Removed.
- * kwq/WebCoreResourceLoaderImp.mm: Removed.
- * bridge/AXObjectCache.h: Added.
- * bridge/mac/AXObjectCacheMac.mm: Added.
- * bridge/mac/WebCoreAXObject.h: Added.
- * bridge/mac/WebCoreAXObject.mm: Added.
- * loader/CachedObject.cpp: Removed.
- * loader/CachedObject.h: Removed.
- * loader/CachedObjectClient.h: Removed.
- * loader/CachedObjectClientWalker.cpp: Removed.
- * loader/CachedObjectClientWalker.h: Removed.
- * loader/CachedResource.cpp: Added.
- * loader/CachedResource.h: Added.
- * loader/CachedResourceClient.h: Added.
- * loader/CachedResourceClientWalker.cpp: Added.
- * loader/CachedResourceClientWalker.h: Added.
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- * css/CSSImageValue.h:
- * css/CSSImportRule.h:
- * dom/Document.cpp:
- * dom/Document.h:
- * dom/Notation.h:
- * dom/ProcessingInstruction.h:
- * dom/XMLTokenizer.cpp:
- * html/CanvasPattern.h:
- * html/HTMLDocument.h:
- * html/HTMLImageLoader.cpp:
- * html/HTMLImageLoader.h:
- * html/HTMLLinkElement.h:
- * html/HTMLScriptElement.cpp:
- * html/HTMLScriptElement.h:
- * html/HTMLTokenizer.cpp:
- * html/HTMLTokenizer.h:
- * kcanvas/KCanvasFilters.h:
- * ksvg2/svg/SVGCursorElement.cpp:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGFEImageElement.cpp:
- * ksvg2/svg/SVGFEImageElement.h:
- * loader/Cache.cpp:
- * loader/Cache.h:
- * loader/CachedCSSStyleSheet.cpp:
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- * loader/CachedImage.h:
- * loader/CachedScript.cpp:
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- * loader/CachedXSLStyleSheet.h:
- * loader/DocLoader.cpp:
- * loader/DocLoader.h:
- * loader/LoaderFunctions.h:
- * loader/Request.cpp:
- * loader/Request.h:
- * loader/loader.cpp:
- * loader/loader.h:
- * loader/mac/LoaderFunctionsMac.mm:
- * page/Frame.cpp:
- * page/FrameView.cpp:
- * platform/gdk/TemporaryLinkStubs.cpp:
- * platform/mac/ClipboardMac.h:
- * platform/win/TemporaryLinkStubs.cpp:
- * rendering/RenderBox.h:
- * rendering/RenderContainer.cpp:
- * rendering/RenderImage.cpp:
- * rendering/RenderImage.h:
- * rendering/RenderLayer.h:
- * rendering/RenderObject.cpp:
- * rendering/RenderObject.h:
- * rendering/RenderStyle.cpp:
- * rendering/RenderStyle.h:
- * xml/XSLImportRule.h:
- Did renaming.
- * platform/mac/can-convert.mm: Removed.
- 2006-07-09 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim O.
- * WebCore.exp:
- Add wkPathFromFont.
-
- * platform/mac/FontDataMac.mm:
- (-[NSFont WebCore]):
- Use wkPathFromFont.
-
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- Declare wkPathFromFont.
- 2006-07-09 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Set the stage to remove the workaround for the SQLite BLOB corruption. A few other small cleanups, and
- preparation for pruning unreferenced and unretained icons.
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::recreateDatabase): Added another trigger to assist in icon removal
- (WebCore::IconDatabase::deletePrivateTables): Cleaned up logging messages
- (WebCore::IconDatabase::imageDataForIconID): #ifdefed the blobbing hack for impending removal, use the real blob by default
- (WebCore::IconDatabase::imageDataForIconURL): same
- (WebCore::IconDatabase::imageDataForPageURL): same
- (WebCore::IconDatabase::pruneUnreferencedIcons): Will delete any icons and their data that are not referenced
- by any PageURL
- * icon/IconDatabase.h:
- * icon/SQLDatabase.h: Changed BlobAsVector to be unsigned char as thats the most reasonable type for
- a byte-buffer, and is what CFData expects
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::getColumnBlobAsVector):
- 2006-07-09 Darin Adler <darin@apple.com>
- - move all but the last 12 files out of kwq directory
- - removed a few unused source files I discovered
- * WebCore.vcproj/WebCore/WebCore.vcproj: Update for new file locations.
- * WebCore.xcodeproj/project.pbxproj: Ditto.
- * bridge/mac/FrameMac.mm:
- * dom/Element.h:
- * html/HTMLImageLoader.cpp:
- * loader/Cache.cpp:
- * loader/Cache.h:
- * loader/CachedCSSStyleSheet.cpp:
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- * loader/CachedImage.h:
- * loader/CachedObject.h:
- * loader/CachedScript.cpp:
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- * loader/CachedXSLStyleSheet.h:
- * loader/DocLoader.cpp:
- * loader/DocLoader.h:
- * page/Frame.cpp:
- * page/Frame.h:
- * page/FramePrivate.h:
- * platform/gdk/TemporaryLinkStubs.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- * rendering/DeprecatedSlider.cpp:
- * rendering/RenderObject.h:
- * xml/xmlhttprequest.cpp:
- Updated includes as needed for file location changes. Changed
- CachePolicy uses to match new filename and enum names.
- * loader/CachedResource.cpp: Removed.
- * loader/CachedResource.h: Removed.
- * loader/CachedResourceClient.h: Removed.
- * loader/CachedResourceClientWalker.cpp: Removed.
- * loader/CachedResourceClientWalker.h: Removed.
- The above files were checked in by accident a while back. The rename of
- CachedObject to CachedResource is now reflected in do-webcore-rename,
- and will be done soon.
- * kwq/AffineTransform.cpp: Removed.
- * kwq/AffineTransform.h: Removed.
- * kwq/CacheControl.h: Removed.
- * kwq/DeprecatedPtrQueue.h: Removed.
- * kwq/FileButton.h: Removed.
- * kwq/FileButton.mm: Removed.
- * kwq/ListBox.h: Removed.
- * kwq/ListBox.mm: Removed.
- * kwq/LoaderFunctions.h: Removed.
- * kwq/LoaderFunctions.mm: Removed.
- * kwq/PopUpButton.h: Removed.
- * kwq/PopUpButton.mm: Removed.
- * kwq/SSLKeyGenerator.h: Removed.
- * kwq/SSLKeyGenerator.mm: Removed.
- * kwq/Settings.h: Removed.
- * kwq/TextBox.h: Removed.
- * kwq/TextBox.mm: Removed.
- * kwq/TextField.h: Removed.
- * kwq/TextField.mm: Removed.
- * kwq/WebCoreScrollBar.h: Removed.
- * kwq/WebCoreScrollBar.mm: Removed.
- * kwq/WebCoreSlider.h: Removed.
- * kwq/WebCoreSlider.mm: Removed.
- * loader/CachePolicy.h: Added.
- * loader/LoaderFunctions.h: Added.
- * loader/mac/LoaderFunctionsMac.mm: Added.
- * page/Settings.h: Added.
- * platform/AffineTransform.cpp: Added.
- * platform/AffineTransform.h: Added.
- * platform/DeprecatedPtrQueue.h: Added.
- * platform/FileButton.h: Added.
- * platform/ListBox.h: Added.
- * platform/PopUpButton.h: Added.
- * platform/SSLKeyGenerator.h: Added.
- * platform/ScrollBar.h: Added.
- * platform/Slider.h: Added.
- * platform/TextBox.h: Added.
- * platform/TextField.h: Added.
- * platform/cg/AffineTransformCG.cpp: Added.
- * platform/mac/FileButtonMac.mm: Added.
- * platform/mac/ListBoxMac.mm: Added.
- * platform/mac/PopUpButtonMac.mm: Added.
- * platform/mac/SSLKeyGeneratorMac.mm: Added.
- * platform/mac/ScrollBarMac.mm: Added.
- * platform/mac/ScrollBarMac.mm: Added.
- * platform/mac/SliderMac.mm: Added.
- * platform/mac/SliderMac.mm: Added.
- * platform/mac/TextBoxMac.mm: Added.
- * platform/mac/TextFieldMac.mm: Added.
- 2006-07-09 Darin Adler <darin@apple.com>
- - move 4 files out of kwq directory
- - make some minor project adjustments for the WebCore project
- * WebCore.xcodeproj/project.pbxproj: Link libsqlite3 the same way we do other
- libraries, rather than using a custom linker option. Moved the files from their
- old locations to the new ones. Removed "khtml" from the list of header search
- paths since that directory doesn't exist any more. Eliminated STYLE_LDFLAGS
- and just put -umbrella WebKit in OTHER_LDFLAGS in the Production configuration
- (was a leftover from "build styles" in Xcode 1). Changed to use EXPORTED_SYMBOLS_FILE
- instead of using -exported_symbols_list directly again now that Xcode has fixed the
- "strip twice" bug. Removed unneeded explicit SECTORDER_FLAGS = "" settings.
- Removed the explicit -Y,3 option now that Xcode does that by default.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Removed some obsolete uneeded files,
- many of which didn't exist any more. Moved the files from their old locations
- to the new ones.
- * WebCoreSources.bkl: Moved the files from their old locations to the new ones.
- * kwq/DeprecatedCString.cpp: Removed.
- * kwq/DeprecatedCString.h: Removed.
- * kwq/TextStream.cpp: Removed.
- * kwq/TextStream.h: Removed.
- * platform/DeprecatedCString.cpp: Added.
- * platform/DeprecatedCString.h: Added.
- * platform/TextStream.cpp: Added.
- * platform/TextStream.h: Added.
- 2006-07-09 Darin Adler <darin@apple.com>
- Rubber stamped by Maciej (kinda).
- - did the next pass of renaming (used do-webcore-rename script)
- this takes care of most of the remaining KWQ names (almost all)
- * WebCore+SVG/DOMList.h:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * WebCoreSources.bkl:
- * bindings/js/kjs_dom.cpp:
- * bindings/js/kjs_window.cpp:
- * bindings/objc/DOMHTML.mm:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- * bridge/mac/WebCoreSettings.h:
- * bridge/mac/WebCoreSettings.mm:
- * bridge/win/FrameWin.cpp:
- * css/CSSPrimitiveValue.cpp:
- * css/CSSValueKeywords.in:
- * css/MediaQueryEvaluator.cpp:
- * css/cssparser.cpp:
- * css/cssstyleselector.cpp:
- * css/cssstyleselector.h:
- * dom/CharacterData.cpp:
- * dom/CharacterData.h:
- * dom/Document.cpp:
- * dom/Element.cpp:
- * dom/Element.h:
- * dom/EventTargetNode.cpp:
- * dom/EventTargetNode.h:
- * dom/Node.cpp:
- * dom/Node.h:
- * dom/Position.cpp:
- * dom/ProcessingInstruction.cpp:
- * dom/QualifiedName.cpp:
- * dom/QualifiedName.h:
- * dom/XMLTokenizer.cpp: Added.
- * dom/xml_tokenizer.cpp: Removed.
- * dom/xml_tokenizer.h: Removed.
- * editing/EditAction.h:
- * editing/HTMLInterchange.cpp:
- * editing/HTMLInterchange.h:
- * editing/Selection.h:
- * editing/SelectionController.h:
- * editing/TextAffinity.h:
- * editing/TextIterator.cpp:
- * editing/TextIterator.h:
- * editing/VisiblePosition.h:
- * editing/htmlediting.cpp:
- * editing/markup.cpp:
- * editing/markup.h:
- * editing/visible_units.cpp:
- * editing/visible_units.h:
- * html/HTMLDocument.cpp:
- * html/HTMLFontElement.cpp:
- * html/HTMLInputElement.cpp:
- * html/HTMLKeygenElement.cpp:
- * html/HTMLSelectElement.h:
- * html/HTMLTextAreaElement.cpp:
- * html/HTMLTextFieldInnerElement.cpp:
- * html/HTMLTokenizer.cpp:
- * html/HTMLTokenizer.h:
- * kcanvas/KCanvasContainer.cpp: Removed.
- * kcanvas/KCanvasContainer.h: Removed.
- * kcanvas/KCanvasCreator.cpp:
- * kcanvas/KCanvasFilters.cpp:
- * kcanvas/KCanvasFilters.h:
- * kcanvas/KCanvasMatrix.cpp:
- * kcanvas/KCanvasMatrix.h:
- * kcanvas/KCanvasPath.cpp:
- * kcanvas/KCanvasPath.h:
- * kcanvas/KCanvasResources.cpp:
- * kcanvas/KCanvasResources.h:
- * kcanvas/KCanvasTreeDebug.cpp:
- * kcanvas/KCanvasTreeDebug.h:
- * kcanvas/RenderForeignObject.cpp:
- * kcanvas/RenderForeignObject.h:
- * kcanvas/RenderPath.cpp:
- * kcanvas/RenderPath.h:
- * kcanvas/RenderSVGContainer.cpp: Added.
- * kcanvas/RenderSVGContainer.h: Added.
- * kcanvas/RenderSVGImage.cpp:
- * kcanvas/RenderSVGImage.h:
- * kcanvas/RenderSVGText.cpp:
- * kcanvas/RenderSVGText.h:
- * kcanvas/device/KRenderingPaintServer.h:
- * kcanvas/device/KRenderingPaintServerGradient.cpp:
- * kcanvas/device/KRenderingPaintServerGradient.h:
- * kcanvas/device/KRenderingPaintServerPattern.cpp:
- * kcanvas/device/KRenderingPaintServerPattern.h:
- * kcanvas/device/KRenderingPaintServerSolid.cpp:
- * kcanvas/device/KRenderingPaintServerSolid.h:
- * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
- * kcanvas/device/quartz/KCanvasItemQuartz.h:
- * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
- * ksvg2/css/CSSValueKeywords.in:
- * ksvg2/css/SVGRenderStyleDefs.cpp:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- * ksvg2/misc/KSVGTimeScheduler.cpp:
- * ksvg2/svg/SVGAElement.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGGElement.cpp:
- * ksvg2/svg/SVGHelper.cpp:
- * ksvg2/svg/SVGHelper.h:
- * ksvg2/svg/SVGImageElement.cpp:
- * ksvg2/svg/SVGLinearGradientElement.cpp:
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMaskElement.cpp:
- * ksvg2/svg/SVGMatrix.cpp:
- * ksvg2/svg/SVGMatrix.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- * ksvg2/svg/SVGRadialGradientElement.cpp:
- * ksvg2/svg/SVGSVGElement.cpp:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.cpp:
- * ksvg2/svg/SVGTextElement.cpp:
- * ksvg2/svg/SVGTransformable.h:
- * ksvg2/svg/SVGUseElement.cpp:
- * kwq/AffineTransform.cpp: Added.
- * kwq/AffineTransform.h: Added.
- * kwq/DeprecatedCString.cpp: Added.
- * kwq/DeprecatedCString.h: Added.
- * kwq/DeprecatedPtrQueue.h: Added.
- * kwq/FileButton.h: Added.
- * kwq/FileButton.mm: Added.
- * kwq/FormDataMac.mm: Added.
- * kwq/KWQCString.cpp: Removed.
- * kwq/KWQCString.h: Removed.
- * kwq/KWQComboBox.h: Removed.
- * kwq/KWQComboBox.mm: Removed.
- * kwq/KWQEditCommand.h: Removed.
- * kwq/KWQEditCommand.mm: Removed.
- * kwq/KWQFileButton.h: Removed.
- * kwq/KWQFileButton.mm: Removed.
- * kwq/KWQFormData.h: Removed.
- * kwq/KWQFormData.mm: Removed.
- * kwq/KWQKHTMLSettings.h: Removed.
- * kwq/KWQKIOGlobal.h: Removed.
- * kwq/KWQKSSLKeyGen.h: Removed.
- * kwq/KWQKSSLKeyGen.mm: Removed.
- * kwq/KWQLineEdit.h: Removed.
- * kwq/KWQLineEdit.mm: Removed.
- * kwq/KWQListBox.h: Removed.
- * kwq/KWQListBox.mm: Removed.
- * kwq/KWQLoader.h: Removed.
- * kwq/KWQLoader.mm: Removed.
- * kwq/KWQPageState.h: Removed.
- * kwq/KWQPageState.mm: Removed.
- * kwq/KWQPtrQueue.h: Removed.
- * kwq/KWQResourceLoader.h: Removed.
- * kwq/KWQResourceLoader.mm: Removed.
- * kwq/KWQScrollBar.h: Removed.
- * kwq/KWQScrollBar.mm: Removed.
- * kwq/KWQSlider.h: Removed.
- * kwq/KWQSlider.mm: Removed.
- * kwq/KWQTextEdit.h: Removed.
- * kwq/KWQTextEdit.mm: Removed.
- * kwq/KWQTextStream.cpp: Removed.
- * kwq/KWQTextStream.h: Removed.
- * kwq/KWQWMatrix.cpp: Removed.
- * kwq/KWQWMatrix.h: Removed.
- * kwq/ListBox.h: Added.
- * kwq/ListBox.mm: Added.
- * kwq/LoaderFunctions.h: Added.
- * kwq/LoaderFunctions.mm: Added.
- * kwq/PopUpButton.h: Added.
- * kwq/PopUpButton.mm: Added.
- * kwq/SSLKeyGenerator.h: Added.
- * kwq/SSLKeyGenerator.mm: Added.
- * kwq/Settings.h: Added.
- * kwq/TextBox.h: Added.
- * kwq/TextBox.mm: Added.
- * kwq/TextField.h: Added.
- * kwq/TextField.mm: Added.
- * kwq/TextStream.cpp: Added.
- * kwq/TextStream.h: Added.
- * kwq/WebCoreEditCommand.h: Added.
- * kwq/WebCoreEditCommand.mm: Added.
- * kwq/WebCorePageState.h: Added.
- * kwq/WebCorePageState.mm: Added.
- * kwq/WebCoreResourceLoaderImp.h: Added.
- * kwq/WebCoreResourceLoaderImp.mm: Added.
- * kwq/WebCoreScrollBar.h: Added.
- * kwq/WebCoreScrollBar.mm: Added.
- * kwq/WebCoreSlider.h: Added.
- * kwq/WebCoreSlider.mm: Added.
- * loader/Cache.h:
- * loader/CachedCSSStyleSheet.cpp:
- * loader/CachedImage.cpp:
- * loader/CachedObject.h:
- * loader/CachedObjectClientWalker.h:
- * loader/CachedResource.h:
- * loader/CachedResourceClientWalker.h:
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.h:
- * loader/Decoder.h:
- * loader/DocLoader.cpp:
- * loader/DocLoader.h:
- * loader/FormData.h:
- * loader/ImageDocument.cpp:
- * loader/PluginDocument.cpp:
- * loader/TextDocument.cpp:
- * loader/loader.cpp:
- * loader/loader.h:
- * page/Frame.cpp:
- * page/Frame.h:
- * page/FramePrivate.h:
- * page/Page.cpp:
- * page/Page.h:
- * platform/DeprecatedPtrList.h:
- * platform/DeprecatedPtrListImpl.cpp:
- * platform/DeprecatedPtrListImpl.h:
- * platform/DeprecatedString.cpp:
- * platform/DeprecatedString.h:
- * platform/DeprecatedStringList.cpp:
- * platform/DeprecatedStringList.h:
- * platform/DeprecatedValueList.h:
- * platform/DeprecatedValueListImpl.cpp:
- * platform/DeprecatedValueListImpl.h:
- * platform/FloatSize.h:
- * platform/Font.cpp:
- * platform/KURL.cpp:
- * platform/RegularExpression.cpp:
- * platform/RegularExpression.h:
- * platform/SegmentedString.h:
- * platform/StreamingTextDecoder.cpp:
- * platform/String.cpp:
- * platform/StringImpl.cpp:
- * platform/TextEncoding.cpp:
- * platform/TransferJob.cpp:
- * platform/TransferJob.h:
- * platform/TransferJobInternal.h:
- * platform/gdk/FrameGdk.cpp:
- * platform/gdk/TemporaryLinkStubs.cpp:
- * platform/mac/ClipboardMac.h:
- * platform/mac/ClipboardMac.mm:
- * platform/mac/CursorMac.mm:
- * platform/mac/DeprecatedStringMac.mm: Added.
- * platform/mac/FontCacheMac.mm:
- * platform/mac/FontMac.mm:
- * platform/mac/FoundationExtras.h:
- * platform/mac/ImageMac.mm:
- * platform/mac/KURLMac.mm:
- * platform/mac/MouseEventMac.mm: Removed.
- * platform/mac/QStringListMac.mm: Removed.
- * platform/mac/QStringMac.mm: Removed.
- * platform/mac/TransferJobMac.mm:
- * platform/mac/WebCoreTextArea.h:
- * platform/mac/WebCoreTextArea.mm:
- * platform/mac/WebCoreTextField.h:
- * platform/mac/WebCoreTextField.mm:
- * platform/mac/WidgetMac.mm:
- * platform/win/TemporaryLinkStubs.cpp:
- * rendering/DataRef.h:
- * rendering/DeprecatedRenderSelect.cpp:
- * rendering/DeprecatedRenderSelect.h:
- * rendering/DeprecatedSlider.cpp:
- * rendering/InlineFlowBox.cpp:
- * rendering/RenderApplet.cpp:
- * rendering/RenderBlock.cpp:
- * rendering/RenderBlock.h:
- * rendering/RenderContainer.cpp:
- * rendering/RenderFileButton.cpp:
- * rendering/RenderFlexibleBox.cpp:
- * rendering/RenderFlow.cpp:
- * rendering/RenderFormElement.cpp:
- * rendering/RenderFrameSet.cpp:
- * rendering/RenderFrameSet.h:
- * rendering/RenderImage.cpp:
- * rendering/RenderInline.cpp:
- * rendering/RenderLayer.cpp:
- * rendering/RenderLayer.h:
- * rendering/RenderLineEdit.cpp:
- * rendering/RenderListItem.cpp:
- * rendering/RenderListMarker.cpp:
- * rendering/RenderObject.cpp:
- * rendering/RenderObject.h:
- * rendering/RenderPartObject.cpp:
- * rendering/RenderReplaced.cpp:
- * rendering/RenderStyle.cpp: Added.
- * rendering/RenderStyle.h: Added.
- * rendering/RenderTable.cpp:
- * rendering/RenderTable.h:
- * rendering/RenderTableCell.cpp:
- * rendering/RenderTableCell.h:
- * rendering/RenderTableCol.cpp:
- * rendering/RenderTableCol.h:
- * rendering/RenderTableRow.cpp:
- * rendering/RenderTableSection.cpp:
- * rendering/RenderTableSection.h:
- * rendering/RenderText.cpp:
- * rendering/RenderText.h:
- * rendering/RenderTextArea.cpp:
- * rendering/RenderTextControl.cpp: Added.
- * rendering/RenderTextControl.h: Added.
- * rendering/RenderTextField.cpp: Removed.
- * rendering/RenderTextField.h: Removed.
- * rendering/RenderTheme.cpp:
- * rendering/RenderThemeMac.mm:
- * rendering/RenderTreeAsText.cpp:
- * rendering/RenderTreeAsText.h:
- * rendering/RenderView.cpp:
- * rendering/RenderWidget.cpp:
- * rendering/bidi.cpp:
- * rendering/render_style.cpp: Removed.
- * rendering/render_style.h: Removed.
- * xml/XSLStyleSheet.cpp:
- * xml/XSLTProcessor.cpp:
- * xml/xmlhttprequest.cpp:
- * xpath/impl/XPathParser.cpp:
- 2006-07-09 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=8251
- navigator.platform incorrect in WebKit.app on Intel Macs
- For navigator.platform return "MacIntel" for Intel processors, "MacPPC"
- otherwise.
- * bindings/js/kjs_navigator.cpp:
- (KJS::Navigator::getValueProperty):
- 2006-07-08 Timothy Hatcher <timothy@apple.com>
- Reviewed by Maciej.
- Bug 5312: comments aren't available via DOM
- http://bugs.webkit.org/show_bug.cgi?id=5312
- <rdar://problem/4564414> getting comments via DOM isn't working (5312)
- <rdar://problem/4545691> DOM_COMMENT node masking out real DOM elements
- * dom/Document.cpp:
- (WebCore::Document::removedLastRef): set m_documentElement to 0
- (WebCore::Document::childrenChanged): invalidate the document element we have cached in case it was replaced
- (WebCore::Document::documentElement): cache the first element as the document node if m_documentElement is 0
- * dom/Document.h: added m_documentElement
- * html/HTMLDocument.cpp: removed documentElement(), HTML documents just use Document's documentElement()
- * html/HTMLDocument.h: ditto
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::handleError): make a new HTML node is the document's firstChild is NULL or
- the firstChild is not a HTML element (like a comment)
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::parseComment): removed the #ifdef to include comment nodes
- 2006-07-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin, tweaked slightly and landed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9787
- fast/frames tests failing (bad pointer to owner element) under MallocScribble
-
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::close):
- Disconnect the owner element of our frame.
-
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::attach):
- Don't call setFrame here.
-
- * html/HTMLPlugInElement.cpp:
- (WebCore::HTMLPlugInElement::detach):
- Disconnect the owner element of our frame.
- * html/HTMLPlugInElement.h:
- (WebCore::HTMLPlugInElement::setFrameName):
- New function.
-
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- Don't call setFrame.
-
- (WebCore::Frame::~Frame):
- Null out the owner element.
-
- (WebCore::Frame::requestObject):
- When an object creates a child frame, assign it a name so it can be
- accessed from HTMLPlugInElement.
-
- * rendering/RenderPart.cpp:
- (WebCore::RenderPart::RenderPart):
- (WebCore::RenderPart::~RenderPart):
- * rendering/RenderPart.h:
- Get rid of setFrame.
- 2006-07-08 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - better fix for http://bugs.webkit.org/show_bug.cgi?id=9622
- REGRESSION: showModalDialog returnValue ignored, function result is always "undefined"
- * bindings/js/kjs_window.cpp:
- (KJS::showModalDialog): Set the return value after returning from the function if the
- window is not cleared; this is a better way to handle the case where the window does
- not get cleared before returning, and handles some new cases created by slight changes
- in the latest Safari properly too.
- (KJS::Window::clear): Changed logic slightly so we always store the result of getDirect
- into the return value slot -- the old code left the storage untouched if it was 0.
- Also made it only overwrite the return value slot if it's 0.
- * bindings/js/kjs_proxy.h:
- * bindings/js/kjs_proxy.cpp:
- * bindings/js/kjs_window.h:
- * bindings/js/kjs_window.cpp:
- * page/Frame.cpp:
- Roll the previous fix out.
- 2006-07-08 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing source files.
- === Safari-521.15 ===
- 2006-07-07 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- Fix Mail ToDo crashers.
- * dom/Range.cpp:
- (WebCore::Range::compareBoundaryPoints): Added an ASSERT that both
- containers are non-null and an early return.
- * editing/Selection.cpp:
- (WebCore::Selection::validate): Fix a dangling start/end.
- (WebCore::Selection::adjustForEditableContent): Added an early return if
- m_start or m_end are null.
- (WebCore::Selection::isContentEditable): Use isRichlyEditablePosition.
- (WebCore::Selection::isContentRichlyEditable): Ditto.
- * editing/Selection.h:
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next): Use the new highestEditableRoot.
- (WebCore::VisiblePosition::previous): Ditto.
- * editing/htmlediting.cpp:
- (WebCore::highestEditableRoot): Takes in a position.
- (WebCore::isEditablePosition): Added.
- (WebCore::isRichlyEditablePosition): Added.
- (WebCore::rootEditableElement): Added.
- (WebCore::nextCandidate): Moved and split out from nextVisiblePosition.
- (WebCore::nextVisuallyDistinctCandidate): Ditto.
- (WebCore::previousCandidate): Moved and split out from previousVisiblePosition.
- (WebCore::previousVisuallyDistinctCandidate): Ditto.
- (WebCore::firstEditablePositionAfterPositionInRoot): Iterate over positions,
- using nextVisuallyDistinctCandidate, skipping atomic nodes that are non-editable.
- (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
- * editing/htmlediting.h:
- * editing/visible_units.cpp:
- (WebCore::startOfWord): Added a FIXME.
- 2006-07-07 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- Allowed deletion typing commands to take in a granularity
- * bridge/mac/WebCoreFrameBridge.h: Pass granularity across the bridge
- * bridge/mac/WebCoreFrameBridge.mm: Ditto
- (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
- (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
- * editing/TypingCommand.cpp: Constructors take in a granularity
- (WebCore::TypingCommand::TypingCommand):
- (WebCore::TypingCommand::deleteKeyPressed):
- (WebCore::TypingCommand::forwardDeleteKeyPressed):
- * editing/TypingCommand.h: ditto
- * page/Frame.h: Fixed bug that shouldDeleteSelection wasn't virtual
- 2006-07-07 Brady Eidson <beidson@apple.com>
- Reviewed by Anders and Tim Hatcher
- Added an accessor to a SQLite config option to change its disk-syncing behavior.
- Used this accessor to significantly speed up writes to the Icon DB.
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open): Disable full syncing to the SQLite db to speed up writes to the icondb
- * icon/SQLDatabase.cpp:
- (SQLDatabase::setFullsync):
- (SQLDatabase::setSynchronous):
- * icon/SQLDatabase.h:
- (WebCore::SQLDatabase::): Added accessor to the SQLite config pragma "synchronous"
- 2006-07-07 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - fixed a storage leak noticed by the buildbot
- * dom/Document.cpp: (WebCore::Document::removedLastRef):
- Call delete on the markers before clearing the map containing them.
- 2006-07-08 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Brady.
- http://bugs.webkit.org/show_bug.cgi?id=9777
- Reproducible crash in Loading/Frames in ToT.
-
- The problem was that the renderpart destructor resets the frame's
- owner element. For iframes, this should only be done when the element is
- going to be removed from the document.
-
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::~HTMLIFrameElement):
- (WebCore::HTMLIFrameElement::willRemove):
- (WebCore::HTMLIFrameElement::removedFromDocument):
- (WebCore::HTMLIFrameElement::detach):
- * html/HTMLIFrameElement.h:
- Remove the frame in willRemove instead.
-
- * rendering/RenderPart.cpp:
- (WebCore::RenderPart::RenderPart):
- (WebCore::RenderPart::~RenderPart):
- * rendering/RenderPart.h:
- Don't call setFrame(0) in the destructor when the element is an iframe element.
- 2006-07-07 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fixed a storage leak noticed by the buildbot
- * page/FrameView.cpp: (WebCore::FrameViewPrivate::~FrameViewPrivate):
- Delete m_scheduledEvents.
- 2006-07-07 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fixed a couple of storage leaks noticed by the buildbot
- * html/HTMLOptGroupElement.cpp: (WebCore::HTMLOptGroupElement::attach):
- Call deref on the style after calling setRenderStyle, since styleForRenderer
- returns us a "ref'd" RenderStyle object.
- * html/HTMLOptionElement.cpp: (WebCore::HTMLOptionElement::attach): Ditto.
- 2006-07-07 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix some license mistakes
- * LICENSE-APPLE: Added more years of publication to the copyright here.
- * html/CanvasGradient.idl: Corrected license on this file. It had the wrong one.
- * html/CanvasPattern.idl: Ditto.
- * html/CanvasRenderingContext2D.idl: Ditto.
- * html/HTMLCanvasElement.idl: Ditto.
- 2006-07-06 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- Improved table editing: pressing delete directly before or after a table will now select
- the table first, then delete it, instead of just deleting it. Useful for when the table's
- existence is non-obvious.
- * bridge/mac/FrameMac.h: Added shouldDeleteSelection, which allows WebCore to trigger
- deletion editing deligates
- * bridge/mac/FrameMac.mm: ditto
- (WebCore::FrameMac::shouldDeleteSelection):
- * bridge/mac/WebCoreFrameBridge.h: ditto
- * editing/TypingCommand.cpp: Implemented check for a caret position next to a table, and
- subsequent selection (as opposed to removal)
- (WebCore::TypingCommand::deleteKeyPressed):
- (WebCore::TypingCommand::forwardDeleteKeyPressed):
- * page/Frame.cpp: shouldDeleteSelection added
- (WebCore::Frame::shouldDeleteSelection):
- * page/Frame.h: ditto
- 2006-07-07 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Eric.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9768
- Split XSLImportRule out of XSLStyleSheet.* into separate
- files (one class per file).
- * WebCore.xcodeproj/project.pbxproj:
- * xml/XSLImportRule.cpp: Added.
- (WebCore::XSLImportRule::XSLImportRule):
- (WebCore::XSLImportRule::parentStyleSheet):
- (WebCore::XSLImportRule::loadSheet):
- * xml/XSLImportRule.h: Added.
- * xml/XSLStyleSheet.cpp:
- * xml/XSLStyleSheet.h:
- 2006-07-07 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=8300
- REGRESSION: First mouse click is randomly ignored when clicking on checkbox and radio buttons
-
- * css/html4.css:
- Set "-webkit-user-select: ignore" on radio buttons and check boxes .
-
- 2006-07-07 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Tim Hatcher.
- - fix 20 Node leaks on fast/events tests - these should be the last ones
- * bindings/objc/DOMEvents.mm:
- (-[DOMEvent dealloc]): implement - deref the event!
- (-[DOMEvent finalize]): ditto
- 2006-07-06 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Tim Hatcher.
- - fix 26 Node leaks on fast/dom tests
- * dom/Document.cpp:
- (WebCore::Document::removedLastRef): delete tokenizer - if we are still parsing at this point, we don't
- want nodes held by the parser to keep the document alive.
- * html/HTMLParser.cpp:
- (WebCore::RefNonDocNodePtr::RefNonDocNodePtr): Smart pointer that acts like RefPtr for Node,
- but avoids refing document nodes to avoid cycles.
- (WebCore::RefNonDocNodePtr::~RefNonDocNodePtr):
- (WebCore::RefNonDocNodePtr::get):
- (WebCore::RefNonDocNodePtr::operator*):
- (WebCore::RefNonDocNodePtr::operator->):
- (WebCore::RefNonDocNodePtr::operator!):
- (WebCore::RefNonDocNodePtr::operator UnspecifiedBoolType):
- (WebCore::RefNonDocNodePtr::operator=):
- (WebCore::operator==):
- (WebCore::operator!=):
- (WebCore::HTMLStackElem): Use a RefNonDocNodePtr instead of RefPtr<Node>
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): Use a RefPtr here to avoid crashing
- 2006-07-06 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Fixed new popup control to open up when the spacebar and the up and down arrows are pressed.
- - Fixed http://bugs.webkit.org/show_bug.cgi?id=9762
- [Native pop up] Highlighted item text is black instead of white
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::isKeyboardFocusable): Added.
- (WebCore::HTMLSelectElement::isMouseFocusable): Added.
- (WebCore::HTMLSelectElement::defaultEventHandler): Updated to showPopup for up and down arrow keys and spacebar.
- * html/HTMLSelectElement.h: (WebCore::HTMLSelectElement::shouldUseMenuList): Made this const.
- * rendering/RenderPopupMenu.cpp: (WebCore::RenderPopupMenu::populate): Added FIXME.
- * rendering/RenderPopupMenuMac.mm:
- (WebCore::RenderPopupMenuMac::showPopup): Updated to save the NSEvent that triggers the popup, so we can send
- fake mouseUp and keyUp events when the NSMenu returns.
- (WebCore::RenderPopupMenuMac::addGroupLabel): Only set the NSForegroundColorAttributeName attribute if the text isn't black.
- Follow-up bug about other colors: http://bugs.webkit.org/show_bug.cgi?id=9769
- (WebCore::RenderPopupMenuMac::addOption): ditto.
- * bridge/mac/FrameMac.h: (WebCore::FrameMac::currentEvent): Returns the current NSEvent.
- 2006-07-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4609184>
- Mail crashes at WebCore::Selection::adjustForEditableContent
- <rdar://problem/4609140>
- Crash at WebCore::Range::compareBoundaryPoints
-
- * editing/Selection.cpp:
- (WebCore::Selection::adjustForEditableContent):
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next): Moved code into a helper function.
- (WebCore::VisiblePosition::previous): Ditto.
- * editing/htmlediting.cpp:
- (WebCore::comparePositions): Moved from Selection.cpp.
- (WebCore::lowestEditableAncestor): Added. Returns rootEditableElement
- for a node in editable content and the rootEditableElement for the first
- ancestor that's editable for a node in non-editable content.
- (WebCore::firstEditablePositionAfterPositionInRoot):
- (WebCore::lastEditablePositionBeforePositionInRoot):
- * editing/htmlediting.h:
- 2006-07-06 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Adele.
- http://bugs.webkit.org/show_bug.cgi?id=9528
- REGRESSION: arrow key skips '>' in Bugzilla replies due to '\n' in text nodes
-
- Patch by Darin, tweaked by Anders.
-
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::setInnerText):
- Convert newline characters to <br> elements. I've verified that what's done here is what WinIE does when setting innerText.
-
- (WebCore::HTMLElement::setOuterText):
- Fix comment.
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::textWithHardLineBreaks):
- Remove assert. m_div->firstChild() can be null now because setInnerText doesn't create
- text nodes for empty strings anymore.
- 2006-07-06 Adele Peterson <adele@apple.com>
- Reviewed by Tim Hatcher.
- - Speculative fix for <rdar://problem/4605532> unrepro crash at cnn.com after upgrading to 10.4.7 (but happening with 10.4.6 too)
- * page/FrameView.cpp: (WebCore::FrameView::layout): Ref's the view during layout, since a recalcStyle could cause the view to be deleted.
- 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.
- * page/FrameView.h: (WebCore::FrameView::hasOneRef): Added.
- 2006-07-06 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4610891> Support overflow events
-
- * DerivedSources.make:
- Add generated sources.
-
- * WebCore.xcodeproj/project.pbxproj:
- Add new files.
-
- * bindings/js/kjs_events.cpp:
- (KJS::toJS):
- Support creating wrappers for overflow events..
-
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- (+[DOMEvent _eventWith:]):
- (-[DOMOverflowEvent _overflowEvent]):
- (-[DOMOverflowEvent orient]):
- (-[DOMOverflowEvent horizontalOverflow]):
- (-[DOMOverflowEvent verticalOverflow]):
- Add Objective-C wrapper for overflow events.
-
- * dom/Event.cpp:
- (WebCore::Event::isOverflowEvent):
- * dom/Event.h:
- * dom/EventNames.h:
- * dom/OverflowEvent.cpp: Added.
- (WebCore::OverflowEvent::OverflowEvent):
- (WebCore::OverflowEvent::isOverflowEvent):
- * dom/OverflowEvent.h: Added.
- (WebCore::OverflowEvent::):
- (WebCore::OverflowEvent::orient):
- (WebCore::OverflowEvent::horizontalOverflow):
- (WebCore::OverflowEvent::verticalOverflow):
- * dom/OverflowEvent.idl: Added.
- Add overflow events.
-
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::FrameViewPrivate):
- (WebCore::FrameView::applyOverflowToViewport):
- (WebCore::FrameView::layout):
- Dispatch any scheduled events when layout is done.
-
- (WebCore::FrameView::scheduleEvent):
- New function which schedules an event.
-
- (WebCore::FrameView::updateOverflowStatus):
- Update overflow status for the viewport.
-
- (WebCore::FrameView::dispatchScheduledEvents):
- New function which dispatches all scheduled events.
-
- * page/FrameView.h:
- Add declarations.
-
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer):
- (WebCore::RenderLayer::updateOverflowStatus):
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- * rendering/RenderLayer.h:
- Schedule overflow events when overflow status changes.
- 2006-07-06 Timothy Hatcher <timothy@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4610881> Expose scroll-related JS properties to ObjC DOM interface
- <rdar://problem/4519675> offsetLeft, offsetTop, offsetHeight, and offsetWidth
- properties are not exposed to ObjC
- * bindings/objc/DOMPrivate.h:
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLElement offsetLeft]):
- (-[DOMHTMLElement offsetTop]):
- (-[DOMHTMLElement offsetWidth]):
- (-[DOMHTMLElement offsetHeight]):
- (-[DOMHTMLElement offsetParent]):
- (-[DOMHTMLElement clientWidth]):
- (-[DOMHTMLElement clientHeight]):
- (-[DOMHTMLElement scrollLeft]):
- (-[DOMHTMLElement setScrollLeft:]):
- (-[DOMHTMLElement scrollTop]):
- (-[DOMHTMLElement setScrollTop:]):
- (-[DOMHTMLElement scrollWidth]):
- (-[DOMHTMLElement scrollHeight]):
- 2006-07-06 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele.
- - fix 435 more layout tests Node leaks
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs): fix more instances of leaked DOM ranges
- 2006-07-06 David Harrison <harrison@apple.com>
- Reviewed by Geoff
- <rdar://problem/4565031> innerHTML of XMP tag returns special characters like '>' instead of '>'
-
- Test: fast/innerHTML/006.html
-
- * editing/markup.cpp:
- (WebCore::startMarkup):
- (WebCore::createMarkup):
- Do not special quote content of XMP nodes.
- 2006-07-06 Maciej Stachowiak <mjs@apple.com>
- - back out earlier leak fix, as it caused a crash on one of the fast/invalid layout tests
- * dom/Document.cpp:
- (WebCore::Document::removedLastRef):
- * html/HTMLParser.cpp:
- (WebCore::HTMLStackElem::HTMLStackElem):
- (WebCore::HTMLParser::popNestedHeaderTag):
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
- (WebCore::HTMLParser::reopenResidualStyleTags):
- (WebCore::HTMLParser::popBlock):
- (WebCore::HTMLParser::popOneBlock):
- 2006-07-06 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - fix ~3000 Node leaks on the editing tests
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraphs): put a newly created Range in a RefPtr
- to avoid leaking it, as this leaks the whole document.
- 2006-07-06 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - fix 26 Node leaks on various fast/dom tests
- * dom/Document.cpp:
- (WebCore::Document::removedLastRef): Delete the tokenizer here, since if we are in mid-parse,
- the parser might hold refs on some of our children that have self-only refs.
- * html/HTMLParser.cpp:
- (WebCore::HTMLStackElem::HTMLStackElem): don't ref the node if it is a document to avoid ref cycles
- (WebCore::HTMLStackElem::~HTMLStackElem): ditto
- (WebCore::HTMLStackElem::node): changed interface a bit to support the above
- (WebCore::HTMLStackElem::setNode): ditto
- (WebCore::HTMLParser::popNestedHeaderTag): use new interface to HTMLStackElem
- (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks): ditto
- (WebCore::HTMLParser::reopenResidualStyleTags): ditto
- (WebCore::HTMLParser::popBlock): ditto
- (WebCore::HTMLParser::popOneBlock): ditto
- 2006-07-06 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Adele.
-
- * rendering/RenderMenuList.h:
- (WebCore::RenderMenuList::createsAnonymousWrapper): This method replaces
- allowsReusingAnonymousChild() and has the opposite meaning.
-
- 2006-07-05 Adele Peterson <adele@apple.com>
- Build fixes.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/win/TemporaryLinkStubs.cpp:
- * rendering/RenderMenuList.cpp:
- (WebCore::RenderMenuList::calcMinMaxWidth):
- * rendering/RenderPopupMenuWin.h:
- (WebCore::RenderPopupMenuWin::RenderPopupMenuWin):
- * rendering/RenderThemeWin.cpp:
- 2006-07-05 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele.
- - fix 308 Node leaks on the editing layout tests
- * dom/Document.cpp: (WebCore::Document::removedLastRef): Clear the markers once there
- are no real refs on the document, otherwise a self-only reference cycle w/ the document
- can occur.
- 2006-07-05 Adele Peterson <adele@apple.com>
- Reviewed by Maciej and Hyatt.
- Initial implementation of popup menu control. This can be turned on by setting -webkit-appearance: menulist on a select element.
- * WebCore.xcodeproj/project.pbxproj: Added RenderMenuList.h, RenderMenuList.cpp, RenderPopupMenu.h, RenderPopupMenu.cpp,
- RenderPopupMenuWin.h, RenderPopupMenuMac.h, RenderPopupMenuMac.mm,
-
- * dom/Node.cpp:
- (WebCore::Node::renderStyle): Added. Returns the renderer's style. If there's no renderer, returns's a RenderStyle that's kept by the node.
- This is important for HTMLOptGroupElement and HTMLOptionElement, which don't have renderers.
- (WebCore::Node::setRenderStyle): Added.
- * dom/Node.h:
- * dom/Element.cpp: (WebCore::Element::recalcStyle): Updated to use renderStyle so recalcStyle will work for HTMLOptionElements and HTMLOptGroupElements.
-
- * css/cssstyleselector.cpp: Updated to call renderStyle method on the node, so resolving style works on elements w/o renderers that cache style.
- (WebCore::CSSStyleSelector::initForStyleResolve):
- (WebCore::CSSStyleSelector::locateCousinList):
- (WebCore::CSSStyleSelector::canShareStyleWithElement):
- (WebCore::CSSStyleSelector::locateSharedStyle):
- (WebCore::CSSStyleSelector::checkOneSelector):
- * css/html4.css: Removed display:none from options and optgroups, since we're now caching style for these elements.
- Added font-weight styles for option and optgroup.
-
- * html/HTMLOptGroupElement.h: Added m_style to keep track of a RenderStyle for the element, even though we aren't creating a renderer.
- This will allow us to honor style for optgroups and options for popup menus (and eventually list boxes too).
- (WebCore::HTMLOptGroupElement::rendererIsNeeded): Added.
- (WebCore::HTMLOptGroupElement::renderStyle): Added.
- * html/HTMLOptionElement.h: ditto.
- (WebCore::HTMLOptionElement::rendererIsNeeded): Added.
- (WebCore::HTMLOptionElement::renderStyle): Added.
-
- * html/HTMLOptGroupElement.cpp:
- (WebCore::HTMLOptGroupElement::HTMLOptGroupElement): Initialize m_style.
- (WebCore::HTMLOptGroupElement::attach): Set the renderStyle.
- (WebCore::HTMLOptGroupElement::detach): Clear m_style.
- (WebCore::HTMLOptGroupElement::setRenderStyle): Added.
- (WebCore::HTMLOptGroupElement::groupLabelText): Added.
- * html/HTMLOptionElement.cpp: ditto.
- (WebCore::HTMLOptionElement::HTMLOptionElement):
- (WebCore::HTMLOptionElement::attach):
- (WebCore::HTMLOptionElement::detach):
- (WebCore::HTMLOptionElement::setRenderStyle):
- (WebCore::HTMLOptionElement::optionText):
- * html/HTMLSelectElement.cpp: Added code to use the new RenderMenuList if the appearance is set to MenuListAppearance,
- and if we're not creating a list box renderer.
- (WebCore::HTMLSelectElement::recalcStyle):
- (WebCore::HTMLSelectElement::createRenderer):
- (WebCore::HTMLSelectElement::setRecalcListItems):
- (WebCore::HTMLSelectElement::reset):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- (WebCore::HTMLSelectElement::defaultEventHandler):
- * html/HTMLSelectElement.h:
- * WebCore.exp: Added _wkPopupMenu.
- * platform/mac/WebCoreSystemInterface.h: Added wkPopupMenu to get the NSMenu to pop up.
- * platform/mac/WebCoreSystemInterface.mm:
- * platform/win/TemporaryLinkStubs.cpp: Added stubs for RenderPopupMenuWin.
- (RenderPopupMenuWin::RenderPopupMenuWin):
- (RenderPopupMenuWin::~RenderPopupMenuWin):
- (RenderPopupMenuWin::clear):
- (RenderPopupMenuWin::populate):
- (RenderPopupMenuWin::showPopup):
- (RenderPopupMenuWin::addSeparator):
- (RenderPopupMenuWin::addGroupLabel):
- (RenderPopupMenuWin::addOption):
- * rendering/RenderPopupMenuWin.h: Added.
- * rendering/RenderPopupMenu.cpp: Added.
- (WebCore::RenderPopupMenu::RenderPopupMenu):
- (WebCore::RenderPopupMenu::~RenderPopupMenu):
- (WebCore::RenderPopupMenu::clear):
- (WebCore::RenderPopupMenu::populate): Walks the DOM tree, and adds separators, options, and group labels to the RenderPopupMenu.
- (WebCore::RenderPopupMenu::showPopup):
- (WebCore::RenderPopupMenu::addSeparator):
- (WebCore::RenderPopupMenu::addGroupLabel):
- (WebCore::RenderPopupMenu::addOption):
- * rendering/RenderPopupMenu.h: Added.
- (WebCore::RenderPopupMenu::renderName):
- (WebCore::RenderPopupMenu::getRenderMenuList):
- * rendering/RenderPopupMenuMac.h: Added.
- * rendering/RenderPopupMenuMac.mm: Added.
- (WebCore::RenderPopupMenuMac::RenderPopupMenuMac):
- (WebCore::RenderPopupMenuMac::~RenderPopupMenuMac):
- (WebCore::RenderPopupMenuMac::clear): Removes all items from the menu.
- (WebCore::RenderPopupMenuMac::populate): Disables menuChangedMessages before populating the menu.
- (WebCore::RenderPopupMenuMac::showPopup): Calculates the right position, and calls wkPopupMenu.
- (WebCore::RenderPopupMenuMac::addSeparator):
- (WebCore::RenderPopupMenuMac::addGroupLabel):
- (WebCore::RenderPopupMenuMac::addOption):
-
- * rendering/RenderMenuList.cpp: Added.
- (WebCore::RenderMenuList::RenderMenuList):
- (WebCore::RenderMenuList::addChild):
- (WebCore::RenderMenuList::removeChild):
- (WebCore::RenderMenuList::setStyle):
- (WebCore::RenderMenuList::updateFromElement): If the options have changed, iterate through the children to find the menu item with the widest text.
- Set the button text to the selected item's text.
- (WebCore::RenderMenuList::setText):
- (WebCore::RenderMenuList::paintObject):
- (WebCore::RenderMenuList::baselinePosition):
- (WebCore::RenderMenuList::calcMinMaxWidth):
- (WebCore::RenderMenuList::showPopup):
- (WebCore::RenderMenuList::layout):
- (WebCore::RenderMenuList::updateSelection):
- (WebCore::RenderMenuList::valueChanged):
- * rendering/RenderMenuList.h: Added.
- (WebCore::RenderMenuList::removeLeftoverAnonymousBoxes):
- (WebCore::RenderMenuList::allowsReusingAnonymousChild):
- (WebCore::RenderMenuList::canHaveChildren):
- (WebCore::RenderMenuList::renderName):
- (WebCore::RenderMenuList::setOptionsChanged):
- (WebCore::RenderMenuList::selectionChanged):
- (WebCore::RenderMenuList::setSelectionChanged):
- (WebCore::RenderMenuList::hasPopupMenu):
- * rendering/RenderTheme.cpp: Added cases for MenuListAppearance.
- (WebCore::RenderTheme::adjustStyle):
- (WebCore::RenderTheme::paint):
- (WebCore::RenderTheme::paintBorderOnly):
- (WebCore::RenderTheme::isControlStyled):
- (WebCore::RenderTheme::adjustMenuListStyle):
- (WebCore::RenderTheme::createPopupMenu): creates platform-specific RenderPopupMenu.
- * rendering/RenderTheme.h:
- (WebCore::RenderTheme::sizeOfArrowControl): Added.
- (WebCore::RenderTheme::paintMenuList): Added.
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::adjustRepaintRect):
- (WebCore::RenderThemeMac::paintMenuList):
- (WebCore::RenderThemeMac::adjustMenuListStyle):
- (WebCore::RenderThemeMac::setPopupButtonCellState):
- (WebCore::RenderThemeMac::createPopupMenu):
- (WebCore::RenderThemeMac::sizeOfArrowControl):
- * rendering/RenderThemeWin.cpp: (WebCore::RenderThemeWin::createPopupMenu):
- * rendering/RenderThemeWin.h:
- 2006-07-05 Brady Eidson <beidson@apple.com>
- Reviewed by Tim Omernick.
- IconDatabase now respects private browsing via the use of in memory, temporary tables
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
- (-[WebCoreIconDatabaseBridge iconURLForPageURL:]): Renamed WebCore::IconDatabase methods, changes reflected here
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::clearDatabase):
- (WebCore::IconDatabase::deletePrivateTables):
- (WebCore::IconDatabase::imageDataForIconID):
- (WebCore::IconDatabase::imageDataForIconURL):
- (WebCore::IconDatabase::imageDataForPageURL):
- (WebCore::IconDatabase::setPrivateBrowsingEnabled):
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::IconDatabase::iconURLForPageURL):
- (WebCore::IconDatabase::setIconDataForIconURL):
- (WebCore::IconDatabase::performSetIconDataForIconID):
- (WebCore::IconDatabase::establishTemporaryIconIDForEscapedIconURL):
- (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
- (WebCore::IconDatabase::setHaveNoIconForIconURL):
- (WebCore::IconDatabase::setIconURLForPageURL):
- (WebCore::IconDatabase::performSetIconURLForPageURL):
- (WebCore::IconDatabase::hasIconForIconURL):
- -Some style/comment cleanups, but mainly putting private browsing handling in place
- * icon/IconDatabase.h: Some methods added, others renamed, some comments added
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::getColumnName):
- (WebCore::SQLStatement::getColumnName16):
- (WebCore::SQLStatement::getColumnText):
- (WebCore::SQLStatement::getColumnText16):
- -The above 4 had changes to return String() for empty results instead of "" as it's less expensive;
- 2006-07-05 John Sullivan <sullivan@apple.com>
- Reviewed by Darin and Adele.
-
- - fixed <rdar://problem/4609162> REGRESSION: When tabbing between links on a page,
- the window doesn't scroll to link that's not in view
- * html/HTMLAnchorElement.cpp:
- * html/HTMLAnchorElement.h:
- removed HTMLAnchorElement::focus and HTMLAnchorElement::blur.
-
- HTMLAnchorElement::focus just called document()->setFocusNode(). The scroll-to-reveal
- code used to be inside document()->setFocusNode(), but now it's in Element::focus, and this override
- was preventing that code from running.
-
- HTMLAnchorElement::blur was exactly the same implementation as Element::blur (and there aren't any
- other implementations of ::blur in the class hierarchy in between). This change has no practical
- effect, other than removing duplicate code.
-
- Adele and I think that it was an oversight not to remove these two methods on 12/20/05
- these methods were removed from HTMLButtonElementImpl and HTMLInputElementImpl.
- 2006-07-05 Anders Carlsson <acarlsson@apple.com>
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::createFrame):
- Fix Win32 build.
- 2006-07-05 Anders Carlsson <acarlsson@apple.com>
- * WebCore.xcodeproj/project.pbxproj:
- Revert accidental change of debug format to DWARF.
- 2006-07-05 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=3581
- iFrames set to display:none are Missing from frames array
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::FrameMac):
- (WebCore::FrameMac::createFrame):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge initSubframeWithOwnerElement:]):
- (-[WebCoreFrameBridge installInFrame:]):
- Modify to pass the owner element instead of the owner renderer.
- * dom/ContainerNode.cpp:
- (WebCore::ContainerNode::insertBefore):
- (WebCore::ContainerNode::replaceChild):
- (WebCore::ContainerNode::appendChild):
- Dispatch the node inserted events before attaching the nodes. This is what the
- tokenizer does.
-
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::openURL):
- (WebCore::HTMLFrameElement::attach):
- Pass the element to requestFrame.
-
- (WebCore::HTMLFrameElement::setLocation):
- Don't call attach/detach on an iframe.
- * html/HTMLIFrameElement.cpp:
- (WebCore::HTMLIFrameElement::insertedIntoDocument):
- Load the frame here (using openURL).
-
- (WebCore::HTMLIFrameElement::removedFromDocument):
- Call frameDetached.
-
- (WebCore::HTMLIFrameElement::attach):
- If there's a renderer, attach the content frame to it.
-
- (WebCore::HTMLIFrameElement::detach):
- Reset the renderer's frame.
-
- (WebCore::HTMLIFrameElement::openURL):
- Modify to request the frame.
-
- * html/HTMLIFrameElement.h:
- Add detach.
-
- * page/Frame.cpp:
- (WebCore::parentFromOwnerElement):
- (WebCore::Frame::Frame):
- (WebCore::Frame::~Frame):
- (WebCore::Frame::requestFrame):
- (WebCore::Frame::requestObject):
- (WebCore::Frame::loadSubframe):
- (WebCore::Frame::ownerElement):
- (WebCore::Frame::ownerRenderer):
- (WebCore::Frame::disconnectOwnerElement):
- * page/Frame.h:
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- * rendering/RenderPart.cpp:
- (WebCore::RenderPart::setFrame):
- Modify to keep an owner element around instead of the renderer.
-
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::updateWidget):
- Don't do anything for iframes.
- 2006-07-04 Kevin Ollivier <kevino@theolliviers.com>
- Reviewed by Maciej, reworked a bit by Darin.
- Compile fixes for wx port / gcc 4.0.2
-
- * platform/PlatformString.h:
- * platform/StringImpl.h:
- Include CoreFoundation for CF-specific code.
-
- * dom/DocPtr.h:
- * doc/EventTargetNode.h:
- Silence warnings about 'extra tokens' after #endif on gcc 4.0.2.
- (Not an error but warnings appear frequently.)
-
- * WebCoreSources.bkl:
- * webcore-base.bkl:
- Synching ports sources file with TOT. Also, making sure SRCDIR variable
- overrides any previous values.
-
- * loader/ImageDocument.cpp:
- Use PLATFORM(MAC) for the parts that are specific to the Macintosh version,
- and move the Objective-C parts to another file.
- * loader/mac/ImageDocumentMac.h: Added.
- * loader/mac/ImageDocumentMac.mm: Added.
- 2006-07-04 Sam Weinig <sam.weinig@gmail.com>
- Build fix.
- * platform/Color.cpp:
- (WebCore::makeRGBAFromHSLA):
- 2006-07-02 David Carson <dacarson@gmail.com>
- Reviewed by Darin.
-
- - Added HSL color support as specified in CSS3 spec.
- http://bugs.webkit.org/show_bug.cgi?id=9506
- Added parsing support of hsl(h,s,l) and hsla(h,s,l,a)
- Added converting code to convert HSL to RGB
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseColorParameters):
- Moved common code to parse RGB/RGBA values into it's
- own function. This code was duplicated in the parseColorFromValue()
- method.
- (WebCore::CSSParser::parseHSLParameters):
- Common code to parse HSL/HSLA values.
- (WebCore::CSSParser::parseColorFromValue):
- Moved RGB/RGBA parsing out to seperate function as the code was
- duplicated.
- Added parsing support for hsl( and hsla(
- * css/cssparser.h:
- Added two new functions parseColorParameters() and
- parseHSLParameters().
- * platform/Color.cpp:
- (WebCore::calcHue):
- Added Hue parameter to RGB color.
- (WebCore::makeRGBAFromHSLA):
- New function to convert HSLA to RGBA.
- * platform/Color.h:
- Added new functions makeRGBAFromHSLA() and calcHue().
- 2006-07-02 Mike Emmel <mike.emmel@gmail.com>
- Reviewed and landed by ggaren.
- * platform/gdk/TransferJobManager.cpp
- Fixed broken dowload logic
- * platform/gdk/ScrollViewGdk.cpp
- Add comment that scrollbarSize is a temporary variable
- * Projects/gdk/webcore-gdk.bkl
- Defined NDEBUG build executable is miscompiled otherwise
- * WebCoreSources.bkl
- added icon/SiteIcon.cpp editing/IndentOutdentCommand.cpp
- html/HTMLViewSourceDocument.cpp
- 2006-07-02 Shawn Stricker <kb1ibt@gmail.com>
- Reviewed by Timothy Hatcher. Build fix for Linux.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9684
- [GDK] multiple little fixes and a few new things for Templinkstubs
- * platform/gdk/ScrollViewGdk.cpp:
- (WebCore::ScrollView::setDrawable): Changed SCROLLBAR_SIZE to scrollbarSize.
- * platform/gdk/TemporaryLinkStubs.cpp:
- (Image::drawTiled): Added missing parameter to argument list.
- * platform/gdk/TransferJobManager.cpp:
- (WebCore::writeCallback): Added missing parenthesis to static_cast.
- 2006-07-02 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9674
- REGRESSION (r15075): Blank or incomplete pages on digg.com
- Replaced the requestingScript state bit added in the fix for bug 9317
- with a m_requestingScript bool that is set before and restored
- after calling ref() on a CachedScript.
-
- Test: fast/tokenizer/nested-cached-scripts.html
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::HTMLTokenizer):
- (WebCore::HTMLTokenizer::begin):
- (WebCore::HTMLTokenizer::scriptHandler):
- (WebCore::HTMLTokenizer::notifyFinished):
- * html/HTMLTokenizer.h:
- (WebCore::HTMLTokenizer::State::):
- 2006-07-01 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by NOBODY (build fix).
- * platform/gdk/TransferJobManager.cpp:
- (WebCore::writeCallback): Changed 'static_cat' to 'static_cast'.
- 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
- Reviewed and worked over a lot by Darin.
- - check in first set of GDK-specific sources
- * platform/gdk/BrowserExtensionGdk.h: Added.
- * platform/gdk/CookieJarGdk.cpp: Added.
- * platform/gdk/CursorGdk.cpp: Added.
- * platform/gdk/FontCacheGdk.cpp: Added.
- * platform/gdk/FontDataGdk.cpp: Added.
- * platform/gdk/FontGdk.cpp: Added.
- * platform/gdk/FontPlatformData.h: Added.
- * platform/gdk/FontPlatformDataGdk.cpp: Added.
- * platform/gdk/FrameGdk.cpp: Added.
- * platform/gdk/FrameGdk.h: Added.
- * platform/gdk/GlyphMapGdk.cpp: Added.
- * platform/gdk/KeyEventGdk.cpp: Added.
- * platform/gdk/KeyboardCodes.h: Added.
- * platform/gdk/MouseEventGdk.cpp: Added.
- * platform/gdk/PageGdk.cpp: Added.
- * platform/gdk/RenderThemeGdk.cpp: Added.
- * platform/gdk/RenderThemeGdk.h: Added.
- * platform/gdk/ScreenGdk.cpp: Added.
- * platform/gdk/ScrollViewGdk.cpp: Added.
- * platform/gdk/SharedTimerLinux.cpp: Added.
- * platform/gdk/SystemTimeLinux.cpp: Added.
- * platform/gdk/TemporaryLinkStubs.cpp: Added.
- * platform/gdk/TransferJobCurl.cpp: Added.
- * platform/gdk/TransferJobManager.cpp: Added.
- * platform/gdk/TransferJobManager.h: Added.
- * platform/gdk/WheelEventGdk.cpp: Added.
- * platform/gdk/WidgetGdk.cpp: Added.
- * platform/gdk/gdk-encodings.txt: Added.
- 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
- Reviewed by Darin.
- * WebCoreSources.bkl: Updated for recent file changes.
- 2006-06-30 Mike Emmel <mike.emmel@gmail.com>
- Reviewed and enhanced by Darin.
- Compilation fixes for Linux/Gdk.
- * WebCore/platform/FontData.h: Added forward declaration of a class.
- * WebCore/platform/cairo/GraphicsContextCairo.cpp: Fixed case on include.
- * WebCore/bindings/js/kjs_html.cpp: Added <math.h> include.
- * WebCore/css/maketokenizer: Fixed incorrect check for Linux that was
- already true even on Mac OS X. Added some additional includes and
- defines to the Linux extra generated code.
- 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=7204
- float inserted in fixed height block via DOM not repainted
- Test: fast/repaint/float-move-during-layout.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlockChildren):
- (WebCore::RenderBlock::repaintOverhangingFloats): Renamed repaintFloatingDescendants()
- to this and limited it to repainting overhanging floats. Added a boolean parameter that forces
- all descendant overhanging floats (that don't have their own layer) to paint.
- * rendering/RenderBlock.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::repaintDuringLayoutIfMoved): Changed to paint all descendant
- floats.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::repaintOverhangingFloats):
- * rendering/RenderObject.h:
- 2006-06-30 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- * editing/VisiblePosition.cpp: Removed is[Not]EqualIgnoringAffinity and made operator== use the logic that ignores affinity.
- * editing/VisiblePosition.h: Ditto.
- (WebCore::operator==):
- * editing/visible_units.cpp:
- (WebCore::isStartOfParagraph): Changed to compare VisiblePositions using ==.
- (WebCore::isEndOfParagraph): Ditto.
- (WebCore::isStartOfBlock): Ditto.
- (WebCore::isEndOfBlock): Ditto.
- === Safari-521.14 ===
- 2006-06-30 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- * editing/htmlediting.cpp:
- (WebCore::canHaveChildrenForEditing): Don't insert children into
- object tags while editing.
- 2006-06-30 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4598309
- Caret gets stuck when it hits non editable content within an editable body
- <http://bugs.webkit.org/show_bug.cgi?id=9510>
- Caret will jump out of an editable region
-
- * dom/Position.cpp:
- (WebCore::Position::upstream): Don't move into a new editable region so that
- candidates that that straddle an editable/non-editable boundary will
- correspond to different VisiblePositions.
- (WebCore::Position::downstream): Ditto.
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::modifyMovingRightForward): Use VisiblePosition::next(true)
- (WebCore::SelectionController::modifyMovingLeftBackward): Use VisiblePosition::previous(true)
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next): Added code to jump to the next editable region as long
- as it has the same highest editable root.
- (WebCore::VisiblePosition::previous): Ditto.
- * editing/VisiblePosition.h:
- * editing/htmlediting.cpp:
- (WebCore::highestEditableRoot): Added, returns the highest editable root of a node if that
- node is in editable content, otherwise 0.
- * editing/htmlediting.h:
- 2006-06-30 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- - Fix http://bugs.webkit.org/show_bug.cgi?id=9358
- REGRESSION: Assertion failure in HTMLInputElement::setValueFromRenderer
- (value == constrainValue(value)) when deleting all text
- Test: editing/deleting/delete-all-text-in-text-field-assertion.html
- Bug 9661 filed to fix the follow-up issue:
- http://bugs.webkit.org/show_bug.cgi?id=9661
- textContent returns "\n" for a <br> even if it is collapsed
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::setValueFromRenderer): Work around "\n" value
- when all characters are deleted from a text field.
- 2006-06-30 David Harrison <harrison@apple.com>
- Reviewed by Tim Omernick
- <rdar://problem/4609481> Crash calling -[WebScriptObject valueForKey:] when JS disabled
-
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::executionContextForDOM):
- Early return if JS is not enabled.
- 2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Tim H.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9664
- REGRESSION (r15106): Crash in fast/events/mouseover-mouseout2.html
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMouseMoveEvent): Added a check that oldSubframe is
- still a subframe of the view's frame before passing the event to it.
- 2006-06-29 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- <rdar://problem/3694163> -[KWQPageState finalize] is incorrect; design change needed
- <rdar://problem/3694165> -[WebCoreFrameBridge finalize] is incorrect; design change needed
- Added close methods that need to be called before these
- objects can be released. This ensures proper tear-down under GC.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge dealloc]):
- (-[WebCoreFrameBridge finalize]):
- (-[WebCoreFrameBridge close]):
- * bridge/mac/WebCorePageBridge.h:
- * bridge/mac/WebCorePageBridge.mm:
- (-[WebCorePageBridge setMainFrame:]):
- (-[WebCorePageBridge dealloc]):
- (-[WebCorePageBridge finalize]):
- (-[WebCorePageBridge close]):
- (-[WebCorePageBridge mainFrame]):
- (-[WebCorePageBridge setGroupName:]):
- (-[WebCorePageBridge groupName]):
- * kwq/KWQPageState.h:
- * kwq/KWQPageState.mm:
- (-[KWQPageState dealloc]):
- (-[KWQPageState finalize]):
- (-[KWQPageState close]):
- 2006-06-29 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt.
- - test for http://bugs.webkit.org/show_bug.cgi?id=4874
- Table with absolute bottom positioning is positioned incorrectly
- Note: patch originally from Mitz, spruced up by Weinig.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteVerticalValues):
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::layout):
- 2006-06-29 Graham Dennis <Graham.Dennis@gmail.com>
- Reviewed by Justin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9505
- moveParagraphContentsToNewBlockIfNecessary creates a new block outside the current position
- * editing/CompositeEditCommand.cpp:
- Added sanity checking to prevent modifying nodes outside of
- where we should be
- (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
- 2006-06-29 Brady Eidson <beidson@apple.com>
- Reviewed by Levi.
- In addition to a few small details, logging changes, and style cleanups, this is a stop-gap hack
- for a problem in SQLite's blob handling. Querying for a blob in a void* form is reproducibly
- returning a corrupt buffer. The temporary solution is to query for the blob as "quoted text" and
- manually convert the return string into a character buffer.
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::recreateDatabase):
- (WebCore::IconDatabase::createPrivateTables):
- (WebCore::hexToUnsignedChar): These two functions are the text-to-character-data converters for the time being
- (WebCore::hexStringToVector):
- (WebCore::IconDatabase::imageDataForIconID):
- (WebCore::IconDatabase::imageDataForIconURL):
- (WebCore::IconDatabase::imageDataForPageURL):
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::IconDatabase::hasIconForIconURL):
- * icon/IconDatabase.h: changes the icon data accessors to return a Vector<unsigned char> instead of void*
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::columnCount):
- (WebCore::SQLStatement::getColumnBlob):
- * icon/SiteIcon.cpp:
- (SiteIcon::getImage):
- 2006-06-29 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9652
- Assertion failure when changing an RTL table cell to display:none
- Test: fast/table/rtl-cell-display-none-assert.html
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::layoutRows): Corrected the index used as
- the last index in the columnPos vector.
- 2006-06-29 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9622
- showModalDialog returnValue ignored, function result is always "undefined"
- * manual-tests/modal-dialog.html: Added.
- * manual-tests/show-modal-dialog-test.html: Added.
- * page/Frame.cpp: (WebCore::Frame::clear): Call KJSProxy::clear with the
- clearWindowProperties parameter instead of not calling it at all when
- clearWindowProperties is false.
- * bindings/js/kjs_proxy.h: Add boolean clearWindowProperties parameter.
- * bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::clear): Pass clearWindowProperties
- variable through to Window::clear instead of not calling it at all.
- * bindings/js/kjs_window.h: Add boolean clearWindowProperties parameter.
- * bindings/js/kjs_window.cpp: (KJS::Window::clear): If clearWindowProperties
- is false, do only the returnValue work, not the rest of the work.
- * manual-tests/modal-dialog.html: Added.
- * manual-tests/show-modal-dialog-test.html: Added.
- 2006-06-29 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4450615> Add composite mode to background
- styles
- -webkit-background-composite will set a composite mode on a
- background image.
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSPropertyNames.in: Add -webkit-background-composite
- * css/CSSValueKeywords.in: Add all possible values (clear, copy,
- source-over, source-in, source-out, source-atop, destination-over,
- destination-in, destination-out, destination-atop, xor, plus-
- darker, highlight, and plus-lighter)
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- (WebCore::CSSParser::parseBackgroundProperty):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- (WebCore::CSSStyleSelector::mapBackgroundComposite):
- * css/cssstyleselector.h:
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::drawTiledImage):
- * platform/GraphicsContext.h: drawTiledImage() now takes a
- composite operator.
- * platform/Image.h: drawTiled() now takes a composite operator.
- * platform/cairo/ImageCairo.cpp:
- (WebCore::Image::drawTiled): Set the composite operator.
- * platform/mac/ImageMac.mm:
- (WebCore::Image::drawTiled): Set the composite operator.
- * platform/win/TemporaryLinkStubs.cpp:
- (Image::drawTiled):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended): Send the composite
- operator in the render style over to the graphics context.
- * rendering/render_style.cpp:
- (WebCore::BackgroundLayer::BackgroundLayer):
- (WebCore::BackgroundLayer::operator=):
- (WebCore::BackgroundLayer::operator==):
- (WebCore::BackgroundLayer::fillUnsetProperties):
- (WebCore::BackgroundLayer::cullEmptyLayers):
- * rendering/render_style.h:
- (WebCore::BackgroundLayer::backgroundComposite):
- (WebCore::BackgroundLayer::isBackgroundCompositeSet):
- (WebCore::BackgroundLayer::setBackgroundComposite):
- (WebCore::BackgroundLayer::clearBackgroundComposite):
- (WebCore::RenderStyle::backgroundComposite):
- (WebCore::RenderStyle::initialBackgroundComposite):
- 2006-06-29 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9649
- The no-svg build broke after r15091
- * bindings/objc/DOMInternal.h: Added #if XPATH_SUPPORT/#endif.
- * bindings/objc/DOMInternal.mm: Ditto.
- (raiseDOMException):
- * bindings/objc/DOMXPath.h: Ditto.
- * bindings/objc/DOMXPath.mm: Ditto.
- * bindings/objc/DOMXPathInternal.h: Ditto.
- 2006-06-29 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Tim O.
- <rdar://problem/4599760> Objective-C XPath support
-
- * WebCore.xcodeproj/project.pbxproj:
- Add files.
-
- * bindings/objc/DOMInternal.h:
- * bindings/objc/DOMInternal.mm:
- (raiseDOMException):
- Handle XPath exceptions
-
- * bindings/objc/DOMXPath.h: Added.
- (-[DOMXPathNSResolver lookupNamespaceURI:]):
- * bindings/objc/DOMXPath.mm: Added.
- (-[DOMNativeXPathNSResolver dealloc]):
- (-[DOMNativeXPathNSResolver finalize]):
- (-[DOMNativeXPathNSResolver _xpathNSResolver]):
- (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:]):
- (+[DOMNativeXPathNSResolver _xpathNSResolverWith:]):
- (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
- (-[DOMXPathResult dealloc]):
- (-[DOMXPathResult finalize]):
- (-[DOMXPathResult resultType]):
- (-[DOMXPathResult numberValue]):
- (-[DOMXPathResult stringValue]):
- (-[DOMXPathResult booleanValue]):
- (-[DOMXPathResult singleNodeValue]):
- (-[DOMXPathResult invalidIteratorState]):
- (-[DOMXPathResult snapshotLength]):
- (-[DOMXPathResult iterateNext]):
- (-[DOMXPathResult snapshotItem:]):
- (-[DOMXPathResult _xpathResult]):
- (-[DOMXPathResult _initWithXPathResult:]):
- (+[DOMXPathResult _xpathResultWith:]):
- (-[DOMXPathExpression evaluate:::]):
- (-[DOMXPathExpression _xpathExpression]):
- (-[DOMXPathExpression _initWithXPathExpression:]):
- (+[DOMXPathExpression _xpathExpressionWith:]):
- (-[DOMDocument createExpression::]):
- (-[DOMDocument createNSResolver:]):
- (-[DOMDocument evaluate:::::]):
- * bindings/objc/DOMXPathInternal.h: Added.
- Add Objective-C XPath API.
- 2006-06-28 David Hyatt <hyatt@apple.com>
- Add support for custom highlighting to paint at the root line box level
- (and to inflate the box it uses so that it can go outside the bounds of
- the line if necessary).
- Reviewed by harrison
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::customHighlightLineRect):
- (WebCore::FrameMac::paintCustomHighlight):
- * bridge/mac/WebCoreFrameBridge.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintCustomHighlight):
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::paintCustomHighlight):
- (WebCore::RootInlineBox::paint):
- * rendering/RootInlineBox.h:
- 2006-06-28 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- <rdar://problem/4592005> FormatBlock inserts in the wrong place, disregarding editable content
- <rdar://problem/4590763> FormatBlock for paragraph style doesn't work
- * dom/Node.cpp:
- (WebCore::Node::rootEditableElement): Return inline nodes
- * editing/FormatBlockCommand.cpp:
- (WebCore::FormatBlockCommand::doApply): Keep from inserting before editable content
- * editing/JSEditor.cpp: Support html braces (<>) around tag names
- 2006-06-28 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- svg/custom/text-hit-test.svg was failing
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::positionForCoordinates): Don't skip child
- renderers that have a height of 0 when looking for the closest child
- renderer, they may contain content that overflows.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::positionForCoordinates): Fixed typos.
- 2006-06-28 David Hyatt <hyatt@apple.com>
- Make the view source document properly handle <script>. We don't syntax
- highlight the JS yet, but it shows up properly now.
- Reviewed by john
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptHandler):
- 2006-06-28 Timothy Hatcher <timothy@apple.com>
- Prefer the Stabs debugging symbols format until DWARF bugs are fixed.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-06-28 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- Fixed EditActions for InsertHorizontalRule and RemoveFormat.
-
- * editing/JSEditor.cpp:
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand):
- (WebCore::ReplaceSelectionCommand::editingAction):
- * editing/ReplaceSelectionCommand.h:
- 2006-06-28 Levi Weintraub <lweintraub@apple.com>
- Build Fix. Reviewed by NOBODY
- * editing/IndentOutdentCommand.cpp:
- (WebCore::IndentOutdentCommand::indentRegion):
- 2006-06-28 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- http://bugs.webkit.org/show_bug.cgi?id=7568
- Bug 7568: Implement Indent/Outdent
- * WebCore.vcproj/WebCore/WebCore.vcproj: Added IndentOutdentCommand.h/cpp
- * WebCore.xcodeproj/project.pbxproj: Ditto.
- * editing/IndentOutdentCommand.cpp: Added.
- (WebCore::IndentOutdentCommand::IndentOutdentCommand):
- (WebCore::enclosingListOrBlockquote):
- (WebCore::IndentOutdentCommand::splitTreeToNode): Splits the DOM tree from a
- descendent node to an ending ancestor, duplicating nodes when necessary. Returns
- the last node split. Used to insert blockquotes at the topmost level.
- (WebCore::IndentOutdentCommand::indentRegion):
- (WebCore::IndentOutdentCommand::outdentParagraph):
- (WebCore::IndentOutdentCommand::outdentRegion):
- (WebCore::IndentOutdentCommand::doApply):
- * editing/IndentOutdentCommand.h: Added.
- (WebCore::IndentOutdentCommand::):
- * editing/JSEditor.cpp: Added the execCommands Indent and Outdent
- * editing/htmlediting.cpp:
- (WebCore::enclosingNodeWithTag): Finds the enclosing node with any specified tag.
- (WebCore::enclosingListChild): Added checks for nill and editable boundaries.
- (WebCore::outermostEnclosingListChild): Returns the highest ancestor list child.
- (WebCore::highestAncestor): Added.
- (WebCore::createElement): Changed the passed in string to a const reference.
- * editing/htmlediting.h:
- 2006-06-28 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin and Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9561
- REGRESSION: Content property on :before of button causes hang on click or hover
- Test: fast/forms/button-generated-content.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::setStyle):
- * rendering/RenderButton.cpp:
- (WebCore::RenderButton::updatePseudoChild): Added. Calls updatePseudoChildForObject()
- on the button itself or on its inner div, if it has one.
- * rendering/RenderButton.h:
- (WebCore::RenderButton::createsAnonymousWrapper): Added. Returns true.
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::pseudoChild): Added. Returns the child containing
- generated content of the requested type if there is one, or otherwise the
- child before/after which such generated content should come.
- (WebCore::RenderContainer::updatePseudoChild): Removed the child parameter and moved the guts
- of this method into updatePseudoChildForObject, which this method calls unless the object
- is an anonymous wrapper.
- (WebCore::RenderContainer::updatePseudoChildForObject): Added. Does the what
- updatePseudoChildForObject did previously, but fetches the pseudo style from
- the styledObject parameter.
- * rendering/RenderContainer.h:
- * rendering/RenderInline.cpp:
- (WebCore::RenderInline::setStyle):
- (WebCore::RenderInline::addChildToFlow):
- (WebCore::RenderInline::splitInlines):
- (WebCore::RenderInline::splitFlow):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::createsAnonymousWrapper): Added. This method replaces
- allowsReusingAnonymousChild and returns the opposite of what that method used to
- return. Returns true if the object creates an anonymous child to contain all its
- other children.
- 2006-06-27 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Hookup the new semi-functional SQLite icon database.
- For now, it is living side-by-side with the old DB so one can compare the
- two for debugging purposes. Also, it is disabled (in WebKit) by default unless you
- compile with ICONDEBUG #defined.
- * WebCore.xcodeproj/project.pbxproj: Added file SiteIcon.cpp
- * bridge/mac/WebCoreIconDatabaseBridge.h:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
- (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
- (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
- (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::isValidDatabase):
- (WebCore::IconDatabase::recreateDatabase):
- (WebCore::IconDatabase::createPrivateTables):
- (WebCore::IconDatabase::deletePrivateTables):
- (WebCore::IconDatabase::imageDataForIconID):
- (WebCore::IconDatabase::imageDataForIconURL):
- (WebCore::IconDatabase::imageDataForPageURL):
- (WebCore::IconDatabase::setPrivateBrowsingEnabled):
- (WebCore::IconDatabase::iconForPageURL):
- (WebCore::IconDatabase::iconURLForURL):
- (WebCore::IconDatabase::setIconDataForIconURL):
- (WebCore::IconDatabase::establishIconIDForEscapedIconURL):
- (WebCore::IconDatabase::setHaveNoIconForIconURL):
- (WebCore::IconDatabase::setIconURLForPageURL):
- (WebCore::IconDatabase::hasIconForIconURL):
- * icon/IconDatabase.h:
- (WebCore::SiteIcon::getIconURL):
- (WebCore::IconDatabase::getPrivateBrowsingEnabled):
-
- * icon/SiteIcon.cpp: Added.
- (SiteIcon::SiteIcon):
- (SiteIcon::~SiteIcon):
- (SiteIcon::getImage):
- (SiteIcon::resetExpiration):
- (SiteIcon::getExpiration):
- 2006-06-27 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9605
- REGRESSION: pageX and pageY are both 0 for events created with initMouseEvent
- Calculate pageX/pageY and clientX/clientY values when using initMouseEvent.
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::initMouseEvent):
- * dom/MouseRelatedEvent.cpp:
- (WebCore::MouseRelatedEvent::initCoordinates):
- * dom/MouseRelatedEvent.h:
- 2006-06-27 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Maciej and Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9317
- REGRESSION: crash in HTML tokenizer at Japanese Apple support page
- Test: fast/tokenizer/write-unclosed-script.html
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::scriptHandler): Changed to reset the inScript flag
- and scriptCodeSize before possible script execution, but not afterwards.
- This way, if script execution write()s a <script> tag without closing it,
- the tokenizer is left in inScript state. Added code to set the requestingScript
- flag around the request for the cached script, to let notifiyFinished() know
- that it's being called under scriptHandler().
- (WebCore::HTMLTokenizer::scriptExecution): Removed code that saved and restored
- the inScript flag. This function is always entered now with inScript being false.
- (WebCore::HTMLTokenizer::notifyFinished): Changed to use the new requestingScript
- state flag instead of the inScript flag, which is always false now when entering
- this function.
- * html/HTMLTokenizer.h:
- Added the requestingScript state bit, used to tell notifyFinished() that it
- is being called under scriptHandler() (which happens when the script is already
- in cache).
- 2006-06-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- * editing/JSEditor.cpp: Added RemoveFormat.
- 2006-06-27 Kevin Decker <kdecker@apple.com>
- Reviewed by brady.
- Fixed: <rdar://problem/4597679> TOT REGRESSION: popup blocker DOA
-
- Need to add window.open() support to DumpRenderTree before landing an actual layout test.
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction): Because FrameTree::find() returns true for empty strings,
- we must check for empty framenames. Otherwise, illegitimate window.open() calls with no name
- will pass right through the popup blocker.
- 2006-06-28 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- Move FIXME comment here.
-
- * page/DOMWindow.cpp:
- (WebCore::DOMWindow::getComputedStyle):
- Don't do a null check on the renderer here. Everything's handled by
- CSSComputedStyleDeclaration anyway.
- 2006-06-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
- * rendering/RenderContainer.cpp: Fixed #include formatting.
- 2006-06-27 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4599735> Clicking out of a table at the extremes of an editable document doesn't appear to work
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::positionForCoordinates): In the fall through case,
- where we can't find a child block that contains (x, y), pass to RenderFlow
- instead of the last visible child block.
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::positionForCoordinates): Don't pass to the closest
- child renderer if this is a table and (x, y) is outside the table. Return
- a VisiblePosition before or after the table.
- Fixed the code that finds the closest child renderer.
- 2006-06-27 David Hyatt <hyatt@apple.com>
- Preserve entity text in view source mode. This patch doesn't highlight the
- the entities yet, but it at least prevents their resolution and removal.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::parseEntity):
- 2006-06-27 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9623
- REGRESSION: getComputedStyle should do a relayout
-
- * page/DOMWindow.cpp:
- (WebCore::DOMWindow::getComputedStyle):
- Do a relayout.
- 2006-06-27 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Adele
- - fixed <rdar://problem/4550473> Reproducible hang on www.digg.com
-
- * dom/NodeList.cpp:
- (WebCore::NodeList::recursiveItem): Make NodeList caching also
- work for backwards iteration - if the requested index is before
- the last cached, but closer to it than to the start of the list,
- then search backwards from there.
- (WebCore::NodeList::itemForwardsFromCurrent): Split this out as a
- helper method.
- (WebCore::NodeList::itemBackwardsFromCurrent): New helper, similar
- to the above.
- * dom/NodeList.h:
- 2006-06-27 Brady Eidson <beidson@apple.com>
- Reviewed by Levi
- Some SQLDatabase cleanup (style stuff) and enhancements
- * icon/SQLDatabase.cpp:
- (SQLDatabase::open):
- (SQLDatabase::executeCommand):
- (SQLDatabase::returnsAtLeastOneResult): Accessor to see if this query returns results
- (SQLDatabase::lastInsertRowID): Accessor for the rowid of the last insert
- * icon/SQLDatabase.h:
- (WebCore::SQLStatement::prepareAndStep):
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::bindInt64):
- -All of the following used to require the user to manually prepare and step a statement
- before asking for the result. Now it will prepare and step itself so you can use a temporary
- object to get a quick result
- (WebCore::SQLStatement::getColumnName):
- (WebCore::SQLStatement::getColumnName16):
- (WebCore::SQLStatement::getColumnText):
- (WebCore::SQLStatement::getColumnText16):
- (WebCore::SQLStatement::getColumnDouble):
- (WebCore::SQLStatement::getColumnInt):
- (WebCore::SQLStatement::getColumnInt64):
- (WebCore::SQLStatement::getColumnBlobAsVector):
- (WebCore::SQLStatement::getColumnBlob):
- 2006-06-27 Ada Chan <adachan@apple.com>
- Reviewed by sfalken.
- Fixed build.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-06-27 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for <rdar://problem/4602635> Media queries must be extended to
- address CSS pixel scaling factor
- * css/MediaFeatureNames.h: Add -webkit-device-pixel-ratio, -webkit-
- min-device-pixel-ratio, and -webkit-max-device-pixel-ratio to the
- list of feature names.
- * css/MediaQueryEvaluator.cpp:
- (WebCore::cmpvalue): Added a version of cmpvalue that compares
- floats.
- (WebCore::device_pixel_ratioMediaFeatureEval):
- (WebCore::min_device_pixel_ratioMediaFeatureEval):
- (WebCore::max_device_pixel_ratioMediaFeatureEval):
- 2006-06-27 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - finish with http://bugs.webkit.org/show_bug.cgi?id=9606
- REGRESSION: some callers are still using clientX/Y to get pageX/Y
- * rendering/RenderFrameSet.cpp: (WebCore::RenderFrameSet::userResize):
- Change to use pageX/Y, but this really doesn't matter since framesets
- can't be scrolled -- it's the frames that are scrolled. So this change
- has no user-visible effect, but it's still better this way.
- 2006-06-27 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix 2/3 of http://bugs.webkit.org/show_bug.cgi?id=9606
- REGRESSION: some callers are still using clientX/Y to get pageX/Y
- Test: fast/events/anchor-image-scrolled-x-y.html
- Test: fast/events/input-image-scrolled-x-y.html
- * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler): Use pageX/Y.
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
- 2006-06-27 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Added functionality to WebCore::Image to get multiple representations/sizes into TIFF data
- * platform/mac/ImageMac.mm:
- (WebCore::Image::getTIFFRepresentation):
- 2006-06-26 David Hyatt <hyatt@apple.com>
- Fix for 9538, support syntax highlighted HTML source. Lots of loose
- ends still (script/style/comments/doctype/entities/accurate whitespace).
- Reviewed by darin
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge setInViewSourceMode:]):
- (-[WebCoreFrameBridge inViewSourceMode]):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::loadDefaultStyle):
- (WebCore::CSSStyleSelector::matchUARules):
- * css/cssstyleselector.h:
- * css/view-source.css: Added.
- * dom/Document.cpp:
- (WebCore::Document::implicitClose):
- * dom/xml_tokenizer.h:
- (WebCore::Tokenizer::Tokenizer):
- (WebCore::Tokenizer::~Tokenizer):
- (WebCore::Tokenizer::inViewSourceMode):
- (WebCore::Tokenizer::setInViewSourceMode):
- * html/HTMLAttributeNames.in:
- * html/HTMLFrameElement.cpp:
- (WebCore::HTMLFrameElement::init):
- (WebCore::HTMLFrameElement::parseMappedAttribute):
- (WebCore::HTMLFrameElement::attach):
- * html/HTMLFrameElement.h:
- (WebCore::HTMLFrameElement::viewSourceMode):
- * html/HTMLTokenizer.cpp:
- (WebCore::HTMLTokenizer::HTMLTokenizer):
- (WebCore::HTMLTokenizer::scriptHandler):
- (WebCore::HTMLTokenizer::scriptExecution):
- (WebCore::HTMLTokenizer::parseTag):
- (WebCore::HTMLTokenizer::continueProcessing):
- (WebCore::HTMLTokenizer::write):
- (WebCore::HTMLTokenizer::timerFired):
- (WebCore::HTMLTokenizer::end):
- (WebCore::HTMLTokenizer::processToken):
- (WebCore::HTMLTokenizer::notifyFinished):
- * html/HTMLTokenizer.h:
- * html/HTMLViewSourceDocument.cpp: Added.
- (WebCore::HTMLViewSourceDocument::HTMLViewSourceDocument):
- (WebCore::HTMLViewSourceDocument::createTokenizer):
- (WebCore::HTMLViewSourceDocument::addViewSourceToken):
- (WebCore::HTMLViewSourceDocument::addViewSourceAttribute):
- (WebCore::HTMLViewSourceDocument::addSpanWithClassName):
- * html/HTMLViewSourceDocument.h: Added.
- * page/Frame.cpp:
- (WebCore::Frame::begin):
- (WebCore::Frame::inViewSourceMode):
- (WebCore::Frame::setInViewSourceMode):
- * page/Frame.h:
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- * rendering/RenderPartObject.cpp:
- (WebCore::RenderPartObject::updateWidget):
- 2006-06-26 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9031
- REGRESSION: Crash when closing tabs on newegg.com
-
- * page/Frame.cpp:
- (WebCore::Frame::pageDestroyed):
- * page/Frame.h:
- Add new method which is invoked when the frame's page has been destroyed.
- Currently this function disassociates the JS Window object with the frame,
- stopping any running JS timers.
-
- * page/Page.cpp:
- (WebCore::Page::~Page):
- Call pageDestroyed on all frames.
- 2006-06-26 Rob Buis <buis@kde.org>
- Reviewed and reworked by Darin.
- Code cleanup, calculate clientX/clientY in one central place.
- * dom/EventTargetNode.h:
- * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchMouseEvent):
- Renamed parameters to pageX/Y since they aren't clientX/Y values.
- Removed code to compute clientX/Y (was a bit confused in naming before),
- because that's now done inside MouseEvent.
- * dom/MouseEvent.h:
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::MouseEvent): Removed clientX/Y parameters.
- (WebCore::MouseEvent::initMouseEvent): Added comments about problems I noticed.
- (WebCore::MouseEvent::which): Fixed comment that confusingly mentioned KHTML,
- when it was talking about the DOM standard.
- * dom/MouseRelatedEvent.h:
- * dom/MouseRelatedEvent.cpp:
- (WebCore::contentsX): Added helper function.
- (WebCore::contentsY): Ditto.
- (WebCore::MouseRelatedEvent::MouseRelatedEvent): Removed clientX/Y parameter,
- and added code to compute clientX/Y based on pageX/Y.
- (WebCore::MouseRelatedEvent::receivedTarget): Fixed comments.
- * dom/WheelEvent.h:
- * dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Removed clientX/Y
- parameter.
- * page/FrameView.cpp: (WebCore::FrameView::dispatchDragEvent): Removed the code
- to compute coordinates, and renamed the confusingly named clientPos (which was
- a page-relative position) to contentsPos.
- 2006-06-25 David Carson <dacarson@gmail.com>
- Reviewed and tweaked by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9185
- REGRESSION: UserID field appears with an incorrect height
- on americanexpresslogin page
- - Height and Width attribute only applies to IMAGE and HIDDEN
- types.
- * dom/NamedMappedAttrMap.h:
- (WebCore::NamedMappedAttrMap::getAttributeItem):
- Added to static_cast method.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::setInputType):
- Update the style decl if input type has changed.
- (WebCore::HTMLInputElement::mapToEntry):
- Only Cache height and width if it is an IMAGE or HIDDEN
- (WebCore::HTMLInputElement::parseMappedAttribute):
- Check type before adding height and width style.
- (WebCore::HTMLInputElement::attach):
- Remove code for discarding width.
- * html/HTMLInputElement.h:
- (WebCore::HTMLInputElement::respectHeightAndWidthAttrs):
- New method added to report if this input type uses height & width.
- 2006-06-25 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9537
- REGRESSION: Reproducible crash in WebCore::RenderTextField::textWithHardLineBreaks()
- Test: fast/forms/textarea-hard-linewrap-empty.html
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::textWithHardLineBreaks): Added null check for
- m_div->firstChild()->renderer().
- 2006-06-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9388
- REGRESSION: outlines don't get erased when removed in some cases
- Test: fast/repaint/outline-shrinking.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle): Always repaint with the old style if the outline is
- becoming narrower, even if we are going to relayout.
- 2006-06-25 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8707:
- event.clientX and event.clientY should be relative to the viewport, not the canvas
- Make sure clientX and clientY take into account the scroll offsets
- of the view.
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchMouseEvent):
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::MouseEvent):
- * dom/MouseEvent.h:
- * dom/MouseRelatedEvent.cpp:
- (WebCore::MouseRelatedEvent::MouseRelatedEvent):
- (WebCore::MouseRelatedEvent::initCoordinates):
- * dom/MouseRelatedEvent.h:
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- * page/FrameView.cpp:
- (WebCore::FrameView::dispatchDragEvent):
- 2006-06-25 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- Bug 9574: Drosera should show inline scripts within the original HTML
- http://bugs.webkit.org/show_bug.cgi?id=9574
- * Pass the starting line number and error message to the debugger.
- * Call parsedSource even if there was a script parse error so the
- debugger can show the parse error.
- * Pass NSURL objects to the ObjC delegate for the script URLs.
- * bridge/mac/WebCoreScriptDebugger.h:
- * bridge/mac/WebCoreScriptDebugger.mm:
- (toNSURL):
- (WebCoreScriptDebuggerImp::sourceParsed):
- 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
- Build fix. Reviewed by NOBODY.
- - Backed out patch for http://bugs.webkit.org/show_bug.cgi?id=8707
- event.clientX and event.clientY should be relative to the viewport, not the canvas
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchMouseEvent):
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::MouseEvent):
- * dom/MouseEvent.h:
- * dom/MouseRelatedEvent.cpp:
- (WebCore::MouseRelatedEvent::MouseRelatedEvent):
- (WebCore::MouseRelatedEvent::initCoordinates):
- * dom/MouseRelatedEvent.h:
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- 2006-06-24 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8707:
- event.clientX and event.clientY should be relative to the viewport, not the canvas
- Make sure clientX and clientY take into account the scroll offsets
- of the view.
- Test: fast/dom/window-xy-properties.html
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchMouseEvent):
- * dom/MouseEvent.cpp:
- (WebCore::MouseEvent::MouseEvent):
- * dom/MouseEvent.h:
- * dom/MouseRelatedEvent.cpp:
- (WebCore::MouseRelatedEvent::MouseRelatedEvent):
- (WebCore::MouseRelatedEvent::initCoordinates):
- * dom/MouseRelatedEvent.h:
- * dom/WheelEvent.cpp:
- (WebCore::WheelEvent::WheelEvent):
- 2006-06-24 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9352
- Webkit doesn't respect stroke-width in SVG for smaller <circle>s
- Make sure the stroke path is set before applying gradient transforms.
- * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
- (WebCore::KRenderingPaintServerGradientQuartz::setup):
- (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
- 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
- Rubber-stamped by Eric.
- Add a -h (do not follow symlinks) option to ln in derived sources build script (without it,
- a symlink was created inside the source directory on second build).
- * WebCore.xcodeproj/project.pbxproj:
- 2006-06-24 James G. Speth <speth@end.com>
- Reviewed by Darin. Copyrights tweaked by ddkilzer.
-
- Bug 8331: DOMNodeLists returned to Objective-C are not properly wrapped
- http://bugs.webkit.org/show_bug.cgi?id=8331
-
- DOMNodes were the only objects handled by createObjcInstanceForValue.
- now it handles all of these: DOMNode, DOMNodeList, DOMNamedNodeMap, DOMStyleSheetList,
- DOMStyleSheet, DOMMediaList, DOMCSSRuleList, DOMCSSRule, DOMCSSStyleDeclaration, and DOMCSSValue
-
- * WebCore.xcodeproj/project.pbxproj: added file DOMCSSInternal.h to project
- * bindings/js/kjs_css.cpp:
- (KJS::): changed ClassInfo for DOMCSSStyleSheet to have DOMStyleSheet as its parent class
- * bindings/objc/DOM.mm:
- (-[DOMDocumentType :]): moved DOMNamedNodeMap (WebCoreInternal) interface to DOMInternal.h
- * bindings/objc/DOMCSS.mm: moved WebCoreInternal interfaces to DOMCSSInternal.h
- * bindings/objc/DOMCSSInternal.h: Added file, contains WebCoreInternal interface for CSS classes
- * bindings/objc/DOMInternal.h: added DOMNamedNodeMap (WebCoreInternal) interface
- * bindings/objc/DOMUtility.mm:
- (KJS::ScriptInterpreter::createObjcInstanceForValue): support for more classes
- 2006-06-24 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Timothy.
- * Info.plist: Fixed copyright to include 2003-2006.
- * manual-tests/NPN_Invoke/Info.plist: Added copyright statement.
- 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin, landed by ap.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9547
- Resize corner does not track the mouse accurately
- Test: fast/css/resize-corner-tracking.html
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMousePressEvent): Store the offset from the layer's
- resizing corner where dragging has started.
- (WebCore::FrameView::handleMouseMoveEvent): Pass the stored offset to the
- layer's resize method.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::resize): Added an offset parameter, which is added to
- the mouse location.
- For objects that may have intrinsic margins applied to them,
- added code to lift the margins into the object's style in order to keep them
- constant.
- Changed to take the content size as the base size if the box-sizing property
- is content-box.
- (WebCore::RenderLayer::offsetFromResizeCorner): Added. Returns the offset of the
- given point from the corner that tracks the mouse when resizing.
- * rendering/RenderLayer.h:
- 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin, landed by ap.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9316
- REGRESSION: text field width shrinks on first keystroke
- Test: fast/forms/floating-textfield-relayout.html
- * page/FrameView.cpp:
- (WebCore::FrameView::layoutRoot): Added. During subtree relayout, returns
- the subtree root. Otherwise returns 0.
- (WebCore::FrameView::layoutPending): Made const.
- * page/FrameView.h:
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcWidth): Added early return if this is the root
- of a subtree being laid out.
- 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9531
- Pages that need only a horizontal scroll bar get a vertical one as well
- The change affects many existing tests.
- * page/FrameView.cpp:
- (WebCore::FrameView::layout): Mark the body renderer as needing layout if
- the view's height has changed and the body stretches to the view's height.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcHeight):
- * rendering/RenderBox.h:
- (WebCore::RenderBox::stretchesToViewHeight): Added. Moved the logic for when
- the HTML block needs to stretch to the view's height from calcHeight() here.
- 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=7461
- Always encode the path part of an URI as UTF-8
- Test: http/tests/uri/utf8-path.html
- * platform/KURL.cpp:
- (encodeRelativeString): Always set pathEncoding to UTF-8.
- 2006-06-24 Graham Dennis <Graham.Dennis@gmail.com>
- Reviewed by Darin, landed by ap.
-
- - fix http://bugs.webkit.org/show_bug.cgi?id=9467
- TreeWalker/NodeIterator do not restrict the traversal
-
- Test: traversal/stay-within-root.html
- * dom/Node.cpp:
- (WebCore::Node::traversePreviousNode):
- * dom/Node.h:
- Add a stayWithin argument to traversePreviousNode just like the other
- traversal functions
- * dom/NodeIterator.cpp:
- (WebCore::NodeIterator::findNextNode):
- (WebCore::NodeIterator::findPreviousNode):
- Ensure that when moving forward or backward that the root node is not
- exited
- * dom/TreeWalker.cpp:
- (WebCore::TreeWalker::previousNode):
- (WebCore::TreeWalker::nextNode):
- Ditto
- (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
- 2006-06-24 Jonas Witt <jonas.witt@gmail.com>
- Reviewed by ggaren, landed by ap.
- - http://bugs.webkit.org/show_bug.cgi?id=9181
- Complete DOMUIEvent Obj-C API to reflect UIEvent
- * WebCore.exp: add new classes DOMKeyboardEvent and DOMWheelEvent to the exported
- symbols list of WebCore.framework
- Updated DOMUIEvent to include all DOM Level 2 properties
- Added DOMKeyboardEvent (DOM Level 3)
- Added two non-W3C accessors (keyCode, charCode) of DOMKeyboardEvent to a separate file (DOMEventsNonstandard)
- Added DOMWheelEvent (non-W3C) in separate file (DOMEventsNonstandard)
- Added this file (DOMEventsNonstandard) to the build process
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.h:
- * bindings/objc/DOMEvents.h:
- * bindings/objc/DOMEvents.mm:
- (+[DOMEvent _eventWith:]):
- (-[DOMUIEvent _UIEvent]):
- (-[DOMUIEvent view]):
- (-[DOMUIEvent detail]):
- (-[DOMUIEvent initUIEvent:::::]):
- (-[DOMKeyboardEvent _keyboardEvent]):
- (-[DOMKeyboardEvent keyIdentifier]):
- (-[DOMKeyboardEvent keyLocation]):
- (-[DOMKeyboardEvent ctrlKey]):
- (-[DOMKeyboardEvent shiftKey]):
- (-[DOMKeyboardEvent altKey]):
- (-[DOMKeyboardEvent metaKey]):
- (-[DOMKeyboardEvent getModifierState:]):
- (-[DOMMouseEvent button]):
- * bindings/objc/DOMEventsNonstandard.mm: Added.
- (-[DOMWheelEvent _wheelEvent]):
- (-[DOMWheelEvent screenX]):
- (-[DOMWheelEvent screenY]):
- (-[DOMWheelEvent clientX]):
- (-[DOMWheelEvent clientY]):
- (-[DOMWheelEvent ctrlKey]):
- (-[DOMWheelEvent shiftKey]):
- (-[DOMWheelEvent altKey]):
- (-[DOMWheelEvent metaKey]):
- (-[DOMWheelEvent isHorizontal]):
- (-[DOMWheelEvent wheelDelta]):
- (-[DOMKeyboardEvent _keyboardEvent]):
- (-[DOMKeyboardEvent keyCode]):
- (-[DOMKeyboardEvent charCode]):
- * bindings/objc/DOMPrivate.h:
- 2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and landed by ap.
- - http://bugs.webkit.org/show_bug.cgi?id=9563
- Remove unused layoutSuppressed field and inLayout() method
- No test added because there is no change in functionality.
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::layout):
- * page/FrameView.h:
- * rendering/RenderView.cpp:
- (WebCore::RenderView::layout):
- 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=8177
- Javascript search incredibly slow
- No change in functionality, thus no test.
- Use info sharing for named collections, too. Moved shared HTMLCollection infos from HTMLDocument
- to Document. Renamed collection types to use the preferred WebKit style. Replaced direct
- HTMLCollection creation with using accessors from Document in a few places.
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLElement children]):
- (-[DOMHTMLDocument images]):
- (-[DOMHTMLDocument applets]):
- (-[DOMHTMLDocument links]):
- (-[DOMHTMLDocument forms]):
- (-[DOMHTMLDocument anchors]):
- (-[DOMHTMLMapElement areas]):
- (-[DOMHTMLTableSectionElement rows]):
- (-[DOMHTMLTableElement rows]):
- (-[DOMHTMLTableElement tBodies]):
- (-[DOMHTMLTableRowElement cells]):
- * dom/Document.cpp:
- (WebCore::Document::images):
- (WebCore::Document::applets):
- (WebCore::Document::embeds):
- (WebCore::Document::objects):
- (WebCore::Document::scripts):
- (WebCore::Document::links):
- (WebCore::Document::forms):
- (WebCore::Document::anchors):
- (WebCore::Document::all):
- (WebCore::Document::windowNamedItems):
- (WebCore::Document::documentNamedItems):
- (WebCore::Document::nameCollectionInfo):
- * dom/Document.h:
- (WebCore::Document::collectionInfo):
- * html/HTMLCollection.cpp:
- (WebCore::HTMLCollection::HTMLCollection):
- (WebCore::HTMLCollection::traverseNextItem):
- (WebCore::HTMLCollection::checkForNameMatch):
- (WebCore::HTMLCollection::updateNameCache):
- * html/HTMLCollection.h:
- (WebCore::HTMLCollection::):
- * html/HTMLDocument.h:
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::children):
- * html/HTMLMapElement.cpp:
- (WebCore::HTMLMapElement::areas):
- * html/HTMLNameCollection.h:
- * html/HTMLNameCollection.cpp:
- (WebCore::HTMLNameCollection::HTMLNameCollection):
- (WebCore::HTMLNameCollection::traverseNextItem):
- * html/HTMLFormCollection.cpp:
- * html/HTMLOptionsCollection.cpp:
- (WebCore::HTMLOptionsCollection::HTMLOptionsCollection):
- * html/HTMLSelectElement.h:
- (WebCore::HTMLSelectElement::collectionInfo):
- * html/HTMLTableElement.cpp:
- (WebCore::HTMLTableElement::rows):
- (WebCore::HTMLTableElement::tBodies):
- * html/HTMLTableRowElement.cpp:
- (WebCore::HTMLTableRowElement::cells):
- * html/HTMLTableSectionElement.cpp:
- (WebCore::HTMLTableSectionElement::rows):
- * kwq/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- * page/Frame.cpp:
- (WebCore::Frame::gotoAnchor):
- 2006-06-24 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9418
- WebKit will not build when Space exists in path
- * WebCore.xcodeproj/project.pbxproj: Enclose search paths in quotes; create symlinks to
- avoid passing paths with spaces to make.
- 2006-06-23 Tim Omernick <timo@apple.com>
- Reviewed by Tim Hatcher.
- <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
- * page/FrameView.cpp:
- (WebCore::FrameView::updateDragAndDrop):
- Use the passed mouse event, instead of the "current" event. There is no such thing as
- a "drag event". Asking for the current event during a drag returns a weird system-
- internal event with an invalid mouse location.
- 2006-06-23 Timothy Hatcher <timothy@apple.com>
- Reviewed by Eric.
- Manual test added: cursor.html
- Bug 9560: should support new CSS3 cursor types to get more resizing directions
- http://bugs.webkit.org/show_bug.cgi?id=9560
- Adds support for ew-resize, ns-resize, nesw-resize, nwse-resize,
- col-resize and row-resize CSS3 cursor values.
- Also converted some of the cursor images to grayscale tiffs,
- some were RGB but had no color data.
- * Resources/eastResizeCursor.tiff:
- * Resources/eastWestResizeCursor.tiff: Added.
- * Resources/helpCursor.tiff:
- * Resources/moveCursor.tiff:
- * Resources/northEastResizeCursor.tiff:
- * Resources/northEastSouthWestResizeCursor.tiff: Added.
- * Resources/northResizeCursor.tiff:
- * Resources/northSouthResizeCursor.tiff: Added.
- * Resources/northWestResizeCursor.tiff:
- * Resources/northWestSouthEastResizeCursor.tiff: Added.
- * Resources/southEastResizeCursor.tiff:
- * Resources/southResizeCursor.tiff:
- * Resources/southWestResizeCursor.tiff:
- * Resources/textAreaResizeCorner.tiff:
- * Resources/waitCursor.tiff:
- * Resources/westResizeCursor.tiff:
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * manual-tests/cursor.html: Added.
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- * platform/Cursor.h:
- * platform/mac/CursorMac.mm:
- (WebCore::northSouthResizeCursor):
- (WebCore::eastWestResizeCursor):
- (WebCore::northEastSouthWestResizeCursor):
- (WebCore::northWestSouthEastResizeCursor):
- (WebCore::columnResizeCursor):
- (WebCore::rowResizeCursor):
- * platform/win/CursorWin.cpp:
- (WebCore::northSouthResizeCursor):
- (WebCore::eastWestResizeCursor):
- (WebCore::northEastSouthWestResizeCursor):
- (WebCore::northWestSouthEastResizeCursor):
- (WebCore::columnResizeCursor):
- (WebCore::rowResizeCursor):
- * rendering/render_style.h: cursor needs 5 bits now
- 2006-06-23 John Sullivan <sullivan@apple.com>
- Reviewed by Tim Omernick
-
- - fixed <rdar://problem/4597685> stale rects for document markers can be left behind in certain cases
- * dom/Document.h:
- * dom/Document.cpp:
- (WebCore::Document::setRenderedRectForMarker):
- changed parameter from IntRect to const IntRect& at Darin's request
- (WebCore::Document::invalidateRenderedRectsForMarkersInRect):
- new method, tests whether the rendered rect for each marker intersects the
- passed rect. If so, sets the rendered rect back to the placeholder rect that
- means that the rect for this marker isn't known.
-
- * page/Frame.cpp:
- (WebCore::Frame::paint):
- call invalidateRenderedRectsForMarkersInRect on the rect we're about to paint.
- This ensures that old stale rects won't be preserved if the associated marker
- has moved such that it is out of the painted area.
- 2006-06-23 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- <rdar://problem/4527702>
- REGRESSION: Quote bars go away on first paragraph when I delete reply text
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::mergeParagraphs):
- Add a rule for when to merge into empty blocks.
- === WebCore-521.13 ===
- 2006-06-23 Patrick Beard <beard@apple.com>
- Reviewed by Tim Hatcher.
- <rdar://problem/4223619> Safari crashed in -[NSFont __isSystemFont]
- CFRetain and CFRelease NSFont's when FontPlatformData has a reference.
- We only do this when GC is enabled for performance reasons.
- No tests possible.
- * platform/mac/FontPlatformData.h:
- (WebCore::FontPlatformData::FontPlatformData):
- (WebCore::FontPlatformData::~FontPlatformData):
- 2006-06-23 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <http://bugs.webkit.org/show_bug.cgi?id=8074>
- Caret before/after block tables is too small
- <rdar://problem/4598331>
- right arrow out of a table shows cursor in a weird place
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::caretRect): Don't propagate to children,
- VisiblePositions inside containers don't refer to children.
- Don't use the font height for tables.
- 2006-06-23 Brady Eidson <beidson@apple.com>
- Reviewed by Kevin.
- Added 64-bit String::number() functions
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::number):
- 2006-06-22 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9497
- REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
- Test: fast/repaint/clipped-relative.html
- * page/FrameView.cpp:
- (WebCore::FrameView::layout):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::removePositionedObjects): Removed call to computeRepaintRects().
- Previously, it was needed to update the cached rects before RenderBox::setStyle()
- called updateLayerPositions().
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::setStyle): Changed to call updateLayerPositions() for a newly-
- created layer only if it does not need layout. Otherwise, updateLayerPositions() will
- be called after layout. This saves a repaint in some cases.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::checkForRepaintOnResize): Renamed computeRepaintRects() to
- this and deleted the code that cached the absolute position and repaint rects.
- (WebCore::RenderLayer::updateLayerPositions): Added code to cache the absolute
- position and repaint rects right after updating the layer's position.
- * rendering/RenderLayer.h:
- 2006-06-22 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for <rdar://problem/4599015> REGRESSION: Hand on clock widget
- don't appear at all
- This regression was caused by <rdar://problem/4567520> HIDPI: pixel
- cracks in weather widget at 1.83 scaling
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::drawImage): Do the contains
- check before rounding to integral device pixels.
- 2006-06-22 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John.
- <rdar://problem/4529334> REGRESSION: Can't configure RadarInMotion widget for U.S. locations on Leopard (Javascript errors)
-
- * dom/Document.cpp:
- (WebCore::Document::completeURL):
- Check if both the URL and base URL are empty instead of using URL() which returns "about:blank" if the URL is empty.
-
- 2006-06-22 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4499675> Package Tracker widget always crashes in WebCore::Frame::jScriptEnabled() const + 0
- * html/HTMLParser.cpp:
- (WebCore::HTMLParser::noscriptCreateErrorCheck):
- (WebCore::HTMLParser::canvasCreateErrorCheck):
- (WebCore::HTMLParser::isInline):
- Add null-checks for document->frame() since it can be 0 for documents created using createHTMLDocument.
- 2006-06-22 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- <rdar://problem/4524840> Entities contained in DOCTYPE referenced DTD in XSLT source document are unknown
-
- * dom/xml_tokenizer.cpp:
- (WebCore::shouldAllowExternalLoad):
- Use correct path for the catalog.
-
- (WebCore::errorFunc):
- Add error function to keep parser errors from going to the console.
-
- (WebCore::XMLTokenizer::write):
- Remove if (0 &&)
-
- (WebCore::XMLTokenizer::end):
- Pass DocLoader to xmlDocPtrForString.
-
- (WebCore::xmlDocPtrForString):
- * dom/xml_tokenizer.h:
- Add DocLoader argument to xmlDocPtrForString so external DTDs and entities can be loaded.
-
- * xml/XSLTProcessor.cpp:
- (WebCore::xmlDocPtrFromNode):
- Pass DocLoader to xmlDocPtrForString
-
- 2006-06-21 David Hyatt <hyatt@apple.com>
- Back out -webkit-overlay and just rename it back to overlay.
- Reviewed by darin
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSValueKeywords.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- 2006-06-21 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializePositionData): Fix a bug in the code
- to stop merges across table cells.
- (WebCore::DeleteSelectionCommand::mergeParagraphs): Move the code to stop merges
- across table cells to initializePositionData so that its changes to
- m_mergeBlocksAfterDelete can take effect on the endingPosition.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Turn into an InsertLineBreak
- instead of splitting/cloning a table cell.
- 2006-06-21 Beth Dakin <bdakin@apple.com>
- Reviewed by John.
- Fix for <rdar://problem/3914965> Misspelled text underline doesn't
- look right at non-standard scale factors
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawLineForMisspelling): We need to call
- into our previously-created SPI for pattern-drawing so that the
- phase is right at all scale factors.
- 2006-06-21 David Hyatt <hyatt@apple.com>
- Fix for 7362, implement the CSS3 overflow-x and overflow-y properties.
- Reviewed by adele
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSPropertyNames.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle):
- (WebCore::CSSStyleSelector::applyProperty):
- * page/FrameView.cpp:
- (WebCore::FrameView::applyOverflowToViewport):
- (WebCore::FrameView::layout):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlock):
- (WebCore::RenderBlock::determineHorizontalPosition):
- (WebCore::RenderBlock::layoutBlockChildren):
- (WebCore::RenderBlock::rightOffset):
- (WebCore::RenderBlock::rightmostPosition):
- (WebCore::RenderBlock::calcMinMaxWidth):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::setStyle):
- (WebCore::RenderBox::contentWidth):
- (WebCore::RenderBox::contentHeight):
- (WebCore::RenderBox::sizesToIntrinsicWidth):
- (WebCore::RenderBox::calcHeight):
- (WebCore::RenderBox::calcPercentageHeight):
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::layoutBlock):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::scrollToOffset):
- (WebCore::RenderLayer::shouldAutoscroll):
- (WebCore::RenderLayer::updateScrollInfoAfterLayout):
- (WebCore::RenderLayer::styleChanged):
- * rendering/RenderLayer.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::clientWidth):
- (WebCore::RenderObject::clientHeight):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::hasAutoVerticalScrollbar):
- (WebCore::RenderObject::hasAutoHorizontalScrollbar):
- (WebCore::RenderObject::scrollsOverflow):
- (WebCore::RenderObject::scrollsOverflowX):
- (WebCore::RenderObject::scrollsOverflowY):
- (WebCore::RenderObject::includeVerticalScrollbarSize):
- (WebCore::RenderObject::includeHorizontalScrollbarSize):
- * rendering/RenderTextArea.cpp:
- (WebCore::RenderTextArea::setStyle):
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::createDivStyle):
- (WebCore::RenderTextField::calcHeight):
- (WebCore::RenderTextField::calcMinMaxWidth):
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren):
- * rendering/render_style.cpp:
- (WebCore::RenderStyle::diff):
- * rendering/render_style.h:
- (WebCore::):
- (WebCore::RenderStyle::NonInheritedFlags::operator==):
- (WebCore::RenderStyle::setBitDefaults):
- (WebCore::RenderStyle::overflowX):
- (WebCore::RenderStyle::overflowY):
- (WebCore::RenderStyle::setOverflowX):
- (WebCore::RenderStyle::setOverflowY):
- (WebCore::RenderStyle::initialOverflowX):
- (WebCore::RenderStyle::initialOverflowY):
- 2006-06-21 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4590366>
- REGRESSION: Selection incorrectly paints gaps on TOT
- * dom/Document.cpp:
- (WebCore::Document::updateSelection): Use the leftmost candidate for the end of the
- selection and the rightmost candidate for the start of the selection.
- * dom/Position.cpp:
- (WebCore::Position::upstream): Cross line wraps so that we can use upstream/downstream
- to get to candidates before/after linewraps.
- (WebCore::Position::downstream):
- (WebCore::Position::inRenderedContent):
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::handleGeneralDelete):
- (WebCore::DeleteSelectionCommand::mergeParagraphs):
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply):
- Ensure that the leftmost candidate is used. We should sample the style from that one.
- When the block to insert is after a br, a br should be inserted even in strict mode.
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input):
- Insert at the leftmost candidate, get rid of a use of trailingWhitespacePosition.
- Don't apply a style if its unnecessary.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): "pos" can be invalidated, don't use it.
- * editing/VisiblePosition.cpp:
- Renamed initDeepPosition and made it return the canonical position.
- (WebCore::VisiblePosition::init):
- (WebCore::VisiblePosition::canonicalPosition):
- * editing/VisiblePosition.h:
- (WebCore::VisiblePosition::characterBefore): Added.
- * editing/visible_units.cpp:
- (WebCore::startOfParagraph):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::selectionState): When a selection ends at a line wrap, it shouldn't extend
- onto the next line.
- 2006-06-21 David Hyatt <hyatt@apple.com>
- Reviewed and committed by Beth.
- Fix for <rdar://problem/4595337> Resizing a containing block
- strictly vertically does not cause contained height:100% element to
- also be resized.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlockChildren): Also layout if the
- child's min or max height is a percent.
- 2006-06-21 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=6058
- XMLTokenizer runs all <script> tags at once instead of as they're encountered
-
- * dom/xml_tokenizer.cpp:
- (WebCore::XMLTokenizer::XMLTokenizer):
- Initialize new members.
-
- (WebCore::XMLTokenizer::endElementNs):
- If we've encountered a script tag, execute the script here. If the script
- tag refers to an external resource, pause the parser while loading it.
-
- (WebCore::XMLTokenizer::end):
- Move code from finish() to here
-
- (WebCore::XMLTokenizer::finish):
- Only call end() if the parser isn't paused.
-
- (WebCore::XMLTokenizer::notifyFinished):
- Evaluate the script here and resume the parser.
-
- (WebCore::XMLTokenizer::resumeParsing):
- If finish() was called, call end() after writing all data.
- 2006-06-21 Steve Falkenburg <sfalken@apple.com>
- Fix build break
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::shouldInterruptJavaScript):
- 2006-06-21 Anders Carlsson <acarlsson@apple.com>
- Move FrameWin::shouldInterruptJavaScript to TemporaryLinkStubs.cpp
-
- * bridge/win/FrameWin.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::shouldInterruptJavaScript):
- 2006-06-21 Ben Goodger <bengoodger@gmail.com>
- Reviewed by Maciej.
- Fix for: http://bugs.webkit.org/show_bug.cgi?id=9523
- More Win32 build bustage.
-
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::shouldInterruptJavaScript):
- * bridge/win/FrameWin.h:
- 2006-06-20 Adele Peterson <adele@apple.com>
- Reviewed by Anders.
- Fix for: http://bugs.webkit.org/show_bug.cgi?id=8948
- Switch to use new text field implementation for <textarea>
- * css/html4.css:
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::selectionStart):
- (WebCore::HTMLTextAreaElement::selectionEnd):
- (WebCore::HTMLTextAreaElement::setSelectionStart):
- (WebCore::HTMLTextAreaElement::setSelectionEnd):
- (WebCore::HTMLTextAreaElement::select):
- (WebCore::HTMLTextAreaElement::setSelectionRange):
- (WebCore::HTMLTextAreaElement::createRenderer):
- (WebCore::HTMLTextAreaElement::appendFormData):
- (WebCore::HTMLTextAreaElement::isKeyboardFocusable):
- (WebCore::HTMLTextAreaElement::isMouseFocusable):
- (WebCore::HTMLTextAreaElement::focus):
- (WebCore::HTMLTextAreaElement::defaultEventHandler):
- (WebCore::HTMLTextAreaElement::updateValue):
- (WebCore::HTMLTextAreaElement::setValue):
- 2006-06-20 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej
- Fixed capitalization mistake that I made, someone else fixed, then I accidentally made it go back to the old way
- * icon/SQLStatement.cpp:
- 2006-06-20 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej.
- More changes/additions setting the stage for the major IconDatabase hookup.
- * WebCore.xcodeproj/project.pbxproj: Added SQLTransaction.cpp
- * bridge/mac/WebCoreIconDatabaseBridge.h: Added call-throughs and translations to pass WebKit DB to WebCore DB
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (+[WebCoreIconDatabaseBridge sharedBridgeInstance]):
- (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
- (-[WebCoreIconDatabaseBridge iconForURL:withSize:]):
- (-[WebCoreIconDatabaseBridge iconURLForURL:]):
- (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
- (-[WebCoreIconDatabaseBridge retainIconForURL:]):
- (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
- (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
- (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
- (-[WebCoreIconDatabaseBridge _setIconURL:forURL:]):
- (-[WebCoreIconDatabaseBridge _hasIconForIconURL:]):
- * bridge/mac/WebCorePageBridge.mm: Added WebCore's IconDatabase logging channel to the user-prefs check
- (initializeLoggingChannelsIfNecessary):
- * icon/IconDatabase.cpp: Added stubs and basic SQL usage to create the sqlite DB and respond to WebKit calls
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open):
- (WebCore::IconDatabase::close):
- (WebCore::IconDatabase::isValidDatabase):
- (WebCore::IconDatabase::recreateDatabase):
- (WebCore::IconDatabase::setPrivateBrowsingEnabled):
- (WebCore::IconDatabase::iconForURL):
- (WebCore::IconDatabase::iconURLForURL):
- (WebCore::IconDatabase::defaultIcon):
- (WebCore::IconDatabase::retainIconForURL):
- (WebCore::IconDatabase::releaseIconForURL):
- (WebCore::IconDatabase::setIconForIconURL):
- (WebCore::IconDatabase::setHaveNoIconForIconURL):
- (WebCore::IconDatabase::setIconURLForPageURL):
- (WebCore::IconDatabase::hasIconForIconURL):
- * icon/IconDatabase.h: WebIcon will be an internal class used in IconDatabase but is not complete yet
- (WebCore::WebIcon::getExpiration):
- (WebCore::WebIcon::getTouch):
- * icon/SQLDatabase.cpp: Added more SQLite convenience methods
- (SQLDatabase::setFullsync):
- (SQLDatabase::setBusyTimeout):
- (SQLDatabase::setBusyHandler):
- * icon/SQLDatabase.h:
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::returnsAtLeastOneResult):
- * icon/SQLTransaction.cpp: Added basic commit/rollback support with this simple class
- (SQLTransaction::SQLTransaction):
- (SQLTransaction::~SQLTransaction):
- (SQLTransaction::begin):
- (SQLTransaction::commit):
- (SQLTransaction::rollback):
- 2006-06-20 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Fixes for:
- http://bugs.webkit.org/show_bug.cgi?id=8724
- REGRESSION: onSelect handler doesn't work for text fields
- http://bugs.webkit.org/show_bug.cgi?id=7676
- REGRESSION: Selection methods on new text fields don't work if text field is hidden
- http://bugs.webkit.org/show_bug.cgi?id=8867
- REGRESSION: selectionStart/End return 0 for input element once it no longer has focus
- Implemented onSelect for new text fields and textareas. Also fixed selection restore
- behavior to better match other browsers and Safari 2.0 behavior.
- Tests:
- * fast/forms/input-selection-restore.html
- * fast/forms/input-selection-hidden.html
- * fast/forms/onselect-textarea.html
- * fast/forms/onselect-textfield.html
- * html/HTMLInputElement.h: (WebCore::HTMLInputElement::cacheSelection): Added.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::init): Initializes cached selection.
- (WebCore::HTMLInputElement::selectionStart): If this element doesn't have focus, return the cached selection value.
- (WebCore::HTMLInputElement::selectionEnd): ditto.
- (WebCore::HTMLInputElement::setValue): Restore a caret at the starting point of the old selection. Matches Safari 2.0 behavior.
- * html/HTMLTextAreaElement.h: (WebCore::HTMLTextAreaElement::cacheSelection): Added.
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Initializes cached selection.
- (WebCore::HTMLTextAreaElement::selectionStart): If this element doesn't have focus, return the cached selection value.
- (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
- (WebCore::HTMLTextAreaElement::focus): If this is the first focus, set a caret at the end of the text. Otherwise,
- restore the cached selection. This matches other browsers' behavior.
- (WebCore::HTMLTextAreaElement::setValue): Restore a caret at the starting point of the old selection. Matches Safari 2.0 behavior.
- * page/Frame.h: Added notifyRendererOfSelectionChange method.
- * page/Frame.cpp:
- (WebCore::Frame::notifyRendererOfSelectionChange): Added. Calls selectionChanged for text fields and textareas. Forwards a userTriggered
- argument so selectionChanged knows whether or not to fire onSelect.
- (WebCore::Frame::setSelection): Calls notifyRendererOfSelectionChange(false). This gets called for all selection changes, so the renderer
- can always update its cached selection values.
- (WebCore::Frame::handleMouseReleaseEvent): Calls notifyRendererOfSelectionChange(true) so onSelect will get fired when the user is done
- making a selection with the mouse.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]): Calls notifyRendererOfSelectionChange(true) so onSelect gets
- fired when the user makes a selection with the keyboard.
- (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]): ditto.
- * rendering/RenderTextField.h: Add userTriggered parameter to selectionChanged.
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::setSelectionRange): For visibility:hidden, cache the selection and
- return early since we won't be able to actually set the selection.
- (WebCore::RenderTextField::selectionChanged): Caches the selection.
- If the selection is a range, and its triggered by user action, then fire the onSelect event.
- 2006-06-21 Anders Carlsson <acarlsson@apple.com>
- * bridge/win/FrameWin.cpp:
- (WebCore::shouldInterruptJavaScript):
- * bridge/win/FrameWin.h:
- Try fixing the Windows build.
- 2006-06-20 Adele Peterson <adele@apple.com>
- RS by Tim Hatcher.
- Renamed RenderSelect to DeprecatedRenderSelect to prepare for new popup menu and list menu implementations.
-
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLOptionElement.h:
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::recalcStyle):
- (WebCore::HTMLSelectElement::createRenderer):
- (WebCore::HTMLSelectElement::setRecalcListItems):
- (WebCore::HTMLSelectElement::reset):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- * html/HTMLSelectElement.h:
- * rendering/DeprecatedRenderSelect.cpp: Added.
- (WebCore::DeprecatedRenderSelect::DeprecatedRenderSelect):
- (WebCore::DeprecatedRenderSelect::setWidgetWritingDirection):
- (WebCore::DeprecatedRenderSelect::setStyle):
- (WebCore::DeprecatedRenderSelect::updateFromElement):
- (WebCore::DeprecatedRenderSelect::baselinePosition):
- (WebCore::DeprecatedRenderSelect::calcMinMaxWidth):
- (WebCore::DeprecatedRenderSelect::layout):
- (WebCore::DeprecatedRenderSelect::valueChanged):
- (WebCore::DeprecatedRenderSelect::selectionChanged):
- (WebCore::DeprecatedRenderSelect::setOptionsChanged):
- (WebCore::DeprecatedRenderSelect::createListBox):
- (WebCore::DeprecatedRenderSelect::updateSelection):
- * rendering/DeprecatedRenderSelect.h: Added.
- (WebCore::DeprecatedRenderSelect::renderName):
- * rendering/RenderSelect.cpp: Removed.
- * rendering/RenderSelect.h: Removed.
- 2006-06-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9509
- Would like a way to pause/resume XML parsing
- * dom/xml_tokenizer.cpp:
- (WebCore::PendingCallbacks::PendingCallbacks):
- (WebCore::PendingCallbacks::appendStartElementNSCallback):
- (WebCore::PendingCallbacks::appendEndElementNSCallback):
- (WebCore::PendingCallbacks::appendCharactersCallback):
- (WebCore::PendingCallbacks::appendProcessingInstructionCallback):
- (WebCore::PendingCallbacks::appendCDATABlockCallback):
- (WebCore::PendingCallbacks::appendCommentCallback):
- (WebCore::PendingCallbacks::appendInternalSubsetCallback):
- (WebCore::PendingCallbacks::appendErrorCallback):
- (WebCore::PendingCallbacks::callAndRemoveFirstCallback):
- (WebCore::PendingCallbacks::isEmpty):
- (WebCore::PendingCallbacks::PendingCallback::~PendingCallback):
- (WebCore::PendingCallbacks::PendingStartElementNSCallback::~PendingStartElementNSCallback):
- (WebCore::PendingCallbacks::PendingStartElementNSCallback::call):
- (WebCore::PendingCallbacks::PendingEndElementNSCallback::call):
- (WebCore::PendingCallbacks::PendingCharactersCallback::~PendingCharactersCallback):
- (WebCore::PendingCallbacks::PendingCharactersCallback::call):
- (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::~PendingProcessingInstructionCallback):
- (WebCore::PendingCallbacks::PendingProcessingInstructionCallback::call):
- (WebCore::PendingCallbacks::PendingCDATABlockCallback::~PendingCDATABlockCallback):
- (WebCore::PendingCallbacks::PendingCDATABlockCallback::call):
- (WebCore::PendingCallbacks::PendingCommentCallback::~PendingCommentCallback):
- (WebCore::PendingCallbacks::PendingCommentCallback::call):
- (WebCore::PendingCallbacks::PendingInternalSubsetCallback::~PendingInternalSubsetCallback):
- (WebCore::PendingCallbacks::PendingInternalSubsetCallback::call):
- (WebCore::PendingCallbacks::):
- New classes which manage a list of pending SAX callbacks that have not yet
- been sent to the tokenizer.
-
- (WebCore::XMLTokenizer::XMLTokenizer):
- Initialize new member variables.
-
- (WebCore::XMLTokenizer::~XMLTokenizer):
- Delete PendingCallbacks object.
-
- (WebCore::XMLTokenizer::write):
- If the parser is paused, queue the data to be written.
-
- (WebCore::XMLTokenizer::startElementNs):
- (WebCore::XMLTokenizer::endElementNs):
- (WebCore::XMLTokenizer::characters):
- (WebCore::XMLTokenizer::error):
- (WebCore::XMLTokenizer::processingInstruction):
- (WebCore::XMLTokenizer::cdataBlock):
- (WebCore::XMLTokenizer::comment):
- (WebCore::XMLTokenizer::internalSubset):
- If the parser has been paused, queue the callbacks instead.
- (WebCore::XMLTokenizer::handleError):
- New function, called by both ::error and :PendingCallbacks::callAndRemoveFirstCallback
-
- (WebCore::XMLTokenizer::finish):
- (WebCore::XMLTokenizer::pauseParsing):
- Set m_parserPaused to true.
-
- (WebCore::XMLTokenizer::resumeParsing):
- Call the pending callbacks and then parse the pending source.
-
- 2006-06-20 David Hyatt <hyatt@apple.com>
- Don't send the custom highlighter callback when painting is disabled.
- Reviewed by harrison
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- 2006-06-20 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John
- <rdar://problem/4592244> REGRESSION (417.9.3 - 420+): (some?) plain text files have all lines concatenated into one line
-
- * loader/TextDocument.cpp:
- (WebCore::TextTokenizer::checkBuffer):
- (WebCore::TextTokenizer::TextTokenizer):
- (WebCore::TextTokenizer::write):
- (WebCore::TextTokenizer::finish):
- Add a text buffer which is used for translation of CR and CRLF to plain LF,
- like the HTML tokenizer does.
- 2006-06-20 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Eric.
- - fix crasher on one of the layout tests caused by my recent checkin
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint):
- 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=5499
- Page reload does not send any cache control headers
- Test: http/tests/misc/refresh-headers.php
- * bindings/js/kjs_window.cpp:
- (KJS::LocationFunc::callAsFunction): Call scheduleRefresh() for Location::Reload.
- * page/Frame.h: Add scheduleRefresh(). Don't derive from TransferJob or implement its methods - that was
- used only for storing response HTTP headers, which was an overkill.
- * page/FramePrivate.h: Replace TransferJob with a HashMap for storing response headers.
- * page/Frame.cpp:
- (WebCore::Frame::didOpenURL): Don't needlessly change d->m_cachePolicy. Don't create a TransferJob.
- (WebCore::Frame::stopLoading): Directly access the metadata map, instead of going through a TransferJob.
- (WebCore::Frame::receivedFirstData): Ditto.
- (WebCore::Frame::addMetaData): Ditto.
- (WebCore::Frame::scheduleRefresh): A new function that schedules a refresh, similarly to what
- scheduleRedirection() does.
- (WebCore::Frame::changeLocation): Set request.reload attribute based on the current cache policy.
- 2006-06-19 Ben Goodger <bengoodger@gmail.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9501
- Windows build fails with link error CharsetTable not defined
- * platform/make-charset-table.pl:
- (process_iana_charsets): Move test for equality to alias "None" until after
- normalization steps to ensure escape characters in the input data don't
- interfere with processing. Convert nearby tabs to 4 spaces in this function.
- 2006-06-18 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
- - fixed http://bugs.webkit.org/show_bug.cgi?id=9488
- "Animated GIFs do not respect transforms in SVG"
-
- http://bugs.webkit.org/show_bug.cgi?id=6946
- "SVG shows invalidation issues in WebKit"
-
- http://www.treebuilder.de/default.asp?file=441875.xml
- "Invalidation issues with "SVG 3d" demo"
-
- http://code.google.com/webstats/2005-12/pages.html
- "SVG text doesn't repaint correctly"
- * kcanvas/KCanvasContainer.cpp:
- (WebCore::KCanvasContainer::computeAbsoluteRepaintRect): Override base class, and apply
- appropriate transforms, so damage rects in transformed SVG content get propagated up properly.
- (WebCore::KCanvasContainer::getAbsoluteRepaintRect): note a FIXME; this method
- seems wrong.
- * kcanvas/KCanvasContainer.h: Prototype new method.
- * css/svg.css: Don't apply overflow:hidden to foreignObject, since that makes it a RenderLayer
- so it paints twice.
- * kcanvas/RenderForeignObject.cpp:
- (WebCore::RenderForeignObject::paint): Transform the damage rect before passing it down to HTML content,
- so everything paints that is supposed to. Also handle opacity here since we won't get layers.
- (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
- appropriate transforms, so damage rects in HTML embedded in SVG get propagated up properly.
- (WebCore::RenderForeignObject::requiresLayer): Never use a RenderLayer.
- (WebCore::RenderForeignObject::layout): Make sure to dirty our previous bounds when layout
- changes, as by transform.
- * kcanvas/RenderForeignObject.h:
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::paint): Transform the damage rect when painting. Also handle opacity
- here since we won't get layers.
- (WebCore::RenderForeignObject::computeAbsoluteRepaintRect): Override base class, and apply
- appropriate transforms, so damage rects in SVG images get propagated up properly.
- (WebCore::RenderSVGImage::translationForAttributes): New helper method, factored out of below.
- (WebCore::RenderSVGImage::translateForAttributes): Use above.
- (WebCore::RenderSVGImage::requiresLayer): Never use a RenderLayer.
- (WebCore::RenderSVGImage::layout): Make sure to properly dirty the old bounds, accounting
- for transforms.
- (WebCore::RenderSVGImage::relativeBBox): Correct bbox computation.
- * kcanvas/RenderSVGImage.h:
- * kcanvas/RenderSVGText.cpp:
- (WebCore::RenderSVGText::paint): Transform incoming damage rect. Handle opacity here since we
- won't get a layer.
- (WebCore::RenderSVGText::computeAbsoluteRepaintRect): Apply transforms.
- (WebCore::RenderSVGText::requiresLayer): Never use a RenderLayer.
- (WebCore::RenderSVGText::layout): Make sure to dirty the old bounds.
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::roundToDevicePixels): Instead of transforming rect to device space
- and back to user space, do this for the origin and lower right corner of the rect. Otherwise the
- rect will get inflated if user space is rotated or skewed.
- * kcanvas/RenderPath.cpp:
- (WebCore::RenderPath::layout): Make sure to dirty the old bounds.
- (WebCore::RenderPath::paint): Hhandle opacity here.
-
- Bonus fix:
-
- * kcanvas/RenderSVGImage.cpp:
- (WebCore::RenderSVGImage::nodeAtPoint): Fix hit testing. Wasn't applying the x/y
- attribute transform.
- 2006-06-19 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9500
- Split dom2_eventsimpl.* into separate files (one class per file).
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_binding.cpp:
- * bindings/js/kjs_dom.cpp:
- * bindings/js/kjs_events.cpp:
- * bindings/js/kjs_html.cpp:
- * bindings/js/kjs_window.cpp:
- * bindings/objc/DOM.mm:
- * bindings/objc/DOMEvents.mm:
- * bindings/objc/DOMInternal.mm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bridge/mac/FrameMac.mm:
- * dom/BeforeTextInsertedEvent.h:
- * dom/BeforeUnloadEvent.cpp: Added.
- * dom/BeforeUnloadEvent.h: Added.
- (WebCore::BeforeUnloadEvent::result):
- * dom/CharacterData.cpp:
- * dom/Clipboard.h: Added.
- (WebCore::Clipboard::~Clipboard):
- * dom/ClipboardEvent.cpp: Added.
- (WebCore::ClipboardEvent::ClipboardEvent):
- * dom/ClipboardEvent.h: Added.
- (WebCore::ClipboardEvent::clipboard):
- * dom/ContainerNode.cpp:
- * dom/Document.cpp:
- * dom/Event.cpp: Added.
- (WebCore::Event::Event):
- (WebCore::Event::initEvent):
- * dom/Event.h: Added.
- (WebCore::):
- (WebCore::Event::):
- (WebCore::Event::type):
- (WebCore::Event::target):
- (WebCore::Event::currentTarget):
- (WebCore::Event::setCurrentTarget):
- (WebCore::Event::eventPhase):
- (WebCore::Event::setEventPhase):
- (WebCore::Event::bubbles):
- (WebCore::Event::cancelable):
- (WebCore::Event::timeStamp):
- (WebCore::Event::stopPropagation):
- (WebCore::Event::propagationStopped):
- (WebCore::Event::defaultPrevented):
- (WebCore::Event::setDefaultHandled):
- (WebCore::Event::defaultHandled):
- (WebCore::Event::preventDefault):
- (WebCore::Event::setDefaultPrevented):
- (WebCore::Event::setCancelBubble):
- (WebCore::Event::getCancelBubble):
- (WebCore::Event::dispatched):
- * dom/EventTargetNode.cpp:
- * dom/KeyboardEvent.cpp: Added.
- (WebCore::KeyboardEvent::KeyboardEvent):
- (WebCore::KeyboardEvent::initKeyboardEvent):
- * dom/KeyboardEvent.h: Added.
- (WebCore::KeyboardEvent::):
- (WebCore::KeyboardEvent::keyIdentifier):
- (WebCore::KeyboardEvent::keyLocation):
- (WebCore::KeyboardEvent::altGraphKey):
- (WebCore::KeyboardEvent::keyEvent):
- * dom/MouseEvent.cpp: Added.
- (WebCore::MouseEvent::MouseEvent):
- (WebCore::MouseEvent::initMouseEvent):
- (WebCore::MouseEvent::isDragEvent):
- (WebCore::MouseEvent::toElement):
- (WebCore::MouseEvent::fromElement):
- * dom/MouseEvent.h: Added.
- (WebCore::MouseEvent::button):
- (WebCore::MouseEvent::relatedTarget):
- (WebCore::MouseEvent::clipboard):
- * dom/MouseRelatedEvent.cpp: Added.
- (WebCore::MouseRelatedEvent::MouseRelatedEvent):
- * dom/MouseRelatedEvent.h: Added.
- (WebCore::MouseRelatedEvent::screenX):
- (WebCore::MouseRelatedEvent::screenY):
- (WebCore::MouseRelatedEvent::clientX):
- (WebCore::MouseRelatedEvent::clientY):
- (WebCore::MouseRelatedEvent::layerX):
- (WebCore::MouseRelatedEvent::layerY):
- (WebCore::MouseRelatedEvent::offsetX):
- (WebCore::MouseRelatedEvent::offsetY):
- (WebCore::MouseRelatedEvent::isSimulated):
- * dom/MutationEvent.cpp: Added.
- (WebCore::MutationEvent::MutationEvent):
- (WebCore::MutationEvent::initMutationEvent):
- * dom/MutationEvent.h: Added.
- (WebCore::MutationEvent::):
- (WebCore::MutationEvent::relatedNode):
- (WebCore::MutationEvent::prevValue):
- (WebCore::MutationEvent::newValue):
- (WebCore::MutationEvent::attrName):
- (WebCore::MutationEvent::attrChange):
- * dom/RegisteredEventListener.cpp: Added.
- (WebCore::RegisteredEventListener::RegisteredEventListener):
- (WebCore::operator==):
- * dom/RegisteredEventListener.h: Added.
- (WebCore::RegisteredEventListener::eventType):
- (WebCore::RegisteredEventListener::listener):
- (WebCore::RegisteredEventListener::useCapture):
- (WebCore::RegisteredEventListener::removed):
- (WebCore::RegisteredEventListener::setRemoved):
- (WebCore::operator!=):
- * dom/UIEvent.cpp: Added.
- (WebCore::UIEvent::UIEvent):
- (WebCore::UIEvent::initUIEvent):
- * dom/UIEvent.h: Added.
- (WebCore::UIEvent::view):
- (WebCore::UIEvent::detail):
- * dom/UIEventWithKeyState.h: Added.
- (WebCore::UIEventWithKeyState::UIEventWithKeyState):
- (WebCore::UIEventWithKeyState::ctrlKey):
- (WebCore::UIEventWithKeyState::shiftKey):
- (WebCore::UIEventWithKeyState::altKey):
- (WebCore::UIEventWithKeyState::metaKey):
- * dom/WheelEvent.cpp: Added.
- (WebCore::WheelEvent::WheelEvent):
- * dom/WheelEvent.h: Added.
- (WebCore::WheelEvent::isHorizontal):
- (WebCore::WheelEvent::wheelDelta):
- * dom/dom2_eventsimpl.cpp: Removed.
- * dom/dom2_eventsimpl.h: Removed.
- * editing/EditCommand.cpp:
- * editing/SelectionController.cpp:
- * html/HTMLAnchorElement.cpp:
- * html/HTMLButtonElement.cpp:
- * html/HTMLDocument.cpp:
- * html/HTMLElement.cpp:
- * html/HTMLFrameSetElement.cpp:
- * html/HTMLInputElement.cpp:
- * html/HTMLSelectElement.cpp:
- * html/HTMLTextAreaElement.cpp:
- * ksvg2/events/SVGZoomEvent.h:
- * ksvg2/svg/SVGAElement.cpp:
- * page/Frame.cpp:
- * page/FrameView.cpp:
- * platform/PlatformKeyboardEvent.h:
- * platform/PlatformMouseEvent.h:
- (WebCore::PlatformMouseEvent::PlatformMouseEvent):
- * platform/PlatformWheelEvent.h:
- * platform/mac/ClipboardMac.h:
- * rendering/RenderFrameSet.cpp:
- * rendering/RenderLayer.cpp:
- * rendering/RenderObject.cpp:
- * rendering/RenderTextField.cpp:
- * xml/xmlhttprequest.cpp:
- 2006-06-19 Darin Adler <darin@apple.com>
- Reviewed by Brady.
- - removed a few empty/unused files Brady found by tracking down the nm error message
- * editing/VisibleRange.cpp: Removed.
- * editing/VisibleRange.h: Removed.
- * kcanvas/KCanvasImage.cpp: Removed.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Removed VisibleRange.cpp/h.
- * WebCore.xcodeproj/project.pbxproj: Removed VisibleRange.cpp/h and KCanvasImage.cpp.
- * WebCoreSources.bkl: Removed VisibleRange.cpp.
- 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9492
- Fix or remove window.debug.
- It was only available in newly created windows, and became undefined after changing the URL
- or reloading. Let's try removing it; hopefully, no-one will notice.
- * bindings/js/kjs_proxy.cpp:
- (WebCore::KJSProxy::initScriptIfNeeded): Don't add window.debug.
- 2006-06-19 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=8972
- REGRESSION: invalid UTF-8 sequences are not displayed
- Test: LayoutTests/fast/encoding/invalid-UTF-8.html
- * dom/xml_tokenizer.cpp:
- (WebCore::getXHTMLEntity): Properly null-terminate the result. This didn't matter
- before, because the garbage at the end was guaranteed to be invalid UTF-8, and was
- omitted in appendOmittingUnwanted();
- * platform/StreamingTextDecoder.cpp:
- (WebCore::StreamingTextDecoder::appendOmittingBOM): Only omit BOM characters.
- Renamed back from appendOmittingUnwanted();
- (WebCore::StreamingTextDecoder::convertUsingICU):
- * platform/StreamingTextDecoder.h:
- Update for the above function renaming.
- 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by darin.
- http://bugs.webkit.org/show_bug.cgi?id=9498
- Remove dead code left in JSHTMLDocument::getOwnPropertySlot() from r14298 (Bug 7838)
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::getOwnPropertySlot): Remove dead code.
- 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by ggaren.
- * manual-tests/redraw-page-cache-visited-links.html: Changed to use DOM mouse event.
- 2006-06-18 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by ggaren.
- - Update a manual test for http://bugs.webkit.org/show_bug.cgi?id=9150
- DumpRenderTree should be able to keep URL history during runs
- * manual-tests/redraw-page-cache-visited-links.html: Added note about window.history hack.
- Fixed coordinates for mouse events. Added call to keepWebHistory().
- * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added note about
- window.history hack.
- 2006-06-17 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- * bindings/js/kjs_binding.cpp:
- (KJS::ScriptInterpreter::ScriptInterpreter):
- Set the default script timeout.
-
- (KJS::ScriptInterpreter::shouldInterruptScript):
- New function which asks the frame if the script should be interrupted.
-
- * bindings/js/kjs_binding.h:
-
- * bindings/js/kjs_events.cpp:
- (KJS::JSAbstractEventListener::handleEvent):
- * bindings/js/kjs_proxy.cpp:
- (WebCore::KJSProxy::evaluate):
- Add calls to startTimeoutCheck/stopTimeoutCheck
-
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction):
- Add calls to pauseTimeoutCheck/unpauseTimeoutCheck
-
- (KJS::ScheduledAction::execute):
- Add calls to startTimeoutCheck/stopTimeoutCheck
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::shouldInterruptJavaScript):
- New function which asks the bridge if the script should be interrupted.
-
- * bridge/mac/WebCoreFrameBridge.h:
- * page/Frame.h:
- Add function declarations.
-
- 2006-06-17 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by ggaren.
- - http://bugs.webkit.org/show_bug.cgi?id=8131
- Some properties and methods of window and document objects cannot be converted to a string
- Most of the properties were already fixed, this just adds adds a prototype to window.debug.
- Test: fast/dom/everything-to-string.html
- * bindings/js/kjs_proxy.cpp:
- (WebCore::TestFunctionImp::TestFunctionImp):
- (WebCore::KJSProxy::initScriptIfNeeded):
- 2006-06-17 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Maciej.
- - Fix capitalization issue for case-sensitive filesystems.
- * icon/SQLStatement.cpp: Change assertions.h to Assertions.h.
- 2006-06-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=7395
- Table not properly re-flowed when floated div removed from layout
- Test: fast/block/float/table-relayout.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::markAllDescendantsWithFloatsForLayout): Added marking
- of children that use lineWidth.
- * rendering/RenderBlock.h: Added a FIXME.
- 2006-06-17 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=6282:
- Adding new Option with new Option(text, value, defaultSelected, selected) fails to update selectedIndex
- Update selectedIndex when a new option is added using javascript.
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLSelectCollection::put):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::setSelectedIndex):
- (WebCore::HTMLSelectElement::setOption):
- (WebCore::HTMLSelectElement::setLength):
- * html/HTMLSelectElement.h:
- 2006-06-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - test for http://bugs.webkit.org/show_bug.cgi?id=9466
- Assertion failure when dragging an image from the document into Safari's address bar
- * manual-tests/reset-initiatedDrag.html: Added.
- 2006-06-16 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by darin.
- http://bugs.webkit.org/show_bug.cgi?id=9463
- REGRESSION (r14879): Assertion failure in CSSParser::sinkFloatingSelector()
- (m_floatingSelectors.contains(selector)) in some CSS tests
- * css/CSSGrammar.y: Create CSSSelector for FUNCTION using CSSParser::createFloatingSelector()
- instead of the bare constructor.
- 2006-06-16 David Harrison <harrison@apple.com>
- Reviewed by Hatcher.
- <rdar://problem/4565312> Mail has a weird drawing artifact with dotted red lines running across the window
- Problem was that revision lost a check to not draw the markers
- when paintingDisabled(). This led the markers to be drawn when
- the window deactivated, at which time the view happens to be flipped.
- It is similar but not the same as the Mail ToDo highlighting
- issue, which is due to the custom highlight method
- drawing when the focusView is nil. Mail team knows this
- and has tested the fix.
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawLineForMisspelling):
- Early return if paintingDisabled().
- 2006-06-16 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Adjust padding of inner div so text lines up with text fields.
- Adjust height of textarea so it only leaves room for the horizontal
- scrollbar if overflow is set to scroll, or if overflow is set to
- auto and there's no word wrap.
- These changes will be tested by current layout tests when the
- new textarea implementation takes effect.
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::createDivStyle):
- (WebCore::RenderTextField::calcHeight):
- 2006-06-16 John Sullivan <sullivan@apple.com>
- Reviewed by Darin
-
- - fixed <rdar://problem/4590062> crash in marker code with particular set of steps on daringfireball.net
- * dom/Document.cpp:
- (WebCore::Document::addMarker):
- Store [it - markers.begin()] in a local variable before modifying markers, since modifying markers can
- change value of [it - markers.begin()].
- 2006-06-16 Adele Peterson <adele@apple.com>
- Reviewed by Alice.
- Added code to draw Cocoa-like border for textareas instead of just using CSS.
- * WebCore.exp:
- * css/html4.css: Sets a 1px solid border.
- * platform/mac/WebCoreSystemInterface.h:
- * platform/mac/WebCoreSystemInterface.mm:
- * rendering/RenderThemeMac.h: Formatting changes.
- * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintTextArea):
- Uses new wkDrawBezeledTextArea to draw border.
- 2006-06-16 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9432
- REGRESSION: crash in capitalization code due to empty-string generated content
- Test: fast/text/capitalize-empty-generated-string.html
- * rendering/RenderText.cpp:
- (WebCore::RenderText::setText): Skip empty-string text renderers when
- looking for the previous character.
- 2006-06-15 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- <http://bugs.webkit.org/show_bug.cgi?id=8637>
- REGRESSION (11-16-05): Selection gaps left behind after delete
- * editing/SelectionController.cpp:
- (WebCore::SelectionController::nodeWillBeRemoved): Invalidate the selection so that
- selection gaps are invalidated.
- 2006-06-15 Timothy Hatcher <timothy@apple.com>
- Reviewed by Geoff and Darin.
-
- Prefer the DWARF debugging symbols format for use in Xcode 2.3.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-06-15 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- * editing/CompositeEditCommand.cpp:
- (WebCore::hasARenderedDescendant):
- (WebCore::CompositeEditCommand::prune): Ascend using the DOM
- (WebCore::CompositeEditCommand::moveParagraphs): Placeholder insertion
- during deletion is fixed, removing the fall back.
- 2006-06-15 Nicholas Shanks <contact@nickshanks.com>
- Reviewed by Hyatt, landed by Joost de Valk.
- Fix http://bugs.webkit.org/show_bug.cgi?id=3233
- Add support for the :lang pseudo-class.
- * css/CSSGrammar.y:
- * css/CSSSelector.cpp:
- (WebCore::CSSSelector::operator == ):
- * css/CSSSelector.h:
- (WebCore::CSSSelector::CSSSelector):
- * css/cssparser.cpp:
- (WebCore::CSSParser::lex):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::checkOneSelector):
- * css/tokenizer.flex:
- 2006-06-15 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <http://bugs.webkit.org/show_bug.cgi?id=9456>
- REGRESSION (417.9.2-420+): Cmd-G doesn't work in Safari after double-click and Cmd-E
-
- * page/Frame.cpp:
- (WebCore::Frame::findString): When comparing the found range with
- what's currently selected a) build a selection with the found
- range to remove collapsed whitespace and b) compare ranges
- instead of selection objects to ignore the way that the
- current selection was made (to ignore the base and extent).
- 2006-06-15 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by mjs.
- http://bugs.webkit.org/show_bug.cgi?id=9382
- IDL files missing copyright/license headers
- Add Apple BSD license and copyright to IDL files.
- * ksvg2/bindings/idl/svg/GetSVGDocument.idl:
- * ksvg2/bindings/idl/svg/SVGAElement.idl:
- * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl:
- * ksvg2/bindings/idl/svg/SVGAnimateElement.idl:
- * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedString.idl:
- * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl:
- * ksvg2/bindings/idl/svg/SVGAnimationElement.idl:
- * ksvg2/bindings/idl/svg/SVGCircleElement.idl:
- * ksvg2/bindings/idl/svg/SVGClipPathElement.idl:
- * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl:
- * ksvg2/bindings/idl/svg/SVGCursorElement.idl:
- * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl:
- * ksvg2/bindings/idl/svg/SVGDefsElement.idl:
- * ksvg2/bindings/idl/svg/SVGDescElement.idl:
- * ksvg2/bindings/idl/svg/SVGElementInstance.idl:
- * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl:
- * ksvg2/bindings/idl/svg/SVGEllipseElement.idl:
- * ksvg2/bindings/idl/svg/SVGEvent.idl:
- * ksvg2/bindings/idl/svg/SVGException.idl:
- * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl:
- * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl:
- * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEImageElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl:
- * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl:
- * ksvg2/bindings/idl/svg/SVGFETileElement.idl:
- * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl:
- * ksvg2/bindings/idl/svg/SVGFilterElement.idl:
- * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl:
- * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl:
- * ksvg2/bindings/idl/svg/SVGGElement.idl:
- * ksvg2/bindings/idl/svg/SVGGradientElement.idl:
- * ksvg2/bindings/idl/svg/SVGICCColor.idl:
- * ksvg2/bindings/idl/svg/SVGImageElement.idl:
- * ksvg2/bindings/idl/svg/SVGLangSpace.idl:
- * ksvg2/bindings/idl/svg/SVGLengthList.idl:
- * ksvg2/bindings/idl/svg/SVGLineElement.idl:
- * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl:
- * ksvg2/bindings/idl/svg/SVGLocatable.idl:
- * ksvg2/bindings/idl/svg/SVGMarkerElement.idl:
- * ksvg2/bindings/idl/svg/SVGNumberList.idl:
- * ksvg2/bindings/idl/svg/SVGPaint.idl:
- * ksvg2/bindings/idl/svg/SVGPathElement.idl:
- * ksvg2/bindings/idl/svg/SVGPathSeg.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegArc.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegList.idl:
- * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl:
- * ksvg2/bindings/idl/svg/SVGPatternElement.idl:
- * ksvg2/bindings/idl/svg/SVGPointList.idl:
- * ksvg2/bindings/idl/svg/SVGPolygonElement.idl:
- * ksvg2/bindings/idl/svg/SVGPolylineElement.idl:
- * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl:
- * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl:
- * ksvg2/bindings/idl/svg/SVGRectElement.idl:
- * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl:
- * ksvg2/bindings/idl/svg/SVGScriptElement.idl:
- * ksvg2/bindings/idl/svg/SVGSetElement.idl:
- * ksvg2/bindings/idl/svg/SVGStopElement.idl:
- * ksvg2/bindings/idl/svg/SVGStringList.idl:
- * ksvg2/bindings/idl/svg/SVGStylable.idl:
- * ksvg2/bindings/idl/svg/SVGStyleElement.idl:
- * ksvg2/bindings/idl/svg/SVGSwitchElement.idl:
- * ksvg2/bindings/idl/svg/SVGSymbolElement.idl:
- * ksvg2/bindings/idl/svg/SVGTSpanElement.idl:
- * ksvg2/bindings/idl/svg/SVGTests.idl:
- * ksvg2/bindings/idl/svg/SVGTextContentElement.idl:
- * ksvg2/bindings/idl/svg/SVGTextElement.idl:
- * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl:
- * ksvg2/bindings/idl/svg/SVGTitleElement.idl:
- * ksvg2/bindings/idl/svg/SVGTransformList.idl:
- * ksvg2/bindings/idl/svg/SVGTransformable.idl:
- * ksvg2/bindings/idl/svg/SVGURIReference.idl:
- * ksvg2/bindings/idl/svg/SVGUnitTypes.idl:
- * ksvg2/bindings/idl/svg/SVGUseElement.idl:
- * ksvg2/bindings/idl/svg/SVGViewElement.idl:
- * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl:
- * ksvg2/bindings/idl/svg/SVGZoomEvent.idl:
- * ksvg2/svg/SVGAnimatedLength.idl:
- 2006-06-14 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- <rdar://problem/4439248>
- REGRESSION(412-417): [RTL] Serious problem with RTL signatures in Mail.app in 10.4.4 (7766)
- * editing/markup.cpp:
- (WebCore::renderedText): Use plainText so that we'll pull rendered text but in DOM order.
- 2006-06-14 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
- <http://bugs.webkit.org/show_bug.cgi?id=7580>
- TinyMCE: Implement execCommand(formatBlock, ...)
- * WebCore.xcodeproj/project.pbxproj: Added FormatBlock.{h,cpp} to the project.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
- * bridge/mac/WebCoreFrameBridge.h: Added WebUndoActions
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::moveParagraph): Added a preserveStyle bool.
- (WebCore::CompositeEditCommand::moveParagraphs): Ditto. downstream() the start
- or else we'll move collapsed whitespace and uncollapse it.
- * editing/CompositeEditCommand.h:
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializePositionData):
- (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Don't update m_endingPosition
- because that's removeNode's responsibility.
- (WebCore::updatePositionForNodeRemoval): Added.
- (WebCore::DeleteSelectionCommand::removeNode): Turned removeFullySelectedNode into a virtual
- overload of removeNode so that we can update positions as we remove nodes.
- (WebCore::updatePositionForTextRemoval): Added.
- (WebCore::DeleteSelectionCommand::deleteTextFromNode):
- (WebCore::DeleteSelectionCommand::handleGeneralDelete):
- (WebCore::DeleteSelectionCommand::fixupWhitespace): Got rid of m_trailingWhitespaceValid
- since m_trailingWhitespace is always valid (we update it as we remove nodes).
- (WebCore::DeleteSelectionCommand::mergeParagraphs):
- (WebCore::DeleteSelectionCommand::doApply): Leading and trailing spaces should
- be fixed if they have collapsed before merging paragraphs.
- * editing/DeleteSelectionCommand.h:
- * editing/EditAction.h:
- (WebCore::):
- * editing/FormatBlockCommand.cpp: Added.
- (WebCore::FormatBlockCommand::FormatBlockCommand):
- (WebCore::FormatBlockCommand::modifyRange): Similar to InsertListCommand::modifyRange().
- (WebCore::FormatBlockCommand::doApply):
- * editing/FormatBlockCommand.h: Added.
- (WebCore::FormatBlockCommand::editingAction):
- * editing/InsertListCommand.h:
- (WebCore::InsertListCommand::editingAction):
- * editing/JSEditor.cpp:
- * editing/MergeIdenticalElementsCommand.cpp:
- (WebCore::MergeIdenticalElementsCommand::doApply):
- * editing/htmlediting.cpp:
- (WebCore::validBlockTag):
- (WebCore::createElement):
- * editing/htmlediting.h:
- 2006-06-14 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Anders.
- - fixed <rdar://problem/4586051> 10.4.7 regression: 'Saved and recent' button on mapquest.com does not work
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchWindowEvent):
- 2006-06-14 David Hyatt <hyatt@apple.com>
- Rename RenderSlider to DeprecatedSlider, so that I can start work on
- the new NSView-less slider.
- Reviewed by john
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::createRenderer):
- * rendering/DeprecatedSlider.cpp: Added.
- (WebCore::DeprecatedSlider::DeprecatedSlider):
- (WebCore::DeprecatedSlider::calcMinMaxWidth):
- (WebCore::DeprecatedSlider::updateFromElement):
- (WebCore::DeprecatedSlider::valueChanged):
- * rendering/DeprecatedSlider.h: Added.
- (WebCore::DeprecatedSlider::renderName):
- * rendering/RenderSlider.cpp: Removed.
- * rendering/RenderSlider.h: Removed.
- 2006-06-13 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
-
- - Fixed <rdar://problem/4562192> Creating a new DOMHTMLDocument
- appears challenging.
-
- - Added createHTMLDocument to Objc bindings, fixed up implementation
- to comply with the DOM 2 Candidate Recommendation in which is was defined.
- (It never made the final spec.) Also removed use of deprecatedString,
- to avoid unnecessary killing of puppies.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/objc/DOM.mm:
- (-[DOMImplementation createHTMLDocument:]):
- * bindings/objc/DOMPrivate.h:
- * dom/DOMImplementation.cpp:
- (WebCore::DOMImplementation::createDocument):
- (WebCore::DOMImplementation::createHTMLDocument):
- 2006-06-13 Alice Liu <alice.liu@apple.com>
- Reviewed by Adele.
- 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
- * bindings/js/kjs_html.cpp:
- (KJS::HTMLElementFunction::callAsFunction):
- support this by converting the argument to an options object
- before passing to remove()
- 2006-06-13 Darin Adler <darin@apple.com>
- Reviewed by Geoff.
- - fix <rdar://problem/4585333> Changing location for weather on yahoo.com home page redirects to another page
- This patch fixes a bug where the event listener cache does not distinguish
- HTML and non-HTML listeners. Incorrect behavior where stopPropagation also
- prevented default masked a case of this bug on the yahoo.com home page until
- we fixed bug 5180 on 2005-10-03.
- Test: fast/events/event-listener-html-non-html-confusion.html
- * bindings/js/kjs_window.h: Add additional listener maps for HTML event listeners.
- * bindings/js/kjs_window.cpp:
- (KJS::Window::~Window): Go through the additional maps when clearing the window object
- pointer in event listeners.
- (KJS::Window::getJSEventListener): Look in the HTML or non-HTML map depending on the
- argument passed.
- (KJS::Window::getJSUnprotectedEventListener): Ditto.
- * bindings/js/kjs_events.cpp:
- (KJS::JSUnprotectedEventListener::JSUnprotectedEventListener): Add to either the HTML
- or non-HTML map depending on the argument passed.
- (KJS::JSUnprotectedEventListener::~JSUnprotectedEventListener): Remove from either the
- HTML or non-HTML map depending on whether the HTML flag is set.
- (KJS::JSEventListener::JSEventListener): More of the same.
- (KJS::JSEventListener::~JSEventListener): Ditto.
- (KJS::JSLazyEventListener::parseCode): Same thing here. In a lazy event listener there
- is not a listener at construction time, thus the code here to put the listener into a
- map needs the HTML vs. non-HTML logic.
- 2006-06-13 Maciej Stachowiak <mjs@apple.com>
- Reviewed by Darin.
-
- <rdar://problem/4583892> 10.4.7 regression: Hang occurs when attempting to load search results at mapquest.com
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::dispatchGenericEvent): Don't allow
- "load" events to propagate up to the window. We need this quirk to
- avoid site hangs, because they depend on an old Mozilla bug.
- 2006-06-13 Antti Koivisto <koivisto@iki.fi>
- Reviewed by Hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=9314
- Relative positioned block size doesnt update root layer size
- - take relative positioning into account in leftmost/rightmost/lowestPosition()
- - ignore zero width/height boxes in leftmost/rightmost/lowestPosition()
- - split relativePositionOffset() to x and y functions
-
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::absolutePosition):
- (WebCore::RenderBox::relativePositionOffsetX):
- (WebCore::RenderBox::relativePositionOffsetY):
- (WebCore::RenderBox::lowestPosition):
- (WebCore::RenderBox::rightmostPosition):
- (WebCore::RenderBox::leftmostPosition):
- * rendering/RenderBox.h:
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::lowestPosition):
- (WebCore::RenderFlow::rightmostPosition):
- (WebCore::RenderFlow::leftmostPosition):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::updateLayerPosition):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::offsetLeft):
- (WebCore::RenderObject::offsetTop):
- 2006-06-13 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Dave Hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=9427
- xml-stylesheet processing instructions outside of the prolog should have no effect.
- * dom/ProcessingInstruction.cpp:
- (WebCore::ProcessingInstruction::checkStyleSheet):
- Remove todo comment.
-
- * dom/xml_tokenizer.cpp:
- (WebCore::XMLTokenizer::processingInstruction):
- Only check for style sheet if the root element hasn't yet been encountered.
- 2006-06-13 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9406
- REGRESSION: fix for bug 9390 broke two layout tests
-
- * loader/PluginDocument.cpp:
- (WebCore::PluginTokenizer::writeRawData):
- Call finished() after setting up the document structure so we'll emit onload events.
- 2006-06-12 Geoffrey Garen <ggaren@apple.com>
- build fix -- forgot to svn add this file
-
- * ForwardingHeaders/kjs/SavedBuiltins.h: Added.
- 2006-06-12 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej.
- Fixed a bug in append(char) and append(UChar) where our intended copy-on-write semantics was ignored!
- * platform/String.cpp:
- (WebCore::String::append):
- 2006-06-12 Geoffrey Garen <ggaren@apple.com>
- Reviewed by TimO, Maciej.
- - WebCore part of merging InterpreterImp into Interpreter. No test
- because there's no behavior change.
-
- A substantive change here is that ScriptInterpreter::mark must now chain to
- Interpreter::mark, since Interpreter needs to mark the things that
- InterpreterImp used to mark.
-
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_binding.cpp:
- * bindings/js/kjs_window.cpp:
- (KJS::Window::put):
- * bridge/mac/WebCoreFrameBridge.mm:
- * bridge/mac/WebCoreScriptDebugger.mm:
- (-[WebCoreScriptCallFrame evaluateWebScript:]):
- * kwq/KWQPageState.mm:
- 2006-06-12 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej.
- Changed String::ascii() to return a Vector<char> instead of const char*
- This allows us to use it "regularly" as the returned vector will destruct
- and not leak memory like the previous approach.
- We can now do a String.ascii().data() to get a char* buffer instead of
- String.deprecatedString().ascii(). It doesn't improve the style much but
- dumping the memory-leak issue is a plus.
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open):
- (WebCore::IconDatabase::clearDatabase):
- * icon/SQLDatabase.cpp:
- (SQLDatabase::open):
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::prepare):
- (WebCore::SQLStatement::step):
- (WebCore::SQLStatement::returnTextResults):
- (WebCore::SQLStatement::returnTextResults16):
- (WebCore::SQLStatement::returnIntResults):
- (WebCore::SQLStatement::returnInt64Results):
- (WebCore::SQLStatement::returnDoubleResults):
- In addition to the changes to the string classes, changed my database code over to the new
- preferred method.
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::ascii):
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::ascii):
- * platform/StringImpl.h:
- 2006-06-12 Dave Hyatt <hyatt@apple.com>
- Add the notion of a selection foreground color to the engine for
- Win32. Rename existing selectionColor methods to be
- selectionBackgroundColor instead.
- Change the 60% alpha blend rule for transparent selection to
- instead be a range from 60-80%, with less transparency being
- used as needed to ensure the transformed color more closely
- approximates the original operating system color when blended
- with a white background.
- Reviewed by mjs
- * platform/Color.cpp:
- (WebCore::blend):
- (WebCore::Color::blendWithWhite):
- * platform/Color.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::fillHorizontalSelectionGap):
- (WebCore::RenderBlock::fillVerticalSelectionGap):
- (WebCore::RenderBlock::fillLeftSelectionGap):
- (WebCore::RenderBlock::fillRightSelectionGap):
- * rendering/RenderHTMLCanvas.cpp:
- (WebCore::RenderHTMLCanvas::paint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::selectionBackgroundColor):
- (WebCore::RenderObject::selectionForegroundColor):
- * rendering/RenderObject.h:
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::activeSelectionBackgroundColor):
- (WebCore::RenderTheme::inactiveSelectionBackgroundColor):
- (WebCore::RenderTheme::platformActiveSelectionBackgroundColor):
- (WebCore::RenderTheme::platformInactiveSelectionBackgroundColor):
- (WebCore::RenderTheme::platformActiveSelectionForegroundColor):
- (WebCore::RenderTheme::platformInactiveSelectionForegroundColor):
- * rendering/RenderTheme.h:
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::platformActiveSelectionBackgroundColor):
- (WebCore::RenderThemeMac::platformInactiveSelectionBackgroundColor):
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::platformActiveSelectionBackgroundColor):
- (WebCore::RenderThemeWin::platformInactiveSelectionBackgroundColor):
- (WebCore::RenderThemeWin::platformActiveSelectionForegroundColor):
- (WebCore::RenderThemeWin::platformInactiveSelectionForegroundColor):
- * rendering/RenderThemeWin.h:
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::paint):
- 2006-06-12 John Sullivan <sullivan@apple.com>
- Reviewed by Darin Adler.
-
- * page/Frame.cpp:
- (WebCore::Frame::markAllMatchesForText):
- Do a "fake" paint here so that the rectangles for the text matches will have been
- computed by the time this method returns.
- 2006-06-12 Brady Eidson <beidson@apple.com>
- Reviewed by Levi and Tim Omernick.
- -Added a skeleton sqlite3 icon database file to IconDatabase
- -Added functionality to validate and recreate this icon.db file
- -Fixed some buggys in SQLDatabase.cpp
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::open):
- (WebCore::IconDatabase::isValidDatabase):
- (WebCore::IconDatabase::clearDatabase):
- (WebCore::IconDatabase::recreateDatabase):
- * icon/IconDatabase.h:
- * icon/SQLStatement.cpp:
- (WebCore::SQLStatement::columnCount):
- (WebCore::SQLStatement::getColumnName):
- (WebCore::SQLStatement::getColumnName16):
- (WebCore::SQLStatement::getColumnText):
- (WebCore::SQLStatement::getColumnText16):
- (WebCore::SQLStatement::getColumnDouble):
- (WebCore::SQLStatement::getColumnInt):
- (WebCore::SQLStatement::getColumnInt64):
- (WebCore::SQLStatement::getColumnBlob):
- -Added checks to make sure we had a valid working sqlite3_statement as the sqlite3_*
- function calls weren't as error-tolerant as documentation advertised
- (maybe differences between the 3.3 docs I looked at and the 3.1.3 version installed on OSX)
- 2006-06-12 Brady Eidson <beidson@apple.com>
- Reviewed by Levi.
- -Added SQLite helper wrappers to ease use of SQLite in the IconDatabase.
- -Changed the base IconDatabase over to this new framework.
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreIconDatabaseBridge.mm:
- (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
- -By popular request, removed an annoying log message I'd accidentally left in
- * icon/IconDatabase.cpp:
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open):
- (WebCore::IconDatabase::close):
- (WebCore::IconDatabase::~IconDatabase):
- * icon/IconDatabase.h:
- (WebCore::IconDatabase::isOpen):
- -Changed over IconDatabase from direct sqlite3_* calls to the new SQLDatabase calls
- * icon/SQLDatabase.cpp: Added.
- (SQLDatabase::SQLDatabase):
- (SQLDatabase::open):
- (SQLDatabase::close):
- (SQLDatabase::executeCommand):
- (SQLDatabase::tableExists):
- * icon/SQLDatabase.h: Added.
- (WebCore::SQLDatabase::isOpen):
- (WebCore::SQLDatabase::getPath):
- (WebCore::SQLDatabase::lastError):
- (WebCore::SQLDatabase::lastErrorMsg):
- (WebCore::SQLStatement::isPrepared):
- (WebCore::SQLStatement::lastError):
- (WebCore::SQLStatement::lastErrorMsg):
- * icon/SQLStatement.cpp: Added.
- (WebCore::SQLStatement::SQLStatement):
- (WebCore::SQLStatement::~SQLStatement):
- (WebCore::SQLStatement::prepare):
- (WebCore::SQLStatement::step):
- (WebCore::SQLStatement::finalize):
- (WebCore::SQLStatement::reset):
- (WebCore::SQLStatement::executeCommand):
- (WebCore::SQLStatement::bindBlob):
- (WebCore::SQLStatement::bindText):
- (WebCore::SQLStatement::columnCount):
- (WebCore::SQLStatement::getColumnName):
- (WebCore::SQLStatement::getColumnName16):
- (WebCore::SQLStatement::getColumnText):
- (WebCore::SQLStatement::getColumnText16):
- (WebCore::SQLStatement::getColumnDouble):
- (WebCore::SQLStatement::getColumnInt):
- (WebCore::SQLStatement::getColumnInt64):
- (WebCore::SQLStatement::getColumnBlob):
- (WebCore::SQLStatement::returnTextResults):
- (WebCore::SQLStatement::returnTextResults16):
- (WebCore::SQLStatement::returnIntResults):
- (WebCore::SQLStatement::returnInt64Results):
- (WebCore::SQLStatement::returnDoubleResults):
- -Initial checking of SQLDatabase framework
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::String):
- -Added an explicit UChar* constructor to our string class as much of sqlite3's UTF16 handling is based on
- null-terminated UTF16 which we didn't yet support.
- 2006-06-11 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9408
- Clean build fails with "make: *** No rule to make target `SVGElementFactory.cpp', needed by `all'. Stop"
- * DerivedSources.make: Fix clean builds.
- 2006-06-11 Darin Adler <darin@apple.com>
- - another try at fixing Windows
- * loader/CachedResource.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- * platform/image-decoders/ImageDecoder.h:
- (WebCore::ImageDecoder::setData):
- * platform/image-decoders/gif/GIFImageDecoder.cpp:
- (WebCore::GIFImageDecoderPrivate::decode):
- (WebCore::GIFImageDecoder::setData):
- * platform/image-decoders/gif/GIFImageDecoder.h:
- * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
- (WebCore::JPEGImageReader::decode):
- (WebCore::JPEGImageDecoder::setData):
- * platform/image-decoders/jpeg/JPEGImageDecoder.h:
- * platform/image-decoders/png/PNGImageDecoder.cpp:
- (WebCore::PNGImageReader::decode):
- (WebCore::PNGImageDecoder::setData):
- * platform/image-decoders/png/PNGImageDecoder.h:
- s/DeprecatedByteArray/Vector<char>/
- 2006-06-11 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * platform/cairo/ImageCairo.cpp: (WebCore::Image::loadResource):
- Use Vector<char> instead of DeprecatedByteArray.
- * platform/win/TemporaryLinkStubs.cpp: (KWQServeSynchronousRequest):
- Don't try to return 0 from a function that returns a Vector<char>.
- 2006-06-11 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt, tweaked quite a bit and landed by Darin.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=8039
- Remove use of DeprecatedArray in favor of new Vector class
- This removes most of the uses of DeprecatedArray and
- DeprecatedByteArray, with the exception of DeprecatedCString.
- No test cases added because there is no change in
- functionality.
- * loader/CachedCSSStyleSheet.cpp:
- (WebCore::CachedCSSStyleSheet::data):
- * loader/CachedCSSStyleSheet.h:
- * loader/CachedImage.cpp:
- (WebCore::CachedImage::bufferData):
- (WebCore::CachedImage::data):
- (WebCore::CachedImage::checkNotify):
- (WebCore::CachedImage::shouldStopAnimation):
- * loader/CachedImage.h:
- * loader/CachedObject.cpp:
- (WebCore::CachedObject::bufferData):
- (WebCore::CachedObject::setExpireDate):
- * loader/CachedObject.h:
- (WebCore::CachedObject::setCharset):
- * loader/CachedScript.cpp:
- (WebCore::CachedScript::data):
- * loader/CachedScript.h:
- * loader/CachedXBLDocument.cpp:
- (WebCore::CachedXBLDocument::data):
- (WebCore::CachedXBLDocument::checkNotify):
- * loader/CachedXBLDocument.h:
- * loader/CachedXSLStyleSheet.cpp:
- (WebCore::CachedXSLStyleSheet::data):
- * loader/CachedXSLStyleSheet.h:
- * loader/Request.cpp:
- (WebCore::Request::Request):
- (WebCore::Request::~Request):
- * loader/Request.h:
- (WebCore::Request::buffer):
- (WebCore::Request::cachedObject):
- (WebCore::Request::docLoader):
- (WebCore::Request::isIncremental):
- (WebCore::Request::setIsIncremental):
- (WebCore::Request::isMultipart):
- (WebCore::Request::setIsMultipart):
- * loader/loader.cpp:
- (WebCore::crossDomain):
- (WebCore::Loader::Loader):
- (WebCore::Loader::load):
- (WebCore::Loader::servePendingRequests):
- (WebCore::Loader::receivedAllData):
- (WebCore::Loader::receivedResponse):
- (WebCore::Loader::receivedData):
- (WebCore::Loader::numRequests):
- (WebCore::Loader::cancelRequests):
- (WebCore::Loader::removeBackgroundDecodingRequest):
- (WebCore::Loader::jobForRequest):
- * platform/Image.cpp:
- (WebCore::Image::setData):
- * platform/Image.h:
- (WebCore::Image::dataBuffer):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::init):
- (WebCore::CSSStyleSelector::matchRules):
- (WebCore::CSSStyleSelector::matchRulesForList):
- (WebCore::CSSStyleSelector::sortMatchedRules):
- (WebCore::CSSStyleSelector::initForStyleResolve):
- (WebCore::CSSStyleSelector::createStyleForElement):
- (WebCore::CSSStyleSelector::createPseudoStyleForElement):
- * css/cssstyleselector.h:
- (WebCore::CSSStyleSelector::addMatchedRule):
- (WebCore::CSSStyleSelector::addMatchedDeclaration):
- * dom/xml_tokenizer.cpp:
- (WebCore::OffsetBuffer::OffsetBuffer):
- (WebCore::openFunc):
- * html/HTMLOptionElement.cpp:
- (WebCore::HTMLOptionElement::index):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::selectedIndex):
- (WebCore::HTMLSelectElement::setSelectedIndex):
- (WebCore::HTMLSelectElement::length):
- (WebCore::HTMLSelectElement::remove):
- (WebCore::HTMLSelectElement::value):
- (WebCore::HTMLSelectElement::setValue):
- (WebCore::HTMLSelectElement::state):
- (WebCore::HTMLSelectElement::restoreState):
- (WebCore::HTMLSelectElement::appendFormData):
- (WebCore::HTMLSelectElement::optionToListIndex):
- (WebCore::HTMLSelectElement::listToOptionIndex):
- (WebCore::HTMLSelectElement::recalcListItems):
- (WebCore::HTMLSelectElement::reset):
- (WebCore::HTMLSelectElement::notifyOptionSelected):
- * html/HTMLSelectElement.h:
- (WebCore::HTMLSelectElement::listItems):
- * kwq/KWQLoader.h:
- * kwq/KWQLoader.mm:
- (KWQServeSynchronousRequest):
- * kwq/KWQTextStream.cpp:
- (QTextStream::operator<<):
- * kwq/KWQTextStream.h:
- * loader/FormData.cpp:
- (WebCore::FormData::flatten):
- (WebCore::FormData::flattenToString):
- * loader/FormData.h:
- (WebCore::FormDataElement::FormDataElement):
- * platform/DeprecatedString.cpp:
- * platform/DeprecatedString.h:
- * platform/IntPointArray.cpp: Removed.
- * platform/IntPointArray.h: Removed.
- * platform/TextEncoding.cpp:
- (WebCore::TextEncoding::toUnicode):
- * platform/TextEncoding.h:
- * platform/cairo/pixman/src/pixregion.c:
- * platform/cg/PathCG.cpp:
- (WebCore::Path::Path):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorder):
- * rendering/RenderTable.h:
- (WebCore::RenderTable::colToEffCol):
- (WebCore::RenderTable::effColToCol):
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::ensureRows):
- (WebCore::RenderTableSection::addCell):
- (WebCore::RenderTableSection::setCellWidths):
- * rendering/RenderTableSection.h:
- * rendering/bidi.cpp:
- (WebCore::addMidpoint):
- (WebCore::RenderBlock::layoutInlineChildren):
- * rendering/render_form.cpp:
- (WebCore::RenderSelect::updateFromElement):
- (WebCore::RenderSelect::layout):
- (WebCore::RenderSelect::valueChanged):
- (WebCore::RenderSelect::selectionChanged):
- (WebCore::RenderSelect::updateSelection):
- * rendering/table_layout.cpp:
- (WebCore::FixedTableLayout::layout):
- * rendering/table_layout.h:
- * xml/XSLTProcessor.cpp:
- (WebCore::docLoaderFunc):
- * xml/xmlhttprequest.cpp:
- (WebCore::XMLHttpRequest::send):
- (WebCore::XMLHttpRequest::processSyncLoadResults):
- * xml/xmlhttprequest.h:
- 2006-06-11 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by darin.
- http://bugs.webkit.org/show_bug.cgi?id=9394
- Fix no-SVG build
- * DerivedSources.make: Removed tabs. Create empty SVGElementFactory.cpp on no-svg build.
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp: Added #if SVG_SUPPORT/#endif.
- * ksvg2/bindings/js/JSSVGElementWrapperFactory.h: Ditto.
- * ksvg2/bindings/idl/svg/SVGAElement.idl: Add "Conditional=SVG" to all interfaces.
- * ksvg2/bindings/idl/svg/SVGAnimateColorElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimateElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimateTransformElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedAngle.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedBoolean.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedEnumeration.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedInteger.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedLengthList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedNumber.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedNumberList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedPathData.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedPoints.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedPreserveAspectRatio.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedRect.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedString.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimatedTransformList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGAnimationElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGCircleElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGClipPathElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGComponentTransferFunctionElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGCursorElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGDOMImplementation.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGDefsElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGDescElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGElementInstance.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGElementInstanceList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGEllipseElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGEvent.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGException.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGExternalResourcesRequired.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEBlendElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEColorMatrixElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEComponentTransferElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFECompositeElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEFloodElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEFuncAElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEFuncBElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEFuncGElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEFuncRElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEGaussianBlurElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEImageElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEMergeElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEMergeNodeElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFEOffsetElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFETileElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFETurbulenceElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFilterElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFilterPrimitiveStandardAttributes.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGFitToViewBox.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGGElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGGradientElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGICCColor.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGImageElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGLangSpace.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGLengthList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGLineElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGLinearGradientElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGLocatable.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGMarkerElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGNumberList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPaint.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSeg.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegArc.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegClosePath.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubic.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoCubicSmooth.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadratic.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegCurvetoQuadraticSmooth.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegLineto.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoHorizontal.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegLinetoVertical.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPathSegMoveto.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPatternElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPointList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPolygonElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPolylineElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGPreserveAspectRatio.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGRadialGradientElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGRectElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGRenderingIntent.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGScriptElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGSetElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGStopElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGStringList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGStylable.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGStyleElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGSwitchElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGSymbolElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTSpanElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTests.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTextContentElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTextElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTextPositioningElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTitleElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTransformList.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGTransformable.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGURIReference.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGUnitTypes.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGUseElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGViewElement.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGZoomAndPan.idl: Ditto.
- * ksvg2/bindings/idl/svg/SVGZoomEvent.idl: Ditto.
- * ksvg2/svg/SVGAngle.idl: Ditto.
- * ksvg2/svg/SVGAnimatedLength.idl: Ditto.
- * ksvg2/svg/SVGColor.idl: Ditto.
- * ksvg2/svg/SVGDocument.idl: Ditto.
- * ksvg2/svg/SVGElement.idl: Ditto.
- * ksvg2/svg/SVGEvent.idl: Ditto.
- * ksvg2/svg/SVGLength.idl: Ditto.
- * ksvg2/svg/SVGMatrix.idl: Ditto.
- * ksvg2/svg/SVGNumber.idl: Ditto.
- * ksvg2/svg/SVGPoint.idl: Ditto.
- * ksvg2/svg/SVGRect.idl: Ditto.
- * ksvg2/svg/SVGSVGElement.idl: Ditto.
- * ksvg2/svg/SVGTransform.idl: Ditto.
- 2006-06-11 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9390
- Move full-frame plugins to WebCore
-
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- Add PluginDocument
-
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::redirectDataToPlugin):
- Call the bridge.
-
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- Add redirectDataToPlugin which is used to redirect incoming data
- to a plugin.
-
- * bridge/mac/WebCoreViewFactory.h:
- Add pluginSupportsMIMEType which returns whether any plugins support a given MIME type.
-
- * dom/DOMImplementation.cpp:
- * dom/DOMImplementation.h:
- Get rid of createTextDocument and just create a text document explicitly when needed.
-
- * dom/Document.h:
- (WebCore::Document::isPluginDocument):
- * loader/PluginDocument.cpp: Added.
- (WebCore::PluginTokenizer::PluginTokenizer):
- (WebCore::PluginTokenizer::wantsRawData):
- (WebCore::PluginTokenizer::write):
- (WebCore::PluginTokenizer::createDocumentStructure):
- (WebCore::PluginTokenizer::writeRawData):
- (WebCore::PluginTokenizer::stopParsing):
- (WebCore::PluginTokenizer::finish):
- (WebCore::PluginTokenizer::isWaitingForScripts):
- (WebCore::PluginDocument::PluginDocument):
- (WebCore::PluginDocument::createTokenizer):
- * loader/PluginDocument.h: Added.
- (WebCore::PluginDocument::isPluginDocument):
- Add PluginDocument.
-
- * page/Frame.cpp:
- (WebCore::Frame::begin):
- Possibly create a plugin document.
-
- * page/Frame.h:
- (WebCore::Frame::redirectDataToPlugin):
- Add declaration.
-
- * platform/PlugInInfoStore.h:
- * platform/mac/PlugInInfoStoreMac.mm:
- (WebCore::PlugInInfoStore::supportsMIMEType):
- Ask WebCoreViewFactory if the MIME type is supported.
- 2006-06-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9334
- Incomplete repaint when changing block from non-positioned to positioned
- Test: fast/repaint/static-to-positioned.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle): If changing from static to positioned, repaint
- as static.
- 2006-06-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9193
- REGRESSION: setting an opacity on an element with an outline causes the outline to disappear completely
- Test: fast/layers/opacity-outline.html
- - fix repainting of layer children's outlines that extend beyond the layer
- Test: fast/repaint/layer-child-outline.html
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::intersectsDamageRect): Account for outlines.
- (WebCore::RenderLayer::absoluteBoundingBox): Ditto.
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::maximalOutlineSize): Changed to return the view's maximal
- outline size rather than 0 for PaintPhaseChildOutlines.
- 2006-06-10 Steve Falkenburg <sfalken@apple.com>
- Fix build break
- * platform/cairo/GraphicsContextCairo.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (GraphicsContext::scale):
- 2006-06-10 Geoffrey Garen <ggaren@apple.com>
- - http://bugs.webkit.org/show_bug.cgi?id=8515
- Linux porting compile bug
-
- Fix by Mike Emmel, Reviewed by Darin.
- * Projects/gdk/webcore-gdk.bkl:
- * WebCoreSources.bkl:
- * css/maketokenizer:
- * html/HTMLCanvasElement.cpp:
- * html/HTMLImageElement.h:
- * icon/IconDatabase.cpp:
- * make-generated-sources.sh:
- * page/Frame.h:
- * page/FramePrivate.h:
- * platform/Cursor.h:
- * platform/FontData.h:
- (WebCore::FontData::getGlyphIndex):
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::glyphAt):
- (WebCore::GlyphBuffer::advanceAt):
- (WebCore::GlyphBuffer::add):
- * platform/GraphicsContext.h:
- * platform/PlatformKeyboardEvent.h:
- * platform/PlatformMouseEvent.h:
- * platform/PlatformWheelEvent.h:
- * platform/ScrollView.h:
- * platform/TransferJob.h:
- (WebCore::TransferJob::getInternal):
- * platform/TransferJobInternal.h:
- (WebCore::TransferJobInternal::TransferJobInternal):
- * platform/Widget.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::GraphicsContext):
- (WebCore::GraphicsContext::roundToDevicePixels):
- * webcore-base.bkl:
- * xpath/impl/XPathValue.cpp:
- 2006-06-09 John Sullivan <sullivan@apple.com>
- Reviewed by Tim Omernick and Dave Hyatt.
- WebCore support for computing but not highlighting rects for text matches.
- * dom/Document.h:
- added setRenderedRectForMarker() and renderedRectsForMarkers(), and redefined
- MarkerMap to be a hashtable of node -> (pair of vectors), one vector of markers
- and one vector of rects
-
- * dom/Document.cpp:
- (placeholderRectForMarker()):
- new function, returns a recognizable degenerate rect used until a real rect has been set
- (WebCore::Document::addMarker):
- Reworked for new MarkerMap data structure; now adds parallel placeholder rect
- along with marker
- (WebCore::Document::copyMarkers):
- Reworked for new MarkerMap data structure
- (WebCore::Document::removeMarkers):
- Reworked for new MarkerMap data structure; now removed corresponding rect along
- with marker
- (WebCore::Document::markersForNode):
- Reworked for new MarkerMap data structure
- (WebCore::Document::renderedRectsForMarkers):
- New method, returns an array of all non-placeholder rects for the given marker type
- (WebCore::Document::repaintMarkers):
- Reworked for new MarkerMap data structure
- (WebCore::Document::setRenderedRectForMarker):
- New method, sets the rendered rect for a given marker
- (WebCore::Document::shiftMarkers):
- Reworked for new MarkerMap data structure; resets rendered rects to placeholders.
-
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- removed markedTextMatchesAreHighlighted guard; we always want to call paintTextMatchMarker
- now, but sometimes we will end up only computing the rect, not actually highlighting it.
- (Maybe some names should be improved here?)
- (WebCore::InlineTextBox::paintTextMatchMarker):
- Reorganized to move all the code that actually draws into a block that's guarded by
- markedTextMatchesAreHighlighted. The rest of the code computes where the highlight will
- go, and now we always use that computation in order to call setRenderedRectForMarker.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge rectsForTextMatches]):
- New method, returns an array of NSValues representing NSRects. Gets them
- from Document::renderedRectsForMarkers
-
- 2006-06-10 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Eric.
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLElement::put):
- Call WebCore::JSHTMLElement::put so that autogenerated setters will work
- for HTMLElement.
- 2006-06-09 Geoffrey Garen <ggaren@apple.com>
- - Build fix after last JSC check-in (oops!)
-
- * bridge/mac/WebCoreScriptDebugger.mm:
- (-[WebCoreScriptCallFrame scopeChain]):
- (-[WebCoreScriptCallFrame functionName]):
- (-[WebCoreScriptCallFrame evaluateWebScript:]):
- 2006-06-09 David Hyatt <hyatt@apple.com>
- Rename m_isFocused on the frame to m_isActive, since it isn't really
- about focus but is instead about whether or not the top-level window is
- active.
- Pull code that was incorrectly factored into Mac-only code out of FrameMac
- and back up into Frame.
- Reviewed by andersca
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- * page/Frame.cpp:
- (WebCore::Frame::setFocusNodeIfNeeded):
- (WebCore::Frame::isActive):
- (WebCore::Frame::setIsActive):
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- 2006-06-09 David Hyatt <hyatt@apple.com>
- Rework selection coloring. Rename displaysWithFocusAttributes
- to isActive. Move the white-blending code onto the Color API to make
- it more convenient to mutate colors for selection blending. Eliminate all
- the selection state from the GraphicsContext and move it to the RenderTheme.
- Implement both Win32 and Mac theme selection colors.
- Reviewed by sfalken
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::setIsActive):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge drawRect:]):
- (-[WebCoreFrameBridge setIsActive:]):
- (-[WebCoreFrameBridge selectionColor]):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::checkOneSelector):
- * page/Frame.cpp:
- (WebCore::Frame::isActive):
- (WebCore::Frame::setIsActive):
- * page/Frame.h:
- * platform/Color.cpp:
- (WebCore::blend):
- (WebCore::Color::blendWithWhite):
- * platform/Color.h:
- (WebCore::Color::hasAlpha):
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
- * platform/GraphicsContext.h:
- * platform/mac/GraphicsContextMac.mm:
- * platform/win/TemporaryLinkStubs.cpp:
- (GraphicsContext::endTransparencyLayer):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintSelection):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::fillHorizontalSelectionGap):
- (WebCore::RenderBlock::fillVerticalSelectionGap):
- (WebCore::RenderBlock::fillLeftSelectionGap):
- (WebCore::RenderBlock::fillRightSelectionGap):
- * rendering/RenderHTMLCanvas.cpp:
- (WebCore::RenderHTMLCanvas::paint):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderListMarker.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::selectionColor):
- * rendering/RenderObject.h:
- * rendering/RenderReplaced.cpp:
- * rendering/RenderReplaced.h:
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::activeSelectionColor):
- (WebCore::RenderTheme::inactiveSelectionColor):
- (WebCore::RenderTheme::platformActiveSelectionColor):
- (WebCore::RenderTheme::platformInactiveSelectionColor):
- * rendering/RenderTheme.h:
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::platformActiveSelectionColor):
- (WebCore::RenderThemeMac::platformInactiveSelectionColor):
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::platformActiveSelectionColor):
- (WebCore::RenderThemeWin::platformInactiveSelectionColor):
- * rendering/RenderThemeWin.h:
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::paint):
- 2006-06-09 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4549980>
- REGRESSION: "Find Again" can get stuck when searching for string with a trailing space
- * bridge/mac/FrameMac.h: Moved findString to Frame.
- * bridge/mac/FrameMac.mm: Ditto.
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge searchFor:direction:caseSensitive:wrap:]):
- Convert the NSString to a String.
- * editing/JSEditor.cpp: Added execCommand(FindString, ...)
- * editing/Selection.cpp: Added a constructor for Ranges
- (WebCore::Selection::Selection):
- * editing/Selection.h:
- * page/Frame.cpp:
- (WebCore::Frame::findString): Moved from FrameMac. Compare a selection created
- using the found range with the current selection in case the current selection is
- the found range minus some collapsed whitespace on the edges.
- * page/Frame.h:
- 2006-06-09 Steve Falkenburg <sfalken@apple.com>
- Fix build break
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * css/MediaQueryEvaluator.cpp:
- * platform/win/TemporaryLinkStubs.cpp:
- (GraphicsContext::addRoundedRectClip):
- (GraphicsContext::addInnerRoundedRectClip):
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- 2006-06-09 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
- Reviewed by Hyatt. Tweaked by Maciej. Tweaks reviewed by Beth.
- Landed by Beth.
- CSS3 Media Queries implementation.
- <http://bugs.webkit.org/show_bug.cgi?id=4127>
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_css.cpp:
- (KJS::DOMMediaList::put):
- (KJS::KJS::DOMMediaListProtoFunc::callAsFunction):
- * bindings/objc/DOMCSS.mm:
- (-[DOMMediaList setMediaText:]):
- (-[DOMMediaList deleteMedium:]):
- (-[DOMMediaList appendMedium:]):
- * css/CSSGrammar.y:
- * css/MediaFeatureNames.cpp: Added.
- (WebCore::MediaFeatureNames::init):
- * css/MediaFeatureNames.h: Added.
- * css/MediaList.cpp:
- (WebCore::MediaList::MediaList):
- (WebCore::MediaList::~MediaList):
- (WebCore::parseMediaDescriptor):
- (WebCore::MediaList::deleteMedium):
- (WebCore::MediaList::mediaText):
- (WebCore::MediaList::setMediaText):
- (WebCore::MediaList::item):
- (WebCore::MediaList::appendMedium):
- (WebCore::MediaList::appendMediaQuery):
- * css/MediaList.h:
- (WebCore::MediaList::MediaList):
- (WebCore::MediaList::length):
- (WebCore::MediaList::mediaQueries):
- * css/MediaQuery.cpp: Added.
- (WebCore::MediaQuery::MediaQuery):
- (WebCore::MediaQuery::~MediaQuery):
- (WebCore::MediaQuery::operator==):
- (WebCore::MediaQuery::cssText):
- * css/MediaQuery.h: Added.
- (WebCore::MediaQuery::):
- (WebCore::MediaQuery::restrictor):
- (WebCore::MediaQuery::expressions):
- (WebCore::MediaQuery::mediaType):
- (WebCore::MediaQuery::append):
- * css/MediaQueryEvaluator.cpp: Added.
- (WebCore::):
- (WebCore::MediaQueryEvaluator):
- (WebCore::MediaQueryEvaluator::~MediaQueryEvaluator):
- (WebCore::MediaQueryEvaluator::mediaTypeMatch):
- (WebCore::applyRestrictor):
- (WebCore::MediaQueryEvaluator::eval):
- (WebCore::parseAspectRatio):
- (WebCore::cmpvalue):
- (WebCore::numberValue):
- (WebCore::colorMediaFeatureEval):
- (WebCore::monochromeMediaFeatureEval):
- (WebCore::device_aspect_ratioMediaFeatureEval):
- (WebCore::gridMediaFeatureEval):
- (WebCore::device_heightMediaFeatureEval):
- (WebCore::device_widthMediaFeatureEval):
- (WebCore::heightMediaFeatureEval):
- (WebCore::widthMediaFeatureEval):
- (WebCore::min_colorMediaFeatureEval):
- (WebCore::max_colorMediaFeatureEval):
- (WebCore::min_monochromeMediaFeatureEval):
- (WebCore::max_monochromeMediaFeatureEval):
- (WebCore::min_device_aspect_ratioMediaFeatureEval):
- (WebCore::max_device_aspect_ratioMediaFeatureEval):
- (WebCore::min_heightMediaFeatureEval):
- (WebCore::max_heightMediaFeatureEval):
- (WebCore::min_widthMediaFeatureEval):
- (WebCore::max_widthMediaFeatureEval):
- (WebCore::min_device_heightMediaFeatureEval):
- (WebCore::max_device_heightMediaFeatureEval):
- (WebCore::min_device_widthMediaFeatureEval):
- (WebCore::max_device_widthMediaFeatureEval):
- (WebCore::createFunctionMap):
- * css/MediaQueryEvaluator.h: Added.
- * css/MediaQueryExp.cpp: Added.
- (WebCore::MediaQueryExp::MediaQueryExp):
- (WebCore::MediaQueryExp::~MediaQueryExp):
- * css/MediaQueryExp.h: Added.
- (WebCore::MediaQueryExp::mediaFeature):
- (WebCore::MediaQueryExp::value):
- (WebCore::MediaQueryExp::operator==):
- * css/StyleSheet.cpp:
- (WebCore::StyleSheet::setMedia):
- * css/cssparser.cpp:
- (WebCore::CSSParser::CSSParser):
- (WebCore::CSSParser::~CSSParser):
- (WebCore::CSSParser::setupParser):
- (WebCore::CSSParser::parseMediaQuery):
- (WebCore::CSSParser::createFloatingMediaQueryExp):
- (WebCore::CSSParser::sinkFloatingMediaQueryExp):
- (WebCore::CSSParser::createFloatingMediaQueryExpList):
- (WebCore::CSSParser::sinkFloatingMediaQueryExpList):
- (WebCore::CSSParser::createFloatingMediaQuery):
- (WebCore::CSSParser::sinkFloatingMediaQuery):
- * css/cssparser.h:
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::CSSStyleSelector):
- (WebCore::CSSStyleSelector::init):
- (WebCore::CSSStyleSelector::~CSSStyleSelector):
- (WebCore::CSSStyleSelector::loadDefaultStyle):
- (WebCore::CSSStyleSelector::matchUARules):
- (WebCore::CSSStyleSelector::styleForElement):
- (WebCore::CSSStyleSelector::pseudoStyleForElement):
- (WebCore::CSSStyleSelector::updateFont):
- (WebCore::CSSStyleSelector::cacheBorderAndBackground):
- (WebCore::CSSStyleSelector::styleRulesForElement):
- (WebCore::CSSRuleSet::addRulesFromSheet):
- * css/cssstyleselector.h:
- * css/maketokenizer:
- * css/tokenizer.flex:
- * dom/DOMImplementation.cpp:
- (WebCore::DOMImplementation::createCSSStyleSheet):
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::process):
- (WebCore::HTMLLinkElement::setStyleSheet):
- * html/HTMLStyleElement.cpp:
- (WebCore::HTMLStyleElement::childrenChanged):
- * ksvg2/svg/SVGDOMImplementation.cpp:
- (SVGDOMImplementation::createCSSStyleSheet):
- * ksvg2/svg/SVGStyleElement.cpp:
- (WebCore::SVGStyleElement::childrenChanged):
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- * platform/Screen.h:
- * platform/mac/ScreenMac.mm:
- (WebCore::screenDepthPerComponent):
- (WebCore::screenIsMonochrome):
- 2006-06-08 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin
-
- <http://bugs.webkit.org/show_bug.cgi?id=4468>
- Implement execCommand(Insert{Un}OrderedList)
- * WebCore.xcodeproj/project.pbxproj: Added InsertListCommand.{h,cpp} to the project.
- * dom/Position.cpp:
- (WebCore::hasRenderedNonAnonymousDescendantsWithHeight):
- Added. A block with height is only a candidate if this is false. This should fix the problems
- getting carets into empty blocks.
- (WebCore::Position::inRenderedContent):
- * editing/AppendNodeCommand.cpp:
- (WebCore::AppendNodeCommand::doApply):
- * editing/CompositeEditCommand.cpp:
- (WebCore::hasARenderedDescendant):
- (WebCore::CompositeEditCommand::prune): A node can have DOM descendants that are rendered, yet
- have a renderer with no descendants. Fixed the pruning rule to avoid removing a node like this.
- (WebCore::CompositeEditCommand::mergeIdenticalElements): Put the two elements next to
- each other if they aren't already, as a convenience.
- (WebCore::CompositeEditCommand::moveParagraph): Added code to preserve the current selection.
- (WebCore::CompositeEditCommand::moveParagraphs): Ditto.
- * editing/CompositeEditCommand.h:
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializeStartEnd): Expansion for special elements should
- continue to happen until it is no longer possible.
- (WebCore::DeleteSelectionCommand::handleGeneralDelete): The code to adjust the start node
- wouldn't always avoid removing the start block.
- * editing/InsertListCommand.cpp: Added.
- (WebCore::InsertListCommand::fixOrphanedListChild): Puts a list item that isn't inside a list
- into a list.
- (WebCore::InsertListCommand::InsertListCommand):
- (WebCore::InsertListCommand::modifyRange):
- (WebCore::InsertListCommand::doApply):
- * editing/InsertListCommand.h: Added.
- (WebCore::InsertListCommand::):
- * editing/InsertNodeBeforeCommand.cpp:
- (WebCore::InsertNodeBeforeCommand::doApply):
- * editing/InsertParagraphSeparatorCommand.cpp:
- * editing/JSEditor.cpp:
- * editing/TextIterator.cpp:
- (WebCore::TextIterator::advance): Don't handle a node if the end of the range used to create the
- iterator ends at the start of that node.
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::next):
- (WebCore::VisiblePosition::previous):
- * editing/VisiblePosition.h:
- Added a parameter to next/previous that can prevent them from leaving the current editable region.
- * editing/htmlediting.cpp:
- (WebCore::highestAncestor):
- (WebCore::enclosingList):
- (WebCore::enclosingListChild):
- (WebCore::outermostEnclosingList):
- (WebCore::createListItemElement):
- * editing/htmlediting.h:
- * page/Frame.cpp:
- (WebCore::Frame::selectionListState): Added.
- * page/Frame.h:
- 2006-06-08 David Harrison <harrison@apple.com>
- Reviewed by Geoff and John.
- <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12)
-
- Problem was the primitive value was getting reset to a generic state before the parameter
- check that relies on that state.
- Test: fast/dom/setPrimitiveValue.html
- * css/CSSPrimitiveValue.cpp:
- (WebCore::CSSPrimitiveValue::setFloatValue):
- (WebCore::CSSPrimitiveValue::setStringValue):
- Move parameter checks ahead of call to cleanup().
- 2006-06-08 Alice Liu <alice.liu@apple.com>
- Reviewed by justin.
- - fixed <rdar://problem/4578115> support Range.isPointInRange
- - fixed <rdar://problem/4578123> support Range.comparePoint
- * dom/Range.cpp:
- (WebCore::Range::isPointInRange):
- added implementation
- (WebCore::Range::comparePoint):
- added implementation
- * dom/Range.h:
- added prototypes
- * dom/Range.idl:
- added bindings
- 2006-06-08 Darin Adler <darin@apple.com>
- Reviewed by justin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8616
- REGRESSION: TinyMCE: Crash on Undo
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:allowShadowContent:]):
- Changed to call nodeInfoAtPoint directly.
- (-[WebCoreFrameBridge _visiblePositionForPoint:]): Changed to call nodeInfoAtPoint directly.
- Also added code to convert coordinates so it works for points that are in nodes in subframes.
- * page/Frame.cpp:
- (WebCore::Frame::setMark): Added assertions to catch if we attempt to set selection
- endpoints in another document.
- (WebCore::Frame::setSelection): Ditto.
- 2006-06-07 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- Fixed some comments and removed an unused variable.
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::removeBlockPlaceholder):
- Don't remove a br if it isn't at the start of a block, since
- it isn't really a "block placeholder".
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::initializePositionData):
- (WebCore::DeleteSelectionCommand::mergeParagraphs):
- (WebCore::DeleteSelectionCommand::doApply):
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply):
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply):
- (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
- * editing/htmlediting.cpp:
- 2006-06-07 David Hyatt <hyatt@apple.com>
- Add support for custom highlighting. This is all ifdefed to be Mac-only.
- Reviewed by justin
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::paintCustomHighlight):
- * bridge/mac/WebCoreFrameBridge.h:
- * platform/mac/ClipboardMac.h:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintCustomHighlight):
- * rendering/InlineTextBox.h:
- 2006-06-07 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt
- Added support for cross-platform resize property.
- * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
- already cache this info when we handle mouse down and mouse up.
- * platform/mac/MouseEventMac.mm: ditto.
- * platform/win/TemporaryLinkStubs.cpp: ditto.
- * page/Frame.cpp:
- (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
- * page/FrameView.cpp:
- (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
- (WebCore::FrameView::mousePressed): Added.
- * page/FrameView.h: Added mousePressed.
- * rendering/RenderTheme.h: Removed paintResizeControl.
- Since its not dependent on the theme, the layer can just paint this.
- * rendering/RenderTheme.cpp: ditto.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
- (WebCore::RenderLayer::~RenderLayer): Deletes m_resizeCornerImage.
- (WebCore::RenderLayer::resize): Uses passed in event instead of creating a new one.
- (WebCore::RenderLayer::paintResizeControl): Now loads and paints the resize image.
- * rendering/RenderLayer.h: Added m_resizeCornerImage. Important to have one per-layer for when we allow
- more customization.
- * platform/cairo/ImageCairo.cpp:
- (WebCore::Image::loadResource): Loads image resources.
- 2006-06-07 David Hyatt <hyatt@apple.com>
- Add support for a new property for custom highlighting. This patch just
- adds support for the parsing of the property. It doesn't do anything yet.
- Reviewed by beth
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::):
- (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
- * css/CSSPropertyNames.in:
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseValue):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::applyProperty):
- * rendering/render_style.cpp:
- (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
- (WebCore::StyleCSS3InheritedData::operator==):
- (WebCore::RenderStyle::diff):
- * rendering/render_style.h:
- (WebCore::RenderStyle::highlight):
- (WebCore::RenderStyle::setHighlight):
- (WebCore::RenderStyle::initialHighlight):
- 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Fix suggested by Rob Buis. Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9341
- REGRESSION: Repro crash caused by style="font:bold"
- Test: fast/css/font-shorthand-weight-only.html
- * css/cssparser.cpp: (WebCore::CSSParser::parseFont): Revert part of the change
- made to fix bug 5564.
- 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9122
- REGRESSION: Incorrect vertical position for text fields in a "display: table" block
- Test: fast/table/text-field-baseline.html
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::baselinePosition): Do not descend into replaced objects, just
- use their baseline.
- 2006-06-07 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt (concept) and Darin (some coding details).
- - fix http://bugs.webkit.org/show_bug.cgi?id=4334
- REGRESSION: Flickering when css-hover should change opacity on floating elements
- Pixel test: fast/block/float/nopaint-after-layer-destruction.html
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::setPaintsFloatingObject): Added. Changes the noPaint flag
- in the block's FloatingObject for the given float and calls setChildNeedsLayout.
- * rendering/RenderBlock.h:
- * rendering/RenderBox.cpp:
- (WebCore::blockThatPaintsFloat): Added this helper function.
- (WebCore::RenderBox::setStyle): Added. Calls to setPaintsFloatingObject when a float
- gains or loses its layer.
- 2006-06-06 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9121
- REGRESSION: [Incremental Repaint] DHTML movement test failures
- Test (repaint): fast/repaint/containing-block-position-change.html
- * manual-tests/containing-block-position-chage.html: Added.
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlock): Unrelated change: fixed typo from
- the RenderCanvas to RenderView rename.
- (WebCore::RenderBlock::removePositionedObject): Added a return immediately
- after removing the object.
- (WebCore::RenderBlock::removePositionedObjects): Added.
- * rendering/RenderBlock.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::setStyle): Added code to remove absolutely positioned
- descendants from the positioned objects list of their current containing block
- when they are going to have a new one as a result of this block's position
- property changing.
- * rendering/RenderObject.h:
- (WebCore::RenderObject::removePositionedObjects):
- 2006-06-06 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
- * dom/Node.cpp:
- (WebCore::Node::firstDescendant): Added.
- * dom/Node.h:
- * dom/Range.cpp: Added a constructor that takes in Positions.
- (WebCore::Range::Range):
- * dom/Range.h:
- * editing/CompositeEditCommand.cpp:
- (WebCore::CompositeEditCommand::insertNodeAt):
- Let this function insert children into empty containers.
- Calls canHaveChildrenForEditing.
- (WebCore::CompositeEditCommand::appendNode): Assert that the parent canHaveChildrenForEditing.
- (WebCore::CompositeEditCommand::moveParagraph): Tell ReplaceSelectionCommand to select the
- replacement so that moveParagraph's callers have a valid destination after the move.
- * editing/CompositeEditCommand.h: Moved removeFullySelectedNode to DeleteSelectionCommand,
- made deleteTextFromNode virtual so that DeleteSelectionCommand can update it's endingPosition.
- * editing/DeleteSelectionCommand.cpp:
- (WebCore::DeleteSelectionCommand::DeleteSelectionCommand):
- Removed m_startNode, used a local variable.
- (WebCore::DeleteSelectionCommand::initializeStartEnd): Fixed special element expansion.
- (WebCore::DeleteSelectionCommand::initializePositionData): Compute the endingPosition up
- front and keep track of it as nodes and text are removed.
- (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Removed use of m_startNode.
- (WebCore::DeleteSelectionCommand::removeFullySelectedNode): Moved from CompositeEditCommand.
- Update m_endingPosition as we remove nodes.
- (WebCore::DeleteSelectionCommand::deleteTextFromNode):
- Update m_endingPosition as we delete text.
- (WebCore::DeleteSelectionCommand::handleGeneralDelete): Retain the start block. Cleaned up.
- (WebCore::DeleteSelectionCommand::mergeParagraphs): Recompute m_endingPosition since moveParagraph
- clobbers the old one.
- (WebCore::DeleteSelectionCommand::doApply): Fixed the logic for placeholder insertion after
- deletion. Make the placeholder decision before we do special element expansion.
- * editing/DeleteSelectionCommand.h:
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply): Fixed a bug where an extra br was inserted and cleaned
- up the code.
- * editing/InsertParagraphSeparatorCommand.cpp:
- (WebCore::InsertParagraphSeparatorCommand::doApply): Deletion of the current selection should do
- a merge (added a testcase).
- * editing/RebalanceWhitespaceCommand.cpp:
- (WebCore::RebalanceWhitespaceCommand::doUnapply): Remove/insert in a way that will trigger a layout.
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply): Ditto.
- Merge even when the incoming fragment has interchange newlines (added a testcase).
- Merge when the selection being pasted into starts at the start of a block because not
- doing so would leave one or more hanging empty blocks.
- (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
- Rebalance whitespace using rebalanceWhitespaceAt because rebalanceWhitespace requires
- a selection, and a selection can't be created until whitespace has been rebalanced.
- * editing/htmlediting.cpp:
- (WebCore::canHaveChildrenForEditing): Added.
- * editing/htmlediting.h:
- 2006-06-06 Beth Dakin <bdakin@apple.com>
- Reviewed by Maciej.
- Fix for <rdar://problem/4570475> Dashboard regions do not scale for
- non-1.0 scale factors.
- No test cases added since this only affects non-1.0 resolution
- scale factors.
- * platform/FloatRect.cpp:
- (WebCore::FloatRect::scale): Added new function that scales a
- rect's origin and size by a given factor.
- * platform/FloatRect.h:
- * platform/IntRect.cpp:
- (WebCore::IntRect::scale): Same as above.
- * platform/IntRect.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::addDashboardRegions): After the bounds and
- clip rects on the Dashboard region have been calculated, get the
- user space scale factor, and if it is not 1.0, scale the rects.
- 2006-06-06 John Sullivan <sullivan@apple.com>
- Reviewed by Darin Adler.
-
- - fixed <rdar://problem/4566087> REGRESSION (420+): Crash occurs while completing a find again query at
- http://www.apple.com/ (RenderObject::repaint(bool))
-
- This wasn't a new problem in the code, but the recent use of DocumentMarkers for find results brought
- it to the surface.
- * dom/Document.h:
- Use a RefPtr<Node> instead of a Node* in MarkerMap, so the node will be retained
- * dom/Document.cpp:
- (WebCore::Document::removeMarkers):
- Add a .get() to compensate for using RefPtr. Also, only repaint if this node actually had a marker
- removed.
- (WebCore::Document::repaintMarkers):
- Add a .get() to compensate for using RefPtr.
- 2006-06-06 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9325
- clientWidth/clientHeight on document element in strict mode should return visible frame size
-
- * dom/Element.cpp:
- (WebCore::Element::clientWidth):
- (WebCore::Element::clientHeight):
- If we're the document element, and in strict mode, return the visible size of the frame.
-
- 2006-06-06 Anders Carlsson <acarlsson@apple.com>
- Reviewed by John.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge containsPlugins]):
- * page/Frame.cpp:
- (WebCore::Frame::containsPlugins):
- * page/Frame.h:
- Add containsPlugins function which returns whether a frame contains plugins
- or not.
- 2006-06-05 Rob Buis <buis@kde.org>
- Reviewed by mjs.
- http://bugs.webkit.org/show_bug.cgi?id=5564
- 'font' shorthand parsing should be more tolerant in quirks mode
- When not in strict mode accept font property specifications
- lacking a font family part, like WinIE does.
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseFont):
- 2006-06-05 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- Fix for <rdar://problem/4567520> Pixel cracks in weather widget at
- 1.83 scaling
- To prevent pixel cracks at non-integral scaling factors, before we
- call into CG to draw an image, we have to convert the rect to
- device space, round the origin and size to integers in device
- space, and convert back to user space.
-
- No test cases added since this only affects non-1.0 resolution
- scale factors.
- * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
- (WebCore::JSCanvasRenderingContext2D::drawImage): drawImage() now
- takes FloatRects.
- * html/CanvasPattern.cpp:
- (WebCore::patternCallback): Call roundToDevicePixels()
- * html/CanvasRenderingContext2D.cpp:
- (WebCore::CanvasRenderingContext2D::drawImage): drawImage() now
- takes FloatRects and call roundToDevicePixels()
- * html/CanvasRenderingContext2D.h: drawImage() now takes
- FloatRects.
- * html/HTMLCanvasElement.cpp:
- (WebCore::HTMLCanvasElement::paint): Call roundToDevicePixels()
- * kcanvas/device/quartz/QuartzSupport.mm:
- (WebCore::debugDumpCGImageToFile): Same as above.
- * platform/GraphicsContext.h:
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::roundToDevicePixels): Takes care of
- converting between coordinate spaces and rounding.
- (WebCore::GraphicsContext::drawLineForText):
- * platform/mac/ImageMac.mm: Call roundToDevicePixels()
- (WebCore::Image::draw): Same as above.
- (WebCore::drawPattern): Same as above.
- 2006-06-05 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9310
- Add missing DOM prototypes and other DOM cleanup
- - Added the built-in object prototype to DOM objects that were missing it
- so that primitive operations like == work on them.
-
- - Removed dead EventConstructor class (it's autogenerated now)
-
- - Changed HTML collections to describe themselves as "[object Collection]",
- to match IE.
-
- - Made DOMCSSRule constructor private because JSCSSRule is the class
- to use.
-
- * bindings/js/JSHTMLOptionElementConstructor.cpp:
- (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
- * bindings/js/kjs_css.cpp:
- (KJS::DOMStyleSheet::DOMStyleSheet):
- (KJS::DOMStyleSheetList::DOMStyleSheetList):
- (KJS::DOMCSSRule::DOMCSSRule):
- (KJS::DOMCSSValue::DOMCSSValue):
- (KJS::toJS):
- (KJS::DOMRGBColor::DOMRGBColor):
- (KJS::getDOMRGBColor):
- (KJS::DOMRect::DOMRect):
- * bindings/js/kjs_css.h:
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNodeList::DOMNodeList):
- (KJS::DOMExceptionConstructor::DOMExceptionConstructor):
- (KJS::DOMExceptionConstructor::getOwnPropertySlot):
- (KJS::):
- (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
- * bindings/js/kjs_dom.h:
- (KJS::DOMNamedNodesCollection::classInfo):
- * bindings/js/kjs_events.h:
- * bindings/js/kjs_html.cpp:
- (KJS::):
- 2006-06-04 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9031
- REGRESSION: Crash when closing tabs on newegg.com
- - removed a no-longer-needed Win32-specific workaround (not reviewed)
- * bindings/js/kjs_window.cpp: Added include of <wtf/MathExtras.h>.
- (WebCore::floatFeature): Remove WIN32 ifdef around isnan.
- (WebCore::toJS): Add null checks.
- 2006-06-04 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9176
- REGRESSION: repro crash in WebCore::StringImpl::hash() const + 28 (StringImpl.h:67)
- Test: fast/loader/link-no-URL.html
- * loader/Cache.h:
- * loader/Cache.cpp:
- (WebCore::Cache::updateCacheStatus): Removed the URL parameter. Instead get the URL
- from the cached object itself. Callers were passing in the wrong URL. When it was a
- null string, it caused the crash mentioned above. But in other cases it may have
- caused some other minor problems as well. Added an assert to catch cases where the
- URL is null (should never happen).
- (WebCore::Cache::requestImage): Changed call site to not pass URL.
- (WebCore::Cache::requestStyleSheet): Ditto.
- (WebCore::Cache::requestScript): Ditto.
- (WebCore::Cache::requestXSLStyleSheet): Ditto.
- (WebCore::Cache::requestXBLDocument): Ditto.
- 2006-06-04 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=7291
- REGRESSION: delete key does not work in isIndex fields
- * platform/mac/WebCoreTextField.mm:
- (inputElement): Added. Helper function to get the Objective-C wrapper for an
- input element associated with a QTextEdit. Returns nil if the element is not
- an input element. The bug was caused by passing a non-input element to the
- delegate methods.
- (-[KWQTextFieldController controlTextDidBeginEditing:]): Use inputElement
- and don't make the delegate call at all if there is none. This happens only
- with isindex elements; it's not important to have auto-fill work with those.
- (-[KWQTextFieldController controlTextDidEndEditing:]): Ditto.
- (-[KWQTextFieldController controlTextDidChange:]): Ditto.
- (-[KWQTextFieldController control:textShouldEndEditing:]): Ditto.
- (-[KWQTextFieldController control:textView:doCommandBySelector:]): Ditto.
- (-[KWQTextFieldController textView:shouldHandleEvent:]): Ditto.
- 2006-06-04 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8995
- memory leak in XPath code -- seen in layout tests
- - fixed malloc error on exit due to SVGDOMImplementation destructor
- - attempted to fix the no-XPATH_SUPPORT build by adding an #if
- - changed around includes and header-file formatting in XPath code
- * bindings/scripts/CodeGeneratorJS.pm: Include PlatformString.h when
- generating the bindings for XPathNSResolver.
- * dom/DOMImplementation.h: Added a virtual destructor for the benefit of
- SVGDOMImplementation.
- * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::~DOMImplementation): Added.
- * ksvg2/svg/SVGDOMImplementation.h: Reformatted a bit, removed unneeded declarations.
- * ksvg2/svg/SVGDOMImplementation.cpp:
- (SVGDOMImplementation::~SVGDOMImplementation): Remove commented-out code.
- (SVGDOMImplementation::createDocument): Remove a reference to KDOMView.
- * xpath/XPathExpression.cpp:
- (WebCore::XPathExpression::createExpression): Called release to avoid a tiny bit of
- reference count churn.
- (WebCore::XPathExpression::evaluate): Set exception code explicitly, because the code
- relies on it being 0 when the function succeeds.
- * xpath/XPathResult.cpp:
- (WebCore::InvalidatingEventListener::InvalidatingEventListener): Removed
- unneeded target node data member.
- (WebCore::XPathResult::XPathResult): Updated for enum name changes and
- InvalidatingEventListener name change. Added an assertion.
- * xpath/impl/XPathFunctions.h: Removed the FunctionLibrary class. Changed the parameter
- for createFunction to be a String instead of char*.
- * xpath/impl/XPathFunctions.cpp: Got rid of local implementation of "round", and
- used <wtf/MathExtras.h> instead. Also removed unused Interval::asString. Marked all
- the Interval functions inline.
- (WebCore::XPath::FunSubstring::doEvaluate): Use lround() instead of (long)round().
- (WebCore::XPath::FunLang::doEvaluate): Removed some unneeded temporary String variables.
- Use equalIgnoringCase() instead of calling lower() on two strings.
- (WebCore::XPath::createFunctionMap): Changed how this works so that it's all local to
- this function. Also removed a duplicate entry for the "last" function.
- (WebCore::XPath::createFunction): Changed from a member function to a separate function.
- Also changed so that if the args are not used in the function they are deleted.
- This was one of the sources of the storage leaks.
- * xpath/impl/XPathGrammar.y: Put XPATH_SUPPORT ifdef in. Replaced <num> with values of
- specific types (numop, eqop). Updated for name change from AxisType to Axis. Changed
- tokens that were declared as <str> but weren't actually using the string to be
- declared with no type (PLUS, MINUS, OR, AND, DOTDOT, SLASHSLASH). Replaced use of
- unregisterString, unregisterPredicateVector, and unregisterExpressionVector to
- call delete functions instead that both unregister and delete. Change call sites for
- createFunction to just use the String, removing the deprecatedString().latin1() call
- that is no longer needed. Added a call to unregisterParseNode that was missing in the
- "FilterExpr DescendantOrSelf RelativeLocationPath" production.
- * xpath/impl/XPathParser.h: Changed Token to hold a String, Step::Axis, NumericOp::Opcode,
- and EqTestOp::Opcode. The token ID number tells us which to use. Rearranged to put the private
- part of the Parser class last. Moved a number of private things inside the cpp file.
- * xpath/impl/XPathParser.cpp:
- (WebCore::XPath::charCat): Made this a separate function, instead of a static member.
- (WebCore::XPath::isAxisName): Ditto. Also put the global axis map inside the function,
- allowing use of a map instead of a map pointer.
- (WebCore::XPath::isNodeTypeName): Ditto.
- (WebCore::XPath::Parser::isOperatorContext): Made this const.
- (WebCore::XPath::Parser::makeTokenAndAdvance): Got rid of the "int" version of this.
- By using the actual types, we can safely use overload instead.
- (WebCore::XPath::Parser::lexString): Use substring() instead of deprecatedString().mid().
- (WebCore::XPath::Parser::lexNumber): Ditto.
- (WebCore::XPath::Parser::lexNCName): Changed to return a bool and a String instead of a
- Token. This avoids the hack of using a token value of "ERROR + 1" which I found quite
- confusing and is also a bit more explicit.
- (WebCore::XPath::Parser::lexQName): Ditto.
- (WebCore::XPath::Parser::nextTokenInternal): Changed to adapt to the changes above and
- to remove some unneeded else statements.
- (WebCore::XPath::Parser::lex): Changed the logic that sets up yylval to use the token ID
- to decide what the type is. This matches what the grammar expects, and removes the need
- for the token object to track which part of the value is good and the need to reserve 0
- to have a special meaning.
- (WebCore::XPath::Parser::parseStatement): Added code to delete the predicates and the
- expressions in the predicate and expression vectors. Before, we were only deleting
- the vectors. This was one of the sources of the storage leaks.
- (WebCore::XPath::Parser::deletePredicateVector): Renamed, and changed to delete
- the vector. However this does not delete the predicates in the vector.
- (WebCore::XPath::Parser::deleteExpressionVector): Renamed, and changed to delete
- the vector. However this does not delete the expressions in the vector.
- (WebCore::XPath::Parser::deleteString): Renamed, and changed to delete the string.
- * xpath/impl/XPathPredicate.h:
- * xpath/impl/XPathPredicate.cpp:
- (WebCore::XPath::NumericOp::NumericOp): Changed opcode from an int to an enum, and
- renamed to "opcode" instead of "opCode".
- (WebCore::XPath::NumericOp::doEvaluate): More of the same.
- (WebCore::XPath::EqTestOp::EqTestOp): Ditto.
- (WebCore::XPath::EqTestOp::doEvaluate): Ditto.
- (WebCore::XPath::LogicalOp::LogicalOp): Ditto.
- (WebCore::XPath::LogicalOp::shortCircuitOn): Ditto.
- (WebCore::XPath::Predicate::evaluate): Removed an unneeded "new".
- * xpath/impl/XPathStep.h:
- * xpath/impl/XPathStep.cpp: Renamed AxisType to Axis. Removed unused axisAsString
- function and default constructor.
- * xpath/impl/XPathValue.h: Renamed the type constants to have a Value suffix,
- instead of the underscore suffix used before on NodeVector and String.
- * xpath/impl/XPathValue.cpp: Updated for name change. Added asserts.
- * xpath/impl/XPathVariableReference.cpp: (WebCore::XPath::VariableReference::doEvaluate):
- Use a reference instead of a pointer.
- * xpath/XPathEvaluator.cpp:
- * xpath/XPathEvaluator.h:
- * xpath/XPathExpression.h:
- * xpath/XPathNSResolver.cpp:
- * xpath/XPathNSResolver.h:
- * xpath/XPathNamespace.cpp:
- * xpath/XPathNamespace.h:
- * xpath/XPathResult.h:
- * xpath/impl/XPathExpressionNode.cpp:
- * xpath/impl/XPathExpressionNode.h:
- * xpath/impl/XPathPath.cpp:
- * xpath/impl/XPathPath.h:
- * xpath/impl/XPathUtil.cpp:
- * xpath/impl/XPathUtil.h:
- * xpath/impl/XPathVariableReference.h:
- Reformatted and changed includes around; no substantive changes.
- 2006-06-04 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by hyatt.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9213
- Absolutely positioned objects with relatively positioned inline
- containing blocks are rendered incorrectly
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::containingBlockWidthForPositioned):
- (WebCore::RenderBox::containingBlockHeightForPositioned):
- (WebCore::RenderBox::calcAbsoluteHorizontal):
- (WebCore::RenderBox::calcAbsoluteHorizontalValues):
- (WebCore::RenderBox::calcAbsoluteVertical):
- (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
- (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
- * rendering/RenderBox.h:
- 2006-06-04 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=9035
- document.evaluate and createNSResolver miss on namespaced elements
-
- * xpath/XPathExpression.cpp:
- (WebCore::XPathExpression::createExpression):
- Pass the resolver to the parser.
-
- * xpath/XPathResult.cpp:
- (WebCore::XPathResult::iterateNext):
- Fix off-by-one error.
-
- * xpath/impl/XPathExpressionNode.h:
- (WebCore::XPath::EvaluationContext::EvaluationContext):
- Get rid of the resolver in the evaluation context.
-
- * xpath/impl/XPathGrammar.y:
- Fetch the resolver from the parser. Only return the local name.
-
- * xpath/impl/XPathParser.cpp:
- (WebCore::XPath::Parser::parseStatement):
- * xpath/impl/XPathParser.h:
- (WebCore::XPath::Parser::resolver):
- Update to hold the resolver.
-
- * xpath/impl/XPathStep.cpp:
- (WebCore::XPath::Step::Step):
- If the parser has stored a namespace URI, set it.
-
- (WebCore::XPath::Step::nodeTestMatches):
- Check namespace URIs.
-
- * xpath/impl/XPathStep.h:
- Add m_namespaceURI.
- 2006-06-03 Rob Buis <buis@kde.org>
- Reviewed by mjs. Tweaked and landed by ddkilzer.
- http://bugs.webkit.org/show_bug.cgi?id=7281
- With java disabled wrong information is displayed.
- Test: fast/replaced/applet-rendering-java-disabled.html
- Match WinIE, render applet content inline when java is
- disabled.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderEmptyApplet.cpp and RenderEmptyApplet.h.
- * WebCore.xcodeproj/project.pbxproj: Ditto.
- * WebCoreSources.bkl: Ditto.
- * html/HTMLAppletElement.cpp:
- (WebCore::HTMLAppletElement::createRenderer):
- * rendering/RenderEmptyApplet.cpp: Removed.
- * rendering/RenderEmptyApplet.h: Removed.
- 2006-06-03 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9252
- REGRESSION: Very odd roll-over issues (content disappearing)
- Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html
- * html/HTMLLinkElement.cpp:
- (WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
- loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
- count correct.
- 2006-06-03 Darin Adler <darin@apple.com>
- - fix Windows build
- * platform/Widget.h: Moved scaleFactor function out of Apple-specific
- section of the header into the common part.
- 2006-06-03 Beth Dakin <bdakin@apple.com>
- Reviewed by Darin.
- Fix for <rdar://problem/4537274> HiDPI: <canvas> needs to apply a
- scale. <canvas> needs to scale itself along with whatever scale
- factor is set on the window.
- * html/HTMLCanvasElement.cpp:
- (WebCore::HTMLCanvasElement::createDrawingContext): Get the scale
- factor and use it to create a larger buffer and to scale the
- CGContext.
- * platform/Widget.h: Provide a new function that returns the user
- space scale factor.
- * platform/mac/WidgetMac.mm:
- (WebCore::Widget::scaleFactor): Get the scale factor from the
- window and return it.
- * platform/win/WidgetWin.cpp:
- (WebCore::Widget::scaleFactor): Just return 1.0f for now.
- 2006-06-03 Steve Falkenburg <sfalken@apple.com>
- Reviewed by hyatt.
- Don't send empty referrers. Fixes image load fail on Spinneret default content.
- * platform/win/TransferJobWin.cpp:
- (WebCore::TransferJob::start):
- 2006-06-02 Adele Peterson <adele@apple.com>
- Reviewed by Darin.
- Windows theme for textareas. Also made some formatting changes.
- * rendering/RenderThemeWin.cpp:
- (WebCore::RenderThemeWin::supportsFocus):
- (WebCore::RenderThemeWin::getThemeData):
- (WebCore::RenderThemeWin::adjustButtonStyle):
- (WebCore::RenderThemeWin::adjustTextFieldStyle):
- (WebCore::RenderThemeWin::adjustTextAreaStyle):
- (WebCore::RenderThemeWin::paintTextArea):
- * rendering/RenderThemeWin.h:
- (WebCore::RenderThemeWin::supportsHover):
- 2006-06-02 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
- Reviewed by Hyatt, checked in by Tim H.
- Explicitly run perl on *.pl files instead of relying
- on Windows shell figuring out which program to run for
- this extention.
- * DerivedSources.make:
- 2006-06-02 David Carson <dacarson@gmail.com>
- Reviewed by Hyatt, checked in by Tim H.
- fixes http://bugs.webkit.org/show_bug.cgi?id=9115
- Changed RenderLayer to only render layers that are not
- totally transparent.
- * rendering/RenderLayer.cpp
- (RenderLayer::paintLayer):
- Changed function to also check if the layer is totally transparent
- and if it is, don't bother painting it.
- 2006-06-02 Rob Buis <buis@kde.org>
- Reviewed by Hyatt, checked in by Tim H.
- http://bugs.webkit.org/show_bug.cgi?id=8223
- WebKit fails to update style on element via DOM
- Handle !important by detecting it and using a different code
- path from normal priority.
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSStyleDeclaration::put):
- * css/CSSStyleDeclaration.cpp:
- (WebCore::CSSStyleDeclaration::setProperty):
- * css/CSSStyleDeclaration.h:
- 2006-06-02 Darin Adler <darin@apple.com>
-
- Reviewed by Geoff, checked in by Maciej.
-
- - fix http://bugs.webkit.org/show_bug.cgi?id=9236
- REGRESSION: focus method does not work on some elements before they are laid out
-
- * dom/Element.cpp: (WebCore::Element::focus): Do the updateLayout call before
- calling isFocusable, since isFocusable looks at the size of the renderer.
-
- 2006-06-02 Steve Falkenburg <sfalken@apple.com>
- Reviewed by darin.
- Platform hookup fixes
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::urlSelected):
- (WebCore::FrameWin::setTitle):
- (WebCore::FrameWin::setStatusBarText):
- * bridge/win/FrameWin.h:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::overrideMediaType):
- * platform/win/TransferJobWin.cpp:
- (WebCore::TransferJobWndProc):
- (WebCore::TransferJob::start):
- (WebCore::TransferJob::fileLoadTimer):
- (WebCore::TransferJob::cancel):
- 2006-06-02 Rémi Zara <remi_zara@mac.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=3379
- attr(X) does not work
- Test: fast/css-generated-content/016.html
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::canShareStyleWithElement): Don't share style
- if the unique bit is set.
- (WebCore::CSSStyleSelector::applyProperty): When applying the "attr" property,
- set the unique bit and add to m_selectorAttrs.
- * rendering/render_style.cpp: Did a lot of reformatting, and this one real change.
- (WebCore::RenderStyle::RenderStyle): Initialize m_unique to false.
- * rendering/render_style.h:
- (WebCore::RenderStyle::unique): Added. Returns value of m_unique.
- (WebCore::RenderStyle::setUnique): Added. Sets m_unique.
- 2006-06-02 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by mjs.
- http://bugs.webkit.org/show_bug.cgi?id=9183
- Finish renaming of RenderCanvas to RenderView
- * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView".
- 2006-06-01 Darin Adler <darin@apple.com>
- - try to fix Windows build
- * bridge/win/FrameWin.cpp: Added include of Decoder.h.
- 2006-06-01 Darin Adler <darin@apple.com>
- Reviewed by Maciej.
- - WebCore doesn't need to load WebKit images any more; removed code for that
- * WebCore.exp: Removed WebCoreImageRendererFactory.
- * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRendererFactory.h/mm.
- * bridge/mac/WebCoreFrameBridge.mm: Removed include of WebCoreImageRendererFactory.h.
- * platform/mac/ImageMac.mm: Removed include of WebCoreImageRendererFactory.h.
- * platform/mac/WebCoreImageRendererFactory.h: Removed.
- * platform/mac/WebCoreImageRendererFactory.m: Removed.
- 2006-06-01 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Geoff, tweaked a bit by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=9064
- Split dom2_traversalimpl.* into separate files (one class per file).
- * WebCore.xcodeproj/project.pbxproj: Updated for new files.
- * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
- * bindings/js/kjs_traversal.h:
- * bindings/scripts/CodeGeneratorJS.pm:
- * bindings/objc/DOM.mm:
- * dom/Document.cpp:
- * dom/Document.h:
- Updated includes.
- * dom/NodeFilter.cpp: Added.
- * dom/NodeFilter.h: Added.
- * dom/NodeFilterCondition.cpp: Added.
- * dom/NodeFilterCondition.h: Added.
- * dom/NodeIterator.cpp: Added.
- * dom/NodeIterator.h: Added.
- * dom/Traversal.cpp: Added.
- * dom/Traversal.h: Added.
- * dom/TreeWalker.cpp: Added.
- * dom/TreeWalker.h: Added.
- * dom/dom2_traversalimpl.cpp: Removed.
- * dom/dom2_traversalimpl.h: Removed.
- 2006-06-01 David Carson <dacarson@gmail.com>
- Reviewed by Maciej and Adele
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8398
- REGRESSION: LABEL in OPTION element is clobbering display #TEXT
- Patch provided by Darin.
-
- * rendering/RenderSelect.cpp
- (RenderSelect::updateFromElement):
- Changed to use the containing text by default, and not the label text
- 2006-06-01 David Carson <dacarson@gmail.com>
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8646
- Correcting the value returned for window.screen.pixelDepth and
- window.screen.colorDepth
-
- * platform/mac/ScreenMac.mm
- (screenDepth):
- Changed to return the BitsPerPixelFromDepth rather than the WindowDepth
- 2006-06-01 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- Missed an initialization in my last checkin which caused too many
- resizers to be drawn.
- * rendering/render_style.cpp: (WebCore::resize):
- Initialize resize to RESIZE_NONE.
- 2006-06-01 Dave Hyatt <hyatt@apple.com>
- Implement form POST using WinINet. This code is crazy... CRAZY!
- * platform/TransferJobInternal.h:
- (WebCore::TransferJobInternal::TransferJobInternal):
- * platform/win/CookieJarWin.cpp:
- (WebCore::setCookies):
- (WebCore::cookies):
- * platform/win/TransferJobWin.cpp:
- (WebCore::TransferJobWndProc):
- (WebCore::TransferJob::start):
- 2006-06-01 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=9216
- Implement CSS3 resize property
- * css/html4.css: Sets resize:both for textareas. This won't affect old-style textareas.
- * css/CSSPropertyNames.in: Added resize property.
- * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Added case for CSS_PROP_RESIZE.
- * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
- * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): ditto.
- * rendering/render_style.cpp: (WebCore::StyleCSS3InheritedData): Initialize resize.
- * rendering/render_style.h:
- (WebCore::): Added EResize enum.
- (WebCore::RenderStyle::resize):
- (WebCore::RenderStyle::setResize):
- (WebCore::RenderStyle::initialResize):
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_resizeLayer to keep track of a layer that has begun resizing.
- (WebCore::FrameViewPrivate::reset): Reset m_resizeLayer.
- (WebCore::FrameView::handleMousePressEvent): If the mouse was pressed in a layer's resize control, then put the layer into resize mode.
- (WebCore::selectCursor): Updated so we get a pointer cursor for the resize control.
- (WebCore::FrameView::handleMouseMoveEvent): If there's a layer currently resizing, then tell the layer to continue resizing.
- (WebCore::FrameView::handleMouseReleaseEvent): If there's a layer currently resizing, then pull it out of resize mode.
- * rendering/RenderBlock.cpp: (WebCore::RenderBlock::isPointInScrollbar): Updated so the resize control isn't considered part of the scrollbar.
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::RenderLayer): Initialize m_inResizeMode
- (WebCore::RenderLayer::updateLayerPositions): Calls positionResizeControl.
- (WebCore::RenderLayer::resize): Added. Sets a new width and height based on the current mouse point.
- (WebCore::RenderLayer::isPointInResizeControl): Added.
- (WebCore::RenderLayer::positionResizeControl): Added.
- (WebCore::RenderLayer::positionScrollbars): Calls positionResizeControl.
- (WebCore::RenderLayer::paintScrollbars): Calls positionResizeControl.
- (WebCore::RenderLayer::paintResizeControl): Added.
- (WebCore::RenderLayer::paintLayer): Calls paintResizeControl.
- * rendering/RenderLayer.h: Added m_inResizeMode.
- (WebCore::RenderLayer::resizeControlRect):
- (WebCore::RenderLayer::setResizeControlRect):
- (WebCore::RenderLayer::inResizeMode): Added.
- (WebCore::RenderLayer::setInResizeMode): Added.
- * platform/mac/ImageMac.mm: (WebCore::Image::loadResource): Moved code from WebImageRendererFactory. Now loads images from WebCore's resources.
- WebImageRendererFactory is no longer used and should be removed.
- * Resources/missingImage.tiff: Added. Copied from WebKit.
- * WebCore.xcodeproj/project.pbxproj: Added missingImage.tiff
- * loader/Cache.cpp: (WebCore::Cache::init): Updated name from missing_image to missingImage.
- * rendering/RenderTheme.h:
- * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paintResizeControl): Added.
- * rendering/RenderThemeMac.h:
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::RenderThemeMac): Initialize resizeCornerImage.
- (WebCore::RenderThemeMac::paintResizeControl): Paints resizeCornerImage.
- 2006-06-01 Brady Eidson <beidson@apple.com>
- Reviewed by Maciej.
- Added the beginnings of sqlite-based code in a WebCore
- based version of the Icon Database. Right now the code
- is very loosely hooked up through a Bridge and only
- creates an sqlite3 database.
- There are also changes to our String classes to allow appending
- a single character to a String without creating a temporary object.
- * WebCore.exp:
- -Added a symbol export
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreIconDatabaseBridge.h: Added.
- * bridge/mac/WebCoreIconDatabaseBridge.mm: Added.
- (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
- (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
- (-[WebCoreIconDatabaseBridge isOpen]):
- -This class will eventually shadow WebIconDatabase but for now
- is a minimal interface to make the sql code live
- * icon: Added.
- * icon/IconDatabase.cpp: Added.
- -This class will eventually resemble WebIconDatabase but for now
- is minimal just to make the sql code live
- (WebCore::IconDatabase::sharedIconDatabase):
- (WebCore::IconDatabase::IconDatabase):
- (WebCore::IconDatabase::open):
- -This method calls a mkdir to make sure the target directory
- exists
- (WebCore::IconDatabase::close):
- (WebCore::IconDatabase::~IconDatabase):
- * icon/IconDatabase.h: Added.
- (WebCore::IconDatabase::isOpen):
- * platform/Logging.cpp:
- * platform/Logging.h:
- -Added an IconDatabase logging channel
- * platform/PlatformString.h:
- * platform/String.cpp:
- (WebCore::String::append):
- * platform/StringImpl.cpp:
- (WebCore::StringImpl::append):
- * platform/StringImpl.h:
- -Added append(char) and append(UChar) to allow appending a
- single character without creating a temporary object. Required
- to facilitate manually adding a null character to a unicode 16
- string
- 2006-06-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and landed by Anders.
- - fixed all places in the Canvas to RenderView rename patch where
- view() should have been changed to frameView().
- * kwq/WebCoreAXObject.mm:
- (-[WebCoreAXObject position]):
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::layoutBlock):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::paintBackgroundExtended):
- * rendering/RenderTreeAsText.cpp:
- (externalRepresentation):
- 2006-06-01 Geoffrey Garen <ggaren@apple.com>
- Fix by Mitz. Reviewed, tweaked, tested, landed by me.
- - Fixed http://bugs.webkit.org/show_bug.cgi?id=9113
- REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with
- a readystate == 4
-
- An XMLHttpRequest must be added to the DOMObject cache so that its
- DOM implementation object can protect it, and by extension, its event
- listeners.
-
- This design seems slightly backwards to me -- the bindings should know
- about the DOM, not the other way around -- but I'm restoring it for
- now to fix the regression.
-
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
- (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
- 2006-06-01 Anders Carlsson <acarlsson@apple.com>
- * platform/KURL.cpp:
- (equalIgnoringRef):
- Whoops. Fix build.
-
- 2006-06-01 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=6309
- multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
-
- * bindings/js/kjs_window.cpp:
- (KJS::Location::put):
- Handle the case where the hash starts with a "#". Also, don't do anything if the previous and new hashes
- are equal.
-
- * bridge/BrowserExtension.h:
- * bridge/mac/BrowserExtensionMac.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::historyURL):
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- New function historyURL which returns the complete URL for a given item in the history.
-
- * page/Frame.cpp:
- (WebCore::Frame::scheduleLocationChange):
- (WebCore::Frame::scheduleHistoryNavigation):
- If the URL of the new location only differs in the hash, don't schedule the load. Instead, load it
- directly.
-
- * platform/KURL.cpp:
- * platform/KURL.h:
- Add equalsIgnoringRef which returns whether two URLs are equal, ignoring the ref.
- 2006-06-01 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9212
- dispatchEvent13.html crashes under GuardMalloc
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::addEventListener):
- (WebCore::EventTargetNode::removeEventListener):
- (WebCore::EventTargetNode::handleLocalEvents):
-
- (WebCore::EventTargetNode::removeHTMLEventListener):
- (WebCore::EventTargetNode::getHTMLEventListener):
- * dom/EventTargetNode.h:
- Make the list of registered event listeners refcount the listeners
- by using a value list of RefPtr objects.
-
- Set removed flag to true in removeEventListener
- Only invoke event listeners if they don't have the removed flag.
-
- * dom/dom2_eventsimpl.cpp:
- (WebCore::RegisteredEventListener::RegisteredEventListener):
- * dom/dom2_eventsimpl.h:
- Make RegisteredEventListener refcounted.
-
- (WebCore::RegisteredEventListener::removed):
- (WebCore::RegisteredEventListener::setRemoved):
- Add removed flag and getter and setter
- 2006-06-01 Justin Garcia <justin.garcia@apple.com>
- Reviewed by harrison
-
- <rdar://problem/4567752> When forwarding a message, pressing TAB key to place caret in body actually selects the entire message instead
- * dom/Element.cpp:
- (WebCore::Element::focus):
- 2006-06-01 David Kilzer <ddkilzer@kilzer.net>
- Reviewed by darin.
- http://bugs.webkit.org/show_bug.cgi?id=9144
- Test for Bug 8079 (REGRESSION: Redraw from page cache does not show visited links)
- * manual-tests/redraw-page-cache-visited-links.html: Added.
- * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added.
- 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9124
- Drop shadow obscures "add more stuff" bubble at live.com
- Test: fast/css/find-next-layer.html
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::findNextLayer): Fixed a bug where this function could reach
- two levels down in the layer tree and return 0.
- 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Geoff.
- - http://bugs.webkit.org/show_bug.cgi?id=9109
- Remove bogus assertion in RenderBlock::tabWidth
- Changed the uninitialized value of m_tabWidth to -1 and removed the
- assertion that it cannot be 0.
- * rendering/RenderBlock.cpp:
- (WebCore:::RenderBlock::RenderBlock):
- (WebCore::RenderBlock::setStyle):
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::tabWidth):
- 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9100
- Absolutely positioned replaced elements with all non-auto
- values are rendered incorrectly
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Add support for case when all values are specified.
- (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto
- 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9012
- Row height not updated when cell heights change
- Test: fast/table/row-height-recalc.html
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::setStyle): Mark the section as needing recalculation
- if the height property changed.
- * rendering/RenderTableRow.cpp:
- (WebCore::RenderTableRow::setStyle): Ditto.
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::recalcCells): Initialize the grid row height
- to the height of the row element (like addChild() does).
- 2006-05-31 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=8969
- REGRESSION: typing in textfield repaints whole web page at gamefaqs.com
- No test possible (no functionality change)
- * dom/Document.cpp:
- (WebCore::Document::updateLayout): Changed to ensure that pending subtree
- layouts are performed too.
- * page/Frame.cpp:
- (WebCore::Frame::forceLayout): Force a full layout.
- * page/FrameView.cpp:
- (WebCore::FrameViewPrivate::reset):
- (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
- at d->layoutRoot if it's non-zero and allowSubtree is true.
- (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
- normal relayout by clearing d->layoutRoot and propagating needsLayout to the
- root.
- (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
- * page/FrameView.h:
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
- parameter. FrameView passes false to force marking all the way to the root
- when turning a pending subtree relayout into a full relayout. Otherwise,
- marking stops at the first textField (or at the root) and
- relayout of the last object reached is scheduled.
- (WebCore::RenderObject::scheduleRelayout):
- * rendering/RenderObject.h:
- 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Darin.
- patch for <http://bugs.webkit.org/show_bug.cgi?id=8910>
- Bug 8910: Various code cleanups in RenderBox
-
- Clean up with some slight optimizations.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::contentWidth):
- (WebCore::RenderBox::contentHeight):
- (WebCore::RenderBox::setPos):
- (WebCore::RenderBox::calcWidth):
- (WebCore::RenderBox::calcWidthUsing):
- * rendering/RenderBox.h:
- 2006-05-31 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt.
- patch for <http://bugs.webkit.org/show_bug.cgi?id=8899>
- Bug 8899: Removes some unneeded code from RenderBox
-
- Removes the use of WidthType where not needed to simplify
- the code a little.
-
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcWidthUsing):
- (WebCore::RenderBox::sizesToIntrinsicWidth):
- (WebCore::RenderBox::calcReplacedWidth):
- (WebCore::RenderBox::calcReplacedWidthUsing):
- (WebCore::RenderBox::calcReplacedHeight):
- (WebCore::RenderBox::calcReplacedHeightUsing):
- * rendering/RenderBox.h:
- (WebCore::):
- (WebCore::RenderBox::renderName):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::calcReplacedWidth):
- (WebCore::RenderImage::calcReplacedHeight):
- 2006-05-31 Rob Buis <buis@kde.org>
- Reviewed by Geoff.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8455
- selectedIndex for a select after a Form reset() has wrong value
- Make sure the list items are reset properly by selecting
- the first option in case no options have the selected attribute
- set.
- * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::reset):
- 2006-05-31 Rob Buis <buis@kde.org>
- Reviewed by Geoff.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8024
- "Go" button (search) doesn't work at fifa.com (document.all.FormName)
- Allow input elements with name attributes as possible named
- items for document.all.
- * html/HTMLCollection.cpp:
- (WebCore::HTMLCollection::checkForNameMatch):
- (WebCore::HTMLCollection::updateNameCache):
- 2006-05-31 Dave Hyatt <hyatt@apple.com>
- Adding stubs for BMP/ICO/XBM image decoders. They don't
- do anything yet though.
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/cairo/ImageSourceCairo.cpp:
- (WebCore::createDecoder):
- * platform/image-decoders/bmp: Added.
- * platform/image-decoders/bmp/BMPImageDecoder.cpp: Added.
- (WebCore::BMPImageDecoder::isSizeAvailable):
- (WebCore::BMPImageDecoder::frameBufferAtIndex):
- * platform/image-decoders/bmp/BMPImageDecoder.h: Added.
- * platform/image-decoders/ico: Added.
- * platform/image-decoders/ico/ICOImageDecoder.cpp: Added.
- (WebCore::ICOImageDecoder::isSizeAvailable):
- (WebCore::ICOImageDecoder::frameBufferAtIndex):
- * platform/image-decoders/ico/ICOImageDecoder.h: Added.
- * platform/image-decoders/xbm: Added.
- * platform/image-decoders/xbm/XBMImageDecoder.cpp: Added.
- (WebCore::XBMImageDecoder::isSizeAvailable):
- (WebCore::XBMImageDecoder::frameBufferAtIndex):
- * platform/image-decoders/xbm/XBMImageDecoder.h: Added.
- 2006-05-31 David Hyatt <hyatt@apple.com>
- Fix for the gmail tab-focus-stealing bug.
- Reviewed by darin
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction):
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow):
- * bridge/mac/FrameMac.h:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::focusWindow):
- (WebCore::FrameMac::unfocusWindow):
- * bridge/mac/WebCoreFrameBridge.h:
- * page/Frame.h:
- * platform/Widget.h:
- * platform/mac/WidgetMac.mm:
- * platform/win/TemporaryLinkStubs.cpp:
- (FrameWin::focusWindow):
- * platform/win/WidgetWin.cpp:
- 2006-05-31 Beth Dakin <bdakin@apple.com>
- Reviewed by Hyatt.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=6755 CSS3:
- Borders rounded with border-radius don't draw the roundings
- This patch does not draw all of the different border styles
- perfectly, so I have filed a few followup bugs that I will
- reference from this Bugzilla.
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::drawArc): drawArc() has different
- parameters now, but mostly this needs to be implemented to match
- the Mac side later.
- (WebCore::GraphicsContext::addRoundedRectClip): Just a stub.
- Implement this later.
- (WebCore::GraphicsContext::addInnerRoundedRectClip): Just a stub.
- Implement this later.
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::drawArc): drawArc() now handles drawing
- elliptical arcs as well as circular arcs, it also takes a thickness
- parameter to draw an arc of a given thickness and draws with the
- appropriate pen style.
- (WebCore::GraphicsContext::addInnerRoundedRectClip): Adds a clip to
- the inside of an arc instead of to the outside which is already
- done by addRoundedClipRect()
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::drawBorderArc): Draws the border arcs in
- the appropriate styles.
- (WebCore::RenderObject::paintBorder): Calls drawBorderArc() when
- border arcs are needed.
- * rendering/RenderObject.h:
- 2006-05-30 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- Add first-cut SVG JS bindings autogeneration.
- SVGSVGElement and various other support classes are generated.
- Various small style fixes.
- http://bugs.webkit.org/show_bug.cgi?id=4249
- * DerivedSources.make:
- * WebCore+SVG/RGBColor.cpp: Removed.
- * WebCore+SVG/RGBColor.h: Removed.
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createJSHTMLWrapper): renamed from createJSWrapper
- * bindings/js/JSHTMLElementWrapperFactory.h:
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNode::DOMNode):
- (KJS::DOMNode::toBoolean):
- (KJS::DOMNode::getOwnPropertySlot):
- (KJS::DOMNode::getValueProperty):
- (KJS::DOMNode::put):
- (KJS::DOMNode::putValueProperty):
- (KJS::DOMNode::toPrimitive):
- (KJS::DOMNode::toString):
- (KJS::DOMNodeProtoFunc::callAsFunction):
- (KJS::toEventTargetNode):
- (KJS::DOMEventTargetNode::getOwnPropertySlot):
- (KJS::DOMEventTargetNode::getValueProperty):
- (KJS::DOMEventTargetNode::put):
- (KJS::DOMEventTargetNode::putValueProperty):
- (KJS::DOMEventTargetNode::setListener):
- (KJS::DOMEventTargetNode::getListener):
- (KJS::DOMEventTargetNode::pushEventHandlerScope):
- (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
- (KJS::DOMNodeList::toPrimitive):
- (KJS::DOMNodeList::getValueProperty):
- (KJS::DOMNodeList::indexGetter):
- (KJS::DOMNodeList::nameGetter):
- (KJS::DOMNodeList::getOwnPropertySlot):
- (KJS::DOMNodeList::callAsFunction):
- (KJS::DOMNodeListFunc::callAsFunction):
- (KJS::toElement):
- (KJS::toDocumentType):
- (KJS::DOMNamedNodeMap::DOMNamedNodeMap):
- (KJS::DOMNamedNodeMap::~DOMNamedNodeMap):
- (KJS::DOMNamedNodeMap::lengthGetter):
- (KJS::DOMNamedNodeMap::indexGetter):
- (KJS::DOMNamedNodeMap::nameGetter):
- (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
- (KJS::toJS):
- (KJS::checkNodeSecurity):
- (KJS::getRuntimeObject):
- (KJS::DOMExceptionConstructor::getOwnPropertySlot):
- (KJS::DOMExceptionConstructor::getValueProperty):
- (KJS::getDOMExceptionConstructor):
- (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
- (KJS::DOMNamedNodesCollection::lengthGetter):
- (KJS::DOMNamedNodesCollection::indexGetter):
- (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
- * bindings/scripts/CodeGenerator.pm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * dom/Document.cpp:
- (WebCore::Document::implicitClose):
- * dom/Element.h:
- * dom/StyledElement.h:
- * ksvg2/bindings/idl/svg/SVGAngle.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGAnimatedLength.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGColor.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGDocument.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGElement.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGLength.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGMatrix.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGNumber.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGPoint.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGRect.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGSVGElement.idl: Removed.
- * ksvg2/bindings/idl/svg/SVGTransform.idl: Removed.
- * ksvg2/bindings/idl/svg/kdomdefs.idl: Removed.
- * ksvg2/bindings/js: Added.
- * ksvg2/bindings/js/JSSVGNumber.cpp: Added.
- (WebCore::):
- (WebCore::JSSVGNumber::~JSSVGNumber):
- (WebCore::JSSVGNumber::getOwnPropertySlot):
- (WebCore::JSSVGNumber::getValue):
- (WebCore::getJSSVGNumber):
- * ksvg2/bindings/js/JSSVGNumber.h: Added.
- (WebCore::JSSVGNumber::JSSVGNumber):
- (WebCore::JSSVGNumber::classInfo):
- * ksvg2/bindings/js/JSSVGPoint.cpp: Added.
- (WebCore::):
- (WebCore::JSSVGPoint::~JSSVGPoint):
- (WebCore::JSSVGPoint::getOwnPropertySlot):
- (WebCore::JSSVGPoint::getValueProperty):
- (WebCore::getJSSVGPoint):
- (WebCore::toFloatPoint):
- * ksvg2/bindings/js/JSSVGPoint.h: Added.
- (WebCore::JSSVGPoint::JSSVGPoint):
- (WebCore::JSSVGPoint::classInfo):
- (WebCore::JSSVGPoint::):
- (WebCore::JSSVGPoint::impl):
- * ksvg2/bindings/js/JSSVGRect.cpp: Added.
- (WebCore::):
- (WebCore::JSSVGRect::~JSSVGRect):
- (WebCore::JSSVGRect::getOwnPropertySlot):
- (WebCore::JSSVGRect::getValueProperty):
- (WebCore::getJSSVGRect):
- (WebCore::toFloatRect):
- * ksvg2/bindings/js/JSSVGRect.h: Added.
- (WebCore::JSSVGRect::JSSVGRect):
- (WebCore::JSSVGRect::classInfo):
- (WebCore::JSSVGRect::):
- (WebCore::JSSVGRect::impl):
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- (WebCore::CSSStyleSelector::applySVGProperty):
- * ksvg2/events/SVGZoomEvent.cpp:
- (SVGZoomEvent::SVGZoomEvent):
- (SVGZoomEvent::zoomRectScreen):
- (SVGZoomEvent::previousTranslate):
- (SVGZoomEvent::newTranslate):
- * ksvg2/events/SVGZoomEvent.h:
- * ksvg2/ksvg.h:
- (WebCore::):
- * ksvg2/misc/SVGDocumentExtensions.cpp:
- (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
- (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions):
- (WebCore::SVGDocumentExtensions::addTimeContainer):
- (WebCore::SVGDocumentExtensions::removeTimeContainer):
- (WebCore::SVGDocumentExtensions::startAnimations):
- (WebCore::SVGDocumentExtensions::pauseAnimations):
- (WebCore::SVGDocumentExtensions::unpauseAnimations):
- * ksvg2/misc/SVGDocumentExtensions.h:
- * ksvg2/svg/SVGAElement.h:
- * ksvg2/svg/SVGAngle.h:
- (WebCore::SVGAngle::):
- * ksvg2/svg/SVGAngle.idl: Added.
- * ksvg2/svg/SVGAnimateColorElement.cpp:
- (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
- (WebCore::SVGAnimateColorElement::handleTimerEvent):
- (WebCore::SVGAnimateColorElement::clampColor):
- * ksvg2/svg/SVGAnimateColorElement.h:
- * ksvg2/svg/SVGAnimateElement.cpp:
- (SVGAnimateElement::SVGAnimateElement):
- (SVGAnimateElement::handleTimerEvent):
- * ksvg2/svg/SVGAnimateElement.h:
- * ksvg2/svg/SVGAnimateTransformElement.cpp:
- (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
- (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
- (WebCore::SVGAnimateTransformElement::handleTimerEvent):
- (WebCore::SVGAnimateTransformElement::parseTransformValue):
- (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
- (WebCore::SVGAnimateTransformElement::initialMatrix):
- * ksvg2/svg/SVGAnimateTransformElement.h:
- * ksvg2/svg/SVGAnimatedLength.idl: Added.
- * ksvg2/svg/SVGAnimationElement.cpp:
- (SVGAnimationElement::closeRenderer):
- * ksvg2/svg/SVGAnimationElement.h:
- * ksvg2/svg/SVGCircleElement.h:
- * ksvg2/svg/SVGClipPathElement.h:
- * ksvg2/svg/SVGColor.cpp:
- (WebCore::SVGColor::SVGColor):
- (WebCore::SVGColor::rgbColor):
- (WebCore::SVGColor::setRGBColor):
- (WebCore::SVGColor::setRGBColorICCColor):
- (WebCore::SVGColor::setColor):
- (WebCore::SVGColor::color):
- * ksvg2/svg/SVGColor.h:
- (WebCore::SVGColor::):
- (WebCore::SVGColor::setRGBColor):
- * ksvg2/svg/SVGColor.idl: Added.
- * ksvg2/svg/SVGComponentTransferFunctionElement.h:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGDefsElement.h:
- * ksvg2/svg/SVGDescElement.h:
- * ksvg2/svg/SVGDocument.idl: Added.
- * ksvg2/svg/SVGElement.cpp:
- (WebCore::SVGElement::SVGElement):
- (WebCore::SVGElement::isSupported):
- (WebCore::SVGElement::id):
- (WebCore::SVGElement::setId):
- (WebCore::SVGElement::xmlbase):
- (WebCore::SVGElement::setXmlbase):
- (WebCore::SVGElement::ownerSVGElement):
- (WebCore::SVGElement::viewportElement):
- (WebCore::SVGElement::tryGetAttribute):
- (WebCore::SVGElement::tryGetAttributeNS):
- (WebCore::SVGElement::childShouldCreateRenderer):
- * ksvg2/svg/SVGElement.h:
- * ksvg2/svg/SVGElement.idl: Added.
- * ksvg2/svg/SVGEllipseElement.h:
- * ksvg2/svg/SVGEvent.idl: Added.
- * ksvg2/svg/SVGFEBlendElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.h:
- * ksvg2/svg/SVGFEComponentTransferElement.h:
- * ksvg2/svg/SVGFECompositeElement.h:
- * ksvg2/svg/SVGFEDiffuseLightingElement.h:
- * ksvg2/svg/SVGFEDistantLightElement.h:
- * ksvg2/svg/SVGFEFloodElement.h:
- * ksvg2/svg/SVGFEFuncAElement.h:
- * ksvg2/svg/SVGFEFuncBElement.h:
- * ksvg2/svg/SVGFEFuncGElement.h:
- * ksvg2/svg/SVGFEFuncRElement.h:
- * ksvg2/svg/SVGFEGaussianBlurElement.h:
- * ksvg2/svg/SVGFEImageElement.h:
- * ksvg2/svg/SVGFELightElement.h:
- * ksvg2/svg/SVGFEMergeElement.h:
- * ksvg2/svg/SVGFEMergeNodeElement.h:
- * ksvg2/svg/SVGFEOffsetElement.h:
- * ksvg2/svg/SVGFEPointLightElement.h:
- * ksvg2/svg/SVGFESpecularLightingElement.h:
- * ksvg2/svg/SVGFESpotLightElement.h:
- * ksvg2/svg/SVGFETileElement.h:
- * ksvg2/svg/SVGFETurbulenceElement.h:
- * ksvg2/svg/SVGFilterElement.h:
- * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
- * ksvg2/svg/SVGForeignObjectElement.h:
- * ksvg2/svg/SVGGElement.h:
- * ksvg2/svg/SVGGradientElement.h:
- * ksvg2/svg/SVGHelper.cpp:
- (WebCore::SVGHelper::PercentageOfViewport):
- (WebCore::SVGHelper::ParseSeperatedList):
- * ksvg2/svg/SVGImageElement.h:
- * ksvg2/svg/SVGLength.h:
- (WebCore::SVGLength::):
- * ksvg2/svg/SVGLength.idl: Added.
- * ksvg2/svg/SVGLineElement.h:
- * ksvg2/svg/SVGLinearGradientElement.h:
- * ksvg2/svg/SVGLocatable.cpp:
- (SVGLocatable::getBBox):
- * ksvg2/svg/SVGLocatable.h:
- * ksvg2/svg/SVGMarkerElement.h:
- * ksvg2/svg/SVGMaskElement.h:
- * ksvg2/svg/SVGMatrix.cpp:
- (SVGMatrix::inverse):
- (SVGMatrix::rotateFromVector):
- * ksvg2/svg/SVGMatrix.h:
- * ksvg2/svg/SVGMatrix.idl: Added.
- * ksvg2/svg/SVGNumber.idl: Added.
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::getPointAtLength):
- * ksvg2/svg/SVGPathElement.h:
- * ksvg2/svg/SVGPatternElement.cpp:
- (WebCore::SVGPatternElement::x):
- (WebCore::SVGPatternElement::y):
- (WebCore::SVGPatternElement::width):
- (WebCore::SVGPatternElement::height):
- (WebCore::SVGPatternElement::pushAttributeContext):
- (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
- (WebCore::SVGPatternElement::drawPatternContentIntoTile):
- (WebCore::SVGPatternElement::notifyClientsToRepaint):
- (WebCore::SVGPatternElement::notifyAttributeChange):
- (WebCore::SVGPatternElement::canvasResource):
- (WebCore::SVGPatternElement::getCTM):
- * ksvg2/svg/SVGPatternElement.h:
- * ksvg2/svg/SVGPoint.idl: Added.
- * ksvg2/svg/SVGPolyElement.h:
- * ksvg2/svg/SVGPolygonElement.h:
- * ksvg2/svg/SVGPolylineElement.h:
- * ksvg2/svg/SVGRadialGradientElement.h:
- * ksvg2/svg/SVGRect.idl: Added.
- * ksvg2/svg/SVGRectElement.h:
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::SVGSVGElement):
- (WebCore::SVGSVGElement::~SVGSVGElement):
- (WebCore::SVGSVGElement::viewport):
- (WebCore::SVGSVGElement::currentTranslate):
- (WebCore::SVGSVGElement::unsuspendRedraw):
- (WebCore::SVGSVGElement::getIntersectionList):
- (WebCore::SVGSVGElement::getEnclosureList):
- (WebCore::SVGSVGElement::checkIntersection):
- (WebCore::SVGSVGElement::checkEnclosure):
- (WebCore::SVGSVGElement::createSVGNumber):
- (WebCore::SVGSVGElement::createSVGPoint):
- (WebCore::SVGSVGElement::createSVGRect):
- (WebCore::SVGSVGElement::pauseAnimations):
- (WebCore::SVGSVGElement::unpauseAnimations):
- (WebCore::SVGSVGElement::animationsPaused):
- (WebCore::SVGSVGElement::getCurrentTime):
- (WebCore::SVGSVGElement::setCurrentTime):
- * ksvg2/svg/SVGSVGElement.h:
- (WebCore::SVGSVGElement::timeScheduler):
- * ksvg2/svg/SVGSVGElement.idl: Added.
- * ksvg2/svg/SVGScriptElement.h:
- * ksvg2/svg/SVGSetElement.cpp:
- (WebCore::SVGSetElement::SVGSetElement):
- (WebCore::SVGSetElement::handleTimerEvent):
- * ksvg2/svg/SVGSetElement.h:
- * ksvg2/svg/SVGStopElement.h:
- * ksvg2/svg/SVGStyleElement.h:
- * ksvg2/svg/SVGStyledElement.h:
- * ksvg2/svg/SVGStyledLocatableElement.cpp:
- (SVGStyledLocatableElement::getBBox):
- * ksvg2/svg/SVGStyledLocatableElement.h:
- * ksvg2/svg/SVGStyledTransformableElement.cpp:
- (SVGStyledTransformableElement::getBBox):
- * ksvg2/svg/SVGStyledTransformableElement.h:
- * ksvg2/svg/SVGSwitchElement.h:
- * ksvg2/svg/SVGSymbolElement.h:
- * ksvg2/svg/SVGTRefElement.h:
- * ksvg2/svg/SVGTSpanElement.h:
- * ksvg2/svg/SVGTextContentElement.cpp:
- (SVGTextContentElement::getStartPositionOfChar):
- (SVGTextContentElement::getEndPositionOfChar):
- (SVGTextContentElement::getExtentOfChar):
- (SVGTextContentElement::getCharNumAtPosition):
- (SVGTextContentElement::parseMappedAttribute):
- * ksvg2/svg/SVGTextContentElement.h:
- * ksvg2/svg/SVGTextElement.cpp:
- (WebCore::SVGTextElement::getBBox):
- * ksvg2/svg/SVGTextElement.h:
- * ksvg2/svg/SVGTextPositioningElement.h:
- * ksvg2/svg/SVGTitleElement.h:
- * ksvg2/svg/SVGTransform.h:
- (WebCore::SVGTransform::):
- * ksvg2/svg/SVGTransform.idl: Added.
- * ksvg2/svg/SVGUseElement.h:
- * ksvg2/svg/SVGViewElement.h:
- * page/Frame.cpp:
- (WebCore::Frame::Frame):
- (WebCore::Frame::pauseTimeouts):
- (WebCore::Frame::resumeTimeouts):
- * platform/Color.h:
- * rendering/RenderBR.h:
- * rendering/RenderBox.h:
- (WebCore::RenderBox::renderName):
- * rendering/RenderCanvas.h:
- (WebCore::RenderCanvas::view):
- * rendering/RenderContainer.h:
- * rendering/RenderFlexibleBox.h:
- * rendering/RenderFlow.h:
- (WebCore::RenderFlow::RenderFlow):
- * rendering/RenderInline.h:
- * rendering/RenderTableSection.h:
- * rendering/RenderTextFragment.h:
- (WebCore::RenderTextFragment::contentString):
- * xml/xmlattrs.in: Added.
- 2006-05-30 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Maciej.
- - Fixed <rdar://problem/4559720> window sizing: make javascript window
- and screen sizing methods and properties work @ HIDPI
-
- The general approach here is to change some ints to floats, make
- a few key functions that scale between WebView and window/screen
- coordinates, and change other functions that work with screen
- coordinates to use the scaling functions for their underlying
- implementations.
- * manual-tests/window-open-features.html: Removed.
- * manual-tests/window-sizing.html: Added. More test coverage.
- * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
- FloatRects, because window coordinates can be fractional when scaled
- to WebView/DOM coordinates.
- (KJS::floatFeature):
- (KJS::showModalDialog):
- (KJS::Window::getValueProperty):
- (KJS::constrainToVisible):
- (KJS::WindowFunc::callAsFunction):
- * bridge/BrowserExtension.h:
- * bridge/mac/BrowserExtensionMac.mm:
- (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
- code and replaced with calls to Page::windowRect and
- Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
- 'frameBridge,' respectively.
- * bridge/mac/PageMac.mm:
- (WebCore::Page::windowRect): Changed to use scaling
- (WebCore::Page::setWindowRect): ditto
- * bridge/mac/WebCoreFrameBridge.mm:
- (globalPoint):
- * page/Page.h:
- * platform/IntRect.h:
- * platform/Screen.h:
- * platform/mac/MouseEventMac.mm:
- (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
- * platform/mac/ScreenMac.mm:
- (WebCore::flipScreenRect): New key function
- (WebCore::flipScreenPoint): New key function
- (WebCore::scaleScreenRectToView): New key function
- (WebCore::scaleViewRectToScreen): New key function
- (WebCore::screenRect): Changed to use scaling
- (WebCore::usableScreenRect): ditto
- Feeble attempt to preserve Windows build:
-
- * platform/win/ScreenWin.cpp:
- (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
- (WebCore::scaleWidgetRectToScreen): ditto
- * bridge/win/PageWin.cpp:
- (WebCore::Page::Page):
- (WebCore::Page::widget):
- 2006-05-30 David Hyatt <hyatt@apple.com>
- Rename RenderCanvas to RenderView. Rename canvas(), isCanvas()
- to view(), isView(). Rename the frame view accessor on the old canvas
- from view() to frameView() (to avoid view()->view(), since that just looks
- stupid). :)
- Reviewed by andersca
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_dom.cpp:
- * bindings/js/kjs_window.cpp:
- * bridge/mac/FrameMac.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge _setupRootForPrinting:]):
- (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
- (-[WebCoreFrameBridge selectionColor]):
- (-[WebCoreFrameBridge accessibilityTree]):
- * dom/Document.cpp:
- (WebCore::Document::attach):
- (WebCore::Document::updateSelection):
- (WebCore::Document::prepareMouseEvent):
- * editing/SelectionController.cpp:
- * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
- * ksvg2/svg/SVGClipPathElement.cpp:
- (SVGClipPathElement::canvasResource):
- * ksvg2/svg/SVGFEFloodElement.cpp:
- (SVGFEFloodElement::filterEffect):
- * ksvg2/svg/SVGGradientElement.cpp:
- (SVGGradientElement::rebuildStops):
- * ksvg2/svg/SVGHelper.cpp:
- (SVGHelper::PercentageOfViewport):
- * ksvg2/svg/SVGPathElement.cpp:
- (WebCore::SVGPathElement::getPointAtLength):
- * ksvg2/svg/SVGSVGElement.cpp:
- (WebCore::SVGSVGElement::currentTranslate):
- * ksvg2/svg/SVGStyledElement.cpp:
- (WebCore::SVGStyledElement::view):
- (WebCore::SVGStyledElement::pushAttributeContext):
- * ksvg2/svg/SVGStyledElement.h:
- * kwq/WebCoreAXObject.mm:
- (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
- (-[WebCoreAXObject role]):
- (-[WebCoreAXObject value]):
- (-[WebCoreAXObject position]):
- (-[WebCoreAXObject accessibilityIsIgnored]):
- (-[WebCoreAXObject accessibilityAttributeNames]):
- (-[WebCoreAXObject topView]):
- (-[WebCoreAXObject accessibilityAttributeValue:]):
- * page/Frame.cpp:
- (WebCore::Frame::selectionRect):
- (WebCore::Frame::paint):
- (WebCore::Frame::adjustPageHeight):
- (WebCore::Frame::forceLayoutWithPageWidthRange):
- * page/FrameView.cpp:
- (WebCore::FrameView::adjustViewSize):
- (WebCore::FrameView::layout):
- * page/FrameView.h:
- * rendering/AutoTableLayout.cpp:
- (WebCore::shouldScaleColumns):
- * rendering/RenderBlock.cpp:
- (WebCore::RenderBlock::MarginInfo::MarginInfo):
- (WebCore::RenderBlock::isSelfCollapsingBlock):
- (WebCore::RenderBlock::layoutBlock):
- (WebCore::RenderBlock::paintChildren):
- (WebCore::RenderBlock::setSelectionState):
- (WebCore::RenderBlock::isSelectionRoot):
- (WebCore::RenderBlock::fillInlineSelectionGaps):
- (WebCore::RenderBlock::lowestPosition):
- (WebCore::RenderBlock::rightmostPosition):
- (WebCore::RenderBlock::leftmostPosition):
- (WebCore::RenderBlock::clearFloats):
- (WebCore::RenderBlock::nodeAtPoint):
- (WebCore::RenderBlock::calcBlocminMaxWidth):
- (WebCore::RenderBlock::inRootBlockContext):
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::setStyle):
- (WebCore::RenderBox::paintRootBoxDecorations):
- (WebCore::RenderBox::paintBackgroundExtended):
- (WebCore::RenderBox::calcHeight):
- (WebCore::RenderBox::calcPercentageHeight):
- (WebCore::RenderBox::availableHeightUsing):
- * rendering/RenderCanvas.cpp: Removed.
- * rendering/RenderCanvas.h: Removed.
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::removeChildNode):
- * rendering/RenderFileButton.cpp:
- (WebCore::RenderFileButton::RenderFileButton):
- * rendering/RenderFlow.cpp:
- (WebCore::RenderFlow::destroy):
- (WebCore::RenderFlow::paintLines):
- * rendering/RenderFrameSet.cpp:
- (WebCore::RenderFrameSet::layout):
- (WebCore::RenderFrameSet::userResize):
- (WebCore::RenderFrameSet::setResizing):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::paint):
- * rendering/RenderLayer.cpp:
- (WebCore::RenderLayer::updateLayerPositions):
- (WebCore::RenderLayer::updateLayerPosition):
- (WebCore::RenderLayer::stackingContext):
- (WebCore::RenderLayer::enclosingPositionedAncestor):
- (WebCore::RenderLayer::convertToLayerCoords):
- (WebCore::RenderLayer::scrollToOffset):
- (WebCore::isSubframeCanvas):
- (WebCore::RenderLayer::intersectsDamageRect):
- * rendering/RenderLayer.h:
- (WebCore::RenderLayer::isStackingContext):
- * rendering/RenderListMarker.cpp:
- (WebCore::RenderListMarker::paint):
- * rendering/RenderObject.cpp:
- (WebCore::RenderObject::scroll):
- (WebCore::RenderObject::containingBlock):
- (WebCore::RenderObject::repaint):
- (WebCore::RenderObject::repaintRectangle):
- (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
- (WebCore::RenderObject::draggableNode):
- (WebCore::RenderObject::selectionStartEnd):
- (WebCore::RenderObject::setStyle):
- (WebCore::RenderObject::viewRect):
- (WebCore::RenderObject::view):
- (WebCore::RenderObject::container):
- (WebCore::RenderObject::removeFromObjectLists):
- (WebCore::RenderObject::scheduleRelayout):
- (WebCore::RenderObject::imageChanged):
- (WebCore::RenderObject::maximalOutlineSize):
- * rendering/RenderObject.h:
- (WebCore::RenderObject::isRenderView):
- * rendering/RenderTextArea.cpp:
- (WebCore::RenderTextArea::RenderTextArea):
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::paintCheckbox):
- (WebCore::RenderThemeMac::paintRadio):
- (WebCore::RenderThemeMac::paintButton):
- * rendering/RenderTreeAsText.cpp:
- (externalRepresentation):
- * rendering/RenderView.cpp: Added.
- (WebCore::RenderView::RenderView):
- (WebCore::RenderView::~RenderView):
- (WebCore::RenderView::calcHeight):
- (WebCore::RenderView::calcWidth):
- (WebCore::RenderView::calcMinMaxWidth):
- (WebCore::RenderView::layout):
- (WebCore::RenderView::absolutePosition):
- (WebCore::RenderView::paint):
- (WebCore::RenderView::paintBoxDecorations):
- (WebCore::RenderView::repaintViewRectangle):
- (WebCore::RenderView::getAbsoluteRepaintRect):
- (WebCore::RenderView::computeAbsoluteRepaintRect):
- (WebCore::RenderView::absoluteRects):
- (WebCore::RenderView::selectionRect):
- (WebCore::RenderView::setSelection):
- (WebCore::RenderView::clearSelection):
- (WebCore::RenderView::selectionStartEnd):
- (WebCore::RenderView::updateWidgetPositions):
- (WebCore::RenderView::addWidget):
- (WebCore::RenderView::removeWidget):
- (WebCore::RenderView::viewRect):
- (WebCore::RenderView::docHeight):
- (WebCore::RenderView::docWidth):
- (WebCore::RenderView::setBestTruncatedAt):
- * rendering/RenderView.h: Added.
- (WebCore::RenderView::renderName):
- (WebCore::RenderView::isRenderView):
- (WebCore::RenderView::frameView):
- * rendering/RenderWidget.cpp:
- (WebCore::RenderWidget::RenderWidget):
- (WebCore::RenderWidget::destroy):
- (WebCore::RenderWidget::updateWidgetPosition):
- * rendering/RenderWidget.h:
- (WebCore::RenderWidget::widget):
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::layoutInlineChildren):
- 2006-05-30 Tim Omernick <timo@apple.com>
- Reviewed by Geoff.
- <rdar://problem/4567776> REGRESSION: window.open() links do not work at www.newarchery.com
- * bindings/js/kjs_window.cpp:
- (KJS::WindowFunc::callAsFunction):
- Set the URL in the ResourceRequest; otherwise, it'll be uninitialized and createNewWindow() will
- not be able to load the URL into a pre-existing frame.
- 2006-05-30 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Maciej, landed by Beth.
- - fix for http://bugs.webkit.org/show_bug.cgi?id=9137
- Children with percentage heights of absolutely positioned element
- with height: auto and top and bottom non-auto does not lay out
- correctly
- Adds special case.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcPercentageHeight):
- (WebCore::RenderBox::calcReplacedHeightUsing):
- 2006-05-30 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt, landed by Beth.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=9085
- Absolutely positioned objects with 'height': auto and 'top': and
- 'bottom': non-auto should not be content based
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteVertical):
- (WebCore::RenderBox::calcAbsoluteVerticalValues):
- (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
- (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
- 2006-05-30 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- Small amount of svg-related code cleanup.
- No test case possible.
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGLength.cpp:
- (SVGLength::SVGLength):
- (SVGLength::value):
- * ksvg2/svg/SVGMarkerElement.cpp:
- * ksvg2/svg/SVGMatrix.cpp:
- (SVGMatrix::SVGMatrix):
- (SVGMatrix::copy):
- (SVGMatrix::postMultiply):
- (SVGMatrix::inverse):
- (SVGMatrix::postTranslate):
- (SVGMatrix::postScale):
- (SVGMatrix::postScaleNonUniform):
- (SVGMatrix::postRotate):
- (SVGMatrix::postRotateFromVector):
- (SVGMatrix::postFlipX):
- (SVGMatrix::postFlipY):
- (SVGMatrix::postSkewX):
- (SVGMatrix::postSkewY):
- (SVGMatrix::multiply):
- (SVGMatrix::translate):
- (SVGMatrix::scale):
- (SVGMatrix::scaleNonUniform):
- (SVGMatrix::rotate):
- (SVGMatrix::rotateFromVector):
- (SVGMatrix::flipX):
- (SVGMatrix::flipY):
- (SVGMatrix::skewX):
- (SVGMatrix::skewY):
- (SVGMatrix::setMatrix):
- (SVGMatrix::qmatrix):
- (SVGMatrix::removeScale):
- * ksvg2/svg/SVGMatrix.h:
- 2006-05-30 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- Small amount of bindings-related code cleanup.
- No test case possible.
- * bindings/js/JSHTMLFormElementCustom.cpp:
- (WebCore::JSHTMLFormElement::nameGetter):
- * bindings/js/JSXMLSerializer.cpp:
- (WebCore::JSXMLSerializerConstructorImp::JSXMLSerializerConstructorImp):
- (WebCore::JSXMLSerializerConstructorImp::implementsConstruct):
- (WebCore::JSXMLSerializerConstructorImp::construct):
- (WebCore::):
- (WebCore::JSXMLSerializer::JSXMLSerializer):
- (WebCore::JSXMLSerializerProtoFunc::callAsFunction):
- * bindings/js/JSXMLSerializer.h:
- (WebCore::JSXMLSerializer::toBoolean):
- (WebCore::JSXMLSerializer::classInfo):
- (WebCore::JSXMLSerializer::):
- * bindings/js/kjs_window.cpp:
- (KJS::Window::getValueProperty):
- 2006-05-27 Anders Carlsson <acarlsson@apple.com>
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- Correct include file names.
- 2006-05-26 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4564296> Mail crashes on Leopard9A184 when I attempt to compose a new message
- * dom/Position.cpp:
- (WebCore::Position::inRenderedContent):
- Removed a candidate at [html, 0].
- * editing/CreateLinkCommand.cpp:
- (WebCore::CreateLinkCommand::doApply): Added early return when there is no selection.
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply): Ditto.
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input): Ditto.
- * editing/Selection.cpp:
- (WebCore::Selection::validate): If visible positions can't be created from the endpoints,
- then create a null selection. Not doing this was making editing code think there was
- a valid, editable selection even though there wasn't.
- * editing/UnlinkCommand.cpp:
- (WebCore::UnlinkCommand::doApply): Early return.
- * editing/VisiblePosition.cpp:
- (WebCore::VisiblePosition::initDeepPosition): Special case the html/body element boundary.
- It looks like a non-editable/editable boundary since rootEditableElement stops at the body
- even if the html element is editable.
- 2006-05-26 Adele Peterson <adele@apple.com>
- Reviewed by Justin.
- Fixes a mistake in my last checkin. Uses maxDeepOffset to get the end position for
- the textarea's inner div.
- * rendering/RenderTextField.cpp: (WebCore::RenderTextField::textWithHardLineBreaks):
- 2006-05-26 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- Added support for wrap=hard for new textarea implementation.
- Tests: fast/forms/textarea-appearance-wrap.html
- * dom/Range.h: Added version of toString that will convert BRs to newlines.
- * dom/Range.cpp: (WebCore::Range::toString):
- * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::ReplacementFragment):
- When in plain-text mode, and a white-space mode that doesn't collapse whitespace, create a fragment with one text node.
- * editing/visible_units.cpp:
- (WebCore::previousLinePosition): Subtract scroll offset so the absolute position for the containing block is correct.
- (WebCore::nextLinePosition): ditto.
- * rendering/RenderText.cpp:
- (WebCore::RenderText::positionForCoordinates): If the position is equal to the left edge of the box,
- make the affinity downstream so the position doesn't jump back to the previous line.
- (WebCore::RenderText::atLineWrap): The logic was reversed here in a recent change.
- If the box is not at a line break, then its at a line wrap.
- (WebCore::RenderText::caretRect): Only go to the next text box if its at a line wrap and the
- affinity is also downstream. If its upstream, then the correct box is on the current line.
- (WebCore::RenderText::inlineBox): ditto.
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::updateFromElement): multi line controls don't need to check
- valueMatchesRenderer before updating the renderer. For textareas, the renderer should always try to update.
- This matches our old textarea behavior.
- (WebCore::RenderTextField::text): Pass true to textContent so it converts BRs to newlines.
- (WebCore::RenderTextField::textWithHardLineBreaks): Iterate through the RootLineBoxes to find the soft wraps and replace them with newlines.
- 2006-05-26 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9127
- Invoke capturing event listeners when AT_TARGET
-
- * dom/EventTargetNode.cpp:
- (WebCore::EventTargetNode::handleLocalEvents):
- Invoke capturing event listeners for the AT_TARGET phase. This violates the
- DOM spec but it's what Mozilla does.
-
- 2006-05-26 David Harrison <harrison@apple.com>
- Reviewed by John Sullivan.
- <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
-
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- - Renamed ModifySelectionListLevelCommand .cpp and .h to ModifySelectionListLevel .cpp and .h
-
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
- (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
- (-[WebCoreFrameBridge increaseSelectionListLevel]):
- (-[WebCoreFrameBridge decreaseSelectionListLevel]):
- - Call functions in IncreaseSelectionListLevelCommand or DecreaseSelectionListLevelCommand instead
- of ModifySelectionListLevelCommand.
-
- (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
- (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
- - Added.
-
- * editing/ModifySelectionListLevel.cpp: Added.
- - Renamed from ModifySelectionListLevelCommand.cpp
- - Made ModifySelectionListLevelCommand class into a useful base class for new
- classes IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand.
-
- (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
- (WebCore::getStartEndListChildren):
- (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
- (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
- - ModifySelectionListLevelCommand is base class for IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand
-
- (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
- (WebCore::IncreaseSelectionListLevelCommand::listElement):
- (WebCore::canIncreaseListLevel):
- (WebCore::IncreaseSelectionListLevelCommand::doApply):
- (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
- (WebCore::increaseSelectionListLevelWithType):
- (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
- (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
- (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
- - Now a subclass of ModifySelectionListLevelCommand
- - Added Ordered and Unordered increaser functions
- - Increaser functions return the list element that the items were moved into
-
- (WebCore::DecreaseSelectionListLevelCommand::DecreaseSelectionListLevelCommand):
- (WebCore::canDecreaseListLevel):
- (WebCore::DecreaseSelectionListLevelCommand::doApply):
- (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
- (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel):
- - No functional changes other than to become a subclass of ModifySelectionListLevelCommand
- * editing/ModifySelectionListLevel.h: Added.
- (WebCore::):
- - Renamed from ModifySelectionListLevelCommand.cpp
-
- * editing/ModifySelectionListLevelCommand.cpp: Removed.
- - Renamed to ModifySelectionListLevel.cpp
-
- * editing/ModifySelectionListLevelCommand.h: Removed.
- - Renamed to ModifySelectionListLevel.h
- * editing/htmlediting.cpp:
- (WebCore::createOrderedListElement):
- (WebCore::createUnorderedListElement):
- * editing/htmlediting.h:
- 2006-05-26 Steve Falkenburg <sfalken@apple.com>
- Reviewed by adele.
- Build fixes/tweaks
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * config.h:
- * ksvg2/scripts/make_names.pl:
- 2006-05-26 Steve Falkenburg <sfalken@apple.com>
- Reviewed by adele.
- Fix build
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * config.h:
- 2006-05-25 Dave Hyatt <hyatt@apple.com>
- Change default font size for fixed pitch to 13 to match Safari
- on Mac (and every other browser on the planet too).
- Reviewed by adele
- * bridge/win/FrameWin.cpp:
- (WebCore::FrameWin::FrameWin):
- * platform/win/FontCacheWin.cpp:
- (WebCore::FontCache::getFontLinkInterface):
- 2006-05-25 Alice Liu <alice.liu@apple.com>
- Reviewed by Adele.
- * bindings/js/kjs_html.cpp:
- added bindings
- (KJS::HTMLElementFunction::callAsFunction):
- added case to handle namedItem for select elements
- * bindings/js/kjs_html.h:
- added enum value for bindings
- (KJS::JSHTMLElement::):
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::namedItem):
- implemented namedItem method
- * html/HTMLSelectElement.h:
- added prototype for namedItem method
- 2006-05-25 Dave Hyatt <hyatt@apple.com>
- Make soft hyphens work on Win32 by special casing them
- along with normal hyphens.
- Reviewed by mjs
- * rendering/break_lines.cpp:
- (WebCore::nextBreakablePosition):
- 2006-05-25 Dave Hyatt <hyatt@apple.com>
- Implement the fallback method containsCharacters for
- checking if a font has the necessary glyphs to be
- selected as a fallback choide.
- * platform/win/FontDataWin.cpp:
- (WebCore::FontData::containsCharacters):
- 2006-05-25 Dave Hyatt <hyatt@apple.com>
- For now eliminate the logical scale factor from Cairo.
- This enables bitmap fonts like MS Sans Serif to work on
- Win32.
- * platform/cairo/cairo/src/cairo-win32-font.c:
- (cairo_win32_scaled_font_select_font):
- * platform/cairo/cairo/src/cairo-win32-private.h:
- * platform/cairo/font-bug-patch.txt: Removed.
- * platform/cairo/scale-removal.txt: Added.
- * platform/win/FontCacheWin.cpp:
- (WebCore::FontCache::createFontPlatformData):
- * platform/win/FontDataWin.cpp:
- (WebCore::FontData::smallCapsFontData):
- (WebCore::FontData::platformWidthForGlyph):
- * platform/win/FontPlatformData.h:
- * platform/win/GlyphMapWin.cpp:
- (WebCore::GlyphMap::fillPage):
- 2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt. Landed by eseidel.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8848
- TFOOT borders are copied to THEAD and TBODY
- Test: fast/table/border-collapsing/border-collapsing-head-foot.html
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::sectionAbove): Added.
- (WebCore::RenderTable::sectionBelow): Added.
- (WebCore::RenderTable::cellAbove): Changed to call sectionAbove.
- (WebCore::RenderTable::cellBelow): Changed to call sectionBelow.
- * rendering/RenderTable.h:
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::collapsedTopBorder): Changed to call sectionAbove.
- (WebCore::RenderTableCell::collapsedBottomBorder): Changed to call sectionBelow.
- 2006-05-25 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt. Landed by eseidel.
- - fix http://bugs.webkit.org/show_bug.cgi?id=3297
- height property is not honored on table rows
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::addChild): Assign the row renderer to the
- grid row.
- (WebCore::RenderTableSection::calcRowHeight): Fix off-by-one index bug
- and add vertical spacing only for grid rows that have a renderer.
- (WebCore::RenderTableSection::recalcCells): Assign row renderers to
- grid rows.
- 2006-05-25 Rob Buis <buis@kde.org>
- Reviewed by darin. Landed by eseidel.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=5978
- WebKIt+SVG should use SVGDocumentImpl for image/svg+xml
- Make sure SVGDocument is created for standalone svg
- documents.
- * ksvg2/svg/SVGDOMImplementation.cpp:
- (SVGDOMImplementation::instance):
- (SVGDOMImplementation::createDocument):
- * ksvg2/svg/SVGDOMImplementation.h:
- * ksvg2/svg/SVGDocument.cpp:
- (WebCore::SVGDocument::SVGDocument):
- (WebCore::SVGDocument::~SVGDocument):
- * ksvg2/svg/SVGDocument.h:
- * ksvg2/svg/SVGTests.cpp:
- (WebCore::SVGTests::isValid):
- * ksvg2/svg/SVGTitleElement.cpp:
- * ksvg2/svg/SVGTitleElement.h:
- * page/Frame.cpp:
- (WebCore::Frame::begin):
- 2006-05-25 Rob Buis <buis@kde.org>
- Reviewed by darin. Landed by eseidel.
- http://bugs.webkit.org/show_bug.cgi?id=5889
- HTMLNames.* should be generated using make_names.pl
- Use a patched make_names.pl to autogenerate HTMLNames.*
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLNames.cpp: Removed.
- * html/HTMLNames.h: Removed.
- * html/HTMLTagNames.in: Added.
- * html/HTMLAttributeNames.in: Added.
- * ksvg2/scripts/make_names.pl:
- 2006-05-25 Eric Seidel <eric@webkit.org>
- Reviewed by andersca.
- Add "HasIndexGetter" support to bindings autogen system.
- http://bugs.webkit.org/show_bug.cgi?id=9057
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSHTMLInputElementBase.cpp:
- * bindings/js/kjs_css.cpp:
- (KJS::toJS):
- * bindings/js/kjs_css.h:
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNamedNodeMap::getOwnPropertySlot):
- * bindings/scripts/CodeGeneratorJS.pm:
- * css/CSSValueList.idl: Added.
- 2006-05-24 David Hyatt <hyatt@apple.com>
- Implement font aliasing of family names for Courier/Courier New,
- Arial/Helvetica, and Times/Times New Roman. This behavior matches
- WinIE and Firefox.
- Reviewed by maciej
- Test cases not really possible, since they would have to rely on people
- not having the fonts installed (so not having installed Office).
- * platform/FontCache.cpp:
- (WebCore::alternateFamilyName):
- (WebCore::FontCache::getCachedFontPlatformData):
- * platform/FontCache.h:
- * rendering/RenderContainer.cpp:
- (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
- === WebCore-521.11 ===
- 2006-05-24 Justin Garcia <justin.garcia@apple.com>
- Reviewed by levi
-
- <rdar://problem/4549610> REGRESSION: No initial cursor in Mail reply or Blot document
- <rdar://problem/4560698> Mail is very crashy in Leopard9A182, WebCore::Range::compareBoundaryPoints(WebCore::Node*, int, WebCore::Node*, int)
- * page/Frame.cpp:
- (WebCore::Frame::setSelectionFromNone): Find the body and stick a caret
- in it.
- 2006-05-24 Geoffrey Garen <ggaren@apple.com>
- Rubber stamped by Anders.
-
- Removed meaningless 'dom::' prefix in IDL files.
- * dom/Range.idl:
- * html/CanvasRenderingContext2D.idl:
- * html/HTMLOptionElement.idl:
- 2006-05-24 Geoffrey Garen <ggaren@apple.com>
- Reviewed by andersca.
-
- - Fixed http://bugs.webkit.org/show_bug.cgi?id=9095
- regression: can't select by setting option.selected to true
-
- 'text' and 'selected' were erroneously marked read-only for option elements.
-
- * html/HTMLOptionElement.idl:
- 2006-05-24 Geoffrey Garen <ggaren@apple.com>
- Reviewed by mjs.
- - WebCore half of fix for <rdar://problem/4557926> TOT REGRESSION: Crash
- occurs when attempting to view image in slideshow mode at
- http://d.smugmug.com/gallery/581716 ( KJS::IfNode::execute
- (KJS::ExecState*) + 312)
- On alternate threads, DOMObjects remain in the
- ScriptInterpreter's cache because they're not collected. So, they
- need an opportunity to mark their children.
-
- I'm not particularly happy with this solution because it fails to
- resolve many outstanding issues with the DOM object cache. Since none
- of those issues is a crasher or a serious compatibility concern,
- and since the behavior of other browsers is not much to go on in this
- case, I've filed <rdar://problem/4561439> about that, and I'm moving
- on with my life.
- Also added functionality for testing garbage collection from inside
- DumpRenderTree.
-
- Also removed XMLHttpRequest from the DOM object cache because XMLHttpRequest
- objects aren't accessed through the DOM.
-
- Also added JS locking around access to some shared data structures in
- WebCoreJavaScript, even though it probably doesn't matter in practice.
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
- (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
- * bindings/js/kjs_binding.cpp:
- (KJS::ScriptInterpreter::mark):
- * bindings/js/kjs_binding.h:
- * bridge/mac/WebCoreJavaScript.h:
- * bridge/mac/WebCoreJavaScript.mm:
- (collect):
- (+[WebCoreJavaScript objectCount]):
- (+[WebCoreJavaScript interpreterCount]):
- (+[WebCoreJavaScript protectedObjectCount]):
- (+[WebCoreJavaScript garbageCollect]):
- (+[WebCoreJavaScript garbageCollectOnAlternateThread:]):
- (+[WebCoreJavaScript shouldPrintExceptions]):
- (+[WebCoreJavaScript setShouldPrintExceptions:]):
- 2006-05-24 Dave Hyatt <hyatt@apple.com>
- Fix the font cache corruption problems on Win32. Move the
- native font destruction code out of FontPlatformData and
- into FontData. Implement smallCaps.
- * platform/win/FontDataWin.cpp:
- (WebCore::FontData::platformDestroy):
- (WebCore::FontData::smallCapsFontData):
- * platform/win/FontPlatformDataWin.cpp:
- (WebCore::FontPlatformData::~FontPlatformData):
- 2006-05-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9093
- Implement document.scripts
-
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocument::getValueProperty):
- Return document.scripts() instead of a placeholder object.
-
- * dom/Document.cpp:
- (WebCore::Document::scripts):
- * dom/Document.h:
- Add Document::scripts.
-
- * html/HTMLCollection.cpp:
- (WebCore::HTMLCollection::traverseNextItem):
- * html/HTMLCollection.h:
- (WebCore::HTMLCollection::):
- Add scripts collection type which traverses all script elements.
-
- 2006-05-24 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Geoff.
- http://bugs.webkit.org/show_bug.cgi?id=9092
- innerText is empty for elements without renderers
- * dom/Node.cpp:
- (WebCore::Node::textContent):
- * dom/Node.h:
- Add optional convertBRsToNewlines argument for textContent.
-
- * html/HTMLElement.cpp:
- (WebCore::HTMLElement::innerText):
- If the element doesn't have a renderer, return textContent.
- 2006-05-24 Dave Hyatt <hyatt@apple.com>
- Fix a bug with the computation of the Cairo glyph offsets
- on the Win32 code path.
- * ChangeLog:
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::add):
- * platform/win/FontWin.cpp:
- (WebCore::Font::drawGlyphs):
- 2006-05-23 Dave Hyatt <hyatt@apple.com>
- Disable some code in Cairo that is attempting to clip
- runs of text to their glyph boundaries, since:
- (a) Why re-measure text again when I just gave you
- the glyph bounds anyway.
- (b) It gets the measurements wrong.
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::add):
- * platform/cairo/cairo/src/cairo-surface-fallback.c:
- (_cairo_surface_fallback_show_glyphs):
- * platform/cairo/clipping-cleartype-font-bug-patch.txt: Added.
- * platform/win/FontWin.cpp:
- (WebCore::Font::drawGlyphs):
- 2006-05-23 Timothy Hatcher <timothy@apple.com>
- Reviewed by Eric.
- Remove the recent idl files from the WebCore target to prevent them
- from being copied into the framework resources.
- * WebCore.xcodeproj/project.pbxproj:
- 2006-05-23 John Sullivan <sullivan@apple.com>
- Reviewed by Justin Garcia and Levi Weintraub.
-
- - fixed Bug 9072: REGRESSION: Misspelling marker incorrect in editing/deleting/delete-and-undo.html
- * dom/Document.cpp:
- (WebCore::Document::removeMarkers):
- One more time to get this right, ugh. There is still one case where we don't want to advance the
- iterator, and that's when we remove a marker and do not insert a replacement marker. So I undid
- my previous patch, and added it++ to each of the two cases that insert a replacement marker. Now
- the layout tests pass even with the pixel tests enabled.
- 2006-05-23 Dave Hyatt <hyatt@apple.com>
- Do an initial implementation of CookieJar on Win32. No policy
- checking yet and the cookies are just always on.
- Reviewed by mjs
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * platform/win/CookieJarWin.cpp: Added.
- (WebCore::setCookies):
- (WebCore::cookies):
- (WebCore::cookiesEnabled):
- * platform/win/TemporaryLinkStubs.cpp:
- 2006-05-23 Dave Hyatt <hyatt@apple.com>
- Fix the JS autogeneration for WebCore so that the hashtables
- are correct on Win32.
- Switch to using GetCharWidthI so that we can obtain widths
- for glyphs instead of having to obtain them from UChars.
- Reviewed by eric (autogeneration) and maciej (fonts)
- * bindings/scripts/CodeGeneratorJS.pm:
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance):
- * platform/FontData.cpp:
- (WebCore::m_smallCapsFontData):
- (WebCore::FontData::widthForGlyph):
- * platform/FontData.h:
- * platform/mac/FontDataMac.mm:
- (-[NSFont WebCore]):
- * platform/win/FontDataWin.cpp:
- (WebCore::FontData::platformWidthForGlyph):
- 2006-05-23 Levi Weintraub <lweintraub@apple.com>
- Reviewed by Hyatt.
- Cleaned up changes to markup by adding the non-virtual
- nodeNamePreservingCase accessor function.
- * dom/Element.cpp:
- (WebCore::Element::nodeNamePreservingCase):
- * dom/Element.h:
- * editing/markup.cpp:
- (WebCore::startMarkup):
- (WebCore::endMarkup):
- 2006-05-23 John Sullivan <sullivan@apple.com>
- Reviewed by Anders Carlsson.
- * dom/Document.cpp:
- (WebCore::Document::removeMarkers):
- Fix to my previous checkin (which broke a layout test).
- Advance the iterator position every time through the loop; formerly it was not advanced in the
- case where a marker was actually removed, causing an infinite loop in certain cases. Also
- modified a comment that was confusing the situation by falsely claiming that iterating over a
- just-inserted node would always be OK.
- 2006-05-23 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=9017
- Weather2.css incorrectly treated as JavaScript file @ www.live.com
-
- * dom/Element.cpp:
- (WebCore::Element::getAttribute):
- (WebCore::Element::setAttribute):
- (WebCore::Element::removeAttribute):
- (WebCore::Element::getAttributeNode):
- (WebCore::Element::hasAttribute):
- Use new getAttributeItem method.
-
- * dom/NamedAttrMap.cpp:
- (WebCore::NamedAttrMap::getNamedItem):
- (WebCore::NamedAttrMap::removeNamedItem):
- Use new getAttributeItem method.
-
- (WebCore::NamedAttrMap::getAttributeItem):
- * dom/NamedAttrMap.h:
- New method which returns the attribute based on the nodeName.
- 2006-05-22 Eric Seidel <eric@webkit.org>
- Rubber-stamped by adele.
- * bindings/js/kjs_html.h: simple style cleanup.
- === WebCore-521.10 ===
- 2006-05-22 John Sullivan <sullivan@apple.com>
- Reviewed by Anders Carlsson.
-
- - fixed Bug 9038: Rework Document::TextMarker mechanism to not use deprecated data structures
- Changed Document::markersForNode and Document::MarkerMap to use Vector rather than
- DeprecatedValueList and DeprecatedValueListIterator.
-
- * dom/Document.h:
- * dom/Document.cpp:
- (WebCore::Document::addMarker):
- (WebCore::Document::copyMarkers):
- (WebCore::Document::removeMarkers):
- (WebCore::Document::markersForNode):
- (WebCore::Document::repaintMarkers):
- (WebCore::Document::shiftMarkers):
-
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintAllMarkersOfType):
- 2006-05-22 Levi Weintraub <lweintraub@apple.com>
- Reviewed by Eric.
-
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=8393
- <br>s created by createMarkup aren't valid xhtml
- Fixed uppered output from innerHTML
- * editing/markup.cpp:
- (WebCore::startMarkup):
- (WebCore::endMarkup):
- 2006-05-21 Dave Hyatt <hyatt@apple.com>
- Fix Win32 bustage. I forgot to add a bunch of files.
- Also tweak some existing functions a bit (just cleanup).
- * platform/FontCache.cpp:
- (WebCore::FontCache::getCachedFontPlatformData):
- (WebCore::FontCache::getFontData):
- * platform/FontCache.h:
- * platform/mac/FontCacheMac.mm:
- (WebCore::FontCache::createFontPlatformData):
- * platform/win/FontDataWin.cpp:
- (WebCore::FontData::platformDestroy):
- (WebCore::FontData::smallCapsFontData):
- 2006-05-21 Adele Peterson <adele@apple.com>
- Reviewed by Maciej.
- - Fix for http://bugs.webkit.org/show_bug.cgi?id=9016
- crash loading live.com in TreeShared::ref because accessing RenderTextField::text() can destroy the RenderTextField
- * rendering/RenderTextField.cpp: (WebCore::RenderTextField::text):
- Reverting recent change to user innerText instead of textContent. For textareas,
- we need a better solution than textContent that also takes newlines into account,
- but this should fix this crasher.
- 2006-05-21 Anders Carlsson <acarlsson@apple.com>
- Fix build.
-
- * ForwardingHeaders/wtf/MathExtras.h: Added.
- 2006-05-20 Dave Hyatt <hyatt@apple.com>
- Switch on Cairo-based text rendering on Win32. This is tracked
- by bug 9019.
- Reviewed by maciej
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * config.h:
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance):
- (WebCore::WidthIterator::normalizeVoicingMarks):
- (WebCore::Font::width):
- * platform/Font.h:
- (WebCore::Font::isRoundingHackCharacter):
- * platform/FontCache.cpp:
- (WebCore::computeHash):
- (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
- (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
- (WebCore::FontDataCacheKeyTraits::deletedValue):
- (WebCore::FontDataCacheKeyTraits::emptyValue):
- * platform/FontData.cpp:
- (WebCore::m_smallCapsFontData):
- (WebCore::FontData::widthForGlyph):
- * platform/FontData.h:
- * platform/FontPlatformData.h: Removed.
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::clear):
- (WebCore::GlyphBuffer::glyphs):
- (WebCore::GlyphBuffer::advances):
- (WebCore::GlyphBuffer::swap):
- (WebCore::GlyphBuffer::glyphAt):
- (WebCore::GlyphBuffer::advanceAt):
- (WebCore::GlyphBuffer::add):
- * platform/GlyphMap.cpp:
- (WebCore::GlyphMap::locatePage):
- * platform/cairo/cairo/src/cairo-win32-font.c:
- (cairo_win32_scaled_font_select_font):
- * platform/cairo/font-bug-patch.txt: Added.
- * platform/mac/FontDataMac.mm:
- (-[NSFont WebCore]):
- * platform/mac/FontPlatformData.h: Added.
- (WebCore::FontPlatformData::FontPlatformData):
- * platform/win/FontDataWin.cpp: Added.
- (WebCore::FontData::platformInit):
- (WebCore::FontData::platformDestroy):
- (WebCore::FontData::smallCapsFontData):
- (WebCore::FontData::containsCharacters):
- (WebCore::FontData::determinePitch):
- (WebCore::FontData::platformWidthForGlyph):
- * platform/win/FontPlatformDataWin.cpp:
- (WebCore::m_size):
- (WebCore::FontPlatformData::~FontPlatformData):
- * platform/win/FontWin.cpp:
- (WebCore::notImplemented):
- (WebCore::Font::drawGlyphs):
- (WebCore::Font::selectionRectForComplexText):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::floatWidthForComplexText):
- (WebCore::Font::offsetForPositionForComplexText):
- 2006-05-20 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=8991
- REGRESSION: missing or broken CSS custom cursors are displayed as
- a missing image icon
- * page/FrameView.cpp:
- (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
- * manual-tests/custom-cursors.html: Added.
- 2006-05-20 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and landed by ap.
- - fix http://bugs.webkit.org/show_bug.cgi?id=9009
- REGRESSION: ToT crash in WebCore at Zap2it
- Test: fast/table/empty-section-crash.html
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::paint): Return immediately if the section
- has 0 rows or 0 columns.
- 2006-05-19 Levi Weintraub <lweintraub@apple.com>
- Reviewed by justin.
-
- <http://bugs.webkit.org/show_bug.cgi?id=8931>
- Drag caret not painted for editable sub-frames
-
- Moved the drag caret out of Frame and into Page.
- Only the Frame that contains the drag caret will paint it.
- * editing/SelectionController.h:
- * page/Frame.cpp:
- (WebCore::Frame::dragCaret):
- (WebCore::Frame::setDragCaret):
- (WebCore::Frame::paintDragCaret):
- * page/FramePrivate.h:
- * page/Page.cpp:
- (WebCore::Page::dragCaret):
- (WebCore::Page::setDragCaret):
- * page/Page.h:
- 2006-05-19 Alice Liu <alice.liu@apple.com>
- Reviewed by Adele.
- * html/HTMLButtonElement.idl:
- added support for HTMLButtonElement.click()
- 2006-05-19 Geoffrey Garen <ggaren@apple.com>
- Reviewed by Eric.
- - Fixed non-autogenerated global constructors to match autogenerated
- ones and FF. (Found this bug while @ the GOOG.)
- (1) They're no longer read-only, so they can be overridden.
- (2) They now have the default object prototype, so they can do things
- like 'toString' and 'valueOf', necessary for general functionality,
- including my layout test.
- (3) Their prototype properties are now enumerable and not read-only.
-
- * bindings/js/JSDOMParser.cpp:
- (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
- * bindings/js/JSXMLHttpRequest.cpp:
- (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
- * bindings/js/JSXMLHttpRequest.h:
- * bindings/js/JSXMLSerializer.cpp:
- (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
- * bindings/js/JSXSLTProcessor.cpp:
- (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
- * bindings/js/kjs_html.cpp:
- (KJS::OptionConstructorImp::OptionConstructorImp):
- (KJS::ImageConstructorImp::ImageConstructorImp):
- * bindings/js/kjs_window.cpp:
- 2006-05-19 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Eric.
- http://bugs.webkit.org/show_bug.cgi?id=8983
- Autogenerate another 22 HTML classes
-
- Already covered by existing DOM tests.
- * DerivedSources.make:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- Add new IDL files and generated sources.
-
- * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
- (WebCore::JSCanvasRenderingContext2D::drawImage):
- (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
- (WebCore::JSCanvasRenderingContext2D::createPattern):
- Use JSHTMLImageElement::info in inherits.
-
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createJSWrapper):
- Add macros for the functions and the code to populate the hash set.
-
- * bindings/js/kjs_html.cpp:
- (KJS::):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- (KJS::HTMLElementFunction::callAsFunction):
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLElement::):
- Delete old cruft.
-
- * bindings/scripts/CodeGeneratorJS.pm:
- Add support for creating a JS object from a HTMLCollection.
-
- * html/HTMLAreaElement.idl: Added.
- * html/HTMLBRElement.idl: Added.
- * html/HTMLBaseFontElement.idl: Added.
- * html/HTMLBlockquoteElement.idl: Added.
-
- * html/HTMLBodyElement.cpp:
- (WebCore::HTMLBodyElement::scrollLeft):
- (WebCore::HTMLBodyElement::setScrollLeft):
- (WebCore::HTMLBodyElement::scrollTop):
- (WebCore::HTMLBodyElement::setScrollTop):
- (WebCore::HTMLBodyElement::scrollHeight):
- (WebCore::HTMLBodyElement::scrollWidth):
- * html/HTMLBodyElement.h:
- Add new functions that used to be implemented in kjs_html.cpp
-
- * html/HTMLBodyElement.idl: Added.
- * html/HTMLFieldSetElement.idl: Added.
- * html/HTMLFontElement.idl: Added.
- * html/HTMLHRElement.idl: Added.
- * html/HTMLHeadingElement.idl: Added.
- * html/HTMLImageElement.idl: Added.
- * html/HTMLIsIndexElement.idl: Added.
- * html/HTMLLIElement.idl: Added.
- * html/HTMLLabelElement.idl: Added.
- * html/HTMLLegendElement.idl: Added.
- * html/HTMLMapElement.idl: Added.
- * html/HTMLMenuElement.idl: Added.
- * html/HTMLModElement.idl: Added.
- * html/HTMLParagraphElement.idl: Added.
- * html/HTMLParamElement.idl: Added.
- * html/HTMLPreElement.idl: Added.
- * html/HTMLQuoteElement.idl: Added.
- * html/HTMLScriptElement.idl: Added.
- 2006-05-18 David Hyatt <hyatt@apple.com>
- Turn off responding to font changes while running. It doesn't work
- right anyway.
- Reviewed by darin
- * platform/FontCache.cpp:
- (WebCore::FontCache::getCachedFontPlatformData):
- * platform/FontCache.h:
- * platform/GlyphMap.h:
- (WebCore::GlyphMap::~GlyphMap):
- * platform/GlyphWidthMap.h:
- (WebCore::GlyphWidthMap::~GlyphWidthMap):
- * platform/mac/FontCacheMac.mm:
- (WebCore::FontCache::platformInit):
- 2006-05-18 Darin Adler <darin@apple.com>
- - try to fix the Windows build
- * platform/TextEncoding.h: Changed a ";" to a ",".
- * WebCore.vcproj/WebCore/WebCore.vcproj: Removed
- JSCanvasRenderingContext2DBase.cpp and
- JSCanvasRenderingContext2DBase.h. Added
- JSCanvasRenderingContext2DCustom.cpp.
- 2006-05-18 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt.
- Fix for <http://bugs.webkit.org/show_bug.cgi?id=8896>
- Bug 8896: Absolutely positioned elements should use their parent's
- direction when left, right and width are auto in quirks mode.
- Use the parent's direction instead of the containing
- block's in quirks mode for absolute positioning to match
- WinIE.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteHorizontal):
- (WebCore::RenderBox::calcAbsoluteHorizontalValues):
- (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
- * rendering/RenderBox.h:
- 2006-05-18 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and tweaked (way too much) by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8937
- EncodingMap uses 0 as its empty value but 0 is a valid TextEncodingID
- * platform/CharsetNames.cpp:
- (WebCore::TextEncodingIDHashTraits::emptyValue): Added a non-zero empty value,
- InvalidEncoding, and used InvalidEncoding2 for the deleted value.
- (WebCore::buildCharsetMaps): Added an assertion that the deleted and empty
- values are not valid encodings.
- * platform/TextEncoding.h: Defined InvalidEncoding2.
- 2006-05-18 David Hyatt <hyatt@apple.com>
- Horrible glyph map performance regression fix.
- The initial page of the map was being rebuilt over and over again.
- Reviewed by andersca
- * platform/GlyphMap.cpp:
- (WebCore::GlyphMap::locatePage):
- * platform/GlyphWidthMap.cpp:
- (WebCore::GlyphWidthMap::locatePage):
- 2006-05-18 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=8964
- Autogenerate more HTML classes
-
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- Add new files.
-
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createAnchorWrapper):
- (WebCore::createAppletWrapper):
- (WebCore::createDivWrapper):
- (WebCore::createDirectoryWrapper):
- (WebCore::createDListWrapper):
- (WebCore::createHtmlWrapper):
- (WebCore::createOListWrapper):
- (WebCore::createUListWrapper):
- (WebCore::createJSWrapper):
- Add wrappers.
-
- * bindings/js/kjs_html.cpp:
- (KJS::):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- (KJS::HTMLElementFunction::callAsFunction):
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLElement::):
- Delete the old implementations.
-
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::hash):
- (WebCore::HTMLAnchorElement::host):
- (WebCore::HTMLAnchorElement::hostname):
- (WebCore::HTMLAnchorElement::pathname):
- (WebCore::HTMLAnchorElement::port):
- (WebCore::HTMLAnchorElement::protocol):
- (WebCore::HTMLAnchorElement::search):
- (WebCore::HTMLAnchorElement::text):
- * html/HTMLAnchorElement.h:
- Add some new accessor methods which used to be in kjs_html.cpp.
-
- * html/HTMLAnchorElement.idl: Added.
- * html/HTMLAppletElement.idl: Added.
- * html/HTMLDListElement.idl: Added.
- * html/HTMLDirectoryElement.idl: Added.
- * html/HTMLDivElement.idl: Added.
- * html/HTMLHtmlElement.idl: Added.
- * html/HTMLOListElement.idl: Added.
- * html/HTMLUListElement.idl: Added.
- 2006-05-17 David Hyatt <hyatt@apple.com>
- Convert the width map for glyphs into the same new HashMap-style as the
- glyph map for characters.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/FontData.cpp:
- (WebCore::FontData::~FontData):
- (WebCore::FontData::widthForGlyph):
- * platform/FontData.h:
- * platform/GlyphWidthMap.cpp: Added.
- (WebCore::GlyphWidthMap::widthForGlyph):
- (WebCore::GlyphWidthMap::setWidthForGlyph):
- (WebCore::GlyphWidthMap::locatePage):
- * platform/GlyphWidthMap.h: Added.
- (WebCore::GlyphWidthMap::GlyphWidthMap):
- (WebCore::GlyphWidthMap::~GlyphWidthMap):
- (WebCore::GlyphWidthMap::GlyphWidthPage::widthForGlyph):
- (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForGlyph):
- (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForIndex):
- 2006-05-17 David Hyatt <hyatt@apple.com>
- Rename FontData.mm to FontData.cpp, since it has no obj-c in it.
- * WebCore.xcodeproj/project.pbxproj:
- * platform/FontData.cpp: Added.
- 2006-05-17 David Hyatt <hyatt@apple.com>
- Split FontData.mm into platform-specific and cross-platform pieces.
- Reviewed by andersca
- * WebCore.xcodeproj/project.pbxproj:
- * platform/FontData.h:
- (WebCore::FontData::xHeight):
- * platform/mac/FontData.mm:
- (WebCore::FontData::widthForGlyph):
- (WebCore::m_smallCapsFontData):
- (WebCore::FontData::~FontData):
- (WebCore::extendWidthMap):
- 2006-05-17 John Sullivan <sullivan@apple.com>
- Reviewed by Darin Adler
-
- Improvement to my previous patch, suggested by Darin
- * dom/Document.cpp:
- (WebCore::Document::repaintMarkers):
- new method, similar in structure to removeMarkers but just repaints each node that
- has a marker of the specified type
- * dom/Document.h:
- declare new method, and tweak style in related method declarations
-
- * page/Frame.cpp:
- (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
- if the value changes, call repaintMarkers
- 2006-05-17 Eric Seidel <eseidel@apple.com>
- Reviewed by andersca.
- Autogenerate button, optgroup, option, input and textarea js bindings
- http://bugs.webkit.org/show_bug.cgi?id=8953
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createButtonWrapper):
- (WebCore::createInputWrapper):
- (WebCore::createOptGroupWrapper):
- (WebCore::createOptionWrapper):
- (WebCore::createTextAreaWrapper):
- (WebCore::createJSWrapper):
- * bindings/js/JSHTMLInputElementBase.cpp: Added.
- (WebCore::JSHTMLInputElementBaseProtoFunc::callAsFunction):
- (WebCore::):
- (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
- (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
- * bindings/js/JSHTMLInputElementBase.h: Added.
- (WebCore::JSHTMLInputElementBase::classInfo):
- (WebCore::JSHTMLInputElementBase::):
- (WebCore::JSHTMLInputElementBase::impl):
- * bindings/js/JSHTMLOptionElementConstructor.cpp: Added.
- (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
- (WebCore::JSHTMLOptionElementConstructor::implementsConstruct):
- (WebCore::JSHTMLOptionElementConstructor::construct):
- * bindings/js/JSHTMLOptionElementConstructor.h: Added.
- * bindings/js/kjs_domnode.h:
- * bindings/js/kjs_html.cpp:
- (KJS::):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- (KJS::JSHTMLElement::getOwnPropertySlot):
- (KJS::HTMLElementFunction::callAsFunction):
- (KJS::JSHTMLElement::put):
- (KJS::JSHTMLElement::htmlSetter):
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLElement::):
- * bindings/js/kjs_window.cpp:
- (KJS::Window::getValueProperty):
- * bindings/scripts/CodeGeneratorJS.pm:
- * html/HTMLButtonElement.idl: Added.
- * html/HTMLInputElement.idl: Added.
- * html/HTMLOptGroupElement.idl: Added.
- * html/HTMLOptionElement.idl: Added.
- * html/HTMLTextAreaElement.idl: Added.
- 2006-05-17 Adele Peterson <adele@apple.com>
- Reviewed by Hyatt.
- First step for http://bugs.webkit.org/show_bug.cgi?id=8948
- Switch to use new text field implementation for <textarea>
- New textareas can be turned on by setting -webkit-appearance:textarea.
- Tests:
- * LayoutTests/fast/block/float/032.html - Updated results.
- * bridge/mac/FrameMac.h: Added textDidChangeinTextArea to send notification over the bridge to form delegate.
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::textDidChangeInTextArea): ditto.
- * page/Frame.cpp: (WebCore::Frame::textDidChangeInTextArea): ditto.
- * page/Frame.h: ditto.
- * css/CSSValueKeywords.in: Added textarea.
- * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Updates to check for textarea.
- * css/html4.css: Added style for textarea. Leaved background-color and appearance values commented out.
- * rendering/render_style.h: (WebCore::): Added TextAreaAppearance.
- * rendering/RenderTheme.cpp:
- (WebCore::RenderTheme::adjustStyle): Updated for textarea.
- (WebCore::RenderTheme::paint): ditto.
- (WebCore::RenderTheme::paintBorderOnly): ditto.
- (WebCore::RenderTheme::isControlStyled): ditto.
- (WebCore::RenderTheme::supportsFocusRing): ditto.
- (WebCore::RenderTheme::adjustTextFieldStyle): ditto.
- (WebCore::RenderTheme::adjustTextAreaStyle): ditto.
- * rendering/RenderTheme.h: (WebCore::RenderTheme::paintTextArea): Added.
- * rendering/RenderThemeMac.h: Added adjustTextAreaStyle.
- Note- I didn't add a paintTextArea function for RenderThemeMac, since we can just paint the border
- specified in html4.css to match the NSTextView border. Added a paintTextArea function to the Windows
- theme can override that border.
- * rendering/RenderThemeMac.mm:
- (WebCore::RenderThemeMac::isControlStyled): Updated for textarea.
- (WebCore::RenderThemeMac::adjustTextAreaStyle): ditto.
- * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::HTMLGenericFormElement):
- Moved m_valueMatchesRenderer and its setters and getters into this class so HTMLInputElement and
- HTMLTextArea can share.
- * html/HTMLGenericFormElement.h:
- (WebCore::HTMLGenericFormElement::valueMatchesRenderer): Added.
- (WebCore::HTMLGenericFormElement::setValueMatchesRenderer): Added.
- * html/HTMLInputElement.cpp:
- (WebCore::HTMLInputElement::init): Remove m_valueMatchesRenderer intialization.
- (WebCore::HTMLInputElement::isKeyboardFocusable): Updated spelling.
- (WebCore::HTMLInputElement::createRenderer): Pass multiLine bool to RenderTextField constructor.
- (WebCore::HTMLInputElement::parseMappedAttribute): Use setValueMatchesRenderer instead of m_valueMatchesRenderer.
- (WebCore::HTMLInputElement::detach): ditto.
- (WebCore::HTMLInputElement::setValue): ditto.
- (WebCore::HTMLInputElement::setValueFromRenderer): ditto.
- * html/HTMLInputElement.h: Remove setValueMatchesRenderer and valueMatchesRenderer and m_valueMatchesRenderer.
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Calls setValueMatchesRenderer to intialize m_valueMatchesRenderer.
- (WebCore::HTMLTextAreaElement::selectionStart): Uses appearance to determine which renderer to use.
- (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
- (WebCore::HTMLTextAreaElement::setSelectionStart): ditto.
- (WebCore::HTMLTextAreaElement::setSelectionEnd): ditto.
- (WebCore::HTMLTextAreaElement::select): ditto.
- (WebCore::HTMLTextAreaElement::setSelectionRange): ditto.
- (WebCore::HTMLTextAreaElement::createRenderer): ditto.
- (WebCore::HTMLTextAreaElement::appendFormData): ditto.
- (WebCore::HTMLTextAreaElement::updateValue): ditto.
- (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Added.
- (WebCore::HTMLTextAreaElement::isMouseFocusable): Added.
- (WebCore::HTMLTextAreaElement::focus): Added.
- (WebCore::HTMLTextAreaElement::defaultEventHandler): Added to forward events to the inner div.
- (WebCore::HTMLTextAreaElement::setValue): Calls setValueMatchesRenderer.
- * html/HTMLTextAreaElement.h: Added defaultEventHandler, isMouseFocusable, isKeyboardFocusable, and focus methods.
- Removed invalidateValue and m_valueMatchesRenderer since those are now handled in the base class.
- * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler):
- Updated to handle textareas.
- * rendering/RenderTextArea.cpp: (WebCore::RenderTextArea::valueChanged):
- Calls setValueMatchesRenderer(false) instead of invalidateValue.
- * rendering/RenderTextField.h: Changed to be a RenderFlexibleBox instead of a RenderBlock.
- This was necessary to get the inner div's height to grow and shrink with the size of the textarea.
- Added m_multiLine bool, and calcHeight, canHaveChildren, baselinePosition, isTextArea, textWithHardLineBreaks, selectionChanged.
- (WebCore::RenderTextField::canHaveChildren): Returns false now so that no renderer gets created for
- the textarea's child text node for its initial contents.
- (WebCore::RenderTextField::isTextField): Returns true if m_multiLine is false.
- (WebCore::RenderTextField::isTextArea): Returns true if m_multiLine is true.
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::RenderTextField): Initializes m_multiLine.
- (WebCore::RenderTextField::~RenderTextField): Notifies HTMLTextAreaElement that the renderer is being destroyed so the value gets updated.
- (WebCore::RenderTextField::setStyle): Makes sure there's no overflow clip on the RenderTextField, since we're handling overflow on the inner div.
- (WebCore::RenderTextField::createDivStyle): Sets white-space, box-flex, overflow, word-wrap styles needed for text area.
- (WebCore::RenderTextField::updateFromElement): Updated for textarea elements.
- (WebCore::RenderTextField::setSelectionRange): Optimized caret case by checking to see if start is equal to end before calculating
- the same VisiblePosition twice.
- (WebCore::RenderTextField::subtreeHasChanged): Updated for textarea elements.
- (WebCore::RenderTextField::text): Use innerText so newlines are considered.
- (WebCore::RenderTextField::textWithHardLineBreaks): Added. Not implemented yet. Just calls text method.
- (WebCore::RenderTextField::calcHeight): Added. Sets initial height based on specified number of rows, and then calls the base class.
- (WebCore::RenderTextField::baselinePosition): Added. Unlike text fields, textareas align to the bottom.
- (WebCore::RenderTextField::calcMinMaxWidth): Updated for textareas.
- (WebCore::RenderTextField::selectionChanged): Added. Not implemented yet.
- 2006-05-17 David Hyatt <hyatt@apple.com>
- Fix for 8954, separate the glyph map out into its own files and make it
- cross-platform.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance):
- * platform/FontData.h:
- (WebCore::FontData::glyphDataForCharacter):
- (WebCore::FontData::setGlyphDataForCharacter):
- * platform/GlyphMap.cpp: Added.
- (WebCore::GlyphMap::glyphDataForCharacter):
- (WebCore::GlyphMap::setGlyphDataForCharacter):
- (WebCore::GlyphMap::locatePage):
- * platform/GlyphMap.h: Added.
- (WebCore::GlyphMap::GlyphMap):
- (WebCore::GlyphMap::~GlyphMap):
- (WebCore::GlyphMap::GlyphPage::glyphDataForCharacter):
- (WebCore::GlyphMap::GlyphPage::setGlyphDataForCharacter):
- (WebCore::GlyphMap::GlyphPage::setGlyphDataForIndex):
- * platform/mac/FontData.mm:
- (-[NSFont WebCore]):
- (WidthMap::m_ATSUMirrors):
- (WidthMap::FontData::~FontData):
- (WidthMap::FontData::xHeight):
- (WidthMap::FontData::platformInit):
- (WidthMap::extendWidthMap):
- * platform/mac/GlyphMapMac.cpp: Added.
- (WebCore::GlyphMap::fillPage):
- * platform/mac/WebCoreSystemInterface.h:
- 2006-05-17 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=8958
- Should be able to have custom implementations for JS methods
-
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSCanvasRenderingContext2DBase.cpp: Removed.
- * bindings/js/JSCanvasRenderingContext2DBase.h: Removed.
- * bindings/js/JSCanvasRenderingContext2DCustom.cpp: Added.
- Remove JSCanvasRenderingContext2DBase and add
- JSCanvasRenderingContext2DCustom with custom implementations.
-
- (WebCore::toJS):
- (WebCore::toHTMLCanvasStyle):
- (WebCore::JSCanvasRenderingContext2D::strokeStyle):
- (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
- (WebCore::JSCanvasRenderingContext2D::fillStyle):
- (WebCore::JSCanvasRenderingContext2D::setFillStyle):
- (WebCore::JSCanvasRenderingContext2D::setFillColor):
- (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
- (WebCore::JSCanvasRenderingContext2D::strokeRect):
- (WebCore::JSCanvasRenderingContext2D::drawImage):
- (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
- (WebCore::JSCanvasRenderingContext2D::setShadow):
- (WebCore::JSCanvasRenderingContext2D::createPattern):
- Move implementations from JSCanvasRenderingContext2DBase.
-
- * bindings/scripts/CodeGeneratorJS.pm:
- Add new "Custom" extended attribute for functions and attributes. When a function or
- attribute has this attribute, a custom implementation is called instead of calling down to
- the DOM object.
-
- * html/CanvasRenderingContext2D.idl:
- Add bunch of custom attributes and functions.
- 2006-05-17 John Sullivan <sullivan@apple.com>
- Reviewed by Maciej.
-
- First step towards making text-matching mechanism more flexible; now caller can
- control whether or not the matches are highlighted.
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:]):
- renamed from highlightAllMatchesForString:
- (-[WebCoreFrameBridge markedTextMatchesAreHighlighted]):
- new getter method
- (-[WebCoreFrameBridge setMarkedTextMatchesAreHighlighted:]):
- new setter method
- (-[WebCoreFrameBridge unmarkAllTextMatches]):
- renamed from clearHighlightedMatches
-
- * page/Frame.h:
- * page/Frame.cpp:
- (WebCore::Frame::markAllMatchesForText):
- renamed from highlightAllMatchesForString
- (WebCore::Ferame::markedTextMatchesAreHighlighted):
- new getter method, uses boolean ivar in FramePrivate
- (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
- new setter method, uses boolean ivar in FramePrivate
-
- * page/FramePrivate.h:
- (WebCore::FramePrivate::FramePrivate):
- added boolean ivar m_highlightTextMatches, initialized to 0
-
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paint):
- respect markedTextMatchesAreHighlighted
- * WebCore.xcodeproj/project.pbxproj:
- newer Xcode removed some obsolete settings
-
- 2006-05-17 Adele Peterson <adele@apple.com>
- Reviewed by Beth.
- * editing/htmlediting.cpp: (WebCore::editingIgnoresContent):
- Reverting change that Darin made a few weeks ago. He was trying
- to make editingIgnoresContent return true for the new text fields, but the code
- actually didn't change that result. When the new text fields actually do return
- true for editingIgnoresContent, other editing problems are exposed. For example,
- moving the cursor around an editable area that contains a text field will cross the
- text field boundary and descend into the shadow tree. So for now, we'll revert this
- change.
- 2006-05-17 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Maciej, tweaked by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8951
- AtomicString hash corrupted by high-bit Latin-1
- Test: fast/encoding/high-bit-latin1.html
- * platform/AtomicString.cpp: (WebCore::CStringTranslator::equal): Use an
- unsigned char local.
- * platform/StringImpl.cpp: (WebCore::StringImpl::init): Ditto.
- 2006-05-17 Rob Buis <buis@kde.org>
- Reviewed by Maciej.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=7492
- CSS attribute selectors fail when the setAttribute() method is used
- to create an attribute and the attribute name is not Class or ID.
- Keep track of attributes used in attribute selectors to
- check after setAttribute whether a style recalc is needed.
- Test: fast/css/selector-set-attribute.html
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::checkOneSelector):
- (WebCore::CSSStyleSelector::hasSelectorForAttribute):
- * css/cssstyleselector.h:
- * dom/StyledElement.cpp:
- (WebCore::StyledElement::attributeChanged):
- 2006-05-17 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=5264
- document.createElementNS() should not allow to insert a second <html> element
- Do extra checks for document nodes to detect multiple document elements
- and document types.
- Test: fast/dom/createDocumentType2.html
- Test: fast/dom/createElementNS.html
- * dom/Document.cpp:
- (WebCore::Document::childTypeAllowed):
- * dom/Document.h:
- 2006-05-17 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- * DerivedSources.make:
- Conditionally generate the SVG and XPath related files based on the value of
- FEATURE_DEFINES. Also, pass FEATURE_DEFINES to the bindings generator.
-
- * WebCore.xcodeproj/project.pbxproj:
- Add FEATURE_DEFINES as a toplevel build setting and set it to "SVG_SUPPORT XPATH_SUPPORT"
- to keep SVG and XPath support turned on. Add FEATURE_DEFINES to the CPP defines.
-
- * bindings/js/kjs_binding.cpp:
- (KJS::setDOMException):
- Add #ifdefs around the XPath code.
-
- * bindings/scripts/CodeGeneratorJS.pm:
- Add "Conditional" extended attribute for interfaces. If this is set, the generated code will be
- surrounded by an #if.
-
- * bindings/scripts/IDLParser.pm:
- Pass the define flags on to the preprocessor.
-
- * bindings/scripts/generate-bindings.pl:
- Add a --defines property and pass it on to the parser.
-
- * css/cssstyleselector.h:
- Add DeprecatedString.h include.
-
- * dom/Document.idl:
- Put back #if around the XPath functions
-
- * page/DOMWindow.idl:
- Put #if around the XPath constructors
-
- * xpath/XPathEvaluator.idl:
- * xpath/XPathExpression.idl:
- * xpath/XPathNSResolver.cpp:
- * xpath/XPathNSResolver.idl:
- * xpath/XPathNamespace.cpp:
- * xpath/XPathResult.idl:
- Add "Conditional=XPATH" to all interfaces.
-
- 2006-05-16 Darin Adler <darin@apple.com>
- Reviewed by Anders.
- - http://bugs.webkit.org/show_bug.cgi?id=8940
- remove extra copy of image code
- * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRenderer.h.
- * platform/mac/WebCoreImageRenderer.h: Removed.
- * bridge/mac/WebCoreFrameBridge.h: Added supportedImageResourceMIMETypes.
- Like supportedImageMIMETypes, but includes PDF and PostScript.
- * bridge/mac/WebCoreFrameBridge.mm:
- (+[WebCoreFrameBridge supportedImageResourceMIMETypes]): Added.
- Has code that came from -[WebImageRendererFactory supportedMIMETypes].
- (+[WebCoreFrameBridge supportedImageMIMETypes]):
- * platform/mac/ImageMac.mm:
- (WebCore::Image::supportsType): Instead of calling the old
- -[WebCoreImageRendererFactory supportedMIMETypes], call the new
- +[WebCoreFrameBridge supportedImageResourceMIMETypes].
- (WebCore::Image::drawTiled): Use wkSetPatternPhaseInUserSpace instead of
- the WebCoreImageRendererFactory.
- * platform/mac/ClipboardMac.mm: Removed an unneeded include of
- WebCoreImageRenderer.h.
- * platform/mac/WebCoreImageRendererFactory.h: Removed everything except
- for the one remaining method, imageDataForName:, which gets resources
- from the WebKit localized resources. We should figure out how to remove
- that one too later.
- * platform/mac/WebCoreImageRendererFactory.m: Ditto.
- * platform/mac/WebCoreSystemInterface.h: Added some new calls.
- * platform/mac/WebCoreSystemInterface.mm: Ditto.
- * WebCore.exp: Ditto.
- * platform/cairo/ImageCairo.cpp: Moved a stub to the stubs file. If it's
- here it has to have a FIXME comment and also it contains a big commented-out
- pile of code. Better to have it in the stubs file with all the other stubs.
- * platform/win/TemporaryLinkStubs.cpp: (Image::drawTiled): Put stub here
- instead of having it in ImageCairo.cpp.
- 2006-05-16 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Dave Hyatt.
- http://bugs.webkit.org/show_bug.cgi?id=8941
- document.cookie undefined for documents of type text/javascript
-
- * loader/TextDocument.cpp:
- (WebCore::TextDocument::TextDocument):
- * loader/TextDocument.h:
- Inherit from HTMLDocument.
- 2006-05-16 Darin Adler <darin@apple.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8898
- REGRESSION: Attempting to right-click image in own tab on website causes crash
- - fix http://bugs.webkit.org/show_bug.cgi?id=8919
- REGRESSION: image could not be dragged, subsequent click-drag activity caused crash
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge domain]): Removed unneeded check of isHTMLDocument.
- (-[WebCoreFrameBridge getData:andResponse:forURL:]): Handle document() of 0.
- (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]): Ditto.
- 2006-05-16 Eric Seidel <eseidel@apple.com>
- Reviewed by andersca.
- Autogenerate BASE, HEAD, LINK, STYLE and TITLE JS bindings.
- Already covered by existing dom tests.
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createBaseWrapper):
- (WebCore::createHeadWrapper):
- (WebCore::createLinkWrapper):
- (WebCore::createStyleWrapper):
- (WebCore::createTitleWrapper):
- (WebCore::createJSWrapper):
- * bindings/js/kjs_html.cpp:
- (KJS::):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- * bindings/js/kjs_html.h:
- * html/HTMLBaseElement.idl: Added.
- * html/HTMLHeadElement.idl: Added.
- * html/HTMLLinkElement.idl: Added.
- * html/HTMLStyleElement.idl: Added.
- * html/HTMLTitleElement.idl: Added.
- 2006-05-16 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=8921
- Use WebCore to render full-frame images.
- * WebCore.xcodeproj/project.pbxproj:
- Add ImageDocument.
-
- * bridge/mac/WebCoreFrameBridge.h:
- Add mainResourceURLResponse and imageTitleForFilename.
-
- * bridge/mac/WebCoreFrameBridge.mm:
- (+[WebCoreFrameBridge supportedNonImageMIMETypes]):
- This used to be supportedMIMETypes but WebKit requires that we handle the
- image MIME types separately.
-
- (+[WebCoreFrameBridge supportedImageMIMETypes]):
- Add image types from WebCoreImageRendererFactory.
-
- (-[WebCoreFrameBridge canProvideDocumentSource]):
- Return no for image types.
-
- * dom/xml_tokenizer.h:
- (WebCore::Tokenizer::wantsRawData):
- (WebCore::Tokenizer::writeRawData):
- New virtual functions which tokenizers can override if they want to get
- raw data (which isn't fed through the decoder)
-
- * html/HTMLImageElement.h:
- (WebCore::HTMLImageElement::setLoadManually):
- New function which calls HTMLImageLoader::setLoadManually
-
- * html/HTMLImageLoader.cpp:
- (WebCore::HTMLImageLoader::HTMLImageLoader):
- (WebCore::HTMLImageLoader::updateFromElement):
- Don't request the image from the loader if the load is set to be manual.
-
- * html/HTMLImageLoader.h:
- (WebCore::HTMLImageLoader::setLoadManually):
- New function which decides if the image data should be fed manually or loaded
- by the loader.
-
- * loader/DocLoader.h:
- Add HTMLImageLoader as a friend.
-
- * loader/ImageDocument.cpp: Added.
- (WebCore::ImageTokenizer::ImageTokenizer):
- (WebCore::ImageTokenizer::wantsRawData):
- (WebCore::ImageTokenizer::write):
- (WebCore::ImageTokenizer::writeRawData):
- (WebCore::ImageTokenizer::stopParsing):
- (WebCore::ImageTokenizer::finish):
- (WebCore::ImageTokenizer::isWaitingForScripts):
- (WebCore::ImageDocument::ImageDocument):
- (WebCore::ImageDocument::createTokenizer):
- * loader/ImageDocument.h: Added.
- Add new ImageDocument class which will feed its data to a created image element.
- * loader/TextDocument.h:
- Inherit from HTMLDocument here too, in case any broken web pages want to manipulate
- the DOM of any plain text documents.
-
- * page/Frame.cpp:
- (WebCore::Frame::begin):
- (WebCore::Frame::write):
- Don't create or use the decoder if the tokenizer is in "raw mode".
-
- 2006-05-16 Eric Seidel <eseidel@apple.com>
- Reviewed by andersca.
- Autogenerate JSHTMLMetaElement.
- http://bugs.webkit.org/show_bug.cgi?id=8938
- Test: fast/dom/HTMLMetaElement/meta-attributes.html
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createMetaWrapper):
- (WebCore::createJSWrapper):
- * bindings/js/kjs_html.cpp:
- (KJS::):
- (KJS::JSHTMLElement::classInfo):
- (KJS::JSHTMLElement::accessors):
- * bindings/js/kjs_html.h:
- * html/HTMLMetaElement.h:
- 2006-05-16 David Hyatt <hyatt@apple.com>
- Bug 8936, eliminate WebTextRendererFactory and convert it over to the
- new FontCache.
- Reviewed by andersca
- * WebCore.xcodeproj/project.pbxproj:
- * bridge/mac/WebCoreStringTruncator.mm:
- * kwq/KWQComboBox.mm:
- * kwq/KWQLineEdit.mm:
- * kwq/KWQListBox.mm:
- * platform/Font.h:
- (WebCore::Font::bold):
- * platform/FontCache.cpp: Added.
- (WebCore::FontPlatformDataCacheKey::m_italic):
- (WebCore::FontPlatformDataCacheKey::operator==):
- (WebCore::computeHash):
- (WebCore::FontPlatformDataCacheKeyHash::hash):
- (WebCore::FontPlatformDataCacheKeyHash::equal):
- (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
- (WebCore::FontCache::getCachedFontPlatformData):
- (WebCore::FontDataCacheKeyHash::hash):
- (WebCore::FontDataCacheKeyHash::equal):
- (WebCore::FontDataCacheKeyTraits::deletedValue):
- (WebCore::FontCache::getCachedFontData):
- (WebCore::FontCache::getFontData):
- (WebCore::FontCache::clearCommonCaches):
- * platform/FontCache.h:
- * platform/FontData.h:
- * platform/FontFamily.cpp:
- (WebCore::FontFamily::FontFamily):
- (WebCore::FontFamily::operator=):
- (WebCore::FontFamily::setFamily):
- * platform/FontFamily.h:
- (WebCore::FontFamily::familyIsEmpty):
- * platform/FontPlatformData.h:
- (WebCore::FontPlatformData::hash):
- (WebCore::FontPlatformData::operator==):
- * platform/mac/FontCacheMac.mm:
- (WebCore::getAppDefaultValue):
- (WebCore::getUserDefaultValue):
- (WebCore::getLCDScaleParameters):
- (WebCore::fontsChanged):
- (WebCore::FontCache::registerForFontChanges):
- (WebCore::FontCache::clearCaches):
- (WebCore::FontCache::getFontDataForCharacters):
- (WebCore::FontCache::getSimilarFontPlatformData):
- (WebCore::FontCache::getLastResortFallbackFont):
- (WebCore::FontCache::createFontPlatformData):
- * platform/mac/FontData.mm:
- (-[NSFont WebCore]):
- (WidthMap::FontData::xHeight):
- (WidthMap::FontData::smallCapsFontData):
- (WidthMap::computeWidthForSpace):
- (WidthMap::setUpFont):
- (WidthMap::fillStyleWithAttributes):
- (WidthMap::FontData::determinePitch):
- * platform/mac/FontFallbackListMac.mm:
- (WebCore::FontFallbackList::setPlatformFont):
- * platform/mac/FontFamilyMac.mm: Removed.
- * platform/mac/FontMac.mm:
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreFindFont):
- * platform/mac/WebFontCache.h: Added.
- * platform/mac/WebFontCache.mm: Added.
- (acceptableChoice):
- (betterChoice):
- (+[WebFontCache fontWithFamily:traits:size:]):
- * platform/mac/WebTextRendererFactory.h: Removed.
- * platform/mac/WebTextRendererFactory.mm: Removed.
- 2006-05-16 Eric Seidel <eseidel@apple.com>
- Reviewed by andersca.
- Add Rect.idl, even though it can't be used quite yet due to generator limitations.
- * WebCore.xcodeproj/project.pbxproj:
- * css/Rect.idl: Added.
- 2006-05-16 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by darin. Landed by eseidel.
- Patch for <http://bugs.webkit.org/show_bug.cgi?id=8924>
- Bug 8924: re-apply the 'disabled type=file' change
- from bug 5882 to RenderFileButton
-
- * rendering/RenderFileButton.cpp:
- (WebCore::RenderFileButton::updateFromElement):
- 2006-05-16 Eric Seidel <eseidel@apple.com>
- Reviewed by hyatt.
- Split css_base.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8935
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_css.cpp:
- * css/CSSBorderImageValue.cpp:
- * css/CSSBorderImageValue.h:
- * css/CSSCharsetRule.h:
- * css/CSSFontFaceRule.h:
- * css/CSSGrammar.y:
- * css/CSSImportRule.h:
- * css/CSSInheritedValue.cpp:
- * css/CSSInitialValue.cpp:
- * css/CSSMediaRule.h:
- * css/CSSMutableStyleDeclaration.h:
- * css/CSSNamespace.h: Added.
- (WebCore::CSSNamespace::CSSNamespace):
- (WebCore::CSSNamespace::namespaceForPrefix):
- * css/CSSPageRule.h:
- * css/CSSPrimitiveValue.h:
- * css/CSSProperty.cpp:
- * css/CSSProperty.h:
- * css/CSSRule.h:
- * css/CSSRuleList.cpp:
- * css/CSSSelector.cpp: Added.
- * css/CSSSelector.h: Added.
- (WebCore::CSSSelector::CSSSelector):
- * css/CSSStyleDeclaration.h:
- * css/CSSStyleRule.cpp:
- * css/CSSStyleRule.h:
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::~CSSStyleSheet):
- * css/CSSStyleSheet.h:
- * css/CSSValue.h:
- * css/CSSValueList.cpp:
- * css/CSSValueList.h:
- * css/FontFamilyValue.cpp:
- * css/FontValue.cpp:
- * css/FontValue.h:
- * css/MediaList.h:
- * css/ShadowValue.cpp:
- * css/ShadowValue.h:
- * css/StyleBase.cpp: Added.
- (WebCore::StyleBase::stylesheet):
- * css/StyleBase.h: Added.
- (WebCore::StyleBase::StyleBase):
- * css/StyleList.cpp: Added.
- * css/StyleList.h: Added.
- * css/StyleSheet.h:
- * css/css_base.cpp: Removed.
- * css/css_base.h: Removed.
- * css/cssparser.cpp:
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::matchRulesForList):
- * css/cssstyleselector.h:
- * dom/CSSMappedAttributeDeclaration.h:
- * ksvg2/svg/SVGColor.cpp:
- (WebCore::SVGColor::SVGColor):
- (WebCore::SVGColor::setRGBColor):
- (WebCore::SVGColor::setRGBColorICCColor):
- (WebCore::SVGColor::setColor):
- (WebCore::SVGColor::cssText):
- (WebCore::SVGColor::color):
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGStyledElement.cpp:
- (WebCore::SVGStyledElement::SVGStyledElement):
- (WebCore::SVGStyledElement::className):
- (WebCore::SVGStyledElement::createRenderer):
- (WebCore::SVGStyledElement::parseMappedAttribute):
- (WebCore::SVGStyledElement::notifyAttributeChange):
- (WebCore::SVGStyledElement::attributeChanged):
- (WebCore::SVGStyledElement::canvas):
- (WebCore::SVGStyledElement::updateCanvasItem):
- (WebCore::SVGStyledElement::pushAttributeContext):
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by hyatt.
- Split css_valueimpl.* and css_ruleimpl.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8934
- * WebCore+SVG/RGBColor.cpp:
- (WebCore::RGBColor::RGBColor):
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_css.cpp:
- (KJS::DOMCSSRule::classInfo):
- * bindings/js/kjs_css.h:
- * bindings/js/kjs_dom.cpp:
- * bindings/js/kjs_html.cpp:
- * bindings/js/kjs_window.cpp:
- * bindings/objc/DOMCSS.mm:
- * bindings/scripts/CodeGeneratorJS.pm:
- * css/CSSBorderImageValue.cpp: Added.
- (WebCore::CSSBorderImageValue::CSSBorderImageValue):
- * css/CSSBorderImageValue.h: Added.
- * css/CSSCharsetRule.h: Added.
- (WebCore::CSSCharsetRule::CSSCharsetRule):
- * css/CSSComputedStyleDeclaration.cpp:
- (WebCore::valueForShadow):
- (WebCore::):
- * css/CSSComputedStyleDeclaration.h:
- * css/CSSFontFaceRule.cpp: Added.
- (WebCore::CSSFontFaceRule::CSSFontFaceRule):
- * css/CSSFontFaceRule.h: Added.
- (WebCore::CSSFontFaceRule::isFontFaceRule):
- * css/CSSGrammar.y:
- * css/CSSImageValue.cpp: Added.
- (WebCore::CSSImageValue::CSSImageValue):
- * css/CSSImageValue.h: Added.
- * css/CSSImportRule.cpp: Added.
- * css/CSSImportRule.h: Added.
- * css/CSSInheritedValue.cpp: Added.
- * css/CSSInheritedValue.h: Added.
- * css/CSSInitialValue.cpp: Added.
- * css/CSSInitialValue.h: Added.
- * css/CSSMediaRule.cpp: Added.
- (WebCore::CSSMediaRule::CSSMediaRule):
- (WebCore::CSSMediaRule::~CSSMediaRule):
- (WebCore::CSSMediaRule::append):
- (WebCore::CSSMediaRule::deleteRule):
- (WebCore::CSSMediaRule::cssText):
- * css/CSSMediaRule.h: Added.
- (WebCore::CSSMediaRule::media):
- (WebCore::CSSMediaRule::cssRules):
- * css/CSSMutableStyleDeclaration.cpp: Added.
- (WebCore::CSSMutableStyleDeclaration::CSSMutableStyleDeclaration):
- (WebCore::CSSMutableStyleDeclaration::setChanged):
- * css/CSSMutableStyleDeclaration.h: Added.
- * css/CSSPageRule.cpp: Added.
- (WebCore::CSSPageRule::CSSPageRule):
- * css/CSSPageRule.h: Added.
- (WebCore::CSSPageRule::isPageRule):
- * css/CSSPrimitiveValue.cpp: Added.
- * css/CSSPrimitiveValue.h: Added.
- * css/CSSProperty.cpp: Added.
- (WebCore::CSSProperty::cssText):
- * css/CSSProperty.h: Added.
- (WebCore::CSSProperty::CSSProperty):
- * css/CSSQuirkPrimitiveValue.h: Added.
- * css/CSSRule.cpp: Added.
- * css/CSSRule.h: Added.
- (WebCore::CSSRule::CSSRule):
- * css/CSSRuleList.cpp: Added.
- (WebCore::CSSRuleList::CSSRuleList):
- (WebCore::CSSRuleList::~CSSRuleList):
- (WebCore::CSSRuleList::deleteRule):
- (WebCore::CSSRuleList::append):
- (WebCore::CSSRuleList::insertRule):
- * css/CSSRuleList.h: Added.
- (WebCore::CSSRuleList::item):
- * css/CSSStyleDeclaration.cpp: Added.
- (WebCore::CSSStyleDeclaration::CSSStyleDeclaration):
- (WebCore::CSSStyleDeclaration::diff):
- * css/CSSStyleDeclaration.h: Added.
- * css/CSSStyleRule.cpp: Added.
- (WebCore::CSSStyleRule::CSSStyleRule):
- (WebCore::CSSStyleRule::selectorText):
- * css/CSSStyleRule.h: Added.
- * css/CSSStyleSheet.cpp:
- (WebCore::CSSStyleSheet::ownerRule):
- * css/CSSUnknownRule.h: Added.
- (WebCore::CSSUnknownRule::CSSUnknownRule):
- * css/CSSValue.h: Added.
- * css/CSSValueList.cpp: Added.
- * css/CSSValueList.h: Added.
- * css/Counter.h: Added.
- * css/DashboardRegion.h: Added.
- * css/FontFamilyValue.cpp: Added.
- * css/FontFamilyValue.h: Added.
- (WebCore::FontFamilyValue::genericFamilyType):
- * css/FontValue.cpp: Added.
- (WebCore::FontValue::cssText):
- * css/FontValue.h: Added.
- * css/MediaList.cpp:
- * css/Pair.h: Added.
- (WebCore::Pair::~Pair):
- * css/RectImpl.h: Added.
- (WebCore::RectImpl::~RectImpl):
- * css/ShadowValue.cpp: Added.
- (WebCore::ShadowValue::ShadowValue):
- * css/ShadowValue.h: Added.
- * css/css_base.cpp:
- * css/css_ruleimpl.cpp: Removed.
- * css/css_ruleimpl.h: Removed.
- * css/css_valueimpl.cpp: Removed.
- * css/css_valueimpl.h: Removed.
- * css/cssparser.cpp:
- (WebCore::CSSParser::parseColor):
- (WebCore::CSSParser::parseFontFamily):
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::locateCousinList):
- (WebCore::CSSStyleSelector::checkSelector):
- (WebCore::CSSRuleSet::addRulesFromSheet):
- (WebCore::CSSStyleSelector::applyProperty):
- (WebCore::CSSStyleSelector::mapBackgroundImage):
- * css/cssstyleselector.h:
- * dom/CSSMappedAttributeDeclaration.h:
- (WebCore::CSSMappedAttributeDeclaration::CSSMappedAttributeDeclaration):
- * dom/Document.cpp:
- * editing/ApplyStyleCommand.cpp:
- * editing/CompositeEditCommand.h:
- * editing/EditCommand.cpp:
- * editing/InsertLineBreakCommand.cpp:
- (WebCore::InsertLineBreakCommand::doApply):
- * editing/InsertLineBreakCommand.h:
- * editing/InsertTextCommand.cpp:
- (WebCore::InsertTextCommand::input):
- * editing/RemoveCSSPropertyCommand.cpp:
- (WebCore::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand):
- (WebCore::RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand):
- * editing/RemoveCSSPropertyCommand.h:
- (WebCore::RemoveCSSPropertyCommand::styleDeclaration):
- * html/HTMLBodyElement.cpp:
- * html/HTMLElement.cpp:
- * html/HTMLScriptElement.h:
- * html/HTMLTokenizer.h:
- * kcanvas/KCanvasFilters.h:
- (WebCore::KCanvasFEColorMatrix::values):
- (WebCore::KCanvasFEColorMatrix::setValues):
- (WebCore::KCanvasFEConvolveMatrix::kernel):
- (WebCore::KCanvasFEConvolveMatrix::setKernel):
- * kcanvas/KCanvasPath.h:
- * kcanvas/KCanvasTreeDebug.h:
- (WebCore::operator<<):
- * kcanvas/RenderPath.h:
- * ksvg2/css/SVGCSSParser.cpp:
- (WebCore::CSSParser::parseSVGValue):
- (WebCore::CSSParser::parseSVGStrokeDasharray):
- (WebCore::CSSParser::parseSVGPaint):
- (WebCore::CSSParser::parseSVGColor):
- * ksvg2/css/SVGCSSStyleSelector.cpp:
- (WebCore::CSSStyleSelector::applySVGProperty):
- * ksvg2/css/SVGRenderStyleDefs.h:
- * ksvg2/ecma/Ecma.cpp:
- * ksvg2/misc/KCanvasRenderingStyle.cpp:
- * ksvg2/misc/KCanvasRenderingStyle.h:
- * ksvg2/svg/SVGAnimationElement.cpp:
- * ksvg2/svg/SVGColor.cpp:
- * ksvg2/svg/SVGColor.h:
- * ksvg2/svg/SVGCursorElement.h:
- * ksvg2/svg/SVGFEColorMatrixElement.cpp:
- (SVGFEColorMatrixElement::filterEffect):
- * page/DOMWindow.cpp:
- * page/Frame.cpp:
- * page/FramePrivate.h:
- * platform/DeprecatedValueList.h:
- * rendering/RenderTextField.cpp:
- 2006-05-15 Darin Adler <darin@apple.com>
- * WebCore.xcodeproj/project.pbxproj: Removed duplicate files that were
- screwing up Xcode.
- 2006-05-15 Darin Adler <darin@apple.com>
- * make-generated-sources.sh: Changed to be executable and removed
- text in the file generated by "svn diff".
- * move-js-headers.sh: Ditto.
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by mjs.
- Split css_stylesheetimpl.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8933
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * WebCore.xcodeproj/project.pbxproj:
- * css/CSSStyleSheet.cpp: Added.
- (WebCore::CSSStyleSheet::CSSStyleSheet):
- (WebCore::CSSStyleSheet::addRule):
- (WebCore::CSSStyleSheet::deleteRule):
- (WebCore::CSSStyleSheet::parseString):
- (WebCore::CSSStyleSheet::docLoader):
- * css/CSSStyleSheet.h: Added.
- * css/MediaList.cpp: Added.
- (WebCore::MediaList::MediaList):
- (WebCore::MediaList::contains):
- (WebCore::MediaList::parentStyleSheet):
- (WebCore::MediaList::parentRule):
- (WebCore::MediaList::deleteMedium):
- (WebCore::MediaList::setMediaText):
- * css/MediaList.h: Added.
- * css/StyleSheet.cpp: Added.
- (WebCore::StyleSheet::StyleSheet):
- (WebCore::StyleSheet::parentStyleSheet):
- (WebCore::StyleSheet::setMedia):
- * css/StyleSheet.h: Added.
- (WebCore::StyleSheet::ownerNode):
- * css/StyleSheetList.cpp: Added.
- (WebCore::StyleSheetList::~StyleSheetList):
- (WebCore::StyleSheetList::add):
- (WebCore::StyleSheetList::remove):
- (WebCore::StyleSheetList::item):
- * css/StyleSheetList.h: Added.
- * css/css_stylesheetimpl.cpp: Removed.
- * css/css_stylesheetimpl.h: Removed.
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- * WebCore.xcodeproj/project.pbxproj: build fix.
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by ggaren.
- Split dom_xmlimpl.* into separate files (one per class).
- * WebCore.xcodeproj/project.pbxproj:
- * dom/Entity.cpp: Added.
- (WebCore::Entity::Entity):
- * dom/Entity.h: Added.
- * dom/EntityReference.cpp: Added.
- (WebCore::EntityReference::EntityReference):
- * dom/EntityReference.h: Added.
- * dom/Notation.cpp: Added.
- (WebCore::Notation::Notation):
- * dom/Notation.h: Added.
- * dom/ProcessingInstruction.cpp: Added.
- (WebCore::ProcessingInstruction::ProcessingInstruction):
- * dom/ProcessingInstruction.h: Added.
- * dom/dom_xmlimpl.cpp: Removed.
- * dom/dom_xmlimpl.h: Removed.
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by Tim Hatcher.
- Split html_imageimpl.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8929
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/JSCanvasRenderingContext2DBase.cpp:
- * bindings/js/kjs_events.cpp:
- * bindings/js/kjs_html.cpp:
- * bindings/objc/DOMHTML.mm:
- * bridge/mac/WebCoreFrameBridge.mm:
- * dom/Document.cpp:
- * editing/JSEditor.cpp:
- * html/CanvasRenderingContext2D.cpp:
- * html/HTMLAnchorElement.cpp:
- * html/HTMLAreaElement.cpp: Added.
- (WebCore::HTMLAreaElement::HTMLAreaElement):
- (WebCore::HTMLAreaElement::mapMouseEvent):
- (WebCore::HTMLAreaElement::getRect):
- (WebCore::HTMLAreaElement::getRegion):
- * html/HTMLAreaElement.h: Added.
- * html/HTMLCanvasElement.h:
- * html/HTMLDocument.cpp:
- * html/HTMLElementFactory.cpp:
- * html/HTMLFormCollection.cpp:
- * html/HTMLFormElement.cpp:
- * html/HTMLImageElement.cpp: Added.
- (WebCore::HTMLImageElement::HTMLImageElement):
- * html/HTMLImageElement.h: Added.
- * html/HTMLImageLoader.cpp: Added.
- (WebCore::HTMLImageLoader::HTMLImageLoader):
- * html/HTMLImageLoader.h: Added.
- * html/HTMLInputElement.cpp:
- * html/HTMLMapElement.cpp: Added.
- (WebCore::HTMLMapElement::mapMouseEvent):
- (WebCore::HTMLMapElement::parseMappedAttribute):
- * html/HTMLMapElement.h: Added.
- * html/HTMLObjectElement.cpp:
- * html/HTMLParser.cpp:
- * html/html_imageimpl.cpp: Removed.
- * html/html_imageimpl.h: Removed.
- * ksvg2/misc/SVGImageLoader.h:
- * kwq/WebCoreAXObject.mm:
- (-[WebCoreAXObject addChildrenToArray:]):
- * page/Frame.cpp:
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::RenderImage):
- (WebCore::RenderImage::nodeAtPoint):
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by beth.
- Split html_blockimpl.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8927
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_html.cpp:
- * bindings/objc/DOMHTML.mm:
- * html/HTMLBlockquoteElement.cpp: Added.
- (WebCore::HTMLBlockquoteElement::HTMLBlockquoteElement):
- * html/HTMLBlockquoteElement.h: Added.
- * html/HTMLDivElement.cpp: Added.
- * html/HTMLDivElement.h: Added.
- * html/HTMLElementFactory.cpp:
- * html/HTMLHRElement.cpp: Added.
- * html/HTMLHRElement.h: Added.
- * html/HTMLHeadingElement.cpp: Added.
- * html/HTMLHeadingElement.h: Added.
- * html/HTMLMarqueeElement.cpp: Added.
- (WebCore::HTMLMarqueeElement::HTMLMarqueeElement):
- (WebCore::HTMLMarqueeElement::parseMappedAttribute):
- * html/HTMLMarqueeElement.h: Added.
- * html/HTMLParagraphElement.cpp: Added.
- * html/HTMLParagraphElement.h: Added.
- * html/HTMLParser.cpp:
- * html/HTMLPreElement.cpp: Added.
- (WebCore::HTMLPreElement::HTMLPreElement):
- (WebCore::HTMLPreElement::setWrap):
- * html/HTMLPreElement.h: Added.
- * html/HTMLTextFieldInnerElement.h:
- * html/html_blockimpl.cpp: Removed.
- * html/html_blockimpl.h: Removed.
- * rendering/RenderLayer.cpp:
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Reviewed by ggaren.
- Split render_list.* and html_listimpl.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8925
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_html.cpp:
- * bindings/objc/DOMHTML.mm:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::attributedString):
- * html/HTMLDListElement.cpp: Added.
- (WebCore::HTMLDListElement::HTMLDListElement):
- * html/HTMLDListElement.h: Added.
- * html/HTMLDirectoryElement.cpp: Added.
- (WebCore::HTMLDirectoryElement::HTMLDirectoryElement):
- * html/HTMLDirectoryElement.h: Added.
- * html/HTMLElementFactory.cpp:
- * html/HTMLKeygenElement.cpp:
- * html/HTMLLIElement.cpp: Added.
- (WebCore::HTMLLIElement::HTMLLIElement):
- (WebCore::HTMLLIElement::parseMappedAttribute):
- (WebCore::HTMLLIElement::attach):
- (WebCore::HTMLLIElement::setType):
- * html/HTMLLIElement.h: Added.
- * html/HTMLMenuElement.cpp: Added.
- (WebCore::HTMLMenuElement::HTMLMenuElement):
- * html/HTMLMenuElement.h: Added.
- * html/HTMLOListElement.cpp: Added.
- (WebCore::HTMLOListElement::HTMLOListElement):
- (WebCore::HTMLOListElement::parseMappedAttribute):
- (WebCore::HTMLOListElement::setType):
- * html/HTMLOListElement.h: Added.
- (WebCore::HTMLOListElement::start):
- * html/HTMLOptionElement.cpp:
- (WebCore::HTMLOptionElement::HTMLOptionElement):
- (WebCore::HTMLOptionElement::checkDTD):
- (WebCore::HTMLOptionElement::text):
- (WebCore::HTMLOptionElement::setText):
- (WebCore::HTMLOptionElement::getSelect):
- (WebCore::HTMLOptionElement::setLabel):
- * html/HTMLOptionElement.h:
- * html/HTMLParser.cpp:
- * html/HTMLSelectElement.cpp:
- (WebCore::HTMLSelectElement::HTMLSelectElement):
- * html/HTMLUListElement.cpp: Added.
- (WebCore::HTMLUListElement::HTMLUListElement):
- * html/HTMLUListElement.h: Added.
- * html/html_listimpl.cpp: Removed.
- * html/html_listimpl.h: Removed.
- * kwq/WebCoreAXObject.mm:
- * rendering/InlineFlowBox.cpp:
- * rendering/ListMarkerBox.cpp: Added.
- (WebCore::ListMarkerBox::ListMarkerBox):
- (WebCore::ListMarkerBox::isText):
- * rendering/ListMarkerBox.h: Added.
- * rendering/RenderContainer.cpp:
- (WebCore::updateListMarkerNumbers):
- (WebCore::RenderContainer::addChild):
- (WebCore::RenderContainer::removeChild):
- (WebCore::RenderContainer::layout):
- (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
- (WebCore::RenderContainer::positionForCoordinates):
- (WebCore::RenderContainer::lineBoxRects):
- * rendering/RenderListItem.cpp: Added.
- (WebCore::RenderListItem::RenderListItem):
- (WebCore::RenderListItem::setStyle):
- (WebCore::RenderListItem::calcValue):
- (WebCore::RenderListItem::markerStringValue):
- * rendering/RenderListItem.h: Added.
- (WebCore::RenderListItem::renderName):
- (WebCore::RenderListItem::setValue):
- (WebCore::RenderListItem::setNotInList):
- (WebCore::RenderListItem::notInList):
- * rendering/RenderListMarker.cpp: Added.
- (WebCore::RenderListMarker::RenderListMarker):
- (WebCore::RenderListMarker::setStyle):
- (WebCore::RenderListMarker::paint):
- (WebCore::RenderListMarker::layout):
- (WebCore::RenderListMarker::calcMinMaxWidth):
- * rendering/RenderListMarker.h: Added.
- (WebCore::RenderListMarker::renderName):
- * rendering/RenderObject.cpp:
- * rendering/render_list.cpp: Removed.
- * rendering/render_list.h: Removed.
- 2006-05-15 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by eseidel.
- Split render_form.* into separate files (one per class).
- http://bugs.webkit.org/show_bug.cgi?id=8889
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLButtonElement.cpp:
- (WebCore::HTMLButtonElement::HTMLButtonElement):
- * html/HTMLFieldSetElement.cpp:
- * html/HTMLFormElement.cpp:
- * html/HTMLInputElement.cpp:
- * html/HTMLLabelElement.cpp:
- * html/HTMLLegendElement.cpp:
- (WebCore::HTMLLegendElement::createRenderer):
- * html/HTMLOptionElement.cpp:
- * html/HTMLSelectElement.cpp:
- * html/HTMLTextAreaElement.cpp:
- (WebCore::HTMLTextAreaElement::selectionStart):
- (WebCore::HTMLTextAreaElement::selectionEnd):
- (WebCore::HTMLTextAreaElement::setSelectionStart):
- (WebCore::HTMLTextAreaElement::setSelectionEnd):
- (WebCore::HTMLTextAreaElement::setSelectionRange):
- (WebCore::HTMLTextAreaElement::parseMappedAttribute):
- (WebCore::HTMLTextAreaElement::createRenderer):
- (WebCore::HTMLTextAreaElement::setValue):
- (WebCore::HTMLTextAreaElement::setDefaultValue):
- (WebCore::HTMLTextAreaElement::setAccessKey):
- * kwq/KWQComboBox.mm:
- * kwq/KWQFileButton.mm:
- * kwq/KWQListBox.mm:
- * kwq/KWQSlider.mm:
- * platform/mac/WebCoreTextField.mm:
- * rendering/RenderFieldset.cpp: Added.
- (WebCore::RenderFieldset::RenderFieldset):
- (WebCore::RenderFieldset::findLegend):
- (WebCore::RenderFieldset::paintBorderMinusLegend):
- (WebCore::RenderFieldset::setStyle):
- * rendering/RenderFieldset.h: Added.
- (WebCore::RenderFieldset::renderName):
- * rendering/RenderFileButton.cpp: Added.
- (WebCore::RenderFileButton::RenderFileButton):
- (WebCore::RenderFileButton::calcMinMaxWidth):
- (WebCore::RenderFileButton::updateFromElement):
- (WebCore::RenderFileButton::click):
- * rendering/RenderFileButton.h: Added.
- (WebCore::RenderFileButton::renderName):
- (WebCore::RenderFileButton::calcReplacedHeight):
- (WebCore::RenderFileButton::isEditable):
- * rendering/RenderFormElement.cpp: Added.
- (WebCore::RenderFormElement::RenderFormElement):
- (WebCore::RenderFormElement::baselinePosition):
- (WebCore::RenderFormElement::layout):
- * rendering/RenderFormElement.h: Added.
- (WebCore::RenderFormElement::renderName):
- (WebCore::RenderFormElement::isFormElement):
- (WebCore::RenderFormElement::borderTop):
- (WebCore::RenderFormElement::borderBottom):
- (WebCore::RenderFormElement::borderLeft):
- (WebCore::RenderFormElement::borderRight):
- (WebCore::RenderFormElement::paddingTop):
- (WebCore::RenderFormElement::paddingBottom):
- (WebCore::RenderFormElement::paddingLeft):
- (WebCore::RenderFormElement::paddingRight):
- (WebCore::RenderFormElement::canHaveIntrinsicMargins):
- (WebCore::RenderFormElement::intrinsicMargin):
- (WebCore::RenderFormElement::isEditable):
- * rendering/RenderImageButton.cpp: Added.
- (WebCore::RenderImageButton::RenderImageButton):
- * rendering/RenderImageButton.h: Added.
- (WebCore::RenderImageButton::renderName):
- (WebCore::RenderImageButton::isImageButton):
- * rendering/RenderLabel.cpp: Added.
- (WebCore::RenderLabel::RenderLabel):
- * rendering/RenderLabel.h: Added.
- (WebCore::RenderLabel::renderName):
- * rendering/RenderLegend.cpp: Added.
- (WebCore::RenderLegend::RenderLegend):
- * rendering/RenderLegend.h: Added.
- (WebCore::RenderLegend::renderName):
- * rendering/RenderLineEdit.cpp: Added.
- (WebCore::RenderLineEdit::RenderLineEdit):
- * rendering/RenderLineEdit.h: Added.
- (WebCore::RenderLineEdit::renderName):
- (WebCore::RenderLineEdit::calcReplacedHeight):
- (WebCore::RenderLineEdit::canHaveIntrinsicMargins):
- (WebCore::RenderLineEdit::isTextField):
- (WebCore::RenderLineEdit::isEditable):
- * rendering/RenderSelect.cpp: Added.
- (WebCore::RenderSelect::RenderSelect):
- (WebCore::RenderSelect::setWidgetWritingDirection):
- (WebCore::RenderSelect::setStyle):
- (WebCore::RenderSelect::updateFromElement):
- (WebCore::RenderSelect::baselinePosition):
- (WebCore::RenderSelect::calcMinMaxWidth):
- (WebCore::RenderSelect::layout):
- (WebCore::RenderSelect::valueChanged):
- (WebCore::RenderSelect::selectionChanged):
- (WebCore::RenderSelect::updateSelection):
- * rendering/RenderSelect.h: Added.
- (WebCore::RenderSelect::renderName):
- (WebCore::RenderSelect::calcReplacedHeight):
- (WebCore::RenderSelect::canHaveIntrinsicMargins):
- (WebCore::RenderSelect::selectionChanged):
- (WebCore::RenderSelect::setSelectionChanged):
- * rendering/RenderSlider.cpp: Added.
- (WebCore::RenderSlider::calcMinMaxWidth):
- (WebCore::RenderSlider::updateFromElement):
- * rendering/RenderSlider.h: Added.
- (WebCore::RenderSlider::renderName):
- (WebCore::RenderSlider::canHaveIntrinsicMargins):
- * rendering/RenderTextArea.cpp: Added.
- (WebCore::RenderTextArea::RenderTextArea):
- (WebCore::RenderTextArea::calcMinMaxWidth):
- (WebCore::RenderTextArea::setStyle):
- (WebCore::RenderTextArea::updateFromElement):
- (WebCore::RenderTextArea::selectionStart):
- (WebCore::RenderTextArea::selectionEnd):
- (WebCore::RenderTextArea::setSelectionStart):
- (WebCore::RenderTextArea::setSelectionEnd):
- (WebCore::RenderTextArea::select):
- (WebCore::RenderTextArea::setSelectionRange):
- * rendering/RenderTextArea.h: Added.
- (WebCore::RenderTextArea::renderName):
- (WebCore::RenderTextArea::isTextArea):
- (WebCore::RenderTextArea::isEdited):
- (WebCore::RenderTextArea::canHaveIntrinsicMargins):
- (WebCore::RenderTextArea::isEditable):
- * rendering/render_form.cpp: Removed.
- * rendering/render_form.h: Removed.
- 2006-05-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Eric.
- Remove the XPath log calls. They were causing leaks and were never
- really useful.
-
- * bridge/mac/WebCorePageBridge.mm:
- (initializeLoggingChannelsIfNecessary):
- * platform/Logging.cpp:
- * platform/Logging.h:
- * xpath/XPathResult.cpp:
- (WebCore::XPathResult::convertTo):
- * xpath/impl/XPathFunctions.cpp:
- (round):
- (WebCore::XPath::FunCount::doEvaluate):
- (WebCore::XPath::FunSum::doEvaluate):
- (WebCore::XPath::FunctionLibrary::createFunction):
- * xpath/impl/XPathPath.cpp:
- (WebCore::XPath::Filter::doEvaluate):
- (WebCore::XPath::LocationPath::doEvaluate):
- * xpath/impl/XPathPredicate.cpp:
- (WebCore::XPath::Negative::doEvaluate):
- (WebCore::XPath::NumericOp::doEvaluate):
- (WebCore::XPath::Union::doEvaluate):
- * xpath/impl/XPathStep.cpp:
- (WebCore::XPath::Step::evaluate):
- (WebCore::XPath::Step::nodesInAxis):
- (WebCore::XPath::Step::nodeTestMatches):
- * xpath/impl/XPathValue.cpp:
- (WebCore::XPath::Value::toNodeVector):
- 2006-05-15 Eric Seidel <eseidel@apple.com>
- Fix linux build.
- * html/HTMLBodyElement.cpp: Fix case of #include "cssstyleselector.h"
- 2006-05-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- http://bugs.webkit.org/show_bug.cgi?id=8913
- REGRESSION: Can view source for text files
-
- * bridge/mac/WebCoreFrameBridge.h:
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge canProvideDocumentSource]):
- (-[WebCoreFrameBridge canSaveAsWebArchive]):
- 2006-05-15 David Hyatt <hyatt@apple.com>
- Remove the .forPrinter boolean from FontPlatformData. After the initial
- acquisition of an NSFont, the font is then adjusted to printer or screen
- when put into a FontPlatformData. Then it can simply be used in the hash
- lookup to get a FontData.
- Reviewed by mjs
- * platform/Font.cpp:
- (WebCore::WidthIterator::advance):
- * platform/FontData.h:
- * platform/FontDescription.h:
- (WebCore::FontDescription::bold):
- * platform/FontPlatformData.h:
- (WebCore::FontPlatformData::syntheticOblique):
- * platform/mac/FontCacheMac.mm:
- (WebCore::FontCache::getFontDataForCharacters):
- * platform/mac/FontData.mm:
- (WebCore::FontData::smallCapsFontData):
- (WebCore::getSmallCapsFontData):
- (WebCore::setUpFont):
- * platform/mac/FontMac.mm:
- (WebCore::ATSULayoutParameters::initialize):
- * platform/mac/WebTextRendererFactory.h:
- * platform/mac/WebTextRendererFactory.mm:
- (-[WebTextRendererFactory rendererWithFont:]):
- (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
- 2006-05-15 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Maciej.
- * dom/Document.idl:
- Remove #if XPATH_SUPPORT until we have a way to feed defines to the bindings generator
- (see http://bugs.webkit.org/show_bug.cgi?id=8912)
- 2006-05-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Hyatt.
- - fix http://bugs.webkit.org/show_bug.cgi?id=6838
- Incomplete repaint of collapsed table borders
-
- This patch updates the implementation of collapsing borders to match
- the current spec.
- Test: fast/repaint/table-collapsed-border.html
- * rendering/RenderTable.cpp:
- (WebCore::RenderTable::RenderTable):
- (WebCore::RenderTable::layout): Calculate horizontal overflows.
- (WebCore::RenderTable::calcMinMaxWidth): Added call to recalcHorizontalBorders.
- (WebCore::RenderTable::colElement): Made const.
- (WebCore::RenderTable::calcBorderLeft): Calculates the left border. In the collapsing
- borders model, this is the left border of the leftmost cell of the first row.
- (WebCore::RenderTable::calcBorderRight): Ditto for the right border.
- (WebCore::RenderTable::recalcHorizontalBorders): Added.
- (WebCore::RenderTable::borderTop): Changed to return outerBorderTop in the
- collapsing case.
- (WebCore::RenderTable::borderBottom): Changed to return outerBorderBottom in
- the collapsing case.
- (WebCore::RenderTable::outerBorderTop): Added. Returns the table half of the
- top border, which is half the widest top border on the first row.
- (WebCore::RenderTable::outerBorderBottom): Added. Returns the table half of the
- bottom border, which is half the widest bottom border on the last row.
- (WebCore::RenderTable::outerBorderLeft): Added. Returns the table half of the
- left border, which is half the widest left border on the leftmost column.
- (WebCore::RenderTable::outerBorderRight): Added. Returns the table half of the
- right border, which is half the widest right border on the rightmost column.
- (WebCore::RenderTable::cellAbove): Return 0 if the cell is in the first row
- of the header.
- (WebCore::RenderTable::cellBelow): Return 0 if the cell is in the last row
- of the footer.
- * rendering/RenderTable.h:
- (WebCore::RenderTable::borderLeft):
- (WebCore::RenderTable::borderRight):
- (WebCore::RenderTable::overflowHeight):
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::borderLeft): Removed unnecessary use of floats.
- (WebCore::RenderTableCell::borderTop): Ditto.
- (WebCore::RenderTableCell::paint): Account for the table half of the vertical
- borders.
- (WebCore::RenderTableCell::paintCollapsedBorder): Removed unnecessary use of
- floats.
- * rendering/RenderTableSection.cpp:
- (WebCore::RenderTableSection::RenderTableSection):
- (WebCore::RenderTableSection::layoutRows): Added call to recalcOuterBorder.
- (WebCore::RenderTableSection::calcOuterBorderTop): Added. Calculates the outer half of
- the section's top border, which is half the widest top border on the first row.
- (WebCore::RenderTableSection::calcOuterBorderBottom): Ditto for the bottom border.
- (WebCore::RenderTableSection::calcOuterBorderLeft): Ditto for the left border.
- (WebCore::RenderTableSection::calcOuterBorderRight): Ditto for the right border.
- (WebCore::RenderTableSection::recalcOuterBorder): Added.
- (WebCore::RenderTableSection::paint): Account for the table half of the borders.
- * rendering/RenderTableSection.h:
- (WebCore::RenderTableSection::outerBorderTop):
- (WebCore::RenderTableSection::outerBorderBottom):
- (WebCore::RenderTableSection::outerBorderLeft):
- (WebCore::RenderTableSection::outerBorderRight):
- * rendering/render_style.cpp:
- (WebCore::RenderStyle::diff): Changed to return Layout if a border style changed
- from 'hidden' to 'none' or vice versa in the collapsing borders model, since
- 'hidden' suppresses other borders.
- 2006-05-14 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - test for http://bugs.webkit.org/show_bug.cgi?id=8739
- Crash in RenderTableSection::paint due to manipulating DOM on resize
- * manual-tests/dom-manipulation-on-resize.html: Added.
- 2006-05-14 Rob Buis <buis@kde.org>
- Reviewed by Darin.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=5882:
- disabled type="file" element doesn't appear disabled
- Be sure to call setDisabled on the file button when in
- RenderFileButton::updateFromElement.
- * kwq/KWQFileButton.h:
- * kwq/KWQFileButton.mm:
- (-[WebFileChooserButton setEnabled:]):
- (KWQFileButton::setDisabled):
- * rendering/render_form.cpp:
- (WebCore::RenderFileButton::updateFromElement):
- 2006-05-14 Steve Falkenburg <sfalken@apple.com>
- Fix Windows build.
- * platform/win/FontWin.cpp:
- (WebCore::FontFallbackList::fontDataAt):
- (WebCore::hackishExtentForString):
- (WebCore::Font::floatWidth):
- (WebCore::Font::drawText):
- (WebCore::Font::selectionRectForText):
- (WebCore::Font::offsetForPosition):
- 2006-05-14 David Hyatt <hyatt@apple.com>
- Bug 8895. Rework font substitution and fallback. Lift the concept of
- substitution and fallback out of FontData and up into the FontFallbackList.
- See the bug for details of issues fixed in the fallback code.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * platform/Font.cpp:
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advance):
- (WebCore::Font::primaryFont):
- (WebCore::Font::fontDataAt):
- (WebCore::Font::fontDataForCharacters):
- (WebCore::Font::ascent):
- (WebCore::Font::descent):
- (WebCore::Font::lineSpacing):
- (WebCore::Font::xHeight):
- (WebCore::Font::isFixedPitch):
- * platform/Font.h:
- (WebCore::Font::getNSFont):
- * platform/FontCache.h: Added.
- * platform/FontData.h:
- (WebCore::FontData::pitch):
- (WebCore::FontData::getNSFont):
- (WebCore::):
- * platform/FontFallbackList.cpp: Added.
- (WebCore::m_pitch):
- (WebCore::FontFallbackList::~FontFallbackList):
- (WebCore::FontFallbackList::invalidate):
- (WebCore::FontFallbackList::determinePitch):
- (WebCore::FontFallbackList::fontDataAt):
- (WebCore::FontFallbackList::fontDataForCharacters):
- * platform/FontFallbackList.h:
- (WebCore::FontFallbackList::isFixedPitch):
- (WebCore::FontFallbackList::primaryFont):
- * platform/FontFamily.h:
- * platform/mac/FontCacheMac.mm: Added.
- (WebCore::FontCache::getFontData):
- (WebCore::FontCache::getFontDataForCharacters):
- * platform/mac/FontData.mm:
- (WebCore::FontData::containsCharacters):
- * platform/mac/FontMac.mm:
- (WebCore::ATSULayoutParameters::initialize):
- * platform/mac/WebTextRendererFactory.h:
- * platform/mac/WebTextRendererFactory.mm:
- (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
- (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
- * platform/win/FontWin.cpp:
- (WebCore::FontFallbackList::determinePitch):
- (WebCore::FontFallbackList::primaryFont):
- (WebCore::FontFallbackList::fontDataAt):
- (WebCore::FontFallbackList::fontDataForCharacters):
- 2006-05-14 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt, landed by ap.
- Fix for <http://bugs.webkit.org/show_bug.cgi?id=8387>
- "border-left/padding-Left do not show up on multiline rtl inline boxes"
- Test: fast/inline/inline-borders-with-bidi-override.html: added
- * rendering/InlineFlowBox.cpp:
- (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
- 2006-05-14 Steve Falkenburg <sfalken@apple.com>
- Fix the Windows build the rest of the way
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- 2006-05-14 Steve Falkenburg <sfalken@apple.com>
- Get FontWin.cpp compiling.
- WebCore and JSCore now build, but Spinneret still gets link errors.
- * platform/win/FontWin.cpp:
- (WebCore::Font::offsetForPosition):
- 2006-05-14 Steve Falkenburg <sfalken@apple.com>
- Reviewed by maciej.
- Fix Windows build except for fontwin.cpp.
- * WebCore/platform/win/FontWin.cpp:
- * WebCore.vcproj/WebCore/WebCore.vcproj:
- * bridge/win/FrameWin.cpp:
- 2006-05-13 Kevin M. Ollivier <kevino@theolliviers.com>
- Reviewed by Darin, landed by ap.
- - http://bugs.webkit.org/show_bug.cgi?id=8528
- Bakefiles (and generated Makefiles) for wx and gdk ports
-
- * make-generated-sources.sh:
- Added script to configure environment to run DerivedSources.make
-
- * move-js-headers.sh:
- Added script to copy JavaScriptCore includes into one dir so that
- Framework-style includes will work on all OSes. (written by Mike Emmel)
-
- * platform/wx: New dir, home for the wxWidgets port
- * platform/wx/wx-encodings.txt: Added temp. stub for wx encodings file.
-
- * Projects: New dir, for various project files for ports.
-
- * Projects/gdk: New dir, GDK port files.
- * Projects/webcore-gdk.bkl: Bakefile to generate GDK port project files
-
- * Projects/wx: New dir, wxWidgets port files.
- * Projects/webcore-wx.bkl: Bakefile to generate wxWidgets port project files
- 2006-05-13 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin, landed by ap.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8485
- iExploder(#11705): Freeze in RenderBlock::layout()
- Test: fast/text/midword-break-hang.html
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::findNextLineBreak): If this is a mid-word break,
- ignore breakOnlyAfterWhiteSpace.
- 2006-05-13 Alexey Proskuryakov <ap@nypop.com>
- Fix release build.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteHorizontalValues): Initialize leftValue.
- This value will never be used, because 'left' and 'right' cannot both be 'auto'.
- (WebCore::RenderBox::calcAbsoluteVerticalValues): Initialize topValue.
- (WebCore::RenderBox::calcAbsoluteVerticalReplaced): Same changes as above.
- 2006-05-13 Alexey Proskuryakov <ap@nypop.com>
- Re-applied the fix for bug 8835 (REGRESSION: Line moves but selection
- highlight stays behind) to a correct file; removed the stale one.
- * rendering/RootInlineBox.cpp:
- (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
- and m_selectionBottom.
- * rendering/render_line.cpp: Removed.
- 2006-05-13 Rob Buis <buis@kde.org>
- Reviewed by Darin, landed by ap.
- Fix for http://bugs.webkit.org/show_bug.cgi?id=8132
- CSS parser sometimes accepts real number as integer
- Add a boolean variable per css value to catch whether values
- are specified as floats or integers.
- Test: fast/css/rgb-float.html
- * css/CSSGrammar.y:
- * css/cssparser.cpp:
- (WebCore::CSSParser::validUnit):
- (WebCore::CSSParser::lex):
- * css/cssparser.h:
- * css/tokenizer.flex:
- 2006-05-13 Sam Weinig <sam.weinig@gmail.com>
- Reviewed by Hyatt, landed by ap.
- Patch for http://bugs.webkit.org/show_bug.cgi?id=7604
- calcAbsoluteHorizontalValues() is being getting passed arguments
- in the wrong order in calcAbsoluteHorizontal()
- Cleans up the RenderBox code for absolutely positioned elements
- and adds new functions for replaced absolutely positioned
- elements. Now uses Length so that magic number -666666 for
- auto lengths is no longer used.
- * rendering/RenderBox.cpp:
- (WebCore::RenderBox::calcAbsoluteHorizontal):
- (WebCore::RenderBox::calcAbsoluteHorizontalValues):
- (WebCore::RenderBox::calcAbsoluteVertical):
- (WebCore::RenderBox::calcAbsoluteVerticalValues):
- (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Handle replaced
- case separately.
- (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto.
- * rendering/RenderBox.h:
- 2006-05-12 David Hyatt <hyatt@apple.com>
- Bug 8880, remove the remaining drawing/hit testing code from
- FontData.
- Reviewed by tim h
- * platform/Font.cpp:
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advanceOneCharacter):
- (WebCore::Font::selectionRectForText):
- (WebCore::Font::selectionRectForSimpleText):
- (WebCore::Font::offsetForPosition):
- (WebCore::Font::offsetForPositionForSimpleText):
- * platform/Font.h:
- (WebCore::TextRun::makeComplete):
- * platform/FontData.h:
- * platform/GlyphBuffer.h:
- (WebCore::GlyphBuffer::clear):
- * platform/mac/FontData.mm:
- * platform/mac/FontMac.mm:
- (WebCore::Font::selectionRectForComplexText):
- (WebCore::Font::offsetForPositionForComplexText):
- 2006-05-12 Kevin M. Ollivier <kevino@theolliviers.com>
- Reviewed by Maciej.
- Add missing include.
-
- * dom/Node.h: Add missing include for DeprecatedString.
- 2006-05-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by Darin.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8835
- REGRESSION: Line moves but selection highlight stays behind
- Test: fast/dynamic/selection-highlight-adjust.html
- * rendering/render_line.cpp:
- (WebCore::RootInlineBox::adjustPosition): Adjust m_selectionTop
- and m_selectionBottom.
- 2006-05-12 Timothy Hatcher <timothy@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=7156
- Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
-
- Links in editable areas will not activate or perform a navigation
- change (on par with WinIE and Firefox.) To visit the link
- you can shift-click. Manual test added.
- * css/cssstyleselector.cpp:
- (WebCore::CSSStyleSelector::adjustRenderStyle):
- * html/HTMLAnchorElement.cpp:
- (WebCore::HTMLAnchorElement::defaultEventHandler):
- (WebCore::HTMLAnchorElement::setActive):
- * html/HTMLAnchorElement.h:
- * manual-tests/contenteditable-link.html: Added.
- * page/FrameView.cpp:
- (WebCore::selectCursor):
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by timo.
- Split out html_inlineimpl.* into separate files (one per class).
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_html.cpp:
- * bindings/objc/DOMHTML.mm:
- * editing/CreateLinkCommand.cpp:
- * editing/UnlinkCommand.cpp:
- * html/HTMLAnchorElement.cpp: Added.
- (WebCore::HTMLAnchorElement::HTMLAnchorElement):
- * html/HTMLAnchorElement.h: Added.
- * html/HTMLBRElement.cpp: Added.
- * html/HTMLBRElement.h: Added.
- * html/HTMLElementFactory.cpp:
- * html/HTMLFontElement.cpp: Added.
- (WebCore::HTMLFontElement::HTMLFontElement):
- (WebCore::HTMLFontElement::setColor):
- (WebCore::HTMLFontElement::setFace):
- (WebCore::HTMLFontElement::setSize):
- * html/HTMLFontElement.h: Added.
- * html/HTMLModElement.cpp: Added.
- (WebCore::HTMLModElement::setCite):
- (WebCore::HTMLModElement::setDateTime):
- * html/HTMLModElement.h: Added.
- * html/HTMLQuoteElement.cpp: Added.
- * html/HTMLQuoteElement.h: Added.
- * html/html_imageimpl.h:
- * html/html_inlineimpl.cpp: Removed.
- * html/html_inlineimpl.h: Removed.
- * page/FrameView.cpp:
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by beth.
- Fix build error.
- * rendering/InlineFlowBox.cpp:
- * rendering/RootInlineBox.cpp:
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by beth.
- Split out render_line.* into separate files (one per class).
- * WebCore.xcodeproj/project.pbxproj:
- * dom/ContainerNode.cpp:
- * rendering/EllipsisBox.cpp: Added.
- * rendering/EllipsisBox.h: Added.
- (WebCore::EllipsisBox::EllipsisBox):
- * rendering/InlineBox.cpp: Added.
- * rendering/InlineBox.h: Added.
- (WebCore::InlineBox::InlineBox):
- (WebCore::InlineBox::~InlineBox):
- (WebCore::InlineBox::bottomOverflow):
- (WebCore::InlineBox::rightOverflow):
- * rendering/InlineFlowBox.cpp: Added.
- (WebCore::InlineFlowBox::placeBoxesHorizontally):
- * rendering/InlineFlowBox.h: Added.
- * rendering/InlineRunBox.h: Added.
- (WebCore::InlineRunBox::InlineRunBox):
- (WebCore::InlineRunBox::paintBackgroundAndBorder):
- (WebCore::InlineRunBox::paintDecorations):
- * rendering/InlineTextBox.h:
- * rendering/RenderBlock.h:
- * rendering/RenderFlow.h:
- * rendering/RenderReplaced.cpp:
- * rendering/RootInlineBox.cpp: Added.
- * rendering/RootInlineBox.h: Added.
- (WebCore::RootInlineBox::RootInlineBox):
- * rendering/render_line.h: Removed.
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by hyatt.
- Split out table_layout.* into separate files (one per class).
- Search replace instance variables "foo" with "m_foo" to comply with modern style.
- * WebCore.xcodeproj/project.pbxproj:
- * rendering/AutoTableLayout.cpp: Added.
- (WebCore::AutoTableLayout::AutoTableLayout):
- (WebCore::AutoTableLayout::recalcColumn):
- (WebCore::AutoTableLayout::fullRecalc):
- (WebCore::AutoTableLayout::calcMinMaxWidth):
- (WebCore::AutoTableLayout::calcEffectiveWidth):
- (WebCore::AutoTableLayout::insertSpanCell):
- (WebCore::AutoTableLayout::layout):
- (WebCore::AutoTableLayout::calcPercentages):
- * rendering/AutoTableLayout.h: Added.
- (WebCore::AutoTableLayout::totalPercent):
- (WebCore::AutoTableLayout::Layout::Layout):
- * rendering/FixedTableLayout.cpp: Added.
- (WebCore::FixedTableLayout::FixedTableLayout):
- (WebCore::FixedTableLayout::calcWidthArray):
- (WebCore::FixedTableLayout::calcMinMaxWidth):
- (WebCore::FixedTableLayout::layout):
- * rendering/FixedTableLayout.h: Added.
- * rendering/RenderTable.cpp:
- * rendering/TableLayout.h: Added.
- (WebCore::TableLayout::TableLayout):
- * rendering/table_layout.cpp: Removed.
- * rendering/table_layout.h: Removed.
- 2006-05-12 David Hyatt <hyatt@apple.com>
- Bug 8877. Change form controls and the bridge entry points from the
- Safari UI to use Font instead of FontData.
- Reviewed by mjs
- * bridge/mac/WebCoreStringTruncator.mm:
- (stringWidth):
- (truncateString):
- (+[WebCoreStringTruncator widthOfString:font:]):
- (+[WebCoreStringTruncator clear]):
- * kwq/KWQComboBox.mm:
- (QComboBox::sizeHint):
- * kwq/KWQLineEdit.mm:
- (QLineEdit::sizeForCharacterWidth):
- * kwq/KWQListBox.mm:
- (itemTextRenderer):
- (groupLabelTextRenderer):
- (QListBox::sizeForNumberOfLines):
- (QListBox::clearCachedTextRenderers):
- (-[KWQTableView drawRow:clipRect:]):
- * platform/Font.cpp:
- (WebCore::Font::drawSimpleText):
- (WebCore::Font::drawText):
- * platform/Font.h:
- (WebCore::TextStyle::disableRoundingHacks):
- (WebCore::TextStyle::setRTL):
- * platform/FontData.h:
- * platform/FontFallbackList.h:
- * platform/FontPlatformData.h:
- (WebCore::FontPlatformData::syntheticOblique):
- * platform/Pen.h:
- * platform/mac/FontData.mm:
- (WebCore::FontData::smallCapsFontData):
- (WebCore::findSubstituteRenderer):
- * platform/mac/FontMac.mm:
- (WebCore::FontFallbackList::setPlatformFont):
- (WebCore::m_wordSpacing):
- (WebCore::Font::drawComplexText):
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreDrawTextAtPoint):
- (WebCoreTextFloatWidth):
- * platform/win/FontWin.cpp:
- (WebCore::Font::drawText):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::positionForOffset):
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by kevin.
- Move render_button to RenderButton.
- Various small style cleanup.
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLButtonElement.cpp:
- * html/HTMLElement.cpp:
- * html/HTMLGenericFormElement.cpp:
- * html/HTMLInputElement.cpp:
- * platform/mac/WebCoreTextArea.mm:
- * rendering/RenderApplet.h:
- * rendering/RenderBox.cpp:
- * rendering/RenderButton.cpp: Added.
- (WebCore::RenderButton::RenderButton):
- (WebCore::RenderButton::addChild):
- (WebCore::RenderButton::removeChild):
- * rendering/RenderButton.h: Added.
- * rendering/RenderEmptyApplet.h:
- * rendering/RenderHTMLCanvas.h:
- * rendering/RenderTreeAsText.cpp:
- * rendering/render_button.cpp: Removed.
- * rendering/render_button.h: Removed.
- * rendering/table_layout.cpp:
- (WebCore::FixedTableLayout::FixedTableLayout):
- (WebCore::FixedTableLayout::calcWidthArray):
- (WebCore::FixedTableLayout::calcMinMaxWidth):
- (WebCore::FixedTableLayout::layout):
- (WebCore::AutoTableLayout::AutoTableLayout):
- (WebCore::AutoTableLayout::recalcColumn):
- (WebCore::AutoTableLayout::fullRecalc):
- (WebCore::AutoTableLayout::calcMinMaxWidth):
- (WebCore::AutoTableLayout::calcEffectiveWidth):
- (WebCore::AutoTableLayout::insertSpanCell):
- (WebCore::AutoTableLayout::layout):
- * rendering/table_layout.h:
- (WebCore::TableLayout::TableLayout):
- (WebCore::AutoTableLayout::totalPercent):
- (WebCore::AutoTableLayout::Layout::Layout):
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by mjs.
- Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
- http://bugs.webkit.org/show_bug.cgi?id=8878
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
- (KJS::JSHTMLDocument::namedItemGetter):
- (KJS::JSHTMLDocument::getValueProperty):
- (KJS::JSHTMLDocument::getOwnPropertySlot):
- (KJS::JSHTMLDocument::putValueProperty):
- (KJS::JSHTMLElement::formIndexGetter):
- (KJS::JSHTMLElement::formNameGetter):
- (KJS::JSHTMLElement::selectIndexGetter):
- (KJS::JSHTMLElement::framesetNameGetter):
- (KJS::JSHTMLElement::runtimeObjectGetter):
- (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
- (KJS::JSHTMLElement::getOwnPropertySlot):
- (KJS::JSHTMLElement::implementsCall):
- (KJS::JSHTMLElement::callAsFunction):
- (KJS::JSHTMLElement::getValueProperty):
- (KJS::JSHTMLElement::toString):
- (KJS::getForm):
- (KJS::JSHTMLElement::pushEventHandlerScope):
- (KJS::HTMLElementFunction::callAsFunction):
- (KJS::JSHTMLElement::put):
- (KJS::JSHTMLElement::selectSetter):
- (KJS::JSHTMLElement::putValueProperty):
- (KJS::toHTMLElement):
- (KJS::toHTMLTableCaptionElement):
- (KJS::toHTMLTableSectionElement):
- (KJS::JSHTMLCollection::lengthGetter):
- (KJS::JSHTMLCollection::indexGetter):
- (KJS::JSHTMLCollection::nameGetter):
- (KJS::JSHTMLCollection::getOwnPropertySlot):
- (KJS::HTMLCollectionProtoFunc::callAsFunction):
- (KJS::JSHTMLSelectCollection::selectedIndexGetter):
- (KJS::JSHTMLSelectCollection::put):
- (KJS::OptionConstructorImp::construct):
- (KJS::getSelectHTMLCollection):
- * bindings/objc/DOMHTML.mm:
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::createFrame):
- * bridge/mac/WebCoreFrameBridge.mm:
- (-[WebCoreFrameBridge copyRenderNode:copier:]):
- * dom/Document.cpp:
- (WebCore::widgetForNode):
- * html/HTMLBodyElement.cpp: Added.
- (WebCore::HTMLBodyElement::HTMLBodyElement):
- (WebCore::HTMLBodyElement::parseMappedAttribute):
- * html/HTMLBodyElement.h: Added.
- * html/HTMLDocument.cpp:
- * html/HTMLElementFactory.cpp:
- * html/HTMLEmbedElement.cpp:
- * html/HTMLFrameElement.cpp: Added.
- (WebCore::HTMLFrameElement::isURLAllowed):
- (WebCore::HTMLFrameElement::parseMappedAttribute):
- (WebCore::HTMLFrameElement::setLocation):
- * html/HTMLFrameElement.h: Added.
- * html/HTMLFrameSetElement.cpp: Added.
- (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
- (WebCore::HTMLFrameSetElement::parseMappedAttribute):
- (WebCore::HTMLFrameSetElement::attach):
- (WebCore::HTMLFrameSetElement::defaultEventHandler):
- (WebCore::HTMLFrameSetElement::recalcStyle):
- * html/HTMLFrameSetElement.h: Added.
- * html/HTMLHeadElement.cpp: Added.
- (WebCore::HTMLHeadElement::HTMLHeadElement):
- * html/HTMLHeadElement.h: Added.
- * html/HTMLHtmlElement.cpp: Added.
- (WebCore::HTMLHtmlElement::HTMLHtmlElement):
- * html/HTMLHtmlElement.h: Added.
- * html/HTMLIFrameElement.cpp: Added.
- (WebCore::HTMLIFrameElement::HTMLIFrameElement):
- * html/HTMLIFrameElement.h: Added.
- * html/HTMLObjectElement.cpp:
- * html/HTMLParser.cpp:
- * html/html_baseimpl.cpp: Removed.
- * html/html_baseimpl.h: Removed.
- * kwq/WebCoreAXObject.mm:
- * page/Frame.cpp:
- (WebCore::isFrameElement):
- (WebCore::Frame::applyEditingStyleToBodyElement):
- (WebCore::Frame::removeEditingStyleFromBodyElement):
- (WebCore::Frame::applyEditingStyleToElement):
- (WebCore::Frame::removeEditingStyleFromElement):
- (WebCore::Frame::selectionRect):
- (WebCore::Frame::isFrameSet):
- (WebCore::scanForForm):
- (WebCore::Frame::currentForm):
- (WebCore::Frame::nodeInfoAtPoint):
- (WebCore::Frame::adjustPageHeight):
- (WebCore::Frame::frameForWidget):
- (WebCore::Frame::forceLayoutWithPageWidthRange):
- (WebCore::Frame::passWidgetMouseDownEventToWidget):
- * page/FrameView.cpp:
- * rendering/RenderFrame.cpp: Added.
- (WebCore::RenderFrame::viewCleared):
- * rendering/RenderFrame.h: Added.
- * rendering/RenderFrameSet.cpp: Added.
- (WebCore::RenderFrameSet::RenderFrameSet):
- (WebCore::RenderFrameSet::~RenderFrameSet):
- (WebCore::RenderFrameSet::layout):
- (WebCore::RenderFrameSet::positionFrames):
- (WebCore::RenderFrameSet::userResize):
- (WebCore::RenderFrameSet::canResize):
- (WebCore::RenderFrameSet::dump):
- * rendering/RenderFrameSet.h: Added.
- * rendering/RenderImage.h:
- * rendering/RenderPart.cpp: Added.
- (WebCore::RenderPart::RenderPart):
- * rendering/RenderPart.h: Added.
- * rendering/RenderPartObject.cpp: Added.
- (WebCore::isURLAllowed):
- (WebCore::RenderPartObject::updateWidget):
- (WebCore::RenderPartObject::viewCleared):
- * rendering/RenderPartObject.h: Added.
- * rendering/RenderReplaced.cpp: Added.
- (WebCore::RenderReplaced::selectionColor):
- * rendering/RenderReplaced.h: Added.
- * rendering/RenderWidget.cpp: Added.
- (WebCore::RenderWidget::deleteWidget):
- * rendering/RenderWidget.h: Added.
- * rendering/render_form.h:
- * rendering/render_frames.cpp: Removed.
- * rendering/render_frames.h: Removed.
- * rendering/render_replaced.cpp: Removed.
- * rendering/render_replaced.h: Removed.
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by beth.
- Split html_headimpl.* into separate files (one per class)
- http://bugs.webkit.org/show_bug.cgi?id=8875
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_css.cpp:
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLElement::headGetter):
- (KJS::JSHTMLElement::linkGetter):
- * bindings/objc/DOMCSS.mm:
- (+[DOMCounter _counterWith:]):
- (-[DOMCounter finalize]):
- (-[DOMCounter _DOMStyleSheet]):
- (-[DOMStyleSheet _initWithStyleSheet:]):
- (-[DOMStyleSheetList dealloc]):
- (-[DOMStyleSheetList finalize]):
- (-[DOMStyleSheetList _styleSheetList]):
- (-[DOMStyleSheetList _initWithStyleSheetList:]):
- (-[DOMCSSStyleSheet _CSSStyleSheet]):
- (-[DOMMediaList dealloc]):
- (-[DOMMediaList finalize]):
- (-[DOMMediaList _mediaList]):
- (-[DOMMediaList _initWithMediaList:]):
- (-[DOMCSSRuleList dealloc]):
- (-[DOMCSSRuleList finalize]):
- (-[DOMCSSRuleList _ruleList]):
- (-[DOMCSSRuleList _initWithRuleList:]):
- (-[DOMCSSRule dealloc]):
- (-[DOMCSSRule finalize]):
- (-[DOMCSSRule _rule]):
- (-[DOMCSSRule _initWithRule:]):
- (-[DOMCSSStyleRule _styleRule]):
- (-[DOMCSSMediaRule _mediaRule]):
- (-[DOMCSSFontFaceRule _fontFaceRule]):
- (-[DOMCSSPageRule _pageRule]):
- (-[DOMCSSImportRule _importRule]):
- (-[DOMCSSCharsetRule _importRule]):
- (-[DOMCSSStyleDeclaration dealloc]):
- (-[DOMCSSStyleDeclaration finalize]):
- (-[DOMCSSStyleDeclaration _initWithStyleDeclaration:]):
- (-[DOMCSSStyleDeclaration _styleDeclaration]):
- (-[DOMCSSValue dealloc]):
- (-[DOMCSSValue finalize]):
- (-[DOMCSSValue _value]):
- (-[DOMCSSValue _initWithValue:]):
- (-[DOMCSSPrimitiveValue _primitiveValue]):
- (-[DOMCSSValueList _valueList]):
- (getWrapperForRGB):
- (setWrapperForRGB):
- (removeWrapperForRGB):
- (-[DOMRGBColor _initWithRGB:]):
- (-[DOMRect dealloc]):
- (-[DOMRect finalize]):
- (-[DOMRect _rect]):
- (-[DOMRect _initWithRect:]):
- (-[DOMCounter dealloc]):
- (-[DOMCounter _counter]):
- (-[DOMCounter _initWithCounter:]):
- (-[DOMObject sheet]):
- * bindings/objc/DOMHTML.mm:
- (-[DOMHTMLCollection dealloc]):
- (-[DOMHTMLCollection finalize]):
- (-[DOMHTMLCollection _collection]):
- (-[DOMHTMLCollection _initWithCollection:]):
- (-[DOMHTMLOptionsCollection dealloc]):
- (-[DOMHTMLOptionsCollection finalize]):
- (-[DOMHTMLOptionsCollection _initWithOptionsCollection:]):
- (-[DOMHTMLOptionsCollection _optionsCollection]):
- (+[DOMHTMLElement _elementWith:]):
- (-[DOMHTMLElement _HTMLElement]):
- (-[DOMHTMLDocument _HTMLDocument]):
- (-[DOMHTMLHtmlElement _HTMLHtmlElement]):
- (-[DOMHTMLHeadElement _headElement]):
- (-[DOMHTMLLinkElement _linkElement]):
- (-[DOMHTMLTitleElement _titleElement]):
- (-[DOMHTMLMetaElement _metaElement]):
- (-[DOMHTMLBaseElement _baseElement]):
- (-[DOMHTMLStyleElement _styleElement]):
- (-[DOMHTMLBodyElement _bodyElement]):
- (-[DOMHTMLFormElement _formElement]):
- (+[DOMHTMLFormElement _formElementWith:]):
- (-[DOMHTMLIsIndexElement _isIndexElement]):
- (-[DOMHTMLSelectElement _selectElement]):
- (-[DOMHTMLOptGroupElement _optGroupElement]):
- (-[DOMHTMLOptionElement _optionElement]):
- (-[DOMHTMLInputElement _inputElement]):
- (-[DOMHTMLTextAreaElement _textAreaElement]):
- (-[DOMHTMLButtonElement _buttonElement]):
- (-[DOMHTMLLabelElement _labelElement]):
- (-[DOMHTMLLabelElement form]):
- (-[DOMHTMLFieldSetElement _fieldSetElement]):
- (-[DOMHTMLLegendElement _legendElement]):
- (-[DOMHTMLUListElement _uListElement]):
- (-[DOMHTMLOListElement _oListElement]):
- (-[DOMHTMLDListElement _dListElement]):
- (-[DOMHTMLDirectoryElement _directoryListElement]):
- (-[DOMHTMLMenuElement _menuListElement]):
- (-[DOMHTMLLIElement _liElement]):
- (-[DOMHTMLQuoteElement _quoteElement]):
- (-[DOMHTMLDivElement _divElement]):
- (-[DOMHTMLParagraphElement _paragraphElement]):
- (-[DOMHTMLHeadingElement _headingElement]):
- (-[DOMHTMLPreElement _preElement]):
- (-[DOMHTMLBRElement _BRElement]):
- (-[DOMHTMLBaseFontElement _baseFontElement]):
- (-[DOMHTMLFontElement _fontElement]):
- (-[DOMHTMLHRElement _HRElement]):
- (-[DOMHTMLModElement _modElement]):
- (-[DOMHTMLAnchorElement _anchorElement]):
- (-[DOMHTMLImageElement _imageElement]):
- (-[DOMHTMLObjectElement _objectElement]):
- (-[DOMHTMLParamElement _paramElement]):
- (-[DOMHTMLMapElement _mapElement]):
- (-[DOMHTMLAreaElement _areaElement]):
- (-[DOMHTMLScriptElement _scriptElement]):
- (+[DOMHTMLTableCaptionElement _tableCaptionElementWith:]):
- (-[DOMHTMLTableCaptionElement _tableCaptionElement]):
- (+[DOMHTMLTableSectionElement _tableSectionElementWith:]):
- (-[DOMHTMLTableSectionElement _tableSectionElement]):
- (-[DOMHTMLTableElement createTHead]):
- (-[DOMHTMLTableElement createTFoot]):
- (-[DOMHTMLTableElement createCaption]):
- (-[DOMHTMLTableElement insertRow:]):
- (+[DOMHTMLTableElement _tableElementWith:]):
- (-[DOMHTMLTableElement _tableElement]):
- (-[DOMHTMLTableColElement _tableColElement]):
- (-[DOMHTMLTableRowElement _tableRowElement]):
- (-[DOMHTMLTableRowElement insertCell:]):
- (+[DOMHTMLTableCellElement _tableCellElementWith:]):
- (-[DOMHTMLTableCellElement _tableCellElement]):
- (-[DOMHTMLFrameSetElement _frameSetElement]):
- (-[DOMHTMLFrameElement _frameElement]):
- (-[DOMHTMLIFrameElement _IFrameElement]):
- (-[DOMHTMLEmbedElement _embedElement]):
- (viewForElement):
- * bridge/mac/FrameMac.mm:
- (WebCore::FrameMac::searchForLabelsAboveCell):
- (WebCore::FrameMac::searchForLabelsBeforeElement):
- (WebCore::FrameMac::createFrame):
- (WebCore::FrameMac::passMouseDownEventToWidget):
- (WebCore::FrameMac::passSubframeEventToSubframe):
- (WebCore::FrameMac::passWheelEventToChildWidget):
- (WebCore::FrameMac::fileWrapperForElement):
- (WebCore::listParent):
- (WebCore::FrameMac::attributedString):
- (WebCore::FrameMac::shouldBeginEditing):
- (WebCore::FrameMac::shouldEndEditing):
- (WebCore::FrameMac::setMarkedTextRange):
- * dom/Document.cpp:
- * dom/xml_tokenizer.cpp:
- * html/HTMLBaseElement.cpp: Added.
- (WebCore::HTMLBaseElement::removedFromDocument):
- (WebCore::HTMLBaseElement::process):
- * html/HTMLBaseElement.h: Added.
- * html/HTMLDocument.cpp:
- * html/HTMLElementFactory.cpp:
- * html/HTMLLinkElement.cpp: Added.
- (WebCore::HTMLLinkElement::HTMLLinkElement):
- (WebCore::HTMLLinkElement::process):
- * html/HTMLLinkElement.h: Added.
- * html/HTMLMetaElement.cpp: Added.
- (WebCore::HTMLMetaElement::HTMLMetaElement):
- (WebCore::HTMLMetaElement::parseMappedAttribute):
- (WebCore::HTMLMetaElement::process):
- (WebCore::HTMLMetaElement::setContent):
- (WebCore::HTMLMetaElement::setHttpEquiv):
- (WebCore::HTMLMetaElement::setName):
- * html/HTMLMetaElement.h: Added.
- * html/HTMLParser.cpp:
- * html/HTMLScriptElement.cpp: Added.
- (WebCore::HTMLScriptElement::HTMLScriptElement):
- (WebCore::HTMLScriptElement::parseMappedAttribute):
- (WebCore::HTMLScriptElement::evaluateScript):
- * html/HTMLScriptElement.h: Added.
- * html/HTMLStyleElement.cpp: Added.
- (WebCore::HTMLStyleElement::HTMLStyleElement):
- * html/HTMLStyleElement.h: Added.
- * html/HTMLTitleElement.cpp: Added.
- (WebCore::HTMLTitleElement::HTMLTitleElement):
- (WebCore::HTMLTitleElement::text):
- (WebCore::HTMLTitleElement::setText):
- * html/HTMLTitleElement.h: Added.
- * html/html_headimpl.cpp: Removed.
- * html/html_headimpl.h: Removed.
- * loader/CachedCSSStyleSheet.h:
- * rendering/RenderTableCell.cpp:
- (WebCore::RenderTableCell::updateFromElement):
- * rendering/RenderTableCol.cpp:
- (WebCore::RenderTableCol::updateFromElement):
- 2006-05-12 Eric Seidel <eseidel@apple.com>
- Reviewed by beth.
- Split out html_tableimpl.* into multiple files (one per class)
- http://bugs.webkit.org/show_bug.cgi?id=8873
- * WebCore.xcodeproj/project.pbxproj:
- * html/HTMLTableCaptionElement.cpp: Added.
- (WebCore::HTMLTableCaptionElement::HTMLTableCaptionElement):
- * html/HTMLTableCaptionElement.h: Added.
- * html/HTMLTableCellElement.cpp: Added.
- (WebCore::HTMLTableCellElement::HTMLTableCellElement):
- * html/HTMLTableCellElement.h: Added.
- * html/HTMLTableColElement.cpp: Added.
- (WebCore::HTMLTableColElement::HTMLTableColElement):
- (WebCore::HTMLTableColElement::endTagRequirement):
- (WebCore::HTMLTableColElement::tagPriority):
- (WebCore::HTMLTableColElement::checkDTD):
- * html/HTMLTableColElement.h: Added.
- * html/HTMLTableElement.cpp: Added.
- (WebCore::HTMLTableElement::HTMLTableElement):
- (WebCore::HTMLTableElement::setCaption):
- (WebCore::HTMLTableElement::setTHead):
- (WebCore::HTMLTableElement::setTFoot):
- (WebCore::HTMLTableElement::setTBody):
- (WebCore::HTMLTableElement::createTHead):
- (WebCore::HTMLTableElement::deleteTHead):
- (WebCore::HTMLTableElement::createTFoot):
- (WebCore::HTMLTableElement::deleteTFoot):
- (WebCore::HTMLTableElement::createCaption):
- (WebCore::HTMLTableElement::deleteCaption):
- (WebCore::HTMLTableElement::insertRow):
- (WebCore::HTMLTableElement::deleteRow):
- (WebCore::HTMLTableElement::addChild):
- (WebCore::HTMLTableElement::parseMappedAttribute):
- (WebCore::HTMLTableElement::attach):
- * html/HTMLTableElement.h: Added.
- * html/HTMLTablePartElement.cpp: Added.
- (WebCore::HTMLTablePartElement::parseMappedAttribute):
- * html/HTMLTablePartElement.h: Added.
- * html/HTMLTableRowElement.cpp: Added.
- (WebCore::HTMLTableRowElement::HTMLTableRowElement):
- (WebCore::HTMLTableRowElement::rowIndex):
- * html/HTMLTableRowElement.h: Added.
- * html/HTMLTableSectionElement.cpp: Added.
- (WebCore::HTMLTableSectionElement::insertRow):
- * html/HTMLTableSectionElement.h: Added.
- * html/html_tableimpl.cpp: Removed.
- * html/html_tableimpl.h: Removed.
- 2006-05-10 Eric Seidel <eseidel@apple.com>
- Reviewed by mjs & adele.
- Split html_objectimpl.* into multiple files (one per class)
- http://bugs.webkit.org/show_bug.cgi?id=8836
- * WebCore.xcodeproj/project.pbxproj:
- * bindings/js/kjs_dom.cpp:
- (KJS::DOMNamedNodeMap::lengthGetter):
- (KJS::DOMNamedNodeMap::indexGetter):
- (KJS::DOMNamedNodeMap::nameGetter):
- (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
- (KJS::getRuntimeObject):
- * bindings/js/kjs_html.cpp:
- * html/HTMLAppletElement.cpp: Added.
- * html/HTMLAppletElement.h: Added.
- * html/HTMLElementFactory.cpp:
- * html/HTMLEmbedElement.cpp: Added.
- (WebCore::HTMLEmbedElement::HTMLEmbedElement):
- (WebCore::HTMLEmbedElement::getInstance):
- (WebCore::HTMLEmbedElement::parseMappedAttribute):
- * html/HTMLEmbedElement.h: Added.
- * html/HTMLNameCollection.cpp:
- (WebCore::HTMLNameCollection::traverseNextItem):
- * html/HTMLObjectElement.cpp: Added.
- (WebCore::HTMLObjectElement::getInstance):
- (WebCore::HTMLObjectElement::form):
- (WebCore::HTMLObjectElement::parseMappedAttribute):
- (WebCore::HTMLObjectElement::updateDocNamedItem):
- * html/HTMLObjectElement.h: Added.
- * html/HTMLParamElement.cpp: Added.
- * html/HTMLParamElement.h: Added.
- * html/HTMLParser.cpp:
- * html/HTMLPlugInElement.cpp: Added.
- * html/HTMLPlugInElement.h: Added.
- * html/html_objectimpl.cpp: Removed.
- * html/html_objectimpl.h: Removed.
- * page/Frame.cpp:
- (WebCore::Frame::handleFallbackContent):
- * rendering/RenderApplet.cpp:
- * rendering/render_frames.cpp:
- (WebCore::RenderPartObject::updateWidget):
- 2006-05-12 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8521
- crash bringing up context menu with CSS generated content
- * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
- Added a null check.
- * manual-tests/context-click-generated-content.html: Added.
- 2006-05-12 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8715
- REGRESSION: Caret to the right of an image is a big black rectangle.
- * rendering/RenderBox.cpp: (WebCore::RenderBox::caretRect): Move caret to the
- right side of the rect when the offset is non-zero, rather than expanding it.
- * manual-tests/caret-image.html: Added.
- 2006-05-12 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and landed by Anders.
-
- - fix http://bugs.webkit.org/show_bug.cgi?id=8866
- REGRESSION: Incorrect caret position in RTL text
- Test: fast/text/international/rtl-caret.html
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::positionForOffset): Added missing m_toAdd argument.
- 2006-05-12 David Hyatt <hyatt@apple.com>
- Bug 8864. Lift WebCoreTextStyle up into the API (as TextStyle).
- Reviewed by mjs
- * platform/Font.cpp:
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advance):
- (WebCore::Font::width):
- (WebCore::Font::drawSimpleText):
- (WebCore::Font::drawText):
- (WebCore::Font::floatWidth):
- (WebCore::Font::floatWidthForSimpleText):
- * platform/Font.h:
- (WebCore::TextStyle::m_attemptFontSubstitution):
- (WebCore::TextStyle::tabWidth):
- (WebCore::TextStyle::xPos):
- (WebCore::TextStyle::padding):
- (WebCore::TextStyle::rtl):
- (WebCore::TextStyle::ltr):
- (WebCore::TextStyle::directionalOverride):
- (WebCore::TextStyle::applyRunRounding):
- (WebCore::TextStyle::applyWordRounding):
- (WebCore::TextStyle::attemptFontSubstitution):
- (WebCore::Font::operator==):
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::drawText):
- (WebCore::GraphicsContext::drawHighlightForText):
- * platform/GraphicsContext.h:
- * platform/mac/FontMac.mm:
- (WebCore::overrideLayoutOperation):
- (WebCore::ATSULayoutParameters::initialize):
- (WebCore::Font::selectionRectForText):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::floatWidthForComplexText):
- (WebCore::Font::offsetForPosition):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::selectionRect):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintMarkedTextBackground):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- (WebCore::InlineTextBox::offsetForPosition):
- (WebCore::InlineTextBox::positionForOffset):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::widthFromCache):
- (WebCore::RenderText::calcMinMaxWidth):
- (WebCore::RenderText::width):
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::calcMinMaxWidth):
- * rendering/render_line.cpp:
- (WebCore::EllipsisBox::paint):
- 2006-05-11 Alexey Proskuryakov <ap@nypop.com>
- Reviewed by Darin.
- - http://bugs.webkit.org/show_bug.cgi?id=8770
- XMLHttpRequest should strip CR/LF characters from the URL
- Test: fast/loader/url-strip-cr-lf-tab.html
- * platform/KURL.cpp:
- (appendEscapingBadChars): Strip CR, LF and TAB, as Firefox and IE do.
- 2006-05-11 David Hyatt <hyatt@apple.com>
- Remove the misspelling drawing code from Font and FontData. Implement it
- natively in GraphicContext instead.
- Reviewed by maciej
- * platform/FontData.h:
- * platform/GraphicsContext.cpp:
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::drawLineForMisspelling):
- * platform/mac/FontData.mm:
- * platform/mac/FontMac.mm:
- * platform/mac/GraphicsContextMac.mm:
- (WebCore::GraphicsContext::drawLineForMisspelling):
- * platform/win/FontWin.cpp:
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintSpellingMarker):
- 2006-05-11 David Hyatt <hyatt@apple.com>
- Remove drawLineForText from the Font API. Implement it natively in
- the two GraphicsContexts (CG and Cairo) instead.
- Reviewed by maciej
- * platform/Font.h:
- * platform/FontData.h:
- * platform/GraphicsContext.cpp:
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::drawLineForText):
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::drawLineForText):
- * platform/mac/FontData.mm:
- * platform/mac/FontMac.mm:
- * platform/win/FontWin.cpp:
- (WebCore::Font::drawLineForText):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::paintDecoration):
- (WebCore::InlineTextBox::paintMarkedTextUnderline):
- * rendering/render_line.cpp:
- (WebCore::InlineFlowBox::paintDecorations):
- 2006-05-11 Steve Falkenburg <sfalken@apple.com>
- Reviewed by eric.
- Fix last fix.
- * dom/QualifiedName.h:
- (WebCore::QualifiedName::QualifiedName):
- 2006-05-11 Steve Falkenburg <sfalken@apple.com>
- Reviewed by eric.
- Fix crash on static constructors builds at exit due to qualified name default constructor not
- initializing m_impl.
- * dom/QualifiedName.cpp:
- (WebCore::QualifiedName::deref):
- 2006-05-11 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed by hyatt
- - fix http://bugs.webkit.org/show_bug.cgi?id=8851
- REGRESSION: RTL text shifted to the right
- Already covered by several tests in fast/text
- * platform/Font.h:
- (WebCore::TextRun::TextRun): Added length parameter.
- * rendering/InlineTextBox.cpp: Pass the length to the TextRun constructor.
- (WebCore::InlineTextBox::selectionRect):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintMarkedTextBackground):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- (WebCore::InlineTextBox::offsetForPosition):
- (WebCore::InlineTextBox::positionForOffset):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::widthFromCache): Pass length and from instead of from and to
- to the TextRun constructor.
- (WebCore::RenderText::width): Ditto.
- 2006-05-11 David Hyatt <hyatt@apple.com>
- Fix a regression from the TextRun landing. Delete the characters in
- the adjustedRun, not the ones in the original run!
- Reviewed by beth
- * platform/mac/FontMac.mm:
- (WebCore::Font::drawComplexText):
- 2006-05-10 Justin Garcia <justin.garcia@apple.com>
- Reviewed by thatcher, levi
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply):
- Removed a use fragment.hasMoreThanOneBlock to decide if the paragraph containing the
- position pasted into must be split to avoid block nesting. We now split unnecessarily
- some times, but the end merge cleans up for us.
- 2006-05-11 David Hyatt <hyatt@apple.com>
- This patch makes drawHighlightForText a completely cross-platform method
- implemented by the GraphicsContext. The platform-specific implementations
- of the method in the Font class have been eliminated.
- Reviewed by andersca
- * platform/Font.h:
- * platform/FontData.h:
- Remove the drawHighlight methods. Change the selectionRect method in
- Font to return a FloatRect so that the GraphicsContext can do an accurate
- fill.
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::drawHighlightForText):
- Implement the drawHighlightFunction in terms of the cross-platform
- Font selectionRect functions and a new float-based fillRect graphics context
- function.
- * platform/GraphicsContext.h:
- * platform/cairo/GraphicsContextCairo.cpp:
- (WebCore::GraphicsContext::fillRect):
- * platform/cg/GraphicsContextCG.cpp:
- (WebCore::GraphicsContext::fillRect):
- Add the new float-based fillRect function for Cairo and CG.
- * platform/mac/FontData.mm:
- (WebCore::CG_draw):
- (WebCore::ATSU_draw):
- Removed the CG and ATSU drawHighlight methods. Remove the drawing of
- the background from the deprecated draw methods (they'll be removed
- soon).
- * platform/mac/FontMac.mm:
- (WebCore::Font::selectionRectForText):
- * platform/win/FontWin.cpp:
- (WebCore::Font::selectionRectForText):
- Change selectionRectForText to return a FloatRect instead of an IntRect,
- so that the GraphicsContext can do a precise fill.
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::selectionRect):
- (WebCore::InlineTextBox::positionForOffset):
- Modify the callers who expect an int-based selection rect so that they call
- enclosingIntRect.
- 2006-05-11 Darin Adler <darin@apple.com>
- Reviewed by Adele.
- - http://bugs.webkit.org/show_bug.cgi?id=8743
- REGRESSION: focus() on input field selects all text within it
- (was: cannot select cities on British Rail reservation site)
- Test: fast/forms/double-focus.html
- * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::focus):
- Changed to only call setFocusNode, select, and revealSelection
- if the element is not already focused. Also changed to use return
- a bit more rather than else.
- 2006-05-11 Darin Adler <darin@apple.com>
- Reviewed by Tim Hatcher (earlier version).
- - http://bugs.webkit.org/show_bug.cgi?id=8821
- use the preprocessor for IDL files
- * bindings/scripts/IDLParser.pm: Invoke the preprocessor via the "gcc"
- driver script, passing "-E" so we only preprocess, "-P" so we don't get
- "#line" directives, and "-x c++" so we handle both C and C++ comments.
- Removed the code to eliminate comments since the preprocessor handles that.
- * css/make-css-file-arrays.pl: This already invoked the preprocessor, but
- updated it to do the same way as above.
- 2006-05-11 Anders Carlsson <acarlsson@apple.com>
- Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=7838
- Add support for mozilla-style node constructors as properties of the window object
-
- * DerivedSources.make:
- * WebCore.xcodeproj/project.pbxproj:
- Add new generated files.
-
- * bindings/js/JSCanvasRenderingContext2DBase.cpp:
- (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
- * bindings/js/JSHTMLElementWrapperFactory.cpp:
- (WebCore::createJSWrapper):
- Specify the KJS namespace for JSHTMLElmement.
-
- * bindings/js/kjs_dom.cpp:
- (KJS::toJS):
- Create a WebCore::JSHTMLDocument for document nodes. Also, create
- JSDocumentFragments for document fragments (instead of plain node objects).
-
- * bindings/js/kjs_html.cpp:
- (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
- (KJS::JSHTMLDocument::JSHTMLDocument):
- (KJS::JSHTMLDocument::getOwnPropertySlot):
- Add a prototype for JSHTMLDocument and move all functions there.
-
- (KJS::JSHTMLElement::JSHTMLElement):
- (KJS::JSHTMLElement::getOwnPropertySlot):
- Update since JSHTMLElement now inherits from WebCore::JSHTMLElement.
-
- (KJS::JSHTMLElement::getValueProperty):
- (KJS::JSHTMLElement::putValueProperty):
- Remove title setter and getter. Those are autogenerated now.
-
- * bindings/js/kjs_html.h:
- (KJS::JSHTMLElement::):
- Inherit from WebCore::JSHTMLElement. Clarify the inheritance chain.
-
- * bindings/scripts/CodeGeneratorJS.pm:
- Always generate a prototype object, regardless of whether the object has any functions or
- constants.
-
- Use the type of generator attributes to determine what constructor to use. This is useful for
- the XMLDocument property in DOMWindow.idl, since that's just an alias for the Document constructor.
-
- * dom/DocumentFragment.idl: Added.
- * html/HTMLDocument.idl: Added.
- * html/HTMLElement.idl: Added.
-
- * page/DOMWindow.idl:
- Add constructors for DocumentFragment, HTMLElement, HTMLDocument and XMLDocument. XMLDocument is just
- an alias for the Document constructor.
-
- 2006-05-11 David Hyatt <hyatt@apple.com>
- Bug 8845. Define a TextRun (similar to the old WebCoreTextRun) and
- make it the new API for Font and GraphicsContext when drawing/measuring
- text.
- Reviewed by andersca
- * platform/Font.cpp:
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advance):
- (WebCore::WidthIterator::normalizeVoicingMarks):
- (WebCore::Font::width):
- (WebCore::Font::canUseGlyphCache):
- (WebCore::Font::drawSimpleText):
- (WebCore::Font::drawText):
- (WebCore::Font::floatWidth):
- (WebCore::Font::floatWidthForSimpleText):
- * platform/Font.h:
- (WebCore::TextRun::m_to):
- (WebCore::TextRun::operator[]):
- (WebCore::TextRun::data):
- (WebCore::TextRun::adjustFrom):
- (WebCore::TextRun::adjustTo):
- (WebCore::TextRun::characters):
- (WebCore::TextRun::length):
- (WebCore::TextRun::from):
- (WebCore::TextRun::to):
- * platform/GraphicsContext.cpp:
- (WebCore::GraphicsContext::drawText):
- (WebCore::GraphicsContext::drawHighlightForText):
- * platform/GraphicsContext.h:
- * platform/mac/FontMac.mm:
- (WebCore::addDirectionalOverride):
- (WebCore::overrideLayoutOperation):
- (WebCore::ATSULayoutParameters::initialize):
- (WebCore::Font::selectionRectForText):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::drawHighlightForText):
- (WebCore::Font::floatWidthForComplexText):
- (WebCore::Font::checkSelectionPoint):
- * platform/win/FontWin.cpp:
- (WebCore::hackishExtentForString):
- (WebCore::Font::floatWidth):
- (WebCore::Font::drawText):
- (WebCore::Font::drawHighlightForText):
- (WebCore::Font::selectionRectForText):
- (WebCore::Font::checkSelectionPoint):
- * rendering/InlineTextBox.cpp:
- (WebCore::InlineTextBox::selectionRect):
- (WebCore::InlineTextBox::paint):
- (WebCore::InlineTextBox::paintSelection):
- (WebCore::InlineTextBox::paintMarkedTextBackground):
- (WebCore::InlineTextBox::paintTextMatchMarker):
- (WebCore::InlineTextBox::offsetForPosition):
- (WebCore::InlineTextBox::positionForOffset):
- * rendering/RenderBlock.cpp:
- (WebCore::stripTrailingSpace):
- * rendering/RenderFlexibleBox.cpp:
- (WebCore::RenderFlexibleBox::layoutVerticalBox):
- * rendering/RenderImage.cpp:
- (WebCore::RenderImage::imageChanged):
- (WebCore::RenderImage::paint):
- * rendering/RenderText.cpp:
- (WebCore::RenderText::cacheWidths):
- (WebCore::RenderText::widthFromCache):
- (WebCore::RenderText::trimmedMinMaxWidth):
- (WebCore::RenderText::calcMinMaxWidth):
- (WebCore::RenderText::width):
- * rendering/RenderTextField.cpp:
- (WebCore::RenderTextField::calcMinMaxWidth):
- * rendering/bidi.cpp:
- (WebCore::RenderBlock::tabWidth):
- (WebCore::RenderBlock::checkLinesForTextOverflow):
- * rendering/render_line.cpp:
- (WebCore::EllipsisBox::paint):
- * rendering/render_list.cpp:
- (WebCore::RenderListMarker::paint):
- (WebCore::RenderListMarker::calcMinMaxWidth):
- (WebCore::RenderListMarker::getRelativeMarkerRect):
- 2006-05-10 Justin Garcia <justin.garcia@apple.com>
- Reviewed by darin
- * editing/ReplaceSelectionCommand.cpp:
- (WebCore::ReplaceSelectionCommand::doApply):
- Removed the code to find out if we must later add smart replace whitespace. We can
- wait until we've done the insertion to figure it out, and the position sampled (startPos)
- to make the decision about trailing whitespace was wrong.
- Changed the order that work is done during a paste: 1) Insert everything 2) Do one of
- the following: a) handle a trailing interchange newline, b) uncollapse the last incoming
- br if it has been collapsed because of quirks mode, c) do an end merge 3) Add smart replace
- whitespace (2 and 3 were reversed because the end merge must happen before we can know
- whether or not we need to add a trailing space).
- Don't do an end merge if the last node inserted was a br because the end merge will
- clobber it.
-
- (WebCore::ReplaceSelectionCommand::removeEndBRIfNeeded):
- brs where [br, 0] is at the end of a block and not at the start of a paragraph
- are the ones that are collapsed because of quirks mode.
- 2006-05-10 David Hyatt <hyatt@apple.com>
- Rename isSpace to treatAsSpace. Move it and the rounding hack function into
- Font and make them static methods (inlined in the header). Make the rounding
- hack character table a static member as well. Remove the redundant space/rounding
- functions from FontData.mm.
- Reviewed by darin
- * platform/Font.cpp:
- (WebCore::):
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advance):
- * platform/Font.h:
- (WebCore::Font::treatAsSpace):
- (WebCore::Font::isRoundingHackCharacter):
- * platform/mac/FontData.mm:
- (WebCore::overrideLayoutOperation):
- (WebCore::createATSULayoutParameters):
- (WebCore::initializeWidthIterator):
- (WebCore::advanceWidthIterator):
- * platform/mac/FontMac.mm:
- (WebCore::overrideLayoutOperation):
- (WebCore::ATSULayoutParameters::initialize):
- 2006-05-10 Darin Adler <darin@apple.com>
- * WebCore: Removed an extra WebCore subtree that somehow got checked in.
- 2006-05-10 David Carson <dacarson@gmail.com>
- - Fix for bug 8833. Removed inline keyword from functions declared
- in .mm and .cpp files. inline function code needs to reside in the
- header file for the linker to find the code.
- http://www.parashift.com/c++-faq-lite/inline-functions.html#faq-9.7
- Reviewed by Darin, landed by Timothy.
- * platform/Font.cpp:
- (WebCore::isSpace):
- * platform/mac/FontData.mm:
- (WebCore::widthForGlyph):
- (WebCore::isRoundingHackCharacter):
- (WebCore::glyphForCharacter):
- 2006-05-10 Mitz Pettel <opendarwin.org@mitzpettel.com>
- Reviewed and landed by Anders.
- - fix http://bugs.webkit.org/show_bug.cgi?id=8830
- REGRESSION: Words render on top of each other when fallback font is used
- Already covered by several pixel tests in fast/text
- * platform/Font.cpp:
- (WebCore::Font::drawSimpleText):
- 2006-05-10 David Hyatt <hyatt@apple.com>
- Fix for bug 8809, lift the Mac-specific WebTextRenderer code for
- drawing and measuring of runs up into the Font class. The fast code
- path is in Font.cpp and is designed to be mostly cross-platform. The
- slow code path is in FontMac.cpp and is Mac-specific.
- Reviewed by darin
- * WebCore.xcodeproj/project.pbxproj:
- * platform/Font.cpp:
- (WebCore::isSpace):
- (WebCore::):
- (WebCore::isRoundingHackCharacter):
- (WebCore::m_finalRoundingWidth):
- (WebCore::WidthIterator::advance):
- (WebCore::WidthIterator::normalizeVoicingMarks):
- (WebCore::Font::primaryFont):
- (WebCore::Font::setAlwaysUseComplexPath):
- (WebCore::Font::canUseGlyphCache):
- (WebCore::Font::drawSimpleText):
- (WebCore::Font::drawText):
- (WebCore::Font::floatWidth):
- (WebCore::Font::floatWidthForSimpleText):
- * platform/Font.h:
- * platform/FontData.h:
- (WebCore::FontData::platformData):
- * platform/GlyphBuffer.h: Added.
- (WebCore::GlyphBuffer::GlyphBuffer):
- (WebCore::GlyphBuffer::isEmpty):
- (WebCore::GlyphBuffer::size):
- (WebCore::GlyphBuffer::glyphs):
- (WebCore::GlyphBuffer::advances):
- (WebCore::GlyphBuffer::fontDataAt):
- (WebCore::GlyphBuffer::swap):
- (WebCore::GlyphBuffer::glyphAt):
- (WebCore::GlyphBuffer::advanceAt):
- (WebCore::GlyphBuffer::add):
- * platform/mac/FontData.mm:
- (WebCore::isSpace):
- (WebCore::isRoundingHackCharacter):
- (WebCore::FontData::widthForGlyph):
- (WebCore::m_ATSUMirrors):
- (WebCore::FontData::xHeight):
- (WebCore::FontData::smallCapsFontData):
- (WebCore::findSubstituteFont):
- (WebCore::rendererForAlternateFont):
- (WebCore::findSubstituteRenderer):
- (WebCore::FontData::findSubstituteFontData):
- (WebCore::computeWidthForSpace):
- (WebCore::FontData::updateGlyphMapEntry):
- (WebCore::extendGlyphMap):
- (WebCore::extendWidthMap):
- (WebCore::createATSULayoutParameters):
- (WebCore::FontData::glyphForCharacter):
- (WebCore::advanceWidthIterator):
- (WebCore::shouldUseATSU):
- * platform/mac/FontMac.mm:
- (WebCore::ATSULayoutParameters::m_padPerSpace):
- (WebCore::addDirectionalOverride):
- (WebCore::initializeATSUStyle):
- (WebCore::overrideLayoutOperation):
- (WebCore::ATSULayoutParameters::initialize):
- (WebCore::disposeATSULayoutParameters):
- (WebCore::Font::drawComplexText):
- (WebCore::Font::floatWidthForComplexText):
- (WebCore::Font::drawGlyphs):
- * platform/mac/WebCoreTextRenderer.mm:
- (WebCoreSetAlwaysUseATSU):
- 2006-05-10 Darin Adler <darin@apple.com>
- - another try at fixing the Windows build
- * platform/win/FontWin.cpp: (WebCore::getFontData): Use characters()
- instead of unicode().
- == Rolled over to ChangeLog-2006-05-10 ==
|