HomeSort by relevance Sort by last modified time
    Searched refs:Position (Results 26 - 50 of 88) sorted by null

12 3 4

  /external/webkit/WebCore/editing/
ApplyStyleCommand.cpp 56 explicit StyleChange(CSSStyleDeclaration*, const Position&);
74 void init(PassRefPtr<CSSStyleDeclaration>, const Position&);
91 StyleChange::StyleChange(CSSStyleDeclaration* style, const Position& position)
99 init(style, position);
102 void StyleChange::init(PassRefPtr<CSSStyleDeclaration> style, const Position& position)
104 Document* document = position.node() ? position.node()->document() : 0;
108 RefPtr<CSSComputedStyleDeclaration> computedStyle = position.computedStyle()
    [all...]
BreakBlockquoteCommand.cpp 64 // pos is a position equivalent to the caret. We use downstream() so that pos will
66 Position pos = endingSelection().start().downstream();
81 // If the position is at the beginning of the top quoted content, we don't need to break the quote.
82 // Instead, insert the break before the blockquote, unless the position is as the end of the the quoted content.
85 setEndingSelection(VisibleSelection(Position(breakNode.get(), 0), DOWNSTREAM));
95 setEndingSelection(VisibleSelection(Position(breakNode.get(), 0), DOWNSTREAM));
105 // Adjust the position so we don't split at the beginning of a quote.
128 setEndingSelection(VisibleSelection(VisiblePosition(Position(startNode, 0))));
201 setEndingSelection(VisibleSelection(Position(breakNode.get(), 0), DOWNSTREAM));
DeleteSelectionCommand.cpp 109 void DeleteSelectionCommand::initializeStartEnd(Position& start, Position& end)
117 // For HRs, we'll get a position at (HR,1) when hitting delete from the beginning of the previous line, or (HR,0) when forward deleting,
120 start = Position(start.node(), 0);
122 end = Position(end.node(), 1);
132 Position s = positionBeforeContainingSpecialElement(start, &startSpecialContainer);
133 Position e = positionAfterContainingSpecialElement(end, &endSpecialContainer);
166 Position start, end;
190 // Sometimes they aren't (like when no merge is requested), so we must choose one position to hold the caret
218 Position pos = VisiblePosition(m_upstreamStart, m_selectionToDelete.affinity()).deepEquivalent()
    [all...]
visible_units.cpp 76 Position pos = c.deepEquivalent();
91 Position start = rangeCompliantEquivalent(Position(boundary, 0));
92 Position end = rangeCompliantEquivalent(pos);
155 pos = Position(node, next);
157 // Use the character iterator to translate the next value into a DOM position.
169 Position pos = c.deepEquivalent();
185 Position start(rangeCompliantEquivalent(pos));
239 // Use the character iterator to translate the next value into a DOM position.
245 // FIXME: workaround for collapsed range (where only start position is correct) emitted for some emitted newlines (see rdar://5192593
    [all...]
