OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 textEncoding = UTF8Encoding(); | 269 textEncoding = UTF8Encoding(); |
270 useDetector = true; | 270 useDetector = true; |
271 } | 271 } |
272 RefPtr<TextResourceDecoder> decoder = TextResourceDecoder::create("text/plai
n", textEncoding, useDetector); | 272 RefPtr<TextResourceDecoder> decoder = TextResourceDecoder::create("text/plai
n", textEncoding, useDetector); |
273 return decoder->decode(data.data(), data.size()) + decoder->flush(); | 273 return decoder->decode(data.data(), data.size()) + decoder->flush(); |
274 } | 274 } |
275 | 275 |
276 String InspectorFrontendHost::getSelectionBackgroundColor() | 276 String InspectorFrontendHost::getSelectionBackgroundColor() |
277 { | 277 { |
278 Color color = m_frontendPage->theme()->activeSelectionBackgroundColor(); | 278 Color color = m_frontendPage->theme()->activeSelectionBackgroundColor(); |
279 return color.isValid() ? color.serialized() : ""; | 279 return color != Color::transparent ? color.serialized() : ""; |
280 } | 280 } |
281 | 281 |
282 String InspectorFrontendHost::getSelectionForegroundColor() | 282 String InspectorFrontendHost::getSelectionForegroundColor() |
283 { | 283 { |
284 Color color = m_frontendPage->theme()->activeSelectionForegroundColor(); | 284 Color color = m_frontendPage->theme()->activeSelectionForegroundColor(); |
285 return color.isValid() ? color.serialized() : ""; | 285 return color != Color::transparent ? color.serialized() : ""; |
286 } | 286 } |
287 | 287 |
288 bool InspectorFrontendHost::supportsFileSystems() | 288 bool InspectorFrontendHost::supportsFileSystems() |
289 { | 289 { |
290 return true; | 290 return true; |
291 } | 291 } |
292 | 292 |
293 void InspectorFrontendHost::requestFileSystems() | 293 void InspectorFrontendHost::requestFileSystems() |
294 { | 294 { |
295 if (m_client) | 295 if (m_client) |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 { | 328 { |
329 return false; | 329 return false; |
330 } | 330 } |
331 | 331 |
332 String InspectorFrontendHost::hiddenPanels() | 332 String InspectorFrontendHost::hiddenPanels() |
333 { | 333 { |
334 return ""; | 334 return ""; |
335 } | 335 } |
336 | 336 |
337 } // namespace WebCore | 337 } // namespace WebCore |
OLD | NEW |