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

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

Issue 17388003: Remove unused includes from core/{editing,fileapi,history,html} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased Created 7 years, 6 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/EditCommand.cpp ('k') | Source/core/editing/Editor.h » ('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) 2007, 2008, 2009 Apple Computer, Inc. 2 * Copyright (C) 2007, 2008, 2009 Apple Computer, Inc.
3 * Copyright (C) 2010, 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2010, 2011 Google 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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "core/dom/StyledElement.h" 45 #include "core/dom/StyledElement.h"
46 #include "core/editing/ApplyStyleCommand.h" 46 #include "core/editing/ApplyStyleCommand.h"
47 #include "core/editing/Editor.h" 47 #include "core/editing/Editor.h"
48 #include "core/editing/FrameSelection.h" 48 #include "core/editing/FrameSelection.h"
49 #include "core/editing/HTMLInterchange.h" 49 #include "core/editing/HTMLInterchange.h"
50 #include "core/editing/htmlediting.h" 50 #include "core/editing/htmlediting.h"
51 #include "core/html/HTMLFontElement.h" 51 #include "core/html/HTMLFontElement.h"
52 #include "core/page/Frame.h" 52 #include "core/page/Frame.h"
53 #include "core/page/RuntimeCSSEnabled.h" 53 #include "core/page/RuntimeCSSEnabled.h"
54 #include "core/rendering/style/RenderStyle.h" 54 #include "core/rendering/style/RenderStyle.h"
55 #include <wtf/HashSet.h>
56 55
57 namespace WebCore { 56 namespace WebCore {
58 57
59 // Editing style properties must be preserved during editing operation. 58 // Editing style properties must be preserved during editing operation.
60 // e.g. when a user inserts a new paragraph, all properties listed here must be copied to the new paragraph. 59 // e.g. when a user inserts a new paragraph, all properties listed here must be copied to the new paragraph.
61 // NOTE: Use editingProperties() to respect runtime enabling of properties. 60 // NOTE: Use editingProperties() to respect runtime enabling of properties.
62 static const unsigned nonInheritedStaticPropertiesCount = 2; 61 static const unsigned nonInheritedStaticPropertiesCount = 2;
63 62
64 static const CSSPropertyID staticEditingProperties[] = { 63 static const CSSPropertyID staticEditingProperties[] = {
65 // NOTE: inheritableEditingProperties depends on these two properties being first. 64 // NOTE: inheritableEditingProperties depends on these two properties being first.
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 { 1616 {
1618 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) { 1617 for (Node* ancestor = node; ancestor; ancestor = ancestor->parentNode()) {
1619 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl aration::create(ancestor); 1618 RefPtr<CSSComputedStyleDeclaration> ancestorStyle = CSSComputedStyleDecl aration::create(ancestor);
1620 if (!hasTransparentBackgroundColor(ancestorStyle.get())) 1619 if (!hasTransparentBackgroundColor(ancestorStyle.get()))
1621 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor ); 1620 return ancestorStyle->getPropertyCSSValue(CSSPropertyBackgroundColor );
1622 } 1621 }
1623 return 0; 1622 return 0;
1624 } 1623 }
1625 1624
1626 } 1625 }
OLDNEW
« no previous file with comments | « Source/core/editing/EditCommand.cpp ('k') | Source/core/editing/Editor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698