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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 2526133003: [CANCELED] Ensure clean style for hasEditableLevel when it doesn't break other stuff (Closed)
Patch Set: Fri Nov 25 14:48:44 JST 2016 Created 4 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class HTMLSpanElement; 64 class HTMLSpanElement;
65 class Node; 65 class Node;
66 class Range; 66 class Range;
67 67
68 // This file contains a set of helper functions used by the editing commands 68 // This file contains a set of helper functions used by the editing commands
69 69
70 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); 70 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&);
71 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); 71 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&);
72 CORE_EXPORT bool needsLayoutTreeUpdate(const PositionInFlatTree&); 72 CORE_EXPORT bool needsLayoutTreeUpdate(const PositionInFlatTree&);
73 73
74 CORE_EXPORT bool* checkingEditableStyleFromAXIndicator();
75
74 // ------------------------------------------------------------------------- 76 // -------------------------------------------------------------------------
75 // Node 77 // Node
76 // ------------------------------------------------------------------------- 78 // -------------------------------------------------------------------------
77 79
80 CORE_EXPORT bool canCheckEditableStyleCorrectly(const Node&);
78 CORE_EXPORT bool hasEditableStyle(const Node&); 81 CORE_EXPORT bool hasEditableStyle(const Node&);
79 CORE_EXPORT bool hasRichlyEditableStyle(const Node&); 82 CORE_EXPORT bool hasRichlyEditableStyle(const Node&);
80 CORE_EXPORT bool isRootEditableElement(const Node&); 83 CORE_EXPORT bool isRootEditableElement(const Node&);
81 CORE_EXPORT Element* rootEditableElement(const Node&); 84 CORE_EXPORT Element* rootEditableElement(const Node&);
82 Element* rootEditableElementOf(const Position&); 85 Element* rootEditableElementOf(const Position&);
83 Element* rootEditableElementOf(const PositionInFlatTree&); 86 Element* rootEditableElementOf(const PositionInFlatTree&);
84 Element* rootEditableElementOf(const VisiblePosition&); 87 Element* rootEditableElementOf(const VisiblePosition&);
85 // highestEditableRoot returns the highest editable node. If the 88 // highestEditableRoot returns the highest editable node. If the
86 // rootEditableElement of the speicified Position is <body>, this returns the 89 // rootEditableElement of the speicified Position is <body>, this returns the
87 // <body>. Otherwise, this searches ancestors for the highest editable node in 90 // <body>. Otherwise, this searches ancestors for the highest editable node in
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 InputEvent::InputType, 432 InputEvent::InputType,
430 DataTransfer*, 433 DataTransfer*,
431 const RangeVector*); 434 const RangeVector*);
432 435
433 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection, 436 InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
434 TextGranularity); 437 TextGranularity);
435 438
436 } // namespace blink 439 } // namespace blink
437 440
438 #endif 441 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698