Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
[WebKit-https.git] / Source / WebKit / mac / ChangeLog
1 2012-10-10  Simon Fraser  <simon.fraser@apple.com>
2
3         Store a visible rect in GraphicsLayers, and optionally dump it in layerTreeAsText
4         https://bugs.webkit.org/show_bug.cgi?id=98839
5
6         Reviewed by Sam Weinig.
7
8         To replace CATiledLayer with TileCaches, we need to be able to compute the visible part of a GraphicsLayer,
9         in order to limit the extent of TileCache tiles. Reuse the existing code in GraphicsLayerCA for this,
10         but store the computed rect in m_visibleRect.
11         
12         Add a flag to layerTreeAsText() so that tests can optionally include this visible rect in
13         layer tree dumps. This output will be platform-specific, so we don't want to do it unconditionally.
14
15         * WebView/WebFrame.mm:
16         (-[WebFrame _layerTreeAsText]):
17
18 2012-10-09  Jian Li  <jianli@chromium.org>
19
20         Update the CSS property used to support draggable regions.
21         https://bugs.webkit.org/show_bug.cgi?id=97156
22
23         Reviewed by Adam Barth.
24
25         The CSS property to support draggable regions, guarded under
26         WIDGET_REGION is now disabled from Mac WebKit, in order not to cause
27         confusion with DASHBOARD_SUPPORT feature.
28
29         Also update the code to use the new name annotatedRegions to work for
30         both features.
31
32         * Configurations/FeatureDefines.xcconfig: Disable WIDGET_REGION feature.
33         * WebCoreSupport/WebChromeClient.h: Rename dashboardRegions to annotatedRegions.
34         * WebCoreSupport/WebChromeClient.mm: Rename dashboardRegions to annotatedRegions.
35         (WebChromeClient::annotatedRegionsChanged):
36         * WebView/WebView.mm: Rename dashboardRegions to annotatedRegions.
37         (-[WebView _dashboardRegions]):
38
39 2012-10-09  Sheriff Bot  <webkit.review.bot@gmail.com>
40
41         Unreviewed, rolling out r130811 and r130821.
42         http://trac.webkit.org/changeset/130811
43         http://trac.webkit.org/changeset/130821
44         https://bugs.webkit.org/show_bug.cgi?id=98831
45
46         Broke date-suggestion-picker-appearance-with-scroll-bar.html
47         (Requested by abarth|gardening on #webkit).
48
49         * WebView/WebFullScreenController.mm:
50         (screenRectOfContents):
51         * WebView/WebRenderNode.mm:
52         (copyRenderNode):
53
54 2012-10-08  Kiran Muppala  <cmuppala@apple.com>
55
56         Throttle DOM timers on hidden pages.
57         https://bugs.webkit.org/show_bug.cgi?id=98474
58
59         Reviewed by Maciej Stachowiak.
60
61         Add HIDDEN_PAGE_DOM_TIMER_THROTTLING feature define and provide a SPI for
62         DumpRenderTree to modify the visibility state of a page.  The latter
63         is needed to test throttling of timers on hidden pages through DumpRenderTree.
64
65         * Configurations/FeatureDefines.xcconfig:
66         * WebView/WebView.mm:
67         (-[WebView _setVisibilityState:isInitialState:]):
68         * WebView/WebViewPrivate.h:
69
70 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
71
72         Rename first/second to key/value in HashMap iterators
73         https://bugs.webkit.org/show_bug.cgi?id=82784
74
75         Reviewed by Eric Seidel.
76
77         * History/WebHistory.mm:
78         (-[WebHistoryPrivate removeItemFromDateCaches:]):
79         (-[WebHistoryPrivate orderedLastVisitedDays]):
80         (WebHistoryWriter::WebHistoryWriter):
81         * Misc/WebCoreStatistics.mm:
82         (+[WebCoreStatistics javaScriptProtectedObjectTypeCounts]):
83         (+[WebCoreStatistics javaScriptObjectTypeCounts]):
84         * Plugins/Hosted/NetscapePluginHostManager.mm:
85         (WebKit::NetscapePluginHostManager::hostForPlugin):
86         (WebKit::NetscapePluginHostManager::pluginHostDied):
87         (WebKit::NetscapePluginHostManager::didCreateWindow):
88         * Plugins/Hosted/NetscapePluginHostProxy.mm:
89         (WebKit::NetscapePluginHostProxy::pluginHostDied):
90         * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
91         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
92         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::retain):
93         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::release):
94         (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
95         (WebKit::NetscapePluginInstanceProxy::destroy):
96         (WebKit::NetscapePluginInstanceProxy::webFrameDidFinishLoadWithReason):
97         (WebKit::NetscapePluginInstanceProxy::cancelCheckIfAllowedToLoadURL):
98         * Plugins/Hosted/ProxyInstance.mm:
99         (WebKit::ProxyInstance::methodNamed):
100         (WebKit::ProxyInstance::fieldNamed):
101         * Plugins/WebNetscapePluginView.mm:
102         (-[WebNetscapePluginView stopTimers]):
103         (-[WebNetscapePluginView startTimers]):
104         * WebCoreSupport/WebNotificationClient.mm:
105         (WebNotificationClient::show):
106         (WebNotificationClient::clearNotifications):
107         (WebNotificationClient::notificationObjectDestroyed):
108         * WebView/WebHTMLView.mm:
109         (commandNameForSelector):
110
111 2012-10-06  Dan Bernstein  <mitz@apple.com>
112
113         WebKit/mac part of <rdar://problem/12446507> [mac] WebKit clients cannot change the behavior of text-rendering: auto
114         https://bugs.webkit.org/show_bug.cgi?id=98601
115
116         Reviewed by Darin Adler.
117
118         * WebView/WebView.mm:
119         (+[WebView initialize]): Added a call to Font::setDefaultTypesettingFeatures() to enable
120         kerning and ligatures if the WebKitKerningAndLigaturesEnabledByDefault user default key has
121         the value YES.
122
123 2012-10-05  Sheriff Bot  <webkit.review.bot@gmail.com>
124
125         Unreviewed, rolling out r130556 and r130564.
126         http://trac.webkit.org/changeset/130556
127         http://trac.webkit.org/changeset/130564
128         https://bugs.webkit.org/show_bug.cgi?id=98572
129
130         The patch wasn't reviewed by a reviewer and it is breaking
131         Chromium Windows (Requested by jchaffraix on #webkit).
132
133         * WebCoreSupport/WebSystemInterface.mm:
134         (InitWebCoreSystemInterface):
135
136 2012-10-05  Tim Horton  <timothy_horton@apple.com>
137
138         [cg] GraphicsContextCG should ask CG whether the shadow offset workaround is required
139         https://bugs.webkit.org/show_bug.cgi?id=98565
140         <rdar://problem/12436468>
141
142         Reviewed by Simon Fraser.
143
144         Add wkCGContextDrawsWithCorrectShadowOffsets.
145
146         * WebCoreSupport/WebSystemInterface.mm:
147         (InitWebCoreSystemInterface):
148
149 2012-10-04  Eric Carlson  <eric.carlson@apple.com>
150
151         Allow ports to override text track rendering style
152         https://bugs.webkit.org/show_bug.cgi?id=97800
153         <rdar://problem/12044964>
154
155         Reviewed by Silvia Pfeiffer.
156
157         Add WCSI support for new WKSI caption functions.
158
159         * WebCoreSupport/WebSystemInterface.mm:
160         (InitWebCoreSystemInterface): Initialize new WKSI function pointers.
161
162 2012-10-04  Jon Lee  <jonlee@apple.com>
163
164         Add a setting to enable plugin snapshotting
165         https://bugs.webkit.org/show_bug.cgi?id=98319
166         <rdar://problem/12426480>
167
168         Reviewed by Brady Eidson.
169
170         Expose plugInSnapshottingEnabled preference to WebKit clients.
171
172         * WebView/WebPreferenceKeysPrivate.h: Add WebKitPlugInSnapshottingEnabled key.
173         * WebView/WebPreferences.mm:
174         (+[WebPreferences initialize]): Setting is turned off by default.
175         (-[WebPreferences plugInSnapshottingEnabled]):
176         (-[WebPreferences setPlugInSnapshottingEnabled:]):
177         * WebView/WebPreferencesPrivate.h:
178         * WebView/WebView.mm:
179         (-[WebView _preferencesChanged:]): Update settings based on preference.
180
181 2012-10-04  Rik Cabanier  <cabanier@adobe.com>
182
183         Turn Compositing on by default in WebKit build
184         https://bugs.webkit.org/show_bug.cgi?id=98315
185
186         Reviewed by Simon Fraser.
187
188         enable -webkit-blend-mode on trunk.
189
190         * Configurations/FeatureDefines.xcconfig:
191
192 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
193
194         Final part of "sync" to "flush" renaming
195         https://bugs.webkit.org/show_bug.cgi?id=98430
196
197         Reviewed by Tim Horton.
198
199         Change method names on GraphicsLayer and GraphicsLayerClient that
200         refer to "sync" to use the term "flush" instead, to be consistent
201         with the rest of the code.
202
203         * WebView/WebView.mm:
204
205 2012-10-03  Benjamin Poulain  <bpoulain@apple.com>
206
207         [WK2] Support all attributes of GeolocationPosition
208         https://bugs.webkit.org/show_bug.cgi?id=98212
209
210         Reviewed by Sam Weinig.
211
212         Add an internal constructor for the sake of testing.
213         A similar API is used on iOS.
214
215         * WebView/WebGeolocationPosition.mm:
216         (-[WebGeolocationPosition initWithGeolocationPosition:]):
217
218 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
219
220         Standardize on "flush" terminology for compositing layer flushing/syncing
221         https://bugs.webkit.org/show_bug.cgi?id=98321
222
223         Reviewed by Simon Fraser.
224
225         Rename compositing-related methods that refer to "syncing" to instead
226         refer to "flushing".
227
228         * WebCoreSupport/WebChromeClient.h:
229         * WebCoreSupport/WebChromeClient.mm:
230         (WebChromeClient::scheduleCompositingLayerFlush):
231         * WebView/WebView.mm:
232         (-[WebView _flushCompositingChanges]):
233         (LayerFlushController::flushLayers):
234         (-[WebView _scheduleCompositingLayerFlush]):
235         * WebView/WebViewInternal.h:
236
237 == Rolled over to ChangeLog-2012-10-02 ==