Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: Source/WebCore/editing/Editor.cpp

Issue 7031026: Revert 84311 - REGRESSION(r55762): Highlight color can't be copied in gmail. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebCore/editing/Editor.h ('k') | Source/WebCore/editing/markup.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 break; 909 break;
910 } 910 }
911 } 911 }
912 if (node == m_frame->selection()->end().deprecatedNode()) 912 if (node == m_frame->selection()->end().deprecatedNode())
913 break; 913 break;
914 } 914 }
915 915
916 return state; 916 return state;
917 } 917 }
918 918
919 bool Editor::hasTransparentBackgroundColor(CSSStyleDeclaration* style) 919 static bool hasTransparentBackgroundColor(CSSStyleDeclaration* style)
920 { 920 {
921 RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(CSSPropertyBackground Color); 921 RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(CSSPropertyBackground Color);
922 if (!cssValue) 922 if (!cssValue)
923 return true; 923 return true;
924 924
925 if (!cssValue->isPrimitiveValue()) 925 if (!cssValue->isPrimitiveValue())
926 return false; 926 return false;
927 CSSPrimitiveValue* value = static_cast<CSSPrimitiveValue*>(cssValue.get()); 927 CSSPrimitiveValue* value = static_cast<CSSPrimitiveValue*>(cssValue.get());
928 928
929 if (value->primitiveType() == CSSPrimitiveValue::CSS_RGBCOLOR) 929 if (value->primitiveType() == CSSPrimitiveValue::CSS_RGBCOLOR)
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 checkingTypes |= TextCheckingTypeReplacement; 3277 checkingTypes |= TextCheckingTypeReplacement;
3278 if (shouldMarkSpelling && isAutomaticSpellingCorrectionEnabled()) 3278 if (shouldMarkSpelling && isAutomaticSpellingCorrectionEnabled())
3279 checkingTypes |= TextCheckingTypeCorrection; 3279 checkingTypes |= TextCheckingTypeCorrection;
3280 } 3280 }
3281 #endif 3281 #endif
3282 3282
3283 return checkingTypes; 3283 return checkingTypes;
3284 } 3284 }
3285 3285
3286 } // namespace WebCore 3286 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/editing/Editor.h ('k') | Source/WebCore/editing/markup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698