'webkit'에 해당되는 글 2건

  1. 2009.02.26 Safari 4.0 Beta 1 by Dansoonie
  2. 2009.01.13 Working with WebCore in Webkit... 4 by Dansoonie

Apple announced a new version of Safari... Download it here...
It's a beta version and a bit unstable, but it's beautiful...
Here are the improvements over the previous version...


ONE
The font rendering all got better in windows... The letters are more legible. I'll have to wait and see if it's the same for the mac version. 


TWO
The page loading speed is astonishingly fast, except for MSN.com. What a coincidence, when I used MSIE(Microsoft Internet Explorer) to download safari, it seemed like the download link was disabled. It seems like the two competitors are trying to interfere in each others way.


THREE
Does a better job on following and supporting the Web Standards.


FOUR
Uses cover-flow when going through your browse history. So, it slightly gives you a similar effect as if you are using the time machine. <- my personal opinion


I think this feature is really good because you really have a hard time looking in the history folder trying to figure out which file indicates the web page you are looking for. The visual aid will be absolutely helpful. The rendering speed is really really fast, so performance may not be an issue (or is it because of my Quad Core CPU computer at work???). Anyway, my assumption is that the pages are retrieved from cache (in case you were curious about my opinion on how it works).


FIVE
Something like speed dial in Opera, except up to 12 pages. Nothing new, but Apple just knows how to make things cooler and better. 



I say again... Nothing really new... Features four and five from above existed before. Not exactly the same thing, but buggy implementations of those ideas were distributed in the form of extensions or toolbars for existing browsers. However, Apple did a superb job to make it work in a cool and neat way... 

     Safari is based on WebKit... 

My team at work is working with WebKit...    

Our team just got so frustrated today...


Orz ...
Posted by Dansoonie
Are you trying to add some new functionality to WebKit? To be more specific, to WebCore? Moreover, are you adding new files to the project to do your work?

If this is what you are doing, and you are having some problems using the new and delete operator and building under debug mode(in visual studio), you might find your answer to your question here.

So the problem is...(at least my problem was)
The project does not build under debug mode because of compile errors related to the new and delete operator.

If you are keep getting compile error messages like the following on the lines using the new or delete operator...

error C2064: term does not evaluate to a function taking 0 arguments

try including "config.h" in the very first line of the file. i.e. #include "config.h"

So, how did this solution come about??? The project is set to use precompiled headers when Building under debug mode in Visual Studio. The precompiled header file name is set to be WebCorePrefix.h. In WebCorePrefix.h you can see something like this...

#ifdef __cplusplus

#define new ("if you use new/delete make sure to include config.h at the top of the file"())

#define delete ("if you use new/delete make sure to include config.h at the top of the file"())

#endif

Honestly, I'm not sure what those lines mean... I mean, the words inside the parenthesis are definitely not comments... I'm not a real hard core programmer and I'm not used to using preprocessors intensively. However, those two lines gave me the clue... I just followed the instructions...

I added #include "config.h" to the files that I just added which has the new and delete operators and problem solved !!!

Thank God... I'm able to code again... this problem has been keeping me crazy for the past week...



Posted by Dansoonie