Changeset 64160 in webkit
- Timestamp:
- Jul 27, 2010 2:30:36 PM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 9 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r64151 r64160 1 2010-07-27 Brett Wilson <brettw@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Add the ability to select fonts and do basic text drawing to the 6 Chromium WebKit API. 7 https://bugs.webkit.org/show_bug.cgi?id=42999 8 9 * WebKit.gyp: 10 * public/WebFloatPoint.h: Added. 11 (WebKit::WebFloatPoint::WebFloatPoint): 12 (WebKit::WebFloatPoint::operator=): 13 (WebKit::WebFloatPoint::operator WebCore::FloatPoint): 14 (WebKit::operator==): 15 (WebKit::operator!=): 16 * public/WebFloatRect.h: Added. 17 (WebKit::WebFloatRect::isEmpty): 18 (WebKit::WebFloatRect::WebFloatRect): 19 (WebKit::WebFloatRect::operator=): 20 (WebKit::WebFloatRect::operator WebCore::FloatRect): 21 (WebKit::operator==): 22 (WebKit::operator!=): 23 * public/WebFont.h: Added. 24 * public/WebFontDescription.h: Added. 25 (WebKit::WebFontDescription::): 26 (WebKit::WebFontDescription::WebFontDescription): 27 * public/WebTextRun.h: Added. 28 (WebKit::WebTextRun::WebTextRun): 29 * src/AssertMatchingEnums.cpp: 30 * src/WebFontDescription.cpp: Added. 31 (WebKit::WebFontDescription::WebFontDescription): 32 (WebKit::WebFontDescription::operator WebCore::FontDescription): 33 * src/WebFontImpl.cpp: Added. 34 (WebKit::WebFont::Create): 35 (WebKit::WebFontImpl::WebFontImpl): 36 (WebKit::WebFontImpl::fontDescription): 37 (WebKit::WebFontImpl::ascent): 38 (WebKit::WebFontImpl::descent): 39 (WebKit::WebFontImpl::height): 40 (WebKit::WebFontImpl::lineSpacing): 41 (WebKit::WebFontImpl::xHeight): 42 (WebKit::WebFontImpl::drawText): 43 (WebKit::WebFontImpl::width): 44 (WebKit::WebFontImpl::offsetForPosition): 45 (WebKit::WebFontImpl::selectionRectForText): 46 * src/WebFontImpl.h: Added. 47 * src/WebTextRun.cpp: Added. 48 (WebKit::WebTextRun::operator WebCore::TextRun): 49 1 50 2010-07-27 Dumitru Daniliuc <dumi@chromium.org> 2 51 -
trunk/WebKit/chromium/WebKit.gyp
r64112 r64160 157 157 'public/WebFileSystem.h', 158 158 'public/WebFindOptions.h', 159 'public/WebFloatPoint.h', 160 'public/WebFloatRect.h', 161 'public/WebFont.h', 162 'public/WebFontDescription.h', 159 163 'public/WebFrame.h', 160 164 'public/WebFrameClient.h', … … 248 252 'public/WebTextDirection.h', 249 253 'public/WebTextInputType.h', 254 'public/WebTextRun.h', 250 255 'public/WebThemeEngine.h', 251 256 'public/WebURL.h', … … 392 397 'src/WebFileChooserCompletionImpl.h', 393 398 'src/WebFontCache.cpp', 399 'src/WebFontDescription.cpp', 400 'src/WebFontImpl.cpp', 401 'src/WebFontImpl.h', 394 402 'src/WebFormControlElement.cpp', 395 403 'src/WebFormElement.cpp', … … 473 481 'src/WebStorageNamespaceImpl.h', 474 482 'src/WebString.cpp', 483 'src/WebTextRun.cpp', 475 484 'src/WebURL.cpp', 476 485 'src/WebURLLoadTiming.cpp', -
trunk/WebKit/chromium/src/AssertMatchingEnums.cpp
r63064 r64160 37 37 #include "ApplicationCacheHost.h" 38 38 #include "EditorInsertAction.h" 39 #include "FontDescription.h" 40 #include "FontSmoothingMode.h" 39 41 #include "HTMLInputElement.h" 40 42 #include "IDBKey.h" … … 53 55 #include "WebCursorInfo.h" 54 56 #include "WebEditingAction.h" 57 #include "WebFontDescription.h" 55 58 #include "WebIDBKey.h" 56 59 #include "WebInputElement.h" … … 236 239 COMPILE_ASSERT_MATCHING_ENUM(WebEditingActionDropped, EditorInsertActionDropped); 237 240 241 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyNone, FontDescription::NoFamily); 242 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyStandard, FontDescription::StandardFamily); 243 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySerif, FontDescription::SerifFamily); 244 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilySansSerif, FontDescription::SansSerifFamily); 245 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyMonospace, FontDescription::MonospaceFamily); 246 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyCursive, FontDescription::CursiveFamily); 247 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::GenericFamilyFantasy, FontDescription::FantasyFamily); 248 249 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingAuto, AutoSmoothing); 250 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingNone, NoSmoothing); 251 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingGrayscale, Antialiased); 252 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::SmoothingSubpixel, SubpixelAntialiased); 253 254 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight100, FontWeight100); 255 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight200, FontWeight200); 256 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight300, FontWeight300); 257 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight400, FontWeight400); 258 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight500, FontWeight500); 259 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight600, FontWeight600); 260 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight700, FontWeight700); 261 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight800, FontWeight800); 262 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::Weight900, FontWeight900); 263 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightNormal, FontWeightNormal); 264 COMPILE_ASSERT_MATCHING_ENUM(WebFontDescription::WeightBold, FontWeightBold); 265 238 266 COMPILE_ASSERT_MATCHING_ENUM(WebInputElement::Text, HTMLInputElement::TEXT); 239 267 COMPILE_ASSERT_MATCHING_ENUM(WebInputElement::Password, HTMLInputElement::PASSWORD); … … 327 355 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKey::StringType, IDBKey::StringType); 328 356 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKey::NumberType, IDBKey::NumberType); 357 358
Note: See TracChangeset
for help on using the changeset viewer.