OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |