diff options
author | Ben Murdoch <benm@google.com> | 2011-05-24 11:24:40 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-02 09:53:15 +0100 |
commit | 81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch) | |
tree | 7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebKit2/Shared/PlatformPopupMenuData.cpp | |
parent | 94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff) | |
download | external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2 |
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebKit2/Shared/PlatformPopupMenuData.cpp')
-rw-r--r-- | Source/WebKit2/Shared/PlatformPopupMenuData.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/Source/WebKit2/Shared/PlatformPopupMenuData.cpp b/Source/WebKit2/Shared/PlatformPopupMenuData.cpp index 51e0e6c..a5ebb45 100644 --- a/Source/WebKit2/Shared/PlatformPopupMenuData.cpp +++ b/Source/WebKit2/Shared/PlatformPopupMenuData.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Apple Inc. All rights reserved. + * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -60,40 +60,43 @@ void PlatformPopupMenuData::encode(CoreIPC::ArgumentEncoder* encoder) const SharedMemory::Handle selectedBackingStoreHandle; m_selectedBackingStore->createHandle(selectedBackingStoreHandle); encoder->encode(selectedBackingStoreHandle); +#elif PLATFORM(MAC) + encoder->encode(fontInfo); #endif } bool PlatformPopupMenuData::decode(CoreIPC::ArgumentDecoder* decoder, PlatformPopupMenuData& data) { #if PLATFORM(WIN) - PlatformPopupMenuData d; - if (!decoder->decode(d.m_clientPaddingLeft)) + if (!decoder->decode(data.m_clientPaddingLeft)) return false; - if (!decoder->decode(d.m_clientPaddingRight)) + if (!decoder->decode(data.m_clientPaddingRight)) return false; - if (!decoder->decode(d.m_clientInsetLeft)) + if (!decoder->decode(data.m_clientInsetLeft)) return false; - if (!decoder->decode(d.m_clientInsetRight)) + if (!decoder->decode(data.m_clientInsetRight)) return false; - if (!decoder->decode(d.m_popupWidth)) + if (!decoder->decode(data.m_popupWidth)) return false; - if (!decoder->decode(d.m_itemHeight)) + if (!decoder->decode(data.m_itemHeight)) return false; - if (!decoder->decode(d.m_backingStoreSize)) + if (!decoder->decode(data.m_backingStoreSize)) return false; SharedMemory::Handle notSelectedBackingStoreHandle; if (!decoder->decode(notSelectedBackingStoreHandle)) return false; - d.m_notSelectedBackingStore = ShareableBitmap::create(d.m_backingStoreSize, notSelectedBackingStoreHandle); + data.m_notSelectedBackingStore = ShareableBitmap::create(data.m_backingStoreSize, notSelectedBackingStoreHandle); SharedMemory::Handle selectedBackingStoreHandle; if (!decoder->decode(selectedBackingStoreHandle)) return false; - d.m_selectedBackingStore = ShareableBitmap::create(d.m_backingStoreSize, selectedBackingStoreHandle); - - data = d; + data.m_selectedBackingStore = ShareableBitmap::create(data.m_backingStoreSize, selectedBackingStoreHandle); +#elif PLATFORM(MAC) + if (!decoder->decode(data.fontInfo)) + return false; #endif + return true; } |