e7e144e5ef52a9c774da22305f667d0835472fbf
[WebKit-https.git] / WebCore / ChangeLog
1 2010-05-24  Adam Barth  <abarth@webkit.org>
2
3         Reviewed by Eric Seidel.
4
5         Teach the HTML5 parser how to lex escaped script data
6         https://bugs.webkit.org/show_bug.cgi?id=39630
7
8         * html/HTML5Lexer.cpp:
9         (WebCore::HTMLNames::vectorEqualsString):
10         (WebCore::HTML5Lexer::nextToken):
11         (WebCore::HTML5Lexer::temporaryBufferIs):
12         (WebCore::HTML5Lexer::isAppropriateEndTag):
13         (WebCore::HTML5Lexer::maybeFlushBufferedEndTag):
14         (WebCore::HTML5Lexer::flushBufferedEndTag):
15         * html/HTML5Lexer.h:
16
17 2010-05-24  Eric Seidel  <eric@webkit.org>
18
19         Unreviewed.  Trick MSVC into ignoring our unused code for the moment.
20
21         Prepare HTML5TreeBuilder for addition of new HTML5 parser code
22         https://bugs.webkit.org/show_bug.cgi?id=39623
23
24         * html/HTML5TreeBuilder.cpp:
25         (WebCore::HTML5TreeBuilder::constructTreeFromToken):
26
27 2010-05-24  Darin Adler  <darin@apple.com>
28
29         Fix build on platforms with touch code enabled.
30
31         * page/EventHandler.cpp:
32         (WebCore::pageZoomFactor): Added.
33         (WebCore::EventHandler::handleTouchEvent): Use pageZoomFactor.
34
35 2010-05-24  Darin Adler  <darin@apple.com>
36
37         Reviewed by Eric Seidel.
38
39         Move view-related functions from Frame to FrameView
40         https://bugs.webkit.org/show_bug.cgi?id=39366
41
42         Refactoring only so adds no new tests.
43
44         * WebCore.base.exp: Updated.
45
46         * css/CSSStyleSelector.cpp:
47         (WebCore::CSSStyleSelector::styleForDocument): Call zoom factor function
48         on FrameView.
49         (WebCore::CSSStyleSelector::applyProperty): Ditto.
50         (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize): Ditto.
51         * dom/Document.cpp:
52         (WebCore::Document::elementFromPoint): Ditto.
53         (WebCore::Document::caretRangeFromPoint): Ditto.
54         * dom/MouseRelatedEvent.cpp:
55         (WebCore::contentsX): Ditto.
56         (WebCore::contentsY): Ditto.
57         (WebCore::pageZoomFactor): Added helper function.
58         (WebCore::MouseRelatedEvent::computePageLocation): Use helper.
59         (WebCore::MouseRelatedEvent::receivedTarget): Ditto.
60         * dom/Node.cpp:
61         (WebCore::Node::dispatchMouseEvent): Call zoom factor function on FrameView.
62         (WebCore::Node::dispatchWheelEvent): Ditto.
63         * dom/Touch.cpp:
64         (WebCore::contentsX): Call zoom factor function on FrameView.
65         (WebCore::contentsY): Ditto.
66         * html/HTMLBodyElement.cpp:
67         (WebCore::adjustForZoom): Ditto.
68         (WebCore::HTMLBodyElement::setScrollLeft): Ditto.
69         (WebCore::HTMLBodyElement::setScrollTop): Ditto.
70         * html/HTMLImageElement.cpp:
71         (WebCore::HTMLImageElement::width): Ditto.
72         (WebCore::HTMLImageElement::height): Ditto.
73         * loader/ImageDocument.cpp:
74         (WebCore::pageZoomFactor): Added helper function.
75         (WebCore::ImageTokenizer::finish): Use helper function
76         (WebCore::ImageDocument::scale): Ditto.
77         (WebCore::ImageDocument::resizeImageToFit): Ditto.
78         (WebCore::ImageDocument::imageChanged): Ditto.
79         (WebCore::ImageDocument::restoreImageSize): Ditto.
80         (WebCore::ImageDocument::imageFitsInWindow): Ditto.
81         * page/DOMWindow.cpp:
82         (WebCore::DOMWindow::innerHeight): Ditto.
83         (WebCore::DOMWindow::innerWidth): Ditto.
84         (WebCore::DOMWindow::scrollX): Ditto.
85         (WebCore::DOMWindow::scrollY): Ditto.
86         (WebCore::DOMWindow::scrollTo): Ditto.
87         * page/DragController.cpp:
88         (WebCore::elementUnderMouse): Ditto.
89
90         * page/Frame.cpp:
91         (WebCore::Frame::Frame): Removed code to initialize m_zoomFactor.
92         * page/Frame.h: Moved functions to FrameView. Moved all #if to the left
93         margin to make the style consistent. Removed empty function
94         removeEditingStyleFromBodyElement.
95
96         * page/FrameView.cpp:
97         (WebCore::parentZoomFactor): Added helper function for constructor.
98         (WebCore::FrameView::FrameView): Added initialization of m_zoomFactor.
99         (WebCore::FrameView::shouldApplyTextZoom): Moved this here from Frame.
100         (WebCore::FrameView::shouldApplyPageZoom): Ditto.
101         (WebCore::FrameView::setZoomFactor): Ditto.
102
103         * page/FrameView.h: Added members moved here from Frame.
104
105         * rendering/RenderView.cpp:
106         (WebCore::RenderView::zoomFactor): Call FrameView instead of Frame.
107         * svg/SVGSVGElement.cpp:
108         (WebCore::SVGSVGElement::currentScale): Ditto.
109         (WebCore::SVGSVGElement::setCurrentScale): Ditto.
110
111 2010-05-24  Jer Noble  <jer.noble@apple.com>
112
113         No review; build fix only.
114
115         Roll-out changes r60094, 60096-60097.
116         
117         * WebCore.vcproj/WebCore.vcproj:
118         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
119         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::load):
120         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage):
121         (WebCore::MediaPlayerPrivateQuickTimeVisualContext::destroyLayerForMovie):
122         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
123         * platform/graphics/win/QTPixelBuffer.cpp:
124         * platform/graphics/win/QTPixelBuffer.h:
125         * platform/graphics/win/WKCACFLayer.cpp:
126         (WebCore::WKCACFLayer::printLayer):
127         * platform/graphics/win/WKCACFLayer.h:
128         (WebCore::WKCACFLayer::setContents):
129         (WebCore::WKCACFLayer::contents):
130         (WebCore::WKCACFLayer::speed):
131         (WebCore::WKCACFLayer::timeOffset):
132         * platform/graphics/win/WKCAImageQueue.cpp: Removed.
133         * platform/graphics/win/WKCAImageQueue.h: Removed.
134
135 2010-05-24  Eric Seidel  <eric@webkit.org>
136
137         Unreviewed.  Add wtf/UnusedParam.h include to make Chromium happy.
138
139         Chromium does not use a prefix header in order to support
140         distcc3.  Other ports all do.  The real fix is to remove
141         wtf/UnusedParam.h from the prefix header.
142
143         * html/HTML5TreeBuilder.cpp:
144
145 2010-05-24  Jer Noble  <jer.noble@apple.com>
146
147         No review; build fix only.
148
149         Second half of previous build fix, in which I add the include in the correct place.
150
151         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
152
153 2010-05-24  Jer Noble  <jer.noble@apple.com>
154
155         No review; build fix only.
156
157         Include WKCAImageQueue.h outside the ACCELERATED_COMPOSITING check.
158
159         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
160
161 2010-05-24  Eric Seidel  <eric@webkit.org>
162
163         Reviewed by Adam Barth.
164
165         Prepare HTML5TreeBuilder for addition of new HTML5 parser code
166         https://bugs.webkit.org/show_bug.cgi?id=39623
167
168         Before we start transcribing the parser, we need a place to put it.
169
170         This also cleans up HTML5 token to not convert comment and character
171         data into AtomicStrings (which makes no sense).
172
173         No functionality change, so no new tests.
174
175         * html/HTML5Token.h:
176         (WebCore::HTML5Token::beginStartTag):
177         (WebCore::HTML5Token::beginEndTag):
178         (WebCore::HTML5Token::beginCharacter):
179         (WebCore::HTML5Token::beginComment):
180         (WebCore::HTML5Token::name):
181         (WebCore::HTML5Token::adoptDataAsStringImpl):
182         (WebCore::HTML5Token::characters):
183         (WebCore::HTML5Token::commentData):
184         (WebCore::HTML5Token::clearData):
185         * html/HTML5TreeBuilder.cpp:
186         (WebCore::convertToOldStyle):
187         (WebCore::HTML5TreeBuilder::constructTreeFromToken):
188         (WebCore::HTML5TreeBuilder::processToken):
189         * html/HTML5TreeBuilder.h:
190
191 2010-05-23  Jer Noble  <jer.noble@apple.com>
192
193         Reviewed by Eric Carlson.
194
195         HTML5 <video> tag performance worse than Flash
196         https://bugs.webkit.org/show_bug.cgi?id=39577
197         rdar://problem/7982458
198         
199         Added attachments() back to QTPixelBuffer, as they are necessary for CAImageQueue.
200         
201         WKCACFLayer contents()/setContents() now return/take a CFTypeRef instead of a CGImageRef, which allows
202         a CAImageQueueRef to be set as a layer's contents.
203         
204         WKCAImageQueue is a simple C++ wrapper around the WebKitSystemInterface CAImageQueue functions.
205         
206         MediaPlayerPrivateQuickTimeVisualContext will now use a CAImageQueue to display movie frames if 
207         certain prerequisites are met (QuartzCore.dll and CoreVideo.dll version numbers must meet a certain
208         threshold defined in MediaPlayerPrivateQuickTimeVisualContext.cpp).
209         
210         * WebCore.vcproj/WebCore.vcproj:
211         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp:
212         * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.h:
213         * platform/graphics/win/QTPixelBuffer.cpp:
214         * platform/graphics/win/QTPixelBuffer.h:
215         * platform/graphics/win/WKCACFLayer.cpp:
216         * platform/graphics/win/WKCACFLayer.h:
217         * platform/graphics/win/WKCAImageQueue.cpp: Added.
218         * platform/graphics/win/WKCAImageQueue.h: Added.
219
220 2010-05-24  Brady Eidson  <beidson@apple.com>
221
222         Reviewed by Darin Adler.
223
224         Database origins aren't populated at launch (missing db in prefs sheet, possible other symptoms)
225         <rdar://problem/8013233> and https://bugs.webkit.org/show_bug.cgi?id=39486
226
227         Currently, a Tracker needs to know it's path before origins are populated. Testing databases and 
228         related features is made very difficult with this regression, so instead of changing things in a
229         complicated way to make this not the case, I've added an "initialize Tracker with this path" function
230         that calls the DatabaseTracker constructor with the initial path.
231
232         I checked the other platforms besides Mac and Win, and none of them seem to perform the 
233         "initialize databases if necessary" step in their init routines, so this change shouldn't effect them.
234
235         No new tests. (API specific layout test in DRT is forthcoming)
236
237         * WebCore.base.exp:
238
239         * storage/DatabaseTracker.cpp:
240         (WebCore::DatabaseTracker::initializeTracker): Added to create the tracker with its initial path.
241         (WebCore::DatabaseTracker::tracker): Move the static tracker out so tracker() and initializeTracker()
242           can share it. Add a fallback to not change behavior of platforms that don't call the new 
243           "initializeTracker()" method.
244         (WebCore::DatabaseTracker::DatabaseTracker): Changed to take the initial path as an argument.
245         * storage/DatabaseTracker.h:
246
247         * storage/chromium/DatabaseTrackerChromium.cpp:
248         (WebCore::DatabaseTracker::tracker): Adapt to new c'tor.
249         (WebCore::DatabaseTracker::DatabaseTracker): Ditto.
250
251 2010-05-24  Adam Barth  <abarth@webkit.org>
252
253         Reviewed by Eric Seidel.
254
255         Teach the HTML5 parser to lex DOCTYPEs
256         https://bugs.webkit.org/show_bug.cgi?id=39571
257
258         * html/HTML5Lexer.cpp:
259         (WebCore::HTML5Lexer::nextToken):
260         * html/HTML5Lexer.h:
261         * html/HTML5Token.h:
262         (WebCore::HTML5Token::beginDOCTYPE):
263         (WebCore::HTML5Token::publicIdentifier):
264         (WebCore::HTML5Token::systemIdentifier):
265         (WebCore::HTML5Token::setPublicIdentifierToEmptyString):
266         (WebCore::HTML5Token::setSystemIdentifierToEmptyString):
267         (WebCore::HTML5Token::appendToPublicIdentifier):
268         (WebCore::HTML5Token::appendToSystemIdentifier):
269         (WebCore::HTML5Token::DoctypeData::DoctypeData):
270         * html/HTML5TreeBuilder.cpp:
271         (WebCore::convertToOldStyle):
272         (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
273         * platform/text/SegmentedString.h:
274         (WebCore::SegmentedString::lookAheadIgnoringCase):
275         (WebCore::SegmentedString::advanceAndASSERTIgnoringCase):
276
277 == Rolled over to ChangeLog-2010-05-24 ==