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

Side by Side Diff: Source/core/editing/EditingStyle.h

Issue 1292303005: Make core/editing/ files to match Blink coding style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-18T10:48:50 Created 5 years, 4 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/core/editing/EditAction.h ('k') | Source/core/editing/EditingStyle.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 TriState triStateOfStyle(EditingStyle*) const; 110 TriState triStateOfStyle(EditingStyle*) const;
111 TriState triStateOfStyle(const VisibleSelection&) const; 111 TriState triStateOfStyle(const VisibleSelection&) const;
112 bool conflictsWithInlineStyleOfElement(HTMLElement* element) const { return conflictsWithInlineStyleOfElement(element, 0, 0); } 112 bool conflictsWithInlineStyleOfElement(HTMLElement* element) const { return conflictsWithInlineStyleOfElement(element, 0, 0); }
113 bool conflictsWithInlineStyleOfElement(HTMLElement* element, EditingStyle* e xtractedStyle, Vector<CSSPropertyID>& conflictingProperties) const 113 bool conflictsWithInlineStyleOfElement(HTMLElement* element, EditingStyle* e xtractedStyle, Vector<CSSPropertyID>& conflictingProperties) const
114 { 114 {
115 return conflictsWithInlineStyleOfElement(element, extractedStyle, &confl ictingProperties); 115 return conflictsWithInlineStyleOfElement(element, extractedStyle, &confl ictingProperties);
116 } 116 }
117 bool conflictsWithImplicitStyleOfElement(HTMLElement*, EditingStyle* extract edStyle = nullptr, ShouldExtractMatchingStyle = DoNotExtractMatchingStyle) const ; 117 bool conflictsWithImplicitStyleOfElement(HTMLElement*, EditingStyle* extract edStyle = nullptr, ShouldExtractMatchingStyle = DoNotExtractMatchingStyle) const ;
118 bool conflictsWithImplicitStyleOfAttributes(HTMLElement*) const; 118 bool conflictsWithImplicitStyleOfAttributes(HTMLElement*) const;
119 bool extractConflictingImplicitStyleOfAttributes(HTMLElement*, ShouldPreserv eWritingDirection, EditingStyle* extractedStyle, 119 bool extractConflictingImplicitStyleOfAttributes(HTMLElement*, ShouldPreserv eWritingDirection, EditingStyle* extractedStyle,
120 Vector<QualifiedName>& conflictingAttributes, ShouldExtractMatchingS tyle) const; 120 Vector<QualifiedName>& conflictingAttributes, ShouldExtractMatchingStyle ) const;
121 bool styleIsPresentInComputedStyleOfNode(Node*) const; 121 bool styleIsPresentInComputedStyleOfNode(Node*) const;
122 122
123 static bool elementIsStyledSpanOrHTMLEquivalent(const HTMLElement*); 123 static bool elementIsStyledSpanOrHTMLEquivalent(const HTMLElement*);
124 124
125 void prepareToApplyAt(const Position&, ShouldPreserveWritingDirection = DoNo tPreserveWritingDirection); 125 void prepareToApplyAt(const Position&, ShouldPreserveWritingDirection = DoNo tPreserveWritingDirection);
126 void mergeTypingStyle(Document*); 126 void mergeTypingStyle(Document*);
127 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues }; 127 enum CSSPropertyOverrideMode { OverrideValues, DoNotOverrideValues };
128 void mergeInlineStyleOfElement(HTMLElement*, CSSPropertyOverrideMode, Proper tiesToInclude = AllProperties); 128 void mergeInlineStyleOfElement(HTMLElement*, CSSPropertyOverrideMode, Proper tiesToInclude = AllProperties);
129 static PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyleForAnnotatedSeriali zation(ContainerNode* context); 129 static PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyleForAnnotatedSeriali zation(ContainerNode* context);
130 static PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyleForSerialization(Co ntainerNode* context); 130 static PassRefPtrWillBeRawPtr<EditingStyle> wrappingStyleForSerialization(Co ntainerNode* context);
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 String m_applyFontSize; 228 String m_applyFontSize;
229 }; 229 };
230 230
231 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly. 231 // FIXME: Remove these functions or make them non-global to discourage using CSS StyleDeclaration directly.
232 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID); 232 CSSValueID getIdentifierValue(CSSStyleDeclaration*, CSSPropertyID);
233 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID); 233 CSSValueID getIdentifierValue(StylePropertySet*, CSSPropertyID);
234 234
235 } // namespace blink 235 } // namespace blink
236 236
237 #endif // EditingStyle_h 237 #endif // EditingStyle_h
OLDNEW
« no previous file with comments | « Source/core/editing/EditAction.h ('k') | Source/core/editing/EditingStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698