ReplaceSelectionCommand.cpp 341 Position existing = endOfExistingContent.deepEquivalent();
342 Position inserted = endOfInsertedContent.deepEquivalent();
360 // blockquote from newly pasted quoted content that was pasted into an unquoted position. If that unquoted position happens
448 // Don't merge to or from a position before or after a block because it would
482 !enclosingNodeWithTag(Position(m_lastLeafInserted.get(), 0), selectTag) &&
483 !enclosingNodeWithTag(Position(m_lastLeafInserted.get(), 0), scriptTag)) {
536 static bool handleStyleSpansBeforeInsertion(ReplacementFragment& fragment, const Position& insertionPos)
610 RefPtr<CSSMutableStyleDeclaration> blockquoteStyle = editingStyleAtPosition(Position(blockquoteNode, 0));
611 RefPtr<CSSMutableStyleDeclaration> parentStyle = editingStyleAtPosition(Position(blockquoteNode->parentNode(), 0))
    [all...]
IndentOutdentCommand.cpp 110 Position start = startOfParagraph(endOfCurrentParagraph).deepEquivalent();
141 Position start = startOfSelection.deepEquivalent().downstream();
147 setEndingSelection(VisibleSelection(Position(placeholder.get(), 0), DOWNSTREAM));
163 // is in a list item or a table. As a result, endAfterSelection could refer to a position
197 VisiblePosition positionInEnclosingBlock = VisiblePosition(Position(enclosingNode, 0));
199 VisiblePosition lastPositionInEnclosingBlock = VisiblePosition(Position(enclosingNode, enclosingNode->childNodeCount()));
237 moveParagraph(startOfParagraph(visibleStartOfParagraph), endOfParagraph(visibleEndOfParagraph), VisiblePosition(Position(placeholder.get(), 0)), true);
249 Position originalSelectionEnd = endingSelection().end();
InsertParagraphSeparatorCommand.cpp 74 void InsertParagraphSeparatorCommand::calculateStyleBeforeInsertion(const Position &pos)
152 Position insertionPosition = endingSelection().start();
166 Position canonicalPos = VisiblePosition(insertionPosition).deepEquivalent();
184 // Adjust the insertion position after the delete
212 // Handle case when position is in the last visible position in its block,
250 setEndingSelection(VisibleSelection(Position(parent.get(), 0), DOWNSTREAM));
256 // Handle case when position is in the first visible position in its block, and
257 // similar case where previous position is in another, presumeably nested, block
    [all...]
InsertListCommand.cpp 200 VisiblePosition insertionPoint = VisiblePosition(Position(placeholder.get(), 0));
229 insertNodeAt(listItemElement, Position(nextList, 0));
241 start = VisiblePosition(Position(placeholder.get(), 0));
245 // Insert the list at a position visually equivalent to start of the
250 Position insertionPos(start.deepEquivalent().upstream());
263 moveParagraph(start, end, VisiblePosition(Position(placeholder.get(), 0)), true);
SelectionController.cpp 90 void SelectionController::moveTo(const Position &pos, EAffinity affinity, bool userTriggered)
97 VisibleSelection selection = r ? VisibleSelection(r->startPosition(), r->endPosition(), affinity) : VisibleSelection(Position(), Position(), affinity);
101 void SelectionController::moveTo(const Position &base, const Position &extent, EAffinity affinity, bool userTriggered)
154 // Always clear the x position used for vertical arrow navigation.
166 static bool removingNodeRemovesPosition(Node* node, const Position& position)
168 if (!position.node())
171 if (position.node() == node
    [all...]
FormatBlockCommand.cpp 126 VisiblePosition destination(Position(placeholder.get(), 0));
TypingCommand.cpp 410 setEndingSelection(VisibleSelection(Position(root, 0), DOWNSTREAM));
466 setEndingSelection(VisibleSelection(Position(table, 0), endingSelection().start(), DOWNSTREAM));
533 Position downstreamEnd = endingSelection().end().downstream();
555 Position extent = startingSelection().end();
564 extent = Position(extent.node(), extent.deprecatedEditingOffset() + extraCharacters);
DeleteButtonController.cpp 162 Node* element = enclosingNodeOfType(Position(container, 0), &isDeletableElement);
290 if (m_target->renderer()->style()->position() == StaticPosition) {
353 Position pos = positionInParentBeforeNode(element.get());
  /external/webkit/WebCore/dom/
Range.h 45 static PassRefPtr<Range> create(PassRefPtr<Document>, const Position&, const Position&);
97 const Position startPosition() const { return m_start.toPosition(); }
98 const Position endPosition() const { return m_end.toPosition(); }
103 Position editingStartPosition() const;
RangeBoundaryPoint.h 30 #include "Position.h"
38 const Position toPosition() const;
92 inline const Position RangeBoundaryPoint::toPosition() const
95 return Position(m_containerNode.get(), m_offsetInContainer);
  /packages/apps/Mms/src/com/android/mms/ui/
SlideView.java 415 private class Position {
416 public Position(int left, int top) {
494 TreeMap<Position, View> viewsByPosition = new TreeMap<Position, View>(new Comparator<Position>() {
495 public int compare(Position p1, Position p2) {
516 viewsByPosition.put(new Position(textLeft, textTop), mTextView);
522 viewsByPosition.put(new Position(imageLeft, imageTop), mImageView);
526 viewsByPosition.put(new Position(imageLeft + 1, imageTop), mVideoView)
    [all...]
  /external/stlport/test/eh/
test_insert.h 343 gTestController.SetCurrentTestName("single insertion at random position");
380 gTestController.SetCurrentTestName("n-ary insertion at random position");
450 template <class C, class Position, class Iter>
451 void do_insert_range( C& c_inst, Position offset,
460 template <class C, class Position, class Iter>
461 void do_insert_range( C& c, Position,
467 template <class C, class Position, class Iter>
468 void do_insert_range( C& c, Position, Iter first, Iter last, multiset_tag )
473 template <class C, class Position, class Iter>
474 void do_insert_range( C& c, Position, Iter first, Iter last, multimap_tag
    [all...]
  /frameworks/base/tools/localize/
XLIFFFile.cpp 45 ? parent->Position()
46 : parent->GetElementByNameAt(XLIFF_XMLNS, name, 1)->Position();
94 transUnit->Position().Error("<trans-unit> tag requires an id");
101 transUnit->Position().Error("<trans-unit> has invalid id '%s'\n", rawID.c_str());
110 result->AddStringResource(StringResource(source->Position(), originalFile,
120 result->AddStringResource(StringResource(target->Position(), originalFile,
133 result->AddStringResource(StringResource(altSource->Position(),
143 result->AddStringResource(StringResource(altTarget->Position(),
352 XMLNode* copy = XMLNode::NewElement(original->Position(), XLIFF_XMLNS, "g",
377 XMLNode* ph = XMLNode::NewElement(original->Position(), XLIFF_XMLNS
    [all...]
localize.cpp 44 configNode->Position().Error("<configuration> needs an id attribute.");
53 configNode->Position().Error("<configuration> needs a new-cl attribute.");
67 appNode->Position().Error("<app> needs a dir attribute.");
86 rejectNode->Position().Error("<reject> needs a file attribute.");
97 rejectNode->Position().Error("<reject> needs a name attribute.");
454 return XMLNode::NewText(source->Position(), pseudolocalize_string(source->Text(), settings),
460 target = XMLNode::NewElement(source->Position(), source->Namespace(),
463 target = XMLNode::NewElement(source->Position(), source->Namespace(),
  /external/webkit/WebCore/page/
DOMSelection.cpp 76 static Position anchorPosition(const VisibleSelection& selection)
78 Position anchor = selection.isBaseFirst() ? selection.start() : selection.end();
82 static Position focusPosition(const VisibleSelection& selection)
84 Position focus = selection.isBaseFirst() ? selection.end() : selection.start();
88 static Position basePosition(const VisibleSelection& selection)
93 static Position extentPosition(const VisibleSelection& selection)
FocusController.cpp 251 VisibleSelection newSelection(Position(node, 0), Position(node, 0), DOWNSTREAM);
  /external/zlib/contrib/delphi/
ZLib.pas 69 The Position property returns the number of uncompressed bytes of
102 backwards. The special case of setting the stream position to zero is
103 allowed. Seeking forward decompresses data until the requested position in
108 The Position property returns the number of bytes of uncompressed data that
393 FStrmPos := Strm.Position;
423 if FStrm.Position <> FStrmPos then FStrm.Position := FStrmPos;
448 if FStrm.Position <> FStrmPos then FStrm.Position := FStrmPos;
457 FStrmPos := FStrm.Position;
    [all...]
  /external/v8/src/
mksnapshot.cc 151 int length = partial_sink_.Position();
178 virtual int Position() {
193 virtual int Position() { return data_.length(); }
  /external/webkit/WebCore/plugins/gtk/
gtk2xtbin.h 127 Position x, y; /* window position */
  /external/webkit/LayoutTests/fast/dom/Geolocation/resources/
maximum-age.js 10 var position; variable
15 position = p;
16 shouldBe('position.coords.latitude', 'mockLatitude');
17 shouldBe('position.coords.longitude', 'mockLongitude');
18 shouldBe('position.coords.accuracy', 'mockAccuracy');
31 // Initialize the cached Position
41 // Update the position provided by the mock service.
43 // The default maximumAge is zero, so we expect the updated position from the service.
56 // The maximumAge is non-zero, so we expect the cached position, not the error from the service.
  /external/webkit/WebCore/rendering/
RenderInline.h 31 class Position;

Completed in 421 milliseconds

12 3 4